hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba6e04e48ffb434f8c5bc2e8a4646e4dd5ccf55b | 406,115 | tpp | C++ | uppsrc/ide/app.tpp/Assist_en-us.tpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | uppsrc/ide/app.tpp/Assist_en-us.tpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | uppsrc/ide/app.tpp/Assist_en-us.tpp | UltimateScript/Forgotten | ac59ad21767af9628994c0eecc91e9e0e5680d95 | [
"BSD-3-Clause"
] | null | null | null | topic "Assist++";
[l288;i1120;a17;O9;~~~.1408;2 $$1,0#10431211400427159095818037425705:param]
[a83;*R6 $$2,5#31310162474203024125188417583966:caption]
[H4;b83;*4 $$3,5#07864147445237544204411237157677:title]
[i288;O9;C2 $$4,6#40027414424643823182269349404212:item]
[b42;a42;ph2 $$5,5#4541300047534217475409124418055... | 1,245.751534 | 48,871 | 0.959492 | UltimateScript |
ba72f34a97aa3b29f0b9bf199c01d1041d16a9b1 | 249,840 | cpp | C++ | source/keyboard_mouse.cpp | cpascal/LuaAutoHotkey | 5acf40c2014093754106281ba7617060f686ffee | [
"BSD-3-Clause"
] | null | null | null | source/keyboard_mouse.cpp | cpascal/LuaAutoHotkey | 5acf40c2014093754106281ba7617060f686ffee | [
"BSD-3-Clause"
] | null | null | null | source/keyboard_mouse.cpp | cpascal/LuaAutoHotkey | 5acf40c2014093754106281ba7617060f686ffee | [
"BSD-3-Clause"
] | null | null | null | /*
AutoHotkey
Copyright 2003-2009 Chris Mallett ([email protected])
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
Thi... | 56.95008 | 336 | 0.735098 | cpascal |
ba7483e7d1040721503ac4dca15f9cbfc3b303c2 | 14,680 | cc | C++ | mistral/arch.cc | MyskYko/nextpnr | 4707bfc3c9b3f6605e335586333c6337c2896224 | [
"0BSD"
] | null | null | null | mistral/arch.cc | MyskYko/nextpnr | 4707bfc3c9b3f6605e335586333c6337c2896224 | [
"0BSD"
] | null | null | null | mistral/arch.cc | MyskYko/nextpnr | 4707bfc3c9b3f6605e335586333c6337c2896224 | [
"0BSD"
] | null | null | null | /*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2021 Lofty <[email protected]>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear ... | 30.081967 | 117 | 0.623297 | MyskYko |
ba759b8fcb848d440e6d9a154daa88494d6299d8 | 27,354 | hpp | C++ | esp/bindings/SOAP/Platform/soapmessage.hpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | esp/bindings/SOAP/Platform/soapmessage.hpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | esp/bindings/SOAP/Platform/soapmessage.hpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License... | 40.705357 | 138 | 0.672187 | oxhead |
ba76ec310ab996d0702c19fa8d6da305c5c67e1c | 5,633 | cpp | C++ | gzip.cpp | nvbodong/cryptopp-NV_8_2_0 | d9226d28cbf15cee40dad53a828f78bf7631fa37 | [
"BSL-1.0"
] | null | null | null | gzip.cpp | nvbodong/cryptopp-NV_8_2_0 | d9226d28cbf15cee40dad53a828f78bf7631fa37 | [
"BSL-1.0"
] | null | null | null | gzip.cpp | nvbodong/cryptopp-NV_8_2_0 | d9226d28cbf15cee40dad53a828f78bf7631fa37 | [
"BSL-1.0"
] | null | null | null | // gzip.cpp - originally written and placed in the public domain by Wei Dai
#include "pch.h"
#include "gzip.h"
#include "argnames.h"
NAMESPACE_BEGIN(CryptoPP_NV_2)
// Checks whether the character is valid for ISO/IEC 8859-1 as required by RFC 1952
static inline bool Is8859Character(char c) {
const unsigne... | 26.952153 | 96 | 0.665542 | nvbodong |
ba78390bfc840a22d880e234fcc8cf6f38249a7c | 1,594 | cpp | C++ | THEVERSION/lib/SafeTexture.cpp | gordonfreeman424/GSGE | 8814710ed89fb1abb05b595aa6af6f8893aafee5 | [
"BSD-2-Clause"
] | 4 | 2020-11-01T01:53:06.000Z | 2021-06-04T02:02:30.000Z | THEVERSION/lib/SafeTexture.cpp | gordonfreeman424/GSGE | 8814710ed89fb1abb05b595aa6af6f8893aafee5 | [
"BSD-2-Clause"
] | null | null | null | THEVERSION/lib/SafeTexture.cpp | gordonfreeman424/GSGE | 8814710ed89fb1abb05b595aa6af6f8893aafee5 | [
"BSD-2-Clause"
] | null | null | null | #include "SafeTexture.h"
#include <cassert>
#include <iostream>
namespace gekRender {
SafeTexture::SafeTexture(GLuint texture_object) {
m_texture = texture_object;
DaddyO = nullptr;
TextureUpdates = false;
if (texture_object)
isnull = false;
else
isnull = true;
}
SafeTexture::SafeTexture(Texture... | 27.482759 | 102 | 0.695107 | gordonfreeman424 |
ba7f4071802d34e076dfff87bfce98aec61aa837 | 1,865 | hpp | C++ | fgsig/include/fgsig/any_connection.hpp | fgoujeon/signal | f798522534788b9ab1e25a0e38db6faf20fb6f3a | [
"BSL-1.0"
] | 34 | 2018-10-29T23:37:48.000Z | 2022-02-15T16:12:47.000Z | fgsig/include/fgsig/any_connection.hpp | fgoujeon/signal | f798522534788b9ab1e25a0e38db6faf20fb6f3a | [
"BSL-1.0"
] | 3 | 2018-11-02T19:56:22.000Z | 2019-03-30T16:30:07.000Z | fgsig/include/fgsig/any_connection.hpp | fgoujeon/signal | f798522534788b9ab1e25a0e38db6faf20fb6f3a | [
"BSL-1.0"
] | 3 | 2018-11-03T04:51:20.000Z | 2021-03-25T09:21:25.000Z | //Copyright Florian Goujeon 2018 - 2019.
//Distributed under the Boost Software License, Version 1.0.
//(See accompanying file LICENSE_1_0.txt or copy at
//https://www.boost.org/LICENSE_1_0.txt)
//Official repository: https://github.com/fgoujeon/signal
#ifndef FGSIG_ANY_CONNECTION_HPP
#define FGSIG_ANY_CONNECTION_HPP
... | 23.024691 | 77 | 0.57319 | fgoujeon |
ba82018eafa170caa6d16c48ff2356d63921da3b | 26,542 | cpp | C++ | samples/meta_reader/main.cpp | stephenatwork/xlang | 0747c3b362c02a9736b3a4ca1bd3e005b4f52279 | [
"MIT"
] | 1 | 2019-10-23T20:33:45.000Z | 2019-10-23T20:33:45.000Z | samples/meta_reader/main.cpp | stephenatwork/xlang | 0747c3b362c02a9736b3a4ca1bd3e005b4f52279 | [
"MIT"
] | null | null | null | samples/meta_reader/main.cpp | stephenatwork/xlang | 0747c3b362c02a9736b3a4ca1bd3e005b4f52279 | [
"MIT"
] | null | null | null | #include "pch.h"
using namespace std::chrono;
using namespace std::experimental::filesystem;
using namespace std::string_view_literals;
using namespace xlang;
using namespace xlang::meta::reader;
using namespace xlang::text;
using namespace xlang::cmd;
template <typename...T> struct overloaded : T... { using T::opera... | 27.001017 | 127 | 0.483724 | stephenatwork |
ba835836a663cb8777696f7115262fc31639ccc7 | 148 | cpp | C++ | OpenROV2x/CModule.cpp | pictographer/pi-i2c | d3b4c9faf5cd17b37f9e0863c4559c2ea06bdd0e | [
"MIT"
] | 1 | 2018-04-08T13:41:33.000Z | 2018-04-08T13:41:33.000Z | OpenROV2x/CModule.cpp | pictographer/pi-i2c | d3b4c9faf5cd17b37f9e0863c4559c2ea06bdd0e | [
"MIT"
] | null | null | null | OpenROV2x/CModule.cpp | pictographer/pi-i2c | d3b4c9faf5cd17b37f9e0863c4559c2ea06bdd0e | [
"MIT"
] | null | null | null | // Includes
#include <Arduino.h>
#include "CModule.h"
#include "NModuleManager.h"
CModule::CModule()
{
NModuleManager::RegisterModule( this );
}
| 13.454545 | 40 | 0.716216 | pictographer |
ba8443dfc9584a31f2f601c14d2e29779a8ef2a3 | 1,392 | cpp | C++ | module/spikes_t/src/SpikeS.cpp | fderue/SPIKES | ae224f4c01991cbccb80b19bdd4d0d18201604b9 | [
"MIT"
] | 5 | 2017-02-21T05:12:26.000Z | 2019-05-04T04:25:50.000Z | module/spikes_t/src/SpikeS.cpp | fderue/SPIKES | ae224f4c01991cbccb80b19bdd4d0d18201604b9 | [
"MIT"
] | null | null | null | module/spikes_t/src/SpikeS.cpp | fderue/SPIKES | ae224f4c01991cbccb80b19bdd4d0d18201604b9 | [
"MIT"
] | null | null | null | #include "spikes_t/SpikeS.h"
void SpikeS::createBranchesKp2(const list<KeyPoint2*>& l_kp2)
{
v_branch.resize(0);
float radius2 = pow(m_searchR, 2);
for (auto& it : l_kp2)
{
float d2 = pow((it->kp.pt.x - xy.x), 2) + pow((it->kp.pt.y - xy.y), 2);
if (d2<radius2)
{
Point relpos = Point((int)it->kp.pt.x, (i... | 22.095238 | 89 | 0.608477 | fderue |
ba8477492caf6c272da893bb7c3dd8fcb0a26941 | 4,428 | hpp | C++ | engine/src/vulkan/module/overlay/UIManager.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | engine/src/vulkan/module/overlay/UIManager.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | engine/src/vulkan/module/overlay/UIManager.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | #pragma once
#include <pch.hpp>
#include <vulkan/vulkan.h>
#include <vulkan/LogicalDevice.hpp>
#include <vulkan/module/overlay/element/StaticElement.hpp>
#include <vulkan/util/CommandBufferHolder.hpp>
#include <vulkan/util/CommandRecorderProvider.hpp>
struct tElementObject
{
cUIElement* ppElement = nullptr;
s... | 31.183099 | 111 | 0.672764 | Velikss |
ba8a3b5da3ad402bcff47d797519d8c5430ecd01 | 958 | hh | C++ | PacGeom/PacPieceTraj.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacGeom/PacPieceTraj.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacGeom/PacPieceTraj.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// Name:
// PacPieceTraj
// Description:
// Piecewise helix, but removing all the 'diff' stuff.
// Environment:
// Software developed for PACRAT / SuperB
// Copyright Information:
// Copyright (C) 2008 Lawrence Berkeley Laboratory
// Aut... | 30.903226 | 76 | 0.621086 | brownd1978 |
ba94c9d3d3881c0b58dfcbf7332175884abfdd9e | 1,399 | cpp | C++ | LinearRegression.cpp | aidenfrog/c-Machine-Learning-Library-WIP- | a58542ca8fed167fa2e5e8ef8ce022dcd9bed29c | [
"MIT"
] | null | null | null | LinearRegression.cpp | aidenfrog/c-Machine-Learning-Library-WIP- | a58542ca8fed167fa2e5e8ef8ce022dcd9bed29c | [
"MIT"
] | null | null | null | LinearRegression.cpp | aidenfrog/c-Machine-Learning-Library-WIP- | a58542ca8fed167fa2e5e8ef8ce022dcd9bed29c | [
"MIT"
] | null | null | null | #include "LinearRegression.h"
#include <cstdlib>
namespace Metagross {
LinearRegression::LinearRegression() {
m = 0;
n = 2;
initTheta();
}
LinearRegression::LinearRegression(int features) {
m = 0;
n = features;
initTheta();
}
LinearRegression::LinearRegression(double a) {
m = 0;
n = 2;
initThe... | 19.430556 | 72 | 0.619728 | aidenfrog |
ba9531f0cc4746ab15f8d1b54a73bca3a00cd0ac | 1,242 | cpp | C++ | Dynamic Programming/EqualSumPartition_DP_TopDown.cpp | parth1614/DSA_Questions | 7083952eb310a21f7e30267efa437dfbb8c0f88f | [
"MIT"
] | null | null | null | Dynamic Programming/EqualSumPartition_DP_TopDown.cpp | parth1614/DSA_Questions | 7083952eb310a21f7e30267efa437dfbb8c0f88f | [
"MIT"
] | null | null | null | Dynamic Programming/EqualSumPartition_DP_TopDown.cpp | parth1614/DSA_Questions | 7083952eb310a21f7e30267efa437dfbb8c0f88f | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
bool EqualSumPart(vector<int>& arr, int n){
int sum = 0;
for(int i=0;i<n;++i){
sum = sum + arr[i];
}
if(sum%2!=0){
return false;
}
else if(sum%2==0){
vector<vector<bool>> t;
for(int i=0;i<n+1;++i){
vector<... | 20.032258 | 60 | 0.400966 | parth1614 |
ba95ee3cfbf5217429f64a8cb077cf9351152afb | 9,101 | hpp | C++ | source/backend/cpu/BinaryUtils.hpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | 1 | 2021-09-17T03:22:16.000Z | 2021-09-17T03:22:16.000Z | source/backend/cpu/BinaryUtils.hpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | null | null | null | source/backend/cpu/BinaryUtils.hpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | null | null | null | #include <math.h>
#include <algorithm>
#include "compute/CommonOptFunction.h"
#include "MNN_generated.h"
template <typename _Arg1, typename _Arg2, typename _ErrorCode>
struct BinaryMax {
_ErrorCode operator()(const _Arg1& x, const _Arg2& y) const {
return std::max(x, y);
}
};
template <typename _Arg1,... | 30.850847 | 121 | 0.593781 | JujuDel |
ba971debe07ae6bf85e5bb426414ef350c87544d | 656 | hpp | C++ | SKM Client API/LicenseKeyChecker.hpp | svedi-travis/skm_temp | 1b10527a2f3ebd384575544100fe681bc19fa4b2 | [
"BSD-2-Clause"
] | null | null | null | SKM Client API/LicenseKeyChecker.hpp | svedi-travis/skm_temp | 1b10527a2f3ebd384575544100fe681bc19fa4b2 | [
"BSD-2-Clause"
] | null | null | null | SKM Client API/LicenseKeyChecker.hpp | svedi-travis/skm_temp | 1b10527a2f3ebd384575544100fe681bc19fa4b2 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "LicenseKey.hpp"
namespace serialkeymanager_com {
class LicenseKey;
class LicenseKeyChecker {
bool status_;
LicenseKey const* key_;
public:
LicenseKeyChecker(LicenseKey const* license_key);
explicit operator bool() const;
LicenseKeyChecker& has_feature(int feature);
LicenseKeyCh... | 23.428571 | 74 | 0.78811 | svedi-travis |
ba9a652e5ede8f02f9268cd19443d68a886c13c0 | 167 | cpp | C++ | src/atcoder/abc008/a/sol_0.cpp | kagemeka/competitive-programming | c70fe481bcd518f507b885fc9234691d8ce63171 | [
"MIT"
] | 1 | 2021-07-11T03:20:10.000Z | 2021-07-11T03:20:10.000Z | src/atcoder/abc008/a/sol_0.cpp | kagemeka/competitive-programming | c70fe481bcd518f507b885fc9234691d8ce63171 | [
"MIT"
] | 39 | 2021-07-10T05:21:09.000Z | 2021-12-15T06:10:12.000Z | src/atcoder/abc008/a/sol_0.cpp | kagemeka/competitive-programming | c70fe481bcd518f507b885fc9234691d8ce63171 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int s, t;
cin >> s >> t;
cout << t - s + 1 << '\n';
} | 13.916667 | 30 | 0.556886 | kagemeka |
ba9aadd959936566085482cd2733e0a624b3a33a | 5,077 | cpp | C++ | branch/old_angsys/angsys_beta1/source/angsys/angsys.shared/source/files/input_text_file.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta1/source/angsys/angsys.shared/source/files/input_text_file.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta1/source/angsys/angsys.shared/source/files/input_text_file.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | /*********************************************************************************************************************/
/* File Name: input_text_file.cpp */
/* Author: Ing. Jesus Rocha <[email protected]>, July 2016. ... | 30.401198 | 165 | 0.609415 | ChuyX3 |
ba9ba202a7ff2cdd3d8ea2127e6d9ed2e2256e84 | 13,234 | cc | C++ | src/arch/x86/bios/intelmp.cc | fei-shan/gem5-experiment | 70781db30d42b1fe50e495bd04f7755a4b0e0e59 | [
"BSD-3-Clause"
] | 1 | 2021-05-04T13:23:30.000Z | 2021-05-04T13:23:30.000Z | src/arch/x86/bios/intelmp.cc | fei-shan/gem5-experiment | 70781db30d42b1fe50e495bd04f7755a4b0e0e59 | [
"BSD-3-Clause"
] | 1 | 2021-04-17T17:13:56.000Z | 2021-04-17T17:13:56.000Z | src/arch/x86/bios/intelmp.cc | fei-shan/gem5-experiment | 70781db30d42b1fe50e495bd04f7755a4b0e0e59 | [
"BSD-3-Clause"
] | 1 | 2021-08-23T05:37:55.000Z | 2021-08-23T05:37:55.000Z | /*
* Copyright (c) 2008 The Hewlett-Packard Development Company
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardwar... | 33.335013 | 79 | 0.689134 | fei-shan |
baa6137d5acc4efed5439500ba49d1ef13fe9643 | 985 | cpp | C++ | Chapter11/dtime/timedemo.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | 1 | 2019-08-13T17:51:24.000Z | 2019-08-13T17:51:24.000Z | Chapter11/dtime/timedemo.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | null | null | null | Chapter11/dtime/timedemo.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | 1 | 2020-06-05T13:37:56.000Z | 2020-06-05T13:37:56.000Z | #include <iostream>
#include "dtime.h"
void readHour(int& theHour);
int main() {
using DTimeSavitch::DigitalTime;
using std::cout;
using std::cin;
using std::endl;
int theHour;
readHour(theHour);
DigitalTime clock(theHour, 0), oldClock;
oldClock = clock;
clock.advance(15);
if(clock == oldClock... | 20.957447 | 64 | 0.616244 | yapbenzet |
bab264266851030e48a843133ebbdcc58a9d13d7 | 9,899 | cpp | C++ | Simbody/examples/ExampleBricardMechanism.cpp | elen4/simbody | 3ddbc16323afa45b7698c38e07266a7de15e2ad2 | [
"Apache-2.0"
] | 2 | 2020-01-15T05:03:30.000Z | 2021-01-16T06:18:47.000Z | Simbody/examples/ExampleBricardMechanism.cpp | sohapouya/simbody | 3729532453b22ffa3693962210941184f5617f5b | [
"Apache-2.0"
] | null | null | null | Simbody/examples/ExampleBricardMechanism.cpp | sohapouya/simbody | 3729532453b22ffa3693962210941184f5617f5b | [
"Apache-2.0"
] | 1 | 2021-09-24T15:20:36.000Z | 2021-09-24T15:20:36.000Z | /* -------------------------------------------------------------------------- *
* Simbody(tm) Example: Bricard Mechanism *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... | 45.617512 | 123 | 0.649156 | elen4 |
bab2ec233075ba676dff8d0e42de010ef64bf5eb | 5,202 | cpp | C++ | src/lib/corelib/refstring.cpp | millimoji/ribbon | 59e6659848f5edc435d58078f0cdcd805daf9f3f | [
"MIT"
] | null | null | null | src/lib/corelib/refstring.cpp | millimoji/ribbon | 59e6659848f5edc435d58078f0cdcd805daf9f3f | [
"MIT"
] | null | null | null | src/lib/corelib/refstring.cpp | millimoji/ribbon | 59e6659848f5edc435d58078f0cdcd805daf9f3f | [
"MIT"
] | null | null | null | #include "pch.h"
namespace Ribbon {
namespace RefStringInternal {
static const size_t STRINGBLOCKSIZE = 0x4000;
struct StringBuffer
{
uint64_t buf[STRINGBLOCKSIZE / sizeof(uint64_t)];
};
template <size_t ELEMENTSIZE>
union StringMemoryBuffer
{
uint64_t buf[ELEMENTSIZE / sizeof(uint64_t)];
StringMemoryBuffer* pr... | 27.967742 | 109 | 0.72549 | millimoji |
3bf87b4a380c744cc508f4b4ad92fbad263f6720 | 5,393 | hpp | C++ | sph_yamauchi/run/hdr_bhns.hpp | yamauchi1132/Research_Codes | c9e104f8592277cb4aa5c479b014c78c702a0939 | [
"FSFAP"
] | null | null | null | sph_yamauchi/run/hdr_bhns.hpp | yamauchi1132/Research_Codes | c9e104f8592277cb4aa5c479b014c78c702a0939 | [
"FSFAP"
] | null | null | null | sph_yamauchi/run/hdr_bhns.hpp | yamauchi1132/Research_Codes | c9e104f8592277cb4aa5c479b014c78c702a0939 | [
"FSFAP"
] | null | null | null | class BlackHoleNeutronStar : public SPH {
public:
PS::S64 istar;
PS::F64 eps;
PS::F64 size;
BlackHoleNeutronStar() {
this->id = 0;
this->mass = 0.;
this->pos = 0.;
this->vel = 0.;
this->vel2 = 0.;
this->acc = 0.;
this->uene = 0... | 34.570513 | 96 | 0.457259 | yamauchi1132 |
3bfdd28a0534865c90cdb5391cdb44593c42ef88 | 1,875 | cc | C++ | src/sandbox/spawn_strategy/run.cc | TheEvilSkeleton/zypak | 51c8771bc6bb1f68e41663e01c487b414481c57e | [
"BSD-3-Clause"
] | null | null | null | src/sandbox/spawn_strategy/run.cc | TheEvilSkeleton/zypak | 51c8771bc6bb1f68e41663e01c487b414481c57e | [
"BSD-3-Clause"
] | null | null | null | src/sandbox/spawn_strategy/run.cc | TheEvilSkeleton/zypak | 51c8771bc6bb1f68e41663e01c487b414481c57e | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 Endless Mobile, Inc.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "run.h"
#include <dirent.h>
#include <sys/prctl.h>
#include <sys/signal.h>
#include <memory>
#include <string>
#include "base/debug.h"
#include "base/fd_map.h"
#inc... | 21.306818 | 78 | 0.617067 | TheEvilSkeleton |
3bff25cc7c0c9a2ffdd135c72c7abc45515c0660 | 2,365 | cpp | C++ | gwen/UnitTest/Properties.cpp | vonture/GWEN | 6fdc75cdcc7f1c2a1ecf6c7479a99fad4d1d13e9 | [
"MIT"
] | 273 | 2015-01-01T23:19:18.000Z | 2022-03-25T00:38:46.000Z | gwen/UnitTest/Properties.cpp | McSimp/GWEN | ea137166c0483a6e7bd2237cf590919b2177da5d | [
"MIT"
] | 4 | 2015-03-15T16:16:58.000Z | 2022-03-08T03:35:54.000Z | gwen/UnitTest/Properties.cpp | McSimp/GWEN | ea137166c0483a6e7bd2237cf590919b2177da5d | [
"MIT"
] | 92 | 2015-01-11T19:51:53.000Z | 2022-03-17T20:12:12.000Z | #include "Gwen/UnitTest/UnitTest.h"
#include "Gwen/Controls/Properties.h"
#include "Gwen/Controls/PropertyTree.h"
#include "Gwen/Controls/Property/ColorSelector.h"
#include "Gwen/Controls/Property/Checkbox.h"
#include "Gwen/Controls/Property/ComboBox.h"
using namespace Gwen;
class Properties : public GUnit
{
public:... | 33.309859 | 124 | 0.632135 | vonture |
ce015bfed323d6b04b117624c4c2150f86298386 | 356 | cpp | C++ | samples/hello_ar_c/app/src/main/gef_abertay/maths/plane.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | samples/hello_ar_c/app/src/main/gef_abertay/maths/plane.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | samples/hello_ar_c/app/src/main/gef_abertay/maths/plane.cpp | JD1305/arcore-android-sdk | ac3661d9dc65a608235d775cf6a916df2329b399 | [
"Apache-2.0"
] | null | null | null | #include <maths/plane.h>
#include <math.h>
namespace gef
{
Plane::Plane()
{
}
Plane::Plane(float a, float b, float c, float d) :
Vector4(a, b, c, d)
{
}
void Plane::Normalise()
{
float distance = sqrtf(a()*a() + b()*b() + c()*c());
set_a(a() / distance);
set_b(b() / distance);
set_c(c() / dista... | 13.692308 | 54 | 0.547753 | JD1305 |
ce0531a1904b1ca49276fc757ac8ef1b73ccb9df | 13,328 | cpp | C++ | arl-hourglass/arl-hourglass/MargolusNeighborhoodSimulatorOpenCL.cpp | bernhardrieder/Hourglass-Simulation | 737c756fc283859bb89d9c670b67a0be7aa979d6 | [
"Unlicense"
] | null | null | null | arl-hourglass/arl-hourglass/MargolusNeighborhoodSimulatorOpenCL.cpp | bernhardrieder/Hourglass-Simulation | 737c756fc283859bb89d9c670b67a0be7aa979d6 | [
"Unlicense"
] | null | null | null | arl-hourglass/arl-hourglass/MargolusNeighborhoodSimulatorOpenCL.cpp | bernhardrieder/Hourglass-Simulation | 737c756fc283859bb89d9c670b67a0be7aa979d6 | [
"Unlicense"
] | null | null | null | #include "MargolusNeighborhoodSimulatorOpenCL.h"
#include <iostream>
#include <fstream>
inline int randomNumber(int low, int high)
{
return low + rand() / (RAND_MAX / (high - low));
}
MargolusNeighborhoodSimulatorOpenCL::MargolusNeighborhoodSimulatorOpenCL(bool useGpu, int platformId, int deviceId)
{
srand(static_c... | 49.180812 | 235 | 0.742047 | bernhardrieder |
ce0642bd0413b578bf56cc463b50c3903b1b68f7 | 9,456 | cpp | C++ | ngraph/test/backend/split.in.cpp | artyomtugaryov/openvino | f2c2636bb52ff6a6c6d2b4dba89fad666a66c96f | [
"Apache-2.0"
] | null | null | null | ngraph/test/backend/split.in.cpp | artyomtugaryov/openvino | f2c2636bb52ff6a6c6d2b4dba89fad666a66c96f | [
"Apache-2.0"
] | null | null | null | ngraph/test/backend/split.in.cpp | artyomtugaryov/openvino | f2c2636bb52ff6a6c6d2b4dba89fad666a66c96f | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 39.898734 | 99 | 0.646785 | artyomtugaryov |
ce0698b2a75fcf88040ce21cb13cafcedc0393a0 | 668 | hpp | C++ | ReactNativeFrontend/ios/Pods/boost/boost/math/tools/tuple.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 310 | 2017-02-02T09:14:48.000Z | 2022-03-21T06:50:11.000Z | ReactNativeFrontend/ios/Pods/boost/boost/math/tools/tuple.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 61 | 2017-01-22T20:35:25.000Z | 2019-12-13T14:48:46.000Z | ReactNativeFrontend/ios/Pods/boost/boost/math/tools/tuple.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 54 | 2017-03-02T06:55:57.000Z | 2022-02-21T01:12:20.000Z | // (C) Copyright John Maddock 2010.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_MATH_TUPLE_HPP_INCLUDED
#define BOOST_MATH_TUPLE_HPP_INCLUDED
#include <boost... | 23.857143 | 68 | 0.736527 | Harshitha91 |
ce12fcf0d052224457f167be80fba405b4bbb754 | 1,101 | cpp | C++ | src/core/cpp/model/RevoluteJoint.cpp | NeroGames/Nero-Game-Engine | 8543b8bb142738aa28bc20e929b342d3e6df066e | [
"MIT"
] | 26 | 2020-09-02T18:14:36.000Z | 2022-02-08T18:28:36.000Z | src/core/cpp/model/RevoluteJoint.cpp | sk-landry/Nero-Game-Engine | 8543b8bb142738aa28bc20e929b342d3e6df066e | [
"MIT"
] | 14 | 2020-08-30T01:37:04.000Z | 2021-07-19T20:47:29.000Z | src/core/cpp/model/RevoluteJoint.cpp | sk-landry/Nero-Game-Engine | 8543b8bb142738aa28bc20e929b342d3e6df066e | [
"MIT"
] | 6 | 2020-09-02T18:14:57.000Z | 2021-12-31T00:32:09.000Z | ////////////////////////////////////////////////////////////
// Nero Game Engine
// Copyright (c) 2016-2020 Sanou A. K. Landry
////////////////////////////////////////////////////////////
///////////////////////////HEADERS//////////////////////////
//NERO
#include <Nero/core/cpp/model/RevoluteJoint.h>
/////////////////... | 23.934783 | 66 | 0.485014 | NeroGames |
ce17fb2a04fcb71df4f6129c11f75cf0b2fe25e6 | 6,322 | cc | C++ | Fleece/Core/Doc.cc | KraemerDEM/fleece | 41e8d9e576f59f1373866ff3db1f319ecb10ad69 | [
"Apache-2.0"
] | null | null | null | Fleece/Core/Doc.cc | KraemerDEM/fleece | 41e8d9e576f59f1373866ff3db1f319ecb10ad69 | [
"Apache-2.0"
] | null | null | null | Fleece/Core/Doc.cc | KraemerDEM/fleece | 41e8d9e576f59f1373866ff3db1f319ecb10ad69 | [
"Apache-2.0"
] | null | null | null | //
// Doc.cc
//
// Copyright © 2018 Couchbase. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required ... | 29.404651 | 130 | 0.575767 | KraemerDEM |
ce1965d30c8b195c8b0e749058dc71e4f7b76ac2 | 1,042 | cxx | C++ | Software/CPU/myscrypt/build/cmake-3.12.3/Source/cmDisallowedCommand.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 2 | 2019-02-08T08:45:27.000Z | 2020-09-07T05:55:18.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Source/cmDisallowedCommand.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 3 | 2021-09-08T02:18:00.000Z | 2022-03-12T00:39:44.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Source/cmDisallowedCommand.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 1 | 2018-06-04T08:50:33.000Z | 2018-06-04T08:50:33.000Z | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmDisallowedCommand.h"
#include "cmMakefile.h"
#include "cmake.h"
class cmExecutionStatus;
bool cmDisallowedCommand::InitialPass(std::vector<std::string> const... | 32.5625 | 79 | 0.672745 | duonglvtnaist |
ce1ab38d768b61712c4d3e2337a8df6c6f949ab8 | 1,894 | cpp | C++ | hard/0381randomizedCollection.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | hard/0381randomizedCollection.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | hard/0381randomizedCollection.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
class RandomizedCollection {
private:
unordered_map<int, unordered_set<int>> index; // 保存数出现的位置index
vector<int> nums;
public:
/** Initialize your data structure here. */
RandomizedCollection... | 35.074074 | 123 | 0.639388 | wanghengg |
ce1bd7feb0c627c86e9d47eba759dc98a4be38f1 | 749 | hpp | C++ | qubus/include/qubus/isl/pw_aff.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/include/qubus/isl/pw_aff.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/include/qubus/isl/pw_aff.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | #ifndef QUBUS_ISL_PW_AFF_HPP
#define QUBUS_ISL_PW_AFF_HPP
#include <qubus/isl/set.hpp>
#include <qubus/isl/map.hpp>
#include <qubus/isl/value.hpp>
#include <isl/aff.h>
namespace qubus
{
namespace isl
{
class pw_aff
{
public:
explicit pw_aff(isl_pw_aff* handle_);
pw_aff(const pw_aff& other);
~pw_aff();... | 15.604167 | 50 | 0.703605 | qubusproject |
ce1d3812e64f2c8bb4bd12d1fc12c575eb357a8e | 7,324 | cc | C++ | kythe/cxx/doc/doc.cc | bef0/kythe | 2adcb540ae9dbd61879315a5ade8d3716ee3d3d8 | [
"Apache-2.0"
] | null | null | null | kythe/cxx/doc/doc.cc | bef0/kythe | 2adcb540ae9dbd61879315a5ade8d3716ee3d3d8 | [
"Apache-2.0"
] | null | null | null | kythe/cxx/doc/doc.cc | bef0/kythe | 2adcb540ae9dbd61879315a5ade8d3716ee3d3d8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 The Kythe Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 35.553398 | 82 | 0.684872 | bef0 |
ce1d8b7711c1b2bc638f9f6fee4ea68f4f1a8eec | 331 | cpp | C++ | src/cpp/rand.cpp | cedrikaagaard/thistlethwaite | f6bf5cb42cd36f066cd5d51de77ff589004ed7af | [
"Unlicense"
] | 2 | 2018-08-02T09:34:38.000Z | 2022-02-21T05:17:14.000Z | src/cpp/rand.cpp | cedrikaagaard/thistlethwaite | f6bf5cb42cd36f066cd5d51de77ff589004ed7af | [
"Unlicense"
] | null | null | null | src/cpp/rand.cpp | cedrikaagaard/thistlethwaite | f6bf5cb42cd36f066cd5d51de77ff589004ed7af | [
"Unlicense"
] | null | null | null | #include <vector>
#include <sstream>
#include "rand.hpp"
#include "enums.hpp"
rotation get_random_rotation() {
return (rotation) (rand() % 12);
}
std::string thistlethwaite::get_random_rotations(const int &n) {
std::stringstream ss;
for (int i = 0; i < n; i++) {
ss << rottoa(get_random_rotation());
}
return ... | 18.388889 | 64 | 0.667674 | cedrikaagaard |
ce1e047632d6b27fc8579f9352ee6df00b2e5a4d | 3,635 | cpp | C++ | DearPyGui/src/core/AppItems/nodes/mvNode.cpp | NamWoo/DearPyGui | da4a3c7a0dbb3d5dfd8b0a7991521890ddd3e513 | [
"MIT"
] | null | null | null | DearPyGui/src/core/AppItems/nodes/mvNode.cpp | NamWoo/DearPyGui | da4a3c7a0dbb3d5dfd8b0a7991521890ddd3e513 | [
"MIT"
] | null | null | null | DearPyGui/src/core/AppItems/nodes/mvNode.cpp | NamWoo/DearPyGui | da4a3c7a0dbb3d5dfd8b0a7991521890ddd3e513 | [
"MIT"
] | null | null | null | #include "mvNode.h"
#include <imnodes.h>
#include "mvApp.h"
#include "mvLog.h"
#include "mvItemRegistry.h"
#include "mvImNodesThemeScope.h"
#include "mvFontScope.h"
#include "mvPythonExceptions.h"
namespace Marvel {
static std::string FindRenderedTextEnd(const char* text, const char* text_end = nullptr)
{
int siz... | 23.603896 | 128 | 0.689133 | NamWoo |
ce21f257e0df8914cc123c7d107948398b2f22bc | 100 | cpp | C++ | src/_sample/_sample.cpp | sacrificerXY/base-cpp-cmake-doctest | 2f2020affabce2cdeb552aea0ad7fff7cce6a5ad | [
"Unlicense"
] | 1 | 2020-06-19T17:29:50.000Z | 2020-06-19T17:29:50.000Z | src/_sample/_sample.cpp | sacrificerXY/base-cpp-cmake-doctest-sfml-imgui | 7cb0b647f111eb94f6b5ded6c9a14faea764423d | [
"Unlicense"
] | null | null | null | src/_sample/_sample.cpp | sacrificerXY/base-cpp-cmake-doctest-sfml-imgui | 7cb0b647f111eb94f6b5ded6c9a14faea764423d | [
"Unlicense"
] | null | null | null | #include <_sample/_sample.h>
foo::foo(int bar): bar{bar} {}
void foo::add(int x) { bar += x; }
| 20 | 35 | 0.58 | sacrificerXY |
ce2780b5b5a30459f87d7568b78a1dd5b25f299c | 2,602 | hpp | C++ | libmeasure/common/CMgmt.hpp | akiml/ampehre | 383a863442574ea2e6a6ac853a9b99e153daeccf | [
"BSD-2-Clause"
] | 3 | 2016-01-20T13:41:52.000Z | 2018-04-10T17:50:49.000Z | libmeasure/common/CMgmt.hpp | akiml/ampehre | 383a863442574ea2e6a6ac853a9b99e153daeccf | [
"BSD-2-Clause"
] | null | null | null | libmeasure/common/CMgmt.hpp | akiml/ampehre | 383a863442574ea2e6a6ac853a9b99e153daeccf | [
"BSD-2-Clause"
] | null | null | null | /*
* CMgmt.hpp
*
* Copyright (C) 2015, Achim Lösch <[email protected]>, Christoph Knorr <[email protected]>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*
* encoding: UTF-8
* tab size: 4
*
* ... | 32.123457 | 201 | 0.714066 | akiml |
ce2a94e8f660d3fa8a5f4e4207dbc93374709a30 | 6,558 | cpp | C++ | src/plugins/anim/nodes/loaders/amc.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 232 | 2017-10-09T11:45:28.000Z | 2022-03-28T11:14:46.000Z | src/plugins/anim/nodes/loaders/amc.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 26 | 2019-01-20T21:38:25.000Z | 2021-10-16T03:57:17.000Z | src/plugins/anim/nodes/loaders/amc.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 33 | 2017-10-26T19:20:38.000Z | 2022-03-16T11:21:43.000Z | #include <OpenEXR/ImathMatrixAlgo.h>
#include <actions/io.h>
#include <possumwood_sdk/datatypes/filename.h>
#include <possumwood_sdk/node_implementation.h>
#include <boost/filesystem.hpp>
#include <boost/lexical_cast.hpp>
#include <fstream>
#include <unordered_map>
#include "datatypes/animation.h"
#include "tokenizer... | 26.877049 | 110 | 0.655078 | martin-pr |
ce2c80dce1ad26804c366ba833a063f7ba431034 | 400,339 | cpp | C++ | edk/edkImages/poweredEDKColor.cpp | Edimartin/edk-source | de9a152e91344e201669b0421e5f44dea40cebf9 | [
"MIT"
] | null | null | null | edk/edkImages/poweredEDKColor.cpp | Edimartin/edk-source | de9a152e91344e201669b0421e5f44dea40cebf9 | [
"MIT"
] | null | null | null | edk/edkImages/poweredEDKColor.cpp | Edimartin/edk-source | de9a152e91344e201669b0421e5f44dea40cebf9 | [
"MIT"
] | null | null | null | #include "poweredEDKColor.h"
/*
Library C++ poweredEDKColor - Image with powered by edk technology for be used in background with color.
Copyright 2013 Eduardo Moura Sales Martins ([email protected])
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documen... | 186.986922 | 203 | 0.693762 | Edimartin |
ce30d6abd9aa31cfd6ea9aa713a3fa5e8546651c | 4,665 | cpp | C++ | navaEngine/navaEngine/src/apps/TestGame.cpp | vkramer/navaEngine | 9fa4cea9a9002ac62b548ec8c73b7984aed73ecb | [
"MIT"
] | 7 | 2018-08-04T00:25:10.000Z | 2021-02-23T04:16:34.000Z | navaEngine/navaEngine/src/apps/TestGame.cpp | vkramer/navaEngine | 9fa4cea9a9002ac62b548ec8c73b7984aed73ecb | [
"MIT"
] | null | null | null | navaEngine/navaEngine/src/apps/TestGame.cpp | vkramer/navaEngine | 9fa4cea9a9002ac62b548ec8c73b7984aed73ecb | [
"MIT"
] | 2 | 2018-03-13T08:24:33.000Z | 2019-07-30T21:02:55.000Z | #include "TestGame.h"
#include "../engine/components/model/Vertex.h"
#include "../engine/shader/BasicShader.h"
#include "../engine/components/renderer/Renderer.h"
#include "../engine/components/camera/Camera.h"
#include <glfw/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/typ... | 46.65 | 125 | 0.612862 | vkramer |
ce32028d05bcf3e2e6dfece8859d92176a6ab5f6 | 1,870 | cpp | C++ | src/dynarmic/common/x64_disassemble.cpp | Morph1984/dynarmic | 4dcebc18228114761ad9dc6a3543bcd4f3317396 | [
"0BSD"
] | 573 | 2016-08-31T20:21:20.000Z | 2021-08-29T14:01:11.000Z | src/dynarmic/common/x64_disassemble.cpp | xerpi/dynarmic | bcfe377aaa5138af740e90af5be7a7dff7b62a52 | [
"0BSD"
] | 366 | 2016-09-02T06:37:43.000Z | 2021-08-11T18:38:24.000Z | src/dynarmic/common/x64_disassemble.cpp | xerpi/dynarmic | bcfe377aaa5138af740e90af5be7a7dff7b62a52 | [
"0BSD"
] | 135 | 2016-09-01T02:02:58.000Z | 2021-08-13T01:25:22.000Z | /* This file is part of the dynarmic project.
* Copyright (c) 2021 MerryMage
* SPDX-License-Identifier: 0BSD
*/
#include "dynarmic/common/x64_disassemble.h"
#include <Zydis/Zydis.h>
#include <fmt/printf.h>
#include "dynarmic/common/common_types.h"
namespace Dynarmic::Common {
void DumpDisassembledX64(const void... | 32.807018 | 131 | 0.716043 | Morph1984 |
ce339a34006767ba97621f417f892638c3bf02bb | 1,116 | cpp | C++ | 3DLfC4D/source/PluginManager.cpp | FMalmberg/3Delight-for-Cinema-4D | 78e7e81044fed4226c3613f46edb1e80c58247d6 | [
"MIT"
] | 3 | 2018-10-06T17:05:53.000Z | 2020-06-29T21:31:11.000Z | 3DLfC4D/source/PluginManager.cpp | FMalmberg/3Delight-for-Cinema-4D | 78e7e81044fed4226c3613f46edb1e80c58247d6 | [
"MIT"
] | 28 | 2018-11-14T19:08:18.000Z | 2019-06-30T10:25:13.000Z | 3DLfC4D/source/PluginManager.cpp | FMalmberg/3Delight-for-Cinema-4D | 78e7e81044fed4226c3613f46edb1e80c58247d6 | [
"MIT"
] | 6 | 2018-08-29T11:02:39.000Z | 2019-05-13T13:35:17.000Z | #include "PluginManager.h"
#include "c4d.h"
using namespace std;
class HookDeleter{
public:
void operator()(DL_Hook* hook){
if(hook){
hook->Free();
}
}
};
PluginManager::~PluginManager(){
}
long PluginManager::GetAPIVersion(){
return DL_API_VERSION;
}
void PluginManager::RegisterHook(HookAllocator alloca... | 19.241379 | 93 | 0.724014 | FMalmberg |
ce36729597b2f6e736aef061459c759da757b499 | 12,013 | hpp | C++ | include/tdc/stat/phase.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | null | null | null | include/tdc/stat/phase.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | null | null | null | include/tdc/stat/phase.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | null | null | null | #pragma once
#include <concepts>
#include <functional>
#include <memory>
#include <string>
#include <utility>
#include "phase_extension.hpp"
#include "json.hpp"
namespace tdc {
namespace stat {
/// \brief Represents a runtime statistics phase.
///
/// Phases are used to track statistics like runtime and memory allo... | 33.369444 | 130 | 0.643053 | herlez |
ce44d3676cdb620fb67665568474e477e8849dec | 13,833 | cpp | C++ | Onboard-SDK-ROS/dji_sdk_demo/src/demo_flight_control.cpp | NMMI/aerial-alter-ego | ba6517ecc1986e4808f6c17df3348dc5637d9cf7 | [
"BSD-3-Clause"
] | 1 | 2018-11-06T12:06:28.000Z | 2018-11-06T12:06:28.000Z | src/Onboard-SDK-ROS-3.6/dji_sdk_demo/src/demo_flight_control_original.cpp | isuran/droneautomation | c53017f8c8d4c03e3095ec7b6269d5a2659489e5 | [
"MIT"
] | null | null | null | src/Onboard-SDK-ROS-3.6/dji_sdk_demo/src/demo_flight_control_original.cpp | isuran/droneautomation | c53017f8c8d4c03e3095ec7b6269d5a2659489e5 | [
"MIT"
] | 2 | 2021-05-18T07:04:23.000Z | 2021-05-23T13:22:13.000Z | /** @file demo_flight_control.cpp
* @version 3.3
* @date May, 2017
*
* @brief
* demo sample of how to use flight control APIs
*
* @copyright 2017 DJI. All rights reserved.
*
*/
#include "dji_sdk_demo/demo_flight_control.h"
#include "dji_sdk/dji_sdk.h"
const float deg2rad = C_PI/180.0;
const float rad2de... | 27.337945 | 132 | 0.672739 | NMMI |
ce45cbd966372909b417ea75fa8e583c8df9f6e8 | 1,238 | cpp | C++ | leetcode/problems/easy/463-island-perimeter.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | leetcode/problems/easy/463-island-perimeter.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | leetcode/problems/easy/463-island-perimeter.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Island Perimeter
You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water.
Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.e., one or more connected land cells).
Th... | 30.95 | 239 | 0.555735 | wingkwong |
ce48b5b5c2ab35e3770e41793b7575e79e46b58a | 2,988 | cpp | C++ | src/armnn/layers/SpaceToBatchNdLayer.cpp | muthukumaravel7/armnn | 879ec231203df5b0a94462c0b247dc7d8d8a7a44 | [
"MIT"
] | null | null | null | src/armnn/layers/SpaceToBatchNdLayer.cpp | muthukumaravel7/armnn | 879ec231203df5b0a94462c0b247dc7d8d8a7a44 | [
"MIT"
] | null | null | null | src/armnn/layers/SpaceToBatchNdLayer.cpp | muthukumaravel7/armnn | 879ec231203df5b0a94462c0b247dc7d8d8a7a44 | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "SpaceToBatchNdLayer.hpp"
#include "LayerCloneBase.hpp"
#include <armnn/TypesUtils.hpp>
#include <armnnUtils/DataLayoutIndexed.hpp>
#include <backendsCommon/WorkloadData.hpp>
#include <backendsCommon/WorkloadFactory.hpp... | 33.2 | 114 | 0.716533 | muthukumaravel7 |
ce4a9668daf057808b4a31b4221ead86e3b42ee0 | 15,439 | hpp | C++ | Include/LIEF/PE/Binary.hpp | RaniaJarraya/fraudulent_behavior_detection | d1506603fd3468a6c106c73d4880623c5a9b4869 | [
"BSD-3-Clause"
] | 54 | 2020-01-29T18:44:56.000Z | 2022-03-14T11:24:59.000Z | Include/LIEF/PE/Binary.hpp | RaniaJarraya/fraudulent_behavior_detection | d1506603fd3468a6c106c73d4880623c5a9b4869 | [
"BSD-3-Clause"
] | 13 | 2021-03-19T09:25:18.000Z | 2022-02-10T12:15:24.000Z | Include/LIEF/PE/Binary.hpp | RaniaJarraya/fraudulent_behavior_detection | d1506603fd3468a6c106c73d4880623c5a9b4869 | [
"BSD-3-Clause"
] | 8 | 2019-05-19T11:24:28.000Z | 2022-02-16T20:19:30.000Z | /* Copyright 2017 R. Thomas
* Copyright 2017 Quarkslab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 34.772523 | 177 | 0.658592 | RaniaJarraya |
ce512d1d8c230afd75330de8b02071309b37e10f | 1,558 | cpp | C++ | codeforces/ITMO academy pilot course/segment tree 1/step1/segment tree minimum.cpp | punnapavankumar9/coding-platforms | 264803330f5b3857160ec809c0d79cba1aa479a3 | [
"MIT"
] | null | null | null | codeforces/ITMO academy pilot course/segment tree 1/step1/segment tree minimum.cpp | punnapavankumar9/coding-platforms | 264803330f5b3857160ec809c0d79cba1aa479a3 | [
"MIT"
] | null | null | null | codeforces/ITMO academy pilot course/segment tree 1/step1/segment tree minimum.cpp | punnapavankumar9/coding-platforms | 264803330f5b3857160ec809c0d79cba1aa479a3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <climits>
using namespace std;
const int N =1e6+2;
typedef long long ll;
ll tree[4*N];
ll arr[N];
void build(int node, int st, int en){
if(st == en){
tree[node] = arr[st];
return;
}
int mid = (st + en) / 2;
build(node * 2, st , mid);
build(node* 2 +1, mi... | 20.773333 | 56 | 0.439024 | punnapavankumar9 |
ce550df7d8325229e116695e1236a8bc15e35833 | 10,928 | cpp | C++ | src/bytecode/BytecodeGenerator.cpp | tadeuzagallo/reach-lang | 52cd57074afd27df38d68dbfcfe7e9e43a6ab464 | [
"MIT"
] | null | null | null | src/bytecode/BytecodeGenerator.cpp | tadeuzagallo/reach-lang | 52cd57074afd27df38d68dbfcfe7e9e43a6ab464 | [
"MIT"
] | null | null | null | src/bytecode/BytecodeGenerator.cpp | tadeuzagallo/reach-lang | 52cd57074afd27df38d68dbfcfe7e9e43a6ab464 | [
"MIT"
] | null | null | null | #include "BytecodeGenerator.h"
#include "Instructions.h"
BytecodeGenerator::BytecodeGenerator(VM& vm, std::string name)
: m_vm(vm)
, m_block(vm, name)
{
emit<Enter>();
}
BytecodeGenerator::~BytecodeGenerator()
{
m_block.destroy(m_vm);
}
BytecodeBlock* BytecodeGenerator::finalize(Register result)
{
... | 26.460048 | 143 | 0.730783 | tadeuzagallo |
ce55bce75d586bfd05c8017768c1781e5e79ef4e | 2,883 | hpp | C++ | Protocols/HemiPrep.hpp | triplewz/MP-SPDZ | a858e5b440902ec25dbb97c555eef35e12fbf69c | [
"BSD-2-Clause"
] | null | null | null | Protocols/HemiPrep.hpp | triplewz/MP-SPDZ | a858e5b440902ec25dbb97c555eef35e12fbf69c | [
"BSD-2-Clause"
] | null | null | null | Protocols/HemiPrep.hpp | triplewz/MP-SPDZ | a858e5b440902ec25dbb97c555eef35e12fbf69c | [
"BSD-2-Clause"
] | null | null | null | /*
* HemiPrep.hpp
*
*/
#ifndef PROTOCOLS_HEMIPREP_HPP_
#define PROTOCOLS_HEMIPREP_HPP_
#include "HemiPrep.h"
#include "FHEOffline/PairwiseMachine.h"
#include "Tools/Bundle.h"
template<class T>
PairwiseMachine* HemiPrep<T>::pairwise_machine = 0;
template<class T>
Lock HemiPrep<T>::lock;
template<class T>
void He... | 25.289474 | 74 | 0.642733 | triplewz |
ce5681ca952dd01f5ec6da2512b7ef9a5c1fb190 | 806 | cpp | C++ | src/targets/cpu/target.cpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | null | null | null | src/targets/cpu/target.cpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | null | null | null | src/targets/cpu/target.cpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | null | null | null |
#include <migraphx/cpu/target.hpp>
#include <migraphx/cpu/lowering.hpp>
#include <migraphx/pass.hpp>
#include <migraphx/auto_contiguous.hpp>
#include <migraphx/rewrite_rnn.hpp>
#include <migraphx/dead_code_elimination.hpp>
#include <migraphx/generate.hpp>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
nam... | 26 | 79 | 0.703474 | aaronenyeshi |
ce58350f1ba1ff47af8a4ddd26dbeb3f4d3a0b1a | 8,047 | cpp | C++ | src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/netfs/client/ShareNode.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 4 | 2016-03-29T21:45:21.000Z | 2016-12-20T00:50:38.000Z | src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/netfs/client/ShareNode.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | null | null | null | src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/netfs/client/ShareNode.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 3 | 2018-12-17T13:07:38.000Z | 2021-09-08T13:07:31.000Z | // ShareNode.cpp
#include "ShareAttrDir.h"
#include "ShareNode.h"
// constructor
ShareDirEntry::ShareDirEntry(ShareDir* directory, const char* name,
ShareNode* node)
: Referencable(true),
fDirectory(directory),
fName(name),
fNode(node),
fRevision(-1)
{
}
// destructor
ShareDirEntry::~ShareDirEntry()
{
... | 15.594961 | 75 | 0.732571 | axeld |
ce5b693f2096dfde1f4209ad67d48c3a85bd6977 | 3,151 | hpp | C++ | ql/processes/hullwhiteprocess.hpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 3,358 | 2015-12-18T02:56:17.000Z | 2022-03-31T02:42:47.000Z | ql/processes/hullwhiteprocess.hpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 965 | 2015-12-21T10:35:28.000Z | 2022-03-30T02:47:00.000Z | ql/processes/hullwhiteprocess.hpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 1,663 | 2015-12-17T17:45:38.000Z | 2022-03-31T07:58:29.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2006 Banca Profilo S.p.A.
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute i... | 34.25 | 79 | 0.6563 | jiangjiali |
ce5f73d71f890b815fb7712f61a244c617624336 | 7,450 | cpp | C++ | cam_QGuide.cpp | arran-dengate/phd2-automated-mount-fork | 3f03fe385b53eb46a46766074ca727ea95e66910 | [
"BSD-3-Clause"
] | null | null | null | cam_QGuide.cpp | arran-dengate/phd2-automated-mount-fork | 3f03fe385b53eb46a46766074ca727ea95e66910 | [
"BSD-3-Clause"
] | null | null | null | cam_QGuide.cpp | arran-dengate/phd2-automated-mount-fork | 3f03fe385b53eb46a46766074ca727ea95e66910 | [
"BSD-3-Clause"
] | null | null | null | /*
* cam_QGuide.cpp
* PHD Guiding
*
* Created by Craig Stark.
* Copyright (c) 2007-2010 Craig Stark.
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, are permitted... | 30.284553 | 111 | 0.61651 | arran-dengate |
ce60530ea503d03827bb08677826311f42924efa | 1,132 | cpp | C++ | src/core/nodes/node_base.cpp | Ratstail91/zelda-framework | 54e94fe7d69271a514142406355199e8dbcccd38 | [
"Zlib"
] | 5 | 2021-04-26T19:55:40.000Z | 2021-07-20T08:34:57.000Z | src/core/nodes/node_base.cpp | Ratstail91/zelda-framework | 54e94fe7d69271a514142406355199e8dbcccd38 | [
"Zlib"
] | null | null | null | src/core/nodes/node_base.cpp | Ratstail91/zelda-framework | 54e94fe7d69271a514142406355199e8dbcccd38 | [
"Zlib"
] | null | null | null | #include "node_base.hpp"
#include <stdexcept>
NodeBase* NodeBase::AddChild(NodeBase* const ptr) {
for (NodeBase* it = parent; it != nullptr; it = it->parent) {
if (it == ptr) {
std::logic_error("Looping hierarchy found");
}
}
children.push_back(ptr);
ptr->parent = this;
return ptr;
}
NodeBase* NodeBase:... | 20.962963 | 62 | 0.650177 | Ratstail91 |
ce607df48faad17d36ba64da20d5b5d3db62ee58 | 2,555 | cc | C++ | algorithms/tests/stack_using_link_list_tests.cc | TusharJadhav/algorithms | eea5120f7d54d82e07eb71677df442248cb50286 | [
"MIT"
] | null | null | null | algorithms/tests/stack_using_link_list_tests.cc | TusharJadhav/algorithms | eea5120f7d54d82e07eb71677df442248cb50286 | [
"MIT"
] | null | null | null | algorithms/tests/stack_using_link_list_tests.cc | TusharJadhav/algorithms | eea5120f7d54d82e07eb71677df442248cb50286 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "stack_using_link_list.h"
#include <string>
using namespace testing;
using namespace algorithms;
TEST(StackUsingLinkListTests, TestInitiallEmpty) {
StackUsingLinkList<int> my_stack;
EXPECT_TRUE(my_stack.Empty()) << "Initially the stack is supposed to ... | 26.894737 | 128 | 0.720157 | TusharJadhav |
ce61635ccca3ad3348a1089ee05f6524c5ecd7d3 | 17,699 | cpp | C++ | AlexCrutch/src/main.cpp | TomMinuzzo/CSALEX2022 | 28513f5e60cee890913c0c5d63fd9e3fcdf4039c | [
"Apache-2.0"
] | null | null | null | AlexCrutch/src/main.cpp | TomMinuzzo/CSALEX2022 | 28513f5e60cee890913c0c5d63fd9e3fcdf4039c | [
"Apache-2.0"
] | null | null | null | AlexCrutch/src/main.cpp | TomMinuzzo/CSALEX2022 | 28513f5e60cee890913c0c5d63fd9e3fcdf4039c | [
"Apache-2.0"
] | null | null | null | /*
* CANopen main program file for Linux SocketCAN.
*
* @file main
* @author Janez Paternoster
* @copyright 2015 Janez Paternoster
*
* This file is part of CANopenSocket, a Linux implementation of CANopen
* stack with master functionality. Project home page is
* <https://github.com/CANopenNode/CA... | 34.90927 | 224 | 0.607548 | TomMinuzzo |
ce62629d46ebb99c0596ba8e4201ba606fc24424 | 4,488 | cpp | C++ | src/arch/Lights/LightsDriver_Linux_PIUIO.cpp | Midiman/stepmania | a55d5d614c4caa8b035b9b7cdca94017baba026b | [
"MIT"
] | null | null | null | src/arch/Lights/LightsDriver_Linux_PIUIO.cpp | Midiman/stepmania | a55d5d614c4caa8b035b9b7cdca94017baba026b | [
"MIT"
] | null | null | null | src/arch/Lights/LightsDriver_Linux_PIUIO.cpp | Midiman/stepmania | a55d5d614c4caa8b035b9b7cdca94017baba026b | [
"MIT"
] | null | null | null | #include "global.h"
#include <stdio.h>
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#if defined(HAVE_FCNTL_H)
#include <fcntl.h>
#endif
#include <errno.h>
#include "LightsDriver_Linux_PIUIO.h"
#include "GameState.h"
#include "Game.h"
#include "RageLog.h"
REGISTER... | 41.174312 | 101 | 0.738414 | Midiman |
ce6412410768fa4b36aa19e8ed8956bc19d443a5 | 1,916 | cc | C++ | tensorpipe/common/allocator.cc | pruthvistony/tensorpipe | 3424d81160325e50ae9e001d0121e4f769dc30ac | [
"BSD-3-Clause"
] | null | null | null | tensorpipe/common/allocator.cc | pruthvistony/tensorpipe | 3424d81160325e50ae9e001d0121e4f769dc30ac | [
"BSD-3-Clause"
] | null | null | null | tensorpipe/common/allocator.cc | pruthvistony/tensorpipe | 3424d81160325e50ae9e001d0121e4f769dc30ac | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <tensorpipe/common/allocator.h>
#include <tensorpipe/common/defs.h>
#include <tensorpipe/co... | 23.365854 | 73 | 0.681106 | pruthvistony |
ce66764feb31359d1c044557f0c3d3c5692510af | 1,868 | cpp | C++ | logdevice/common/protocol/GET_TRIM_POINT_Message.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | 1 | 2021-05-19T23:01:58.000Z | 2021-05-19T23:01:58.000Z | logdevice/common/protocol/GET_TRIM_POINT_Message.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | null | null | null | logdevice/common/protocol/GET_TRIM_POINT_Message.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "GET_TRIM_POINT_Message.h"
#include "logdevice/common/GetTrimPointRequest.h"
... | 31.661017 | 79 | 0.74197 | mickvav |
ce6accfbd1cb498f4cff888c284255dd88c5dc79 | 861 | cpp | C++ | p817_Linked_List_Components/p817.cpp | Song1996/Leetcode | ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb | [
"MIT"
] | null | null | null | p817_Linked_List_Components/p817.cpp | Song1996/Leetcode | ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb | [
"MIT"
] | null | null | null | p817_Linked_List_Components/p817.cpp | Song1996/Leetcode | ecb0a2de67a57b899a12d0cb18272fb37dbf3ceb | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <string>
#include <cassert>
#include <stdlib.h>
#include <fstream>
#include <algorithm>
#include <cmath>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(... | 19.568182 | 55 | 0.509872 | Song1996 |
ce6c476c21468f71f5f22ef7fdd37473b6f3b587 | 974 | cpp | C++ | of/OF47.cpp | 4llenchan/dsa | 314991a32a24578dbf48e82ddded95804c95aa10 | [
"MIT"
] | null | null | null | of/OF47.cpp | 4llenchan/dsa | 314991a32a24578dbf48e82ddded95804c95aa10 | [
"MIT"
] | null | null | null | of/OF47.cpp | 4llenchan/dsa | 314991a32a24578dbf48e82ddded95804c95aa10 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <algorithm>
#include <unordered_map>
#include <vector>
#include "Common.h"
using namespace std;
class Solution {
public:
int maxValue(vector<vector<int>> &grid) {
/* 利用原矩阵进行dp值的保存 */
int m = grid.size(), n = grid[0].size();
/* 初始化第一行 */
for (int ... | 22.136364 | 66 | 0.448665 | 4llenchan |
706b33f0539b9dcd2a887f154ef431417c2d5442 | 25,802 | cpp | C++ | src/model_infer.cpp | WinstonLy/Ascend310Projects | 4535e1682fbd64e59644854574bab9e37cfdfdb4 | [
"MIT"
] | 10 | 2021-04-02T11:15:19.000Z | 2022-02-13T06:31:57.000Z | src/model_infer.cpp | WinstonLy/Ascend310Projects | 4535e1682fbd64e59644854574bab9e37cfdfdb4 | [
"MIT"
] | 1 | 2021-04-12T12:57:46.000Z | 2021-04-15T00:50:50.000Z | src/model_infer.cpp | WinstonLy/Ascend310Projects | 4535e1682fbd64e59644854574bab9e37cfdfdb4 | [
"MIT"
] | 3 | 2021-04-12T12:55:38.000Z | 2022-03-03T03:04:15.000Z | /*
* @Author: winston
* @Date: 2021-01-07 20:58:09
* @Last Modified by: WinstonLy
* @Last Modified time: 2021-04-16 14:38:31
* @Description:
* @FilePath: /home/winston/AscendProjects/rtsp_dvpp_infer_dvpp_rtmp_test/atlas200dk_yolov4/Electricity-Inspection-Based-Ascend310/src/model_infer.cpp
*/
#include "model_infe... | 34.265604 | 150 | 0.642508 | WinstonLy |
706bbd23157fb1b239e789593963a97aacd8a4cd | 790 | cpp | C++ | call_by_ref.cpp | kangwonlee/cpp_study | 22e2da7334ad273e6ba02a1928a323519bf9cabf | [
"BSD-3-Clause"
] | null | null | null | call_by_ref.cpp | kangwonlee/cpp_study | 22e2da7334ad273e6ba02a1928a323519bf9cabf | [
"BSD-3-Clause"
] | 8 | 2018-10-07T12:54:08.000Z | 2019-05-22T03:07:00.000Z | call_by_ref.cpp | kangwonlee/cpp_study | 22e2da7334ad273e6ba02a1928a323519bf9cabf | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <iomanip>
using namespace std;
void accumulate_array_ptr(double *, const double);
void accumulate_array_ref(double &, const double);
int main(const int argn, char *argv[]){
double update_this_with_pointer = 0.0;
double update_this_with_reference = 0.0;
for(int i=0; 10 > ... | 24.6875 | 72 | 0.660759 | kangwonlee |
706ee3bec8672761b1da3de992eb5c96fb5c21d8 | 19,245 | cpp | C++ | src/sprite.cpp | Kozma04/TinyCADE | fc4d2f070630e7c853591a5aa0dd9c421b53ee42 | [
"MIT"
] | 1 | 2022-03-22T06:21:30.000Z | 2022-03-22T06:21:30.000Z | src/sprite.cpp | Kozma04/TinyCADE | fc4d2f070630e7c853591a5aa0dd9c421b53ee42 | [
"MIT"
] | null | null | null | src/sprite.cpp | Kozma04/TinyCADE | fc4d2f070630e7c853591a5aa0dd9c421b53ee42 | [
"MIT"
] | null | null | null | #include "sprite.h"
#define SHIFT_MASK() \
mask >>= 1; \
if(mask == 0) { \
mask = 0b10000000; \
p_spr++; \
foo++; \
}
#define SHIFT_MASK_ALPHA() \
mask >>= 1; \
if(mask == 0) { \
mask = 0b10000000; ... | 33.645105 | 179 | 0.406547 | Kozma04 |
706ee5f7563b307d781e800085257e849b1c33cd | 798 | cpp | C++ | tests/v2/url/url_literal_tests.cpp | BioDataAnalysis/url | 281501b0fdf00b52eeb114f6856a9a83004d204e | [
"BSL-1.0"
] | 47 | 2019-08-24T13:43:45.000Z | 2022-02-21T11:45:19.000Z | tests/v2/url/url_literal_tests.cpp | BioDataAnalysis/url | 281501b0fdf00b52eeb114f6856a9a83004d204e | [
"BSL-1.0"
] | 35 | 2018-10-13T10:35:00.000Z | 2021-06-11T12:23:55.000Z | tests/v2/url/url_literal_tests.cpp | BioDataAnalysis/url | 281501b0fdf00b52eeb114f6856a9a83004d204e | [
"BSL-1.0"
] | 25 | 2019-02-19T02:46:21.000Z | 2021-10-21T14:53:00.000Z | // Copyright 2019-20 Glyn Matthews
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt of copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <algorithm>
#include <memory>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <skyr/v2/url.hpp>
using n... | 25.741935 | 61 | 0.709273 | BioDataAnalysis |
706f56f53f8bce06c9f8b77c225bf1d16e312755 | 5,117 | cpp | C++ | Win32xx/samples/GDIPlus/src/GDIPlusView.cpp | mufunyo/VisionRGBApp | c09092770032150083eda171a22b1a3ef0914dab | [
"Unlicense"
] | 2 | 2021-03-25T04:19:22.000Z | 2021-05-03T03:23:30.000Z | Win32xx/samples/GDIPlus/src/GDIPlusView.cpp | mufunyo/VisionRGBApp | c09092770032150083eda171a22b1a3ef0914dab | [
"Unlicense"
] | null | null | null | Win32xx/samples/GDIPlus/src/GDIPlusView.cpp | mufunyo/VisionRGBApp | c09092770032150083eda171a22b1a3ef0914dab | [
"Unlicense"
] | 1 | 2020-12-28T08:53:42.000Z | 2020-12-28T08:53:42.000Z | //////////////////////////////////////////////
// GDIPlusView.cpp
// Definitions for the CGDIPlusView class
#include "stdafx.h"
#include "GDIPlusView.h"
using namespace Gdiplus;
CGDIPlusView::CGDIPlusView()
{
// Initialize GDI+.
GdiplusStartupInput gdiplusStartupInput;
GdiplusStartup(&m_gdiplusToken, &g... | 29.24 | 87 | 0.651554 | mufunyo |
70715793a716153bbd9fbc8117eac91d14390cde | 68,819 | cpp | C++ | src/qt/src/gui/image/qpixmap.cpp | martende/phantomjs | 5cecd7dde7b8fd04ad2c036d16f09a8d2a139854 | [
"BSD-3-Clause"
] | 1 | 2015-04-05T12:31:20.000Z | 2015-04-05T12:31:20.000Z | src/qt/src/gui/image/qpixmap.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | src/qt/src/gui/image/qpixmap.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** ... | 29.973432 | 115 | 0.673622 | martende |
70718aa26e53cbb87a19b4f9a0f4c38eac7d0800 | 1,458 | cc | C++ | physics/gravity_netcdf.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | physics/gravity_netcdf.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | physics/gravity_netcdf.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | /**
* @file gravity_netcdf.cc
*/
#include <genecis/phsyics/gravity.h>
using namespace genecis::physics ;
/**
* Initialize netCDF file for recording data
*/
void gravity::init_netcdf( const char* filename,
const char* long_name )
{
_nc_file = new NcFile( filename, NcFile::Replace );
_nc_rec = 0 ;
if ( long_na... | 25.137931 | 86 | 0.687243 | Tibonium |
707810bc6546d6f01200d1b8703ab397a33ada10 | 2,614 | cpp | C++ | libs/crypto/tests/unit/aes_tests.cpp | marcuswin/ledger | b79c5c4e7e92ff02ea4328fcc0885bf8ded2b8b2 | [
"Apache-2.0"
] | 1 | 2019-09-11T09:46:04.000Z | 2019-09-11T09:46:04.000Z | libs/crypto/tests/unit/aes_tests.cpp | qati/ledger | e05a8f2d62ea1b79a704867d220cf307ef6b93b9 | [
"Apache-2.0"
] | null | null | null | libs/crypto/tests/unit/aes_tests.cpp | qati/ledger | e05a8f2d62ea1b79a704867d220cf307ef6b93b9 | [
"Apache-2.0"
] | 1 | 2019-09-19T12:38:46.000Z | 2019-09-19T12:38:46.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 34.853333 | 99 | 0.713466 | marcuswin |
70793019df6e8d0cfa87e7130fff1734ed430179 | 1,727 | hpp | C++ | libs/renderer/include/sge/renderer/index/buffer.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/include/sge/renderer/index/buffer.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/include/sge/renderer/index/buffer.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_RENDERER_INDEX_BUFFER_HPP_INCLUDED
#define SGE_RENDERER_INDEX_BUFFER_HPP_INCLUDED
#inc... | 27.854839 | 88 | 0.763752 | cpreh |
7079cc8af542ea107596cd7181181c0f974781f6 | 6,403 | cxx | C++ | samples/httptest/httptest.cxx | sverdlin/opalvoip-ptlib | f6e144cba6a94c2978b9a4dbe0df2f5d53bed3be | [
"Beerware"
] | null | null | null | samples/httptest/httptest.cxx | sverdlin/opalvoip-ptlib | f6e144cba6a94c2978b9a4dbe0df2f5d53bed3be | [
"Beerware"
] | null | null | null | samples/httptest/httptest.cxx | sverdlin/opalvoip-ptlib | f6e144cba6a94c2978b9a4dbe0df2f5d53bed3be | [
"Beerware"
] | null | null | null | //
// httptest.cxx
//
// Copyright 2011 Vox Lucida Pty. Ltd.
//
#include <ptlib.h>
#include <ptlib/pprocess.h>
#include <ptlib/sockets.h>
#include <ptclib/pssl.h>
#include <ptclib/http.h>
#include <ptclib/threadpool.h>
class HTTPConnection
{
public:
HTTPConnection(
PHTTPSpace & httpNameSpace
#if P_SSL
... | 25.923077 | 110 | 0.56864 | sverdlin |
707e59c0f74ea3662feec672701a34791ec2460c | 14,278 | hpp | C++ | Graphics/GraphicsEngineD3D12/include/RenderDeviceD3D12Impl.hpp | azhirnov/DiligentCore | 28ad08478938d8c910195eff169513cd4eef9e3e | [
"Apache-2.0"
] | null | null | null | Graphics/GraphicsEngineD3D12/include/RenderDeviceD3D12Impl.hpp | azhirnov/DiligentCore | 28ad08478938d8c910195eff169513cd4eef9e3e | [
"Apache-2.0"
] | null | null | null | Graphics/GraphicsEngineD3D12/include/RenderDeviceD3D12Impl.hpp | azhirnov/DiligentCore | 28ad08478938d8c910195eff169513cd4eef9e3e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2021 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... | 53.276119 | 171 | 0.682098 | azhirnov |
70838abdc5c4ce612be8b0b977f31e96456ecee1 | 848 | cpp | C++ | src/lunasa/common/Helpers.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | src/lunasa/common/Helpers.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | src/lunasa/common/Helpers.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include <cstring>
#include "faodel-common/StringHelpers.hh"
#include "lunasa/common/Helpers.hh"
#include "lunas... | 26.5 | 76 | 0.746462 | faodel |
70866c13ebb688f6ab92e9650f6c7a0e97686894 | 828 | hpp | C++ | include/RED4ext/Types/generated/world/PerformanceAreaNode.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/world/PerformanceAreaNode.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/world/PerformanceAreaNode.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Types/generated/world/QualitySetting.hpp>
#include <RED4ext/Types/generated/world/Trigge... | 28.551724 | 67 | 0.762077 | Cyberpunk-Extended-Development-Team |
708697aab604ed9ffb7c92cef97e49f9243a2cf0 | 19,121 | cpp | C++ | old/tests/VolumetricForward.cpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | 5 | 2018-08-16T00:55:33.000Z | 2020-06-19T14:30:17.000Z | old/tests/VolumetricForward.cpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | old/tests/VolumetricForward.cpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | #include "scene/BaseScene.hpp"
#include "common/CreateInfoBase.hpp"
#include "core/Instance.hpp"
#include "core/LogicalDevice.hpp"
#include "resource/DescriptorPool.hpp"
#include "resource/Buffer.hpp"
#include "util/UtilitySphere.hpp"
#include "math/Ray.hpp"
#include "util/AABB.hpp"
#include "lights/Light.hpp"
#includ... | 44.571096 | 231 | 0.698028 | fuchstraumer |
708763dedd32925d0eb66905515208c01e525187 | 1,476 | cc | C++ | servlib/session/Subscriber.cc | delay-tolerant-networking/DTN2 | 1c12a9dea32c5cbae8c46db105012a2031f4161e | [
"Apache-2.0"
] | 14 | 2016-06-27T19:28:23.000Z | 2021-06-28T20:41:17.000Z | servlib/session/Subscriber.cc | delay-tolerant-networking/DTN2 | 1c12a9dea32c5cbae8c46db105012a2031f4161e | [
"Apache-2.0"
] | 3 | 2020-09-18T13:48:53.000Z | 2021-05-27T18:28:14.000Z | servlib/session/Subscriber.cc | lauramazzuca21/DTNME | c97b598b09a8c8e97c2e4136879d9f0e157c8df7 | [
"Apache-2.0"
] | 10 | 2020-09-26T05:08:40.000Z | 2022-01-25T12:57:55.000Z | /*
* Copyright 2007 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 27.333333 | 78 | 0.563686 | delay-tolerant-networking |
708cbcc4887a3b74d79504dd44d85f69dcb8cf4a | 10,647 | hpp | C++ | include/ShaderProgram.hpp | pinam45/UTBM_IN55_ParametricObjectsConstruction | 0bb92ccdf1e52b1715162d7934aaca736ffbc0e6 | [
"MIT"
] | null | null | null | include/ShaderProgram.hpp | pinam45/UTBM_IN55_ParametricObjectsConstruction | 0bb92ccdf1e52b1715162d7934aaca736ffbc0e6 | [
"MIT"
] | null | null | null | include/ShaderProgram.hpp | pinam45/UTBM_IN55_ParametricObjectsConstruction | 0bb92ccdf1e52b1715162d7934aaca736ffbc0e6 | [
"MIT"
] | null | null | null | /*****************************************************************************************
* *
* MIT License *
* ... | 32.361702 | 99 | 0.652484 | pinam45 |
7096a1bbcd2c4e7199e6127d65867669820439cf | 5,439 | cpp | C++ | Templates/Full/web/source/activex/IEWebGameWindow.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 2,113 | 2015-01-01T11:23:01.000Z | 2022-03-28T04:51:46.000Z | Templates/Full/web/source/activex/IEWebGameWindow.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 948 | 2015-01-02T01:50:00.000Z | 2022-02-27T05:56:40.000Z | Templates/Full/web/source/activex/IEWebGameWindow.cpp | vbillet/Torque3D | ece8823599424ea675e5f79d9bcb44e42cba8cae | [
"MIT"
] | 944 | 2015-01-01T09:33:53.000Z | 2022-03-15T22:23:03.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | 29.721311 | 115 | 0.616106 | vbillet |
7098d08f8428c82d2dcf2824d187fb1ce09fb70d | 2,169 | cpp | C++ | tests/lex/identifier_test.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | tests/lex/identifier_test.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | tests/lex/identifier_test.cpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #include "catch2/catch.hpp"
#include "helpers.hpp"
#include "lex/error.hpp"
namespace lex {
TEST_CASE("[lex] Lexing identifiers", "lex") {
SECTION("Valid") {
CHECK_TOKENS("hello", identiferToken("hello"));
CHECK_TOKENS("héllo", identiferToken("héllo"));
CHECK_TOKENS("_hello", identiferToken("_hello"));... | 34.983871 | 94 | 0.674504 | BastianBlokland |
709ed893ddce1531250294ae89f372f432eb61d3 | 2,011 | cpp | C++ | Plugins/EZOnline/Source/EZOnline/Private/EZClientGameMode.cpp | feixuwu/TankFire | c172cab5d5599ff066dfe17bb89945893fdee572 | [
"MIT"
] | 41 | 2018-02-14T04:12:40.000Z | 2022-03-14T09:24:37.000Z | Plugins/EZOnline/Source/EZOnline/Private/EZClientGameMode.cpp | feixuwu/TankFire | c172cab5d5599ff066dfe17bb89945893fdee572 | [
"MIT"
] | 3 | 2018-07-11T08:36:07.000Z | 2020-10-03T02:19:35.000Z | Plugins/EZOnline/Source/EZOnline/Private/EZClientGameMode.cpp | feixuwu/TankFire | c172cab5d5599ff066dfe17bb89945893fdee572 | [
"MIT"
] | 35 | 2018-03-05T07:08:23.000Z | 2022-03-28T11:17:17.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "EZClientGameMode.h"
#include "WebSocketBlueprintLibrary.h"
#include "EZOnline.h"
#include "CoreGlobals.h"
#include "Misc/ConfigCacheIni.h"
#include "EZOnlineGameInstance.h"
#include "GameMapsSettings.h"
#include "Kismet/KismetStri... | 31.421875 | 148 | 0.785182 | feixuwu |
709f2fddada471c05939ae742c729c996ff40dd3 | 6,703 | cpp | C++ | toonz/sources/toonz/celldata.cpp | rozhuk-im/opentoonz | ad5b632512746b97fd526aa79660fbaedf934fad | [
"BSD-3-Clause"
] | 3,710 | 2016-03-26T00:40:48.000Z | 2022-03-31T21:35:12.000Z | toonz/sources/toonz/celldata.cpp | rozhuk-im/opentoonz | ad5b632512746b97fd526aa79660fbaedf934fad | [
"BSD-3-Clause"
] | 4,246 | 2016-03-26T01:21:45.000Z | 2022-03-31T23:10:47.000Z | toonz/sources/toonz/celldata.cpp | rozhuk-im/opentoonz | ad5b632512746b97fd526aa79660fbaedf934fad | [
"BSD-3-Clause"
] | 633 | 2016-03-26T00:42:25.000Z | 2022-03-17T02:55:13.000Z |
#include "celldata.h"
#include <assert.h>
#include "toonz/txsheet.h"
#include "toonz/txshcolumn.h"
#include "toonz/txshleveltypes.h"
#include "toonz/txshzeraryfxcolumn.h"
#include "toonz/txshzeraryfxlevel.h"
#include "toonz/tcolumnfx.h"
#include "toonz/fxdag.h"
#include "toonz/txshlevelcolumn.h"
//-----------------... | 33.348259 | 79 | 0.556616 | rozhuk-im |
709f36bc42bf51e90025683787cb7c19e928c65c | 285 | cpp | C++ | fill/fill.cpp | danielkrupinski/cpp-playground | 0b02de70bfdbbc7ebb073180972b382231a198d4 | [
"MIT"
] | 1 | 2018-07-23T21:15:11.000Z | 2018-07-23T21:15:11.000Z | fill/fill.cpp | danielkrupinski/cpp-playground | 0b02de70bfdbbc7ebb073180972b382231a198d4 | [
"MIT"
] | null | null | null | fill/fill.cpp | danielkrupinski/cpp-playground | 0b02de70bfdbbc7ebb073180972b382231a198d4 | [
"MIT"
] | 3 | 2018-11-10T05:39:00.000Z | 2019-12-08T12:14:19.000Z | #include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
int main()
{
std::vector<int> v{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
std::fill(v.begin(), v.end(), 7);
std::copy(v.begin(), v.end(), std::ostream_iterator<int>{ std::cout, " " });
return 0;
}
| 20.357143 | 80 | 0.561404 | danielkrupinski |
70a7d56261053f4d3f2993e1599fd0dbf3a45150 | 451 | cpp | C++ | doc/examples/operatorarray__size_type.cpp | Hexlord/json | 66869458b5227170e052d01aa65b47ee8350b666 | [
"MIT"
] | 23 | 2016-01-20T07:50:24.000Z | 2021-09-08T05:08:19.000Z | json-master/doc/examples/operatorarray__size_type.cpp | bobismijnnaam/bobetex | 9960eafd31c73b4070b236d5dfafd5734492aaf5 | [
"MIT"
] | 18 | 2016-06-01T11:56:54.000Z | 2016-06-06T10:58:53.000Z | json-master/doc/examples/operatorarray__size_type.cpp | bobismijnnaam/bobetex | 9960eafd31c73b4070b236d5dfafd5734492aaf5 | [
"MIT"
] | 19 | 2016-01-24T13:05:24.000Z | 2021-06-25T01:36:47.000Z | #include <json.hpp>
using namespace nlohmann;
int main()
{
// create a JSON array
json array = {1, 2, 3, 4, 5};
// output element at index 3 (fourth element)
std::cout << array[3] << '\n';
// change last element to 6
array[array.size() - 1] = 6;
// output changed array
std::cout << ... | 18.04 | 49 | 0.552106 | Hexlord |
70a7f4f9db517de7493efed62f334f85b9b71355 | 16,517 | cpp | C++ | src/dagified_graph.cpp | lnceballosz/vg | 82d8ba2f38299525c0b0a6b19dcb785d2c439cfa | [
"MIT"
] | null | null | null | src/dagified_graph.cpp | lnceballosz/vg | 82d8ba2f38299525c0b0a6b19dcb785d2c439cfa | [
"MIT"
] | null | null | null | src/dagified_graph.cpp | lnceballosz/vg | 82d8ba2f38299525c0b0a6b19dcb785d2c439cfa | [
"MIT"
] | null | null | null | // SPDX-FileCopyrightText: 2014 Erik Garrison
//
// SPDX-License-Identifier: MIT
/**
* \file dagified_graph.cpp: contains the implementation of DagifiedGraph
*/
#include "dagified_graph.hpp"
//#define debug_dagify
namespace vg {
using namespace std;
DagifiedGraph::DagifiedGraph(const HandleGraph* graph, si... | 46.266106 | 153 | 0.559181 | lnceballosz |
70a816ce81d79a28776a0dc52e8dcdf198559b1b | 8,481 | cpp | C++ | src/org/apache/poi/ss/formula/functions/TextFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/formula/functions/TextFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/formula/functions/TextFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/formula/functions/TextFunction.java
#include <org/apache/poi/ss/formula/functions/TextFunction.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/lang/String.hpp>
#include <org/apache/poi/ss/formula/eval/ErrorEval.hpp>
#include <org/apache/poi/ss/formula/eva... | 34.616327 | 189 | 0.703101 | pebble2015 |
70a9f6e766d21ea8f1ae0d3b71e52a2ca24eec2c | 9,525 | cpp | C++ | code/Plugins/Renderer/Direct3D9/Source/T3DD3D9Mappings.cpp | answerear/Fluid | 7b7992547a7d3ac05504dd9127e779eeeaddb3ab | [
"MIT"
] | 1 | 2021-11-16T15:11:52.000Z | 2021-11-16T15:11:52.000Z | code/Plugins/Renderer/Direct3D9/Source/T3DD3D9Mappings.cpp | answerear/Fluid | 7b7992547a7d3ac05504dd9127e779eeeaddb3ab | [
"MIT"
] | null | null | null | code/Plugins/Renderer/Direct3D9/Source/T3DD3D9Mappings.cpp | answerear/Fluid | 7b7992547a7d3ac05504dd9127e779eeeaddb3ab | [
"MIT"
] | null | null | null | /*******************************************************************************
* This file is part of Tiny3D (Tiny 3D Graphic Rendering Engine)
* Copyright (C) 2015-2019 Answer Wong
* For latest info, see https://github.com/answerear/Tiny3D
*
* This program is free software: you can redistribute it and/or modi... | 28.603604 | 81 | 0.489974 | answerear |
70ab524b8c2812cf12cc0bde557a89517e30a119 | 65,973 | hpp | C++ | third_party/xsimd/types/xsimd_base.hpp | PierreBlancfat/pythran2 | 37869bc73aae1054253c2b1643aee5c63f11b7e8 | [
"BSD-3-Clause"
] | null | null | null | third_party/xsimd/types/xsimd_base.hpp | PierreBlancfat/pythran2 | 37869bc73aae1054253c2b1643aee5c63f11b7e8 | [
"BSD-3-Clause"
] | null | null | null | third_party/xsimd/types/xsimd_base.hpp | PierreBlancfat/pythran2 | 37869bc73aae1054253c2b1643aee5c63f11b7e8 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* ... | 38.289611 | 139 | 0.531566 | PierreBlancfat |
70acd4552510744f391fe70cfb97e67ea2ebc478 | 459 | cpp | C++ | src/function/scalar/trigonometrics_functions.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/function/scalar/trigonometrics_functions.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/function/scalar/trigonometrics_functions.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | #include "guinsoodb/function/scalar/trigonometric_functions.hpp"
#include "guinsoodb/common/vector_operations/vector_operations.hpp"
#include "guinsoodb/common/exception.hpp"
namespace guinsoodb {
void BuiltinFunctions::RegisterTrigonometricsFunctions() {
Register<SinFun>();
Register<CosFun>();
Register<TanFun>();... | 24.157895 | 67 | 0.769063 | GuinsooLab |
70afe5fc53240327b2189f4f833331891eeac2a2 | 3,256 | hpp | C++ | assemble.hpp | noah-witt/riscv-engine | 4caf55da2d8e5d473ac7e0634bef6a1d5ddc728b | [
"MIT"
] | null | null | null | assemble.hpp | noah-witt/riscv-engine | 4caf55da2d8e5d473ac7e0634bef6a1d5ddc728b | [
"MIT"
] | null | null | null | assemble.hpp | noah-witt/riscv-engine | 4caf55da2d8e5d473ac7e0634bef6a1d5ddc728b | [
"MIT"
] | null | null | null | /**
* @file assemble.hpp
* @author Noah Witt ([email protected])
* @version 0.1
* @date 2021-09-01
*
*/
#pragma once
#include <string>
#include <cstring>
#include <vector>
#include <list>
#include <unordered_map>
#include "./registers.hpp"
#include "./memory.h"
#include "./memory.t.hpp"
#include "symbol.h... | 18.5 | 125 | 0.579238 | noah-witt |
70b05f3c7e6f4157a74a577bf02f1ba12fcb810e | 27,911 | cpp | C++ | src/libtsduck/dtv/descriptors/tsLinkageDescriptor.cpp | SS-FF/tsduck | fb7eb63a9091085a878d434cd8778b012aa09cb7 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/dtv/descriptors/tsLinkageDescriptor.cpp | SS-FF/tsduck | fb7eb63a9091085a878d434cd8778b012aa09cb7 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/dtv/descriptors/tsLinkageDescriptor.cpp | SS-FF/tsduck | fb7eb63a9091085a878d434cd8778b012aa09cb7 | [
"BSD-2-Clause"
] | null | null | null | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 40.102011 | 152 | 0.550034 | SS-FF |
70bab7eb12e793e4faeba9e6a13bd6225a9c1ba6 | 4,420 | hpp | C++ | src/generator/gsql_parser/gsql_parser/core_parser.hpp | ostri/dbgen3 | 3430ef64f51d551a7ec4356daf52f80940ad7343 | [
"Apache-2.0"
] | null | null | null | src/generator/gsql_parser/gsql_parser/core_parser.hpp | ostri/dbgen3 | 3430ef64f51d551a7ec4356daf52f80940ad7343 | [
"Apache-2.0"
] | null | null | null | src/generator/gsql_parser/gsql_parser/core_parser.hpp | ostri/dbgen3 | 3430ef64f51d551a7ec4356daf52f80940ad7343 | [
"Apache-2.0"
] | null | null | null | #ifndef CORE_PARSER_HPP
#define CORE_PARSER_HPP
#include <array>
#include <filesystem>
#include <memory>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMDocument.hpp>
#include <xercesc/dom/DOMErrorHandler.hpp>
#include <xercesc/framework/XMLGrammarPool.hpp>
#include <xercesc/parsers/XercesDOMParser.hpp>
#incl... | 46.041667 | 105 | 0.565158 | ostri |
70bdfafed8ec1bf977d2c2dad470d11906bf44f9 | 2,910 | cpp | C++ | src/identify.cpp | clockley/watchdogd | 7f03ad9a7317a11f246d29bce411d1e50265aa0e | [
"Apache-2.0"
] | 17 | 2016-03-22T12:20:07.000Z | 2022-01-24T17:49:39.000Z | src/identify.cpp | clockley/watchdogd | 7f03ad9a7317a11f246d29bce411d1e50265aa0e | [
"Apache-2.0"
] | 1 | 2021-10-04T17:35:13.000Z | 2021-10-05T16:55:46.000Z | src/identify.cpp | clockley/watchdogd | 7f03ad9a7317a11f246d29bce411d1e50265aa0e | [
"Apache-2.0"
] | 1 | 2021-12-05T13:23:26.000Z | 2021-12-05T13:23:26.000Z | /*
* Copyright 2016-2020 Christian Lockley
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 27.980769 | 113 | 0.697595 | clockley |
70c1f6d21350d470cb8a297fae9ecc084afc3114 | 7,285 | cpp | C++ | Bonepick/test/engine/TestSystems.cpp | dodgelafnitz/Bonepick | 1a12193e5d0cf5d4061d0d3cbd1529a206ed38f4 | [
"MIT"
] | 3 | 2018-10-09T02:08:57.000Z | 2020-08-12T20:26:29.000Z | Bonepick/test/engine/TestSystems.cpp | dodgelafnitz/Bonepick | 1a12193e5d0cf5d4061d0d3cbd1529a206ed38f4 | [
"MIT"
] | 1 | 2018-09-30T02:42:39.000Z | 2018-09-30T02:42:39.000Z | Bonepick/test/engine/TestSystems.cpp | dodgelafnitz/Bonepick | 1a12193e5d0cf5d4061d0d3cbd1529a206ed38f4 | [
"MIT"
] | null | null | null | #include "test/engine/TestSystems.h"
#include "engine/system/Entity.h"
#include "engine/system/EntityManager.h"
#include "engine/utility/Debug.h"
namespace
{
//############################################################################
void TestEntityManagerSingleComponent(void)
{
EntityManager<float> entM... | 29.257028 | 80 | 0.588058 | dodgelafnitz |
70c3646edaee819442ad1234fd06f86882809484 | 23,952 | hpp | C++ | website/src/cgiroot.hpp | Wt-Works/saai.ir | 18b9e75616300994c8d5034f766b6e91c6a48c16 | [
"MIT",
"Unlicense"
] | 1 | 2021-08-28T01:24:22.000Z | 2021-08-28T01:24:22.000Z | website/src/cgiroot.hpp | Wt-Works/saai.ir | 18b9e75616300994c8d5034f766b6e91c6a48c16 | [
"MIT",
"Unlicense"
] | null | null | null | website/src/cgiroot.hpp | Wt-Works/saai.ir | 18b9e75616300994c8d5034f766b6e91c6a48c16 | [
"MIT",
"Unlicense"
] | null | null | null | #ifndef CGIROOT_HPP
#define CGIROOT_HPP
#include <string>
#include <Wt/WAnchor>
#include <Wt/WApplication>
#include <Wt/WButtonGroup>
#include <Wt/WComboBox>
#include <Wt/WContainerWidget>
#include <Wt/WDialog>
#include <Wt/WEnvironment>
#include <Wt/WFileUpload>
#include <Wt/WFormWidget>
#include <Wt/WImage>
#inclu... | 32.455285 | 106 | 0.73998 | Wt-Works |
70cb2b5358d80a4f847edf37c38653a03a0d1a72 | 9,808 | cpp | C++ | Nacro/SDK/FN_ItemManagementEquipSlot_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_ItemManagementEquipSlot_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_ItemManagementEquipSlot_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function ItemManagementEquipSlot.Item... | 34.903915 | 206 | 0.749286 | Milxnor |
70ce809f995f55881361c4afa7ee2db8f9f8ffae | 16,033 | cpp | C++ | src/SqlConnection.cpp | devinsmith/sql_pool | 82a9dc3f8697c3105bcdc19e6af698843e7a4495 | [
"MIT"
] | 1 | 2022-03-28T06:55:26.000Z | 2022-03-28T06:55:26.000Z | src/SqlConnection.cpp | devinsmith/sql_pool | 82a9dc3f8697c3105bcdc19e6af698843e7a4495 | [
"MIT"
] | null | null | null | src/SqlConnection.cpp | devinsmith/sql_pool | 82a9dc3f8697c3105bcdc19e6af698843e7a4495 | [
"MIT"
] | 2 | 2021-03-04T06:11:08.000Z | 2022-03-28T06:55:46.000Z | /*
* Copyright (c) 2012-2021 Devin Smith <[email protected]>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... | 25.051563 | 102 | 0.643485 | devinsmith |
70db14e2d202219c453ee61d65f932298e5a1f43 | 1,464 | cpp | C++ | CSES/Tree Algorithms/Company Queries I.cpp | s166harth/CC | b6c0fe58f03633fe2787a567a16909f1b2966e7b | [
"MIT"
] | 406 | 2020-05-28T13:35:08.000Z | 2022-03-31T17:23:26.000Z | CSES/Tree Algorithms/Company Queries I.cpp | shakeeb-droids/CC | 2f49fcb52d748804aee9fc7f26abb3150bec69e5 | [
"MIT"
] | 3 | 2021-01-01T17:50:34.000Z | 2021-10-02T10:02:27.000Z | CSES/Tree Algorithms/Company Queries I.cpp | shakeeb-droids/CC | 2f49fcb52d748804aee9fc7f26abb3150bec69e5 | [
"MIT"
] | 108 | 2020-07-21T13:02:33.000Z | 2022-03-28T22:46:49.000Z | /**
🍪 thew6rst
🍪 12.02.2021 10:45:31
**/
#ifdef W
#include "k_II.h"
#else
#include <bits/stdc++.h>
using namespace std;
#endif
#define pb emplace_back
#define all(x) x.begin(), x.end()
#define sz(x) static_cast<int32_t>(x.size())
template<class T> class Y {
T f;
public:
templa... | 24.813559 | 72 | 0.456967 | s166harth |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.