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
470d54522a5ff339dddad5538a5beacd850ebd07
1,552
cpp
C++
graphDataStructuresAndAlgorithms/wordLatterII.cpp
archit-1997/InterviewB
6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7
[ "MIT" ]
1
2021-01-27T16:37:38.000Z
2021-01-27T16:37:38.000Z
graphDataStructuresAndAlgorithms/wordLatterII.cpp
archit-1997/InterviewBit
6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7
[ "MIT" ]
null
null
null
graphDataStructuresAndAlgorithms/wordLatterII.cpp
archit-1997/InterviewBit
6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7
[ "MIT" ]
null
null
null
vector<vector<string>> res; int nd, minL; string en; bool isAdj(string a, string b) { int n = a.length(); int cnt = 0; for (int i = 0; i < n; i++) { if (a[i] != b[i]) cnt++; if (cnt > 1) return false; } return cnt == 1 ? true : false; } void dfs(vector<string> &dict, vector<string> &te...
20.155844
78
0.556057
archit-1997
470d83ac1637399f02fd02afdf04312d546e0273
12,015
cc
C++
src/jtocconversion.cc
yamii/node-bacnet
bfe63ff626d7bb02bebfefd301307952fcbd4ee0
[ "MIT" ]
null
null
null
src/jtocconversion.cc
yamii/node-bacnet
bfe63ff626d7bb02bebfefd301307952fcbd4ee0
[ "MIT" ]
null
null
null
src/jtocconversion.cc
yamii/node-bacnet
bfe63ff626d7bb02bebfefd301307952fcbd4ee0
[ "MIT" ]
null
null
null
#include <iostream> #include <v8.h> #include <node.h> #include <nan.h> #include "address.h" #include "datalink.h" #include "bacapp.h" #include "bactext.h" using v8::Local; using v8::Value; using v8::Object; using v8::Int32; using v8::Uint32; using v8::String; using Nan::MaybeLocal; using Nan::New; uint32_t getUint32...
41.006826
163
0.635456
yamii
470ecca09a38e5e9808703253e7803ea0723bee0
2,424
cpp
C++
picam/libs/client/src/picam_client.cpp
avribacki/neato-pi
dd415f0f6ab82492468fedcafc85f18277fc7c06
[ "MIT" ]
null
null
null
picam/libs/client/src/picam_client.cpp
avribacki/neato-pi
dd415f0f6ab82492468fedcafc85f18277fc7c06
[ "MIT" ]
null
null
null
picam/libs/client/src/picam_client.cpp
avribacki/neato-pi
dd415f0f6ab82492468fedcafc85f18277fc7c06
[ "MIT" ]
null
null
null
#include "picam_api.h" #include "jaw_client.hpp" #include "picam_protocol.hpp" using namespace Jaw; using namespace PiCam; /*************************************************************************************************/ using PiCamClient = Client<Command>; /******************************************...
35.130435
108
0.458333
avribacki
471070a279bcb7a0d22a5220de21dd017e72f6b5
28,997
cpp
C++
assembler/tests/emitter_test.cpp
openharmony-gitee-mirror/ark_runtime_core
2e6f195caf482dc9607efda7cfb5cc5f98da5598
[ "Apache-2.0" ]
1
2021-09-09T03:17:23.000Z
2021-09-09T03:17:23.000Z
assembler/tests/emitter_test.cpp
openharmony-gitee-mirror/ark_runtime_core
2e6f195caf482dc9607efda7cfb5cc5f98da5598
[ "Apache-2.0" ]
null
null
null
assembler/tests/emitter_test.cpp
openharmony-gitee-mirror/ark_runtime_core
2e6f195caf482dc9607efda7cfb5cc5f98da5598
[ "Apache-2.0" ]
1
2021-09-13T11:21:57.000Z
2021-09-13T11:21:57.000Z
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
33.25344
120
0.57637
openharmony-gitee-mirror
4711bc5b49380ac67c4d616b955618c7147dc312
14,992
cpp
C++
devtools/lit/lib/ProgressBar.cpp
PHP-OPEN-HUB/polarphp
70ff4046e280fd99d718d4761686168fa8012aa5
[ "PHP-3.01" ]
null
null
null
devtools/lit/lib/ProgressBar.cpp
PHP-OPEN-HUB/polarphp
70ff4046e280fd99d718d4761686168fa8012aa5
[ "PHP-3.01" ]
null
null
null
devtools/lit/lib/ProgressBar.cpp
PHP-OPEN-HUB/polarphp
70ff4046e280fd99d718d4761686168fa8012aa5
[ "PHP-3.01" ]
null
null
null
// This source file is part of the polarphp.org open source project // // Copyright (c) 2017 - 2019 polarphp software foundation // Copyright (c) 2017 - 2019 zzu_softboy <zzu_softboy@163.com> // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://polarphp.org/LICENSE.txt for license info...
30.975207
126
0.614128
PHP-OPEN-HUB
471296fa4ba4364588b96efd2791ca2403d838dc
5,179
cpp
C++
src/types/spatial.cpp
vi3itor/Blunted2
318af452e51174a3a4634f3fe19b314385838992
[ "Unlicense" ]
56
2020-07-22T22:11:06.000Z
2022-03-09T08:11:43.000Z
GameplayFootball/src/types/spatial.cpp
ElsevierSoftwareX/SOFTX-D-20-00016
48c28adb72aa167a251636bc92111b3c43c0be67
[ "MIT" ]
9
2021-04-22T07:06:25.000Z
2022-01-22T12:54:52.000Z
GameplayFootball/src/types/spatial.cpp
ElsevierSoftwareX/SOFTX-D-20-00016
48c28adb72aa167a251636bc92111b3c43c0be67
[ "MIT" ]
20
2017-11-07T16:52:32.000Z
2022-01-25T02:42:48.000Z
// written by bastiaan konings schuiling 2008 - 2014 // this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important. // i do not offer support, so don't ask. to be used for inspiration :) #include "spatial.hpp" namespace blunted { Spatial::Spatia...
26.834197
132
0.659973
vi3itor
471442805efde85b3c383ba279797802afbda0c2
399
cc
C++
source/pkgsrc/audio/terminatorx/patches/patch-src_tX__vtt.cc
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/audio/terminatorx/patches/patch-src_tX__vtt.cc
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/audio/terminatorx/patches/patch-src_tX__vtt.cc
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-src_tX__vtt.cc,v 1.1 2019/10/05 12:09:26 nia Exp $ Use standard stdlib.h instead of non-standard malloc.h. --- src/tX_vtt.cc.orig 2016-07-24 14:24:08.000000000 +0000 +++ src/tX_vtt.cc @@ -28,7 +28,7 @@ #include "tX_vtt.h" #include "tX_global.h" #include <stdio.h> -#include "malloc.h" +#include <stdl...
24.9375
65
0.689223
Scottx86-64
4716e91c2c4cc878b6c306d416b0cc1d384e498f
17,008
cpp
C++
vespalib/src/tests/btree/btree-stress/btree_stress_test.cpp
alexeyche/vespa
7585981b32937d2b13da1a8f94b42c8a0833a4c2
[ "Apache-2.0" ]
null
null
null
vespalib/src/tests/btree/btree-stress/btree_stress_test.cpp
alexeyche/vespa
7585981b32937d2b13da1a8f94b42c8a0833a4c2
[ "Apache-2.0" ]
null
null
null
vespalib/src/tests/btree/btree-stress/btree_stress_test.cpp
alexeyche/vespa
7585981b32937d2b13da1a8f94b42c8a0833a4c2
[ "Apache-2.0" ]
null
null
null
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/btree/btree.h> #include <vespa/vespalib/btree/btreebuilder.h> #include <vespa/vespalib/btree/btreenodeallocator.h> #include <vespa/vespalib/btree/btreeroot.h> #include <vespa/vespalib/btree...
30.371429
112
0.694673
alexeyche
471992f04f7855bfd1d789d6a73137485c4bfa3e
6,805
cpp
C++
src/docks/quadockwidgetperms.cpp
juangburgos/QUaAccessControl
6a1af53e30fb4e75111312b9bce46b983567049e
[ "MIT" ]
null
null
null
src/docks/quadockwidgetperms.cpp
juangburgos/QUaAccessControl
6a1af53e30fb4e75111312b9bce46b983567049e
[ "MIT" ]
null
null
null
src/docks/quadockwidgetperms.cpp
juangburgos/QUaAccessControl
6a1af53e30fb4e75111312b9bce46b983567049e
[ "MIT" ]
1
2021-11-04T21:16:21.000Z
2021-11-04T21:16:21.000Z
#include "quadockwidgetperms.h" #include "ui_quadockwidgetperms.h" #include <QUaAccessControl> #include <QUaUser> #include <QUaRole> #include <QUaPermissions> #include <QUaPermissionsList> int QUaDockWidgetPerms::PointerRole = Qt::UserRole + 1; QUaDockWidgetPerms::QUaDockWidgetPerms(QWidget *parent) : ...
32.716346
148
0.714622
juangburgos
471d40609c336608934ef13cc447ef7eac67c3e5
987
cpp
C++
programs/decisions and loops/04_Quadratic_equation.cpp
MKrishan21/learn-cpp
55f6fbccf97fc73e5d6081372a5ebda75f2a98d7
[ "Apache-2.0" ]
null
null
null
programs/decisions and loops/04_Quadratic_equation.cpp
MKrishan21/learn-cpp
55f6fbccf97fc73e5d6081372a5ebda75f2a98d7
[ "Apache-2.0" ]
1
2022-03-20T17:08:50.000Z
2022-03-30T17:54:30.000Z
programs/decisions and loops/04_Quadratic_equation.cpp
MKrishan21/learn-cpp
55f6fbccf97fc73e5d6081372a5ebda75f2a98d7
[ "Apache-2.0" ]
null
null
null
// C++ Program to Find Quotient and Remainder #include <iostream> #include <cmath> using namespace std; int main() { float a, b, c, x1, x2, discriminant, x3, x4; cout << "enter the coefficients a b & c "; cin >> a >> b >> c; discriminant = b * b - 4 * a * c; if (discriminant > 0) { x1 ...
27.416667
58
0.435664
MKrishan21
471dac63a76024e82d07bb1d66f3cc2550743223
1,646
cpp
C++
Graphs/01-Matrix-542.cpp
devangi2000/Data-Structures-Algorithms-Handbook
ce0f00de89af5da7f986e65089402dc6908a09b5
[ "MIT" ]
38
2021-10-14T09:36:53.000Z
2022-01-27T02:36:19.000Z
Graphs/01-Matrix-542.cpp
devangi2000/Data-Structures-Algorithms-Handbook
ce0f00de89af5da7f986e65089402dc6908a09b5
[ "MIT" ]
null
null
null
Graphs/01-Matrix-542.cpp
devangi2000/Data-Structures-Algorithms-Handbook
ce0f00de89af5da7f986e65089402dc6908a09b5
[ "MIT" ]
4
2021-12-06T15:47:12.000Z
2022-02-04T04:25:00.000Z
// Given an m x n binary matrix mat, return the distance of the nearest 0 for each cell. // The distance between two adjacent cells is 1. // Example 1: // Input: mat = [[0,0,0],[0,1,0],[0,0,0]] // Output: [[0,0,0],[0,1,0],[0,0,0]] // Example 2: // Input: mat = [[0,0,0],[0,1,0],[1,1,1]] // Output: [[0,0,0]...
29.392857
90
0.40158
devangi2000
471ed406bdae8204c546e0c8b0f1151b07d33bb1
1,942
hpp
C++
libs/parse/include/fcppt/parse/make_convert_if.hpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
libs/parse/include/fcppt/parse/make_convert_if.hpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
libs/parse/include/fcppt/parse/make_convert_if.hpp
pmiddend/fcppt
9f437acbb10258e6df6982a550213a05815eb2be
[ "BSL-1.0" ]
null
null
null
// Copyright Carl Philipp Reh 2009 - 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_PARSE_MAKE_CONVERT_IF_HPP_INCLUDED #define FCPPT_PARSE_MAKE_CONVERT_IF_HPP_INCLUDED ...
16.886957
61
0.659114
pmiddend
47231b8910539119531cb2f3c6b5034866a68708
638
cpp
C++
src/executor/Executor.cpp
Charlieglider/machinery1
1d085634ecbb1cd69d920a92f71dd0fece659e1a
[ "Unlicense" ]
1
2018-06-12T21:48:53.000Z
2018-06-12T21:48:53.000Z
src/executor/Executor.cpp
chpap/machinery
63130ccbe91339cadbdb0c3df3b6eea4da575403
[ "Unlicense" ]
null
null
null
src/executor/Executor.cpp
chpap/machinery
63130ccbe91339cadbdb0c3df3b6eea4da575403
[ "Unlicense" ]
null
null
null
#include "Executor.h" namespace kerberos { SequenceInterval::SequenceInterval(IntegerTypeArray & integers) { m_count = 0; m_times = integers[0].first; m_boundery = integers[1].first; m_increase = m_boundery / m_times; } bool SequenceInterval::operator()() { ...
19.333333
67
0.540752
Charlieglider
472860cd6fcb7a90a6937d5c2e920d41e1edc0d6
719
cpp
C++
lucas/uri/1171.cpp
medeiroslucas/lo-and-behold-pp
d2be16f9b108b501fd9fccf173e741c93350cee4
[ "MIT" ]
2
2019-09-09T00:34:40.000Z
2019-09-09T17:35:19.000Z
lucas/uri/1171.cpp
medeiroslucas/lo-and-behold-pp
d2be16f9b108b501fd9fccf173e741c93350cee4
[ "MIT" ]
null
null
null
lucas/uri/1171.cpp
medeiroslucas/lo-and-behold-pp
d2be16f9b108b501fd9fccf173e741c93350cee4
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int main(){ int N, i, min=2001, numanterior=0, cont=0; int *numeros; cin >> N; numeros = (int *) malloc(N*sizeof(int)); for(i = 0; i<N; i++){ cin >> *(numeros+i); } while(1){ cont = 0; for(i=0; i<N; i++){ ...
15.630435
65
0.399166
medeiroslucas
472b5aa45fc445c60ce659738518699eb6d9bc7b
671
hpp
C++
cpp/include/gecko/signals.hpp
MomsFriendlyRobotCompany/gecko
f340381113bdb423a39d47aaee61e013bb9e002a
[ "MIT" ]
2
2020-03-11T03:53:19.000Z
2020-10-06T03:18:32.000Z
cpp/include/gecko/signals.hpp
MomsFriendlyRobotCompany/gecko
f340381113bdb423a39d47aaee61e013bb9e002a
[ "MIT" ]
null
null
null
cpp/include/gecko/signals.hpp
MomsFriendlyRobotCompany/gecko
f340381113bdb423a39d47aaee61e013bb9e002a
[ "MIT" ]
null
null
null
/**************************************************\ * The MIT License (MIT) * Copyright (c) 2014 Kevin Walchko * see LICENSE for full details \**************************************************/ #pragma once /* This class captures the SIGINT signal and sets ok to false. Since ok is static, any class that inherits t...
27.958333
72
0.57079
MomsFriendlyRobotCompany
472bf849153eac1a2753ad985cc015407da3743d
8,613
cpp
C++
cegui/src/RenderTarget.cpp
cbeck88/cegui-mirror
50d3a670b22fd957eba06549a9a7e04796d0b92f
[ "MIT" ]
null
null
null
cegui/src/RenderTarget.cpp
cbeck88/cegui-mirror
50d3a670b22fd957eba06549a9a7e04796d0b92f
[ "MIT" ]
null
null
null
cegui/src/RenderTarget.cpp
cbeck88/cegui-mirror
50d3a670b22fd957eba06549a9a7e04796d0b92f
[ "MIT" ]
1
2020-07-21T00:03:01.000Z
2020-07-21T00:03:01.000Z
/*********************************************************************** created: Sat Feb 18 2012 author: Paul D Turner <paul@cegui.org.uk> *************************************************************************/ /*************************************************************************** * Copyrigh...
38.450893
138
0.564728
cbeck88
472ec7e2931ae78bb65dabb8973dfac45545236e
2,242
cpp
C++
src/vpg/memory/pool.cpp
RiscadoA/voxel-platformer
4e7aadad978c333a59f452a8ee9f4612ee128614
[ "MIT" ]
3
2021-03-01T16:00:04.000Z
2022-01-07T03:45:32.000Z
src/vpg/memory/pool.cpp
RiscadoA/voxel-platformer
4e7aadad978c333a59f452a8ee9f4612ee128614
[ "MIT" ]
null
null
null
src/vpg/memory/pool.cpp
RiscadoA/voxel-platformer
4e7aadad978c333a59f452a8ee9f4612ee128614
[ "MIT" ]
2
2021-03-27T03:54:24.000Z
2021-06-22T13:53:07.000Z
#include <vpg/memory/pool.hpp> #include <cstring> #include <cstdlib> using namespace vpg::memory; Pool<void>::Pool(size_t initial_count, size_t element_sz, std::align_val_t alignment) { this->used = 0; this->total = initial_count; this->element_sz = element_sz; this->alignment = alignment; if ((...
28.74359
102
0.582516
RiscadoA
472fb0726c07927da19c9f66ab94225b1d4655c6
1,259
cpp
C++
Catch2Demo/CalculatorSumTests.cpp
Zilleplus/cppTestFrameworkDemos
ccb1cc9e8d9f7e4243b720a3f8355d258caf56c1
[ "MIT" ]
null
null
null
Catch2Demo/CalculatorSumTests.cpp
Zilleplus/cppTestFrameworkDemos
ccb1cc9e8d9f7e4243b720a3f8355d258caf56c1
[ "MIT" ]
null
null
null
Catch2Demo/CalculatorSumTests.cpp
Zilleplus/cppTestFrameworkDemos
ccb1cc9e8d9f7e4243b720a3f8355d258caf56c1
[ "MIT" ]
null
null
null
#include "catch.hpp" #include "RealCalculator.h" TEST_CASE("Test sum of two real numbers", "[Calculator]") { RealCalculator calculator; SECTION("Add 2 numbers") { REQUIRE(calculator.calculate(1,2,SUM)==3.0); } } TEST_CASE("Generators") { auto i = GENERATE(1, 2, 3); auto j = GENERATE(3, 2, 1); RealCalculato...
21.338983
86
0.641779
Zilleplus
47309395d715106960a581d984116c4e00f25402
3,485
hpp
C++
source/AsioExpress/EventHandling/ResourceCachePrivate/AddResourceItemsProcessor.hpp
suhao/asioexpress
2f3453465934afdcdf4a575a2d933d86929b23c7
[ "BSL-1.0" ]
null
null
null
source/AsioExpress/EventHandling/ResourceCachePrivate/AddResourceItemsProcessor.hpp
suhao/asioexpress
2f3453465934afdcdf4a575a2d933d86929b23c7
[ "BSL-1.0" ]
null
null
null
source/AsioExpress/EventHandling/ResourceCachePrivate/AddResourceItemsProcessor.hpp
suhao/asioexpress
2f3453465934afdcdf4a575a2d933d86929b23c7
[ "BSL-1.0" ]
null
null
null
// Copyright Ross MacGregor 2013 // 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) #pragma once #include <map> #include <algorithm> #include <boost/shared_ptr.hpp> #include...
30.304348
128
0.613199
suhao
473ddd7ed441686f935bd2f047b8e26dd205f682
10,542
hpp
C++
src/mods/FileEditor.hpp
youwereeatenbyalid/dx11_mod_base
c9c31426261c793e34a5b7ff1a15598777691ba5
[ "MIT" ]
2
2021-03-25T20:27:49.000Z
2022-03-29T13:00:31.000Z
src/mods/FileEditor.hpp
youwereeatenbyalid/dx11_mod_base
c9c31426261c793e34a5b7ff1a15598777691ba5
[ "MIT" ]
null
null
null
src/mods/FileEditor.hpp
youwereeatenbyalid/dx11_mod_base
c9c31426261c793e34a5b7ff1a15598777691ba5
[ "MIT" ]
2
2021-02-20T13:42:25.000Z
2022-03-26T16:05:47.000Z
#pragma once #include <map> #include <filesystem> #include <fstream> #include <sstream> #include "Mod.hpp" #include "sdk/ReClass.hpp" #include "mods/LDK.hpp" #include "mods/SpardaWorkshop.hpp" #include "mods/BpStageJump.hpp" // clang-format off namespace fs = std::filesystem; class HotSwapCFG { public: HotSwapCFG...
34.907285
124
0.677006
youwereeatenbyalid
473ebb403849cafbd4d58a78c43a7d4159e2cbc3
1,154
cpp
C++
Chapter04/mmap_write.cpp
trantrongquy/C-System-Programming-Cookbook
2df8795d8f88de10e38297606ac2fa9993d6dab4
[ "MIT" ]
36
2020-03-23T21:10:14.000Z
2022-01-22T20:22:30.000Z
Chapter04/mmap_write.cpp
trantrongquy/C-System-Programming-Cookbook
2df8795d8f88de10e38297606ac2fa9993d6dab4
[ "MIT" ]
2
2020-02-28T13:14:44.000Z
2021-06-17T07:55:34.000Z
Chapter04/mmap_write.cpp
trantrongquy/C-System-Programming-Cookbook
2df8795d8f88de10e38297606ac2fa9993d6dab4
[ "MIT" ]
22
2020-02-21T08:00:06.000Z
2022-02-09T11:05:13.000Z
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <sys/mman.h> #include <iostream> #define FILEPATH "mmapped.txt" #define NUM_OF_ITEMS_IN_FILE (1000) #define FILESIZE (NUM_OF_ITEMS_IN_FILE * sizeof(int)) int main(int argc, char *argv[]) { int fd = open(FILEPATH, O_RDWR | O_CR...
20.981818
83
0.584922
trantrongquy
474054247992303911fb385564c34230eba7d440
25,398
cpp
C++
CWE-119/source_files/CVE-2011-2377/Firefox_4.0.1_CVE_2011_2377_modules_libpr0n_decoders_nsBMPDecoder.cpp
CGCL-codes/VulDeePecker
98610f3e116df97a1e819ffc81fbc7f6f138a8f2
[ "Apache-2.0" ]
185
2017-12-14T08:18:15.000Z
2022-03-30T02:58:36.000Z
CWE-119/source_files/CVE-2011-2377/Firefox_4.0.1_CVE_2011_2377_modules_libpr0n_decoders_nsBMPDecoder.cpp
CGCL-codes/VulDeePecker
98610f3e116df97a1e819ffc81fbc7f6f138a8f2
[ "Apache-2.0" ]
11
2018-01-30T23:31:20.000Z
2022-01-17T05:03:56.000Z
CWE-119/source_files/CVE-2011-2377/Firefox_4.0.1_CVE_2011_2377_modules_libpr0n_decoders_nsBMPDecoder.cpp
CGCL-codes/VulDeePecker
98610f3e116df97a1e819ffc81fbc7f6f138a8f2
[ "Apache-2.0" ]
87
2018-01-10T08:12:32.000Z
2022-02-19T10:29:31.000Z
/* vim:set tw=80 expandtab softtabstop=4 ts=4 sw=4: */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a co...
40.378378
118
0.479802
CGCL-codes
47420fe837713722b30bd054801315dea2aff39d
3,659
cpp
C++
source/ff.dx12/source/queue.cpp
spadapet/ff_game_library
f1bf00f90adde66c2c2aa35b109fe61b8d2c6352
[ "MIT" ]
null
null
null
source/ff.dx12/source/queue.cpp
spadapet/ff_game_library
f1bf00f90adde66c2c2aa35b109fe61b8d2c6352
[ "MIT" ]
null
null
null
source/ff.dx12/source/queue.cpp
spadapet/ff_game_library
f1bf00f90adde66c2c2aa35b109fe61b8d2c6352
[ "MIT" ]
null
null
null
#include "pch.h" #include "access.h" #include "device_reset_priority.h" #include "fence.h" #include "globals.h" #include "queue.h" ff::dx12::queue::queue(D3D12_COMMAND_LIST_TYPE type) : type(type) { this->reset(); ff::dx12::add_device_child(this, ff::dx12::device_reset_priority::queue); } ff::dx12::queue:...
27.511278
121
0.596338
spadapet
4742997122af1c266e1b3fe2da68930984e797f9
18,528
cc
C++
content/browser/prerender/prerender_host.cc
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
content/browser/prerender/prerender_host.cc
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
content/browser/prerender/prerender_host.cc
iridium-browser/iridium-browser
907e31cf5ce5ad14d832796e3a7c11e496828959
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
// Copyright 2020 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 "content/browser/prerender/prerender_host.h" #include "base/callback_forward.h" #include "base/feature_list.h" #include "base/metrics/histogram_...
38.519751
80
0.729167
iridium-browser
47477c973bc9e3b331ff840cd45038d5bfa7a81a
1,178
cpp
C++
src/LightBulbApp/TrainingPlans/Preferences/PredefinedPreferenceGroups/Evolution/RateDifferenceConditionPreferenceGroup.cpp
domin1101/ANNHelper
50acb5746d6dad6777532e4c7da4983a7683efe0
[ "Zlib" ]
5
2016-02-04T06:14:42.000Z
2017-02-06T02:21:43.000Z
src/LightBulbApp/TrainingPlans/Preferences/PredefinedPreferenceGroups/Evolution/RateDifferenceConditionPreferenceGroup.cpp
domin1101/ANNHelper
50acb5746d6dad6777532e4c7da4983a7683efe0
[ "Zlib" ]
41
2015-04-15T21:05:45.000Z
2015-07-09T12:59:02.000Z
src/LightBulbApp/TrainingPlans/Preferences/PredefinedPreferenceGroups/Evolution/RateDifferenceConditionPreferenceGroup.cpp
domin1101/LightBulb
50acb5746d6dad6777532e4c7da4983a7683efe0
[ "Zlib" ]
null
null
null
// Includes #include "LightBulbApp/TrainingPlans/Preferences/PredefinedPreferenceGroups/Evolution/RateDifferenceConditionPreferenceGroup.hpp" #include "LightBulbApp/TrainingPlans/Preferences/IntegerPreference.hpp" #include "LightBulbApp/TrainingPlans/Preferences/DoublePreference.hpp" #include "LightBulb/Learning/Evolu...
36.8125
129
0.837861
domin1101
474785b19cfc9676eb90451dfbd807f1f5548fe3
11,465
cpp
C++
unittests/conversation.cpp
traviscross/libzina
6583baa68549a7d90bf6f9af5836361e41b3cef5
[ "Apache-2.0" ]
21
2016-04-03T00:05:34.000Z
2020-05-19T23:08:37.000Z
unittests/conversation.cpp
traviscross/libzina
6583baa68549a7d90bf6f9af5836361e41b3cef5
[ "Apache-2.0" ]
null
null
null
unittests/conversation.cpp
traviscross/libzina
6583baa68549a7d90bf6f9af5836361e41b3cef5
[ "Apache-2.0" ]
4
2018-01-15T07:17:27.000Z
2021-01-10T02:01:37.000Z
/* Copyright 2016 Silent Circle, 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 writing, softw...
34.637462
137
0.632883
traviscross
47485c6e3aeca10613b76c90156abf333b5ac49a
2,178
cpp
C++
src/kinematics.cpp
Valts-M/ros2_com
647bfb815595309ef469cbf81a1f7f1b9bb1fc3c
[ "Apache-2.0" ]
null
null
null
src/kinematics.cpp
Valts-M/ros2_com
647bfb815595309ef469cbf81a1f7f1b9bb1fc3c
[ "Apache-2.0" ]
null
null
null
src/kinematics.cpp
Valts-M/ros2_com
647bfb815595309ef469cbf81a1f7f1b9bb1fc3c
[ "Apache-2.0" ]
null
null
null
#include "kinematics.hpp" #include "tf2_geometry_msgs/tf2_geometry_msgs.h" #include "tf2/LinearMath/Quaternion.h" namespace ros2_com { Kinematics::Kinematics() : Kinematics::Kinematics(RobotConfig()){} Kinematics::Kinematics(const RobotConfig& config) : m_leftEncScale(config.leftEncScale), m_rightEncS...
33
105
0.671258
Valts-M
4748e87d994c95ffb85a21593ef1eca52c2bc317
835
cpp
C++
utility.cpp
leannejdong/INSEL_PARSER
8bc1462cea56741b26adcbf7531819d051e3b6bd
[ "MIT" ]
1
2020-12-25T13:57:47.000Z
2020-12-25T13:57:47.000Z
utility.cpp
leannejdong/Insel_parser
8bc1462cea56741b26adcbf7531819d051e3b6bd
[ "MIT" ]
null
null
null
utility.cpp
leannejdong/Insel_parser
8bc1462cea56741b26adcbf7531819d051e3b6bd
[ "MIT" ]
null
null
null
// // Created by leanne on 1/6/21. // #include "utility.h" #include<algorithm> #include<sstream> #include<fstream> using std::string; using std::vector; using std::istringstream; vector<int> strToVecInts(const string &graph_string) { vector<int> vecInts; istringstream input_stream(graph_string); int numb...
18.977273
60
0.627545
leannejdong
474930886378e71436fb9e874ec1996d99a8cec5
1,849
cpp
C++
test/unit/math/rev/core/grad_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
null
null
null
test/unit/math/rev/core/grad_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
null
null
null
test/unit/math/rev/core/grad_test.cpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
null
null
null
#include <gtest/gtest.h> #include <test/unit/math/rev/fun/util.hpp> #include <stan/math/rev/core.hpp> #include <stan/math/rev/fun/sin.hpp> #include <vector> TEST(AgradRev, multiple_grads) { for (int i = 0; i < 100; ++i) { stan::math::var a = 2.0; stan::math::var b = 3.0 * a; stan::math::var c = sin(a) * ...
19.88172
74
0.600865
LaudateCorpus1
474f455e0b90a74010298dbffc9363c798ebd1cd
17,913
cpp
C++
shaderapivulkan/src/TF2Vulkan/meshes/VulkanMesh.cpp
melvyn2/TF2Vulkan
a8cd1c49ecfe9d4dc31af0a50ba7690c61c255c4
[ "MIT" ]
null
null
null
shaderapivulkan/src/TF2Vulkan/meshes/VulkanMesh.cpp
melvyn2/TF2Vulkan
a8cd1c49ecfe9d4dc31af0a50ba7690c61c255c4
[ "MIT" ]
null
null
null
shaderapivulkan/src/TF2Vulkan/meshes/VulkanMesh.cpp
melvyn2/TF2Vulkan
a8cd1c49ecfe9d4dc31af0a50ba7690c61c255c4
[ "MIT" ]
null
null
null
#include "TF2Vulkan/IShaderAPI/IShaderAPI_StateManagerDynamic.h" #include "interface/IMaterialInternal.h" #include "interface/internal/IBufferPoolInternal.h" #include "interface/internal/IShaderDeviceInternal.h" #include "interface/internal/IStateManagerStatic.h" #include "TF2Vulkan/VulkanFactories.h" #include "VulkanM...
26.498521
140
0.74566
melvyn2
47535de4a05f42be5091ec3b3c518135ce8e4508
2,109
cpp
C++
shared/Heap/Heap.cpp
alicialink/system-squeeze
f0a82546389d5feae48668352e0b1dcd83100674
[ "MIT" ]
null
null
null
shared/Heap/Heap.cpp
alicialink/system-squeeze
f0a82546389d5feae48668352e0b1dcd83100674
[ "MIT" ]
null
null
null
shared/Heap/Heap.cpp
alicialink/system-squeeze
f0a82546389d5feae48668352e0b1dcd83100674
[ "MIT" ]
null
null
null
#include "Heap.h" #include <stdlib.h> int h_parent(int i) { return (int)((i - 1) / 2); } int h_child_left(int i) { return (2 * i) + 1; } int h_child_right(int i) { return (2 * i) + 2; } bool h_create(Heap **h) { Heap *newHeap = (Heap *)malloc(sizeof(Heap)); if (newHeap == NULL) { return false; }...
15.857143
69
0.495021
alicialink
4755c138300bb384230b1feed1c8d051175c5b97
5,366
cpp
C++
libcaf_core/src/response_promise.cpp
Hamdor/actor-framework
ce63edffa2b7acb698cfaea571142029d38e9ef0
[ "BSD-3-Clause" ]
2,517
2015-01-04T22:19:43.000Z
2022-03-31T12:20:48.000Z
libcaf_core/src/response_promise.cpp
Hamdor/actor-framework
ce63edffa2b7acb698cfaea571142029d38e9ef0
[ "BSD-3-Clause" ]
894
2015-01-07T14:21:21.000Z
2022-03-30T06:37:18.000Z
libcaf_core/src/response_promise.cpp
Hamdor/actor-framework
ce63edffa2b7acb698cfaea571142029d38e9ef0
[ "BSD-3-Clause" ]
570
2015-01-21T18:59:33.000Z
2022-03-31T19:00:02.000Z
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #include <algorithm> #include <utility> #include "caf/response_promise.hpp" #include "ca...
28.242105
80
0.636974
Hamdor
4755cc6261ec0a76d98fa0fc10100bb7156beec2
3,766
cpp
C++
VrpnNet/AnalogOutputRemote.cpp
vrpn/VrpnNet
b75e5dd846f11b564f6e5ae06317b8781c40142f
[ "MIT" ]
11
2015-04-13T17:53:29.000Z
2021-06-01T17:33:49.000Z
VrpnNet/AnalogOutputRemote.cpp
vrpn/VrpnNet
b75e5dd846f11b564f6e5ae06317b8781c40142f
[ "MIT" ]
7
2015-04-13T17:45:44.000Z
2016-09-18T23:42:52.000Z
VrpnNet/AnalogOutputRemote.cpp
vancegroup/VrpnNet
9767f94c573529f2b4859df1cebb96381b7750a9
[ "MIT" ]
4
2015-05-20T19:20:29.000Z
2016-03-20T13:57:28.000Z
// AnalogOutputRemote.cpp: Implementation for Vrpn.AnalogOutputRemote // // Copyright (c) 2008-2009 Chris VanderKnyff // // 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 rest...
31.123967
95
0.754116
vrpn
47587fb719b576a9f4a953f4233de13d93ae190f
21,327
cpp
C++
Modules/PhotoacousticsAlgorithms/Algorithms/mitkPhotoacousticBeamformingFilter.cpp
ZP-Hust/MITK
ca11353183c5ed4bc30f938eae8bde43a0689bf6
[ "BSD-3-Clause" ]
null
null
null
Modules/PhotoacousticsAlgorithms/Algorithms/mitkPhotoacousticBeamformingFilter.cpp
ZP-Hust/MITK
ca11353183c5ed4bc30f938eae8bde43a0689bf6
[ "BSD-3-Clause" ]
null
null
null
Modules/PhotoacousticsAlgorithms/Algorithms/mitkPhotoacousticBeamformingFilter.cpp
ZP-Hust/MITK
ca11353183c5ed4bc30f938eae8bde43a0689bf6
[ "BSD-3-Clause" ]
1
2019-01-09T08:20:18.000Z
2019-01-09T08:20:18.000Z
/*=================================================================== mitkPhotoacousticBeamformingFilter The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; w...
35.077303
235
0.648099
ZP-Hust
4758a5d70b1bf5667b99161e9cefcf234ba15c33
3,732
cpp
C++
firmware-latest/communication/src/events.cpp
adeeshag/particle_project
0c2ab278cf902f97d2422c44c008978be58fe6b7
[ "Unlicense" ]
null
null
null
firmware-latest/communication/src/events.cpp
adeeshag/particle_project
0c2ab278cf902f97d2422c44c008978be58fe6b7
[ "Unlicense" ]
null
null
null
firmware-latest/communication/src/events.cpp
adeeshag/particle_project
0c2ab278cf902f97d2422c44c008978be58fe6b7
[ "Unlicense" ]
null
null
null
/** ****************************************************************************** * @file events.cpp * @authors Zachary Crockett * @version V1.0.0 * @date 26-Feb-2014 * @brief Internal CoAP event message creation ****************************************************************************** Cop...
26.097902
80
0.583333
adeeshag
e6e25d79f05ac2a41eafd537cd3cb1dd8988c65c
4,198
cpp
C++
serial_device.cpp
AlexX333BY/dds-fpga-ticker-client
836df9e5353b0e96987951fa81e9a37f1002a6d1
[ "MIT" ]
1
2019-12-18T16:40:51.000Z
2019-12-18T16:40:51.000Z
serial_device.cpp
AlexX333BY/dds-fpga-ticker-client
836df9e5353b0e96987951fa81e9a37f1002a6d1
[ "MIT" ]
null
null
null
serial_device.cpp
AlexX333BY/dds-fpga-ticker-client
836df9e5353b0e96987951fa81e9a37f1002a6d1
[ "MIT" ]
null
null
null
#include "serial_device.h" #include <stdexcept> using namespace fpga_ticker_client; #ifdef __unix__ #include <fcntl.h> #include <termios.h> #include <unistd.h> #include <unordered_map> serial_device::serial_device(const std::string &path, const uint32_t speed) : device(-1) { const std::unordered_map<uint32_t, sp...
26.56962
106
0.526679
AlexX333BY
e6e577deb83d81b726fe574676492d8bb7430f7a
2,263
cpp
C++
code/87.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
23
2020-03-30T05:44:56.000Z
2021-09-04T16:00:57.000Z
code/87.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
1
2020-05-10T15:04:05.000Z
2020-06-14T01:21:44.000Z
code/87.cpp
Nightwish-cn/my_leetcode
40f206e346f3f734fb28f52b9cde0e0041436973
[ "MIT" ]
6
2020-03-30T05:45:04.000Z
2020-08-13T10:01:39.000Z
#include <bits/stdc++.h> #define INF 2000000000 using namespace std; typedef long long ll; int read(){ int f = 1, x = 0; char c = getchar(); while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();} while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar(); return f * x; } struct TreeNode { int val...
31
124
0.418913
Nightwish-cn
e6e57bcd14af72348eff2906ff5bf63c3d98edf0
7,833
cc
C++
proxy/http/HttpProxyServerMain.cc
allandproust/TrafficServer-1
7d517c7ab3f21b812bc0969244386480a94df467
[ "Apache-2.0" ]
83
2015-01-13T14:44:55.000Z
2021-10-30T07:57:03.000Z
proxy/http/HttpProxyServerMain.cc
flashbuckets/trafficserver
236fab894c0909913580f7a75a307ab393b3986c
[ "Apache-2.0" ]
9
2015-03-13T15:17:28.000Z
2017-04-19T08:53:24.000Z
proxy/http/HttpProxyServerMain.cc
flashbuckets/trafficserver
236fab894c0909913580f7a75a307ab393b3986c
[ "Apache-2.0" ]
50
2015-01-29T14:51:38.000Z
2021-11-10T02:03:35.000Z
/** @file A brief file description @section license License 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 you und...
28.904059
95
0.699349
allandproust
e6e6e861d6ae33a6ed1e82d6202e984019b0062d
3,033
cpp
C++
test/module/shared_model/builders/common_objects/signature_builder_test.cpp
coderintherye/iroha
68509282851130c9818f21acef1ef28e53622315
[ "Apache-2.0" ]
null
null
null
test/module/shared_model/builders/common_objects/signature_builder_test.cpp
coderintherye/iroha
68509282851130c9818f21acef1ef28e53622315
[ "Apache-2.0" ]
null
null
null
test/module/shared_model/builders/common_objects/signature_builder_test.cpp
coderintherye/iroha
68509282851130c9818f21acef1ef28e53622315
[ "Apache-2.0" ]
null
null
null
/** * Copyright Soramitsu Co., Ltd. 2018 All Rights Reserved. * http://soramitsu.co.jp * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
35.682353
91
0.726014
coderintherye
e6eda95147638c5a9ab2e6f5107109c2dc181850
16,857
cpp
C++
src/modrin_motor_plugins/epos2.cpp
ein57ein/modrin
7ec843439ffb19fb9fb68ca416f78770b5c72228
[ "BSD-3-Clause" ]
null
null
null
src/modrin_motor_plugins/epos2.cpp
ein57ein/modrin
7ec843439ffb19fb9fb68ca416f78770b5c72228
[ "BSD-3-Clause" ]
null
null
null
src/modrin_motor_plugins/epos2.cpp
ein57ein/modrin
7ec843439ffb19fb9fb68ca416f78770b5c72228
[ "BSD-3-Clause" ]
null
null
null
#include <pluginlib/class_list_macros.h> #include <modrin_motor_plugins/epos2.hpp> PLUGINLIB_EXPORT_CLASS(modrin_motor_plugins::Epos2, modrin::Motor) namespace modrin_motor_plugins { Epos2::Epos2():devhandle(0), lastEpos2ErrorCode(0) { ROS_DEBUG("created an instance of epos2-plugin for modrin"); } ...
34.543033
295
0.576556
ein57ein
e6ee1ddca6363514ed132fdf189b08050cd5b256
1,794
cpp
C++
src/nw4r/snd/snd_TaskThread.cpp
kiwi515/ogws-1
b08dab7b988befb03f0efe03305f38c8ab8bad1e
[ "MIT" ]
47
2020-08-27T00:27:31.000Z
2022-03-14T13:40:08.000Z
src/nw4r/snd/snd_TaskThread.cpp
kiwi515/OGWS
5903be49e333a6c871b6d28f15338839802ad853
[ "MIT" ]
1
2020-09-22T11:13:28.000Z
2020-09-22T11:13:32.000Z
src/nw4r/snd/snd_TaskThread.cpp
kiwi515/OGWS
5903be49e333a6c871b6d28f15338839802ad853
[ "MIT" ]
6
2020-08-27T20:06:25.000Z
2022-01-16T08:57:28.000Z
#pragma ipa file #include "snd_TaskThread.h" #include "snd_TaskManager.h" namespace nw4r { namespace snd { namespace detail { TaskThread::TaskThread() { mStackEnd = NULL; mIsExiting = false; mIsAlive = false; } ...
26.776119
106
0.421405
kiwi515
e6f237ff9f91f4470cdb7e401b1e5960c0564716
2,454
hh
C++
nipXray/include/NXChamberParameterisation.hh
maxwell-herrmann/geant4-simple-examples
0052d40fdc05baef05b4a6873c03d0d54885ad40
[ "BSD-2-Clause" ]
9
2015-04-27T11:54:19.000Z
2022-01-30T23:42:00.000Z
nipXray/include/NXChamberParameterisation.hh
maxwell-herrmann/geant4-simple-examples
0052d40fdc05baef05b4a6873c03d0d54885ad40
[ "BSD-2-Clause" ]
null
null
null
nipXray/include/NXChamberParameterisation.hh
maxwell-herrmann/geant4-simple-examples
0052d40fdc05baef05b4a6873c03d0d54885ad40
[ "BSD-2-Clause" ]
3
2019-12-18T21:11:57.000Z
2020-05-28T17:30:03.000Z
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #ifndef NXChamberParameterisation_H #define NXChamberParameterisation_H 1 #include "globals.hh" #include "G4VPVParameterisation.hh" #include "G4NistManager....
34.083333
91
0.696007
maxwell-herrmann
e6f5d5e5ce376f277c99c3f9d56ee7f31d62a478
33,983
hpp
C++
src/lang/dzm_prc.hpp
arogan-group/DZMLang
4ef827de34a07fb4f2dde817c297841c25382231
[ "Apache-2.0" ]
1
2016-09-23T14:29:44.000Z
2016-09-23T14:29:44.000Z
src/lang/dzm_prc.hpp
arogan-group/DZMLang
4ef827de34a07fb4f2dde817c297841c25382231
[ "Apache-2.0" ]
null
null
null
src/lang/dzm_prc.hpp
arogan-group/DZMLang
4ef827de34a07fb4f2dde817c297841c25382231
[ "Apache-2.0" ]
null
null
null
/* Copyright 2016 Dominik Madarasz 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 wr...
25.941221
153
0.568549
arogan-group
e6f69861901ec37b5cad0bb497aa89182bac1d70
290
cpp
C++
src/16000/16917.cpp17.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
8
2018-04-12T15:54:09.000Z
2020-06-05T07:41:15.000Z
src/16000/16917.cpp17.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
src/16000/16917.cpp17.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> const int INF=1e9; using namespace std; int main() { int a, b, c, x, y; cin >> a >> b >> c >> x >> y; int r1, r2, r3; r1 = min(x, y) * 2 * c + abs(x - y)*(x > y ? a : b); r2 = x*a + y*b; r3 = max(x, y) * 2 * c; cout << min({ r1, r2, r3 }); }
19.333333
53
0.482759
upple
e6fcff938d84109a6d190404bd506133a607e31f
3,685
cpp
C++
src/service_discovery.cpp
maxcong001/empty009
5fd7a4f2ef3f459ff869ffbd6fb6ac8e97725f64
[ "MIT" ]
null
null
null
src/service_discovery.cpp
maxcong001/empty009
5fd7a4f2ef3f459ff869ffbd6fb6ac8e97725f64
[ "MIT" ]
null
null
null
src/service_discovery.cpp
maxcong001/empty009
5fd7a4f2ef3f459ff869ffbd6fb6ac8e97725f64
[ "MIT" ]
null
null
null
#include "service_discovery.hpp" /*********************** Common ***********************/ /** * @brief Compare functions used for "sort" and "difference" * @param lhs: pointer reference to common data * @param rhs: pointer reference to common data * @return true if lhs < rhs, otherwise return false */ bool compare...
23.621795
119
0.674084
maxcong001
fc026dc716d1e177c74155115630b2ef0af242cf
1,403
tpp
C++
uppsrc/Core/src.tpp/Exc$en-us.tpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
2
2016-04-07T07:54:26.000Z
2020-04-14T12:37:34.000Z
uppsrc/Core/src.tpp/Exc$en-us.tpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
1
2021-04-06T21:57:39.000Z
2021-04-06T21:57:39.000Z
uppsrc/Core/src.tpp/Exc$en-us.tpp
dreamsxin/ultimatepp
41d295d999f9ff1339b34b43c99ce279b9b3991c
[ "BSD-2-Clause" ]
3
2017-08-26T12:06:05.000Z
2019-11-22T16:57:47.000Z
topic "Miscellaneous"; [2 $$0,0#00000000000000000000000000000000:Default] [i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class] [l288;2 $$2,0#27521748481378242620020725143825:desc] [0 $$3,0#96390100711032703541132217272105:end] [H6;0 $$4,0#05600065144404261032431302351956:begin] [i448;a25;kKO9;2 $$5,0#37...
43.84375
100
0.659301
dreamsxin
fc02c2816238aa40862f33daeab3d42036d3192e
1,966
hpp
C++
src/src/lib/geneial/core/population/builder/PermutationChromosomeFactory.hpp
geneial/geneial
5e525c32b7c1e1e88788644e448e9234c93b55e2
[ "MIT" ]
5
2015-08-25T15:40:09.000Z
2020-03-15T19:33:22.000Z
src/src/lib/geneial/core/population/builder/PermutationChromosomeFactory.hpp
geneial/geneial
5e525c32b7c1e1e88788644e448e9234c93b55e2
[ "MIT" ]
null
null
null
src/src/lib/geneial/core/population/builder/PermutationChromosomeFactory.hpp
geneial/geneial
5e525c32b7c1e1e88788644e448e9234c93b55e2
[ "MIT" ]
3
2019-01-24T13:14:51.000Z
2022-01-03T07:30:20.000Z
#pragma once #include <geneial/core/population/builder/PermutationChromosomeFactory.h> #include <geneial/utility/Random.h> #include <algorithm> #include <cassert> geneial_private_namespace(geneial) { geneial_private_namespace(population) { geneial_private_namespace(chromosome) { using ::geneial::population::chromoso...
31.206349
136
0.702442
geneial
fc058332b8302cf04188b381800a978a276c22d1
1,589
cpp
C++
algorithms/cpp/source/candy.cpp
straywarrior/leetcode-solutions
d94749daf7da895b83c6834cb3b1e2a0b8a52ccc
[ "MIT" ]
null
null
null
algorithms/cpp/source/candy.cpp
straywarrior/leetcode-solutions
d94749daf7da895b83c6834cb3b1e2a0b8a52ccc
[ "MIT" ]
null
null
null
algorithms/cpp/source/candy.cpp
straywarrior/leetcode-solutions
d94749daf7da895b83c6834cb3b1e2a0b8a52ccc
[ "MIT" ]
null
null
null
/* * candy.cpp * Copyright (C) 2018 StrayWarrior <i@straywarrior.com> * * Distributed under terms of the MIT license. */ #include "common.hpp" #define CATCH_CONFIG_MAIN #include "catch/catch.hpp" using namespace std; class Candy { public: int candy(vector<int> & ratings) { return this->solve_trivia...
27.877193
79
0.539962
straywarrior
fc07d725ea4a87c2f9c89ccb953edf35a0374002
5,676
cpp
C++
SalesforceSDK/src/core/SFGenericTask.cpp
blackberry/BlackBerry10SDK-for-SalesforceMobile
6d925c7efbd731e098d23deb05c1699b9fae5e9b
[ "CC-BY-3.0" ]
null
null
null
SalesforceSDK/src/core/SFGenericTask.cpp
blackberry/BlackBerry10SDK-for-SalesforceMobile
6d925c7efbd731e098d23deb05c1699b9fae5e9b
[ "CC-BY-3.0" ]
null
null
null
SalesforceSDK/src/core/SFGenericTask.cpp
blackberry/BlackBerry10SDK-for-SalesforceMobile
6d925c7efbd731e098d23deb05c1699b9fae5e9b
[ "CC-BY-3.0" ]
2
2015-03-19T10:51:48.000Z
2019-02-15T19:12:06.000Z
/* * Copyright 2013 BlackBerry Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
24.571429
127
0.708245
blackberry
fc093012ab6bb16f57f98c62993fecf93857f662
3,664
hxx
C++
src/private/httpparser.hxx
Targoman/qhttp
2351076d2e23c8820e6e94d064de689d99edb22f
[ "MIT" ]
2
2020-07-03T06:34:15.000Z
2020-07-03T19:19:09.000Z
src/private/httpparser.hxx
Targoman/QHttp
55df46aab918a1f923e8b1b79674cf9f82490bc5
[ "MIT" ]
null
null
null
src/private/httpparser.hxx
Targoman/QHttp
55df46aab918a1f923e8b1b79674cf9f82490bc5
[ "MIT" ]
null
null
null
/** @file httpparser.hxx * * @copyright (C) 2016 * @date 2016.05.26 * @version 1.0.0 * @author amir zamani <azadkuh@live.com> * */ #ifndef QHTTP_HTTPPARSER_HXX #define QHTTP_HTTPPARSER_HXX #include "qhttpbase.hpp" /////////////////////////////////////////////////////////////////////////////// namespace qhttp {...
30.533333
79
0.593341
Targoman
fc0b34e792d9a186d4cb20c5baf0ed4ef3de16f7
7,955
hh
C++
src/include/SchemaItem.hh
websurfer5/json-schema-enforcer
99211a602b1c8177d9f9e67cd7773015f74a4080
[ "Apache-2.0" ]
null
null
null
src/include/SchemaItem.hh
websurfer5/json-schema-enforcer
99211a602b1c8177d9f9e67cd7773015f74a4080
[ "Apache-2.0" ]
null
null
null
src/include/SchemaItem.hh
websurfer5/json-schema-enforcer
99211a602b1c8177d9f9e67cd7773015f74a4080
[ "Apache-2.0" ]
null
null
null
// SchemaItem.hh // // Copyright 2018 Jeffrey Kintscher <websurfer@surf2c.net> // // 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...
39.974874
120
0.565933
websurfer5
fc0d67ff3f419586734faf3876b2aa69795dcd28
567
cpp
C++
assignments/a1/archive/t.cpp
suryaavala/advancedcpp
84c1847bf42ff744f99b4c0f94b77cfa71ca00d8
[ "MIT" ]
null
null
null
assignments/a1/archive/t.cpp
suryaavala/advancedcpp
84c1847bf42ff744f99b4c0f94b77cfa71ca00d8
[ "MIT" ]
null
null
null
assignments/a1/archive/t.cpp
suryaavala/advancedcpp
84c1847bf42ff744f99b4c0f94b77cfa71ca00d8
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <iomanip> #include <string> #include <sstream> int main(int argc, char const *argv[]) { std::string c = "1.1"; int a = std::stoi(c); double b = std::stod(c); std::cout << "a = " << a <<", b = " << b << ", c = " << c << " a/b = " <<a/b<<'\n'; std::stringstream s...
21.807692
85
0.514991
suryaavala
fc12f1bb40762427e02bff17cf8ae9659a485933
4,207
cc
C++
src/api/render/texture.cc
izzyaxel/Loft
809b4e3df2c2b08092c6b3a94073f4509240b4f2
[ "BSD-3-Clause" ]
null
null
null
src/api/render/texture.cc
izzyaxel/Loft
809b4e3df2c2b08092c6b3a94073f4509240b4f2
[ "BSD-3-Clause" ]
null
null
null
src/api/render/texture.cc
izzyaxel/Loft
809b4e3df2c2b08092c6b3a94073f4509240b4f2
[ "BSD-3-Clause" ]
null
null
null
#include "texture.hh" #include <glad/glad.h> Texture::Texture(uint32_t width, uint32_t height, ColorFormat colorFormat, InterpMode mode, bool sRGB) { this->fmt = colorFormat; this->width = width; this->height = height; glCreateTextures(GL_TEXTURE_2D, 1, &this->handle); int32_t f = 0; if(colorFormat == ColorForm...
23.634831
117
0.697884
izzyaxel
fc18060403c801ab5107db674f98a7d6ab7442d9
2,450
hh
C++
src/gui_component.hh
lighttransport/nnview
4cba0957a5e9354c792dac12196cc64b0f750c43
[ "MIT" ]
74
2019-07-11T17:15:40.000Z
2022-02-20T18:02:17.000Z
src/gui_component.hh
lighttransport/nnview
4cba0957a5e9354c792dac12196cc64b0f750c43
[ "MIT" ]
2
2019-07-24T11:55:52.000Z
2019-07-24T11:59:23.000Z
src/gui_component.hh
lighttransport/nnview
4cba0957a5e9354c792dac12196cc64b0f750c43
[ "MIT" ]
10
2019-07-27T23:34:24.000Z
2021-12-29T05:45:43.000Z
#ifndef NNVIEW_GUI_COMPONENT_HH_ #define NNVIEW_GUI_COMPONENT_HH_ #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Weverything" #endif #include "imgui_node_editor.h" #ifdef __clang__ #pragma clang diagnostic pop #endif #include "datatypes.h" #include <string> #include <vector> #inc...
20.247934
80
0.68898
lighttransport
fc189b0e59158000429902dc22d56f8eff5d771f
2,647
hh
C++
kernel/host/host-common/util/FDReceiver.hh
ManyThreads/mythos
723a4b11e454a0c28e096755140c5e0eecf6a211
[ "MIT" ]
12
2016-10-06T14:02:17.000Z
2021-09-12T06:14:30.000Z
kernel/host/host-common/util/FDReceiver.hh
ManyThreads/mythos
723a4b11e454a0c28e096755140c5e0eecf6a211
[ "MIT" ]
110
2017-06-22T20:10:17.000Z
2022-01-18T12:58:40.000Z
kernel/host/host-common/util/FDReceiver.hh
ManyThreads/mythos
723a4b11e454a0c28e096755140c5e0eecf6a211
[ "MIT" ]
6
2016-12-09T08:30:08.000Z
2021-12-10T19:05:04.000Z
/* -*- mode:C++; indent-tabs-mode:nil; -*- */ /* MIT License -- MyThOS: The Many-Threads Operating System * * 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, includi...
24.284404
88
0.68606
ManyThreads
fc1e1dedb28f9af089ad41fe9aa441064b3847a0
390
cpp
C++
src/top.chenqwwq/acwing/content/_52/_1.cpp
chenqwwq/_leetcode
a8055c53c9a68cedb1b57a56f98e83709448e4cb
[ "Apache-2.0" ]
null
null
null
src/top.chenqwwq/acwing/content/_52/_1.cpp
chenqwwq/_leetcode
a8055c53c9a68cedb1b57a56f98e83709448e4cb
[ "Apache-2.0" ]
null
null
null
src/top.chenqwwq/acwing/content/_52/_1.cpp
chenqwwq/_leetcode
a8055c53c9a68cedb1b57a56f98e83709448e4cb
[ "Apache-2.0" ]
null
null
null
// // Created by chenqwwq on 2022/5/21. // #include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int num; cin >> num; int ans = 0, i = 1; while (num) { int cost = (i * (i + 1)) / 2; if (num < cost) break; num -= cost; ...
15.6
37
0.471795
chenqwwq
fc2206d293c8a442af3c660c9af9e2f2af7492de
282
cpp
C++
src/construction/Constraints.cpp
ShnitzelKiller/Reverse-Engineering-Carpentry
585b5ff053c7e3bf286b663a584bc83687691bd6
[ "MIT" ]
3
2021-09-08T07:28:13.000Z
2022-03-02T21:12:40.000Z
src/construction/Constraints.cpp
ShnitzelKiller/Reverse-Engineering-Carpentry
585b5ff053c7e3bf286b663a584bc83687691bd6
[ "MIT" ]
1
2021-09-21T14:40:55.000Z
2021-09-26T01:19:38.000Z
src/construction/Constraints.cpp
ShnitzelKiller/Reverse-Engineering-Carpentry
585b5ff053c7e3bf286b663a584bc83687691bd6
[ "MIT" ]
null
null
null
// // Created by James Noeckel on 1/16/21. // #include "Constraints.h" Edge2d ConnectionConstraint::getGuide() const { Eigen::Vector2d dir = (edge.second - edge.first).normalized(); return {edge.first - dir * startGuideExtention, edge.second + dir * endGuideExtension}; }
25.636364
91
0.702128
ShnitzelKiller
fc23b7dac87be87ec34d96a2f549355e6b66018c
3,965
hpp
C++
src/network.hpp
packetgenie/PacketGenie
cf09d39f53b9e6119c0ebe77134a032a082c81fd
[ "Apache-2.0" ]
1
2015-08-20T12:31:02.000Z
2015-08-20T12:31:02.000Z
src/network.hpp
packetgenie/PacketGenie
cf09d39f53b9e6119c0ebe77134a032a082c81fd
[ "Apache-2.0" ]
null
null
null
src/network.hpp
packetgenie/PacketGenie
cf09d39f53b9e6119c0ebe77134a032a082c81fd
[ "Apache-2.0" ]
2
2015-08-19T14:47:32.000Z
2019-08-30T15:58:07.000Z
// FILE: src/network.hpp Date Modified: March 17, 2015 // PacketGenie // Copyright 2014 The Regents of the University of Michigan // Dong-Hyeon Park, Ritesh Parikh, Valeria Bertacco // // PacketGenie is licensed under the Apache License, Version 2.0 // (the "License"); you may not use this file except in compliance /...
26.790541
76
0.669357
packetgenie
fc27a28e41f64ee3f80965bb901ed85a1e9059ce
3,560
cpp
C++
src/Models/NeuronNetwork.cpp
SpiritSeeker/SpikeSim
c0ce896df15ed4bd46deb1aa61a3df637c0b6078
[ "Apache-2.0" ]
null
null
null
src/Models/NeuronNetwork.cpp
SpiritSeeker/SpikeSim
c0ce896df15ed4bd46deb1aa61a3df637c0b6078
[ "Apache-2.0" ]
null
null
null
src/Models/NeuronNetwork.cpp
SpiritSeeker/SpikeSim
c0ce896df15ed4bd46deb1aa61a3df637c0b6078
[ "Apache-2.0" ]
null
null
null
#include "sspch.h" #include "NeuronNetwork.h" namespace SpikeSim { NeuronNetwork::NeuronNetwork() {} void NeuronNetwork::OnUpdate(const std::vector<std::vector<double>>& inputCurrents, uint32_t nIter) { uint32_t inputCounter = 0; for (int i = 0; i < m_Neurons.size(); i++) { if (m_InputNeuro...
29.666667
120
0.613764
SpiritSeeker
fc2be6da9d115404b750a37739abeeefef952fa1
1,658
hh
C++
src/thirdparty/acg_localizer/src/math/SFMT_src/SFMT-params607.hh
rajvishah/ms-sfm
0de1553c471c416ce5ca3d19c65abe36d8e17a07
[ "MIT" ]
1,102
2017-02-02T15:39:57.000Z
2022-03-23T09:43:29.000Z
src/thirdparty/acg_localizer/src/math/SFMT_src/SFMT-params607.hh
rajvishah/ms-sfm
0de1553c471c416ce5ca3d19c65abe36d8e17a07
[ "MIT" ]
339
2017-02-17T09:55:38.000Z
2022-03-29T11:44:01.000Z
src/thirdparty/acg_localizer/src/math/SFMT_src/SFMT-params607.hh
rajvishah/ms-sfm
0de1553c471c416ce5ca3d19c65abe36d8e17a07
[ "MIT" ]
331
2017-02-02T15:34:42.000Z
2022-03-23T02:42:24.000Z
#ifndef SFMT_PARAMS607_H #define SFMT_PARAMS607_H #define POS1 2 #define SL1 15 #define SL2 3 #define SR1 13 #define SR2 3 #define MSK1 0xfdff37ffU #define MSK2 0xef7f3f7dU #define MSK3 0xff777b7dU #define MSK4 0x7ff7fb2fU #define PARITY1 0x00000001U #define PARITY2 0x00000000U #define PARITY3 0x00000000U #define PARI...
35.276596
72
0.693607
rajvishah
fc2c0bb1e0cfe66fdcd966503a6044455b2f8b70
368
cpp
C++
ch03/081.cpp
mallius/CppPrimer
0285fabe5934492dfed0a9cf67ba5650982a5f76
[ "MIT" ]
null
null
null
ch03/081.cpp
mallius/CppPrimer
0285fabe5934492dfed0a9cf67ba5650982a5f76
[ "MIT" ]
null
null
null
ch03/081.cpp
mallius/CppPrimer
0285fabe5934492dfed0a9cf67ba5650982a5f76
[ "MIT" ]
1
2022-01-25T15:51:34.000Z
2022-01-25T15:51:34.000Z
#include <iostream> #include <vector> #include <string> using std::vector; using std::string; using std::cin; int main(void) { string word; vector<string> text; int i = 0; while(cin >> word) { text.push_back(word); if(++i > 2) break; } for(vector<string>::size_type ix = 0; ix != text.size(); ++ix) st...
14.72
63
0.61413
mallius
fc2fb291cd91df0b25212bfff4d27b4db24e9531
2,639
cpp
C++
HaloTAS/MCCTAS/speedometer.cpp
s3anyboy/HaloTAS
9584786f19e1475399298fda2d5783d47623cccd
[ "MIT" ]
6
2019-09-10T19:47:04.000Z
2020-11-26T08:32:36.000Z
HaloTAS/MCCTAS/speedometer.cpp
s3anyboy/HaloTAS
9584786f19e1475399298fda2d5783d47623cccd
[ "MIT" ]
13
2018-11-24T09:37:49.000Z
2021-10-22T02:29:11.000Z
HaloTAS/MCCTAS/speedometer.cpp
s3anyboy/HaloTAS
9584786f19e1475399298fda2d5783d47623cccd
[ "MIT" ]
3
2020-07-28T09:19:14.000Z
2020-09-02T04:48:49.000Z
#include "pch.h" #include "speedometer.h" void speedometer::clear() { mDataPoints.clear(); mSumTotalDistanceXYTravelled = 0.0f; mSumTotalDistanceXYZTravelled = 0.0f; mSumTotalDistanceCount = 0; } float vec3_xy_distance(glm::vec3 a, glm::vec3 b) { return glm::distance( glm::vec2(a.x, a.y), glm::vec2(b.x, b.y)...
25.872549
80
0.71618
s3anyboy
fc3195ad06f02ab26d0c17c74229563b76f76652
2,208
cpp
C++
typo-poi/source/UTF8.cpp
mogemimi/daily-snippets
d9da3db8c62538e4a37f0f6b69c5d46d55c4225f
[ "MIT" ]
14
2017-06-16T22:52:38.000Z
2022-02-14T04:11:06.000Z
typo-poi/source/UTF8.cpp
mogemimi/daily-snippets
d9da3db8c62538e4a37f0f6b69c5d46d55c4225f
[ "MIT" ]
2
2016-03-13T14:50:04.000Z
2019-04-01T09:53:17.000Z
typo-poi/source/UTF8.cpp
mogemimi/daily-snippets
d9da3db8c62538e4a37f0f6b69c5d46d55c4225f
[ "MIT" ]
2
2016-03-13T14:05:17.000Z
2018-09-18T01:28:42.000Z
// Copyright (c) 2015 mogemimi. Distributed under the MIT license. #include "utf8.h" #include <cassert> #include <utility> #define USE_LLVM_CONVERTUTF 1 #if defined(USE_LLVM_CONVERTUTF) #include "thirdparty/ConvertUTF.h" #include <vector> #else #include <codecvt> #include <locale> #endif namespace somera { std::u32...
25.37931
78
0.664402
mogemimi
fc32a97b374aebf8f4b5f922eb78cb6b7e4e0e15
1,913
cpp
C++
Source/DScene_Main2.cpp
XDApp/DawnFramework
4963be2c4ead995a3b02fb0c683c3f77662b9916
[ "MIT" ]
1
2015-06-21T08:04:36.000Z
2015-06-21T08:04:36.000Z
Source/DScene_Main2.cpp
XDApp/DawnFramework
4963be2c4ead995a3b02fb0c683c3f77662b9916
[ "MIT" ]
null
null
null
Source/DScene_Main2.cpp
XDApp/DawnFramework
4963be2c4ead995a3b02fb0c683c3f77662b9916
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "DScene_Main2.h" DScene_Main2::DScene_Main2() { } DScene_Main2::~DScene_Main2() { } void DScene_Main2::Update() { DScene::Update(); } void DScene_Main2::Render() { DScene::Render(); glUseProgram(Program->GetProgram()); glEnableVertexAttribArray(vertexPosition_modelspaceID); glBin...
22.505882
103
0.736017
XDApp
fc38e91cc3f25ea8e1d3687593f3481e149c433c
1,507
cxx
C++
src/lib/SceMi/BlueNoC/Link.cxx
GaloisInc/BESSPIN-BSC
21a0a8cba9e643ef5afcb87eac164cc33ea83e94
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2022-02-11T01:52:42.000Z
2022-02-11T01:52:42.000Z
src/lib/SceMi/BlueNoC/Link.cxx
GaloisInc/BESSPIN-BSC
21a0a8cba9e643ef5afcb87eac164cc33ea83e94
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
src/lib/SceMi/BlueNoC/Link.cxx
GaloisInc/BESSPIN-BSC
21a0a8cba9e643ef5afcb87eac164cc33ea83e94
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2009 Bluespec, Inc. All rights reserved. */ #include <sys/ioctl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <sys/mman.h> #include "sized_types.h" #include "Link.h" Link::Link(const char *logEnvir) : _logTraffic(f...
24.306452
81
0.627074
GaloisInc
fc39f7906ddf2b699917a2e9bc4cf8b85e38beab
7,098
hpp
C++
vendor/bela/include/bela/__format/args.hpp
dandycheung/baulk
f0ea046bf19e494510ae61cc4633fc38877c53e4
[ "MIT" ]
null
null
null
vendor/bela/include/bela/__format/args.hpp
dandycheung/baulk
f0ea046bf19e494510ae61cc4633fc38877c53e4
[ "MIT" ]
1
2022-01-09T13:54:11.000Z
2022-01-09T13:54:11.000Z
vendor/bela/include/bela/__format/args.hpp
dandycheung/baulk
f0ea046bf19e494510ae61cc4633fc38877c53e4
[ "MIT" ]
null
null
null
/// #ifndef BELA__FORMAT_ARGS_HPP #define BELA__FORMAT_ARGS_HPP #pragma once #include <cstdint> #include <cstdlib> #include <cstddef> #include <cstring> #include <string> #include <string_view> #include <bela/types.hpp> namespace bela::format_internal { enum class __types : wchar_t { __boolean, __character, __fl...
34.456311
117
0.67681
dandycheung
fc3dbcd1b30877ed8bea9d755e097cc036f440b9
1,103
hpp
C++
src/prsClass.hpp
GeoKon/GKE-L1
1ae69b3fdcdf0bb20df1a5afc011ad2d682e29d2
[ "MIT" ]
3
2019-01-09T04:30:41.000Z
2019-08-17T03:08:48.000Z
src/prsClass.hpp
GeoKon/GKE-L1
1ae69b3fdcdf0bb20df1a5afc011ad2d682e29d2
[ "MIT" ]
null
null
null
src/prsClass.hpp
GeoKon/GKE-L1
1ae69b3fdcdf0bb20df1a5afc011ad2d682e29d2
[ "MIT" ]
null
null
null
#pragma once #define DQUOTE '"' #define LCURL pr.moveAfter( '{' ) #define RCURL pr.moveAfter( '}' ) #define COLON pr.moveAfter( ':' ) #define COMMA pr.moveAfter( ',' ) #define COPYS pr.copyString() #define COPYD pr.copyDigits() #define EXPECT(A) pr.expect(A) #define FIND(A) pr.find(A) #define INIT(A) pr.ini...
23.978261
78
0.563917
GeoKon
fc3e0e20de7584ae0fc60495db6d357ca298add9
39,391
cpp
C++
nfc/src/DOOM/doomclassic/doom/p_enemy.cpp
1337programming/leviathan
ca9a31b45c25fd23f361d67136ae5ac6b98d2628
[ "Apache-2.0" ]
1
2018-11-07T22:44:23.000Z
2018-11-07T22:44:23.000Z
ekronclassic/ekron/p_enemy.cpp
vic3t3chn0/OpenKrown
201c8fb6895cb0439e39c984d2fbc2c2eaf185b4
[ "MIT" ]
null
null
null
ekronclassic/ekron/p_enemy.cpp
vic3t3chn0/OpenKrown
201c8fb6895cb0439e39c984d2fbc2c2eaf185b4
[ "MIT" ]
null
null
null
/* =========================================================================== Doom 3 BFG Edition GPL Source Code Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code"). Doom 3 BFG Edition Source Code is free...
19.413997
366
0.595796
1337programming
fc43ea46a0892b483d460302adfe7819245a1228
8,623
cc
C++
ui/ozone/platform/wayland/wayland_pointer_unittest.cc
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2017-02-01T08:49:08.000Z
2018-02-03T06:14:48.000Z
ui/ozone/platform/wayland/wayland_pointer_unittest.cc
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
1
2016-07-11T15:19:20.000Z
2017-04-02T20:38:55.000Z
ui/ozone/platform/wayland/wayland_pointer_unittest.cc
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
// Copyright 2016 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 <linux/input.h> #include <wayland-server.h> #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" #inclu...
37.008584
80
0.708222
Wzzzx
fc46f81abc7ae8be166f4cabead98178c3e38f0a
7,157
cpp
C++
source/NanairoCore/Color/spectral_transport.cpp
byzin/Nanairo
23fb6deeec73509c538a9c21009e12be63e8d0e4
[ "MIT" ]
30
2015-09-06T03:14:29.000Z
2021-06-18T11:00:19.000Z
source/NanairoCore/Color/spectral_transport.cpp
byzin/Nanairo
23fb6deeec73509c538a9c21009e12be63e8d0e4
[ "MIT" ]
31
2016-01-14T14:50:34.000Z
2018-06-25T13:21:48.000Z
source/NanairoCore/Color/spectral_transport.cpp
byzin/Nanairo
23fb6deeec73509c538a9c21009e12be63e8d0e4
[ "MIT" ]
6
2017-04-09T13:07:47.000Z
2021-05-29T21:17:34.000Z
/*! \file spectral_transport.cpp \author Sho Ikeda Copyright (c) 2015-2018 Sho Ikeda This software is released under the MIT License. http://opensource.org/licenses/mit-license.php */ #include "spectral_transport.hpp" // Standard C++ library #include <cmath> #include <vector> // Zisc #include "zisc/arith_...
34.244019
98
0.623585
byzin
fc491731ed86969ef7c98516499272f89a2775e6
751
cpp
C++
LeetCode/Check If It Is a Straight Line.cpp
Rupali409/CPP-Questions-and-Solutions
a42664302f18b7d99aac2501bcf956950e3cc61a
[ "MIT" ]
42
2021-09-26T18:02:52.000Z
2022-03-15T01:52:15.000Z
LeetCode/Check If It Is a Straight Line.cpp
Rupali409/CPP-Questions-and-Solutions
a42664302f18b7d99aac2501bcf956950e3cc61a
[ "MIT" ]
404
2021-09-24T19:55:10.000Z
2021-11-03T05:47:47.000Z
LeetCode/Check If It Is a Straight Line.cpp
Rupali409/CPP-Questions-and-Solutions
a42664302f18b7d99aac2501bcf956950e3cc61a
[ "MIT" ]
140
2021-09-22T20:50:04.000Z
2022-01-22T16:59:09.000Z
//1232. Check If It Is a Straight Line //https://leetcode.com/problems/check-if-it-is-a-straight-line/ class Solution { public: bool checkStraightLine(vector<vector<int>>& coordinates) { //if points are two then return true if(coordinates.size()==2) return true; else{ int ...
34.136364
107
0.54727
Rupali409
fc4fac1d8251d9a89d4ddce893b2d888961c4137
3,256
hh
C++
extras/android/cpp/jni/type_info.hh
mzdun/dashcam-gps
7611a08792cac98c4fd1260111e3fc0e632e982b
[ "MIT" ]
6
2020-02-14T00:46:16.000Z
2021-04-07T09:29:06.000Z
extras/android/cpp/jni/type_info.hh
mzdun/dashcam-gps
7611a08792cac98c4fd1260111e3fc0e632e982b
[ "MIT" ]
1
2020-06-09T10:55:43.000Z
2020-06-18T11:39:59.000Z
extras/android/cpp/jni/type_info.hh
mzdun/dashcam-gps
7611a08792cac98c4fd1260111e3fc0e632e982b
[ "MIT" ]
2
2020-06-17T13:20:22.000Z
2021-04-11T10:18:03.000Z
#pragma once #include <jni/fixed_string.hh> #include <jni/primitive.hh> #define DEFINE_PACKAGE(NAME) \ struct PACKAGE { \ static constexpr auto package_name() noexcept { \ return jni::fixed_string{NAME}; \ } ...
35.391304
69
0.454853
mzdun
fc50a55cc736c6648c2783e8986f3273f30d7e85
1,658
cpp
C++
third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
1
2020-09-15T08:43:34.000Z
2020-09-15T08:43:34.000Z
third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2014 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 "modules/battery/BatteryDispatcher.h" #include "platform/mojo/MojoHelper.h" #include "public/platform/Platform.h" #include "public/platform/Serv...
25.121212
129
0.750905
maidiHaitai
fc5331a99186004a962c248eca1c15102f755776
1,230
cpp
C++
tests/djvGLTest/OffscreenBufferFuncTest.cpp
pafri/DJV
9db15673b6b03ad3743f57119118261b1fbe8810
[ "BSD-3-Clause" ]
null
null
null
tests/djvGLTest/OffscreenBufferFuncTest.cpp
pafri/DJV
9db15673b6b03ad3743f57119118261b1fbe8810
[ "BSD-3-Clause" ]
null
null
null
tests/djvGLTest/OffscreenBufferFuncTest.cpp
pafri/DJV
9db15673b6b03ad3743f57119118261b1fbe8810
[ "BSD-3-Clause" ]
null
null
null
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2020 Darby Johnston // All rights reserved. #include <djvGLTest/OffscreenBufferFuncTest.h> #include <djvGL/OffscreenBufferFunc.h> #include <sstream> using namespace djv::Core; using namespace djv::GL; namespace djv { namespace GLTest { Offsc...
25.102041
76
0.541463
pafri
fc54d632396443718dd3c4719540b37c041fe3b3
80,648
cpp
C++
unit_tests/undirected/unit_tests_gmw_skeleton_generator.cpp
ShoYamanishi/wailea
e6263ed238ae32233a58d169868a4a94bf03a30b
[ "MIT" ]
4
2019-05-15T10:07:47.000Z
2021-09-02T18:38:35.000Z
unit_tests/undirected/unit_tests_gmw_skeleton_generator.cpp
ShoYamanishi/wailea
e6263ed238ae32233a58d169868a4a94bf03a30b
[ "MIT" ]
1
2021-06-18T17:31:13.000Z
2021-06-18T17:31:13.000Z
unit_tests/undirected/unit_tests_gmw_skeleton_generator.cpp
ShoYamanishi/wailea
e6263ed238ae32233a58d169868a4a94bf03a30b
[ "MIT" ]
1
2021-08-10T21:13:51.000Z
2021-08-10T21:13:51.000Z
#include "gtest/gtest.h" #include "undirected/gmw_skeleton_generator.hpp" #include "undirected/tree_path_finder.hpp" #include "undirected/tree_splitter.hpp" namespace Wailea { namespace Undirected { class GMWSkeletonTests : public ::testing::Test { protected: GMWSkeletonTests(){;}; virtual ~GMWSkeletonT...
35.748227
87
0.669924
ShoYamanishi
fc54ebae2d6bc709d29b0f08c882c3a4bb9d7360
9,852
cxx
C++
bpkg/manifest-utility.cxx
build2/bpkg
bd939839b44d90d027517e447537dd52539269ff
[ "MIT" ]
19
2018-05-30T12:01:25.000Z
2022-01-29T21:37:23.000Z
bpkg/manifest-utility.cxx
build2/bpkg
bd939839b44d90d027517e447537dd52539269ff
[ "MIT" ]
2
2019-03-18T22:31:45.000Z
2020-07-28T06:44:03.000Z
bpkg/manifest-utility.cxx
build2/bpkg
bd939839b44d90d027517e447537dd52539269ff
[ "MIT" ]
1
2019-02-04T02:58:14.000Z
2019-02-04T02:58:14.000Z
// file : bpkg/manifest-utility.cxx -*- C++ -*- // license : MIT; see accompanying LICENSE file #include <bpkg/manifest-utility.hxx> #include <cstring> // strcspn() #include <libbutl/b.hxx> #include <libbutl/sha256.hxx> #include <bpkg/package.hxx> // wildcard_version #include <bpkg/diagnostics.hxx> #i...
27.290859
79
0.554101
build2
fc5808b152bd73ca1016d2c5a73d94e35028f83f
1,657
cpp
C++
compiler/locomotiv/src/Node/Push.cpp
bogus-sudo/ONE-1
7052a817eff661ec2854ed2e7ee0de5e8ba82b55
[ "Apache-2.0" ]
1
2020-05-22T13:53:40.000Z
2020-05-22T13:53:40.000Z
compiler/locomotiv/src/Node/Push.cpp
bogus-sudo/ONE-1
7052a817eff661ec2854ed2e7ee0de5e8ba82b55
[ "Apache-2.0" ]
null
null
null
compiler/locomotiv/src/Node/Push.cpp
bogus-sudo/ONE-1
7052a817eff661ec2854ed2e7ee0de5e8ba82b55
[ "Apache-2.0" ]
1
2021-07-22T11:02:43.000Z
2021-07-22T11:02:43.000Z
/* * Copyright (c) 2019 Samsung Electronics Co., Ltd. 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...
26.725806
99
0.69825
bogus-sudo
fc5c99772fa986d19ee6333bab7a0bebb40884cd
208
cpp
C++
questions/47971176/main.cpp
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
302
2017-03-04T00:05:23.000Z
2022-03-28T22:51:29.000Z
questions/47971176/main.cpp
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
30
2017-12-02T19:26:43.000Z
2022-03-28T07:40:36.000Z
questions/47971176/main.cpp
sesu089/stackoverflow
6fae69be6fa74fba9d554e6b5f387e5d3c1aad73
[ "MIT" ]
388
2017-07-04T16:53:12.000Z
2022-03-18T22:20:19.000Z
#include "widget.h" #include "worker.h" #include <QApplication> #include <QPushButton> int main(int argc, char *argv[]) { QApplication a(argc, argv); Widget widget; widget.show(); return a.exec(); }
17.333333
34
0.677885
sesu089
fc5f2b37a9c3575f80b8eacb5f133a2c5277dccc
2,040
cpp
C++
engine/Engine.UI/src/ui/adapter/RecyclerView.cpp
ZieIony/Ghurund
be84166ef0aba5556910685b7a3b754b823da556
[ "MIT" ]
66
2018-12-16T21:03:36.000Z
2022-03-26T12:23:57.000Z
engine/Engine.UI/src/ui/adapter/RecyclerView.cpp
ZieIony/Ghurund
be84166ef0aba5556910685b7a3b754b823da556
[ "MIT" ]
57
2018-04-24T20:53:01.000Z
2021-02-21T12:14:20.000Z
engine/Engine.UI/src/ui/adapter/RecyclerView.cpp
ZieIony/Ghurund
be84166ef0aba5556910685b7a3b754b823da556
[ "MIT" ]
7
2019-07-16T08:25:25.000Z
2022-03-21T08:29:46.000Z
#include "ghuipch.h" #include "RecyclerView.h" #include "core/reflection/TypeBuilder.h" #include "ui/Canvas.h" namespace Ghurund::UI { const Ghurund::Core::Type& RecyclerView::GET_TYPE() { static const auto CONSTRUCTOR = Constructor<RecyclerView>(); static const Ghurund::Core::Type TYPE = TypeBuil...
32.380952
117
0.613235
ZieIony
fc61559c4a4edb821cb64c7d5840c59af574094c
940
cpp
C++
Stp/Base/Thread/ThreadChecker.cpp
markazmierczak/Polonite
240f099cafc5c38dc1ae1cc6fc5773e13f65e9de
[ "MIT" ]
1
2019-07-11T12:47:52.000Z
2019-07-11T12:47:52.000Z
Stp/Base/Thread/ThreadChecker.cpp
Polonite/Polonite
240f099cafc5c38dc1ae1cc6fc5773e13f65e9de
[ "MIT" ]
null
null
null
Stp/Base/Thread/ThreadChecker.cpp
Polonite/Polonite
240f099cafc5c38dc1ae1cc6fc5773e13f65e9de
[ "MIT" ]
1
2019-07-11T12:47:53.000Z
2019-07-11T12:47:53.000Z
// Copyright 2017 Polonite Authors. All rights reserved. // Copyright (c) 2011 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 "Base/Thread/ThreadChecker.h" #if ASSERT_IS_ON namespace stp { ThreadChecker::Thr...
24.736842
73
0.760638
markazmierczak
fc63b4bb05645fc32710d3a6a4180d059611c680
174
cxx
C++
StRoot/RTS/src/DAQ_SSD/ssdReader.cxx
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
2
2018-12-24T19:37:00.000Z
2022-02-28T06:57:20.000Z
StRoot/RTS/src/DAQ_SSD/ssdReader.cxx
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
null
null
null
StRoot/RTS/src/DAQ_SSD/ssdReader.cxx
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
null
null
null
#include <sys/types.h> #include "RTS/src/DAQ_READER/daqReader.h" #include <DAQ_READER/daq_dta.h> #include <DAQ_READER/daq_det.h> #include "ssdReader.h" DAQ_LEGACY_DEF(ssd);
21.75
41
0.764368
xiaohaijin
fc6a4314f477dffa086ae1c52382c4b19b12fe46
1,774
cpp
C++
applications/about/main.cpp
innerout/skift
e44a77adafa99676fa1a011d94b7a44eefbce18c
[ "MIT" ]
2
2021-08-14T16:03:48.000Z
2021-11-09T10:29:36.000Z
applications/about/main.cpp
optimisticside/skift
3d59b222d686c83e370e8075506d129f8ff1fdac
[ "MIT" ]
null
null
null
applications/about/main.cpp
optimisticside/skift
3d59b222d686c83e370e8075506d129f8ff1fdac
[ "MIT" ]
2
2020-10-13T14:25:30.000Z
2020-10-13T14:39:40.000Z
#include <libsystem/BuildInfo.h> #include <libwidget/Application.h> #include <libwidget/Markup.h> #include <libwidget/Widgets.h> #include <libwidget/widgets/TextField.h> static auto logo_based_on_color_scheme() { auto path = theme_is_dark() ? "/Applications/about/logo-white.png" : "...
30.067797
106
0.614994
innerout
fc6ff2dbce458572e2e499af449318b67ccb40a3
2,115
cpp
C++
modules/libavparser/libavparser.cpp
Colinwang531/av_converged_communication_system_architecture
d8d8a2ff72b5342fd0c3426978884c0e9c43dde8
[ "MIT" ]
2
2021-12-10T07:45:30.000Z
2021-12-17T01:42:36.000Z
modules/libavparser/libavparser.cpp
Colinwang531/av_converged_communication_system_architecture
d8d8a2ff72b5342fd0c3426978884c0e9c43dde8
[ "MIT" ]
null
null
null
modules/libavparser/libavparser.cpp
Colinwang531/av_converged_communication_system_architecture
d8d8a2ff72b5342fd0c3426978884c0e9c43dde8
[ "MIT" ]
null
null
null
#include "boost/bind/bind.hpp" using namespace boost::placeholders; #include "boost/make_shared.hpp" #include "error_code.h" #include "map/unordered_map.h" #include "buffer/buffer_parser.h" #include "ps/ps_parser.h" #include "rtp/rtp_es_parser.h" #include "libavparser.h" using namespace module::av::stream; using AVPar...
21.15
74
0.705437
Colinwang531
fc713583a57526add1657960aa4e6191346c46ac
753
hpp
C++
cpp_kernels/global/mean_std_dev_u8.hpp
HipaccVX/HipaccVX
0d469748df11c95f916b5a70f0006878f8550e3c
[ "MIT" ]
1
2021-06-08T08:58:54.000Z
2021-06-08T08:58:54.000Z
cpp_kernels/global/mean_std_dev_u8.hpp
HipaccVX/HipaccVX
0d469748df11c95f916b5a70f0006878f8550e3c
[ "MIT" ]
1
2021-11-13T14:55:55.000Z
2021-11-13T14:55:55.000Z
cpp_kernels/global/mean_std_dev_u8.hpp
HipaccVX/HipaccVX
0d469748df11c95f916b5a70f0006878f8550e3c
[ "MIT" ]
null
null
null
void Mean_Std_Dev_u8(float *out_mean, float *out_stddev, unsigned char *in_data, const unsigned int in_width, const unsigned int in_height) { float fmean = 0.0f, fstddev = 0.0f; double sum = 0.0, sum_diff_sqrs = 0.0; for (long long y = 0; y < in_height; y++) { for (long long x = 0; x < in_wi...
26.892857
103
0.609562
HipaccVX
fc720d7eca2c7568df0133c28d7a5ef10fff7931
3,317
cpp
C++
Code/GeometryCommand/GeoCommandCreateFace.cpp
baojunli/FastCAE
a3f99f6402da564df87fcef30674ce5f44379962
[ "BSD-3-Clause" ]
2
2020-02-21T01:04:35.000Z
2020-02-21T03:35:37.000Z
Code/GeometryCommand/GeoCommandCreateFace.cpp
Sunqia/FastCAE
cbc023fe07b6e306ceefae8b8bd7c12bc1562acb
[ "BSD-3-Clause" ]
1
2020-03-06T04:49:42.000Z
2020-03-06T04:49:42.000Z
Code/GeometryCommand/GeoCommandCreateFace.cpp
Sunqia/FastCAE
cbc023fe07b6e306ceefae8b8bd7c12bc1562acb
[ "BSD-3-Clause" ]
null
null
null
#include "GeoCommandCreateFace.h" #include "geometry/geometrySet.h" #include "geometry/geometryData.h" #include <BRepFilletAPI_MakeChamfer.hxx> #include <TopExp.hxx> #include <TopoDS.hxx> #include <TopoDS_TShape.hxx> #include <TopoDS_Shape.hxx> #include <TopoDS_Wire.hxx> #include <TopoDS_Edge.hxx> #include <T...
23.863309
84
0.678324
baojunli
fc736d998561fbbaa43c300e8dea6813dda2f2c2
2,812
cpp
C++
SOLVER/src/preloop/utilities/PreloopFFTW.cpp
kuangdai/AxiSEM3D
fd9da14e9107783e3b07b936c67af2412146e099
[ "MIT" ]
17
2016-12-16T03:13:57.000Z
2021-12-15T01:56:45.000Z
SOLVER/src/preloop/utilities/PreloopFFTW.cpp
syzeng-duduxi/AxiSEM3D
fd9da14e9107783e3b07b936c67af2412146e099
[ "MIT" ]
6
2018-01-15T17:17:20.000Z
2020-03-18T09:53:58.000Z
SOLVER/src/preloop/utilities/PreloopFFTW.cpp
syzeng-duduxi/AxiSEM3D
fd9da14e9107783e3b07b936c67af2412146e099
[ "MIT" ]
19
2016-12-28T16:55:00.000Z
2021-06-23T01:02:16.000Z
// PreloopFFTW.cpp // created by Kuangdai on 21-Sep-2016 // perform FFT using fftw #include "PreloopFFTW.h" int PreloopFFTW::sNmax = 0; std::vector<fftw_plan> PreloopFFTW::sR2CPlans; std::vector<fftw_plan> PreloopFFTW::sC2RPlans; std::vector<RDColX> PreloopFFTW::sR2C_RMats; std::vector<CDColX> PreloopFFTW::sR2C_CMat...
25.563636
108
0.550498
kuangdai
fc74bb7873f7a111ff7dc13f49fcb913a6a953cd
564
cpp
C++
BFEngine/src/core/window.cpp
YnopTafGib/BigFatEngine
267758779747adfd9e1d0eb6c7674158ecbe15c6
[ "MIT" ]
null
null
null
BFEngine/src/core/window.cpp
YnopTafGib/BigFatEngine
267758779747adfd9e1d0eb6c7674158ecbe15c6
[ "MIT" ]
null
null
null
BFEngine/src/core/window.cpp
YnopTafGib/BigFatEngine
267758779747adfd9e1d0eb6c7674158ecbe15c6
[ "MIT" ]
null
null
null
#include "bfepch.hpp" #include "window.hpp" namespace BFE { Window::Window( const std::string& p_title, const ivec2& p_size ) : m_title( p_title ), m_size( p_size ) { glfwInit(); glfwWindowHint( GLFW_CLIENT_API, GLFW_NO_API ); glfwWindowHint( GLFW_RESIZABLE, GLFW_FALSE ); m_window = glfwCreateWindow(...
21.692308
104
0.684397
YnopTafGib
fc778e36a0b8f448698928817006dc79942c08d6
5,032
hxx
C++
OCC/opencascade-7.2.0/x64/debug/inc/BRepOffsetAPI_MakeEvolved.hxx
jiaguobing/FastCAE
2348ab87e83fe5c704e4c998cf391229c25ac5d5
[ "BSD-3-Clause" ]
2
2020-02-21T01:04:35.000Z
2020-02-21T03:35:37.000Z
OCC/opencascade-7.2.0/x64/debug/inc/BRepOffsetAPI_MakeEvolved.hxx
Sunqia/FastCAE
cbc023fe07b6e306ceefae8b8bd7c12bc1562acb
[ "BSD-3-Clause" ]
1
2020-03-06T04:49:42.000Z
2020-03-06T04:49:42.000Z
OCC/opencascade-7.2.0/x64/debug/inc/BRepOffsetAPI_MakeEvolved.hxx
Sunqia/FastCAE
cbc023fe07b6e306ceefae8b8bd7c12bc1562acb
[ "BSD-3-Clause" ]
1
2021-11-21T13:03:26.000Z
2021-11-21T13:03:26.000Z
// Created on: 1995-09-18 // Created by: Bruno DUMORTIER // Copyright (c) 1995-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GN...
37.552239
325
0.75159
jiaguobing
fc77e164cdb591239d9a443b9f3675442011aae5
2,690
cc
C++
control/vanes_generated.cc
sentree/hover-jet
7c0f03e57ecfd07a7a167b3ae509700fb48b8764
[ "MIT" ]
10
2018-12-26T23:08:40.000Z
2021-02-04T23:22:01.000Z
control/vanes_generated.cc
sentree/hover-jet
7c0f03e57ecfd07a7a167b3ae509700fb48b8764
[ "MIT" ]
40
2018-12-15T21:10:04.000Z
2021-07-29T06:21:22.000Z
control/vanes_generated.cc
sentree/hover-jet
7c0f03e57ecfd07a7a167b3ae509700fb48b8764
[ "MIT" ]
6
2018-12-15T20:46:19.000Z
2020-11-27T09:39:34.000Z
/* Don't edit this; this code was generated by op_graph */ #include "control/vanes_generated.hh" namespace jet { namespace control { VecNd<4> QuadraframeStatusDelta::to_vector(const QuadraframeStatusDelta &in_grp) { const VecNd<4> out = (VecNd<4>() << (in_grp.servo_0_angle_rad_error), (in_grp.servo_1_an...
44.833333
79
0.697026
sentree
fc79a4d089f7c42a53a09a502b9c66313b473aa1
660
cpp
C++
leetcode/852_easy_peak-index-in-a-mountain-array.cpp
shoryaconsul/code_practice
f04eeff266beffbba6d9f22e6f8c5861f0dbf998
[ "MIT" ]
null
null
null
leetcode/852_easy_peak-index-in-a-mountain-array.cpp
shoryaconsul/code_practice
f04eeff266beffbba6d9f22e6f8c5861f0dbf998
[ "MIT" ]
null
null
null
leetcode/852_easy_peak-index-in-a-mountain-array.cpp
shoryaconsul/code_practice
f04eeff266beffbba6d9f22e6f8c5861f0dbf998
[ "MIT" ]
null
null
null
class Solution { public: int peakIndexInMountainArray(vector<int>& arr) { int start = 0; int end = arr.size()-1; int mid; while(start+2 <= end){ mid = start + (end-start)/2; if(arr[mid] > arr[mid-1] && arr[mid] > arr[mid+1]) return mid; ...
28.695652
74
0.442424
shoryaconsul
fc79af0f5598d3a659a11f37aa347ffabfa0e670
9,022
cpp
C++
source/xbox360/brfilenamexbox360.cpp
Olde-Skuul/burgerlib
80848a4dfa17c5c05095ecea14a9bd87f86dfb9d
[ "Zlib" ]
115
2015-01-18T17:29:30.000Z
2022-01-30T04:31:48.000Z
source/xbox360/brfilenamexbox360.cpp
Olde-Skuul/burgerlib
80848a4dfa17c5c05095ecea14a9bd87f86dfb9d
[ "Zlib" ]
9
2015-01-22T04:53:38.000Z
2015-01-31T13:52:40.000Z
source/xbox360/brfilenamexbox360.cpp
Olde-Skuul/burgerlib
80848a4dfa17c5c05095ecea14a9bd87f86dfb9d
[ "Zlib" ]
9
2015-01-23T20:06:46.000Z
2020-05-20T16:06:00.000Z
/*************************************** Filename Class Xbox 360 specific code Copyright (c) 1995-2017 by Rebecca Ann Heineman <becky@burgerbecky.com> It is released under an MIT Open Source license. Please see LICENSE for license details. Yes, you can use it in a commercial title without paying anything, just...
28.282132
79
0.656728
Olde-Skuul
fc7a43dfdbd487c63d5f1d0358a2ae1a2aa9fb56
967
hpp
C++
src/vgl/file/file.hpp
alexsr/vgl
51fe9d990de4049bf3219b21a9ca930738a5c638
[ "MIT" ]
1
2019-05-18T18:27:19.000Z
2019-05-18T18:27:19.000Z
src/vgl/file/file.hpp
alexsr/vgl
51fe9d990de4049bf3219b21a9ca930738a5c638
[ "MIT" ]
null
null
null
src/vgl/file/file.hpp
alexsr/vgl
51fe9d990de4049bf3219b21a9ca930738a5c638
[ "MIT" ]
null
null
null
#pragma once #include <optional> #include "file_paths.hpp" #include <future> namespace vgl::file { bool is_file(const std::filesystem::path& path); bool is_file(const char* path); std::optional<std::filesystem::path> save_file_dialog(const std::filesystem::path& default_path, const std::string& filter = "...
48.35
133
0.730093
alexsr
fc7a782404104b734aeed5340f4ffac654e5771c
2,315
cc
C++
solutions/kattis/wettiles/main.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
4
2020-11-07T14:38:02.000Z
2022-01-03T19:02:36.000Z
solutions/kattis/wettiles/main.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
1
2019-04-17T06:55:14.000Z
2019-04-17T06:55:14.000Z
solutions/kattis/wettiles/main.cc
zwliew/ctci
871f4fc957be96c6d0749d205549b7b35dc53d9e
[ "MIT" ]
null
null
null
#include <stdio.h> #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include...
22.047619
78
0.465659
zwliew
fc7ccba1782e66d1548b7b59f5d0d6b5c99c72a7
5,097
cpp
C++
clib_build/src/Intersection.cpp
pemryan/XCIST
044930e58880ac29208c62434c275a8724c67ef5
[ "BSD-3-Clause" ]
9
2020-09-04T01:52:41.000Z
2021-09-20T16:05:28.000Z
clib_build/src/Intersection.cpp
pemryan/XCIST
044930e58880ac29208c62434c275a8724c67ef5
[ "BSD-3-Clause" ]
1
2021-09-15T13:59:57.000Z
2021-09-17T21:33:53.000Z
clib_build/src/Intersection.cpp
pemryan/XCIST
044930e58880ac29208c62434c275a8724c67ef5
[ "BSD-3-Clause" ]
5
2020-09-05T08:17:18.000Z
2021-03-09T02:49:58.000Z
// Copyright 2020, General Electric Company. All rights reserved. See https://github.com/xcist/code/blob/master/LICENSE #include "Intersection.h" #include <vector> #include <algorithm> #include "MatVec.h" #include <math.h> Intersection::Intersection() { } Intersection::~Intersection() { } Intersection::Intersection...
25.613065
119
0.628016
pemryan
fc7e58b4c347acde1e49ff082be26e051fff46f3
958
cpp
C++
source/ashespp/Buffer/VertexBuffer.cpp
DragonJoker/Ashes
a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e
[ "MIT" ]
227
2018-09-17T16:03:35.000Z
2022-03-19T02:02:45.000Z
source/ashespp/Buffer/VertexBuffer.cpp
DragonJoker/RendererLib
0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a
[ "MIT" ]
39
2018-02-06T22:22:24.000Z
2018-08-29T07:11:06.000Z
source/ashespp/Buffer/VertexBuffer.cpp
DragonJoker/Ashes
a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e
[ "MIT" ]
8
2019-05-04T10:33:32.000Z
2021-04-05T13:19:27.000Z
/* This file belongs to Ashes. See LICENSE file in root folder. */ #include "ashespp/Buffer/VertexBuffer.hpp" namespace ashes { VertexBufferBase::VertexBufferBase( Device const & device , VkDeviceSize size , VkBufferUsageFlags usage , QueueShare sharingMode ) : VertexBufferBase{ device, "VertexBuffer", size, ...
23.365854
85
0.729645
DragonJoker
fc80825aaf884bc20ed05f783d3a24522b35a745
937
cpp
C++
reports/DA1/Q1.cpp
PaletiKrishnasai/High-Performance-Computing
269dcac49be9671cff5fb02bbea9a49124e1ec3a
[ "MIT" ]
null
null
null
reports/DA1/Q1.cpp
PaletiKrishnasai/High-Performance-Computing
269dcac49be9671cff5fb02bbea9a49124e1ec3a
[ "MIT" ]
null
null
null
reports/DA1/Q1.cpp
PaletiKrishnasai/High-Performance-Computing
269dcac49be9671cff5fb02bbea9a49124e1ec3a
[ "MIT" ]
null
null
null
/* Author : Paleti Krishnasai CED18I039 Parallelize the following sequence and write openMP and estimate parallelization fraction for the sequence’s larger number 100000. Write your comments on each problem. 1. Sequence 5, 8, 11, 14, 17, 20, 23.. */ // g++ -O0 -fopenmp Q1.cpp -o Q1 #include <bits/stdc++.h> #includ...
21.295455
93
0.626467
PaletiKrishnasai
fc8093dd6f33bc5e48bbc5b987201084ac954fd8
594
cc
C++
bindings.cc
jwerle/repo
15d07ce6d039766e7c3f4bda6652430eb7686d7b
[ "MIT" ]
1
2022-02-27T20:41:57.000Z
2022-02-27T20:41:57.000Z
bindings.cc
jwerle/repo
15d07ce6d039766e7c3f4bda6652430eb7686d7b
[ "MIT" ]
null
null
null
bindings.cc
jwerle/repo
15d07ce6d039766e7c3f4bda6652430eb7686d7b
[ "MIT" ]
null
null
null
#include <v8.h> #include <node.h> #include "repo.h" #define str(s) v8::String::New(s) class User { // repo_user_t *ref_; v8::Persistent<v8::Object> obj_; public: User () { // ref_ = repo_user_new(); obj_->SetPointerInInternalField(0, this); } v8::Handle<v8::Object> ToObject () { return obj_; }...
16.5
44
0.648148
jwerle
fc8ac01aa8ee29821a616a46a192c8b5dacf67df
1,223
cpp
C++
searching-algorithms/binarySearch.cpp
Divyansh1315/data-structures-and-algorithms-code
46b0bec41f022b60be4798227a5f5fc86dccee1a
[ "MIT" ]
1
2022-02-09T14:28:28.000Z
2022-02-09T14:28:28.000Z
searching-algorithms/binarySearch.cpp
Divyansh1315/data-structures-and-algorithms-code
46b0bec41f022b60be4798227a5f5fc86dccee1a
[ "MIT" ]
1
2022-02-02T04:58:10.000Z
2022-02-02T04:58:10.000Z
searching-algorithms/binarySearch.cpp
Divyansh1315/data-structures-and-algorithms-code
46b0bec41f022b60be4798227a5f5fc86dccee1a
[ "MIT" ]
1
2022-02-02T00:23:59.000Z
2022-02-02T00:23:59.000Z
#include <bits/stdc++.h> using namespace std; // iterative approach /* int binarySearch(int arr[],int element, int low, int high) { while(low <= high) { int mid = low + (high - low)/2; if(arr[mid] == element) return mid; else if(arr[mid] < element) low = mid + 1; else high = mid - 1...
23.075472
65
0.553557
Divyansh1315
fc8c396a25870fcdf1cf16138b72464a1dfeab9a
7,917
cc
C++
nox/src/nox/netapps/hoststate/hosttracker.cc
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
28
2015-02-04T13:59:25.000Z
2021-12-29T03:44:47.000Z
nox/src/nox/netapps/hoststate/hosttracker.cc
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
552
2015-01-05T18:25:54.000Z
2022-03-16T18:51:13.000Z
nox/src/nox/netapps/hoststate/hosttracker.cc
ayjazz/OESS
deadc504d287febc7cbd7251ddb102bb5c8b1f04
[ "Apache-2.0" ]
25
2015-02-04T18:48:20.000Z
2020-06-18T15:51:05.000Z
#include "hosttracker.hh" #include <boost/bind.hpp> namespace vigil { static Vlog_module lg("hosttracker"); Host_location_event::Host_location_event(const ethernetaddr host_, const list<hosttracker::location> loc_, enum type type_): Event(static_get_name()), host(host_), eventType(type_) {...
26.215232
81
0.629784
ayjazz
475a97cea4e88778d2ac52bde43e9b9eaa66071d
5,745
cc
C++
source/breakpoint.cc
finixbit/ftrace
1bc5099864c7eadc5846a14e0027ab07daca6549
[ "MIT" ]
71
2018-02-19T04:46:43.000Z
2021-12-21T21:12:14.000Z
source/breakpoint.cc
finixbit/ftrace
1bc5099864c7eadc5846a14e0027ab07daca6549
[ "MIT" ]
1
2018-04-15T18:38:32.000Z
2018-04-26T13:53:54.000Z
source/breakpoint.cc
finixbit/ftrace
1bc5099864c7eadc5846a14e0027ab07daca6549
[ "MIT" ]
13
2018-02-19T12:51:20.000Z
2022-03-31T06:59:15.000Z
#include <iostream> #include <sys/ptrace.h> /* ptrace */ #include <sys/wait.h> /* wait */ #include <inttypes.h> /* PRIx64 */ #include "breakpoint.h" #include "callsite.h" #include "symbol.h" void Breakpoint::set_symbol_breakpoint( pid_t &child_pid, std::intptr_t &sym_address) { if(m_breakpoints_map.count(sym...
30.721925
98
0.636554
finixbit