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
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
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
float64
1
77k
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
float64
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
653k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
1
977b9dcb68ea985497728997aedecb96580026b4
8,291
cpp
C++
solver.cpp
sapirp/systemPrograming-task3B
f84f4a6021537bb1e3049035a30de20640b87847
[ "MIT" ]
null
null
null
solver.cpp
sapirp/systemPrograming-task3B
f84f4a6021537bb1e3049035a30de20640b87847
[ "MIT" ]
null
null
null
solver.cpp
sapirp/systemPrograming-task3B
f84f4a6021537bb1e3049035a30de20640b87847
[ "MIT" ]
null
null
null
#include<iostream> #include "solver.hpp" using namespace solver; using namespace std; double RealVariable::solveEquation(RealVariable& eq){ if(eq.a==0 && eq.b==0) throw std::exception(); if(!eq.power){ return -eq.c/eq.b; } else{ double SquareRoot = eq.b*eq.b - 4*eq.a*eq.c; d...
25.589506
102
0.624894
977fc28e9f8f2c462a97235442bee7fc1b39503f
1,523
cpp
C++
cppcheck/data/c_files/35.cpp
awsm-research/LineVul
246baf18c1932094564a10c9b81efb21914b2978
[ "MIT" ]
2
2022-03-23T12:16:20.000Z
2022-03-31T06:19:40.000Z
cppcheck/data/c_files/35.cpp
awsm-research/LineVul
246baf18c1932094564a10c9b81efb21914b2978
[ "MIT" ]
null
null
null
cppcheck/data/c_files/35.cpp
awsm-research/LineVul
246baf18c1932094564a10c9b81efb21914b2978
[ "MIT" ]
null
null
null
bool Plugin::LoadNaClModuleCommon(nacl::DescWrapper* wrapper, NaClSubprocess* subprocess, const Manifest* manifest, bool should_report_uma, ErrorInfo* error_info, pp::CompletionCallback init_done_cb, pp::CompletionCallback crash_cb) { ServiceRuntime* new_service_runtime = new ServiceRuntime(this, manifest, should_repor...
37.146341
77
0.74327
97800b9046f54f846dc4fdb8d5c33f66a9b324f2
1,770
cpp
C++
atcoder/abc/abc_114/c.cpp
hsmtknj/programming-contest
b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab
[ "MIT" ]
null
null
null
atcoder/abc/abc_114/c.cpp
hsmtknj/programming-contest
b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab
[ "MIT" ]
null
null
null
atcoder/abc/abc_114/c.cpp
hsmtknj/programming-contest
b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> void dfs753(std::vector<int> &list, int N, std::string s); int main() { int N; int cnt = 0; std::cin >> N; // find number including only 7, 5, 3 std::vector<int> list; dfs753(list, N, ""); // find answer for (int i = 0; i < list.size(); i++) ...
19.450549
64
0.388136
978137d0c0dbfb68443bae856077cccbb6774a70
758
hpp
C++
Firmware/service_providers/headers/ih/sp_ibattery_service.hpp
ValentiWorkLearning/GradWork
70bb5a629df056a559bae3694b47a2e5dc98c23b
[ "MIT" ]
39
2019-10-23T12:06:16.000Z
2022-01-26T04:28:29.000Z
Firmware/service_providers/headers/ih/sp_ibattery_service.hpp
ValentiWorkLearning/GradWork
70bb5a629df056a559bae3694b47a2e5dc98c23b
[ "MIT" ]
20
2020-03-21T20:21:46.000Z
2021-11-19T14:34:03.000Z
Firmware/service_providers/headers/ih/sp_ibattery_service.hpp
ValentiWorkLearning/GradWork
70bb5a629df056a559bae3694b47a2e5dc98c23b
[ "MIT" ]
7
2019-10-18T09:44:10.000Z
2021-06-11T13:05:16.000Z
#pragma once #include "utils/SimpleSignal.hpp" #include <chrono> namespace ServiceProviders::BatteryService::Settings { using namespace std::chrono_literals; constexpr std::chrono::seconds MeasurmentPeriod = 1s; constexpr std::uint8_t MinBatteryLevel = 0; constexpr std::uint8_t MaxBatteryLevel = 100; } // namespace...
22.294118
74
0.779683
97815b3de040fd642726264a176aabf36379f628
457
cpp
C++
Algorithms/Warmup/Compare the Triplets/Solution.cpp
RAVURISREESAIHARIKRISHNA/Hackerrank
e7ec866a4d03259ed054163b1e9e536af50a1c3e
[ "MIT" ]
null
null
null
Algorithms/Warmup/Compare the Triplets/Solution.cpp
RAVURISREESAIHARIKRISHNA/Hackerrank
e7ec866a4d03259ed054163b1e9e536af50a1c3e
[ "MIT" ]
null
null
null
Algorithms/Warmup/Compare the Triplets/Solution.cpp
RAVURISREESAIHARIKRISHNA/Hackerrank
e7ec866a4d03259ed054163b1e9e536af50a1c3e
[ "MIT" ]
null
null
null
#include<iostream> // #include<conio.h> using namespace std; int main(void){ int a[3]; for(int i=0;i<=2;i++){ cin>>a[i]; } int alice,bob; alice = bob = 0; int x; for(int i=0;i<=2;i++){ cin>>x; if(x > a[i]){ bob++; continue; } ...
15.233333
26
0.380744
9783189e5d4c4aa02546453c02c6a066e94391d3
423
hpp
C++
src/leader/leader_factory.hpp
mrc-g/FogMon
dc040e5566d4fa6b0fca80fb46767f40f19b7c2e
[ "MIT" ]
7
2019-05-08T08:25:40.000Z
2021-06-19T10:42:56.000Z
src/leader/leader_factory.hpp
mrc-g/FogMon
dc040e5566d4fa6b0fca80fb46767f40f19b7c2e
[ "MIT" ]
5
2020-03-07T15:24:27.000Z
2022-03-12T00:49:53.000Z
src/leader/leader_factory.hpp
mrc-g/FogMon
dc040e5566d4fa6b0fca80fb46767f40f19b7c2e
[ "MIT" ]
4
2020-03-05T17:05:42.000Z
2021-11-21T16:00:56.000Z
#ifndef LEADER_FACTORY_HPP_ #define LEADER_FACTORY_HPP_ #include "leader_connections.hpp" #include "factory.hpp" #include "leader_storage.hpp" #include "server.hpp" class LeaderFactory : public Factory { public: virtual ILeaderStorage* newStorage(std::string path, Message::node node); virtual LeaderConnection...
26.4375
77
0.777778
97833df0227057c09fa51fbf52d1ba81477f4cff
5,366
hpp
C++
RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/proto/spp/packer.hpp
yklishevich/RubetekIOS-CPP-releases
7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb
[ "MIT" ]
null
null
null
RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/proto/spp/packer.hpp
yklishevich/RubetekIOS-CPP-releases
7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb
[ "MIT" ]
null
null
null
RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/proto/spp/packer.hpp
yklishevich/RubetekIOS-CPP-releases
7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb
[ "MIT" ]
null
null
null
#pragma once #include <limits> #include <exception> #include <functional> #include <type_traits> #include <msw/config.hpp> #include <msw/buffer.hpp> #include <msw/noncopyable.hpp> #include <msw/throw_runtime_error.hpp> namespace msw { namespace spp { template <typename SizeType = wbyte> struct packer ...
30.488636
151
0.533545
97836c40c9b767bee00ff4f816050487973638fa
5,084
cpp
C++
sender.cpp
dcberumen/Shared-Memory
eaf3970df962db713317de9011aa952b6b13428f
[ "MIT" ]
null
null
null
sender.cpp
dcberumen/Shared-Memory
eaf3970df962db713317de9011aa952b6b13428f
[ "MIT" ]
null
null
null
sender.cpp
dcberumen/Shared-Memory
eaf3970df962db713317de9011aa952b6b13428f
[ "MIT" ]
null
null
null
#include <sys/shm.h> #include <sys/msg.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "msg.h" /* For the message struct */ /* The size of the shared memory chunk */ #define SHARED_MEMORY_CHUNK_SIZE 1000 /* The ids for the shared memory segment and the message queue */ int shmid...
26.479167
111
0.608379
97839573dbebe5642e4b67d09a062c8bcb9e83d5
24,403
cpp
C++
system.cpp
YunzheZJU/GLSL_Edge
5b6a8ee1890747d2d898645594f4965d2ae114b1
[ "MIT" ]
null
null
null
system.cpp
YunzheZJU/GLSL_Edge
5b6a8ee1890747d2d898645594f4965d2ae114b1
[ "MIT" ]
null
null
null
system.cpp
YunzheZJU/GLSL_Edge
5b6a8ee1890747d2d898645594f4965d2ae114b1
[ "MIT" ]
null
null
null
// // System.cpp // Processing system display and control // Created by Yunzhe on 2017/12/4. // #include "system.h" Shader shader = Shader(); VBOPlane *plane; VBOTeapot *teapot; VBOTorus *torus; GLuint fboHandle; GLuint pass1Index; GLuint pass2Index; GLuint renderTex; GLuint fsQuad; mat4 model; mat4 view; mat4 projec...
39.359677
131
0.533787
978d4b0d959ed6727d5d1d7bc48fe5a5359b0ce0
1,543
cc
C++
facebody/src/model/GenerateHumanSketchStyleRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-02-02T03:54:39.000Z
2021-12-13T01:32:55.000Z
facebody/src/model/GenerateHumanSketchStyleRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-03-14T07:44:54.000Z
2021-11-26T07:43:25.000Z
facebody/src/model/GenerateHumanSketchStyleRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
69
2018-01-22T09:45:52.000Z
2022-03-28T07:58:38.000Z
/* * Copyright 2009-2017 Alibaba Cloud 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.673077
83
0.771225
978d96e541afbdd13cc3940ff9fd0a530b8b17a3
2,337
hpp
C++
cross.hpp
Granvallen/RoutePlanning
e420e42f5c5dd5b79d525d4c21e183b56f42b096
[ "MIT" ]
3
2019-04-10T09:06:21.000Z
2020-08-26T01:12:06.000Z
cross.hpp
Granvallen/RoutePlanning
e420e42f5c5dd5b79d525d4c21e183b56f42b096
[ "MIT" ]
null
null
null
cross.hpp
Granvallen/RoutePlanning
e420e42f5c5dd5b79d525d4c21e183b56f42b096
[ "MIT" ]
null
null
null
#ifndef CROSS_HPP #define CROSS_HPP #include <vector> #include <fstream> #include <iostream> #include <sstream> #include <string> //#include <unordered_map> #include <map> using namespace std; class Cross { public: Cross() {} //Cross(long id, long road0, long road1, long road2, long road3) : id(id) //{ // road_i...
19.805085
74
0.633718
9791022486471675cd10515f685393c43850bd56
134
cpp
C++
src/examples/01_module/01_hello_world/hello.cpp
acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-justinpesz
44adcb5fb1a307c6b5f59b4235fe83a7eb363002
[ "MIT" ]
null
null
null
src/examples/01_module/01_hello_world/hello.cpp
acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-justinpesz
44adcb5fb1a307c6b5f59b4235fe83a7eb363002
[ "MIT" ]
null
null
null
src/examples/01_module/01_hello_world/hello.cpp
acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-justinpesz
44adcb5fb1a307c6b5f59b4235fe83a7eb363002
[ "MIT" ]
null
null
null
#include "hello.h" double calculate_paycheck(double num1, double num2) { auto payrate = num1 / num2; return payrate; }
13.4
51
0.664179
97951e41aa7ee667fa01636589259e0bf4c56bb8
2,688
hpp
C++
bhash.hpp
logogin/bep
25ff90211924deea1c4ef07752cb826df43e2ad3
[ "BSD-3-Clause" ]
null
null
null
bhash.hpp
logogin/bep
25ff90211924deea1c4ef07752cb826df43e2ad3
[ "BSD-3-Clause" ]
null
null
null
bhash.hpp
logogin/bep
25ff90211924deea1c4ef07752cb826df43e2ad3
[ "BSD-3-Clause" ]
null
null
null
#ifndef __BHASH_HPP__ #define __BHASH_HPP__ #include <string> #include <vector> #include <map> #include <queue> #include <math.h> #include <stdlib.h> namespace bep_tool{ typedef unsigned long long int ub8; // unsigned 8-byte typedef unsigned int ub4; // unsigned 4-byte typedef unsigned char ub; // unsigned 1-byte ...
26.613861
106
0.639509
97965f72395d2a44fbf70895ef4836a59b19f5e2
28,101
cpp
C++
src/Pegasus/Common/tests/OperationContext/TestOperationContext.cpp
ncultra/Pegasus-2.5
4a0b9a1b37e2eae5c8105fdea631582dc2333f9a
[ "MIT" ]
null
null
null
src/Pegasus/Common/tests/OperationContext/TestOperationContext.cpp
ncultra/Pegasus-2.5
4a0b9a1b37e2eae5c8105fdea631582dc2333f9a
[ "MIT" ]
null
null
null
src/Pegasus/Common/tests/OperationContext/TestOperationContext.cpp
ncultra/Pegasus-2.5
4a0b9a1b37e2eae5c8105fdea631582dc2333f9a
[ "MIT" ]
1
2022-03-07T22:54:02.000Z
2022-03-07T22:54:02.000Z
//%2005//////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; // IBM Corp.; EMC Cor...
32.078767
129
0.673891
979b9cab028edacd7d197e7a162952c35400c372
2,100
hpp
C++
android_app/app/src/main/cpp/include/zdl/DlSystem/ITensorItrImpl.hpp
csarron/MobileAccelerator
5e1b40cb2332073da6cd8a52bbba2712ae30f7bd
[ "MIT" ]
2
2021-07-25T01:10:03.000Z
2021-10-29T22:49:09.000Z
android_app/app/src/main/cpp/include/zdl/DlSystem/ITensorItrImpl.hpp
csarron/MobileAccelerator
5e1b40cb2332073da6cd8a52bbba2712ae30f7bd
[ "MIT" ]
null
null
null
android_app/app/src/main/cpp/include/zdl/DlSystem/ITensorItrImpl.hpp
csarron/MobileAccelerator
5e1b40cb2332073da6cd8a52bbba2712ae30f7bd
[ "MIT" ]
null
null
null
//============================================================================= // @@-COPYRIGHT-START-@@ // // Copyright 2015 Qualcomm Technologies, Inc. All rights reserved. // Confidential & Proprietary - Qualcomm Technologies, Inc. ("QTI") // // The party receiving this software directly from QTI (the "Recipient...
34.42623
79
0.681905
979c6b30191b3c796513d66d784490eb5eafde41
15,492
cpp
C++
src/jc_handlers/jc_class.cpp
gavz/choupi
fb49537e9646d4797f63ca2191f3b0ddb4c6760a
[ "MIT" ]
2
2021-05-22T03:24:31.000Z
2022-01-20T14:25:25.000Z
src/jc_handlers/jc_class.cpp
gavz/choupi
fb49537e9646d4797f63ca2191f3b0ddb4c6760a
[ "MIT" ]
null
null
null
src/jc_handlers/jc_class.cpp
gavz/choupi
fb49537e9646d4797f63ca2191f3b0ddb4c6760a
[ "MIT" ]
3
2021-05-06T14:24:58.000Z
2022-01-06T07:52:27.000Z
/* ** The MIT License (MIT) ** ** Copyright (c) 2020, National Cybersecurity Agency of France (ANSSI) ** ** 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 restriction, including with...
33.173448
80
0.706106
97a2bce42566f20ad356ce2a39e84587bb5959a0
4,287
cc
C++
src/webpage.cc
mistydew/RSSearch
52e597aeb495fe35f2f6069741ef19c9d0bfe2bb
[ "MIT" ]
2
2019-03-13T14:47:16.000Z
2019-07-22T09:17:43.000Z
src/webpage.cc
mistydew/RSSearch
52e597aeb495fe35f2f6069741ef19c9d0bfe2bb
[ "MIT" ]
null
null
null
src/webpage.cc
mistydew/RSSearch
52e597aeb495fe35f2f6069741ef19c9d0bfe2bb
[ "MIT" ]
1
2019-07-22T09:17:44.000Z
2019-07-22T09:17:44.000Z
/// /// @file webpage.cc /// @author mistydew(mistydew@qq.com) /// @date 2017-12-02 15:36:06 /// #include "webpage.h" #include "configuration.h" #include "wordsegmentation.h" #include <queue> #include <sstream> namespace md { WebPage::WebPage(const std::string & doc) { std::cout << "WebPage(const st...
24.637931
128
0.559132
97a453e833e798b0117112d4759e7c3e46460faf
606
cpp
C++
test/src/algorithm/suffix.cpp
jonathanpoelen/jln.mp
e5f05fc4467f14ac0047e3bdc75a04076e689985
[ "MIT" ]
9
2020-07-04T16:46:13.000Z
2022-01-09T21:59:31.000Z
test/src/algorithm/suffix.cpp
jonathanpoelen/jln.mp
e5f05fc4467f14ac0047e3bdc75a04076e689985
[ "MIT" ]
null
null
null
test/src/algorithm/suffix.cpp
jonathanpoelen/jln.mp
e5f05fc4467f14ac0047e3bdc75a04076e689985
[ "MIT" ]
1
2021-05-23T13:37:40.000Z
2021-05-23T13:37:40.000Z
#include "test.hpp" #include "test/numbers.hpp" #include "jln/mp/smp/algorithm/suffix.hpp" TEST_SUITE_BEGIN() TEST() { using namespace jln::mp; using namespace ut::ints; test_pack2<suffix, int>(); ut::same<list<>, emp::suffix<list<>, int>>(); ut::same<list<_0, int>, emp::suffix<seq_0, int>>(); test_co...
20.896552
67
0.612211
97a6299514ba9314a3382d69e56f002a18f6cccd
1,851
cpp
C++
examples/ex_1/data_service/CDefDataProvider.cpp
vgordievskiy/boost_optional_ext
b5eed34d64506f9bc7325d81b5626f7ee6d94eb6
[ "MIT" ]
7
2020-10-12T07:01:51.000Z
2020-10-19T07:08:28.000Z
examples/ex_1/data_service/CDefDataProvider.cpp
vgordievskiy/boost_optional_ext
b5eed34d64506f9bc7325d81b5626f7ee6d94eb6
[ "MIT" ]
2
2020-10-17T20:24:19.000Z
2020-10-21T21:11:42.000Z
examples/ex_1/data_service/CDefDataProvider.cpp
vgordievskiy/boost_optional_ext
b5eed34d64506f9bc7325d81b5626f7ee6d94eb6
[ "MIT" ]
null
null
null
#include "CDefDataProvider.h" #include <chrono> #include <boost/random/random_device.hpp> #include <boost/random/uniform_real_distribution.hpp> #include <boost/random/uniform_int_distribution.hpp> #include <boost/lexical_cast.hpp> namespace services { CDefDataProvider::CDefDataProvider() {} CDefDataProv...
24.355263
89
0.560238
97aa1b3005b136dd27e3bffc6af997679b487c9f
4,727
cpp
C++
Assignment 3/AVL_TreeOperations.cpp
Raghav1806/Data-Structures-CSL-201-
2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177
[ "MIT" ]
null
null
null
Assignment 3/AVL_TreeOperations.cpp
Raghav1806/Data-Structures-CSL-201-
2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177
[ "MIT" ]
null
null
null
Assignment 3/AVL_TreeOperations.cpp
Raghav1806/Data-Structures-CSL-201-
2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177
[ "MIT" ]
null
null
null
// program for basic operations in AVL Tree #include <iostream> #include <cstdlib> using namespace std; struct Node{ int data; struct Node *left; struct Node *right; int height; }*root; struct Node *createNewNode(int x){ struct Node *newptr = new Node; newptr->data = x; newptr->left = NULL; newptr->right = NU...
19.861345
65
0.642268
97ab322573a6865d8a85ff34c4ad426f4104757c
1,381
cpp
C++
IOCP4Http/IOCP/PerSocketContext.cpp
Joyce-Qu/IOCPServer-Client-
b1c1a76e6bffe3b67340614ba8e36e197198302e
[ "MIT" ]
42
2019-11-13T06:39:31.000Z
2021-12-28T18:55:27.000Z
IOCP4Http/IOCP/PerSocketContext.cpp
124327288/IOCPServer
b1c1a76e6bffe3b67340614ba8e36e197198302e
[ "MIT" ]
null
null
null
IOCP4Http/IOCP/PerSocketContext.cpp
124327288/IOCPServer
b1c1a76e6bffe3b67340614ba8e36e197198302e
[ "MIT" ]
31
2019-11-14T09:58:15.000Z
2022-03-25T08:30:41.000Z
#include <ws2tcpip.h> #include <assert.h> #include "Network.h" #include "PerIoContext.h" #include "PerSocketContext.h" #include <iostream> using namespace std; ListenContext::ListenContext(short port, const std::string& ip) { SecureZeroMemory(&m_addr, sizeof(SOCKADDR_IN)); m_addr.sin_family = AF_INET; inet...
24.660714
63
0.717596
97ad3e092974dd1d58c4f30432cd174a86fdc87e
2,333
cpp
C++
Engine/Renderer/Gfx/src/GfxCamera.cpp
LiangYue1981816/AresEngine
c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67
[ "BSD-2-Clause" ]
3
2018-12-08T16:32:05.000Z
2020-06-02T11:07:15.000Z
Engine/Renderer/Gfx/src/GfxCamera.cpp
LiangYue1981816/AresEngine
c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67
[ "BSD-2-Clause" ]
null
null
null
Engine/Renderer/Gfx/src/GfxCamera.cpp
LiangYue1981816/AresEngine
c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67
[ "BSD-2-Clause" ]
1
2019-09-12T00:26:05.000Z
2019-09-12T00:26:05.000Z
#include "GfxHeader.h" CGfxCamera::CGfxCamera(void) { } CGfxCamera::~CGfxCamera(void) { } void CGfxCamera::SetScissor(float x, float y, float width, float height) { m_camera.setScissor(x, y, width, height); } void CGfxCamera::SetViewport(float x, float y, float width, float height) { m_camera.setViewport(x, y,...
20.646018
140
0.753536
97adcb71b727d993f3f48ec0c431b358a65b8a0a
1,349
hpp
C++
Yannq/Basis/Basis.hpp
cecri/yannq
b78c1f86a255059f06b34dd5e538449e7261d0ee
[ "BSD-3-Clause" ]
null
null
null
Yannq/Basis/Basis.hpp
cecri/yannq
b78c1f86a255059f06b34dd5e538449e7261d0ee
[ "BSD-3-Clause" ]
null
null
null
Yannq/Basis/Basis.hpp
cecri/yannq
b78c1f86a255059f06b34dd5e538449e7261d0ee
[ "BSD-3-Clause" ]
null
null
null
#pragma once //! \defgroup Basis Basis for a spin-1/2 system #include "BasisJz.hpp" #include "BasisFull.hpp" #include <iterator> #include <type_traits> #include <tbb/concurrent_vector.h> #include <tbb/parallel_for_each.h> #include <tbb/parallel_sort.h> /** * Enable if Iterable is not random access iterable */ templa...
28.702128
107
0.75315
97ae7d212399106e25b982649afb6bd11642ea8e
1,528
hpp
C++
include/parser.hpp
vgracianos/frag-pathtracer
5b216781ee93ec9fe06c07d612c06fe9ae4fc670
[ "MIT" ]
3
2019-09-12T07:49:20.000Z
2021-09-07T08:07:18.000Z
include/parser.hpp
vgracianos/frag-pathtracer
5b216781ee93ec9fe06c07d612c06fe9ae4fc670
[ "MIT" ]
null
null
null
include/parser.hpp
vgracianos/frag-pathtracer
5b216781ee93ec9fe06c07d612c06fe9ae4fc670
[ "MIT" ]
1
2017-03-28T07:03:12.000Z
2017-03-28T07:03:12.000Z
#ifndef PARSER_HPP #define PARSER_HPP #include <string> #include <vector> #include <unordered_map> #include <sstream> #include <tuple> // Parser para ler o arquivo de entrada e gerar um shader class Parser { public: Parser(const std::string& file); int getLights() {return m_lights;}; std::vector<std::string> g...
26.344828
116
0.721204
97af8f553fd0ca2d14f6905218236556ec82f11a
5,132
tcc
C++
include/lvr2/util/ClusterBiMap.tcc
uos/lvr
9bb03a30441b027c39db967318877e03725112d5
[ "BSD-3-Clause" ]
38
2019-06-19T15:10:35.000Z
2022-02-16T03:08:24.000Z
include/lvr2/util/ClusterBiMap.tcc
jtpils/lvr2
b1010dfcc930d9ae0ff5cfa5c88d0810d65368ce
[ "BSD-3-Clause" ]
9
2019-06-19T16:19:51.000Z
2021-09-17T08:31:25.000Z
include/lvr2/util/ClusterBiMap.tcc
jtpils/lvr2
b1010dfcc930d9ae0ff5cfa5c88d0810d65368ce
[ "BSD-3-Clause" ]
13
2019-04-16T11:50:32.000Z
2020-11-26T07:47:44.000Z
/** * Copyright (c) 2018, University Osnabrück * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this li...
27.891304
99
0.75039
97b0dacca5c6ee9cc708303355473da2f51f0703
182
cpp
C++
esmini/Hello-World_coding-example/main.cpp
angelocarbone/MoDelS
5bfee8d0b6e719c1d2445acf4e332597427ac906
[ "MIT" ]
1
2021-12-02T07:29:29.000Z
2021-12-02T07:29:29.000Z
esmini/Hello-World_coding-example/main.cpp
angelocarbone/MoDelS
5bfee8d0b6e719c1d2445acf4e332597427ac906
[ "MIT" ]
null
null
null
esmini/Hello-World_coding-example/main.cpp
angelocarbone/MoDelS
5bfee8d0b6e719c1d2445acf4e332597427ac906
[ "MIT" ]
null
null
null
#include "esminiLib.hpp" int main(int argc, char* argv[]) { SE_Init("../resources/xosc/cut-in.xosc", 0, 1, 0, 0); for (int i = 0; i < 500; i++) { SE_Step(); } return 0; }
12.133333
54
0.554945
97b267ade79d96a1ca904af4696106522121fe1f
2,273
cpp
C++
main.cpp
Triploit-org/TSS-Linux
369bcfb430d2e3fc568f5565c56f2767284b1835
[ "MIT" ]
1
2016-09-12T15:08:29.000Z
2016-09-12T15:08:29.000Z
main.cpp
Triploit-org/TSS-Linux
369bcfb430d2e3fc568f5565c56f2767284b1835
[ "MIT" ]
1
2016-09-11T17:57:21.000Z
2016-09-12T15:02:56.000Z
main.cpp
Triploit-org/TSS-Linux
369bcfb430d2e3fc568f5565c56f2767284b1835
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> #include <sstream> #include <algorithm> #include <iterator> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include "Commands/info.h" #include "APIs/checkCommand.h" #include "APIs/existsFile.h" using namespace std; //Variablen double Version = 0....
19.42735
114
0.573251
97b5ad3f88874a5ef67632c787ae9b65005b5053
1,021
cpp
C++
Lab8/Date.cpp
RustyRaptor/CS271
3d6787a5bf6bdd69176a685124ffcfee44de2d59
[ "MIT" ]
null
null
null
Lab8/Date.cpp
RustyRaptor/CS271
3d6787a5bf6bdd69176a685124ffcfee44de2d59
[ "MIT" ]
null
null
null
Lab8/Date.cpp
RustyRaptor/CS271
3d6787a5bf6bdd69176a685124ffcfee44de2d59
[ "MIT" ]
null
null
null
// CS271 - Lab Assignment: #8 // Program name: C++ Classes // Purpose of program: Some classes in C++ // written by: Ziad Arafat // Date Written: 2020-04-12 #include "Date.h" using namespace std; unsigned int month; unsigned int day; unsigned int year; Date::Date( ) { month = 1; day = 1; year =...
16.206349
63
0.481881
97b76d7ee77235cf4e0ebff11a4e2b84d1427b18
14,364
cpp
C++
admin/wmi/wbem/providers/win32provider/sessionandconnections/dll/connectiontosession.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
admin/wmi/wbem/providers/win32provider/sessionandconnections/dll/connectiontosession.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
admin/wmi/wbem/providers/win32provider/sessionandconnections/dll/connectiontosession.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/****************************************************************** ConnectionToSession.CPP -- C provider class implementation Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved Description: Association between Connection To Session ******************************************...
22.8
131
0.525968
b632914d2592fde88b55410d451e1a343d27e425
8,097
cpp
C++
sdl1/VisualBoyAdvance/src/win32/AccelEditor.cpp
pdpdds/sdldualsystem
d74ea84cbea705fef62868ba8c693bf7d2555636
[ "BSD-2-Clause" ]
null
null
null
sdl1/VisualBoyAdvance/src/win32/AccelEditor.cpp
pdpdds/sdldualsystem
d74ea84cbea705fef62868ba8c693bf7d2555636
[ "BSD-2-Clause" ]
null
null
null
sdl1/VisualBoyAdvance/src/win32/AccelEditor.cpp
pdpdds/sdldualsystem
d74ea84cbea705fef62868ba8c693bf7d2555636
[ "BSD-2-Clause" ]
null
null
null
// VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator. // Copyright (C) 1999-2003 Forgotten // Copyright (C) 2004 Forgotten and the VBA development team // 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 F...
27.824742
85
0.681116
b63479c43fe8c989fc03537f6a2975891c2d8806
124
hpp
C++
include/litmus/details/verbosity.hpp
JessyDL/litmus
156814116d83ee7884c76adda327bf7a9ef0cb14
[ "MIT" ]
1
2021-04-03T00:18:45.000Z
2021-04-03T00:18:45.000Z
include/litmus/details/verbosity.hpp
JessyDL/litmus
156814116d83ee7884c76adda327bf7a9ef0cb14
[ "MIT" ]
null
null
null
include/litmus/details/verbosity.hpp
JessyDL/litmus
156814116d83ee7884c76adda327bf7a9ef0cb14
[ "MIT" ]
null
null
null
#pragma once namespace litmus { enum class verbosity_t { NONE = 0, COMPACT = 1, NORMAL = 2, DETAILED = 3 }; }
10.333333
23
0.596774
b63514f9432f7c5ca3f8514c9e50581e878cb984
1,005
hpp
C++
DifferentialEvolution/DifferentialEvolution.hpp
nottu/LinearSVM
7f5ce05b0691e03a12377dd1f177768f59a91e30
[ "MIT" ]
null
null
null
DifferentialEvolution/DifferentialEvolution.hpp
nottu/LinearSVM
7f5ce05b0691e03a12377dd1f177768f59a91e30
[ "MIT" ]
null
null
null
DifferentialEvolution/DifferentialEvolution.hpp
nottu/LinearSVM
7f5ce05b0691e03a12377dd1f177768f59a91e30
[ "MIT" ]
null
null
null
// // Created by Javier Peralta on 5/31/18. // #ifndef SVM_DIFFERENTIALEVOLUTION_HPP #define SVM_DIFFERENTIALEVOLUTION_HPP #include "../Data.hpp" #include "../OptimizationProblem.hpp" class DifferentialEvolution { public: friend class Individual; class Individual; private: unsigned max_evals; unsigned num_va...
22.840909
167
0.759204
b637fe4d30b266db56418882aa4a463fc1d8b7cc
1,704
hpp
C++
actan_tools/core/sensors.hpp
oliver-peoples/ACTAN
5ed78c8e88232dab92fb934d0f85c007d4e98596
[ "Unlicense" ]
null
null
null
actan_tools/core/sensors.hpp
oliver-peoples/ACTAN
5ed78c8e88232dab92fb934d0f85c007d4e98596
[ "Unlicense" ]
null
null
null
actan_tools/core/sensors.hpp
oliver-peoples/ACTAN
5ed78c8e88232dab92fb934d0f85c007d4e98596
[ "Unlicense" ]
null
null
null
#ifndef ACTAN_TOOLS_SENSORS_HPP #define ACTAN_TOOLS_SENSORS_HPP #if defined(__float128) #define depth_level __float128 #elif defined(_Float128) #define depth_level _Float128 #else #define depth_level long double #endif #include <hmath/core.hpp> namespace actan { namespace sensor { class Sensor ...
24.342857
98
0.619131
b63d21667567b563bbfa8923303d0ee361244700
2,794
hpp
C++
src/shape/Bunker.hpp
newnone/Non-Gravitar
9d21cf7ab5ef49f6976fcaf25fa01cacbb209740
[ "MIT" ]
null
null
null
src/shape/Bunker.hpp
newnone/Non-Gravitar
9d21cf7ab5ef49f6976fcaf25fa01cacbb209740
[ "MIT" ]
null
null
null
src/shape/Bunker.hpp
newnone/Non-Gravitar
9d21cf7ab5ef49f6976fcaf25fa01cacbb209740
[ "MIT" ]
null
null
null
// MIT License // // Copyright (c) 2018 Oscar B. // // 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 restriction, including without limitation the rights // to use, copy, modify, me...
28.222222
81
0.725125
b64307fb369aa01cc588abc7842c0b68c5383a69
61,868
cpp
C++
src/modules/rppi_filter_operations.cpp
shobana-mcw/rpp
e4a5eb622b9abd0a5a936bf7174a84a5e2470b59
[ "MIT" ]
26
2019-09-04T17:48:41.000Z
2022-02-23T17:04:24.000Z
src/modules/rppi_filter_operations.cpp
shobana-mcw/rpp
e4a5eb622b9abd0a5a936bf7174a84a5e2470b59
[ "MIT" ]
57
2019-09-06T21:37:34.000Z
2022-03-09T02:13:46.000Z
src/modules/rppi_filter_operations.cpp
shobana-mcw/rpp
e4a5eb622b9abd0a5a936bf7174a84a5e2470b59
[ "MIT" ]
24
2019-09-04T23:12:07.000Z
2022-03-30T02:06:22.000Z
#include <rppi_filter_operations.h> #include <rppdefs.h> #include "rppi_validate.hpp" #ifdef HIP_COMPILE #include <hip/rpp_hip_common.hpp> #include "hip/hip_declarations.hpp" #elif defined(OCL_COMPILE) #include <cl/rpp_cl_common.hpp> #include "cl/cl_declarations.hpp" #endif //backend #include <stdio.h> #include <iost...
37.816626
101
0.457749
b6440496a92b62f842701964c833da19c16803e3
906
cpp
C++
src/parser/transform/statement/transform_transaction.cpp
GuinsooLab/guinsoodb
f200538868738ae460f62fb89211deec946cefff
[ "MIT" ]
1
2021-04-22T05:41:54.000Z
2021-04-22T05:41:54.000Z
src/parser/transform/statement/transform_transaction.cpp
GuinsooLab/guinsoodb
f200538868738ae460f62fb89211deec946cefff
[ "MIT" ]
null
null
null
src/parser/transform/statement/transform_transaction.cpp
GuinsooLab/guinsoodb
f200538868738ae460f62fb89211deec946cefff
[ "MIT" ]
1
2021-12-12T10:24:57.000Z
2021-12-12T10:24:57.000Z
#include "guinsoodb/parser/statement/transaction_statement.hpp" #include "guinsoodb/parser/transformer.hpp" namespace guinsoodb { unique_ptr<TransactionStatement> Transformer::TransformTransaction(guinsoodb_libpgquery::PGNode *node) { auto stmt = reinterpret_cast<guinsoodb_libpgquery::PGTransactionStmt *>(node); D_...
39.391304
104
0.825607
b6474bdf4746d833e16134adc8dfd774567d6580
4,735
cpp
C++
tools/extras/irstlm/src/doc.cpp
scscscscscsc/kaldi-trunk
aa9a8143e0fee12d85562ccc1d06e0e99f630029
[ "Apache-2.0" ]
4
2016-06-05T14:19:32.000Z
2016-06-07T09:21:10.000Z
tools/extras/irstlm/src/doc.cpp
MistSC/kaldi-trunk
aa9a8143e0fee12d85562ccc1d06e0e99f630029
[ "Apache-2.0" ]
null
null
null
tools/extras/irstlm/src/doc.cpp
MistSC/kaldi-trunk
aa9a8143e0fee12d85562ccc1d06e0e99f630029
[ "Apache-2.0" ]
null
null
null
/****************************************************************************** IrstLM: IRST Language Model Toolkit, compile LM Copyright (C) 2006 Marcello Federico, ITC-irst Trento, Italy This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Lice...
19.729167
79
0.530729
b64993be7464496ca9e61403286e83785c0c32b5
8,796
cpp
C++
source/variables/Variant.cpp
alijenabi/RelationBasedSoftware
f26f163d8d3e74e134a33512ae49fb24edb8b3b7
[ "MIT" ]
2
2021-08-06T19:40:34.000Z
2021-09-06T23:07:47.000Z
source/variables/Variant.cpp
alijenabi/RelationBasedSoftware
f26f163d8d3e74e134a33512ae49fb24edb8b3b7
[ "MIT" ]
null
null
null
source/variables/Variant.cpp
alijenabi/RelationBasedSoftware
f26f163d8d3e74e134a33512ae49fb24edb8b3b7
[ "MIT" ]
null
null
null
// // Variant.cpp // Relation-Based Simulator (RBS) // // Created by Ali Jenabidehkordi on 19.08.18. // Copyright © 2018 Ali Jenabidehkordi. All rights reserved. // #include "Variant.h" namespace rbs::variables { Variant::Variant() : p_id{ TypeID::None } , p_value{} { } Variant::Variant(const Variant &o...
52.357143
135
0.593565
b649f164b0f698ac856b600e19c2c775a25ace8b
2,575
cpp
C++
imctrans/cpp/assets/tests/test_InlineMessage.cpp
paulosousadias/imctrans
cfa2a12ea577d9aa214c2bbb23f3561e8b50ee8f
[ "Apache-2.0" ]
null
null
null
imctrans/cpp/assets/tests/test_InlineMessage.cpp
paulosousadias/imctrans
cfa2a12ea577d9aa214c2bbb23f3561e8b50ee8f
[ "Apache-2.0" ]
1
2019-05-23T18:36:57.000Z
2019-05-23T18:58:32.000Z
imctrans/cpp/assets/tests/test_InlineMessage.cpp
paulosousadias/imctrans
cfa2a12ea577d9aa214c2bbb23f3561e8b50ee8f
[ "Apache-2.0" ]
6
2018-11-22T18:10:58.000Z
2020-06-26T16:55:35.000Z
//*************************************************************************** // Copyright 2017 OceanScan - Marine Systems & Technology, Lda. * //*************************************************************************** // Licensed under the Apache License, Version 2.0 (the "License"); * // you m...
32.1875
77
0.528155
b64a0ca2541b8c7a1eb67199fe1d100f536c2f4d
10,723
cpp
C++
ToolKit/ReportControl/XTPReportColumns.cpp
11Zero/DemoBCG
8f41d5243899cf1c82990ca9863fb1cb9f76491c
[ "MIT" ]
2
2018-03-30T06:40:08.000Z
2022-02-23T12:40:13.000Z
ToolKit/ReportControl/XTPReportColumns.cpp
11Zero/DemoBCG
8f41d5243899cf1c82990ca9863fb1cb9f76491c
[ "MIT" ]
null
null
null
ToolKit/ReportControl/XTPReportColumns.cpp
11Zero/DemoBCG
8f41d5243899cf1c82990ca9863fb1cb9f76491c
[ "MIT" ]
1
2020-08-11T05:48:02.000Z
2020-08-11T05:48:02.000Z
// XTPReportColumns.cpp : implementation of the CXTPReportColumns class. // // This file is a part of the XTREME REPORTCONTROL MFC class library. // (c)1998-2011 Codejock Software, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER...
22.246888
101
0.69654
b64aa8d9436b0552bbce48e8c47f37dbf5e429c0
1,248
cpp
C++
depth_breadth_search/leetcode_dfs/366_find_leaves_of_bianry_tree.cpp
Hadleyhzy/data_structure_and_algorithm
0e610ba78dcb216323d9434a0f182756780ce5c0
[ "MIT" ]
1
2020-10-12T19:18:19.000Z
2020-10-12T19:18:19.000Z
depth_breadth_search/leetcode_dfs/366_find_leaves_of_bianry_tree.cpp
Hadleyhzy/data_structure_and_algorithm
0e610ba78dcb216323d9434a0f182756780ce5c0
[ "MIT" ]
null
null
null
depth_breadth_search/leetcode_dfs/366_find_leaves_of_bianry_tree.cpp
Hadleyhzy/data_structure_and_algorithm
0e610ba78dcb216323d9434a0f182756780ce5c0
[ "MIT" ]
1
2020-10-12T19:18:04.000Z
2020-10-12T19:18:04.000Z
// // 366_find_leaves_of_bianry_tree.cpp // leetcode_dfs // // Created by Hadley on 26.08.20. // Copyright © 2020 Hadley. All rights reserved. // #include <iostream> #include <fstream> #include <stdio.h> #include <algorithm> #include <iostream> #include <vector> #include <string> #include <unordered_map> #include ...
22.285714
91
0.634615
b64be8ad8172ca61b4bd07a4e0923083f1e615f6
601
cpp
C++
Game/Source/Entity.cpp
Paideieitor/PlatformerGame
e00602171807c694b0c5f4afac50157ce9cd23b1
[ "MIT" ]
null
null
null
Game/Source/Entity.cpp
Paideieitor/PlatformerGame
e00602171807c694b0c5f4afac50157ce9cd23b1
[ "MIT" ]
null
null
null
Game/Source/Entity.cpp
Paideieitor/PlatformerGame
e00602171807c694b0c5f4afac50157ce9cd23b1
[ "MIT" ]
null
null
null
#include "Collisions.h" #include "Entity.h" Entity::Entity(EntityType type, fPoint position, bool flip, Player* parent) { this->type = type; this->position = position; this->flip = flip; this->parent = parent; toDelete = false; toRemove = false; flip = false; } Entity::~Entity() { } bool Entity::Update(float...
14.309524
75
0.678869
b64e3db9d1c2e542b4b9ceda3ed50c6d1649a382
2,361
cpp
C++
app/src/main/cpp/XTexture.cpp
sk95120/Connrot
d19c878d99ae85eca3663c11897fc4de1772fbff
[ "Apache-2.0" ]
1
2021-11-30T04:52:16.000Z
2021-11-30T04:52:16.000Z
app/src/main/cpp/XTexture.cpp
ShiKe-And-His-Friends/Connrot
d19c878d99ae85eca3663c11897fc4de1772fbff
[ "Apache-2.0" ]
1
2019-08-27T01:34:46.000Z
2019-08-27T01:34:46.000Z
app/src/main/cpp/XTexture.cpp
sk95120/Connrot
d19c878d99ae85eca3663c11897fc4de1772fbff
[ "Apache-2.0" ]
1
2021-11-30T04:52:17.000Z
2021-11-30T04:52:17.000Z
// // Created by shike on 2/4/2020. // #include "XTexture.h" #include "XLog.h" #include "XEGL.h" #include "XShader.h" class CXTexture:public XTexture{ public: bool ifFirst; //FILE *fp; XShader sh; XTextureType type; std::mutex mux; virtual void Drop(){ if (CXTexture_DEBUG_LOG) { ...
26.829545
108
0.505718
b650429032fe75db1fc85b1df81410db435fb48a
1,176
cpp
C++
Application/main.cpp
RamonPetri/DS3231
50bb67cb58f33a9962faa7c54fd6a59e9496074c
[ "BSD-2-Clause" ]
null
null
null
Application/main.cpp
RamonPetri/DS3231
50bb67cb58f33a9962faa7c54fd6a59e9496074c
[ "BSD-2-Clause" ]
null
null
null
Application/main.cpp
RamonPetri/DS3231
50bb67cb58f33a9962faa7c54fd6a59e9496074c
[ "BSD-2-Clause" ]
null
null
null
#include "DS3231.h" #include "tests.h" #include "Display.h" #include "user.h" int main( void ){ namespace target = hwlib::target; auto scl = target::pin_oc( target::pins::scl ); auto sda = target::pin_oc( target::pins::sda ); auto userStart = target::pin_in(target::pins::d50); auto userSetting = t...
34.588235
72
0.663265
b6551c3c68b0bc35a21af4fd16c77fa72cfc1c35
1,413
hpp
C++
src/snabl/bset.hpp
codr4life/snabl
b1c8a69e351243a3ae73d69754971d540c224733
[ "MIT" ]
22
2018-08-27T15:28:10.000Z
2022-02-13T08:18:00.000Z
src/snabl/bset.hpp
codr4life/snabl
b1c8a69e351243a3ae73d69754971d540c224733
[ "MIT" ]
3
2018-08-27T01:44:51.000Z
2020-06-28T20:07:42.000Z
src/snabl/bset.hpp
codr4life/snabl
b1c8a69e351243a3ae73d69754971d540c224733
[ "MIT" ]
2
2018-08-26T18:55:47.000Z
2018-09-29T01:04:36.000Z
#ifndef SNABL_BSET_HPP #define SNABL_BSET_HPP #include "snabl/cmp.hpp" #include "snabl/std.hpp" #include "snabl/types.hpp" namespace snabl { template <typename KeyT, typename ValT> struct BSet { using Vals = vector<ValT>; Vals vals; KeyT ValT::*key_ptr; BSet(KeyT ValT::*key_ptr): key_ptr(key_...
22.428571
69
0.530078
b65aed50316ad423ff5b0889dbc0247d96bbee14
865
cpp
C++
src/lfilesaver/server/util/DefaultStatsProvider.cpp
yamadapc/filesaver
9665cb30615530fb4aeeb775efb92092c7a51eb1
[ "MIT" ]
28
2019-09-09T08:13:25.000Z
2022-02-09T06:20:31.000Z
src/lfilesaver/server/util/DefaultStatsProvider.cpp
yamadapc/filesaver
9665cb30615530fb4aeeb775efb92092c7a51eb1
[ "MIT" ]
2
2020-05-26T02:06:42.000Z
2021-04-08T08:16:03.000Z
src/lfilesaver/server/util/DefaultStatsProvider.cpp
yamadapc/filesaver
9665cb30615530fb4aeeb775efb92092c7a51eb1
[ "MIT" ]
1
2020-06-09T23:40:04.000Z
2020-06-09T23:40:04.000Z
// // Created by Pedro Tacla Yamada on 14/7/20. // #include "DefaultStatsProvider.h" namespace filesaver::server { static const double MILLISECONDS_IN_SECOND = 1000.; DefaultStatsProvider::DefaultStatsProvider (services::stats::ThroughputTracker* throughputTracker, servi...
30.892857
112
0.738728
b65b8a8657c4a8f38124f9ad71297f1732e7f9ad
396
cpp
C++
source/ShaderAST/Expr/ExprModulo.cpp
Praetonus/ShaderWriter
1c5b3961e3e1b91cb7158406998519853a4add07
[ "MIT" ]
148
2018-10-11T16:51:37.000Z
2022-03-26T13:55:08.000Z
source/ShaderAST/Expr/ExprModulo.cpp
Praetonus/ShaderWriter
1c5b3961e3e1b91cb7158406998519853a4add07
[ "MIT" ]
30
2019-11-30T11:43:07.000Z
2022-01-25T21:09:47.000Z
source/ShaderAST/Expr/ExprModulo.cpp
Praetonus/ShaderWriter
1c5b3961e3e1b91cb7158406998519853a4add07
[ "MIT" ]
8
2020-04-17T13:18:30.000Z
2021-11-20T06:24:44.000Z
/* See LICENSE file in root folder */ #include "ShaderAST/Expr/ExprModulo.hpp" #include "ShaderAST/Expr/ExprVisitor.hpp" namespace ast::expr { Modulo::Modulo( type::TypePtr type , ExprPtr lhs , ExprPtr rhs ) : Binary{ std::move( type ) , std::move( lhs ) , std::move( rhs ) , Kind::eModulo } { } vo...
15.84
41
0.643939
b65c5929e2e4a41de1bc85f2e30e137110bcc2d8
1,487
cpp
C++
cpp/app.cpp
yorung/dx12playground
760bbd9b3dedf26a4c00219628c58721a70d4446
[ "MIT" ]
2
2016-06-16T14:00:40.000Z
2020-04-26T12:11:34.000Z
cpp/app.cpp
yorung/dx12playground
760bbd9b3dedf26a4c00219628c58721a70d4446
[ "MIT" ]
null
null
null
cpp/app.cpp
yorung/dx12playground
760bbd9b3dedf26a4c00219628c58721a70d4446
[ "MIT" ]
null
null
null
#include "stdafx.h" App app; App::App() { } void App::Draw() { const IVec2 scrSize = systemMisc.GetScreenSize(); constexpr float f = 1000; constexpr float n = 1; const float aspect = (float)scrSize.x / scrSize.y; Mat proj = perspectiveLH(45.0f * (float)M_PI / 180.0f, aspect, n, f); matrixMan.Set...
23.234375
135
0.677875
b65ddc6dec39b505392574d96c345095e856a9ef
6,408
cpp
C++
src/physics/operators/nonlinear_solid_operators.cpp
joshessman-llnl/serac
1365a8f9ca372f0c50008b4b8f5f718955e4b80c
[ "BSD-3-Clause" ]
null
null
null
src/physics/operators/nonlinear_solid_operators.cpp
joshessman-llnl/serac
1365a8f9ca372f0c50008b4b8f5f718955e4b80c
[ "BSD-3-Clause" ]
null
null
null
src/physics/operators/nonlinear_solid_operators.cpp
joshessman-llnl/serac
1365a8f9ca372f0c50008b4b8f5f718955e4b80c
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2019, Lawrence Livermore National Security, LLC and // other Serac Project Developers. See the top-level LICENSE file for // details. // // SPDX-License-Identifier: (BSD-3-Clause) #include "physics/operators/nonlinear_solid_operators.hpp" #include "infrastructure/logger.hpp" #include "numerics/expr_t...
38.142857
116
0.637953
b662f049c445959516d9d4dbcce5744975b15c84
2,387
cpp
C++
Source/Editctrl/window.cpp
mice777/Insanity3D
49dc70130f786439fb0e4f91b75b6b686a134760
[ "Apache-2.0" ]
2
2022-02-11T11:59:44.000Z
2022-02-16T20:33:25.000Z
Source/Editctrl/window.cpp
mice777/Insanity3D
49dc70130f786439fb0e4f91b75b6b686a134760
[ "Apache-2.0" ]
null
null
null
Source/Editctrl/window.cpp
mice777/Insanity3D
49dc70130f786439fb0e4f91b75b6b686a134760
[ "Apache-2.0" ]
null
null
null
#include "all.h" #include "ectrl_i.h" void DrawLineColumn(int x, int y); //---------------------------- C_window::C_window(): scroll_x(0), scroll_y(0), overwrite(false), hwnd(NULL), redraw(true) { undo[0].Add(C_undo_element::MARK); } //---------------------------- void C_window::Activate(){ ...
22.308411
91
0.51571
b6631e5fe03301e322585f6155b9d652a9c169a1
15,337
hpp
C++
pyoptsparse/pyNOMAD/source/nomad_src/utils.hpp
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
26
2020-08-25T16:16:21.000Z
2022-03-10T08:23:57.000Z
pyoptsparse/pyNOMAD/source/nomad_src/utils.hpp
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
90
2020-08-24T23:02:47.000Z
2022-03-29T13:48:15.000Z
pyoptsparse/pyNOMAD/source/nomad_src/utils.hpp
robfalck/pyoptsparse
c99f4bfe8961492d0a1879f9ecff7a2fbb3c8c1d
[ "CNRI-Python" ]
25
2020-08-24T19:28:24.000Z
2022-01-27T21:17:37.000Z
/*-------------------------------------------------------------------------------------*/ /* NOMAD - Nonlinear Optimization by Mesh Adaptive Direct search - version 3.7.1 */ /* */ /* Copyright (C) 2001-2015 Mark Abramson ...
39.528351
101
0.539936
b667ce76b759e26185617e0e079688bbd23bc02c
10,723
cpp
C++
test/systemtest/common/distributedpermission/distributed_permission_duid_transform_test/bundle_grant.cpp
openharmony-sig-ci/security_permission
50f01f7890efa8a967178b4b9553e86254854db9
[ "Apache-2.0" ]
null
null
null
test/systemtest/common/distributedpermission/distributed_permission_duid_transform_test/bundle_grant.cpp
openharmony-sig-ci/security_permission
50f01f7890efa8a967178b4b9553e86254854db9
[ "Apache-2.0" ]
null
null
null
test/systemtest/common/distributedpermission/distributed_permission_duid_transform_test/bundle_grant.cpp
openharmony-sig-ci/security_permission
50f01f7890efa8a967178b4b9553e86254854db9
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 ...
40.617424
114
0.71687
b668260f577763c195ed675b033a0508f6143c98
2,095
hpp
C++
ODFAEG/include/odfaeg/Graphics/particleSystemUpdater.hpp
Mechap/ODFAEG
ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40
[ "Zlib" ]
null
null
null
ODFAEG/include/odfaeg/Graphics/particleSystemUpdater.hpp
Mechap/ODFAEG
ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40
[ "Zlib" ]
1
2020-02-14T14:19:44.000Z
2020-12-04T17:39:17.000Z
ODFAEG/include/odfaeg/Graphics/particleSystemUpdater.hpp
Mechap/ODFAEG
ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40
[ "Zlib" ]
2
2021-05-23T13:45:28.000Z
2021-07-24T13:36:13.000Z
#ifndef ODFAEG_PARTICLES_UPDATER_HPP #define ODFAEG_PARTICLES_UPDATER_HPP #include "../Physics/particuleSystem.h" #include "../Graphics/world.h" #include "export.hpp" /** *\namespace odfaeg * the namespace of the Opensource Development Framework Adapted for Every Games. */ namespace odfaeg { namespace graphic { ...
35.508475
122
0.521718
b6688abaa85db28771b30ef347123aa7d8eef7b2
589
cpp
C++
Chapter07/Source_Code/fifth.cpp
ngdzu/CPP-Reactive-Programming
e1a19feb40be086d47227587b8ed3d509b7518ca
[ "MIT" ]
98
2018-07-03T08:55:31.000Z
2022-03-21T22:16:58.000Z
Chapter07/Source_Code/fifth.cpp
ngdzu/CPP-Reactive-Programming
e1a19feb40be086d47227587b8ed3d509b7518ca
[ "MIT" ]
1
2020-11-30T10:38:58.000Z
2020-12-15T06:56:20.000Z
Chapter07/Source_Code/fifth.cpp
ngdzu/CPP-Reactive-Programming
e1a19feb40be086d47227587b8ed3d509b7518ca
[ "MIT" ]
54
2018-07-06T02:09:27.000Z
2021-11-10T08:42:50.000Z
#include "rxcpp/rx.hpp" #include "rxcpp/rx-test.hpp" #include <iostream> #include <array> int main() { auto values = rxcpp::observable<>::range(1); // infinite (until overflow) stream of integers auto s1 = values. take(3). map([](int prime) { return std::make_tuple("1:", prime);}); auto ...
19.633333
93
0.521222
b66acee2264e702e72c3a5d8f328a6aabaeff3be
1,780
hpp
C++
test/testutil/literals.hpp
soramitsu/kagome
d66755924477f2818fcae30ba2e65681fce34264
[ "Apache-2.0" ]
110
2019-04-03T13:39:39.000Z
2022-03-09T11:54:42.000Z
test/testutil/literals.hpp
soramitsu/kagome
d66755924477f2818fcae30ba2e65681fce34264
[ "Apache-2.0" ]
890
2019-03-22T21:33:30.000Z
2022-03-31T14:31:22.000Z
test/testutil/literals.hpp
soramitsu/kagome
d66755924477f2818fcae30ba2e65681fce34264
[ "Apache-2.0" ]
27
2019-06-25T06:21:47.000Z
2021-11-01T14:12:10.000Z
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef KAGOME_TEST_TESTUTIL_LITERALS_HPP_ #define KAGOME_TEST_TESTUTIL_LITERALS_HPP_ #include <libp2p/multi/multiaddress.hpp> #include <libp2p/multi/multihash.hpp> #include <libp2p/peer/peer_id.hpp> #include "common/...
31.22807
79
0.688764
b66c3580439d08af4319f8072336ef728b6ec2b6
7,276
cpp
C++
gme/src/v20180711/model/CreateAppRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
43
2019-08-14T08:14:12.000Z
2022-03-30T12:35:09.000Z
gme/src/v20180711/model/CreateAppRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
12
2019-07-15T10:44:59.000Z
2021-11-02T12:35:00.000Z
gme/src/v20180711/model/CreateAppRequest.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
28
2019-07-12T09:06:22.000Z
2022-03-30T08:04:18.000Z
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
27.456604
104
0.708356
b66fd0f8780dc04af689585987afb0d94d5036cc
421
cpp
C++
docker/cytnx/src/utils/is.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
11
2020-04-14T15:45:42.000Z
2022-03-31T14:37:03.000Z
docker/cytnx/src/utils/is.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
38
2019-08-02T15:15:51.000Z
2022-03-04T19:07:02.000Z
docker/cytnx/src/utils/is.cpp
j9263178/Cytnx
cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b
[ "Apache-2.0" ]
7
2019-07-17T07:50:55.000Z
2021-07-03T06:44:52.000Z
#include "utils/is.hpp" namespace cytnx{ bool is(const Tensor &L, const Tensor &R){ return (L._impl == R._impl); } bool is(const Storage &L, const Storage &R){ return (L._impl == R._impl); } bool is(const Bond &L, const Bond &R){ return (L._impl == R._impl); }...
17.541667
50
0.534442
b6743871ee08c8b53fa206d97ec911fbcce81f84
307
cpp
C++
kmerInput/Statistic.cpp
Lw-Cui/kmer-exp
cc9df6339c6a07d63483e6a6dd8f2c13e9865b0e
[ "MIT" ]
null
null
null
kmerInput/Statistic.cpp
Lw-Cui/kmer-exp
cc9df6339c6a07d63483e6a6dd8f2c13e9865b0e
[ "MIT" ]
null
null
null
kmerInput/Statistic.cpp
Lw-Cui/kmer-exp
cc9df6339c6a07d63483e6a6dd8f2c13e9865b0e
[ "MIT" ]
null
null
null
#include <cstring> #include <map> #include <cstdio> using namespace std; int main() { map<int, int> count; int num; while (scanf("%*s%d", &num) != EOF) count[num]++; for (map<int, int>::iterator p = count.begin(); p != count.end(); p++) printf("%5d: %10d\n", p->first, p->second); return 0; }
18.058824
48
0.586319
b67541f04f69aeaa74a34629e928bf51df5a3ca3
273
hpp
C++
include/cpu/cpu.hpp
anthony-benavente/chip8emu
5ffe96ac252d15bfe0242fc6e1a550844510b31b
[ "MIT" ]
null
null
null
include/cpu/cpu.hpp
anthony-benavente/chip8emu
5ffe96ac252d15bfe0242fc6e1a550844510b31b
[ "MIT" ]
null
null
null
include/cpu/cpu.hpp
anthony-benavente/chip8emu
5ffe96ac252d15bfe0242fc6e1a550844510b31b
[ "MIT" ]
null
null
null
#ifndef CPU_H #define CPU_H #include "program/program.hpp" class Cpu { public: bool drawFlag; Cpu() : drawFlag(false) {} virtual void emulateCycle() = 0; virtual unsigned char getPixel(int x, int y) = 0; virtual void loadProgram(program_t *program) = 0; }; #endif
16.058824
50
0.703297
b679acd2c820753b72efd9f2494a17c0b9797a10
250
cpp
C++
Game/Client/WXClient/Network/PacketHandler/CGAskActiveTimeUpdateHandler.cpp
hackerlank/SourceCode
b702c9e0a9ca5d86933f3c827abb02a18ffc9a59
[ "MIT" ]
4
2021-07-31T13:56:01.000Z
2021-11-13T02:55:10.000Z
Game/Client/WXClient/Network/PacketHandler/CGAskActiveTimeUpdateHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
null
null
null
Game/Client/WXClient/Network/PacketHandler/CGAskActiveTimeUpdateHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
7
2021-08-31T14:34:23.000Z
2022-01-19T08:25:58.000Z
#include "StdAfx.h" #include "CGAskActiveTimeUpdate.h" uint CGAskActiveTimeUpdateHandler::Execute( CGAskActiveTimeUpdate* pPacket, Player* pPlayer ) { __ENTER_FUNCTION return PACKET_EXE_CONTINUE ; __LEAVE_FUNCTION return PACKET_EXE_ERROR ; }
17.857143
93
0.808
b67a171f12c52a9659fcb57e4c506286c0195d73
1,337
cpp
C++
Source/KPokemon_DX11/KSpriteEffect.cpp
jiwonchoidd/PokemonDP_DX11
828ef195c7c66b4c5489944e930acee96940c816
[ "BSD-2-Clause" ]
1
2022-03-25T08:55:53.000Z
2022-03-25T08:55:53.000Z
Source/KPokemon_DX11/KSpriteEffect.cpp
jiwonchoidd/PokemonDP_DX11
828ef195c7c66b4c5489944e930acee96940c816
[ "BSD-2-Clause" ]
null
null
null
Source/KPokemon_DX11/KSpriteEffect.cpp
jiwonchoidd/PokemonDP_DX11
828ef195c7c66b4c5489944e930acee96940c816
[ "BSD-2-Clause" ]
null
null
null
#include "KSpriteEffect.h" bool KSpriteEffect::Init(ID3D11DeviceContext* context, std::wstring vs, std::wstring ps, std::wstring tex, std::wstring mask) { m_pContext = context; m_Current_Index=0; m_Timer=0.0f; m_bEnd = false; m_Color = { 1,1,1,1 }; m_cbData.vLightDir = m_Color; K2DAsset::CreateObject_Mask(vs,ps,...
19.955224
125
0.694091
b67bd357593d19a2c531c0b73853cd0237def5e6
8,693
cpp
C++
geocoding/src/geocoding/RevGeocoder.cpp
farfromrefug/mobile-carto-libs
c7e81a7c73661aa047de9ba7e8bbdf3a24bbf1df
[ "BSD-3-Clause" ]
6
2018-06-27T17:43:35.000Z
2021-06-29T18:50:49.000Z
geocoding/src/geocoding/RevGeocoder.cpp
farfromrefug/mobile-carto-libs
c7e81a7c73661aa047de9ba7e8bbdf3a24bbf1df
[ "BSD-3-Clause" ]
22
2019-04-10T06:38:09.000Z
2022-01-20T08:12:02.000Z
geocoding/src/geocoding/RevGeocoder.cpp
farfromrefug/mobile-carto-libs
c7e81a7c73661aa047de9ba7e8bbdf3a24bbf1df
[ "BSD-3-Clause" ]
5
2019-03-12T10:25:20.000Z
2021-12-28T10:18:56.000Z
#include "RevGeocoder.h" #include "FeatureReader.h" #include "ProjUtils.h" #include "AddressInterpolator.h" #include <functional> #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/classification.hpp> #include <sqlite3pp.h> namespace carto { namespace geocoding { bool RevGeocoder::impo...
44.352041
184
0.579317
b67d83c5ba68070fd07f4d78be656de6227e3c02
1,291
cpp
C++
src/main/cpp/lemon/test/runner.cpp
lemonkit/lemon
ad34410586659fc650898b60d7e168797a3d9e5b
[ "MIT" ]
1
2018-01-12T05:13:58.000Z
2018-01-12T05:13:58.000Z
src/main/cpp/lemon/test/runner.cpp
lemonkit/lemon
ad34410586659fc650898b60d7e168797a3d9e5b
[ "MIT" ]
null
null
null
src/main/cpp/lemon/test/runner.cpp
lemonkit/lemon
ad34410586659fc650898b60d7e168797a3d9e5b
[ "MIT" ]
null
null
null
#include <iostream> #include <lemon/log/log.hpp> #include <lemon/test/unit.hpp> #include <lemon/test/macro.hpp> #include <lemon/test/runner.hpp> namespace lemon {namespace test{ runner& runner::instance() { static runner global; return global; } void runner::run() { runne...
23.053571
144
0.490318
b67dade3529bdcf9a4f95aabe4a68bc55561f546
3,298
cpp
C++
src/CBrowserRenderer.cpp
colinw7/CBrowser
d6aaaf536aa2f2bab0575439b75cf83a6d033db9
[ "MIT" ]
1
2021-12-23T02:21:28.000Z
2021-12-23T02:21:28.000Z
src/CBrowserRenderer.cpp
colinw7/CBrowser
d6aaaf536aa2f2bab0575439b75cf83a6d033db9
[ "MIT" ]
null
null
null
src/CBrowserRenderer.cpp
colinw7/CBrowser
d6aaaf536aa2f2bab0575439b75cf83a6d033db9
[ "MIT" ]
2
2017-05-04T05:38:49.000Z
2019-04-01T13:23:55.000Z
#include <CBrowserRenderer.h> #include <CBrowserWindowWidget.h> #include <CQUtil.h> #include <CQPenUtil.h> #include <CQBrushUtil.h> #include <CQFontUtil.h> #include <CQImageUtil.h> #include <QPainter> CBrowserRenderer:: CBrowserRenderer(CBrowserWindowWidget *w) : w_(w), pixmap_(0), painter_(0) { pixmap_width_ = 0;...
20.358025
91
0.700121
b67ea9453867e82b38a780ba2df51899ae01d5ea
10,108
hpp
C++
include/GlobalNamespace/BeatmapDataSO_-GetBeatmapDataAsync-d__2.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
include/GlobalNamespace/BeatmapDataSO_-GetBeatmapDataAsync-d__2.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
include/GlobalNamespace/BeatmapDataSO_-GetBeatmapDataAsync-d__2.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: BeatmapDataSO #include "GlobalNames...
58.767442
1,111
0.757618
b68060e67087fb74d7b0d88cd62ff5cce855465a
1,237
hpp
C++
src/graphics/TypeNames.hpp
Sam-Belliveau/MKS66-Graphics-Library
4ccf04f977a15007e32bdb5a238704eaaff0c895
[ "MIT" ]
null
null
null
src/graphics/TypeNames.hpp
Sam-Belliveau/MKS66-Graphics-Library
4ccf04f977a15007e32bdb5a238704eaaff0c895
[ "MIT" ]
null
null
null
src/graphics/TypeNames.hpp
Sam-Belliveau/MKS66-Graphics-Library
4ccf04f977a15007e32bdb5a238704eaaff0c895
[ "MIT" ]
null
null
null
#pragma once /** * Copyright (c) 2022 Sam Belliveau * * 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 restriction, including without limitation the rights * to use, copy, modi...
26.891304
81
0.689572
b683049cc1444a2f3f1fc814d6788c56abee532f
32,602
cpp
C++
src/shape.cpp
yenyi/kicadPcb
f624156f59829554cb9fbf9b0438e7b84a42ee94
[ "BSD-3-Clause" ]
6
2020-02-08T07:29:42.000Z
2020-11-25T03:09:13.000Z
src/shape.cpp
yenyi/kicadPcb
f624156f59829554cb9fbf9b0438e7b84a42ee94
[ "BSD-3-Clause" ]
2
2019-12-23T17:19:41.000Z
2020-01-09T00:10:50.000Z
src/shape.cpp
yenyi/kicadPcb
f624156f59829554cb9fbf9b0438e7b84a42ee94
[ "BSD-3-Clause" ]
5
2020-10-16T23:59:42.000Z
2021-04-28T05:49:22.000Z
#include "shape.h" points_2d rotateShapeCoordsByAngles(const points_2d &shape, double instAngle, double padAngle) { auto cords = points_2d{}; auto rads = fmod((instAngle + padAngle) * -M_PI / 180, 2 * M_PI); auto s = sin(rads); auto c = cos(rads); for (auto &p : shape) { auto px = doubl...
33.995829
171
0.518833
b686fe89416d5388886f05cde0320c1fbbec8d63
2,136
cpp
C++
poincare/src/frac_part.cpp
VersiraSec/epsilon-cfw
d12b44c6c6668ecc14b60d8dd098ba5c230b1291
[ "FSFAP" ]
1,442
2017-08-28T19:39:45.000Z
2022-03-30T00:56:14.000Z
poincare/src/frac_part.cpp
VersiraSec/epsilon-cfw
d12b44c6c6668ecc14b60d8dd098ba5c230b1291
[ "FSFAP" ]
1,321
2017-08-28T23:03:10.000Z
2022-03-31T19:32:17.000Z
poincare/src/frac_part.cpp
VersiraSec/epsilon-cfw
d12b44c6c6668ecc14b60d8dd098ba5c230b1291
[ "FSFAP" ]
421
2017-08-28T22:02:39.000Z
2022-03-28T20:52:21.000Z
#include <poincare/frac_part.h> #include <poincare/layout_helper.h> #include <poincare/serialization_helper.h> #include <poincare/simplification_helper.h> #include <poincare/rational.h> #include <cmath> namespace Poincare { constexpr Expression::FunctionHelper FracPart::s_functionHelper; int FracPartNode::numberOfCh...
36.20339
143
0.767322
b687f2f402173eb1b7d32c6a6085eb022306d9a1
17,558
cc
C++
src/driver/parser.cc
cforall/resolv-proto
4eb7c0b9f4e75b940205e808e14fa57f13541246
[ "BSD-3-Clause" ]
2
2019-05-13T10:26:02.000Z
2019-05-13T15:04:42.000Z
src/driver/parser.cc
cforall/resolv-proto
4eb7c0b9f4e75b940205e808e14fa57f13541246
[ "BSD-3-Clause" ]
null
null
null
src/driver/parser.cc
cforall/resolv-proto
4eb7c0b9f4e75b940205e808e14fa57f13541246
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in // the file "LICENCE" distributed with this repository. #include "parser.h" #include <cstdlib> #include <iostream> #include <string> #include "args.h" #include "parser_common.h" #include "ast/dec...
28.319355
99
0.650644
b68b1ce206b66639e3b5eaf52bcc0a8d9bd191b1
4,970
cc
C++
samples/asserts.cc
japrozs/Criterion
b67f3a2c1fae98d022b49403544c7e95a95a62ba
[ "MIT" ]
1
2022-02-16T19:47:54.000Z
2022-02-16T19:47:54.000Z
samples/asserts.cc
r3dapple/Criterion
b67f3a2c1fae98d022b49403544c7e95a95a62ba
[ "MIT" ]
10
2022-01-05T00:37:11.000Z
2022-02-06T19:24:49.000Z
samples/asserts.cc
r3dapple/Criterion
b67f3a2c1fae98d022b49403544c7e95a95a62ba
[ "MIT" ]
null
null
null
#include <criterion/criterion.h> #include <criterion/new/assert.h> #include <exception> #include <new> #include <array> #include <map> Test(asserts, base) { cr_assert(true); cr_expect(true); cr_assert(true, "Assertions may take failure messages"); cr_assert(true, "Or even %d format string %s", 1, "wi...
26.43617
90
0.603018
b692bd9f43bf79f36ad69388ce178bf388749810
873
cpp
C++
examples/priority_queue.cpp
miachm/STL-Threadsafe
08b2d9e7f487121088a817071d1d42b2736996e9
[ "Apache-2.0" ]
9
2017-07-25T23:22:54.000Z
2021-07-06T06:24:46.000Z
examples/priority_queue.cpp
miachm/STL-Threadsafe
08b2d9e7f487121088a817071d1d42b2736996e9
[ "Apache-2.0" ]
null
null
null
examples/priority_queue.cpp
miachm/STL-Threadsafe
08b2d9e7f487121088a817071d1d42b2736996e9
[ "Apache-2.0" ]
3
2020-12-11T03:02:35.000Z
2021-08-22T17:01:28.000Z
#include <iostream> #include <thread> #include "priority_queue-threadsafe.hpp" int main(){ std::threadsafe::priority_queue<int> bids; std::thread producer([&]{ int randomBids[20] = {3,19,11,2,4,12,1,20,14,5,18,10,15,8,17,6,16,7,9,13}; for (int i = 0;i < 20;i++){ bids.push(randomBids[i]); std::this_thread:...
22.973684
76
0.610538
b699379d09377d60e623f06ea2d6dbdfac24156e
2,339
cpp
C++
day2/main.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
1
2021-12-02T14:11:37.000Z
2021-12-02T14:11:37.000Z
day2/main.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
null
null
null
day2/main.cpp
fardragon/AdventOfCode2021
16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea
[ "MIT" ]
null
null
null
#include "shared.hpp" #include <iostream> #include <numeric> #include <chrono> std::uint32_t SolvePart1(const std::vector<std::pair<std::string, std::uint16_t>> &input); std::uint32_t SolvePart2(const std::vector<std::pair<std::string, std::uint16_t>> &input); //std::uint16_t SolvePart2(const std::vector<uint16_t> &...
22.066038
111
0.626764
b69cadb7957bd91901a1abec8d2f2851c06e2d19
1,199
cpp
C++
vespalib/src/vespa/vespalib/io/mapped_file_input.cpp
amahussein/vespa
29d266ae1e5c95e25002b97822953fdd02b1451e
[ "Apache-2.0" ]
1
2018-12-30T05:42:18.000Z
2018-12-30T05:42:18.000Z
vespalib/src/vespa/vespalib/io/mapped_file_input.cpp
amahussein/vespa
29d266ae1e5c95e25002b97822953fdd02b1451e
[ "Apache-2.0" ]
1
2021-01-21T01:37:37.000Z
2021-01-21T01:37:37.000Z
vespalib/src/vespa/vespalib/io/mapped_file_input.cpp
amahussein/vespa
29d266ae1e5c95e25002b97822953fdd02b1451e
[ "Apache-2.0" ]
1
2020-09-03T11:39:52.000Z
2020-09-03T11:39:52.000Z
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "mapped_file_input.h" #include <fcntl.h> #include <unistd.h> #include <sys/stat.h> #include <sys/mman.h> namespace vespalib { MappedFileInput::MappedFileInput(const vespalib::string &file_n...
21.035088
118
0.597164
b69dae11acf920c6cc1eec8c3923f0d2c294f1d5
1,470
cpp
C++
vision-project/src/pcl_conv_node/pcl_conv_node.cpp
koenichiwa/kobuki-vision
089564d4cab282f134e017f3342936ba2bc0335d
[ "MIT" ]
null
null
null
vision-project/src/pcl_conv_node/pcl_conv_node.cpp
koenichiwa/kobuki-vision
089564d4cab282f134e017f3342936ba2bc0335d
[ "MIT" ]
null
null
null
vision-project/src/pcl_conv_node/pcl_conv_node.cpp
koenichiwa/kobuki-vision
089564d4cab282f134e017f3342936ba2bc0335d
[ "MIT" ]
null
null
null
// // Created by bo on 11/17/19. // #include <message_filters/subscriber.h> #include <pcl_ros/point_cloud.h> #define ASTRA_FPS 30 #define MAX_QUEUE_SIZE 1 using namespace ros; using namespace message_filters; using namespace sensor_msgs; using namespace pcl; /** * @author Bo Sterenborg * This class converts the d...
24.915254
107
0.679592
b69fcc70e50199b0bb9e54a0c8a70a9541a46b7e
172
hpp
C++
Engine/Include/FishEngine/Path.hpp
ValtoGameEngines/Fish-Engine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
240
2017-02-17T10:08:19.000Z
2022-03-25T14:45:29.000Z
Engine/Include/FishEngine/Path.hpp
ValtoGameEngines/Fish-Engine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
2
2016-10-12T07:08:38.000Z
2017-04-05T01:56:30.000Z
Engine/Include/FishEngine/Path.hpp
yushroom/FishEngine
a4b9fb9b0a6dc202f7990e75f4b7d8d5163209d9
[ "MIT" ]
39
2017-03-02T09:40:07.000Z
2021-12-04T07:28:53.000Z
#define BOOST_FILESYSTEM_NO_DEPRECATED #include <boost/filesystem.hpp> #include <boost/filesystem/path.hpp> namespace FishEngine { using Path = boost::filesystem::path; }
21.5
38
0.796512
b6a13a7a5065dffa2991612f340a13fa50cd7192
3,157
cc
C++
src/main/cc/estimation/estimators.cc
world-federation-of-advertisers/any-sketch
728588eb4b02b6f0cd049cf8902dfa148e32560d
[ "Apache-2.0" ]
1
2021-03-29T16:50:52.000Z
2021-03-29T16:50:52.000Z
src/main/cc/estimation/estimators.cc
world-federation-of-advertisers/any-sketch
728588eb4b02b6f0cd049cf8902dfa148e32560d
[ "Apache-2.0" ]
2
2021-04-14T00:35:09.000Z
2021-07-07T13:47:47.000Z
src/main/cc/estimation/estimators.cc
world-federation-of-advertisers/any-sketch
728588eb4b02b6f0cd049cf8902dfa148e32560d
[ "Apache-2.0" ]
null
null
null
// Copyright 2020 The Cross-Media Measurement Authors // // 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 applic...
35.47191
79
0.679126
b6a26a510f6b78583d7ef149fb455db65ac8d300
458
hpp
C++
tools/stopwatch.hpp
matumoto1234/library
a2c80516a8afe5876696c139fe0e837d8a204f69
[ "Unlicense" ]
2
2021-06-24T11:21:08.000Z
2022-03-15T05:57:25.000Z
tools/stopwatch.hpp
matumoto1234/library
a2c80516a8afe5876696c139fe0e837d8a204f69
[ "Unlicense" ]
102
2021-10-30T21:30:00.000Z
2022-03-26T18:39:47.000Z
tools/stopwatch.hpp
matumoto1234/library
a2c80516a8afe5876696c139fe0e837d8a204f69
[ "Unlicense" ]
null
null
null
#pragma once #include "./base.hpp" #include <chrono> namespace tools { struct Stopwatch { chrono::high_resolution_clock::time_point start; Stopwatch() { restart(); } void restart() { start = chrono::high_resolution_clock::now(); } chrono::milliseconds::rep elapsed() { auto end = chrono::hi...
22.9
78
0.665939
b6a8407a1c18fbf1f8a711a92f2ee4e12327aa21
20,315
cpp
C++
ICG/src/tracker.cpp
XiaoJake/3DObjectTracking
c1fbf9241a0cd1ce450a1d6b86c67613025e1836
[ "MIT" ]
1
2022-03-17T08:17:47.000Z
2022-03-17T08:17:47.000Z
ICG/src/tracker.cpp
0smile/3DObjectTracking
c1fbf9241a0cd1ce450a1d6b86c67613025e1836
[ "MIT" ]
null
null
null
ICG/src/tracker.cpp
0smile/3DObjectTracking
c1fbf9241a0cd1ce450a1d6b86c67613025e1836
[ "MIT" ]
null
null
null
// SPDX-License-Identifier: MIT // Copyright (c) 2022 Manuel Stoiber, German Aerospace Center (DLR) #include <icg/tracker.h> namespace icg { Tracker::Tracker(const std::string &name, int n_corr_iterations, int n_update_iterations, bool synchronize_cameras, const std::chrono::millise...
32.194929
80
0.704209
b6a95c64cfaa3b62665f75129a8ddd8523dfcb24
1,402
hpp
C++
src/ivorium_graphics/Rendering/Shader.hpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
3
2021-02-26T02:59:09.000Z
2022-02-08T16:44:21.000Z
src/ivorium_graphics/Rendering/Shader.hpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
null
null
null
src/ivorium_graphics/Rendering/Shader.hpp
ivorne/ivorium
1d876b6dcabe29b3110d3058f997e59c40cd6a2b
[ "Apache-2.0" ]
null
null
null
#pragma once #include "../OpenGL/GlTexture.hpp" #include "../OpenGL/GlProgram.hpp" #include "../OpenGL/gl.h" #include "GlSystem.hpp" #include <ivorium_systems/ivorium_systems.hpp> #include <ivorium_core/ivorium_core.hpp> namespace iv { /** To create shader using VirtualResourceProvider method, construct it from...
29.208333
174
0.524964
b6ad33a4e32cc545c631d299f020d045489c281c
686
cpp
C++
src/DesignerPlugin/SARibbonPluginCollection.cpp
EMinsight/SARibbon
4c211e961dfdf3e953b4f89bdd9acf25db1e3da6
[ "MIT" ]
374
2017-12-27T01:08:45.000Z
2022-03-30T16:16:36.000Z
src/DesignerPlugin/SARibbonPluginCollection.cpp
EMinsight/SARibbon
4c211e961dfdf3e953b4f89bdd9acf25db1e3da6
[ "MIT" ]
33
2017-12-07T09:24:31.000Z
2022-03-29T07:53:51.000Z
src/DesignerPlugin/SARibbonPluginCollection.cpp
EMinsight/SARibbon
4c211e961dfdf3e953b4f89bdd9acf25db1e3da6
[ "MIT" ]
161
2017-11-24T03:12:29.000Z
2022-03-26T04:11:48.000Z
#include "SARibbonPluginCollection.h" #include "SARibbonMainWindowDesignerPlugin.h" #include "SARibbonBarDesignerPlugin.h" #include "SARibbonCategoryDesignerPlugin.h" #include "SARibbonPannelDesignerPlugin.h" using namespace SA_PLUGIN; SARibbonPluginCollection::SARibbonPluginCollection(QObject *p) : QObject(p) { m...
34.3
87
0.817784
b6ada5a29317a14bb626e6073fd0c5781baeabff
1,899
cpp
C++
Array/Snail Sort/main.cpp
pratikj697/hacktoberfest-competitiveprogramming
3b392edf61d2bd284bd5714af72abd76ff049340
[ "MIT" ]
22
2021-10-02T13:18:58.000Z
2021-10-13T18:27:06.000Z
Array/Snail Sort/main.cpp
pratikj697/hacktoberfest-competitiveprogramming
3b392edf61d2bd284bd5714af72abd76ff049340
[ "MIT" ]
96
2021-10-02T14:14:43.000Z
2021-10-09T06:17:33.000Z
Array/Snail Sort/main.cpp
pratikj697/hacktoberfest-competitiveprogramming
3b392edf61d2bd284bd5714af72abd76ff049340
[ "MIT" ]
112
2021-10-02T14:57:15.000Z
2021-10-15T05:45:30.000Z
#include <bits/stdc++.h> using namespace std; vector<int> snail(const vector<vector<int>> &snail_map) { vector<vector<int>> input = snail_map; //check if the vector size is greater than 1 if (input.size() > 1) { vector<int> answer; // push the first row in the answer vector ...
24.662338
102
0.493418
b6b4d64f46c26a28f0216235aade202182e0cfe5
15,740
cpp
C++
src/Organism.cpp
Sn0wFox/ot3-pro2017
889dcbb1ad0203a916e7431c6525fded49ef57dd
[ "MIT" ]
1
2017-11-13T07:23:52.000Z
2017-11-13T07:23:52.000Z
src/Organism.cpp
Sn0wFox/ot3-pro2017
889dcbb1ad0203a916e7431c6525fded49ef57dd
[ "MIT" ]
null
null
null
src/Organism.cpp
Sn0wFox/ot3-pro2017
889dcbb1ad0203a916e7431c6525fded49ef57dd
[ "MIT" ]
null
null
null
// // Created by arrouan on 28/09/16. // #include "Organism.h" #include "DNA.h" #include "Common.h" #include <map> void Organism::translate_RNA() { RNA* current_rna = nullptr; for (auto it = dna_->bp_list_.begin(); it != dna_->bp_list_.end(); it++) { if ((*it)->type_ == (int)BP::BP_Type::START_RNA) { c...
33.99568
148
0.621283
b6b5fe4613ca8b0c02dd1317846a4aa778714896
8,263
cxx
C++
Temporary/itkDijkstrasAlgorithm.cxx
KevinScholtes/ANTsX
5462269c0c32e5d65560bae4014c5a05cb02588d
[ "BSD-3-Clause" ]
null
null
null
Temporary/itkDijkstrasAlgorithm.cxx
KevinScholtes/ANTsX
5462269c0c32e5d65560bae4014c5a05cb02588d
[ "BSD-3-Clause" ]
null
null
null
Temporary/itkDijkstrasAlgorithm.cxx
KevinScholtes/ANTsX
5462269c0c32e5d65560bae4014c5a05cb02588d
[ "BSD-3-Clause" ]
1
2019-10-06T07:31:58.000Z
2019-10-06T07:31:58.000Z
/*========================================================================= Program: Insight Segmentation & Registration Toolkit (ITK) =========================================================================*/ #ifndef _itkDijkstrasAlgorithm_cxx_ #define _itkDijkstrasAlgorithm_cxx_ #include "itkDijkstrasAlgorith...
29.510714
102
0.634394
b6b72c1630b812386588a73fbd70d8cc1da09715
368
cpp
C++
5 Star 30 Days Of Code/Day 2 Operators.cpp
TheCodeAlpha26/Hackerrank-Demystified
03713a8f3a05e5d6dfed6f6808b06340558e2310
[ "Apache-2.0" ]
6
2021-04-26T17:09:54.000Z
2021-07-08T17:36:16.000Z
5 Star 30 Days Of Code/Day 2 Operators.cpp
TheCodeAlpha26/Hackerrank-Demystified
03713a8f3a05e5d6dfed6f6808b06340558e2310
[ "Apache-2.0" ]
null
null
null
5 Star 30 Days Of Code/Day 2 Operators.cpp
TheCodeAlpha26/Hackerrank-Demystified
03713a8f3a05e5d6dfed6f6808b06340558e2310
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> using namespace std; void solve(double mc, int tp, int tx) { double t=0.01*mc*(100+tx+tp); printf("%.0f",t); //.0f to set precision (to nearest integer) } int main() { double meal_cost; cin >> meal_cost; int tip_percent,tp; cin >> tip_percent>>tp; sol...
23
78
0.597826
b6b7a543f82a8096c663767628acda3aa22013b8
22,994
cpp
C++
code_reading/oceanbase-master/src/storage/ob_sstable_rowkey_helper.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
[ "Apache-2.0" ]
null
null
null
code_reading/oceanbase-master/src/storage/ob_sstable_rowkey_helper.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
[ "Apache-2.0" ]
null
null
null
code_reading/oceanbase-master/src/storage/ob_sstable_rowkey_helper.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
[ "Apache-2.0" ]
1
2020-10-18T12:59:31.000Z
2020-10-18T12:59:31.000Z
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
38.710438
119
0.670175
b6b9685cab98a2ba3d1d8883d8142265d8a14a78
1,601
hpp
C++
libbio/include/bio/crypto/crypto_Sha256.hpp
biosphere-switch/libbio
7c892ff1e0f47e4612f3b66fdf043216764dfd1b
[ "MIT" ]
null
null
null
libbio/include/bio/crypto/crypto_Sha256.hpp
biosphere-switch/libbio
7c892ff1e0f47e4612f3b66fdf043216764dfd1b
[ "MIT" ]
null
null
null
libbio/include/bio/crypto/crypto_Sha256.hpp
biosphere-switch/libbio
7c892ff1e0f47e4612f3b66fdf043216764dfd1b
[ "MIT" ]
null
null
null
#pragma once #include <bio/mem/mem_Memory.hpp> namespace bio::crypto { // Grabbed from libnx, hardware-accelerated impl class Sha256Context { public: static constexpr u64 HashSize = 0x20; static constexpr u64 HashSize32 = HashSize / sizeof(u32); static constexpr ...
29.648148
113
0.564022
b6baf75f42c6a0f942ec07d8a30159d3dc2b9ad6
935
hpp
C++
libraries/plugins/apis/account_by_key_api/include/delta/plugins/account_by_key_api/account_by_key_api.hpp
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
libraries/plugins/apis/account_by_key_api/include/delta/plugins/account_by_key_api/account_by_key_api.hpp
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
libraries/plugins/apis/account_by_key_api/include/delta/plugins/account_by_key_api/account_by_key_api.hpp
yashbhavsar007/Delta-Blockchain
602dd5335d2cd51303e953e4c233c8f099da0b07
[ "MIT" ]
null
null
null
#pragma once #include <delta/plugins/json_rpc/utility.hpp> #include <delta/protocol/types.hpp> #include <fc/optional.hpp> #include <fc/variant.hpp> #include <fc/vector.hpp> namespace delta { namespace plugins { namespace account_by_key { namespace detail { class account_by_key_api_impl; } struct get_key_referen...
20.326087
77
0.735829
b6bc263a733e9f6bbb8635aa9d1df83ca167e057
2,191
cpp
C++
libs/RFType/TypeDatabase.cpp
max-delta/retrofit-public
5447fd6399fd74ffbb75494c103940751000db12
[ "X11" ]
3
2019-10-27T22:32:44.000Z
2020-05-21T04:00:46.000Z
libs/RFType/TypeDatabase.cpp
max-delta/retrofit-public
5447fd6399fd74ffbb75494c103940751000db12
[ "X11" ]
null
null
null
libs/RFType/TypeDatabase.cpp
max-delta/retrofit-public
5447fd6399fd74ffbb75494c103940751000db12
[ "X11" ]
null
null
null
#include "stdafx.h" #include "TypeDatabase.h" #include "core/macros.h" #include "core/meta/LazyInitSingleton.h" #include "core_rftype/Identifier.h" #include "rftl/memory" namespace RF::rftype { /////////////////////////////////////////////////////////////////////////////// bool TypeDatabase::RegisterNewClassByName...
22.357143
127
0.664537
b6bd8fd53c78a5c0df38d175650861eff65c98dc
608
hpp
C++
libs/opencl/include/sge/opencl/context/error_callback_type.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
libs/opencl/include/sge/opencl/context/error_callback_type.hpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
libs/opencl/include/sge/opencl/context/error_callback_type.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_OPENCL_CONTEXT_ERROR_CALLBACK_TYPE_HPP_INCLUDED #define SGE_OPENCL_CONTEXT_ERROR_CALLBA...
28.952381
96
0.771382
b6bfb73351dc46f7693a02b53a3be53b5f550e1b
745
hpp
C++
app/src/main/cpp/common/src/common/Mesh.hpp
pehg/Break_it_all
dab56d82dd4541a710f16b1e6f61ee214059a1a9
[ "MIT" ]
null
null
null
app/src/main/cpp/common/src/common/Mesh.hpp
pehg/Break_it_all
dab56d82dd4541a710f16b1e6f61ee214059a1a9
[ "MIT" ]
null
null
null
app/src/main/cpp/common/src/common/Mesh.hpp
pehg/Break_it_all
dab56d82dd4541a710f16b1e6f61ee214059a1a9
[ "MIT" ]
null
null
null
// // Created by simonppg on 4/22/19. // #ifndef BREAK_IT_ALL_MESH_HPP #define BREAK_IT_ALL_MESH_HPP #include "Camera.hpp" using glm::vec3; #define NUM_ARRAY_ELEMENTS(a) (sizeof(a) / sizeof(*a)) #define INDEX_BUFFER_SIZE(numIndices) ((GLsizeiptr)((numIndices) * (sizeof(GLushort)))) #define VERTEX_BUFFER_SIZE(numInd...
22.575758
89
0.702013
b6c58b4a719ddc165a4c06e1369168ee4029fd34
1,138
cpp
C++
src/db/db_impl.cpp
rickard1117/PidanDB
6955f6913cb404a0f09a5e44c07f36b0729c0a78
[ "MIT" ]
7
2020-08-01T04:09:15.000Z
2021-08-08T17:26:19.000Z
src/db/db_impl.cpp
rickard1117/PidanDB
6955f6913cb404a0f09a5e44c07f36b0729c0a78
[ "MIT" ]
null
null
null
src/db/db_impl.cpp
rickard1117/PidanDB
6955f6913cb404a0f09a5e44c07f36b0729c0a78
[ "MIT" ]
2
2020-09-16T02:29:52.000Z
2020-09-28T10:51:38.000Z
#include "db/db_impl.h" namespace pidan { Status DBImpl::Put(const Slice &key, const Slice &value) { Transaction *txn = txn_manager_.BeginWriteTransaction(); DataHeader *dh = new DataHeader(txn); DataHeader *old_dh = nullptr; auto result = index_.InsertUnique(key, dh, &old_dh); if (!result) { delete dh...
23.708333
64
0.665202
b6c7c92e3bfa79f0066631365f7853bef96538d9
670
cpp
C++
binary tree/flattenTreeToLinkedList.cpp
Gooner1886/DSA-101
44092e10ad39bebbf7da93e897927106d5a45ae7
[ "MIT" ]
20
2022-01-04T19:36:14.000Z
2022-03-21T15:35:09.000Z
binary tree/flattenTreeToLinkedList.cpp
Gooner1886/DSA-101
44092e10ad39bebbf7da93e897927106d5a45ae7
[ "MIT" ]
null
null
null
binary tree/flattenTreeToLinkedList.cpp
Gooner1886/DSA-101
44092e10ad39bebbf7da93e897927106d5a45ae7
[ "MIT" ]
null
null
null
// Leetcode - 114 - Flatten Binary Tree to Linked List void solve(TreeNode *root, vector<int> &preorder) { root->left = NULL; root->right = NULL; for (int i = 1; i < preorder.size(); i++) { root->right = new TreeNode(preorder[i]); root = root->right; } } void preorderTraversal(TreeN...
23.928571
61
0.623881
b6c9ac73c37b5204639c27d37f0655122c11a714
8,505
hpp
C++
Vesper/Vesper/BSSRDFs/IrradianceTree.hpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
6
2017-09-14T03:26:49.000Z
2021-09-18T05:40:59.000Z
Vesper/Vesper/BSSRDFs/IrradianceTree.hpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
null
null
null
Vesper/Vesper/BSSRDFs/IrradianceTree.hpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
null
null
null
#pragma once #include <memory> #include <array> #include <vector> #include <CrispCore/Math/BoundingBox.hpp> #include "Spectrums/Spectrum.hpp" namespace crisp { struct SurfacePoint { SurfacePoint() {} SurfacePoint(const glm::vec3& p, const glm::vec3& n, float a) : p(p) ...
28.444816
102
0.388595
b6d63ff87ed03714a1fa7cf95cc74d0f65869208
3,577
cpp
C++
android-30/android/widget/SimpleAdapter.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-30/android/widget/SimpleAdapter.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-29/android/widget/SimpleAdapter.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../JIntArray.hpp" #include "../../JArray.hpp" #include "../content/Context.hpp" #include "../content/res/Resources_Theme.hpp" #include "../view/View.hpp" #include "../view/ViewGroup.hpp" #include "./Filter.hpp" #include "./ImageView.hpp" #include "./TextView.hpp" #include "../../JObject.hpp" #include "../....
23.688742
125
0.689405
b6d713da27744740cbd2a04f40d244a6afd101c4
1,887
cpp
C++
src/examples/logisticregression.cpp
jaymwong/CppNumericalSolvers
2a0f98e7c54c35325641e05c035e43cafd570808
[ "MIT" ]
2
2016-03-17T21:13:23.000Z
2021-01-10T00:53:08.000Z
src/examples/logisticregression.cpp
jaymwong/CppNumericalSolvers
2a0f98e7c54c35325641e05c035e43cafd570808
[ "MIT" ]
null
null
null
src/examples/logisticregression.cpp
jaymwong/CppNumericalSolvers
2a0f98e7c54c35325641e05c035e43cafd570808
[ "MIT" ]
1
2021-01-07T16:20:12.000Z
2021-01-07T16:20:12.000Z
#include <iostream> #include "../../include/cppoptlib/meta.h" #include "../../include/cppoptlib/problem.h" #include "../../include/cppoptlib/solver/bfgssolver.h" // to use this library just use the namespace "cppoptlib" namespace cppoptlib { // we define a new problem for optimizing the rosenbrock function // we use ...
31.45
103
0.647589
b6d962121987bcab856a0318aa250dcd1a68fb2d
1,552
cpp
C++
src/lib/classification/poset_classification/extension.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
15
2016-10-27T15:18:28.000Z
2022-02-09T11:13:07.000Z
src/lib/classification/poset_classification/extension.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
4
2019-12-09T11:49:11.000Z
2020-07-30T17:34:45.000Z
src/lib/classification/poset_classification/extension.cpp
abetten/orbiter
5994d0868a26c37676d6aadfc66a1f1bcb715c4b
[ "RSA-MD" ]
15
2016-06-10T20:05:30.000Z
2020-12-18T04:59:19.000Z
// extension.cpp // // Anton Betten // Dec 19, 2011 #include "foundations/foundations.h" #include "group_actions/group_actions.h" #include "classification/classification.h" using namespace std; namespace orbiter { namespace classification { extension::extension() { pt = -1; orbit_len = 0; type = EXTENSION_TYPE_U...
13.37931
46
0.664948
b6dcac5b51219b3f13512b72000bd09d25593b68
3,844
cpp
C++
src/ZHTUtil.cpp
skxie/zht-eventual-consistency
49a2f102f382710212832d9426edfc21ceb7f7fd
[ "Apache-2.0" ]
1
2019-06-03T17:43:58.000Z
2019-06-03T17:43:58.000Z
src/ZHTUtil.cpp
skxie/zht-eventual-consistency
49a2f102f382710212832d9426edfc21ceb7f7fd
[ "Apache-2.0" ]
null
null
null
src/ZHTUtil.cpp
skxie/zht-eventual-consistency
49a2f102f382710212832d9426edfc21ceb7f7fd
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2010-2020 DatasysLab@iit.edu(http://datasys.cs.iit.edu/index.html) * Director: Ioan Raicu(iraicu@cs.iit.edu) * * 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 * * ...
26.881119
138
0.683143
b6e141796369094324824c07eaba15be4e416bc3
2,060
cpp
C++
libbirch/libbirch/Memo.cpp
vishalbelsare/Birch
ead17b181a058250e9f5896d64954232d19e43f0
[ "Apache-2.0" ]
86
2017-10-29T15:46:41.000Z
2022-01-17T07:18:16.000Z
libbirch/libbirch/Memo.cpp
vishalbelsare/Birch
ead17b181a058250e9f5896d64954232d19e43f0
[ "Apache-2.0" ]
13
2020-09-27T03:31:57.000Z
2021-05-27T00:39:14.000Z
libbirch/libbirch/Memo.cpp
vishalbelsare/Birch
ead17b181a058250e9f5896d64954232d19e43f0
[ "Apache-2.0" ]
12
2018-08-21T12:57:18.000Z
2021-05-26T18:41:50.000Z
/** *@file */ #include "libbirch/Memo.hpp" #include "libbirch/external.hpp" #include "libbirch/memory.hpp" #include "libbirch/thread.hpp" libbirch::Memo::Memo() : keys(nullptr), values(nullptr), nentries(0), noccupied(0) { // } libbirch::Memo::~Memo() { std::free(keys); std::free(values); } l...
21.914894
77
0.586408
b6e3bd44284375e49a0bec3135ac98997769a048
4,187
cpp
C++
src/scene.cpp
sndels/naiverend
8d2b76104fa9ea4cbff2dc95aeabebb9d506856c
[ "MIT" ]
null
null
null
src/scene.cpp
sndels/naiverend
8d2b76104fa9ea4cbff2dc95aeabebb9d506856c
[ "MIT" ]
null
null
null
src/scene.cpp
sndels/naiverend
8d2b76104fa9ea4cbff2dc95aeabebb9d506856c
[ "MIT" ]
null
null
null
#include "scene.hpp" #include "gl_core_4_1.h" #include <glm/glm.hpp> #include <iostream> #include <vector> #include "input_handler.hpp" #include "math_types.hpp" #include "model_parser.hpp" #include "imgui/imgui.h" #include "imgui/examples/opengl3_example/imgui_impl_glfw_gl3.h" using glm::vec3; using glm::mat3; usin...
33.496
110
0.541438
b6e50918f04aefb0c3ddd2c5dde4d44ea56b5657
1,401
cpp
C++
6502/main.cpp
mavroskardia/6502
bc7a278ecc8b9f18e845240b014c6513df5e9e9e
[ "MIT" ]
1
2016-02-27T19:23:13.000Z
2016-02-27T19:23:13.000Z
6502/main.cpp
mavroskardia/6502
bc7a278ecc8b9f18e845240b014c6513df5e9e9e
[ "MIT" ]
null
null
null
6502/main.cpp
mavroskardia/6502
bc7a278ecc8b9f18e845240b014c6513df5e9e9e
[ "MIT" ]
null
null
null
#include "includes.h" int do_assembly(const char*); int do_run(const char*); int do_tests(); int main(int argc, char** argv) { int ret = 0; switch (argc) { case 2: ret = string("test").compare(argv[1]) == 0 ? do_tests() : 1; break; case 3: if (string("assemble").compare(argv[1]) == 0) ret = do_assembly(arg...
20.602941
83
0.598858