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
ec702cbe9f1d97ef65c883da236fe22cb43b5c07
9,296
cpp
C++
cm-cuda/io.cpp
BeauJoh/HeCBench
594b845171d686dc951971ce36ed59cf114dd2b4
[ "BSD-3-Clause" ]
25
2021-11-01T03:36:10.000Z
2022-03-30T03:07:33.000Z
cm-cuda/io.cpp
BeauJoh/HeCBench
594b845171d686dc951971ce36ed59cf114dd2b4
[ "BSD-3-Clause" ]
1
2021-12-14T11:04:14.000Z
2021-12-14T13:22:32.000Z
cm-cuda/io.cpp
BeauJoh/HeCBench
594b845171d686dc951971ce36ed59cf114dd2b4
[ "BSD-3-Clause" ]
8
2021-11-13T14:28:05.000Z
2022-03-09T10:24:54.000Z
#include "utils.h" //----------------------------------------------------------------------------------- // USER INPUT FUNCTIONS //----------------------------------------------------------------------------------- /* * Prompt the user to input the required number of random gene signatures used to assess significanc...
36.3125
196
0.628657
BeauJoh
ec704eb3d4e7c4d02413b4cfdc8e209817f9e314
123
cpp
C++
ExodusImport/Source/ExodusImport/Private/JsonObjects/ResId.cpp
AldeRoberge/ProjectExodus
74ecd6c8719e6365b51458c65954bff2910bc36e
[ "BSD-3-Clause" ]
288
2019-04-02T08:02:59.000Z
2022-03-28T23:53:28.000Z
ExodusImport/Source/ExodusImport/Private/JsonObjects/ResId.cpp
adamgoodrich/ProjectExodus
29a9fa87f981ad41e3b323702dc2b0d4523889d8
[ "BSD-3-Clause" ]
54
2019-04-19T08:24:05.000Z
2022-03-28T19:44:42.000Z
ExodusImport/Source/ExodusImport/Private/JsonObjects/ResId.cpp
adamgoodrich/ProjectExodus
29a9fa87f981ad41e3b323702dc2b0d4523889d8
[ "BSD-3-Clause" ]
56
2019-04-07T03:55:39.000Z
2022-03-20T04:54:57.000Z
#include "JsonImportPrivatePCH.h" #include "ResId.h" uint32 GetTypeHash(const ResId &id){ return (uint32)id.toIndex(); }
17.571429
36
0.739837
AldeRoberge
ec725cb677cde2081f4d45b144a8331477cadde5
5,570
hpp
C++
cisco-ios-xe/ydk/models/cisco_ios_xe/MPLS_LDP_GENERIC_STD_MIB.hpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
17
2016-12-02T05:45:49.000Z
2022-02-10T19:32:54.000Z
cisco-ios-xe/ydk/models/cisco_ios_xe/MPLS_LDP_GENERIC_STD_MIB.hpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
2
2017-03-27T15:22:38.000Z
2019-11-05T08:30:16.000Z
cisco-ios-xe/ydk/models/cisco_ios_xe/MPLS_LDP_GENERIC_STD_MIB.hpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
11
2016-12-02T05:45:52.000Z
2019-11-07T08:28:17.000Z
#ifndef _MPLS_LDP_GENERIC_STD_MIB_ #define _MPLS_LDP_GENERIC_STD_MIB_ #include <memory> #include <vector> #include <string> #include <ydk/types.hpp> #include <ydk/errors.hpp> namespace cisco_ios_xe { namespace MPLS_LDP_GENERIC_STD_MIB { class MPLSLDPGENERICSTDMIB : public ydk::Entity { public: MPLSLDPGE...
48.017241
162
0.728725
CiscoDevNet
ec7414dd2224e715efdf6043e6211ea8cedf0687
103
cpp
C++
main.cpp
rtlayzell/math
953bcdbb9d08f9e84df634034bc940989fcf9574
[ "MIT" ]
null
null
null
main.cpp
rtlayzell/math
953bcdbb9d08f9e84df634034bc940989fcf9574
[ "MIT" ]
null
null
null
main.cpp
rtlayzell/math
953bcdbb9d08f9e84df634034bc940989fcf9574
[ "MIT" ]
null
null
null
#include <iostream> #include <vector.hpp> #include <angle.hpp> int main(int, char**) { return 0; }
10.3
23
0.650485
rtlayzell
3f3a77c530db26e2e54b7e71222110a882a1e8f7
5,739
cpp
C++
uart_dma/src/board_pins.cpp
Bergi84/vihaltests
f338e6aff3e389501dc8a018f1dbde862b7971a1
[ "BSD-2-Clause" ]
null
null
null
uart_dma/src/board_pins.cpp
Bergi84/vihaltests
f338e6aff3e389501dc8a018f1dbde862b7971a1
[ "BSD-2-Clause" ]
null
null
null
uart_dma/src/board_pins.cpp
Bergi84/vihaltests
f338e6aff3e389501dc8a018f1dbde862b7971a1
[ "BSD-2-Clause" ]
null
null
null
/* * file: board_pins.cpp (uart_dma) * brief: UART DMA DEMO board specific initializations * version: 1.00 * date: 2021-10-29 * authors: nvitya */ #include "board_pins.h" #include "uartcomm.h" unsigned pin_led_count = 1; TGpioPin pin_led[MAX_LEDS] = { TGpioPin(), TGpioPin(), TGpioPin()...
25.171053
96
0.647674
Bergi84
3f3edec31873b83f16972b72341c77cb94821e2f
141
cpp
C++
cores/teensy4/serialEventUSB1.cpp
SPACE-AC/DESCENDERE-Payload
12b31eac34beea905999c75b456f7977ec15d84a
[ "MIT" ]
3
2021-11-05T03:42:36.000Z
2022-01-30T17:49:43.000Z
cores/teensy4/serialEventUSB1.cpp
SPACE-AC/DESCENDERE-Payload
12b31eac34beea905999c75b456f7977ec15d84a
[ "MIT" ]
11
2021-06-05T14:51:14.000Z
2021-12-08T06:44:34.000Z
cores/teensy4/serialEventUSB1.cpp
SPACE-AC/DESCENDERE-Payload
12b31eac34beea905999c75b456f7977ec15d84a
[ "MIT" ]
null
null
null
#include <Arduino.h> void serialEventUSB1() __attribute__((weak)); void serialEventUSB1() {} uint8_t _serialEventUSB1_default PROGMEM = 1;
23.5
46
0.77305
SPACE-AC
3f4004f424f97a3d13369bb94e178bcc4d403c8b
3,472
cpp
C++
wsettings/wsettingdirs2indexmodel.cpp
privet56/qDesktopSearch
702aac770a11895e19180bd4ed2279c7a8ab64be
[ "Apache-2.0" ]
10
2016-04-15T15:31:08.000Z
2019-10-02T01:19:48.000Z
wsettings/wsettingdirs2indexmodel.cpp
privet56/qDesktopSearch
702aac770a11895e19180bd4ed2279c7a8ab64be
[ "Apache-2.0" ]
null
null
null
wsettings/wsettingdirs2indexmodel.cpp
privet56/qDesktopSearch
702aac770a11895e19180bd4ed2279c7a8ab64be
[ "Apache-2.0" ]
5
2016-04-15T15:31:10.000Z
2022-02-22T02:00:06.000Z
#include "wsettingdirs2indexmodel.h" #include <QBrush> #include <QIcon> #include "globalinclude.h" #include "str.h" /*! * Creates a model object with the given \a ds and \a parent. */ wsettingdirs2indexModel::wsettingdirs2indexModel(QObject *parent) :QAbstractTableModel(parent), m_pLog(nullptr) { } /*! ...
22.4
102
0.604263
privet56
3f405cc13394ac4e29dabbf7a5098076e1acde35
5,525
cpp
C++
applications/paint/PaintTool.cpp
busybox11/skift
778ae3a0dc5ac29d7de02200c49d3533e47854c5
[ "MIT" ]
2
2020-07-14T21:16:54.000Z
2020-10-08T08:40:47.000Z
applications/paint/PaintTool.cpp
busybox11/skift
778ae3a0dc5ac29d7de02200c49d3533e47854c5
[ "MIT" ]
null
null
null
applications/paint/PaintTool.cpp
busybox11/skift
778ae3a0dc5ac29d7de02200c49d3533e47854c5
[ "MIT" ]
null
null
null
#include <libsystem/Assert.h> #include <libsystem/Logger.h> #include <libutils/Vector.h> #include "paint/PaintDocument.h" #include "paint/PaintTool.h" void pencil_tool_mouse_event(PaintTool *tool, PaintDocument *document, Event event) { __unused(tool); if (event.type == Event::MOUSE_MOVE || event.type == Eve...
26.95122
113
0.618281
busybox11
3f406026f94878c8c43113f01880c53d345b4fda
623
cpp
C++
A4D/Engine/SkcMeshFilter.cpp
365082218/A4D
4c34c53c5cc0eeaaffface9f60ed114b8388c2c0
[ "MIT" ]
null
null
null
A4D/Engine/SkcMeshFilter.cpp
365082218/A4D
4c34c53c5cc0eeaaffface9f60ed114b8388c2c0
[ "MIT" ]
null
null
null
A4D/Engine/SkcMeshFilter.cpp
365082218/A4D
4c34c53c5cc0eeaaffface9f60ed114b8388c2c0
[ "MIT" ]
1
2020-05-07T06:48:45.000Z
2020-05-07T06:48:45.000Z
#include "stdafx.h" #include "SkcMeshFilter.h" #include "Component.h" #include "EventDispatcher.h" #include "resources.h" #include "BaseMesh.h" #include "Mesh.h" #include "SkcMesh.h" #include "GeometryFilter.h" #include "MeshFilter.h" #include "GameObject.h" #include "Transform.h" REGISTER_CLASS(SkcMeshFilter) SkcMeshF...
20.766667
46
0.723917
365082218
3f409b1856ff34a49b0bc168ed52b11858a94a50
222
cpp
C++
model.cpp
SsorryQaQ/Algorithm-competition
ee2ed79438ecaf15015d9b043d3e099cfa3829c5
[ "MIT" ]
1
2019-12-01T01:37:56.000Z
2019-12-01T01:37:56.000Z
model.cpp
SsorryQaQ/Algorithm-competition
ee2ed79438ecaf15015d9b043d3e099cfa3829c5
[ "MIT" ]
null
null
null
model.cpp
SsorryQaQ/Algorithm-competition
ee2ed79438ecaf15015d9b043d3e099cfa3829c5
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define _for(i,a,b) for (int i=(a);i<(b);i++) #define _rep(i,a,b) for (int i=(a);i<=(b);i++) using namespace std; int readint(){ int x; scanf("%d",&x); return x; } int main(){ return 0; }
18.5
46
0.554054
SsorryQaQ
3f4721eb811dffb7a441612571a964b175445c8a
4,222
cpp
C++
src/platform/web/font.cpp
reubenscratton/oaknut
03b37965ad84745bd5c077a27d8b53d58a173662
[ "MIT" ]
5
2019-10-04T05:10:06.000Z
2021-02-03T23:29:10.000Z
src/platform/web/font.cpp
reubenscratton/oaknut
03b37965ad84745bd5c077a27d8b53d58a173662
[ "MIT" ]
null
null
null
src/platform/web/font.cpp
reubenscratton/oaknut
03b37965ad84745bd5c077a27d8b53d58a173662
[ "MIT" ]
2
2019-09-27T00:34:36.000Z
2020-10-27T09:44:26.000Z
// // Copyright © 2018 Sandcastle Software Ltd. All rights reserved. // // This file is part of 'Oaknut' which is released under the MIT License. // See the LICENSE file in the root of this installation for details. // #if PLATFORM_WEB #include <oaknut.h> //extern string base64_encode(const char* input, size_t len); ...
40.990291
120
0.612032
reubenscratton
3f48607cef4102749bf6f48666373eb838b8db0b
5,957
cpp
C++
eval/src/vespa/eval/tensor/dense/dense_number_join_function.cpp
NolanJos/vespa
fdc4350398029fbffbed3c0498380589a73571d7
[ "Apache-2.0" ]
1
2020-06-02T13:28:29.000Z
2020-06-02T13:28:29.000Z
eval/src/vespa/eval/tensor/dense/dense_number_join_function.cpp
NolanJos/vespa
fdc4350398029fbffbed3c0498380589a73571d7
[ "Apache-2.0" ]
null
null
null
eval/src/vespa/eval/tensor/dense/dense_number_join_function.cpp
NolanJos/vespa
fdc4350398029fbffbed3c0498380589a73571d7
[ "Apache-2.0" ]
null
null
null
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "dense_number_join_function.h" #include "dense_tensor_view.h" #include <vespa/eval/eval/value.h> #include <vespa/eval/eval/operation.h> namespace vespalib::tensor { using vespalib::ArrayRef; usi...
33.094444
120
0.649824
NolanJos
3f4ed9be0af37d6ef20903910a873e1dea10d994
1,835
hpp
C++
include/eve/module/real/core/function/regular/generic/ldexp.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
include/eve/module/real/core/function/regular/generic/ldexp.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
include/eve/module/real/core/function/regular/generic/ldexp.hpp
orao/eve
a8bdc6a9cab06d905e8749354cde63776ab76846
[ "MIT" ]
null
null
null
//================================================================================================== /** EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT **/ //================================================================================================== #...
32.192982
100
0.544959
orao
3f4fbc33e8aa5a02f60bc33a71725217af57f5a2
10,328
cc
C++
MLAlg.cc
Alvence/CPXC
5fedb702647b830f852f140dd3a7ac1226709652
[ "MIT" ]
null
null
null
MLAlg.cc
Alvence/CPXC
5fedb702647b830f852f140dd3a7ac1226709652
[ "MIT" ]
null
null
null
MLAlg.cc
Alvence/CPXC
5fedb702647b830f852f140dd3a7ac1226709652
[ "MIT" ]
null
null
null
#include "MLAlg.h" #include <vector> #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/ml/ml.hpp> using namespace cv; using namespace std; template <class T> void vectorToMat(vector<T>* vec, Mat &mat){ //TODO makesure dimensions are equal for (int i = ...
30.738095
151
0.608927
Alvence
3f50d5193072992ff491a9e65f448724c3a5b792
14,796
cpp
C++
ixplugins/jsonrpc/JsonObject.cpp
algamza/ixwss
fc323df76754d9f8aa24a36a24f640378c9e86bb
[ "Unlicense" ]
1
2020-02-11T02:42:31.000Z
2020-02-11T02:42:31.000Z
ixplugins/jsonrpc/JsonObject.cpp
algamza/ixwss
fc323df76754d9f8aa24a36a24f640378c9e86bb
[ "Unlicense" ]
null
null
null
ixplugins/jsonrpc/JsonObject.cpp
algamza/ixwss
fc323df76754d9f8aa24a36a24f640378c9e86bb
[ "Unlicense" ]
null
null
null
/** * @file JsonObject.cpp * @author Group(SW_Browser) <gsw_browser@humaxdigital.com> * @brief * * (c) 2017 Humax Co., Ltd. * This program is produced by Humax Co., Ltd. ("Humax") and * the proprietary Software of Humax and its licensors. Humax provides you, as an Authorized Licensee, * non-assignable, non-tr...
24.993243
137
0.662544
algamza
3f54fd87607f33197ed7270711ec3cca42827e86
990
cpp
C++
c++/Virtual_Base_class.cpp
zexhan17/Problem-Solving
94a4d2181ada7152a584a7b03dcedef6c915e18f
[ "MIT" ]
null
null
null
c++/Virtual_Base_class.cpp
zexhan17/Problem-Solving
94a4d2181ada7152a584a7b03dcedef6c915e18f
[ "MIT" ]
null
null
null
c++/Virtual_Base_class.cpp
zexhan17/Problem-Solving
94a4d2181ada7152a584a7b03dcedef6c915e18f
[ "MIT" ]
null
null
null
/* VIRTUAL BASE CLASSES A class that is inherited by child classes using virtual keyword is called virtual base class. The virtual base classes are necessary in a situation where the member of base class is duplicated in multilevel inheritance. */ #include <iostream> using namespace std; /...
21.521739
97
0.678788
zexhan17
3f55f5f52fce8257a6133bb2878f695c96d4b36c
30,111
cpp
C++
tests/nn_tests.cpp
adeobootpin/light-tensor
dfc2d19495848e773b7367427cf848e4ac30b29d
[ "MIT" ]
null
null
null
tests/nn_tests.cpp
adeobootpin/light-tensor
dfc2d19495848e773b7367427cf848e4ac30b29d
[ "MIT" ]
null
null
null
tests/nn_tests.cpp
adeobootpin/light-tensor
dfc2d19495848e773b7367427cf848e4ac30b29d
[ "MIT" ]
null
null
null
#include <iostream> #include <chrono> #include <float.h> #include "lten.h" int LoadMNISTImages(const char* pchFileName, float** ppfImages, int* piTotalImages); int LoadMNISTLabels(const char* pchFileName, char** ppchLabels); //------------------------------------------------------------------------------- ...
27.348774
178
0.611803
adeobootpin
3f58d5bccc1d35a4b8b648d6f82f6f83ee5dbbfe
2,483
hpp
C++
src/file/Util.hpp
hotwatermorning/Vst3SampleHost
405f8f9ca89467de46ee3fd9b819503e556022e7
[ "MIT" ]
19
2019-09-15T11:35:11.000Z
2021-12-02T12:27:09.000Z
src/file/Util.hpp
hotwatermorning/Vst3SampleHost
405f8f9ca89467de46ee3fd9b819503e556022e7
[ "MIT" ]
3
2019-09-15T12:48:49.000Z
2019-09-18T10:43:19.000Z
src/file/Util.hpp
hotwatermorning/Vst3SampleHost
405f8f9ca89467de46ee3fd9b819503e556022e7
[ "MIT" ]
1
2021-08-27T23:07:27.000Z
2021-08-27T23:07:27.000Z
#pragma once #include <string> #include <vector> #include <optional> #include <sstream> #include "../device/DeviceType.hpp" #include "../plugin/vst3/Vst3PluginFactory.hpp" #include "../gui/PluginViewType.hpp" #include "../app/OscillatorType.hpp" NS_HWM_BEGIN Int32 stoi_or(std::string const &str, Int32 default_value)...
26.414894
101
0.701973
hotwatermorning
3f5962b79931093121d4303758388a7410c1ffdf
3,284
cpp
C++
438-find-all-anagrams-in-a-string/438-find-all-anagrams-in-a-string.cpp
ComputerScientist-01/SDE-Sheet
e0ebd6e6a21ed07ce0a1ae123f552e7a4da3ac3a
[ "MIT" ]
null
null
null
438-find-all-anagrams-in-a-string/438-find-all-anagrams-in-a-string.cpp
ComputerScientist-01/SDE-Sheet
e0ebd6e6a21ed07ce0a1ae123f552e7a4da3ac3a
[ "MIT" ]
null
null
null
438-find-all-anagrams-in-a-string/438-find-all-anagrams-in-a-string.cpp
ComputerScientist-01/SDE-Sheet
e0ebd6e6a21ed07ce0a1ae123f552e7a4da3ac3a
[ "MIT" ]
null
null
null
class Solution { public: vector<int> findAnagrams(string s, string p) { //sliding window technique using my own template int n = s.size(); //length of source string int m = p.size(); //length of target string //init an array or var to save the result as per the question re...
37.318182
81
0.482034
ComputerScientist-01
3f5de510a30d7a9c6217c1a6610b7f9a352ba354
6,696
cpp
C++
Rotations/sqct/gcommdecomposer.cpp
teaguetomesh/ScaffCC
52b087a00ac19384a736b4c64631ca67bd1d8054
[ "BSD-2-Clause" ]
1
2022-02-05T23:28:35.000Z
2022-02-05T23:28:35.000Z
Rotations/sqct/gcommdecomposer.cpp
teaguetomesh/ScaffCC
52b087a00ac19384a736b4c64631ca67bd1d8054
[ "BSD-2-Clause" ]
null
null
null
Rotations/sqct/gcommdecomposer.cpp
teaguetomesh/ScaffCC
52b087a00ac19384a736b4c64631ca67bd1d8054
[ "BSD-2-Clause" ]
1
2022-02-05T23:42:06.000Z
2022-02-05T23:42:06.000Z
// Copyright (c) 2012 Vadym Kliuchnikov sqct(dot)software(at)gmail(dot)com, Dmitri Maslov, Michele Mosca // // This file is part of SQCT. // // SQCT is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Sof...
30.436364
121
0.559438
teaguetomesh
3f5e41f5807433ea1d9aeb6327f1f49278eaaace
1,113
cpp
C++
50_mypow/template.cpp
406345/leetcode
175889bf450ef6b4cd9b2209382e9892ed61efda
[ "MIT" ]
2
2021-07-18T12:58:41.000Z
2021-11-17T11:05:40.000Z
50_mypow/template.cpp
406345/leetcode
175889bf450ef6b4cd9b2209382e9892ed61efda
[ "MIT" ]
null
null
null
50_mypow/template.cpp
406345/leetcode
175889bf450ef6b4cd9b2209382e9892ed61efda
[ "MIT" ]
null
null
null
#include "stdio.h" #include "vector" #include "unordered_map" #include "unordered_set" #include "set" #include "map" #include "algorithm" #include "string" #include "queue" #include "stack" using namespace std; class Solution { public: inline double mul(double x, long long n) { if (n == 0) ret...
15.458333
46
0.427673
406345
3f5f69882c487a14a530d9440da69b8ec252633d
99
hpp
C++
source/utils.hpp
in1tiate/OoT3D_Randomizer
baa1f4a0f4a2e1aadec9547120b29d1617211f45
[ "MIT" ]
133
2020-08-25T20:27:08.000Z
2022-03-28T04:38:44.000Z
source/utils.hpp
in1tiate/OoT3D_Randomizer
baa1f4a0f4a2e1aadec9547120b29d1617211f45
[ "MIT" ]
112
2020-11-27T18:51:33.000Z
2022-03-28T21:58:21.000Z
source/utils.hpp
in1tiate/OoT3D_Randomizer
baa1f4a0f4a2e1aadec9547120b29d1617211f45
[ "MIT" ]
57
2020-08-24T08:54:39.000Z
2022-03-27T18:08:51.000Z
#pragma once #include <algorithm> #include <string> std::string RemoveLineBreaks(std::string s);
14.142857
44
0.747475
in1tiate
3f623ac4d3bd86e6c28225657cab32022928a474
360
hpp
C++
src/But/Log/Backend/NonPrintableTrimmer.hpp
el-bart/but
eee2e7e34dde415f4c87461f75c2bab38fc56407
[ "BSD-3-Clause" ]
27
2016-01-12T19:30:57.000Z
2022-01-27T15:52:39.000Z
src/But/Log/Backend/NonPrintableTrimmer.hpp
el-bart/but
eee2e7e34dde415f4c87461f75c2bab38fc56407
[ "BSD-3-Clause" ]
4
2017-04-10T16:30:22.000Z
2019-04-24T21:02:55.000Z
src/But/Log/Backend/NonPrintableTrimmer.hpp
el-bart/but
eee2e7e34dde415f4c87461f75c2bab38fc56407
[ "BSD-3-Clause" ]
2
2016-12-09T17:09:59.000Z
2019-07-16T00:19:31.000Z
#pragma once #include <array> #include <string> #include <cinttypes> namespace But { namespace Log { namespace Backend { struct NonPrintableTrimmer final { NonPrintableTrimmer(); std::string operator()(std::string in) const { for(auto& e: in) e = lut_[ (uint8_t)e ]; return in; } private: con...
11.612903
46
0.652778
el-bart
3f6a5237cf58e6cbf1214210f841b753b071dc6a
3,906
hpp
C++
DGP/AxisAlignedBox3.hpp
sidch/DGP
20a2d47563b6e36cd89bea0b1326e5267df8e9a6
[ "BSD-3-Clause" ]
14
2016-03-15T16:24:10.000Z
2022-01-06T13:43:17.000Z
a3/src/DGP/AxisAlignedBox3.hpp
meetps/CS-749
f1ddc4ed003b3a9f222f2a724d53076ddec697a6
[ "MIT" ]
null
null
null
a3/src/DGP/AxisAlignedBox3.hpp
meetps/CS-749
f1ddc4ed003b3a9f222f2a724d53076ddec697a6
[ "MIT" ]
5
2017-04-12T17:40:57.000Z
2022-01-06T13:43:20.000Z
//============================================================================ // // DGP: Digital Geometry Processing toolkit // Copyright (C) 2016, Siddhartha Chaudhuri // // This software is covered by a BSD license. Portions derived from other // works are covered by their respective licenses. For full licensing // ...
30.27907
125
0.566052
sidch
3f6b94d39409cea97b6afe617ca64ffba13ceedf
17,031
cpp
C++
ToolKit/Chart/Types/XTPChartTypes.cpp
11Zero/DemoBCG
8f41d5243899cf1c82990ca9863fb1cb9f76491c
[ "MIT" ]
2
2018-03-30T06:40:08.000Z
2022-02-23T12:40:13.000Z
ToolKit/Chart/Types/XTPChartTypes.cpp
11Zero/DemoBCG
8f41d5243899cf1c82990ca9863fb1cb9f76491c
[ "MIT" ]
null
null
null
ToolKit/Chart/Types/XTPChartTypes.cpp
11Zero/DemoBCG
8f41d5243899cf1c82990ca9863fb1cb9f76491c
[ "MIT" ]
1
2020-08-11T05:48:02.000Z
2020-08-11T05:48:02.000Z
// XTPChartTypes.cpp // // This file is a part of the XTREME TOOLKIT PRO 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 WITHOUT THE EXPRESSED WRITTEN // CONSENT OF CODEJOCK ...
40.453682
115
0.697434
11Zero
3f6beebf9679c937728810fac22739c31178c3ec
386
hpp
C++
pythran/pythonic/include/numpy/array_equal.hpp
artas360/pythran
66dad52d52be71693043e9a7d7578cfb9cb3d1da
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/include/numpy/array_equal.hpp
artas360/pythran
66dad52d52be71693043e9a7d7578cfb9cb3d1da
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/include/numpy/array_equal.hpp
artas360/pythran
66dad52d52be71693043e9a7d7578cfb9cb3d1da
[ "BSD-3-Clause" ]
null
null
null
#ifndef PYTHONIC_INCLUDE_NUMPY_ARRAYEQUAL_HPP #define PYTHONIC_INCLUDE_NUMPY_ARRAYEQUAL_HPP #include "pythonic/utils/proxy.hpp" #include "pythonic/types/ndarray.hpp" #include "pythonic/numpy/all.hpp" namespace pythonic { namespace numpy { template <class U, class V> bool array_equal(U const &u, V const ...
17.545455
45
0.748705
artas360
3f6f7d7f0cdb5415e678aaa66db993794286c42d
1,532
cpp
C++
UnitTests/unit_tests_main.cpp
krulis-martin/Moccarduino
3cb200ea6e3c271a664355ba5a26162fec8ec95d
[ "MIT" ]
1
2021-01-22T00:57:15.000Z
2021-01-22T00:57:15.000Z
UnitTests/unit_tests_main.cpp
krulis-martin/Moccarduino
3cb200ea6e3c271a664355ba5a26162fec8ec95d
[ "MIT" ]
null
null
null
UnitTests/unit_tests_main.cpp
krulis-martin/Moccarduino
3cb200ea6e3c271a664355ba5a26162fec8ec95d
[ "MIT" ]
null
null
null
#include "test.hpp" #include <map> #include <string> #include <iostream> using tests_t = const std::map<std::string, const MoccarduinoTest*>; /** * Check that given test name is on the argument list. * More precisely, whether one of the given keywords (in arguments) is a substring of the name. */ bool on_list(con...
26.413793
98
0.583551
krulis-martin
3f709a87c2abd7e403077a0384c290e058518a91
2,076
cpp
C++
ConsoleLog.cpp
EmuraDaisuke/iostream.OperationCheck
37bc548bca79023cd7d2c99055e923520672ef51
[ "Unlicense" ]
null
null
null
ConsoleLog.cpp
EmuraDaisuke/iostream.OperationCheck
37bc548bca79023cd7d2c99055e923520672ef51
[ "Unlicense" ]
null
null
null
ConsoleLog.cpp
EmuraDaisuke/iostream.OperationCheck
37bc548bca79023cd7d2c99055e923520672ef51
[ "Unlicense" ]
null
null
null
#include <cstdio> #include "./ConsoleLog.h" ConsoleLog::~ConsoleLog() noexcept {} ConsoleLog::ConsoleLog() :mp(ma){} void ConsoleLog::Out() const noexcept { std::puts(ma); std::fflush(stdout); } void ConsoleLog::Put() noexcept { Tail...
56.108108
109
0.551541
EmuraDaisuke
3f75dcee1933da78259b2f3876233847c8c52e56
5,678
cpp
C++
OptiScada/devicemodbusethernet.cpp
optimasiti/optiscada
12a9a49558160649d4ce7c665a85b4fa9d1e1fa2
[ "MIT" ]
2
2020-06-17T13:53:48.000Z
2022-02-19T05:32:46.000Z
OptiScada/devicemodbusethernet.cpp
optimasiti/optiscada
12a9a49558160649d4ce7c665a85b4fa9d1e1fa2
[ "MIT" ]
null
null
null
OptiScada/devicemodbusethernet.cpp
optimasiti/optiscada
12a9a49558160649d4ce7c665a85b4fa9d1e1fa2
[ "MIT" ]
1
2018-11-04T14:03:24.000Z
2018-11-04T14:03:24.000Z
#include <QModbusTcpClient> #include <QDateTime> #include <QThread> #include <QCoreApplication> #include <QVariant> #include <QMutexLocker> #include "writecommand.h" #include "devicemodbusethernet.h" #include "modbuscommon.h" #include "modbusmemory.h" #include "log.h" const int DeviceModbusEthernet::NumberOfRetries =...
28.248756
235
0.647411
optimasiti
3f7e32513b9dd485191335f7ef613c7b7333b71b
5,948
cpp
C++
test_package/src/ntc.cpp
matt1795/thermistor
8f7a858fb0fc13b47b16597ae889209726352e71
[ "Apache-2.0" ]
null
null
null
test_package/src/ntc.cpp
matt1795/thermistor
8f7a858fb0fc13b47b16597ae889209726352e71
[ "Apache-2.0" ]
null
null
null
test_package/src/ntc.cpp
matt1795/thermistor
8f7a858fb0fc13b47b16597ae889209726352e71
[ "Apache-2.0" ]
null
null
null
// Thermistor Tests // // Author: Matthew Knight // File Name: thermistor.cpp // Date: 2019-09-04 // Tests for this library #include <gcem.hpp> #include <gtest/gtest.h> #include "ertj0ev474j.hpp" #include "typical.hpp" #include "thermistor/ntc.hpp" #include <array> #include <limits> #include <random> #include <tup...
35.195266
79
0.655514
matt1795
3f8859cc9bfa0f0c363eba2f2d3c47934d73adf0
2,337
cpp
C++
connections/SubunitConn.cpp
PetaVision/ObsoletePV
e99a42bf4292e944b252e144b5e07442b0715697
[ "MIT" ]
null
null
null
connections/SubunitConn.cpp
PetaVision/ObsoletePV
e99a42bf4292e944b252e144b5e07442b0715697
[ "MIT" ]
null
null
null
connections/SubunitConn.cpp
PetaVision/ObsoletePV
e99a42bf4292e944b252e144b5e07442b0715697
[ "MIT" ]
null
null
null
/* * LineSegments.cpp * * Created on: Jan 26, 2009 * Author: rasmussn */ #ifdef OBSOLETE // Use KernelConn or HyperConn and set the param "weightInitType" to "SubUnitWeight" in the params file #include "SubunitConn.hpp" #include "../io/io.h" #include <assert.h> #include <string.h> namespace PV { /** * Th...
23.138614
119
0.527172
PetaVision
3f8a4210c819759e66bedfe255903cc41b71d932
620
cpp
C++
codes/CodeForces/Round #228/cf388A.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
codes/CodeForces/Round #228/cf388A.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
codes/CodeForces/Round #228/cf388A.cpp
JeraKrs/ACM
edcd61ec6764b8cd804bf1538dfde53d0ff572b5
[ "Apache-2.0" ]
null
null
null
#include <stdio.h> #include <string.h> #include <algorithm> using namespace std; const int N = 105; int n, cnt[N], tmp; void init () { int a; tmp = 0; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &a); tmp = max(a, tmp); cnt[a]++; } } void set(int x, int c) { if (x > tmp) return; if (c > ...
12.653061
33
0.480645
JeraKrs
3f8e2488e622a09117e35414152e8a7392986ec0
3,587
hpp
C++
blast/include/objtools/alnmgr/aln_container.hpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/include/objtools/alnmgr/aln_container.hpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/include/objtools/alnmgr/aln_container.hpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
#ifndef OBJTOOLS_ALNMGR___ALN_CONTAINER__HPP #define OBJTOOLS_ALNMGR___ALN_CONTAINER__HPP /* $Id: aln_container.hpp 601341 2020-02-05 20:27:33Z vasilche $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center fo...
28.023438
78
0.667131
mycolab
3f914001efb9e495ffd8e68d9ba3282deb7085c0
264
cpp
C++
test/data/phenology/crop2ml/algo/cpp/Is_FlagLeafLiguleJustVisible_Registred.cpp
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
5
2020-06-21T18:58:04.000Z
2022-01-29T21:32:28.000Z
test/data/phenology/crop2ml/algo/cpp/Is_FlagLeafLiguleJustVisible_Registred.cpp
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
27
2018-12-04T15:35:44.000Z
2022-03-11T08:25:03.000Z
test/data/phenology/crop2ml/algo/cpp/Is_FlagLeafLiguleJustVisible_Registred.cpp
brichet/PyCrop2ML
7177996f72a8d95fdbabb772a16f1fd87b1d033e
[ "MIT" ]
7
2019-04-20T02:25:22.000Z
2021-11-04T07:52:35.000Z
int isMomentRegistredZC_39; size_t posFlag = find(calendarMoments.begin(), calendarMoments.end(), "FlagLeafLiguleJustVisible") - calendarMoments.begin(); if (posFlag < calendarMoments.size()) { isMomentRegistredZC_39 = 1; } else isMomentRegistredZC_39 = 0;
26.4
125
0.768939
brichet
3f94f720768a83a7f4c7a4fe8d4e86404d89f7d9
1,778
cpp
C++
src/dfm/overlay/impl/Message.cpp
dfm-official/dfm
97f133aa87b17c760b90f2358d6ba10bc7ad9d1f
[ "ISC" ]
null
null
null
src/dfm/overlay/impl/Message.cpp
dfm-official/dfm
97f133aa87b17c760b90f2358d6ba10bc7ad9d1f
[ "ISC" ]
null
null
null
src/dfm/overlay/impl/Message.cpp
dfm-official/dfm
97f133aa87b17c760b90f2358d6ba10bc7ad9d1f
[ "ISC" ]
null
null
null
#include <ripple/basics/safe_cast.h> #include <ripple/overlay/Message.h> #include <ripple/overlay/impl/TrafficCount.h> #include <cstdint> namespace ripple { Message::Message (::google::protobuf::Message const& message, int type) { unsigned const messageBytes = message.ByteSize (); assert (messageBytes != 0...
21.166667
82
0.605174
dfm-official
3f9a52fde9e6b2947d8df6943dda0f293bb04139
1,216
cc
C++
cc/hmap/DegreeOfAnArray.cc
zihengCat/leetcode-collections
e94d6ee7d17cc72c8f34162d60e8d869164cbd53
[ "MIT" ]
4
2021-12-08T15:36:36.000Z
2022-03-23T12:21:06.000Z
cc/hmap/DegreeOfAnArray.cc
zihengCat/leetcode-collections
e94d6ee7d17cc72c8f34162d60e8d869164cbd53
[ "MIT" ]
null
null
null
cc/hmap/DegreeOfAnArray.cc
zihengCat/leetcode-collections
e94d6ee7d17cc72c8f34162d60e8d869164cbd53
[ "MIT" ]
null
null
null
#include <vector> #include <unordered_map> using namespace std; /** * LeetCode 697. Degree of an Array * https://leetcode.com/problems/degree-of-an-array/ */ class DegreeOfAnArray { public: int findShortestSubArray(vector<int>& nums) { // Build a HashTable => { num: orderedIndexArray[...] } // ...
24.32
75
0.430099
zihengCat
3f9dc8964c3889bdc54a4ef76e9fde6fffe6215f
6,477
hpp
C++
src/Product.hpp
thomasebsmith/units
b37d172e6414131f685f11033754c95c4adad8ad
[ "MIT" ]
null
null
null
src/Product.hpp
thomasebsmith/units
b37d172e6414131f685f11033754c95c4adad8ad
[ "MIT" ]
null
null
null
src/Product.hpp
thomasebsmith/units
b37d172e6414131f685f11033754c95c4adad8ad
[ "MIT" ]
null
null
null
#ifndef __UNITSLIB_PRODUCT_HPP__ #define __UNITSLIB_PRODUCT_HPP__ #include <algorithm> #include <type_traits> namespace Units { // Forward declarations to prevent infinite #include recursion. template <typename Unit> class Inverse; class Unitless; template <typename Unit1, typename Unit2> class Product; /...
30.990431
78
0.65308
thomasebsmith
3f9e4e08ff15377d318d9502c31770f973d9a250
372
cpp
C++
C++/303.cpp
TianChenjiang/LeetCode
a680c90bc968eba5aa76c3674af1f2d927986ec7
[ "MIT" ]
1
2021-08-31T08:53:47.000Z
2021-08-31T08:53:47.000Z
C++/303.cpp
TianChenjiang/LeetCode
a680c90bc968eba5aa76c3674af1f2d927986ec7
[ "MIT" ]
null
null
null
C++/303.cpp
TianChenjiang/LeetCode
a680c90bc968eba5aa76c3674af1f2d927986ec7
[ "MIT" ]
null
null
null
class NumArray { public: vector<int> array; NumArray(vector<int>& nums) { array = nums; } int sumRange(int i, int j) { return accumulate(array.begin()+i, array.begin()+j+1, 0); } }; /** * Your NumArray object will be instantiated and called as such: * NumArray* obj = new NumA...
21.882353
65
0.596774
TianChenjiang
3fa1e55debd8b766bd7fc91a64b1d93f55cc68d8
855
cpp
C++
Scripts/BasicEnemyAIScript/EnemyStateCooldown.cpp
solidajenjo/Engine
409516f15e0f083e79b749b9c9184f2f04184325
[ "MIT" ]
10
2019-02-25T11:36:23.000Z
2021-11-03T22:51:30.000Z
Scripts/BasicEnemyAIScript/EnemyStateCooldown.cpp
solidajenjo/Engine
409516f15e0f083e79b749b9c9184f2f04184325
[ "MIT" ]
146
2019-02-05T13:57:33.000Z
2019-11-07T16:21:31.000Z
Scripts/BasicEnemyAIScript/EnemyStateCooldown.cpp
FractalPuppy/Engine
409516f15e0f083e79b749b9c9184f2f04184325
[ "MIT" ]
3
2019-11-17T20:49:12.000Z
2020-04-19T17:28:28.000Z
#include "EnemyStateCooldown.h" #include "BasicEnemyAIScript.h" #include "EnemyControllerScript.h" EnemyStateCooldown::EnemyStateCooldown(BasicEnemyAIScript* AIScript) { enemy = AIScript; trigger = "Cooldown"; } EnemyStateCooldown::~EnemyStateCooldown() { } void EnemyStateCooldown::Enter() { enemy->enemyControl...
18.586957
79
0.733333
solidajenjo
3fa94405b67298b9da639154effe1991b1fa22d3
1,455
cpp
C++
Match4Server/Board.cpp
KFlaga/Match4
d34ab8404f0d9377ce9c46737acea67005187ee8
[ "MIT" ]
null
null
null
Match4Server/Board.cpp
KFlaga/Match4
d34ab8404f0d9377ce9c46737acea67005187ee8
[ "MIT" ]
null
null
null
Match4Server/Board.cpp
KFlaga/Match4
d34ab8404f0d9377ce9c46737acea67005187ee8
[ "MIT" ]
null
null
null
#include "Board.h" #include <string.h> using namespace Match4; FourChecker::FourChecker(Board* board) : board_(board), dirs_{ Point{ -1,0 }, { -1,1 }, { 0,1 }, { 1,1 }, { 1,0 }, { 1,-1 }, { 0,-1 }, { -1,-1 } } { } FourChecker::CheckResult FourChecker::checkIsWinnerAfterAddingPawn(int player, int row, int column) {...
23.852459
99
0.647423
KFlaga
3fadcaff5a144f9d0f3ae52aa407ab261ed21121
532
cpp
C++
src/bind/pool.c.cpp
raptoravis/two
4366fcf8b3072d0233eb8e1e91ac1105194f60f5
[ "Zlib" ]
578
2019-05-04T09:09:42.000Z
2022-03-27T23:02:21.000Z
src/bind/pool.c.cpp
raptoravis/two
4366fcf8b3072d0233eb8e1e91ac1105194f60f5
[ "Zlib" ]
14
2019-05-11T14:34:56.000Z
2021-02-02T07:06:46.000Z
src/bind/pool.c.cpp
raptoravis/two
4366fcf8b3072d0233eb8e1e91ac1105194f60f5
[ "Zlib" ]
42
2019-05-11T16:04:19.000Z
2022-01-24T02:21:43.000Z
#include <infra/Api.h> #include <type/Api.h> #include <pool/Api.h> #ifdef TWO_PLATFORM_EMSCRIPTEN #include <emscripten.h> #define DECL EMSCRIPTEN_KEEPALIVE #else #define DECL #endif extern "C" { // Pool two::Type* DECL two_Pool__type() { return &two::type<two::Pool>(); } void DECL two_Pool__destroy(two::Pool...
16.121212
59
0.691729
raptoravis
3fae0c3b8785cc089478af86b0f96ad325929599
1,807
cpp
C++
src/Qt5Widgets/QFrame.cpp
dafrito/luacxx
278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad
[ "MIT" ]
128
2015-01-07T19:47:09.000Z
2022-01-22T19:42:14.000Z
src/Qt5Widgets/QFrame.cpp
dafrito/luacxx
278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad
[ "MIT" ]
null
null
null
src/Qt5Widgets/QFrame.cpp
dafrito/luacxx
278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad
[ "MIT" ]
24
2015-01-07T19:47:10.000Z
2022-01-25T17:42:37.000Z
#include "QFrame.hpp" #include "../convert/callable.hpp" #include "../thread.hpp" #include "QWidget.hpp" #include "../Qt5Core/QRect.hpp" void lua::QFrame_metatable(lua_State* const state, const int pos) { lua::QWidget_metatable(state, pos); lua::index mt(state, pos); mt["frameRect"] = &QFrame::frameRect;...
27.8
65
0.635307
dafrito
3faebeed6ed8fac2a6be16787de72cba1aee9bb4
620
cpp
C++
Corpos Editor/NewMapForms.cpp
Tomislaw/corpos
bf971cba98a92b8de68547d4f77252f645c9ef28
[ "MIT" ]
null
null
null
Corpos Editor/NewMapForms.cpp
Tomislaw/corpos
bf971cba98a92b8de68547d4f77252f645c9ef28
[ "MIT" ]
null
null
null
Corpos Editor/NewMapForms.cpp
Tomislaw/corpos
bf971cba98a92b8de68547d4f77252f645c9ef28
[ "MIT" ]
null
null
null
#include "NewMapForms.h" #include "CorposEditor.h" #include "game\utility\Logger.hpp" #include <QErrorMessage> NewMapForms::NewMapForms(CorposEditor *callback) : QWidget() { this->callback = callback; ui.setupUi(this); } NewMapForms::~NewMapForms() { } void NewMapForms::validate(QString v) { if (v.size() != 0)ui...
20
74
0.719355
Tomislaw
3fb06f4f965f8a72420b08d8ac0828c48b596e48
206
hpp
C++
libs/gfxm/src/gfxm/mat4.hpp
janucaria/Molphene
e5374599512ff4400d04c7c16d79d3a111cc1911
[ "MIT" ]
3
2018-05-18T06:30:48.000Z
2018-09-01T13:59:58.000Z
libs/gfxm/src/gfxm/mat4.hpp
janucaria/Molphene
e5374599512ff4400d04c7c16d79d3a111cc1911
[ "MIT" ]
null
null
null
libs/gfxm/src/gfxm/mat4.hpp
janucaria/Molphene
e5374599512ff4400d04c7c16d79d3a111cc1911
[ "MIT" ]
null
null
null
#ifndef MOLPHENE_GFXM_MAT4_HPP #define MOLPHENE_GFXM_MAT4_HPP #include <cppid/gm3d/mat4.hpp> namespace molphene { template<typename T> using mat4 = cppid::gm3d::mat4<T>; } // namespace molphene #endif
14.714286
34
0.76699
janucaria
3fb0b224adfab89e2290422fb8aec0adf8496bef
1,048
cpp
C++
Course/Course Examples/Examples of STL vectors/vec00.cpp
tigercosmos/CSIE1212
00ea11441e3d922d7421f542378e95a9b21b11a3
[ "MIT" ]
3
2018-03-05T14:40:04.000Z
2019-05-05T02:41:30.000Z
Course/Course Examples/Examples of STL vectors/vec00.cpp
tigercosmos/CSIE1212
00ea11441e3d922d7421f542378e95a9b21b11a3
[ "MIT" ]
null
null
null
Course/Course Examples/Examples of STL vectors/vec00.cpp
tigercosmos/CSIE1212
00ea11441e3d922d7421f542378e95a9b21b11a3
[ "MIT" ]
1
2019-01-05T14:19:50.000Z
2019-01-05T14:19:50.000Z
// Basic use of STL vector #include <iostream> #include <vector> using namespace std; #define PRINT(x) {cout << #x << " = " << x << endl;} // Print a vec template <class T> void vecPrint(vector<T> vec, char *vecName){ typename vector<T>::iterator i; cout << vecName << " = "; for (i=vec.begin(); i!=vec.en...
26.2
81
0.622137
tigercosmos
3fb242783c4beee3d95d8441a755e52816460c09
5,666
cpp
C++
core/smartreply/suggest_storage.cpp
SammyEnigma/im-desktop
d93c1c335c8290b21b69c578c399edf61cb899e8
[ "Apache-2.0" ]
2
2020-10-23T06:27:27.000Z
2021-11-12T12:06:12.000Z
core/smartreply/suggest_storage.cpp
john-preston/im-desktop
271e42db657bdaa8e261f318c627ca5414e0dd87
[ "Apache-2.0" ]
null
null
null
core/smartreply/suggest_storage.cpp
john-preston/im-desktop
271e42db657bdaa8e261f318c627ca5414e0dd87
[ "Apache-2.0" ]
1
2022-03-25T16:10:33.000Z
2022-03-25T16:10:33.000Z
#include "stdafx.h" #include "suggest_storage.h" #include "smartreply_suggest.h" #include "../../../common.shared/smartreply/smartreply_types.h" #include "../tools/json_helper.h" namespace core { namespace smartreply { void suggest_storage::add_one(suggest&& _suggest) { const auto...
36.089172
189
0.500706
SammyEnigma
3fb2a796c1f4cd969c5f586c540a4762890ad0d6
3,482
cpp
C++
EpLibrary2.0/EpLibrary/Sources/epFileStream.cpp
juhgiyo/EpLibrary
130c3ec3fdd4af829c63f0f8b142d0cc3349100e
[ "Unlicense", "MIT" ]
34
2015-01-01T12:08:15.000Z
2022-03-19T15:34:41.000Z
EpLibrary2.0/EpLibrary/Sources/epFileStream.cpp
darongE/EpLibrary
a637612ceff19e4106c7972ce1bca3ccfe666087
[ "Unlicense", "MIT" ]
1
2021-01-26T05:07:27.000Z
2021-01-26T05:19:45.000Z
EpLibrary2.0/EpLibrary/Sources/epFileStream.cpp
darongE/EpLibrary
a637612ceff19e4106c7972ce1bca3ccfe666087
[ "Unlicense", "MIT" ]
25
2015-01-17T19:27:57.000Z
2021-11-17T06:26:20.000Z
/*! FileStream for the EpLibrary The MIT License (MIT) Copyright (c) 2008-2013 Woong Gyu La <juhgiyo@gmail.com> 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 wi...
24.521127
95
0.746123
juhgiyo
3fb370b24a3d03fbdbfe6c03214e49da02677156
3,177
cpp
C++
native/src/av/EncoderNativeObject.cpp
briandilley/ffmpeg4kj
e8f6807a1ddff65093fc716fa1a1e32b07747900
[ "MIT" ]
1
2021-01-27T21:06:15.000Z
2021-01-27T21:06:15.000Z
native/src/av/EncoderNativeObject.cpp
briandilley/ffmpeg4kj
e8f6807a1ddff65093fc716fa1a1e32b07747900
[ "MIT" ]
null
null
null
native/src/av/EncoderNativeObject.cpp
briandilley/ffmpeg4kj
e8f6807a1ddff65093fc716fa1a1e32b07747900
[ "MIT" ]
null
null
null
#include "EncoderNativeObject.h" using namespace ffmpeg4kj::util; #define ASSERT_OPEN \ if (!this->isOpen()) { \ throw Poco::IllegalStateException("Not open"); \ } EncoderNativeObject::~EncoderNativeObject() { this->eof = true; } EncoderNativeObject::EncoderNativeObject(std::shared_ptr<CodecNat...
29.691589
115
0.664778
briandilley
3fb3d4e77d8aece08c63d24c0fd9264f9a8a1aad
7,346
cpp
C++
GLES3Renderer/GLES3Renderer/GfxProgram.cpp
LiangYue1981816/CrossEngine-GLES3Renderer
8d092307c22164895c4f92395ef291c87f2811e6
[ "Apache-2.0" ]
null
null
null
GLES3Renderer/GLES3Renderer/GfxProgram.cpp
LiangYue1981816/CrossEngine-GLES3Renderer
8d092307c22164895c4f92395ef291c87f2811e6
[ "Apache-2.0" ]
null
null
null
GLES3Renderer/GLES3Renderer/GfxProgram.cpp
LiangYue1981816/CrossEngine-GLES3Renderer
8d092307c22164895c4f92395ef291c87f2811e6
[ "Apache-2.0" ]
1
2020-09-17T12:24:42.000Z
2020-09-17T12:24:42.000Z
#include "stdio.h" #include "stdlib.h" #include "GfxUtils.h" #include "GfxRenderer.h" static size_t fsize(FILE *stream) { long pos; size_t size; pos = ftell(stream); { fseek(stream, 0, SEEK_END); size = ftell(stream); } fseek(stream, pos, SEEK_SET); return size; } static std::string LoadShader(const cha...
23.246835
126
0.73278
LiangYue1981816
3fb4f4d2ea8ee0484d2e0a9e6fab03b6a1ef88b6
812
cc
C++
ash/components/phonehub/recent_apps_interaction_handler.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
ash/components/phonehub/recent_apps_interaction_handler.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
ash/components/phonehub/recent_apps_interaction_handler.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "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 "ash/components/phonehub/recent_apps_interaction_handler.h" #include "ash/components/phonehub/notification.h" namespace ash { namespace phonehub...
30.074074
73
0.807882
chromium
3fb92271a4a10900af54b35b778c0fcf7c6a7836
1,287
cpp
C++
D3D11-Engine/src/VertexBuffer.cpp
BEASTSM96/D3D11
d5bad6fb06ff0cba04df4422094425e29b95fdce
[ "MIT" ]
null
null
null
D3D11-Engine/src/VertexBuffer.cpp
BEASTSM96/D3D11
d5bad6fb06ff0cba04df4422094425e29b95fdce
[ "MIT" ]
null
null
null
D3D11-Engine/src/VertexBuffer.cpp
BEASTSM96/D3D11
d5bad6fb06ff0cba04df4422094425e29b95fdce
[ "MIT" ]
null
null
null
#include "VertexBuffer.h" #include "RendererContext.h" VertexBuffer::~VertexBuffer() { } void VertexBuffer::Load( ID3D11Device* pDevice, void* pListVertices, uint32_t SizeVertex, uint32_t SizeList, void* ShaderByteCode, uint32_t SizeOfShader ) { SAFE_RELEASE( m_pLayout ); SAFE_RELEASE( m_pBuffer ); D3D11_BUFFER...
27.382979
154
0.750583
BEASTSM96
3fbc2717f64d5d5cd6078e8a143be49ce15eb69e
4,297
cc
C++
src/third_party/ceres/internal/ceres/cxsparse.cc
paulinus/libmv
6656bde5aea4c715695fa98fca6e2b3417e82d76
[ "MIT" ]
null
null
null
src/third_party/ceres/internal/ceres/cxsparse.cc
paulinus/libmv
6656bde5aea4c715695fa98fca6e2b3417e82d76
[ "MIT" ]
null
null
null
src/third_party/ceres/internal/ceres/cxsparse.cc
paulinus/libmv
6656bde5aea4c715695fa98fca6e2b3417e82d76
[ "MIT" ]
null
null
null
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2012 Google Inc. All rights reserved. // http://code.google.com/p/ceres-solver/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistr...
32.55303
79
0.716779
paulinus
3fc252a86e8cee871913ed34110d58381a2c88c2
28,435
cc
C++
tce/src/base/program/ProgramOperation.cc
kanishkan/tce
430e764b4d43f46bd1dc754aeb1d5632fc742110
[ "MIT" ]
74
2015-10-22T15:34:10.000Z
2022-03-25T07:57:23.000Z
tce/src/base/program/ProgramOperation.cc
kanishkan/tce
430e764b4d43f46bd1dc754aeb1d5632fc742110
[ "MIT" ]
79
2015-11-19T09:23:08.000Z
2022-01-12T14:15:16.000Z
tce/src/base/program/ProgramOperation.cc
kanishkan/tce
430e764b4d43f46bd1dc754aeb1d5632fc742110
[ "MIT" ]
38
2015-11-17T10:12:23.000Z
2022-03-25T07:57:24.000Z
/* Copyright (c) 2002-2011 Tampere University. This file is part of TTA-Based Codesign Environment (TCE). 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, ...
29.650678
84
0.635555
kanishkan
3fc7bce1c7d5e0b5f1e08f99f0dc5a70cffa1578
7,659
hpp
C++
include/clip.hpp
mapbox/mr-mvt
7f0f6bff75c75ffb7d4ad0749122928f5b4fac51
[ "MIT" ]
4
2017-03-09T20:23:15.000Z
2021-05-01T22:41:45.000Z
include/clip.hpp
mapbox/mr-mvt
7f0f6bff75c75ffb7d4ad0749122928f5b4fac51
[ "MIT" ]
3
2016-12-04T17:29:10.000Z
2019-02-13T15:32:55.000Z
include/clip.hpp
mapbox/mr-mvt
7f0f6bff75c75ffb7d4ad0749122928f5b4fac51
[ "MIT" ]
3
2017-04-12T01:25:01.000Z
2018-09-24T17:00:19.000Z
#pragma once #include <iostream> #ifdef DEBUG #include <sstream> #endif #include <mapbox/geometry/box.hpp> #include <mapbox/geometry/wagyu/quick_clip.hpp> #include <mapbox/geometry/wagyu/wagyu.hpp> #include <experimental/optional> namespace mapbox { namespace mrmvt { using optional_geometry = std::experimental::op...
36.127358
129
0.535057
mapbox
3fd307884189101b6e36e37392332c1047accef6
240
cpp
C++
Valtrook/Valtrook/FileWriter.cpp
animeenginedev/Valtrook
10cf7332643765534f8a4263cc4e422c4356487b
[ "MIT" ]
null
null
null
Valtrook/Valtrook/FileWriter.cpp
animeenginedev/Valtrook
10cf7332643765534f8a4263cc4e422c4356487b
[ "MIT" ]
null
null
null
Valtrook/Valtrook/FileWriter.cpp
animeenginedev/Valtrook
10cf7332643765534f8a4263cc4e422c4356487b
[ "MIT" ]
null
null
null
#include "FileWriter.h" namespace Val { FileWriter::FileWriter(std::string path, std::string name) { File.open((path + name).c_str(), std::fstream::out); } FileWriter::~FileWriter() { if (File.is_open()) { File.close(); } } }
18.461538
61
0.633333
animeenginedev
3fd40fe21456d019008d9d0960cd5327364ff4fc
2,299
hpp
C++
quick_unit_netbeans.hpp
rifraf/quick_unit
334a038b9c403c384564a5effe157d95a6a5d763
[ "MIT" ]
1
2015-07-14T15:45:42.000Z
2015-07-14T15:45:42.000Z
quick_unit_netbeans.hpp
rifraf/quick_unit
334a038b9c403c384564a5effe157d95a6a5d763
[ "MIT" ]
null
null
null
quick_unit_netbeans.hpp
rifraf/quick_unit
334a038b9c403c384564a5effe157d95a6a5d763
[ "MIT" ]
null
null
null
/* * quick_unit_netbeans.hpp : http://github.com/rifraf/quick_unit * Author: David Lake * Description: * This is a custom reporter add-in for quick_unit. It emits messages that * are compatible with the Netbeans Simple C++ Test output format, so you can * use quick_unit to implement tests that integrate wit...
41.053571
180
0.673771
rifraf
3fd897b67f169369192f9bb2e5d82bdf4089d9e3
846
hpp
C++
Cardia/include/Cardia.hpp
AntoineJT/Utopia
2288f876d185b4706b985d63af05b538a901eae5
[ "Apache-2.0" ]
null
null
null
Cardia/include/Cardia.hpp
AntoineJT/Utopia
2288f876d185b4706b985d63af05b538a901eae5
[ "Apache-2.0" ]
1
2021-08-18T19:22:57.000Z
2021-08-18T19:22:57.000Z
Cardia/include/Cardia.hpp
AntoineJT/Utopia
2288f876d185b4706b985d63af05b538a901eae5
[ "Apache-2.0" ]
null
null
null
#pragma once // Unique for Cardia App #include "Cardia/Core/Application.hpp" #include "Cardia/Core/Log.hpp" #include "Cardia/Layer/Layer.hpp" #include "Cardia/Core/Time.hpp" #include "Cardia/ImGui/ImGuiLayer.hpp" #include "Cardia/Core/Input.hpp" #include "Cardia/Core/KeyCodes.hpp" // ----- Entity Component System ...
24.882353
44
0.729314
AntoineJT
3fdc25e71d5680c48f0be18d03feb358ef98da5b
3,023
cc
C++
src/ui/layout_engine_test.cc
ambuc/latis
bab48431a563619cdb2d8dfee3fd588e98ff255f
[ "Apache-2.0" ]
1
2020-05-03T18:18:39.000Z
2020-05-03T18:18:39.000Z
src/ui/layout_engine_test.cc
ambuc/latis
bab48431a563619cdb2d8dfee3fd588e98ff255f
[ "Apache-2.0" ]
null
null
null
src/ui/layout_engine_test.cc
ambuc/latis
bab48431a563619cdb2d8dfee3fd588e98ff255f
[ "Apache-2.0" ]
1
2020-04-18T01:57:07.000Z
2020-04-18T01:57:07.000Z
// Copyright 2020 Google LLC // // 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 ...
21.592857
75
0.62653
ambuc
3fdf086c232b4352780aadbe15c57d18d379b67a
433
cpp
C++
CAPSONGTO.cpp
phuongnam2002/testlib
a5cb8e2be7ac7a7e7dca7942a79ec20076f5d1aa
[ "MIT" ]
2
2022-01-14T13:34:09.000Z
2022-02-21T07:27:29.000Z
CAPSONGTO.cpp
phuongnam2002/testlib
a5cb8e2be7ac7a7e7dca7942a79ec20076f5d1aa
[ "MIT" ]
null
null
null
CAPSONGTO.cpp
phuongnam2002/testlib
a5cb8e2be7ac7a7e7dca7942a79ec20076f5d1aa
[ "MIT" ]
null
null
null
#include<stdio.h> #include<math.h> typedef long long ll; const int N=1e6+3; int ngto(int n) { if(n<2) return 0; for(int i=2;i*i<=n;i++) { if(n%i==0) return 0; } return 1; } void xuly() { int n; scanf("%d",&n); for(int i=2;i<=n/2;i++) { int x=n-i; if(ngto(i)&&ngto(x)) printf("%d %d ",i...
13.121212
45
0.482679
phuongnam2002
3fe3fdac0407e52cd049ebc21eac11bde4903faa
283
cpp
C++
KeshUI/Public/KeshUI/KUICancellable.cpp
Daekesh/KeshUI
9cae4a74aab5bd33c526fedcb76264a66414a0dd
[ "MIT" ]
19
2015-03-12T20:30:42.000Z
2021-12-08T18:33:25.000Z
KeshUI/Public/KeshUI/KUICancellable.cpp
Daekesh/KeshUI
9cae4a74aab5bd33c526fedcb76264a66414a0dd
[ "MIT" ]
4
2015-03-14T12:26:54.000Z
2016-04-21T12:51:02.000Z
KeshUI/Public/KeshUI/KUICancellable.cpp
Daekesh/KeshUI
9cae4a74aab5bd33c526fedcb76264a66414a0dd
[ "MIT" ]
10
2015-03-12T15:04:06.000Z
2020-06-30T18:52:26.000Z
// Copyright 2014-2015 Matt Chapman. All Rights Reserved. #include "KeshUI/KeshUI.h" #include "KeshUI/KUICancellable.h" UKUICancellable::UKUICancellable( const class FObjectInitializer& oObjectInitializer ) : Super(oObjectInitializer) { } void IKUICancellable::Cancel() { }
14.894737
86
0.766784
Daekesh
3fe85ac8e2e15077be744e81771da67d0de7efb7
3,680
cpp
C++
pio-01/src/main.cpp
JoseIbanez/test_esp32
d8433973076e3e80ce0aee72ac89fc97c723364f
[ "MIT" ]
null
null
null
pio-01/src/main.cpp
JoseIbanez/test_esp32
d8433973076e3e80ce0aee72ac89fc97c723364f
[ "MIT" ]
null
null
null
pio-01/src/main.cpp
JoseIbanez/test_esp32
d8433973076e3e80ce0aee72ac89fc97c723364f
[ "MIT" ]
null
null
null
#include <Arduino.h> #include <BluetoothSerial.h> #define RELAY1 4 #define RELAY2 5 #define RELAY3 18 #define RELAY4 19 #define LED_BUILTIN 2 //#define DEBUG 1 BluetoothSerial SerialBT; // function headers static int inputParse(String input); static int updateGPIO(String status); static String btReadString(); stati...
17.864078
75
0.612772
JoseIbanez
684762ce8154c0bc3e6535b5db5e10f811b8c3de
2,344
cpp
C++
src/Engine/PieceTypes/ToriShogi/Goose.cpp
jweathers777/mShogi
941cd4dc37e6e6210d4f993c96a553753e228b19
[ "BSD-3-Clause" ]
4
2015-12-24T04:52:48.000Z
2021-11-09T11:31:36.000Z
src/Engine/PieceTypes/ToriShogi/Goose.cpp
jweathers777/mShogi
941cd4dc37e6e6210d4f993c96a553753e228b19
[ "BSD-3-Clause" ]
null
null
null
src/Engine/PieceTypes/ToriShogi/Goose.cpp
jweathers777/mShogi
941cd4dc37e6e6210d4f993c96a553753e228b19
[ "BSD-3-Clause" ]
null
null
null
//////////////////////////////////////////////////////////////////////////// // Name: Goose.cpp // Description: Implementation for a class that represents a goose // Created: 10/20/2004 01:21:22 Eastern Standard Time // Last Updated: $Date$ // Revision: $Revision$ // Author: John Weathers // Ema...
32.109589
86
0.49616
jweathers777
6848bd5c1fa06b3f96ad6e7c5cc1f6c278def6ee
5,081
hpp
C++
GardenVexor/src/map/gridmap.hpp
kalsipp/vsxpanse
7887d234312283ce1ace03bed610642b0c6f96b1
[ "MIT" ]
null
null
null
GardenVexor/src/map/gridmap.hpp
kalsipp/vsxpanse
7887d234312283ce1ace03bed610642b0c6f96b1
[ "MIT" ]
null
null
null
GardenVexor/src/map/gridmap.hpp
kalsipp/vsxpanse
7887d234312283ce1ace03bed610642b0c6f96b1
[ "MIT" ]
null
null
null
#pragma once #include <map> #include <basics/vector2dint.hpp> #include "gameobject.hpp" #include "filesystem/resourcearchive.hpp" #define GRIDMAPSIZE 1024 #define GRIDTILESIZE 32 /*------------------------------------------------------- Represents a tile in the GridMap. ----------------------------------------------...
36.553957
94
0.522338
kalsipp
684a014ba8d96439e1c320be6dd216d06476fff7
2,085
cpp
C++
python/bindings/define_rule_monitor.cpp
bark-simulator/rule-monitoring
187c125a18979214d638ca771dd86e7934932b94
[ "MIT" ]
3
2020-10-03T11:00:22.000Z
2021-09-26T02:26:09.000Z
python/bindings/define_rule_monitor.cpp
bark-simulator/rule-monitoring
187c125a18979214d638ca771dd86e7934932b94
[ "MIT" ]
null
null
null
python/bindings/define_rule_monitor.cpp
bark-simulator/rule-monitoring
187c125a18979214d638ca771dd86e7934932b94
[ "MIT" ]
3
2020-09-30T08:54:12.000Z
2022-01-21T12:13:00.000Z
// Copyright (c) 2020 Klemens Esterle, Luis Gressenbuch // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #include <memory> #include <string> #include "define_rule_monitor.hpp" #include "bark/world/evaluation/ltl/label/label.h" #include "ltl/rul...
36.578947
79
0.602398
bark-simulator
684af639f7df4f21ea3683a94026921b6585f1d1
2,443
hpp
C++
include/codegen/include/Microsoft/Win32/IRegistryApi.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/Microsoft/Win32/IRegistryApi.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/Microsoft/Win32/IRegistryApi.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:09:38 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" #include "utils/il2cpp-utils.hpp" // Completed includes // Begin forward declar...
45.240741
167
0.732296
Futuremappermydud
684e2b47b849f28f4194e97003916a5436e67a0b
2,376
hpp
C++
src/Engine/MoveGenerator.hpp
jweathers777/mShogi
941cd4dc37e6e6210d4f993c96a553753e228b19
[ "BSD-3-Clause" ]
4
2015-12-24T04:52:48.000Z
2021-11-09T11:31:36.000Z
src/Engine/MoveGenerator.hpp
jweathers777/mShogi
941cd4dc37e6e6210d4f993c96a553753e228b19
[ "BSD-3-Clause" ]
null
null
null
src/Engine/MoveGenerator.hpp
jweathers777/mShogi
941cd4dc37e6e6210d4f993c96a553753e228b19
[ "BSD-3-Clause" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// // Name: MoveGenerator.hpp // Description: Interface for class that generates moves for a board position // Created: Apr 20, 2004 11:43:23 AM // Author: John Weathers // Email: hotanguish@hotmail.com // Copyright...
32.108108
80
0.452862
jweathers777
684f3049a62ca219096912108e08f50a7835c70f
6,522
cpp
C++
src/Cloud_optics.cpp
Chiil/rte-rrtmgp-cpp
b39b130c733b8a9633753398b57849826818b8c6
[ "BSD-3-Clause" ]
null
null
null
src/Cloud_optics.cpp
Chiil/rte-rrtmgp-cpp
b39b130c733b8a9633753398b57849826818b8c6
[ "BSD-3-Clause" ]
null
null
null
src/Cloud_optics.cpp
Chiil/rte-rrtmgp-cpp
b39b130c733b8a9633753398b57849826818b8c6
[ "BSD-3-Clause" ]
null
null
null
/* * This file is part of a C++ interface to the Radiative Transfer for Energetics (RTE) * and Rapid Radiative Transfer Model for GCM applications Parallel (RRTMGP). * * The original code is found at https://github.com/RobertPincus/rte-rrtmgp. * * Contacts: Robert Pincus and Eli Mlawer * email: rrtmgp@aer.com *...
35.835165
106
0.607176
Chiil
68527263f6d0d58744f8579527ab063e5a31f0d9
4,327
hpp
C++
library/src/conversion/rocsparse_gebsr2gebsr.hpp
scchan/rocSPARSE
6efc875765236a91d6b07ef42446b1b46de661e0
[ "MIT" ]
44
2018-10-03T19:02:58.000Z
2022-01-19T20:40:51.000Z
library/src/conversion/rocsparse_gebsr2gebsr.hpp
scchan/rocSPARSE
6efc875765236a91d6b07ef42446b1b46de661e0
[ "MIT" ]
30
2019-06-03T16:34:01.000Z
2022-03-14T19:21:19.000Z
library/src/conversion/rocsparse_gebsr2gebsr.hpp
scchan/rocSPARSE
6efc875765236a91d6b07ef42446b1b46de661e0
[ "MIT" ]
45
2018-09-26T08:11:59.000Z
2022-03-31T07:38:08.000Z
/*! \file */ /* ************************************************************************ * Copyright (c) 2020 Advanced Micro Devices, Inc. * * 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 Softwa...
63.632353
100
0.431708
scchan
6852cc937e8d27896b43c41f73597e7a2f3e4d3e
732
cpp
C++
src/tests/kits/interface/layout/widget_layout_test/tests/MenuTest.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
1,338
2015-01-03T20:06:56.000Z
2022-03-26T13:49:54.000Z
src/tests/kits/interface/layout/widget_layout_test/tests/MenuTest.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
15
2015-01-17T22:19:32.000Z
2021-12-20T12:35:00.000Z
src/tests/kits/interface/layout/widget_layout_test/tests/MenuTest.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
350
2015-01-08T14:15:27.000Z
2022-03-21T18:14:35.000Z
/* * Copyright 2007, Ingo Weinhold <bonefish@cs.tu-berlin.de>. * All rights reserved. Distributed under the terms of the MIT License. */ #include "MenuTest.h" #include <Menu.h> #include <MenuItem.h> class TestMenu : public BMenu { public: TestMenu(const char* title) : BMenu(BRect(), title, B_FOLLOW_NONE, B_W...
16.636364
71
0.670765
Kirishikesan
68530fd062126afe1b73f393fe8babe4d76252a6
5,044
cxx
C++
Libraries/ITK/Common/itkFilenameUtils.cxx
NifTK/NifTK
2358b333c89ff1bba1c232eecbbcdc8003305dfe
[ "BSD-3-Clause" ]
13
2018-07-28T13:36:38.000Z
2021-11-01T19:17:39.000Z
Libraries/ITK/Common/itkFilenameUtils.cxx
NifTK/NifTK
2358b333c89ff1bba1c232eecbbcdc8003305dfe
[ "BSD-3-Clause" ]
null
null
null
Libraries/ITK/Common/itkFilenameUtils.cxx
NifTK/NifTK
2358b333c89ff1bba1c232eecbbcdc8003305dfe
[ "BSD-3-Clause" ]
10
2018-08-20T07:06:00.000Z
2021-07-07T07:55:27.000Z
/*============================================================================= NifTK: A software platform for medical image computing. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
23.460465
79
0.515662
NifTK
685f018452dc17270abcdb6b12663e8ff9d299b1
799
cpp
C++
Sources/EntitySystem/Entity/World.cpp
vit3k/entity_system
5b00804bb772229cab90ea7de589faced98bc001
[ "MIT" ]
null
null
null
Sources/EntitySystem/Entity/World.cpp
vit3k/entity_system
5b00804bb772229cab90ea7de589faced98bc001
[ "MIT" ]
null
null
null
Sources/EntitySystem/Entity/World.cpp
vit3k/entity_system
5b00804bb772229cab90ea7de589faced98bc001
[ "MIT" ]
null
null
null
#include "World.h" #include "../Events/EntityUpdatedEvent.h" #include "../Logger.h" #include "../Engine.h" EntitySP World::Create() { EntitySP entity(new Entity(this,entitySeq.Next())); entities[entity->ID] = entity; return entity; } void World::EntityUpdate(int id) { Engine::Instance().GetDispatcher()->Queue(Enti...
22.194444
93
0.707134
vit3k
685f57810e568f2bdf876a7d51581dd1ad665d7f
272
cpp
C++
src/backend/base/base_prewhiten.cpp
ViewFaceCore/TenniS
c1d21a71c1cd025ddbbe29924c8b3296b3520fc0
[ "BSD-2-Clause" ]
null
null
null
src/backend/base/base_prewhiten.cpp
ViewFaceCore/TenniS
c1d21a71c1cd025ddbbe29924c8b3296b3520fc0
[ "BSD-2-Clause" ]
null
null
null
src/backend/base/base_prewhiten.cpp
ViewFaceCore/TenniS
c1d21a71c1cd025ddbbe29924c8b3296b3520fc0
[ "BSD-2-Clause" ]
null
null
null
// // Created by kier on 2019/2/20. // #include "backend/base/base_prewhiten.h" namespace ts { namespace base { void PreWhiten::active(const Tensor &x, Tensor &out) { TS_AUTO_CHECK(x.dims() > 0); prewhiten(x, out); } } }
17
62
0.555147
ViewFaceCore
6864b90d618d48278b18fa5288789ce73e5f0f58
25,629
hpp
C++
include/NRGclasses.hpp
lgds/NRG_USP
ff66846e92498aa429cce6fc5793bec23ad03eb4
[ "MIT" ]
3
2015-09-21T20:58:45.000Z
2019-03-20T01:21:41.000Z
include/NRGclasses.hpp
lgds/NRG_USP
ff66846e92498aa429cce6fc5793bec23ad03eb4
[ "MIT" ]
null
null
null
include/NRGclasses.hpp
lgds/NRG_USP
ff66846e92498aa429cce6fc5793bec23ad03eb4
[ "MIT" ]
null
null
null
#include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/vector.hpp> #include <boost/numeric/ublas/io.hpp> #include <boost/numeric/ublas/matrix_proxy.hpp> ////using namespace boost::numeric::ublas; extern "C"{ #include <cblas.h> } #include <gsl/gsl_integration.h> #include <iostream> #include <ioma...
22.422572
154
0.670451
lgds
686970f7a4bc571bab16a5854bcec34a061af754
5,536
cpp
C++
moderngl/next/mgl/recorder.cpp
einarf/ModernGL
e4a7f53289043a0ac06130c67edc75b878484a0e
[ "MIT" ]
1
2019-10-18T03:23:16.000Z
2019-10-18T03:23:16.000Z
moderngl/next/mgl/recorder.cpp
einarf/ModernGL
e4a7f53289043a0ac06130c67edc75b878484a0e
[ "MIT" ]
null
null
null
moderngl/next/mgl/recorder.cpp
einarf/ModernGL
e4a7f53289043a0ac06130c67edc75b878484a0e
[ "MIT" ]
null
null
null
#include "recorder.hpp" #include "context.hpp" #include "internal/bytecode.hpp" #include "internal/modules.hpp" #include "internal/wrapper.hpp" #include "internal/tools.hpp" #include "internal/glsl.hpp" PyTypeObject * MGLRecorder_class; PyObject * MGLContext_meth_replay(MGLContext * self, PyObject * bytecode) { ...
33.96319
108
0.695448
einarf
687129fdefaca85a3e04541666943d9058bd95b5
6,215
cpp
C++
CyroRPG/src/Home.cpp
NanoCode012/CyroRPG
e84d27efc184f44710414105ae0bba15305d8225
[ "MIT" ]
3
2021-04-25T18:23:04.000Z
2021-04-26T14:43:58.000Z
CyroRPG/src/Home.cpp
NanoCode012/CyroRPG
e84d27efc184f44710414105ae0bba15305d8225
[ "MIT" ]
null
null
null
CyroRPG/src/Home.cpp
NanoCode012/CyroRPG
e84d27efc184f44710414105ae0bba15305d8225
[ "MIT" ]
null
null
null
#include "../inc/Home.h" using namespace std; void OptionsHome() { PrintLine(); cout << "You look at the mirror and see yourself .." << endl; cout << "1. Check stats" << endl << "2. Observe skills" << endl << "3. View equipped gear" ...
28.378995
104
0.465809
NanoCode012
687345c3397a7900c69085eea45bad4b1691fc32
961
cpp
C++
src/common/aggregator.cpp
paolofrb/cotson
1289b58ecc5d8279bc1124495ca0042f9586af11
[ "MIT" ]
null
null
null
src/common/aggregator.cpp
paolofrb/cotson
1289b58ecc5d8279bc1124495ca0042f9586af11
[ "MIT" ]
null
null
null
src/common/aggregator.cpp
paolofrb/cotson
1289b58ecc5d8279bc1124495ca0042f9586af11
[ "MIT" ]
null
null
null
// (C) Copyright 2006-2009 Hewlett-Packard Development Company, L.P. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR C...
22.880952
77
0.71384
paolofrb
68747c42bf830d78e915ead8aa71da6ca7ae38fa
10,919
cc
C++
Graphs/Geometry/RecursiveGrid.cc
TrevorShelton/cplot
8bf40e94519cc4fd69b2e0677d3a3dcf8695245a
[ "MIT" ]
32
2017-11-27T03:04:44.000Z
2022-01-21T17:03:40.000Z
Graphs/Geometry/RecursiveGrid.cc
TrevorShelton/cplot
8bf40e94519cc4fd69b2e0677d3a3dcf8695245a
[ "MIT" ]
30
2017-11-10T09:47:16.000Z
2018-11-21T22:36:47.000Z
Graphs/Geometry/RecursiveGrid.cc
TrevorShelton/cplot
8bf40e94519cc4fd69b2e0677d3a3dcf8695245a
[ "MIT" ]
20
2018-01-05T17:15:11.000Z
2021-07-30T14:11:01.000Z
#include "RecursiveGrid.h" #include <queue> #include <cstring> //---------------------------------------------------------------------------------------------------------------------- // Constructors //---------------------------------------------------------------------------------------------------------------------...
31.557803
145
0.446927
TrevorShelton
68797e39a7b5007027a919354bb318ef2b711a69
2,906
cpp
C++
src/CTile.cpp
wlue/codename_portal
c7409cf9e756417974a7f284ade0bba24026c212
[ "MIT", "Unlicense" ]
1
2021-03-27T03:00:34.000Z
2021-03-27T03:00:34.000Z
src/CTile.cpp
wlue/codename_portal
c7409cf9e756417974a7f284ade0bba24026c212
[ "MIT", "Unlicense" ]
null
null
null
src/CTile.cpp
wlue/codename_portal
c7409cf9e756417974a7f284ade0bba24026c212
[ "MIT", "Unlicense" ]
null
null
null
#include "CTile.h" #include "CPortal.h" #include "CPlayer.h" CTile::CTile(string _type, int _x, int _y) : CObject(_x, _y), type(_type) { Initialize(); } CTile::~CTile() { Delete(); } void CTile::Initialize() { listtil.push_back(this); w = h = 32; TileSettings(); } void CTile::Delete() { RemoveElement<CTile*>...
17.938272
113
0.628699
wlue
687a5c494ab31ef7cc673458fd0a5ffb12ea1f8d
2,444
cc
C++
src/buffered-stream-socket.cc
afett/clingeling
e6f6810dde5a1076e70f261ef738ae8f4dbd4e54
[ "BSD-2-Clause" ]
null
null
null
src/buffered-stream-socket.cc
afett/clingeling
e6f6810dde5a1076e70f261ef738ae8f4dbd4e54
[ "BSD-2-Clause" ]
null
null
null
src/buffered-stream-socket.cc
afett/clingeling
e6f6810dde5a1076e70f261ef738ae8f4dbd4e54
[ "BSD-2-Clause" ]
null
null
null
#include "buffered-stream-socket.h" #include "posix/socket.h" BufferedStreamSocket::BufferedStreamSocket( EPoll::Ctrl & poller, Posix::SocketFactory & socket_factory, Posix::SocketAddress const& addr) : sendbuf_{4096}, recvbuf_{4096}, socket_(socket_factory.make_stream_socket({ Posix::SocketFactory::Params::D...
24.19802
71
0.664894
afett
6882bca9b740a50a803c687495c2bd33ff29de5e
1,433
cpp
C++
ABC188E_sequence_dp.cpp
pumbaacave/cppeers
454d286bdc4a62b5082b40ac80bd8d625a367b56
[ "Apache-2.0" ]
null
null
null
ABC188E_sequence_dp.cpp
pumbaacave/cppeers
454d286bdc4a62b5082b40ac80bd8d625a367b56
[ "Apache-2.0" ]
null
null
null
ABC188E_sequence_dp.cpp
pumbaacave/cppeers
454d286bdc4a62b5082b40ac80bd8d625a367b56
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <sstream> #include <vector> #include <string> #include <limits.h> #include <iomanip> #include <algorithm> #include <numeric> #include <functional> #include <unordered_map> #include <map> #include <unordered_set> #include <array> #include <math.h> #define rep(i, n) for (int i = 0; i < (n); ...
21.38806
76
0.531752
pumbaacave
6888b42560113fed34540b4e167403525ab61ec3
1,410
cpp
C++
enemybullet.cpp
Loretac/ohlavache
2cbe309433cca0f7a61d8c08f6f4f383dd934f10
[ "MIT" ]
null
null
null
enemybullet.cpp
Loretac/ohlavache
2cbe309433cca0f7a61d8c08f6f4f383dd934f10
[ "MIT" ]
null
null
null
enemybullet.cpp
Loretac/ohlavache
2cbe309433cca0f7a61d8c08f6f4f383dd934f10
[ "MIT" ]
null
null
null
#include "enemybullet.h" #include <QTimer> /********************************************************************* ** *********************************************************************/ void EnemyBullet::setBulletPix(QPixmap map) { QPixmap scaled = map.scaled(getWidth(),getHeight()); setPixmap(scaled); ...
15.326087
71
0.562411
Loretac
688e96c51edbd75c5018d5fe7df6768d39ac5fd4
1,134
h++
C++
include/taussig/algorithms/flat_map.h++
rmartinho/taussig
896903e7cf47e943eba1253d2448cf193c61e97b
[ "CC0-1.0" ]
null
null
null
include/taussig/algorithms/flat_map.h++
rmartinho/taussig
896903e7cf47e943eba1253d2448cf193c61e97b
[ "CC0-1.0" ]
null
null
null
include/taussig/algorithms/flat_map.h++
rmartinho/taussig
896903e7cf47e943eba1253d2448cf193c61e97b
[ "CC0-1.0" ]
1
2020-07-09T19:41:00.000Z
2020-07-09T19:41:00.000Z
// Taussig // // Written in 2013 by Martinho Fernandes <martinho.fernandes@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distributed without any warranty. // // You ...
30.648649
96
0.723986
rmartinho
688fd8fbd5cae4b587918b65f3ac6613136162dc
7,957
hpp
C++
SU2-Quantum/SU2_CFD/include/integration/CIntegration.hpp
Agony5757/SU2-Quantum
16e7708371a597511e1242f3a7581e8c4187f5b2
[ "Apache-2.0" ]
null
null
null
SU2-Quantum/SU2_CFD/include/integration/CIntegration.hpp
Agony5757/SU2-Quantum
16e7708371a597511e1242f3a7581e8c4187f5b2
[ "Apache-2.0" ]
null
null
null
SU2-Quantum/SU2_CFD/include/integration/CIntegration.hpp
Agony5757/SU2-Quantum
16e7708371a597511e1242f3a7581e8c4187f5b2
[ "Apache-2.0" ]
1
2021-12-03T06:40:08.000Z
2021-12-03T06:40:08.000Z
/*! * \file CIntegration.hpp * \brief Declaration of the main routines to orchestrate space and time integration. * \author F. Palacios, T. Economon * \version 7.0.6 "Blackbird" * * SU2 Project Website: https://su2code.github.io * * The SU2 Project is maintained by the SU2 Foundation * (http://su2foundation.o...
44.205556
122
0.688073
Agony5757
689287b03d0d10ab674b209febe6a54401da6f99
1,619
cc
C++
deeplearning/ml4pl/graphs/graphviz_converter_py.cc
island255/ProGraML
6c4ea50639773009e7c287feb62c6994fa4f3445
[ "Apache-2.0" ]
1
2020-07-14T12:17:45.000Z
2020-07-14T12:17:45.000Z
deeplearning/ml4pl/graphs/graphviz_converter_py.cc
island255/ProGraML
6c4ea50639773009e7c287feb62c6994fa4f3445
[ "Apache-2.0" ]
null
null
null
deeplearning/ml4pl/graphs/graphviz_converter_py.cc
island255/ProGraML
6c4ea50639773009e7c287feb62c6994fa4f3445
[ "Apache-2.0" ]
null
null
null
// A python binding for the C++ graphviz conversion routine. // // Copyright 2019-2020 the ProGraML authors. // // Contact Chris Cummins <chrisc.101@gmail.com>. // // 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 c...
34.446809
77
0.742434
island255
68950c7b74239c918dcb389c57f9427bad5195d0
9,553
cpp
C++
src/3rdparty/kjs/src/kjs/ExecState.cpp
afarcat/QtHtmlView
fff12b6f5c08c2c6db15dd73e4f0b55421827b39
[ "Apache-2.0" ]
null
null
null
src/3rdparty/kjs/src/kjs/ExecState.cpp
afarcat/QtHtmlView
fff12b6f5c08c2c6db15dd73e4f0b55421827b39
[ "Apache-2.0" ]
null
null
null
src/3rdparty/kjs/src/kjs/ExecState.cpp
afarcat/QtHtmlView
fff12b6f5c08c2c6db15dd73e4f0b55421827b39
[ "Apache-2.0" ]
null
null
null
/* * This file is part of the KDE libraries * Copyright (C) 1999-2001 Harri Porten (porten@kde.org) * Copyright (C) 2001 Peter Kelly (pmk@post.com) * Copyright (C) 2003, 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2008 Maksim Orlovich (maksim@kde.org) * * This library is free software; you c...
31.016234
133
0.640741
afarcat
689641ca63353600fc00945e4d6eb6afef2c2b43
796
cpp
C++
508. Most Frequent Subtree Sum/solution.cpp
KailinLi/LeetCode-Solutions
bad6aa401b290a203a572362e63e0b1085f7fc36
[ "MIT" ]
2
2017-03-27T09:53:32.000Z
2017-04-07T07:48:54.000Z
508. Most Frequent Subtree Sum/solution.cpp
KailinLi/LeetCode-Solutions
bad6aa401b290a203a572362e63e0b1085f7fc36
[ "MIT" ]
null
null
null
508. Most Frequent Subtree Sum/solution.cpp
KailinLi/LeetCode-Solutions
bad6aa401b290a203a572362e63e0b1085f7fc36
[ "MIT" ]
null
null
null
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { map<int, int> frequence; int maxValue; public: vector<int> findFrequentTreeSum(TreeNode* root)...
27.448276
81
0.55402
KailinLi
689b1b136a1027ee24dbd599242c0218a9422694
6,771
cpp
C++
sources/VS/ThirdParty/wxWidgets/src/unix/evtloopunix.cpp
Sasha7b9Work/S8-53M2
fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e
[ "MIT" ]
86
2015-08-06T11:30:01.000Z
2022-02-28T04:50:22.000Z
sources/VS/ThirdParty/wxWidgets/src/unix/evtloopunix.cpp
Sasha7b9Work/S8-53M2
fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e
[ "MIT" ]
14
2016-09-21T21:24:46.000Z
2016-11-15T07:54:21.000Z
sources/VS/ThirdParty/wxWidgets/src/unix/evtloopunix.cpp
Sasha7b9Work/S8-53M2
fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e
[ "MIT" ]
22
2015-11-04T04:04:54.000Z
2022-02-28T04:50:24.000Z
///////////////////////////////////////////////////////////////////////////// // Name: src/unix/evtloopunix.cpp // Purpose: wxEventLoop implementation // Author: Lukasz Michalski (lm@zork.pl) // Created: 2007-05-07 // Copyright: (c) 2006 Zork Lukasz Michalski // (c) 2009, 2013 Vadim Z...
29.697368
88
0.554866
Sasha7b9Work
689e652ea9d256fce624dd05e5e525c6effcfdb9
12,455
cpp
C++
starter-stack/Lib/rcsc/geom/voronoi_diagram_triangle.cpp
InsperDynamics/Soccer-Simulation-2D
a548d576ca4ab2a8f797810f5e23875c45cef73f
[ "Apache-2.0" ]
null
null
null
starter-stack/Lib/rcsc/geom/voronoi_diagram_triangle.cpp
InsperDynamics/Soccer-Simulation-2D
a548d576ca4ab2a8f797810f5e23875c45cef73f
[ "Apache-2.0" ]
null
null
null
starter-stack/Lib/rcsc/geom/voronoi_diagram_triangle.cpp
InsperDynamics/Soccer-Simulation-2D
a548d576ca4ab2a8f797810f5e23875c45cef73f
[ "Apache-2.0" ]
null
null
null
// -*-c++-*- /*! \file voronoi_diagram_triangle.cpp \brief 2D voronoi diagram Source File. */ /* *Copyright: Copyright (C) Hiroki Shimora This code is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundatio...
27.926009
102
0.457567
InsperDynamics
68a05bbd8d0c192f7676a8f9ec52b1feeb3a091a
1,178
cpp
C++
HexGame/Engine/Graphics/View.cpp
kkorenev/HexGame
33aae3b589f9c032056eab27be653caefbc22f1c
[ "MIT" ]
null
null
null
HexGame/Engine/Graphics/View.cpp
kkorenev/HexGame
33aae3b589f9c032056eab27be653caefbc22f1c
[ "MIT" ]
null
null
null
HexGame/Engine/Graphics/View.cpp
kkorenev/HexGame
33aae3b589f9c032056eab27be653caefbc22f1c
[ "MIT" ]
null
null
null
#include <Engine/Graphics/View.hpp> View::View() : center(glm::vec2(0.f)), size(glm::vec2(1920.f, 1080.f)), scale(1.f), matrix(glm::mat4(1.f)), dirty(true) { } View::View(const glm::vec2& size) : center(glm::vec2(0.f)), size(size), scale(1.f), matrix(glm::mat4(1.f)), dirty(true) { } void View::setSize(con...
14.365854
80
0.616299
kkorenev
68a162b0cfaac286f0404d5209fa45b61d8790a3
5,684
cc
C++
src/blowfish_cbc.cc
cipherboy/blowfish
183cb18ae3e66c32cecaeacb86e7062e6caabffb
[ "BSD-2-Clause" ]
1
2016-04-20T05:12:46.000Z
2016-04-20T05:12:46.000Z
src/blowfish_cbc.cc
cipherboy/blowfish
183cb18ae3e66c32cecaeacb86e7062e6caabffb
[ "BSD-2-Clause" ]
null
null
null
src/blowfish_cbc.cc
cipherboy/blowfish
183cb18ae3e66c32cecaeacb86e7062e6caabffb
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (c) 2016 Alexander Scheel * * Implementation for blowfish in CBC block mode */ #include "blowfish.hh" #include "blowfish_cbc.hh" #include <cstdlib> #include <cstring> #include <string> /** * Initialize the blowfish sub-keys and s-boxes based off the given key; same * as blowfish(); constructor. ...
26.811321
80
0.559113
cipherboy
68a4610a5b66548c03aecad85eb395290fbc53f4
512
cpp
C++
ftnoir_protocol_libevdev/ftnoir_protocol_libevdev_dialog.cpp
asarnow/opentrack
aed80a837d79eb6997435e062e5fbda0a140a715
[ "ISC" ]
null
null
null
ftnoir_protocol_libevdev/ftnoir_protocol_libevdev_dialog.cpp
asarnow/opentrack
aed80a837d79eb6997435e062e5fbda0a140a715
[ "ISC" ]
null
null
null
ftnoir_protocol_libevdev/ftnoir_protocol_libevdev_dialog.cpp
asarnow/opentrack
aed80a837d79eb6997435e062e5fbda0a140a715
[ "ISC" ]
null
null
null
#include "ftnoir_protocol_libevdev.h" #include "opentrack/plugin-api.hpp" LibevdevControls::LibevdevControls() { ui.setupUi( this ); connect(ui.btnOK, SIGNAL(clicked()), this, SLOT(doOK())); connect(ui.btnCancel, SIGNAL(clicked()), this, SLOT(doCancel())); } void LibevdevControls::doOK() { save(); this->close();...
18.962963
66
0.705078
asarnow
68a4c788264f3b50e1e3995b3aac7f8fa349d877
4,391
cpp
C++
src/misc/Timer.cpp
jmitchell24/cpp-utility-lib
76e7bae9f07b741c409a282604a999ab86fc0702
[ "Apache-2.0" ]
null
null
null
src/misc/Timer.cpp
jmitchell24/cpp-utility-lib
76e7bae9f07b741c409a282604a999ab86fc0702
[ "Apache-2.0" ]
null
null
null
src/misc/Timer.cpp
jmitchell24/cpp-utility-lib
76e7bae9f07b741c409a282604a999ab86fc0702
[ "Apache-2.0" ]
null
null
null
// Copyright 2013, James Mitchell, All rights reserved. #define _CRT_SECURE_NO_WARNINGS #include "Timer.hpp" using namespace util; using namespace std; Duration::Duration() : time(DefaultDuration::zero()) {} Duration::Duration(std::time_t const time) : time(Timer::Clock::from_time_t(time) - Timer::Clock::tim...
35.41129
147
0.685493
jmitchell24
68a4cd29b20ee961b7203aa3148535ce035a0c9e
241
cpp
C++
Zerojudge/d485.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
9
2017-10-08T16:22:03.000Z
2021-08-20T09:32:17.000Z
Zerojudge/d485.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
null
null
null
Zerojudge/d485.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
2
2018-01-15T16:35:44.000Z
2019-03-21T18:30:04.000Z
#include <iostream> #include <cmath> using namespace std; int main() { long long int a,b; int c,d; while(cin>>a>>b) { c=(b-b%2-(a+a%2))/2+1; cout<<c<<endl; } return 0; }
10.041667
31
0.431535
w181496
68a8ff85d7c3ba7bfa85f295afd28c88a2867266
3,208
cc
C++
pigasus/software/src/search_engines/ac_std.cc
zhipengzhaocmu/fpga2022_artifact
0ac088a5b04c5c75ae6aef25202b66b0f674acd3
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
pigasus/software/src/search_engines/ac_std.cc
zhipengzhaocmu/fpga2022_artifact
0ac088a5b04c5c75ae6aef25202b66b0f674acd3
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
pigasus/software/src/search_engines/ac_std.cc
zhipengzhaocmu/fpga2022_artifact
0ac088a5b04c5c75ae6aef25202b66b0f674acd3
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
//-------------------------------------------------------------------------- // Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved. // Copyright (C) 2013-2013 Sourcefire, Inc. // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public...
24.48855
76
0.571072
zhipengzhaocmu
68ab106785f007571d03880dfb962c62808631f1
1,117
hpp
C++
Sources/AGEngine/Graphic/DRBPointLight.hpp
Another-Game-Engine/AGE
d5d9e98235198fe580a43007914f515437635830
[ "MIT" ]
47
2015-03-29T09:44:25.000Z
2020-11-30T10:05:56.000Z
Sources/AGEngine/Graphic/DRBPointLight.hpp
Another-Game-Engine/AGE
d5d9e98235198fe580a43007914f515437635830
[ "MIT" ]
313
2015-01-01T18:16:30.000Z
2015-11-30T07:54:07.000Z
Sources/AGEngine/Graphic/DRBPointLight.hpp
Another-Game-Engine/AGE
d5d9e98235198fe580a43007914f515437635830
[ "MIT" ]
9
2015-06-07T13:21:54.000Z
2020-08-25T09:50:07.000Z
#pragma once #include "BFC/BFCCullableObject.hpp" #include "BFCCullableTypes.hpp" #include "AssetManagement\Instance\MeshInstance.hh" namespace AGE { struct DRBPointLightData; struct DRBPointLight : public BFCCullableObject { public: DRBPointLight(); virtual glm::vec4 setBFCTransform(const glm::mat4 &trans...
31.027778
91
0.743957
Another-Game-Engine
68b0adcd014e08499574ed21664b26e96fb5a914
1,949
cpp
C++
Graph Problems/BFS & DFS/UVA532 - Dungeon Master/Code.cpp
adelnobel/Training-for-ACM-ICPC-problems
8030d24ab3ce1f50821b22647bf9195b41f932b1
[ "MIT" ]
1
2020-03-05T09:09:36.000Z
2020-03-05T09:09:36.000Z
Graph Problems/BFS & DFS/UVA532 - Dungeon Master/Code.cpp
adelnobel/Training-for-ACM-ICPC-problems
8030d24ab3ce1f50821b22647bf9195b41f932b1
[ "MIT" ]
null
null
null
Graph Problems/BFS & DFS/UVA532 - Dungeon Master/Code.cpp
adelnobel/Training-for-ACM-ICPC-problems
8030d24ab3ce1f50821b22647bf9195b41f932b1
[ "MIT" ]
null
null
null
#include <vector> #include <cstdio> #include <cstring> #include <queue> #include <cctype> #include <cmath> #include <algorithm> #include <iostream> #include <bitset> #include <map> #include <complex> #include <ctime> #include <numeric> #include <set> using namespace std; typedef long long ll; int dz[] = {1, -1, 0, 0...
21.417582
96
0.431503
adelnobel
68b1a069796a6be044bdbe66f97a8a58d2877366
12,428
cpp
C++
src/render/renderer.cpp
colintan95/gfx_engine
b873488141787825a78bf5a8d6de2679333554eb
[ "MIT" ]
null
null
null
src/render/renderer.cpp
colintan95/gfx_engine
b873488141787825a78bf5a8d6de2679333554eb
[ "MIT" ]
null
null
null
src/render/renderer.cpp
colintan95/gfx_engine
b873488141787825a78bf5a8d6de2679333554eb
[ "MIT" ]
null
null
null
#include "render/renderer.h" #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/transform.hpp> #include <cassert> #include <cstddef> #include <cstdlib> #include <fstream> #include <iostream> #include <memory> #include <new> #include <optional> #include <ut...
33.319035
99
0.662778
colintan95
68b1f6ece4b200cf036c3a643561f41e755eb260
850
hh
C++
src/core/event/InputEventHandler.hh
eddiehoyle/sevengine
4f5bd2b16b1179784c831ef8a0d57ccecee0a92e
[ "MIT" ]
1
2019-08-21T05:06:04.000Z
2019-08-21T05:06:04.000Z
src/core/event/InputEventHandler.hh
eddiehoyle/sevengine
4f5bd2b16b1179784c831ef8a0d57ccecee0a92e
[ "MIT" ]
null
null
null
src/core/event/InputEventHandler.hh
eddiehoyle/sevengine
4f5bd2b16b1179784c831ef8a0d57ccecee0a92e
[ "MIT" ]
null
null
null
// // Created by Eddie Hoyle on 14/09/16. // #ifndef SEV_INPUTHANDLER_HH #define SEV_INPUTHANDLER_HH #include <iostream> #include <vector> #include <queue> #include "AbstractEvent.hh" typedef std::queue < AbstractEvent* > EventQueue; class InputEventHandler { public: InputEventHandler() { m_event...
14.655172
50
0.595294
eddiehoyle
68b2511dffaad442afa47eddc0447b22a187895d
568
cpp
C++
173. Binary Search Tree Iterator.cpp
qinenergy/leetCode
79f960795445470a16a4755b05aa05f99e5c616b
[ "MIT" ]
3
2017-02-22T14:28:27.000Z
2017-04-26T16:26:06.000Z
173. Binary Search Tree Iterator.cpp
qinenergy/leetCode
79f960795445470a16a4755b05aa05f99e5c616b
[ "MIT" ]
null
null
null
173. Binary Search Tree Iterator.cpp
qinenergy/leetCode
79f960795445470a16a4755b05aa05f99e5c616b
[ "MIT" ]
null
null
null
class BSTIterator { public: BSTIterator(TreeNode *root) { _push(root); } /** @return whether we have a next smallest number */ bool hasNext() { return !_stack.empty(); } /** @return the next smallest number */ int next() { auto node = _stack.top(); _stack.po...
20.285714
57
0.521127
qinenergy
68b3b9d8721923905c26484b5481925aea24e4e3
9,740
cpp
C++
populations/cgp/brain.cpp
Siddhant-K-code/darwin
86781c9dabeceda7f8666bb1bb4b5ca7d725d81d
[ "Apache-2.0" ]
94
2018-11-24T20:07:07.000Z
2022-03-13T01:34:45.000Z
populations/cgp/brain.cpp
JJ/darwin
d5519b6d542c179cbc0f6575dcfce25e68e2f1df
[ "Apache-2.0" ]
3
2020-11-21T04:49:43.000Z
2021-02-09T18:15:23.000Z
populations/cgp/brain.cpp
JJ/darwin
d5519b6d542c179cbc0f6575dcfce25e68e2f1df
[ "Apache-2.0" ]
18
2018-11-24T20:07:21.000Z
2021-12-19T10:48:57.000Z
// Copyright 2019 The Darwin Neuroevolution Framework 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 ...
30.822785
85
0.623511
Siddhant-K-code