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
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
67k
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
34c9bc14cba4129e9da52681f14df15b904e4268
1,885
cpp
C++
opi_midi_monitor/firmware/main.cpp
rodb70/rpidmx512
6e7eef3eaba35cc2eb7cdeb5bef906faea9366fd
[ "MIT" ]
5
2019-04-25T20:03:19.000Z
2021-12-29T23:28:17.000Z
opi_midi_monitor/firmware/main.cpp
rodb70/rpidmx512
6e7eef3eaba35cc2eb7cdeb5bef906faea9366fd
[ "MIT" ]
null
null
null
opi_midi_monitor/firmware/main.cpp
rodb70/rpidmx512
6e7eef3eaba35cc2eb7cdeb5bef906faea9366fd
[ "MIT" ]
1
2021-12-31T01:33:02.000Z
2021-12-31T01:33:02.000Z
/** * @file main.cpp * */ /* Copyright (C) 2016-2020 by Arjan van Vught mailto:info@orangepi-dmx.nl * * 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 wit...
26.549296
107
0.734218
rodb70
34c9e20d92ffa587a1b0c16fa4b3da3dbbe7a097
563
cpp
C++
Source/CNTKv2LibraryDll/proto/onnx/defs/generator/defs.cpp
chunxiaosz/CNTK
a7453ed0791ae797bcf9e8d8fbc287332a430db4
[ "MIT" ]
null
null
null
Source/CNTKv2LibraryDll/proto/onnx/defs/generator/defs.cpp
chunxiaosz/CNTK
a7453ed0791ae797bcf9e8d8fbc287332a430db4
[ "MIT" ]
null
null
null
Source/CNTKv2LibraryDll/proto/onnx/defs/generator/defs.cpp
chunxiaosz/CNTK
a7453ed0791ae797bcf9e8d8fbc287332a430db4
[ "MIT" ]
null
null
null
#include "proto/onnx/core/op.h" namespace ONNXIR { REGISTER_OPERATOR_SCHEMA(Constant) .Description("A constant tensor.") .Attr( "value", "The value for the elements of the output tensor.", AttrType::AttributeProto_AttributeType_TENSOR) .Output("output", ...
35.1875
87
0.614565
chunxiaosz
34c9f80dc4dc33c2d94533ff92d114cdc8781de8
397
cpp
C++
source/dodbm/operations/helpers/has_column.cpp
WopsS/dodbm
053f0a6b90e1e081b07418a91cf1f3420d69e390
[ "MIT" ]
1
2021-02-19T07:22:21.000Z
2021-02-19T07:22:21.000Z
source/dodbm/operations/helpers/has_column.cpp
WopsS/dodbm
053f0a6b90e1e081b07418a91cf1f3420d69e390
[ "MIT" ]
null
null
null
source/dodbm/operations/helpers/has_column.cpp
WopsS/dodbm
053f0a6b90e1e081b07418a91cf1f3420d69e390
[ "MIT" ]
null
null
null
#include <dodbm/operations/helpers/has_column.hpp> #include <dodbm/exception.hpp> void dodbm::operations::helpers::has_column::set_column(const std::string& name) { if (name.empty()) { throw dodbm::exception("Operation requires a valid column"); } m_column = name; } const std::string& dodbm::...
22.055556
80
0.695214
WopsS
34ca7c47c1e3086f5e3d18dc8b4ea166f7b20354
8,093
cpp
C++
src/http/status.cpp
anand-gs/cplusplus
97f9115df1920c811531b053fc8b9fc9b1ad2ed2
[ "MIT" ]
null
null
null
src/http/status.cpp
anand-gs/cplusplus
97f9115df1920c811531b053fc8b9fc9b1ad2ed2
[ "MIT" ]
null
null
null
src/http/status.cpp
anand-gs/cplusplus
97f9115df1920c811531b053fc8b9fc9b1ad2ed2
[ "MIT" ]
null
null
null
////////////////////////////////////////////////////// // // status.cpp // ////////////////////////////////////////////////////// /* LICENSE: BEGIN =============================================================================== @author Shan Anand @email anand.gs@gmail.com @source https://github.com/shan-anand @brief H...
39.671569
98
0.664896
anand-gs
34ccae50fa65539137369018410c7071092dbcfc
1,262
cpp
C++
Deitel/Chapter03/examples/3.17/GradeBook.cpp
SebastianTirado/Cpp-Learning-Archive
fb83379d0cc3f9b2390cef00119464ec946753f4
[ "MIT" ]
19
2019-09-15T12:23:51.000Z
2020-06-18T08:31:26.000Z
Deitel/Chapter03/examples/3.17/GradeBook.cpp
eirichan/CppLearingArchive
07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac
[ "MIT" ]
15
2021-12-07T06:46:03.000Z
2022-01-31T07:55:32.000Z
Deitel/Chapter03/examples/3.17/GradeBook.cpp
eirichan/CppLearingArchive
07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac
[ "MIT" ]
13
2019-06-29T02:58:27.000Z
2020-05-07T08:52:22.000Z
/* * ===================================================================================== * * Filename: * * Description: * * Version: 1.0 * Created: Thanks to github you know it * Revision: none * Compiler: g++ * * Author: Mahmut Erdem ÖZGEN m.erdemozgen...
28.681818
88
0.50317
SebastianTirado
34cef46a2612084d317fb12e9a1e7c4c82da14e4
1,285
cpp
C++
blades/xbmc/xbmc/utils/test/TestMime.cpp
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
4
2016-04-26T03:43:54.000Z
2016-11-17T08:09:04.000Z
blades/xbmc/xbmc/utils/test/TestMime.cpp
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
17
2015-01-05T21:06:22.000Z
2015-12-07T20:45:44.000Z
blades/xbmc/xbmc/utils/test/TestMime.cpp
krattai/AEBL
a7b12c97479e1236d5370166b15ca9f29d7d4265
[ "BSD-2-Clause" ]
3
2016-04-26T03:43:55.000Z
2020-11-06T11:02:08.000Z
/* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * 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, or (at your option) * any later version. * * ...
30.595238
72
0.698054
krattai
34cffd29d194e5ea47d3e19ed1e2001594c51e6d
362
cpp
C++
242_isAnagram.cpp
imxiaobo/leetcode-solutions
a59c4c9fa424787771c8faca7ba444cae4ed6a4e
[ "MIT" ]
null
null
null
242_isAnagram.cpp
imxiaobo/leetcode-solutions
a59c4c9fa424787771c8faca7ba444cae4ed6a4e
[ "MIT" ]
null
null
null
242_isAnagram.cpp
imxiaobo/leetcode-solutions
a59c4c9fa424787771c8faca7ba444cae4ed6a4e
[ "MIT" ]
null
null
null
class Solution { public: bool isAnagram(string s, string t) { if (s.size() != t.size()) return false; int S[26] = {0}, T[26] = {0}; for (char c : s) { ++S[c - 'a']; } for (char c : t) { ++T[c - 'a']; } for (int i = 0; i < 25; ++i) { if (S[i] != T[i]) re...
14.48
38
0.395028
imxiaobo
34d2dcf08894e40d3b26eeea1569447ccd307307
1,675
cpp
C++
reve/dynamic/llreve-dynamic/lib/llreve/dynamic/SerializeTraces.cpp
mattulbrich/llreve
68cb958c1c02177fa0db1965a8afd879a97c2fc4
[ "BSD-3-Clause" ]
20
2016-08-11T19:51:13.000Z
2021-09-02T13:10:58.000Z
reve/dynamic/llreve-dynamic/lib/llreve/dynamic/SerializeTraces.cpp
mattulbrich/llreve
68cb958c1c02177fa0db1965a8afd879a97c2fc4
[ "BSD-3-Clause" ]
9
2016-08-11T11:59:24.000Z
2021-07-16T09:44:28.000Z
reve/dynamic/llreve-dynamic/lib/llreve/dynamic/SerializeTraces.cpp
mattulbrich/llreve
68cb958c1c02177fa0db1965a8afd879a97c2fc4
[ "BSD-3-Clause" ]
7
2017-08-19T14:42:27.000Z
2020-05-20T16:14:13.000Z
/* * This file is part of * llreve - Automatic regression verification for LLVM programs * * Copyright (C) 2016 Karlsruhe Institute of Technology * * The system is published under a BSD license. * See LICENSE (distributed with this file) for details. */ #include "llreve/dynamic/SerializeTraces.h" #include ...
23.591549
66
0.6
mattulbrich
34d6f3ce91882f05394f4de5d917d295fadb5d79
1,439
hpp
C++
src/rdf4cpp/rdf/datatypes/xsd/Integer.hpp
kaimal11/rdf4cpp
c6c38937dc004ecd459ef881dc2cf6217d1cfeae
[ "MIT" ]
null
null
null
src/rdf4cpp/rdf/datatypes/xsd/Integer.hpp
kaimal11/rdf4cpp
c6c38937dc004ecd459ef881dc2cf6217d1cfeae
[ "MIT" ]
null
null
null
src/rdf4cpp/rdf/datatypes/xsd/Integer.hpp
kaimal11/rdf4cpp
c6c38937dc004ecd459ef881dc2cf6217d1cfeae
[ "MIT" ]
null
null
null
/** * @file Registers xsd:integer with DatatypeRegistry */ #ifndef RDF4CPP_XSD_INTEGER_HPP #define RDF4CPP_XSD_INTEGER_HPP #include <rdf4cpp/rdf/datatypes/registry/DatatypeMapping.hpp> #include <rdf4cpp/rdf/datatypes/registry/LiteralDatatypeImpl.hpp> #include <cstdint> #include <ostream> #include <regex> namespa...
26.648148
117
0.728978
kaimal11
34d6f58341493524d49d4648861ea0aa01f9acf6
6,298
cpp
C++
DESIRE-Modules/Physics-PhysX/src/PhysXPhysicsComponent.cpp
nyaki-HUN/DESIRE
dd579bffa77bc6999266c8011bc389bb96dee01d
[ "BSD-2-Clause" ]
1
2020-10-04T18:50:01.000Z
2020-10-04T18:50:01.000Z
DESIRE-Modules/Physics-PhysX/src/PhysXPhysicsComponent.cpp
nyaki-HUN/DESIRE
dd579bffa77bc6999266c8011bc389bb96dee01d
[ "BSD-2-Clause" ]
null
null
null
DESIRE-Modules/Physics-PhysX/src/PhysXPhysicsComponent.cpp
nyaki-HUN/DESIRE
dd579bffa77bc6999266c8011bc389bb96dee01d
[ "BSD-2-Clause" ]
1
2018-09-18T08:03:33.000Z
2018-09-18T08:03:33.000Z
#include "stdafx_PhysX.h" #include "PhysXPhysicsComponent.h" #include "PhysXPhysics.h" #include "PxMathExt.h" #include "Engine/Core/GameObject.h" #include "Engine/Core/Math/Transform.h" PhysXPhysicsComponent::PhysXPhysicsComponent(GameObject& object) : PhysicsComponent(object) { } PhysXPhysicsComponent::~PhysXPhys...
28.116071
151
0.790251
nyaki-HUN
34d7b930ee6b5a8c8c6cf7d8c9eca264c470a61f
1,295
cc
C++
msg/src/session/session.cc
wjp-release/cppmsg
5dc56a3749b25c56d5ebef5653f13a376ed3794f
[ "MIT" ]
1
2019-06-21T01:48:41.000Z
2019-06-21T01:48:41.000Z
msg/src/session/session.cc
wjp-release/cppmsg
5dc56a3749b25c56d5ebef5653f13a376ed3794f
[ "MIT" ]
null
null
null
msg/src/session/session.cc
wjp-release/cppmsg
5dc56a3749b25c56d5ebef5653f13a376ed3794f
[ "MIT" ]
null
null
null
#include "session.h" #include "channel/basic_connection.h" namespace msg{ status sync_connect(const addr& a, int& newfd){ int fd = socket(a.posix_family(), SOCK_STREAM | SOCK_CLOEXEC, 0); if(fd<0) return status::failure("create socket failed"); addr_posix sp; int len=a.to_posix(&sp); if(...
27.553191
70
0.6
wjp-release
34d9ee0df7134f6d00062aaea158cc4655a41bc8
476
cpp
C++
abc/235c.cpp
wky32768/Atcoder
b816b8de922b5bcd59881d808ea0f98148c07311
[ "MIT" ]
null
null
null
abc/235c.cpp
wky32768/Atcoder
b816b8de922b5bcd59881d808ea0f98148c07311
[ "MIT" ]
null
null
null
abc/235c.cpp
wky32768/Atcoder
b816b8de922b5bcd59881d808ea0f98148c07311
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdio> #include <cmath> #include <cstring> #include <algorithm> #include <map> #include <vector> #define For(i,a,b) for(int i=a;i<=b;i++) using namespace std; const int N=300005; int n,q,a[N],x[N],k[N]; map <int,vector <int> > mp; signed main() { cin>>n>>q; For(i,1,n) { cin>>a[i]; m...
17.62963
40
0.565126
wky32768
34dbbe56d316b2d1e37540223181a4a889183cae
720
cpp
C++
src/gotobed/Misc.cpp
andrelo1/gotobed-le
68c6e9e222610dd8154b17ca7fe3afb1ac726703
[ "MIT" ]
null
null
null
src/gotobed/Misc.cpp
andrelo1/gotobed-le
68c6e9e222610dd8154b17ca7fe3afb1ac726703
[ "MIT" ]
null
null
null
src/gotobed/Misc.cpp
andrelo1/gotobed-le
68c6e9e222610dd8154b17ca7fe3afb1ac726703
[ "MIT" ]
null
null
null
#include "Misc.h" #include "Offsets.h" namespace Gotobed::Misc { void Init() { // don't show sleep menu SafeWrite16(Offsets::TESFurniture::Activate + 0x0131, 0x14EB); // don't show "serve time" message SafeWrite8(Offsets::TESFurniture::Activate + 0x00E4, 0xEB); // get up using movement keys SafeWrite8(Of...
34.285714
72
0.733333
andrelo1
34e2e52621ed60b83c268854b0565d99eed0fd01
1,912
cpp
C++
PC_Aula_25/2_Watering Grass/2_Watering_Grass.cpp
ElizabethYasmin/PC
e3cd03d7f80fae366df1181d5b87514ea8ee597c
[ "MIT" ]
null
null
null
PC_Aula_25/2_Watering Grass/2_Watering_Grass.cpp
ElizabethYasmin/PC
e3cd03d7f80fae366df1181d5b87514ea8ee597c
[ "MIT" ]
null
null
null
PC_Aula_25/2_Watering Grass/2_Watering_Grass.cpp
ElizabethYasmin/PC
e3cd03d7f80fae366df1181d5b87514ea8ee597c
[ "MIT" ]
null
null
null
#include <algorithm> #include <vector> #include <cstdio> #include <iostream> #include <cmath> using namespace std; struct interval{ double a; double b; int index; bool operator < (interval x) const { return a < x.a; } }; double A,B,maxx; int n, it, best; vector<int> cover; bool possibl...
22.494118
61
0.417887
ElizabethYasmin
34e32f4cbc16e9737b6e461b370ca6bd4ff61743
5,052
cpp
C++
src/gui/abstract_gobj.cpp
alicemona/Smala
6f66c3b4bb111993a6bcf148e84c229fb3fa3534
[ "BSD-2-Clause" ]
null
null
null
src/gui/abstract_gobj.cpp
alicemona/Smala
6f66c3b4bb111993a6bcf148e84c229fb3fa3534
[ "BSD-2-Clause" ]
null
null
null
src/gui/abstract_gobj.cpp
alicemona/Smala
6f66c3b4bb111993a6bcf148e84c229fb3fa3534
[ "BSD-2-Clause" ]
null
null
null
/* * djnn v2 * * The copyright holders for the contents of this file are: * Ecole Nationale de l'Aviation Civile, France (2018) * See file "license.terms" for the rights and conditions * defined by copyright holders. * * * Contributors: * Mathieu Magnaudet <mathieu.magnaudet@enac.fr> * */ #i...
33.236842
122
0.660728
alicemona
34e3e88bc4fd4812c9eaff990cfd749b0ba62cd4
78,861
cpp
C++
src/8086tiny_new.cpp
francescosacco/tinyXT
d0beb4d5d3c8ad37bc0de0d89cbe522a4deb0aa5
[ "MIT" ]
6
2018-01-12T05:55:15.000Z
2022-03-26T14:31:02.000Z
src/8086tiny_new.cpp
francescosacco/tinyXT
d0beb4d5d3c8ad37bc0de0d89cbe522a4deb0aa5
[ "MIT" ]
1
2019-10-08T07:48:01.000Z
2019-12-20T14:53:21.000Z
src/8086tiny_new.cpp
francescosacco/tinyXT
d0beb4d5d3c8ad37bc0de0d89cbe522a4deb0aa5
[ "MIT" ]
2
2021-01-02T16:06:06.000Z
2021-11-04T13:52:40.000Z
// ============================================================================= // File: 8086tiny_new.cpp // // Description: // 8086tiny plus Revision 1.34 // // Modified from 8086tiny to separate hardware emulation into an interface // class and support more 80186/NEC V20 instructions. // Copyright 2014 Julian Olds /...
29.175361
320
0.488264
francescosacco
34e3f954970f13bc424b2e2b8587bf39aa630c57
798
cpp
C++
src/modules/osg/generated_code/_osg_global_variables.pypp.cpp
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
17
2015-06-01T12:19:46.000Z
2022-02-12T02:37:48.000Z
src/modules/osg/generated_code/_osg_global_variables.pypp.cpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-07-04T14:36:49.000Z
2015-07-23T18:09:49.000Z
src/modules/osg/generated_code/_osg_global_variables.pypp.cpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-11-28T17:00:31.000Z
2020-01-08T07:00:59.000Z
// This file has been generated by Py++. #include "boost/python.hpp" #include "wrap_osg.h" #include "_osg_global_variables.pypp.hpp" namespace bp = boost::python; void register_global_variables(){ bp::scope().attr("INVLN_2") = osg::INVLN_2; bp::scope().attr("LN_2") = osg::LN_2; bp::scope().attr("PI") ...
23.470588
85
0.645363
JaneliaSciComp
34e769cb264e0dc3f64ca4d707bf0d9bdaf23913
25,834
cpp
C++
test/instruction/instruction.cpp
poundflag/MOS-6502-Emulator-Base
987a6c4e2be137cac751d5575860573e8f29e452
[ "MIT" ]
null
null
null
test/instruction/instruction.cpp
poundflag/MOS-6502-Emulator-Base
987a6c4e2be137cac751d5575860573e8f29e452
[ "MIT" ]
null
null
null
test/instruction/instruction.cpp
poundflag/MOS-6502-Emulator-Base
987a6c4e2be137cac751d5575860573e8f29e452
[ "MIT" ]
null
null
null
#include "../../src/instruction/instruction.h" #include "../../src/alu.h" #include "../../src/bus/buscontroller.h" #include "../../src/bus/model/busdevice.h" #include "../../src/bus/model/ram.h" #include "../../src/register/model/stack.h" #include "../../src/register/registercontroller.h" #include <gtest/gtest.h> clas...
33.902887
80
0.750639
poundflag
34e9c043742af4e55bf814b65b36437db03f103f
918
cpp
C++
leetcode/0046_Permutations/result.cpp
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
leetcode/0046_Permutations/result.cpp
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
leetcode/0046_Permutations/result.cpp
theck17/notes
f32f0f4b8f821b1ed38d173ef0913efddd094b91
[ "MIT" ]
null
null
null
/** * Copyright (C) 2021 All rights reserved. * * FileName :result.cpp * Author :C.K * Email :theck17@163.com * DateTime :2021-09-15 19:11:22 * Description : */ using namespace std; class Solution { public: vector<vector<int> > permute(vector<int> &num) { vector<v...
22.390244
83
0.56427
theck17
34eb2af91a03deafdaa525823baab2ccb0cd85a0
366
cpp
C++
06_algorithms/10_other_algo/05_find.cpp
Gmrakari/STL
1fc90b1c573a140efa695efd5c55e80ad03b7595
[ "MIT" ]
null
null
null
06_algorithms/10_other_algo/05_find.cpp
Gmrakari/STL
1fc90b1c573a140efa695efd5c55e80ad03b7595
[ "MIT" ]
null
null
null
06_algorithms/10_other_algo/05_find.cpp
Gmrakari/STL
1fc90b1c573a140efa695efd5c55e80ad03b7595
[ "MIT" ]
null
null
null
/* * Date:2021-08-20 15:25 * filename:05_find.cpp * */ /* * 根据equality操作符,循序查找[first, last)内的所有元素,找出第一个匹配 * "等同(equality)条件"者,如果找到,就返回一个Inputterator指向该元素, * 否则返回迭代器last * */ template <class Inputerator, class T> Inputerator find(Inputerator first, Inputerator last, const T& value) { while (first != last &&...
16.636364
71
0.68306
Gmrakari
34f299e15530bb73ed0cf27e3e1944d2d397f323
947
cpp
C++
605PlaceFlowers.cpp
Bowen-Ding/LeetcodeByCPP
6d043d870631050d9a41e50caa4e9274a357ddca
[ "Apache-2.0" ]
1
2022-01-11T01:32:16.000Z
2022-01-11T01:32:16.000Z
605PlaceFlowers.cpp
Bowen-Ding/LeetcodeByCPP
6d043d870631050d9a41e50caa4e9274a357ddca
[ "Apache-2.0" ]
null
null
null
605PlaceFlowers.cpp
Bowen-Ding/LeetcodeByCPP
6d043d870631050d9a41e50caa4e9274a357ddca
[ "Apache-2.0" ]
null
null
null
#include <bits//stdc++.h> #include <vector> #include <iostream> using namespace std; /* 题目描述: 假设有一个很长的花坛,一部分地块种植了花,另一部分却没有。可是,花不能种植在相邻的地块上,它们会争夺水源,两者都会死去。 给你一个整数数组  flowerbed 表示花坛,由若干 0 和 1 组成,其中 0 表示没种植花,1 表示种植了花。另有一个数 n ,能否在不打破种植规则的情况下种入 n 朵花?能则返回 true ,不能则返回 false。 示例 1: 输入:flowerbed = [1,0,0,0,1], n = 1 输出:true ...
22.547619
113
0.463569
Bowen-Ding
34f2de1a5f094e95b806b802a71cf59f615283e4
1,898
cpp
C++
mainwindow.cpp
SqYtCO/Stopwatch
5347f31d830db72e883508bfbb84a7cbc5591fe6
[ "MIT" ]
null
null
null
mainwindow.cpp
SqYtCO/Stopwatch
5347f31d830db72e883508bfbb84a7cbc5591fe6
[ "MIT" ]
null
null
null
mainwindow.cpp
SqYtCO/Stopwatch
5347f31d830db72e883508bfbb84a7cbc5591fe6
[ "MIT" ]
null
null
null
#include "mainwindow.h" #include <qdebug.h> MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) { setupGUI(); // on startbutton-click: if stopwatch is not running, start it QObject::connect(&startbutton, &QPushButton::clicked, [this]() { if(!timewidget.isRunning()) timewidget.start(); }); startaction.set...
40.382979
117
0.716017
SqYtCO
34f62078480b249b01c70d0bfc1fc08430582ea5
2,419
cc
C++
chrome/browser/notifications/login_state_notification_blocker_chromeos.cc
kurli/chromium-crosswalk
f4c5d15d49d02b74eb834325e4dff50b16b53243
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/notifications/login_state_notification_blocker_chromeos.cc
kurli/chromium-crosswalk
f4c5d15d49d02b74eb834325e4dff50b16b53243
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/notifications/login_state_notification_blocker_chromeos.cc
kurli/chromium-crosswalk
f4c5d15d49d02b74eb834325e4dff50b16b53243
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/notifications/login_state_notification_blocker_chromeos.h" #include "ash/root_window_controller.h" #include "ash/shell.h" #inclu...
36.651515
83
0.776354
kurli
34f99f45e716d3c7121353b509b86300845ff493
1,042
cpp
C++
BT-Clipper/Source/DSP/InitPostTone.cpp
landonviator/BT-Clipper
4b6d633e84eadc24df346b21cc8b4d7724fb3770
[ "MIT" ]
null
null
null
BT-Clipper/Source/DSP/InitPostTone.cpp
landonviator/BT-Clipper
4b6d633e84eadc24df346b21cc8b4d7724fb3770
[ "MIT" ]
null
null
null
BT-Clipper/Source/DSP/InitPostTone.cpp
landonviator/BT-Clipper
4b6d633e84eadc24df346b21cc8b4d7724fb3770
[ "MIT" ]
null
null
null
/* ============================================================================== InitPostTone.cpp Created: 23 Jan 2022 7:02:37pm Author: Landon Viator ============================================================================== */ #include "../PluginProcessor.h" void BTClipperAudioProcessor::ini...
45.304348
117
0.65643
landonviator
5a543d0222300ceecb571fa70364ce44f30b0579
3,330
cpp
C++
HPCI/exercises/ex03/solution_code/main.cpp
valentinjacot/backupETHZ
36605c4f532eb65efb4a391ed0f17a07102f7d5b
[ "MIT" ]
1
2019-12-25T10:21:30.000Z
2019-12-25T10:21:30.000Z
HPCI/exercises/ex03/solution_code/main.cpp
valentinjacot/backupETHZ
36605c4f532eb65efb4a391ed0f17a07102f7d5b
[ "MIT" ]
null
null
null
HPCI/exercises/ex03/solution_code/main.cpp
valentinjacot/backupETHZ
36605c4f532eb65efb4a391ed0f17a07102f7d5b
[ "MIT" ]
null
null
null
#include <stdio.h> #include <stdlib.h> #include <random> #include <omp.h> // Integrand inline double F(double x, double y) { if (x * x + y * y < 1.) { // inside unit circle return 4.; } return 0.; } // Method 0: serial double C0(size_t n) { // random generator with seed 0 std::default_random_engine g(0...
21.346154
70
0.581381
valentinjacot
5a55eca2957ac308a5b9dd9e7d566407db3d9e55
854
cpp
C++
LeetCode/c++/88_Merge Sorted Array.cpp
Weak-Chicken/Algo_every_day
0976b5986d6c98cb8370ff4239b4a2485f865253
[ "MIT" ]
1
2018-02-08T23:50:19.000Z
2018-02-08T23:50:19.000Z
LeetCode/c++/88_Merge Sorted Array.cpp
Weak-Chicken/Algo_every_day
0976b5986d6c98cb8370ff4239b4a2485f865253
[ "MIT" ]
1
2018-04-11T19:08:22.000Z
2018-04-12T19:24:57.000Z
LeetCode/c++/88_Merge Sorted Array.cpp
Weak-Chicken/Cpp_every_day
0976b5986d6c98cb8370ff4239b4a2485f865253
[ "MIT" ]
null
null
null
class Solution { public: void insert_one_element(vector<int>& nums, int number, int position, int m) { for (int i = m - 1; i >= position; i--) { nums[i + 1] = nums[i]; } nums[position] = number; }; void merge(vector<int>& nums1, int m, vector<int>& nums2...
24.4
99
0.375878
Weak-Chicken
5a568633626ba64ebff7bfbda03ea662b1c5f329
752
cpp
C++
libif2k/tool/if2k_mini_unmerge.cpp
jdkoftinoff/if2kv2
167631c34b684001c2d5b762bdfd3e45e2699cad
[ "BSD-2-Clause" ]
null
null
null
libif2k/tool/if2k_mini_unmerge.cpp
jdkoftinoff/if2kv2
167631c34b684001c2d5b762bdfd3e45e2699cad
[ "BSD-2-Clause" ]
null
null
null
libif2k/tool/if2k_mini_unmerge.cpp
jdkoftinoff/if2kv2
167631c34b684001c2d5b762bdfd3e45e2699cad
[ "BSD-2-Clause" ]
1
2021-04-24T07:07:19.000Z
2021-04-24T07:07:19.000Z
#include "jdk_world.h" #include "if2k_mini_scanner.h" static void usage() { fprintf( stderr, "if2k_mini_unmerge removes matching text from stdin\nusage:\nif2k_mini_unmerge [dbfile] <inputs.txt >outputs.txt\n" ); } int main( int argc, char **argv ) { if( argc!=2 ) { usage(); return 1; } const jdk_st...
22.787879
137
0.698138
jdkoftinoff
5a568d7e6075400e599616a86fdfd006648edc71
682
cpp
C++
shell/parser.cpp
amanudde1999/os-concepts
4e3f5d9c2e898e5cf247fea89bb1e845730c1ca5
[ "MIT" ]
null
null
null
shell/parser.cpp
amanudde1999/os-concepts
4e3f5d9c2e898e5cf247fea89bb1e845730c1ca5
[ "MIT" ]
null
null
null
shell/parser.cpp
amanudde1999/os-concepts
4e3f5d9c2e898e5cf247fea89bb1e845730c1ca5
[ "MIT" ]
null
null
null
/** Assignment 1: Processes Name: Amro Amanuddein StudentID: 1572498 Course: CMPUT 379 Fall 2021 */ #include <iostream> #include <string> #include <vector> #include <boost/algorithm/string.hpp> #include "parser.h" using namespace std; cmds parse(string cmd_string){ cmds cmd_input; boost::split(cmd_input.cmd...
24.357143
82
0.709677
amanudde1999
5a5ebb2cf0c0da035c59e2093ecf5b2b51ea5772
2,559
cpp
C++
core/demos/tutorial/index/index_assignment6.cpp
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
1
2017-10-24T20:37:58.000Z
2017-10-24T20:37:58.000Z
core/demos/tutorial/index/index_assignment6.cpp
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
10
2015-03-02T16:45:39.000Z
2015-06-23T14:02:13.000Z
core/demos/tutorial/index/index_assignment6.cpp
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
2
2015-02-24T19:07:54.000Z
2015-04-08T13:53:24.000Z
// FRAGMENT(includes) #include <iostream> #include <seqan/align.h> #include <seqan/index.h> #include <seqan/random.h> using namespace seqan; // FRAGMENT(matrix_init) template <typename TStringSet, typename TIndexSpec> void qgramCounting(TStringSet &set, TIndexSpec) { typedef Index<TStringSet, TIndexSpec> TIndex; ty...
31.207317
107
0.715123
weese
5a606d4fc145f0384b71f5c86ba2276e87c363a5
1,524
hpp
C++
include/codegen/include/System/EmptyArray_1.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/System/EmptyArray_1.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/System/EmptyArray_1.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/il2cpp-utils.hpp" #include "e...
42.333333
156
0.690945
Futuremappermydud
5a67ef2b99ca97e9a66c5cf682e95193bf7d7325
1,582
cpp
C++
demo13/main.cpp
o0olele/learn_opencv
f2dd8113143c002e201b6620b0341912e726f12d
[ "Apache-2.0" ]
null
null
null
demo13/main.cpp
o0olele/learn_opencv
f2dd8113143c002e201b6620b0341912e726f12d
[ "Apache-2.0" ]
null
null
null
demo13/main.cpp
o0olele/learn_opencv
f2dd8113143c002e201b6620b0341912e726f12d
[ "Apache-2.0" ]
1
2022-03-08T07:21:55.000Z
2022-03-08T07:21:55.000Z
#include <opencv2\highgui.hpp> #include <opencv2\imgproc.hpp> #include <iostream> using namespace cv; using namespace std; Mat src, src_gray; int maxCorners = 23; int maxTrackbar = 100; RNG rng(12345); const char* source_window = "Image"; void goodFeaturesToTrack_Demo(int, void*); int main(int ...
21.093333
115
0.655499
o0olele
5a687936c60b9bfd22a3d5682746a41c5e62badf
3,746
cpp
C++
src/core/src/Dialog.cpp
fabiopichler/OmicronTK_qt
84dc7270a155d36f77db2ffcd9c7db2b38701632
[ "MIT" ]
null
null
null
src/core/src/Dialog.cpp
fabiopichler/OmicronTK_qt
84dc7270a155d36f77db2ffcd9c7db2b38701632
[ "MIT" ]
null
null
null
src/core/src/Dialog.cpp
fabiopichler/OmicronTK_qt
84dc7270a155d36f77db2ffcd9c7db2b38701632
[ "MIT" ]
null
null
null
/******************************************************************************* OmicronTK_qt Author: Fábio Pichler Website: http://fabiopichler.net License: MIT License Copyright 2018-2019, Fábio Pichler Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
26.94964
114
0.598238
fabiopichler
5a69e3aaa3e37ce3801393b081c198ed5c180e87
11,147
cpp
C++
net/tapi/skywalker/ipconf/bridge/bridgetm/bgvideo.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
net/tapi/skywalker/ipconf/bridge/bridgetm/bgvideo.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
net/tapi/skywalker/ipconf/bridge/bridgetm/bgvideo.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*++ Copyright (c) 1998 Microsoft Corporation Module Name: bgvideo.cpp Abstract: Implementation of the Video bridge filters. Author: Mu Han (muhan) 11/16/1998 --*/ #include "stdafx.h" CTAPIVideoBridgeSinkFilter::CTAPIVideoBridgeSinkFilter( IN LPUNKNOWN pUnk, I...
22.842213
82
0.578182
npocmaka
5a6e670cce66e70aa36def1625fa83ddedc09fdc
2,310
cpp
C++
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/utility/MemoryDumper.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/utility/MemoryDumper.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/utility/MemoryDumper.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 // // ...
31.216216
105
0.654113
jingcao80
5a702f4de06d570259dddf228b9d8efc27ad535d
4,904
hpp
C++
tenncor/trainer/rbm.hpp
mingkaic/tenncor
f2fa9652e55e9ca206de5e9741fe41bde43791c1
[ "BSL-1.0", "MIT" ]
1
2020-12-29T20:38:08.000Z
2020-12-29T20:38:08.000Z
tenncor/trainer/rbm.hpp
mingkaic/tenncor
f2fa9652e55e9ca206de5e9741fe41bde43791c1
[ "BSL-1.0", "MIT" ]
16
2018-01-28T04:20:19.000Z
2021-01-23T09:38:52.000Z
tenncor/trainer/rbm.hpp
mingkaic/tenncor
f2fa9652e55e9ca206de5e9741fe41bde43791c1
[ "BSL-1.0", "MIT" ]
null
null
null
#ifndef TRAINER_RBM_HPP #define TRAINER_RBM_HPP #include "tenncor/tenncor.hpp" namespace trainer { template <typename T> eteq::ETensor sample_v2h ( const layr::RBMLayer<T>& model, eteq::ETensor vis) { return tenncor().random.rand_binom_one( tenncor().sigmoid(model.connect(vis))); } template <typename T> eteq::...
28.678363
91
0.71044
mingkaic
5a741631d09960b51a077008587af778b9cebf5e
1,796
cpp
C++
Wallet/UnoSemuxAddrsGroup.cpp
uno-labs/semux-light-core
49972e8ee1cb60f166f9cede847831d3c6411e9f
[ "MIT" ]
1
2020-08-12T05:44:09.000Z
2020-08-12T05:44:09.000Z
Wallet/UnoSemuxAddrsGroup.cpp
uno-labs/semux-light-core
49972e8ee1cb60f166f9cede847831d3c6411e9f
[ "MIT" ]
null
null
null
Wallet/UnoSemuxAddrsGroup.cpp
uno-labs/semux-light-core
49972e8ee1cb60f166f9cede847831d3c6411e9f
[ "MIT" ]
1
2020-06-09T13:20:15.000Z
2020-06-09T13:20:15.000Z
#include "UnoSemuxAddrsGroup.hpp" #include "UnoSemuxWalletUtils.hpp" namespace UnoSemux { UnoSemuxAddrsGroup::UnoSemuxAddrsGroup (GpCryptoKeyFactory::SP aFactory): iFactory(std::move(aFactory)) { } UnoSemuxAddrsGroup::~UnoSemuxAddrsGroup (void) noexcept { Clear(); } void UnoSemuxAddrsGroup::Clear (v...
22.734177
95
0.717149
uno-labs
5a78366465e39e122e39bfa8904d8ad99c7708e5
2,440
cpp
C++
src/auto/ThreeShotAutonRoutine.cpp
core2062/NordVPN2021
0e21021f9308441849a4d40cc64478c98d8fcafa
[ "BSD-3-Clause" ]
null
null
null
src/auto/ThreeShotAutonRoutine.cpp
core2062/NordVPN2021
0e21021f9308441849a4d40cc64478c98d8fcafa
[ "BSD-3-Clause" ]
null
null
null
src/auto/ThreeShotAutonRoutine.cpp
core2062/NordVPN2021
0e21021f9308441849a4d40cc64478c98d8fcafa
[ "BSD-3-Clause" ]
null
null
null
#include "ThreeShotAutonRoutine.h" ThreeShotRoutine::ThreeShotRoutine() : COREAuton("Three Shot Routine") {} void ThreeShotRoutine::AddNodes() { driveNode = new Node(7000, new DriveAction(BACKWARD)); shotOneOnNode = new Node(5, new LaunchAction(LAUNCHER_ON)); delayShotOneNode = new Node(shotDelayTime, new...
51.914894
80
0.764754
core2062
5a797dd05adbaf0d6a42440a100f4f516b5d1327
453
cpp
C++
vslib/Event.cpp
vmittal-msft/sonic-sairedis
6baff35880005aee2854fdcde105c4322c28d04f
[ "Apache-2.0" ]
50
2016-03-23T08:04:44.000Z
2022-03-25T05:06:16.000Z
vslib/Event.cpp
vmittal-msft/sonic-sairedis
6baff35880005aee2854fdcde105c4322c28d04f
[ "Apache-2.0" ]
589
2016-04-01T04:09:09.000Z
2022-03-31T00:38:10.000Z
vslib/Event.cpp
vmittal-msft/sonic-sairedis
6baff35880005aee2854fdcde105c4322c28d04f
[ "Apache-2.0" ]
234
2016-03-28T20:59:21.000Z
2022-03-23T09:26:22.000Z
#include "Event.h" #include "swss/logger.h" using namespace saivs; Event::Event( _In_ EventType eventType, _In_ std::shared_ptr<EventPayload> payload): m_eventType(eventType), m_payload(payload) { SWSS_LOG_ENTER(); // empty } EventType Event::getType() const { SWSS_LOG_ENTER(); ...
14.612903
55
0.671082
vmittal-msft
5a7bb8b6411cb8f139e8e337497ea40c4b47a144
245
cpp
C++
Hackerearth/decimal-to-binary.cpp
swatkj/Hacktoberfest2021-1
3a5dc186eafcf302c847f531a8f1b11807692fb8
[ "CC0-1.0" ]
null
null
null
Hackerearth/decimal-to-binary.cpp
swatkj/Hacktoberfest2021-1
3a5dc186eafcf302c847f531a8f1b11807692fb8
[ "CC0-1.0" ]
null
null
null
Hackerearth/decimal-to-binary.cpp
swatkj/Hacktoberfest2021-1
3a5dc186eafcf302c847f531a8f1b11807692fb8
[ "CC0-1.0" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int binarynum[32]; int n; int i=0; cin>>n; while(n>0) { binarynum[i]=n%2; cout<<binarynum[i]; n=n/2; i++; } }
14.411765
28
0.42449
swatkj
5a8004ba9031cc996a0f2e1ffc5222750c8b1eb9
2,179
hpp
C++
tuple/trim.hpp
5cript/mpl14
4c6da6b8bce1f57b0df8c4ef456fe03a61982cad
[ "MIT" ]
null
null
null
tuple/trim.hpp
5cript/mpl14
4c6da6b8bce1f57b0df8c4ef456fe03a61982cad
[ "MIT" ]
null
null
null
tuple/trim.hpp
5cript/mpl14
4c6da6b8bce1f57b0df8c4ef456fe03a61982cad
[ "MIT" ]
null
null
null
#ifndef MPLEX_TUPLE_TUPLE_TRIM_HPP_INCLUDED #define MPLEX_TUPLE_TUPLE_TRIM_HPP_INCLUDED #include <tuple> #include "pop_back.hpp" namespace mplex { template <typename Tuple, typename Predicate, bool Abort = false> struct trim_left { }; template <typename Predicate, typename T, typename... L...
34.046875
142
0.623681
5cript
5a80570c2596c745a9439df5614ee42fff6112ed
1,444
cpp
C++
cpp/function-pointer.cpp
simnalamburt/snippets
8ba4cfcb1305d2b82ea892e3305613eeb7ba382b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
31
2016-01-27T07:03:25.000Z
2022-02-25T07:59:11.000Z
cpp/function-pointer.cpp
simnalamburt/snippets
8ba4cfcb1305d2b82ea892e3305613eeb7ba382b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2015-01-26T01:27:21.000Z
2015-01-30T16:16:30.000Z
cpp/function-pointer.cpp
simnalamburt/snippets
8ba4cfcb1305d2b82ea892e3305613eeb7ba382b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2017-02-07T04:17:56.000Z
2020-06-12T05:01:31.000Z
// g++ --std=c++11 function-pointer.cpp #include <cstdio> // // 아래 함수 선언들은 모두 같은 의미의 코드를 다르게 작성한것이다. // int (*func(int))(int*, int); // func 자리를 빈칸으로 대체한 후 using 문 사용 using MyFunc = int (*(int))(int*, int); MyFunc func; // (*(int)) 자리를 retfunc 로 대체하고 // (*(int)) 는 그대로 MyFunc에 대입 // MyFunc는 이제 retfunc의 포인터를 반환하는 함수이...
22.5625
57
0.628809
simnalamburt
5a80c63ed2bbebeb465127747f9491cd9eaf0e4c
242
cpp
C++
Lab1/Sheep.cpp
devtedlee/cppStudyProjects
65c7504773a332b32b473058b273fe1356d0b7b5
[ "MIT" ]
null
null
null
Lab1/Sheep.cpp
devtedlee/cppStudyProjects
65c7504773a332b32b473058b273fe1356d0b7b5
[ "MIT" ]
null
null
null
Lab1/Sheep.cpp
devtedlee/cppStudyProjects
65c7504773a332b32b473058b273fe1356d0b7b5
[ "MIT" ]
null
null
null
#include <iostream> #include "Sheep.h" namespace lab1 { Sheep::Sheep(char* name) : Animal(name) , mFurCount(0) { }; Sheep::~Sheep() { } void Sheep::Bark() const { std::cout << Animal::GetName() << ": MEA~" << std::endl; } }
11.52381
58
0.566116
devtedlee
5a84140ae5a79f8534718ec7aa7bd37becb1cc0a
1,376
cpp
C++
oi/Contest/self/2016-6/riteme/bst.cpp
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
3
2018-08-30T09:43:20.000Z
2019-12-03T04:53:43.000Z
oi/Contest/self/2016-6/riteme/bst.cpp
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
oi/Contest/self/2016-6/riteme/bst.cpp
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
#include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> using namespace std; struct Node { Node(int _key) : key(_key), left(NULL), right(NULL) {} int key; Node *left; Node *right; }; // struct Node static Node *insert(Node *x, int key) { if (!x) { return new Node(ke...
17.2
58
0.473837
Riteme
5a856dacd42c9494452c2330b853017ebd142fbf
2,574
cpp
C++
Game/Entity/Player.cpp
BaiKongQue/CSCI-166_AI_Project
81af3d77f6ba595b87f8e7e73caf7b9fc083c592
[ "MIT" ]
null
null
null
Game/Entity/Player.cpp
BaiKongQue/CSCI-166_AI_Project
81af3d77f6ba595b87f8e7e73caf7b9fc083c592
[ "MIT" ]
null
null
null
Game/Entity/Player.cpp
BaiKongQue/CSCI-166_AI_Project
81af3d77f6ba595b87f8e7e73caf7b9fc083c592
[ "MIT" ]
null
null
null
#include "Player.h" float* Player::vk = nullptr; Player::Player(Window* window, std::vector<Entity*>* entities, std::vector<int>* walls, int spawnPos): Person(window, entities, walls, spawnPos, GRID_TYPE::PLAYER, 4, "archer_sprite.png"), arrows(0) { this->LoadVk(); } float Player::GetReward(GRID_TYPE entityTyp...
22.778761
102
0.529915
BaiKongQue
5a87c63820d80a41cfcf613c49cf8b4cca24444c
892
cpp
C++
plugins/d3d9/src/state/ffp/sampler/disable.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
plugins/d3d9/src/state/ffp/sampler/disable.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
plugins/d3d9/src/state/ffp/sampler/disable.cpp
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) #include <sge/d3d9/d3dinclude.hpp> #include <sge/d3d9/devicefuncs/set_texture_stage_state.hpp> #inc...
37.166667
99
0.73991
cpreh
5a8abcfc261da6bac5eff9e3f7749fd21c47c88b
1,760
hpp
C++
src/include/qasioeventdispatcher.hpp
loyio/TPlayNow
eb2bd8652ffbfd68ce71da4ac54ae3949ff471d7
[ "BSD-3-Clause", "MIT" ]
1
2022-03-21T04:04:14.000Z
2022-03-21T04:04:14.000Z
src/include/qasioeventdispatcher.hpp
loyio/TMsgNow
eb2bd8652ffbfd68ce71da4ac54ae3949ff471d7
[ "BSD-3-Clause", "MIT" ]
null
null
null
src/include/qasioeventdispatcher.hpp
loyio/TMsgNow
eb2bd8652ffbfd68ce71da4ac54ae3949ff471d7
[ "BSD-3-Clause", "MIT" ]
null
null
null
#ifndef QASIOEVENTDISPATCHER_HPP #define QASIOEVENTDISPATCHER_HPP #include "QtCore/qabstracteventdispatcher.h" // #include "private/qabstracteventdispatcher_p.h" #include <QAbstractEventDispatcher> /* #include "QtCore/qabstracteventdispatcher.h" #include "QtCore/qlist.h" #include "private/qabstracteventdispatcher_p.h"...
29.333333
105
0.775568
loyio
5a8bfb34ea4efc6c93d93f11074ca2950892bc31
2,014
cpp
C++
Ko-Fi Engine/Source/Texture.cpp
boscobarberesbert/Ko-Fi-Engine
207ef2223f7c317a776cc7ca2da80ce9a2752116
[ "MIT" ]
2
2022-02-17T10:06:57.000Z
2022-02-17T11:57:18.000Z
Ko-Fi Engine/Source/Texture.cpp
boscobarberesbert/game-engine
207ef2223f7c317a776cc7ca2da80ce9a2752116
[ "MIT" ]
null
null
null
Ko-Fi Engine/Source/Texture.cpp
boscobarberesbert/game-engine
207ef2223f7c317a776cc7ca2da80ce9a2752116
[ "MIT" ]
8
2022-01-04T10:45:15.000Z
2022-03-04T16:23:58.000Z
#include "Texture.h" #include "glew.h" #include "stb_image.h" #include "ImGuiAppLog.h" #define CHECKERS_SIZE 32 void Texture::SetUpTexture(std::string path) { if (path.empty()) { GLubyte checkerImage[CHECKERS_SIZE][CHECKERS_SIZE][4]; for (int i = 0; i < CHECKERS_SIZE; i++) { for (int j = 0; j < CHECKERS_SIZE; ...
31.968254
107
0.723436
boscobarberesbert
5a8d3d9fbf26b8bc627de8106fd0d50434cf46e0
1,524
cpp
C++
src/mkdt_lib/src/registry.cpp
Superlokkus/code
f52cba0c04fc65c0b219ab8e58fdc8144320a039
[ "MIT" ]
null
null
null
src/mkdt_lib/src/registry.cpp
Superlokkus/code
f52cba0c04fc65c0b219ab8e58fdc8144320a039
[ "MIT" ]
null
null
null
src/mkdt_lib/src/registry.cpp
Superlokkus/code
f52cba0c04fc65c0b219ab8e58fdc8144320a039
[ "MIT" ]
null
null
null
/*! @file registry.cpp * */ #include <registry.hpp> void mkdt::registry::register_service(mkdt::service_identifier service_id, std::shared_ptr<mkdt::registry::receiver> service_object, std::function<void(error)> completion_handler) { bo...
42.333333
112
0.578084
Superlokkus
5a8fd641261b95736d93fba5af5cdcd623dc534f
16,082
hpp
C++
include/solace/path.hpp
abbyssoul/libsolace
390c3094af1837715787c33297720bf514f04710
[ "Apache-2.0" ]
18
2016-05-30T23:46:27.000Z
2022-01-11T18:20:28.000Z
include/solace/path.hpp
abbyssoul/libsolace
390c3094af1837715787c33297720bf514f04710
[ "Apache-2.0" ]
4
2017-09-12T13:32:28.000Z
2019-10-21T10:36:18.000Z
include/solace/path.hpp
abbyssoul/libsolace
390c3094af1837715787c33297720bf514f04710
[ "Apache-2.0" ]
5
2017-11-24T19:34:06.000Z
2019-10-18T14:24:12.000Z
/* * Copyright 2016 Ivan Ryabov * * 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 agreed to in ...
29.028881
110
0.666148
abbyssoul
5a94661aa1a14f3937875bd68bc8848b1581bf46
707
cpp
C++
src/lib/Bmrk.cpp
alepez/bmrk
04db2646b42662b976b4f4a1a5fb414ca73df163
[ "MIT" ]
null
null
null
src/lib/Bmrk.cpp
alepez/bmrk
04db2646b42662b976b4f4a1a5fb414ca73df163
[ "MIT" ]
null
null
null
src/lib/Bmrk.cpp
alepez/bmrk
04db2646b42662b976b4f4a1a5fb414ca73df163
[ "MIT" ]
null
null
null
#include "Bmrk.hpp" #include "Bookmark.hpp" #include "PageDownloader.hpp" #include "PageParser.hpp" #include "Library.hpp" namespace bmrk { Bmrk::Bmrk(PageDownloaderPtr downloader, DatabasePtr db) : downloader_{downloader}, db_{db} { library_.reset(new Library); library_->connect(db); } Future<BookmarkPtr> B...
22.806452
74
0.691655
alepez
5a95081d9416399eb580dcde143b00bcaec31c77
2,599
hxx
C++
L2CapDev/mobileremotedrv.hxx
nbclark/mobile-remote
d291ec9accc763190646d97e45dad9e07c630973
[ "Apache-2.0" ]
1
2020-12-15T09:48:51.000Z
2020-12-15T09:48:51.000Z
L2CapDev/mobileremotedrv.hxx
nbclark/mobile-remote
d291ec9accc763190646d97e45dad9e07c630973
[ "Apache-2.0" ]
null
null
null
L2CapDev/mobileremotedrv.hxx
nbclark/mobile-remote
d291ec9accc763190646d97e45dad9e07c630973
[ "Apache-2.0" ]
null
null
null
// // Copyright (c) Microsoft Corporation. All rights reserved. // // // Use of this sample source code is subject to the terms of the Microsoft // license agreement under which you licensed this sample source code. If // you did not accept the terms of the license agreement, you are not // authorized to use th...
26.252525
85
0.710273
nbclark
5a9603906dc473d46a438fd3534f15a834fb30b2
1,668
cpp
C++
test/unit-tests/event/drop_event_test.cpp
twantonie/centurion
198b80f9e8a29da2ae7d3c15e48ffa1a046165c3
[ "MIT" ]
126
2020-12-05T00:05:56.000Z
2022-03-30T15:15:03.000Z
test/unit-tests/event/drop_event_test.cpp
twantonie/centurion
198b80f9e8a29da2ae7d3c15e48ffa1a046165c3
[ "MIT" ]
46
2020-12-27T14:25:22.000Z
2022-01-26T13:58:11.000Z
test/unit-tests/event/drop_event_test.cpp
twantonie/centurion
198b80f9e8a29da2ae7d3c15e48ffa1a046165c3
[ "MIT" ]
13
2021-01-20T20:50:18.000Z
2022-03-25T06:59:03.000Z
#include <gtest/gtest.h> #include "events/event.hpp" TEST(DropEvent, Defaults) { cen::drop_event event; ASSERT_GT(event.time(), 0u); ASSERT_EQ(cen::event_type::drop_file, event.type()); } TEST(DropEvent, SetWillFreeFile) { cen::drop_event event; event.set_will_free_file(true); ASSERT_TRUE(event.will_fre...
20.85
79
0.714628
twantonie
5a974ebb7254ea02bb88f9133495ec34fcd67abf
16,866
cpp
C++
src/util/HttpServer/HttpParser/generated/AcceptHeaderLexer.cpp
jeremiahpslewis/qlever
3cb8db7abe4eb6fdb9ee3e652e7487ece81443a1
[ "Apache-2.0" ]
41
2021-09-28T20:25:57.000Z
2022-03-30T18:06:39.000Z
src/util/HttpServer/HttpParser/generated/AcceptHeaderLexer.cpp
jeremiahpslewis/qlever
3cb8db7abe4eb6fdb9ee3e652e7487ece81443a1
[ "Apache-2.0" ]
64
2021-09-24T17:07:23.000Z
2022-03-23T09:13:25.000Z
src/util/HttpServer/HttpParser/generated/AcceptHeaderLexer.cpp
jeremiahpslewis/qlever
3cb8db7abe4eb6fdb9ee3e652e7487ece81443a1
[ "Apache-2.0" ]
9
2021-09-29T21:46:24.000Z
2022-03-23T08:56:31.000Z
// Generated from AcceptHeader.g4 by ANTLR 4.9.2 #include "AcceptHeaderLexer.h" using namespace antlr4; AcceptHeaderLexer::AcceptHeaderLexer(CharStream* input) : Lexer(input) { _interpreter = new atn::LexerATNSimulator(this, _atn, _decisionToDFA, _sharedContextCache); }...
57.172881
80
0.41391
jeremiahpslewis
5a97e87eb1efd638ccdc8e41c6e3ff1e3bf411c4
211
cpp
C++
src/aimlset.cpp
hoathienvu8x/chatmachine
a05e9afd2dabe49e4a61ba97fbd07d2fcd041b89
[ "Apache-2.0" ]
4
2019-05-01T02:34:17.000Z
2020-12-27T23:29:45.000Z
src/aimlset.cpp
hoathienvu8x/chatmachine
a05e9afd2dabe49e4a61ba97fbd07d2fcd041b89
[ "Apache-2.0" ]
1
2020-03-25T09:14:18.000Z
2020-03-25T09:14:18.000Z
src/aimlset.cpp
hoathienvu8x/chatmachine
a05e9afd2dabe49e4a61ba97fbd07d2fcd041b89
[ "Apache-2.0" ]
11
2019-03-15T07:53:58.000Z
2022-01-08T03:51:21.000Z
#include "aimlset.h" #include "aimltemplateelement.h" using namespace std; using namespace aiml; string Set::name() { return m_sName; } string Set::toString() { return "<set name=\""+m_sName+"\"></set>"; }
15.071429
43
0.677725
hoathienvu8x
5a9a3bc6a067df2104486193ed8c7445b1036b99
54,008
cpp
C++
matrix/EM_vector.cpp
kjhyun824/uncertain-graph-engine
17aa1b8b5d03b03200583797ab0cfb4a42ff8845
[ "Apache-2.0" ]
140
2015-01-02T21:28:55.000Z
2015-12-22T01:25:03.000Z
matrix/EM_vector.cpp
kjhyun824/uncertain-graph-engine
17aa1b8b5d03b03200583797ab0cfb4a42ff8845
[ "Apache-2.0" ]
160
2016-11-07T18:37:33.000Z
2020-03-10T22:57:07.000Z
matrix/EM_vector.cpp
kjhyun824/uncertain-graph-engine
17aa1b8b5d03b03200583797ab0cfb4a42ff8845
[ "Apache-2.0" ]
25
2016-11-14T04:31:29.000Z
2020-07-28T04:58:44.000Z
/* * Copyright 2014 Open Connectome Project (http://openconnecto.me) * Written by Da Zheng (zhengda1936@gmail.com) * * This file is part of FlashMatrix. * * 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 ...
33.052632
82
0.717153
kjhyun824
5a9a43fb26ad4936ab703be6c7fdaa840c5acbe8
8,238
cpp
C++
Lab2a/Lab2a/Benchmark.cpp
sNoDliD/SecondTerm
4baa033cdda764e88492ce47577036ca52d08e57
[ "MIT" ]
null
null
null
Lab2a/Lab2a/Benchmark.cpp
sNoDliD/SecondTerm
4baa033cdda764e88492ce47577036ca52d08e57
[ "MIT" ]
null
null
null
Lab2a/Lab2a/Benchmark.cpp
sNoDliD/SecondTerm
4baa033cdda764e88492ce47577036ca52d08e57
[ "MIT" ]
null
null
null
#include "Header.h" #include <ctime> #include <fstream> static string AddChar(size_t value, size_t minCount = 10, char returnValue = ' '); static string AddChar(string value, size_t minCount = 10, char returnValue = ' '); static void BenchFixedSize(const size_t& n, size_t& sizeInBytes, size_t& timeInMilisec); static...
25.74375
88
0.612891
sNoDliD
5a9c73609bac898e22386094866311293f58493e
10,623
cc
C++
L1Trigger/L1TMuonBayes/src/OmtfPatternGeneration/PatternOptimizerBase.cc
thesps/cmssw
ad5315934948ce96699b29cc1d5b03a59f99634f
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1TMuonBayes/src/OmtfPatternGeneration/PatternOptimizerBase.cc
thesps/cmssw
ad5315934948ce96699b29cc1d5b03a59f99634f
[ "Apache-2.0" ]
null
null
null
L1Trigger/L1TMuonBayes/src/OmtfPatternGeneration/PatternOptimizerBase.cc
thesps/cmssw
ad5315934948ce96699b29cc1d5b03a59f99634f
[ "Apache-2.0" ]
null
null
null
/* * PatternOptimizerBase.cc * * Created on: Oct 17, 2018 * Author: kbunkow */ #include <L1Trigger/L1TMuonBayes/interface/Omtf/GoldenPatternWithStat.h> #include <L1Trigger/L1TMuonBayes/interface/Omtf/XMLConfigWriter.h> #include <L1Trigger/L1TMuonBayes/interface/OmtfPatternGeneration/PatternOptimizerBase.h> ...
42.492
270
0.664407
thesps
5aa1b8953efd03f88ab54fbec67d3ba4e879d775
7,001
cpp
C++
app/src/main/cpp/lesson7/EnvMap.cpp
karaianas/AndroidOpenGLESLessonsCpp
6a2f8c25ef8e36ebe9414e16ad9e1f6b5e95da3c
[ "Apache-2.0" ]
null
null
null
app/src/main/cpp/lesson7/EnvMap.cpp
karaianas/AndroidOpenGLESLessonsCpp
6a2f8c25ef8e36ebe9414e16ad9e1f6b5e95da3c
[ "Apache-2.0" ]
null
null
null
app/src/main/cpp/lesson7/EnvMap.cpp
karaianas/AndroidOpenGLESLessonsCpp
6a2f8c25ef8e36ebe9414e16ad9e1f6b5e95da3c
[ "Apache-2.0" ]
1
2019-03-21T01:32:55.000Z
2019-03-21T01:32:55.000Z
// // Created by karaianas on 2/18/2018. // #include "EnvMap.h" #define LOG_TAG "EnvMap" #define LOGI(fmt, args...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, fmt, ##args) #define LOGD(fmt, args...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, fmt, ##args) #define LOGE(fmt, args...) __android_log_print(ANDROID...
28.229839
104
0.486216
karaianas
5aa2b4e1a09f787abe920565809de530a007c56c
1,737
cpp
C++
2020-11-20/spam.cpp
pufe/programa
7f79566597446e9e39222e6c15fa636c3dd472bb
[ "MIT" ]
2
2020-12-12T00:02:40.000Z
2021-04-21T19:49:59.000Z
2020-11-20/spam.cpp
pufe/programa
7f79566597446e9e39222e6c15fa636c3dd472bb
[ "MIT" ]
null
null
null
2020-11-20/spam.cpp
pufe/programa
7f79566597446e9e39222e6c15fa636c3dd472bb
[ "MIT" ]
null
null
null
#include <cstdio> #include <vector> using namespace std; const int NOT_FILLED = 4; typedef char name_t[32]; struct spam_t { int lower, upper; name_t attribute[3]; int get_index(int x) { if (x<lower) return 0; if (x>=upper) return 2; return 1; } }; spam_t spam[110]; ...
21.182927
59
0.518135
pufe
5aa419ffdb6f377416a7a602ca203d8ed5ef55ff
791
cpp
C++
geos_parse/prototxt_rw/src/prototest.cpp
LiuFG/UpdatingHDmapByMonoCamera
dc8f06795a12669da1a8096e38851f78b2e26a62
[ "MIT" ]
79
2020-04-23T04:39:00.000Z
2022-03-08T09:50:09.000Z
lfg/prototxt_rw/src/prototest.cpp
DeeCamp-Demo/HDMapProject
68e549661f6e583d09448bd0a0b122a6dc2e9fc9
[ "MIT" ]
1
2020-04-23T10:18:50.000Z
2020-04-23T10:18:50.000Z
lfg/prototxt_rw/src/prototest.cpp
DeeCamp-Demo/HDMapProject
68e549661f6e583d09448bd0a0b122a6dc2e9fc9
[ "MIT" ]
29
2020-04-23T07:49:15.000Z
2022-03-26T11:48:53.000Z
// // Created by lfg on 19-7-30. // #include "prototest.h" int main(){ test::ConstraintSetConfig constraint_set_config_; std::string file_name = "../config/test.prototxt"; std::string new_file_name = "../config/new.prototxt"; bool read_state = protoio::ReadProtoFromTextFile(file_name, &constraint_set...
28.25
89
0.719343
LiuFG
5aa576333644e47f5049aadcb59b2d368157a8bd
2,234
cpp
C++
42.trapping-rain-water.cpp
Broadroad/learnLeetcode
c4af121b3451caa4d53819c5f8c62b38e8e5fb87
[ "Apache-2.0" ]
null
null
null
42.trapping-rain-water.cpp
Broadroad/learnLeetcode
c4af121b3451caa4d53819c5f8c62b38e8e5fb87
[ "Apache-2.0" ]
null
null
null
42.trapping-rain-water.cpp
Broadroad/learnLeetcode
c4af121b3451caa4d53819c5f8c62b38e8e5fb87
[ "Apache-2.0" ]
null
null
null
/* * @lc app=leetcode id=42 lang=cpp * * [42] Trapping Rain Water * * https://leetcode.com/problems/trapping-rain-water/description/ * * algorithms * Hard (45.51%) * Likes: 4858 * Dislikes: 85 * Total Accepted: 378.9K * Total Submissions: 831.6K * Testcase Example: '[0,1,0,2,1,0,1,3,2,1,2,1]' * * ...
23.765957
79
0.473142
Broadroad
5aa5ad73325cca8df2ae0828b9cd3fb922212c51
492
hpp
C++
src/VMEffects/TextureBase.hpp
cad420/VMEffects
9f68b2e0e1c1a51b50f5a0383dd9d31c33ab2af0
[ "MIT" ]
null
null
null
src/VMEffects/TextureBase.hpp
cad420/VMEffects
9f68b2e0e1c1a51b50f5a0383dd9d31c33ab2af0
[ "MIT" ]
null
null
null
src/VMEffects/TextureBase.hpp
cad420/VMEffects
9f68b2e0e1c1a51b50f5a0383dd9d31c33ab2af0
[ "MIT" ]
null
null
null
#pragma once #include "DeviceObjectImpl.hpp" #include <VMEffects/ITexture.h> namespace vm { namespace fx { template<typename Interface,typename DeviceType,typename DescType> class TextureBase : public DeviceObject<Interface, DeviceType> { public: TextureBase( IRefCnt *cnt, DeviceType *device,const TextureDesc & de...
18.923077
75
0.747967
cad420
5aa71640ba9a488844502a553e4a9bb7a01597b7
6,807
hpp
C++
plugins/chain_api_plugin/include/eosio/chain_api_plugin/chain_api_plugin_results.hpp
GolosChain/eos
e945893af15879068e51f42c513770ca85ae4a87
[ "MIT" ]
15
2019-08-12T14:38:14.000Z
2019-12-28T22:08:32.000Z
plugins/chain_api_plugin/include/eosio/chain_api_plugin/chain_api_plugin_results.hpp
GolosChain/eos
e945893af15879068e51f42c513770ca85ae4a87
[ "MIT" ]
601
2018-08-21T11:13:04.000Z
2019-07-30T03:48:52.000Z
plugins/chain_api_plugin/include/eosio/chain_api_plugin/chain_api_plugin_results.hpp
GolosChain/eos
e945893af15879068e51f42c513770ca85ae4a87
[ "MIT" ]
3
2019-01-14T11:57:06.000Z
2019-03-15T00:05:54.000Z
#pragma once #include <eosio/chain/types.hpp> #include <eosio/chain/name.hpp> #include <eosio/chain/resource_limits.hpp> #include <eosio/chain/authority.hpp> #include <eosio/chain/asset.hpp> #include <fc/optional.hpp> namespace eosio { struct permission { chain::name perm_name; chain::name ...
36.794595
140
0.639195
GolosChain
5aadfb82c67ac58ef0c46a0aa72c64438cf1fd3c
22,634
cpp
C++
microsoft_pe/src/cpp_stl_11/microsoft_pe.cpp
kaitai-io/formats-kaitai-io.github.io
2700514a2a8f67c5351fe93962c70abea02fd3d3
[ "0BSD" ]
4
2018-12-10T09:21:19.000Z
2021-11-03T16:43:22.000Z
microsoft_pe/src/cpp_stl_11/microsoft_pe.cpp
kaitai-io/formats-kaitai-io.github.io
2700514a2a8f67c5351fe93962c70abea02fd3d3
[ "0BSD" ]
null
null
null
microsoft_pe/src/cpp_stl_11/microsoft_pe.cpp
kaitai-io/formats-kaitai-io.github.io
2700514a2a8f67c5351fe93962c70abea02fd3d3
[ "0BSD" ]
3
2019-04-08T08:22:22.000Z
2021-10-10T19:11:51.000Z
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild #include "microsoft_pe.h" #include "kaitai/exceptions.h" microsoft_pe_t::microsoft_pe_t(kaitai::kstream* p__io, kaitai::kstruct* p__parent, microsoft_pe_t* p__root) : kaitai::kstruct(p__io) { m__parent = p__parent;...
35.700315
194
0.705576
kaitai-io
5aaef3ba8739c38e56ffbc6dd5ce2e56eeadce62
890
cpp
C++
src/core/genericparsertemplate.cpp
LuboO/iCalendar-parser_PA193_Rteam
affd994fb33a23d3dac4e83cfedbfc82f3143143
[ "MIT" ]
null
null
null
src/core/genericparsertemplate.cpp
LuboO/iCalendar-parser_PA193_Rteam
affd994fb33a23d3dac4e83cfedbfc82f3143143
[ "MIT" ]
5
2015-11-04T21:56:04.000Z
2015-11-10T19:58:18.000Z
src/core/genericparsertemplate.cpp
LuboO/iCalendar-parser_PA193_Rteam
affd994fb33a23d3dac4e83cfedbfc82f3143143
[ "MIT" ]
null
null
null
#include "core/genericparsertemplate.h" namespace ical { namespace core { /* See: https://tools.ietf.org/html/rfc5234#appendix-B.1 */ const CharSet GenericParserTemplate::ALPHANUMERIC = CharSet('A', 'Z') | CharSet('a', 'z') | CharSet('0', '9'); const CharSet GenericParserTemplate::WSP = CharSet(' ') | CharSet...
38.695652
79
0.678652
LuboO
5ab00fe668405e07ec1fcd1d5c5db7defe6d2fe2
2,884
cpp
C++
C-Plus-Plus/other/MinJumpsToReachEndofArray.cpp
Khushboo85277/NeoAlgo
784d7b06c385336425ed951918d1ab37b854d29f
[ "MIT" ]
897
2020-06-25T00:12:52.000Z
2022-03-24T00:49:31.000Z
C-Plus-Plus/other/MinJumpsToReachEndofArray.cpp
adarshnjena/NeoAlgo
77a92858d2bf970054ef31c2f55a6d79917a786a
[ "MIT" ]
5,707
2020-06-24T17:53:28.000Z
2022-01-22T05:03:15.000Z
C-Plus-Plus/other/MinJumpsToReachEndofArray.cpp
adarshnjena/NeoAlgo
77a92858d2bf970054ef31c2f55a6d79917a786a
[ "MIT" ]
1,817
2020-06-25T03:51:05.000Z
2022-03-29T05:14:07.000Z
/* Given an array of integers where each element represents the maximum number of steps that can be made forward from that element.We need to find the minimum number of jumps to reach the end of the array (starting from the first element). If an element is 0, then we cannot move through that element. Approach: ------...
28.27451
104
0.59362
Khushboo85277
5ab0cc09d45fad769a6fefdd4d921ca37969b1f6
2,291
hxx
C++
build2/test/script/lexer.hxx
yssource/build2
3f32c45ea6e4406ff6a320e24fccddab467af3e4
[ "MIT" ]
null
null
null
build2/test/script/lexer.hxx
yssource/build2
3f32c45ea6e4406ff6a320e24fccddab467af3e4
[ "MIT" ]
null
null
null
build2/test/script/lexer.hxx
yssource/build2
3f32c45ea6e4406ff6a320e24fccddab467af3e4
[ "MIT" ]
null
null
null
// file : build2/test/script/lexer.hxx -*- C++ -*- // copyright : Copyright (c) 2014-2019 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #ifndef BUILD2_TEST_SCRIPT_LEXER_HXX #define BUILD2_TEST_SCRIPT_LEXER_HXX #include <build2/types.hxx> #include <build2/utility.hxx> #include <build2/lexe...
24.115789
71
0.535137
yssource
5ab353109649cd9e82114f76e1d53d7cdbd4a225
37,997
cc
C++
src/tests/sys/fs/fusefs/default_permissions.cc
lastweek/source-freebsd
0821950b0c40cbc891a27964b342e0202a3859ec
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
src/tests/sys/fs/fusefs/default_permissions.cc
lastweek/source-freebsd
0821950b0c40cbc891a27964b342e0202a3859ec
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
src/tests/sys/fs/fusefs/default_permissions.cc
lastweek/source-freebsd
0821950b0c40cbc891a27964b342e0202a3859ec
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2019 The FreeBSD Foundation * * This software was developed by BFF Storage Systems, LLC under sponsorship * from the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with or without * modification, are permitted pro...
28.8731
79
0.707898
lastweek
5ab3abfd17602a09aa6d69f463c8340a4a9ef5d6
733
cpp
C++
src/dawn/core/io/StringInputStreamTest.cpp
greck2908/dawnengine
74743077fea0140da67c9fd7dd0648098010fcc7
[ "MIT" ]
17
2015-12-05T12:38:12.000Z
2019-06-06T09:18:46.000Z
src/dawn/core/io/StringInputStreamTest.cpp
greck2908/dawnengine
74743077fea0140da67c9fd7dd0648098010fcc7
[ "MIT" ]
53
2015-12-04T01:58:53.000Z
2019-03-14T22:52:23.000Z
src/dawn/core/io/StringInputStreamTest.cpp
greck2908/dawnengine
74743077fea0140da67c9fd7dd0648098010fcc7
[ "MIT" ]
4
2016-03-07T11:50:20.000Z
2018-11-18T16:52:19.000Z
/* * Dawn Engine * Written by David Avedissian (c) 2012-2019 (git@dga.dev) */ #include "Testing.h" #include "core/io/StringInputStream.h" class StringInputStreamTest : public ::testing::Test { public: void SetUp() override { context_ = new dw::Context("", ""); context_->addModule<dw::Logger>(); ...
23.645161
70
0.665757
greck2908
5ab7eca9862e68563dfae8a306afe4930352e26e
91,357
cxx
C++
ds/adsi/ldapc/ldaputil.cxx
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
ds/adsi/ldapc/ldaputil.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
ds/adsi/ldapc/ldaputil.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
#include "ldapc.hxx" #pragma hdrstop // // Local helpers // extern "C" { DWORD GetDefaultLdapServer( LPWSTR Addresses[], LPDWORD Count, BOOL Verify, DWORD dwPort ) ; } WINLDAPAPI ULONG LDAPAPI ldap_get_optionW( LDAP *ld, ...
23.181172
101
0.509244
npocmaka
5ab9f03f0680db93d7215f796fcd8a5e9f1eb69d
1,968
cc
C++
chrome/browser/ui/toolbar/chrome_labs_prefs.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
chrome/browser/ui/toolbar/chrome_labs_prefs.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
chrome/browser/ui/toolbar/chrome_labs_prefs.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/toolbar/chrome_labs_prefs.h" #include "components/pref_registry/pref_registry_syncable.h" #include "components/prefs/pref_regi...
38.588235
80
0.802846
zealoussnow
5abb03e8ec3586b10ea8955d890ae125eeed7156
9,598
cpp
C++
inetcore/connectionwizard/icwdial/icwerr.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
inetcore/connectionwizard/icwdial/icwerr.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
inetcore/connectionwizard/icwdial/icwerr.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*----------------------------------------------------------------------------- icwerr.cpp Maps RAS and downloading errors to string resource indices Copyright (C) 1996 Microsoft Corporation All rights reserved. Authors: ChrisK ChrisKauffman History: 7/22/9...
32.100334
105
0.66816
npocmaka
5abb97b0f8e52b6cca1923c658f5dcee3de70436
6,955
cpp
C++
Projects/MissionariesAndCannibals/src/MandCEnvironment.cpp
GlobeOfGeek/modern_ai
d2f2e02b89b35cec00021732d57f99e078972342
[ "MIT" ]
5
2016-04-01T02:10:46.000Z
2016-10-24T19:07:07.000Z
Projects/MissionariesAndCannibals/src/MandCEnvironment.cpp
GlobeOfGeek/morris_aima
d2f2e02b89b35cec00021732d57f99e078972342
[ "MIT" ]
null
null
null
Projects/MissionariesAndCannibals/src/MandCEnvironment.cpp
GlobeOfGeek/morris_aima
d2f2e02b89b35cec00021732d57f99e078972342
[ "MIT" ]
null
null
null
#include <json/json.h> #include "MandCEnvironment.h" #include <iostream> #include "MandCEnvironmentState.h" #include <vector> #include "StateNode.h" #include "MandCAction.h" void MandCEnvironment::loadEnvironment(string fileName) { StateNode *initialNode = NULL; MandCEnvironmentState *initialState = new MandCE...
32.050691
111
0.641265
GlobeOfGeek
5abe1290174aa54677aff998642aaf5fa1a4145d
923
cpp
C++
src/Sudoku/Slice.cpp
Pafnoutios/libsudoku
9d700716895d46f71e854133a1135ab6047b3f88
[ "MIT" ]
null
null
null
src/Sudoku/Slice.cpp
Pafnoutios/libsudoku
9d700716895d46f71e854133a1135ab6047b3f88
[ "MIT" ]
null
null
null
src/Sudoku/Slice.cpp
Pafnoutios/libsudoku
9d700716895d46f71e854133a1135ab6047b3f88
[ "MIT" ]
null
null
null
#include "Slice.hpp" #include "Cell.hpp" #include <numeric> Sudoku::Slice::Slice(const Size& size) : _possibilities(size[iBlock]) , _members{ size[iBlock], nullptr } { std::iota(_possibilities.begin(), _possibilities.end(), 0); } void Sudoku::Slice::assignMember(int index, Cell& cell) { _members[index] = &c...
22.512195
117
0.690141
Pafnoutios
5abe7c6e11498dddde9095eadb7b09122c5486ac
601
cpp
C++
LeetCode/c++/985_Sum of Even Numbers After Queries_V2.cpp
Weak-Chicken/Algo_every_day
0976b5986d6c98cb8370ff4239b4a2485f865253
[ "MIT" ]
1
2018-02-08T23:50:19.000Z
2018-02-08T23:50:19.000Z
LeetCode/c++/985_Sum of Even Numbers After Queries_V2.cpp
Weak-Chicken/Algo_every_day
0976b5986d6c98cb8370ff4239b4a2485f865253
[ "MIT" ]
1
2018-04-11T19:08:22.000Z
2018-04-12T19:24:57.000Z
LeetCode/c++/985_Sum of Even Numbers After Queries_V2.cpp
Weak-Chicken/Cpp_every_day
0976b5986d6c98cb8370ff4239b4a2485f865253
[ "MIT" ]
null
null
null
class Solution { public: vector<int> sumEvenAfterQueries(vector<int>& A, vector<vector<int>>& queries) { vector<int>res; int sum = 0; if (A.size() == 0 || queries.size() == 0) return res; for (int i = 0; i < A.size(); i++) if (A[i] % 2 == 0) sum += A[i]; for (int i = 0; i < que...
33.388889
82
0.450915
Weak-Chicken
5ac5d8ee28d7244d9e033322a549a6a152ee2d65
10,319
cpp
C++
src/CwshExprParse.cpp
colinw7/Cwsh
f39e93ca48e92b14a55c1dce8c85b37843cff81e
[ "MIT" ]
1
2021-12-23T02:22:56.000Z
2021-12-23T02:22:56.000Z
src/CwshExprParse.cpp
colinw7/Cwsh
f39e93ca48e92b14a55c1dce8c85b37843cff81e
[ "MIT" ]
null
null
null
src/CwshExprParse.cpp
colinw7/Cwsh
f39e93ca48e92b14a55c1dce8c85b37843cff81e
[ "MIT" ]
null
null
null
#include <CwshI.h> std::string CwshExprParse::unary_operator_chars_ = "+-!~"; std::string CwshExprParse::binary_operator_chars_ = "+-*/%<>=!&|^#"; std::string CwshExprParse::file_operator_chars_ = "deforwxz"; CwshExprParse:: CwshExprParse(Cwsh *cwsh) : cwsh_(cwsh) { } std::string CwshExprParse:: parse(const std:...
20.154297
77
0.562264
colinw7
5ac7fbda84205b8781b54bfaf5b98b64b1c8a731
287
hpp
C++
Sources/ECS/Components/Lights/Light.hpp
n8vm/InteractiveComputerGraphics
022d1b7b5ca81846bf5f310b30fde9beda54ff22
[ "MIT" ]
null
null
null
Sources/ECS/Components/Lights/Light.hpp
n8vm/InteractiveComputerGraphics
022d1b7b5ca81846bf5f310b30fde9beda54ff22
[ "MIT" ]
null
null
null
Sources/ECS/Components/Lights/Light.hpp
n8vm/InteractiveComputerGraphics
022d1b7b5ca81846bf5f310b30fde9beda54ff22
[ "MIT" ]
1
2019-01-29T10:44:58.000Z
2019-01-29T10:44:58.000Z
#pragma once #include "Components/Component.hpp" #include <memory> #include <glm/glm.hpp> namespace Components::Lights { class LightInterface { public: virtual glm::vec4 getColor() = 0; }; class Light : public Component { public: std::shared_ptr<LightInterface> light; }; }
17.9375
40
0.710801
n8vm
5ac9475d8d79f9b54b2b0259c5d7bac59840936d
1,271
hpp
C++
include/codegen/include/GlobalNamespace/EnumFlagAttribute.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/GlobalNamespace/EnumFlagAttribute.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/GlobalNamespace/EnumFlagAttribute.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: UnityEngine.PropertyAttribute #include "UnityEngine/Pro...
37.382353
85
0.693155
Futuremappermydud
5ace5f94900d63f26cc8724172224403cb0b14ea
560
cpp
C++
dev/g++/projects/beaglebone/beagleboneComm/src/beagleboneCommInit.cpp
YannGarcia/repo
0f3de24c71d942c752ada03c10861e83853fdf71
[ "MIT" ]
null
null
null
dev/g++/projects/beaglebone/beagleboneComm/src/beagleboneCommInit.cpp
YannGarcia/repo
0f3de24c71d942c752ada03c10861e83853fdf71
[ "MIT" ]
null
null
null
dev/g++/projects/beaglebone/beagleboneComm/src/beagleboneCommInit.cpp
YannGarcia/repo
0f3de24c71d942c752ada03c10861e83853fdf71
[ "MIT" ]
1
2017-01-27T12:53:50.000Z
2017-01-27T12:53:50.000Z
#include <unistd.h> #include "raspberryCommInit.h" #include "wiringPi.h" namespace raspberryComm { raspberryCommInit * raspberryCommInit::Instance = new raspberryCommInit(); raspberryCommInit::~raspberryCommInit() { delete raspberryCommInit::Instance; raspberryCommInit::Instance = NULL; } raspber...
22.4
76
0.728571
YannGarcia
62c597a6f0a1fab651351abcfa196de3a43e6a49
1,579
cpp
C++
src/Apps/RemoteCloudControlServer/main.cpp
miseri/rtp_plus_plus
244ddd86f40f15247dd39ae7f9283114c2ef03a2
[ "BSD-3-Clause" ]
1
2021-07-14T08:15:05.000Z
2021-07-14T08:15:05.000Z
src/Apps/RemoteCloudControlServer/main.cpp
7956968/rtp_plus_plus
244ddd86f40f15247dd39ae7f9283114c2ef03a2
[ "BSD-3-Clause" ]
null
null
null
src/Apps/RemoteCloudControlServer/main.cpp
7956968/rtp_plus_plus
244ddd86f40f15247dd39ae7f9283114c2ef03a2
[ "BSD-3-Clause" ]
2
2021-07-14T08:15:02.000Z
2021-07-14T08:56:10.000Z
#include "RemoteCloudControlServerPch.h" #include <iostream> #include <thread> #include <grpc/grpc.h> #include <grpc++/server.h> #include <grpc++/server_builder.h> #include <grpc++/server_context.h> #include <grpc++/server_credentials.h> #include <grpc++/status.h> #include <grpc++/stream.h> #include <RemoteCloudContro...
22.884058
142
0.720709
miseri
62c858754f08b5f68ae3fbc352fd415f21bc57dc
3,084
cpp
C++
snark-logic/libs-source/multiprecision/test/test_jacobi.cpp
idealatom/podlodkin-freeton-year-control
6aa96e855fe065c9a75c76da976a87fe2d1668e6
[ "MIT" ]
1
2021-09-14T18:09:38.000Z
2021-09-14T18:09:38.000Z
snark-logic/libs-source/multiprecision/test/test_jacobi.cpp
idealatom/podlodkin-freeton-year-control
6aa96e855fe065c9a75c76da976a87fe2d1668e6
[ "MIT" ]
null
null
null
snark-logic/libs-source/multiprecision/test/test_jacobi.cpp
idealatom/podlodkin-freeton-year-control
6aa96e855fe065c9a75c76da976a87fe2d1668e6
[ "MIT" ]
1
2021-09-15T20:27:27.000Z
2021-09-15T20:27:27.000Z
/////////////////////////////////////////////////////////////// // Copyright 2020 Mikhail Komarov. 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 #ifdef _MSC_VER #define _SCL_SECURE_NO_WARNINGS #endif #include...
35.045455
120
0.74546
idealatom
62cdd66b558e3f917bf9765c27762cb9fd3ee906
3,233
cpp
C++
mongochem/plugins/similaritygraph/structuresimilaritydialog.cpp
OpenChemistry/mongochem
16773290309a487cd75b2ab50e5e0daba3c936dd
[ "BSD-3-Clause" ]
9
2015-05-12T20:37:16.000Z
2021-10-14T16:01:42.000Z
mongochem/plugins/similaritygraph/structuresimilaritydialog.cpp
OpenChemistry/mongochem
16773290309a487cd75b2ab50e5e0daba3c936dd
[ "BSD-3-Clause" ]
1
2015-07-01T22:54:07.000Z
2015-07-01T22:54:07.000Z
mongochem/plugins/similaritygraph/structuresimilaritydialog.cpp
OpenChemistry/mongochem
16773290309a487cd75b2ab50e5e0daba3c936dd
[ "BSD-3-Clause" ]
4
2017-10-02T01:59:56.000Z
2021-01-04T09:05:50.000Z
/****************************************************************************** This source file is part of the MongoChem project. Copyright 2012 Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software distr...
34.393617
105
0.719146
OpenChemistry
62d05a65db1e367526e7b217741a1370827da2cb
685
cpp
C++
scoperesolution.cpp
PRASAD-DANGARE/CPP
bf5ba5f87a229d88152fef80cb6a4d73bf578815
[ "MIT" ]
null
null
null
scoperesolution.cpp
PRASAD-DANGARE/CPP
bf5ba5f87a229d88152fef80cb6a4d73bf578815
[ "MIT" ]
null
null
null
scoperesolution.cpp
PRASAD-DANGARE/CPP
bf5ba5f87a229d88152fef80cb6a4d73bf578815
[ "MIT" ]
null
null
null
/* Description : Use Of Scope Resolution Function Date : 23 Nov 2020 Function Author : Prasad Dangare Input : String,Integer */ #include <iostream> using namespace std; int m = 10; // global m int main() { int m = 20; // local to main { int k = m; ...
20.147059
61
0.429197
PRASAD-DANGARE
62d066f8912b0e695973d72e3f75976fd5f85a6e
5,216
cc
C++
tensorflow/lite/delegates/gpu/common/tasks/add_test_util.cc
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/lite/delegates/gpu/common/tasks/add_test_util.cc
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/lite/delegates/gpu/common/tasks/add_test_util.cc
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
/* Copyright 2021 The TensorFlow 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 applicable law or a...
43.831933
80
0.646664
EricRemmerswaal
62d34292368d8e44dfec1be6fbe80af145bf7687
14,652
cc
C++
lib/evaluate/variable.cc
ibara/f18
5344ef9272f2f46702e96409c8d697b927542e20
[ "Apache-2.0" ]
null
null
null
lib/evaluate/variable.cc
ibara/f18
5344ef9272f2f46702e96409c8d697b927542e20
[ "Apache-2.0" ]
null
null
null
lib/evaluate/variable.cc
ibara/f18
5344ef9272f2f46702e96409c8d697b927542e20
[ "Apache-2.0" ]
null
null
null
// Copyright (c) 2018, NVIDIA CORPORATION. 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.245509
90
0.589954
ibara
62d8fbae06222f16bf1a4b0d1903272664751fd8
4,067
cxx
C++
Source/vtkboneLinearAnisotropicMaterial.cxx
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
3
2017-04-04T04:59:22.000Z
2022-03-13T11:22:40.000Z
Source/vtkboneLinearAnisotropicMaterial.cxx
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
5
2017-04-06T19:46:39.000Z
2019-12-11T23:41:41.000Z
Source/vtkboneLinearAnisotropicMaterial.cxx
Numerics88/vtkbone
5a6ab2870679e9e7ea51926c34911607b9d85235
[ "MIT" ]
2
2017-04-29T20:54:57.000Z
2017-04-29T22:28:10.000Z
#include "vtkboneLinearAnisotropicMaterial.h" #include "vtkDoubleArray.h" #include "vtkObjectFactory.h" #include "vtkSmartPointer.h" vtkStandardNewMacro (vtkboneLinearAnisotropicMaterial); //---------------------------------------------------------------------------- vtkboneLinearAnisotropicMaterial::vtkboneLinearAni...
32.277778
101
0.554955
Numerics88
62e0570b5b063f862cfda43d51502080c71915b7
2,716
cpp
C++
src/sctokenoperations.cpp
BryanMorfe/SciCalc
1602c159c48013beb8dee09ff648923f37c69e09
[ "Apache-2.0" ]
1
2020-12-13T16:56:32.000Z
2020-12-13T16:56:32.000Z
src/sctokenoperations.cpp
BryanMorfe/SciCalc
1602c159c48013beb8dee09ff648923f37c69e09
[ "Apache-2.0" ]
null
null
null
src/sctokenoperations.cpp
BryanMorfe/SciCalc
1602c159c48013beb8dee09ff648923f37c69e09
[ "Apache-2.0" ]
null
null
null
#include "include/sctokenoperations.h" #include <QRegularExpression> TokenType SCTokenOperations::tokenType(const QChar &ch) { TokenType type; QHash<QString, SCToken *>::const_iterator it = tokens.find(ch); if (it != tokens.end()) type = it.value()->getType(); else { if (ch.isLette...
26.368932
121
0.559278
BryanMorfe
62e8e64b11b428735a119a89982d33238ce6c430
30,507
cpp
C++
oneEngine/oneGame/source/after-editor/standalone/CParticleEditor.cpp
jonting/1Engine
f22ba31f08fa96fe6405ebecec4f374138283803
[ "BSD-3-Clause" ]
8
2017-12-08T02:59:31.000Z
2022-02-02T04:30:03.000Z
oneEngine/oneGame/source/after-editor/standalone/CParticleEditor.cpp
jonting/1Engine
f22ba31f08fa96fe6405ebecec4f374138283803
[ "BSD-3-Clause" ]
2
2021-04-16T03:44:42.000Z
2021-08-30T06:48:44.000Z
oneEngine/oneGame/source/after-editor/standalone/CParticleEditor.cpp
jonting/1Engine
f22ba31f08fa96fe6405ebecec4f374138283803
[ "BSD-3-Clause" ]
1
2021-04-16T02:09:54.000Z
2021-04-16T02:09:54.000Z
#include "CParticleEditor.h" //#include "COglWindow.h" #include "core/system/System.h" #include "renderer/debug/CDebugDrawer.h" #include "core/system/io/CBinaryFile.h" #include "core-ext/system/io/serializer/ISerialBinary.h" #include "core-ext/system/io/serializer/OSerialBinary.h" #include "core/system/io/CSegmentedF...
40.839357
170
0.696955
jonting
62ee806f672615081ec982c8113e69c19b86750d
388
cpp
C++
WeeklyHomework/0526-1.cpp
Ping6666/Algorithm-Project
cdf0b56cd277badcdd964982f5c033fd4888274a
[ "MIT" ]
1
2021-04-12T05:08:07.000Z
2021-04-12T05:08:07.000Z
WeeklyHomework/0526-1.cpp
Ping6666/Algorithm-Projects
cdf0b56cd277badcdd964982f5c033fd4888274a
[ "MIT" ]
null
null
null
WeeklyHomework/0526-1.cpp
Ping6666/Algorithm-Projects
cdf0b56cd277badcdd964982f5c033fd4888274a
[ "MIT" ]
null
null
null
#include <iostream> int main() { int num; std::cin >> num; for (int i = 0; i < num; i++) { int n; std::cin >> n; int sum = 0; int num = 0; for (int j = 1; sum <= n; j++) { sum += j; num = j; } std::...
18.47619
57
0.319588
Ping6666
62fbef887f6f2c39b389085e50b2417c229d8883
565
cpp
C++
stats.cpp
Engin-Boot/statisticker-cpp-deekshaarora12
7ed6b5b024bc22560c230e9fede070df38705f77
[ "MIT" ]
null
null
null
stats.cpp
Engin-Boot/statisticker-cpp-deekshaarora12
7ed6b5b024bc22560c230e9fede070df38705f77
[ "MIT" ]
null
null
null
stats.cpp
Engin-Boot/statisticker-cpp-deekshaarora12
7ed6b5b024bc22560c230e9fede070df38705f77
[ "MIT" ]
null
null
null
#include "stats.h" #include <bits/stdc++.h> namespace Statistics { struct declareStats ComputeStatistics(const std::vector<float> &mystats) { struct declareStats ds; float sum = 0.0; int n = mystats.size(); if(mystats.size()!=0){ auto max_ele = *max_element(std::begin(mystats), std::end(mysta...
23.541667
75
0.638938
Engin-Boot
62fc517303aacf36d20b8f79731d304af90e8662
896
cpp
C++
source/RegistNodes.cpp
xzrunner/vfxlab
a2a30ee369d1955ceb55353f2dcdafdf1ce2fe37
[ "MIT" ]
null
null
null
source/RegistNodes.cpp
xzrunner/vfxlab
a2a30ee369d1955ceb55353f2dcdafdf1ce2fe37
[ "MIT" ]
null
null
null
source/RegistNodes.cpp
xzrunner/vfxlab
a2a30ee369d1955ceb55353f2dcdafdf1ce2fe37
[ "MIT" ]
null
null
null
#include "vfxlab/RegistNodes.h" #include <ee0/ReflectPropTypes.h> #include <js/RTTR.h> #define REGIST_NODE_RTTI(type, name, prop) \ rttr::registration::class_<vfxlab::node::type>("vfxlab::"#name) \ .constructor<>() \ prop ...
20.837209
79
0.613839
xzrunner
1a004aaafd9b8f98cfabbd936ba1728d67e3fb1c
9,827
cc
C++
test/gurka/test_instructions_keep_toward.cc
mixvit/valhalla
65d56caf85103f267452e7b79e49ec66a9bf480e
[ "MIT" ]
1
2019-12-11T13:45:27.000Z
2019-12-11T13:45:27.000Z
test/gurka/test_instructions_keep_toward.cc
Bolaxax/valhalla
f5e464a1f7f2d75d08ea6db6bb8418c0f500eccb
[ "MIT" ]
1
2020-07-29T17:39:33.000Z
2020-08-03T11:07:51.000Z
test/gurka/test_instructions_keep_toward.cc
Bolaxax/valhalla
f5e464a1f7f2d75d08ea6db6bb8418c0f500eccb
[ "MIT" ]
1
2020-11-01T14:49:36.000Z
2020-11-01T14:49:36.000Z
#include "gurka.h" #include <gtest/gtest.h> #if !defined(VALHALLA_SOURCE_DIR) #define VALHALLA_SOURCE_DIR #endif using namespace valhalla; class InstructionsKeepToward : public ::testing::Test { protected: static gurka::map map; static void SetUpTestSuite() { constexpr double gridsize_metres = 1000; co...
48.890547
96
0.47339
mixvit
1a01ed5437304d3d8e5213b54750414c978f5a0d
469
cpp
C++
Prime_in_a_given_range/prime_number_2nd/main.cpp
narendrajethi220/Getting-Started
fd1b910228b6cfb30b82f50f52f6c32e79437ea3
[ "MIT" ]
null
null
null
Prime_in_a_given_range/prime_number_2nd/main.cpp
narendrajethi220/Getting-Started
fd1b910228b6cfb30b82f50f52f6c32e79437ea3
[ "MIT" ]
null
null
null
Prime_in_a_given_range/prime_number_2nd/main.cpp
narendrajethi220/Getting-Started
fd1b910228b6cfb30b82f50f52f6c32e79437ea3
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int isPrime(int n) { if(n<2) return 0; else if(n%2==0) return 0; for(int i=3;i*i<=n;i+=2) { if(n%i==0) { return 0; } } return 1; } int main() { int num; cout<<"Enter the num";...
13.794118
29
0.392324
narendrajethi220
1a054bec5c3e7f0d2a8f3785062f6278d1115ae7
10,743
cc
C++
src/flevent.cc
ComputerNerd/moonfltk
6da77cacb0b158907c5cf9320b9d06ca44dd43c0
[ "MIT" ]
38
2016-06-22T18:39:45.000Z
2021-09-14T00:15:18.000Z
src/flevent.cc
ComputerNerd/moonfltk
6da77cacb0b158907c5cf9320b9d06ca44dd43c0
[ "MIT" ]
23
2018-03-21T13:19:32.000Z
2022-02-15T12:09:23.000Z
src/flevent.cc
ComputerNerd/moonfltk
6da77cacb0b158907c5cf9320b9d06ca44dd43c0
[ "MIT" ]
9
2016-06-23T11:44:29.000Z
2022-02-05T09:08:49.000Z
/* The MIT License (MIT) * * Copyright (c) 2016 Stefano Trettel * * Software repository: MoonFLTK, https://github.com/stetre/moonfltk * * 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...
27.335878
82
0.577213
ComputerNerd
1a07974b080a9e45f1c10126f327e0570ee7345b
4,101
cpp
C++
locomotion_framework/models/visualization_tools/src/rviz_track_point.cpp
ADVRHumanoids/DrivingFramework
34715c37bfe3c1f2bd92aeacecc12704a1a7820e
[ "Zlib" ]
1
2019-12-02T07:10:42.000Z
2019-12-02T07:10:42.000Z
locomotion_framework/models/visualization_tools/src/rviz_track_point.cpp
ADVRHumanoids/DrivingFramework
34715c37bfe3c1f2bd92aeacecc12704a1a7820e
[ "Zlib" ]
null
null
null
locomotion_framework/models/visualization_tools/src/rviz_track_point.cpp
ADVRHumanoids/DrivingFramework
34715c37bfe3c1f2bd92aeacecc12704a1a7820e
[ "Zlib" ]
2
2020-10-22T19:06:44.000Z
2021-06-07T03:32:52.000Z
#include "mwoibn/visualization_tools/rviz_track_point.h" #include <type_traits> //for std::underlying_type int mwoibn::visualization_tools::RvizTrackPoint::initMarker( mwoibn::visualization_tools::Utils::TYPE type, std::string frame, double x, double y, double z, double pos_x, double pos_y, double pos_z, doubl...
29.292857
80
0.62497
ADVRHumanoids
1a103e9e3241b455e7d47b41619b73db878694f5
10,516
cpp
C++
src/engine/World.cpp
vaeinoe/lvs
9d37b8f1008012f5fe616d0ef5be124142a6e178
[ "Unlicense" ]
null
null
null
src/engine/World.cpp
vaeinoe/lvs
9d37b8f1008012f5fe616d0ef5be124142a6e178
[ "Unlicense" ]
null
null
null
src/engine/World.cpp
vaeinoe/lvs
9d37b8f1008012f5fe616d0ef5be124142a6e178
[ "Unlicense" ]
null
null
null
/* * World.cpp * Leavs * * Created by Väinö Ala-Härkönen on 10/27/12. * Copyright 2012 Lumeet. All rights reserved. * */ #include "World.h" #include "Tile.h" #include "LVSEngine.h" #include "TileLevel.h" using namespace ci; void World::setup( Configuration *config, const Vec2i newSize ) { rnd.seed(tim...
27.60105
149
0.52073
vaeinoe
1a121ab5d7faeae9a52642f84fafc8afbf700e98
1,626
cc
C++
interview/slice_window.cc
sczzq/symmetrical-spoon
aa0c27bb40a482789c7c6a7088307320a007b49b
[ "Unlicense" ]
null
null
null
interview/slice_window.cc
sczzq/symmetrical-spoon
aa0c27bb40a482789c7c6a7088307320a007b49b
[ "Unlicense" ]
null
null
null
interview/slice_window.cc
sczzq/symmetrical-spoon
aa0c27bb40a482789c7c6a7088307320a007b49b
[ "Unlicense" ]
null
null
null
#include <iostream> #include <vector> #include <set> using namespace std; /* * 给定一个数组array,给定一个正整数w * 假设数组的大小大于w * 输出数组中所有连续w个数的最大值和最小值的差的最大的绝对值。 * 也就是,对于连续的w个数,其中有最大值和最小值,计算最大值和最小值的差的绝对值, * 需要输出所有连续w个数的最大的绝对值。 * * 举例 * 数组 1 4 3 4 2 6 * w = 3 * * 总共有四组连续的3个数 * 1 4 3 * 4 3 4 * 3 4 2 * 4 2 6 * 每组中的最大值和最...
16.762887
84
0.528905
sczzq
1a12e2fea02ae0855fbe1ff6e52a5e9fb1f7dab8
9,244
cpp
C++
oneflow/core/framework/tensor_pool.cpp
shihan-ma/oneflow
1705ec0859aefb4ff07a29ae4255fab70c67464b
[ "Apache-2.0" ]
null
null
null
oneflow/core/framework/tensor_pool.cpp
shihan-ma/oneflow
1705ec0859aefb4ff07a29ae4255fab70c67464b
[ "Apache-2.0" ]
null
null
null
oneflow/core/framework/tensor_pool.cpp
shihan-ma/oneflow
1705ec0859aefb4ff07a29ae4255fab70c67464b
[ "Apache-2.0" ]
null
null
null
/* Copyright 2020 The OneFlow 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 applicable law or agre...
35.282443
113
0.625054
shihan-ma
1a135edc31e2f9ca47c8e5438f74ddb832858a50
7,057
cpp
C++
example/ccana/source/pyfunc.cpp
goroyabu/anlpy
2d5d65b898d31d69f990e973cbfdbabd8cb0a15c
[ "MIT" ]
null
null
null
example/ccana/source/pyfunc.cpp
goroyabu/anlpy
2d5d65b898d31d69f990e973cbfdbabd8cb0a15c
[ "MIT" ]
null
null
null
example/ccana/source/pyfunc.cpp
goroyabu/anlpy
2d5d65b898d31d69f990e973cbfdbabd8cb0a15c
[ "MIT" ]
null
null
null
/** @file pyfunc.cpp @date 2020/05/06 @author goroyabu @detail Automatically generated by make_anlpy_project.sh 1.0.0 **/ #include "ProjectCone3D.hpp" #include "IterateCone3D.hpp" #include "Extract2Photon.hpp" #include "Project2Photon3D.hpp" #include "Iterate2Photon3D.hpp" #include "PETimager.hpp" #i...
48.668966
83
0.738841
goroyabu
1a1629bbc40abbeb90943b8b07c1d129cc4c8338
4,976
hxx
C++
main/unodevtools/source/skeletonmaker/skeletonjava.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/unodevtools/source/skeletonmaker/skeletonjava.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/unodevtools/source/skeletonmaker/skeletonjava.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
44.035398
157
0.555667
Grosskopf