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
38b3d591571417f9228d4f060a5c25dc6ff02d0f
1,327
cc
C++
leet_code/Letter_Combinations_of_a_Phone_Number/solve.cc
ldy121/algorithm
7939cb4c15e2bc655219c934f00c2bb74ddb4eec
[ "Apache-2.0" ]
1
2020-04-11T22:04:23.000Z
2020-04-11T22:04:23.000Z
leet_code/Letter_Combinations_of_a_Phone_Number/solve.cc
ldy121/algorithm
7939cb4c15e2bc655219c934f00c2bb74ddb4eec
[ "Apache-2.0" ]
null
null
null
leet_code/Letter_Combinations_of_a_Phone_Number/solve.cc
ldy121/algorithm
7939cb4c15e2bc655219c934f00c2bb74ddb4eec
[ "Apache-2.0" ]
null
null
null
class Solution { private: vector<string> answer; vector<vector<char> > phone; void getAnswer(string &digits, int idx, string buffer) { if (idx == digits.size()) { if (buffer.length() > 0) { answer.push_back(buffer); } return; } if ...
31.595238
124
0.494348
ldy121
38b7a8929dce7b091bbe16ab65b400df913a7066
12,494
cpp
C++
cpp/opendnp3/src/opendnp3/outstation/Outstation.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
null
null
null
cpp/opendnp3/src/opendnp3/outstation/Outstation.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
null
null
null
cpp/opendnp3/src/opendnp3/outstation/Outstation.cpp
tarm/dnp3_orig
87c639b3462c980fba255e85793f6ec663abe981
[ "Apache-2.0" ]
3
2016-07-13T18:54:13.000Z
2021-04-12T13:30:39.000Z
/** * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or * more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Green Energy Corp licenses this file to you under the Apache License, * Version 2.0 (the "Li...
30.325243
150
0.74956
tarm
38b8c0ee00901e25876500ed31aeb70e384d808f
1,681
cpp
C++
source/bezier_debug.cpp
Sankhma/AutismoSimulator
ac0cd2c321929b92cadfed9eb6c96faa9e60e18e
[ "MIT" ]
null
null
null
source/bezier_debug.cpp
Sankhma/AutismoSimulator
ac0cd2c321929b92cadfed9eb6c96faa9e60e18e
[ "MIT" ]
38
2020-11-08T21:54:57.000Z
2020-12-01T09:33:11.000Z
source/bezier_debug.cpp
Sankhma/AutismoSimulator
ac0cd2c321929b92cadfed9eb6c96faa9e60e18e
[ "MIT" ]
1
2020-11-04T22:17:11.000Z
2020-11-04T22:17:11.000Z
#include <iostream> #include "Bezier.h" #include "Vector.h" // and this int main(){ Vector2<double> vec0 = Vector2<double>(1, 2); Vector2<double> vec1 = Vector2<double>(2, 3); Vector2<double> vec2 = Vector2<double>(7, 4); Vector2<double> vec3 = Vector2<double>(133, 1123); std::vector<Vector2<dou...
29.491228
101
0.607971
Sankhma
38bd0b1ecf9dfade373e61c58b230de2b2bcb28f
8,093
cpp
C++
deps/libgeos/geos/src/operation/polygonize/Polygonizer.cpp
AmristarSolutions/node-gdal-next
8c0a7d9b26c240bf04abbf1b1de312b0691b3d88
[ "Apache-2.0" ]
57
2020-02-08T17:52:17.000Z
2021-10-14T03:45:09.000Z
deps/libgeos/geos/src/operation/polygonize/Polygonizer.cpp
AmristarSolutions/node-gdal-next
8c0a7d9b26c240bf04abbf1b1de312b0691b3d88
[ "Apache-2.0" ]
47
2020-02-12T16:41:40.000Z
2021-09-28T22:27:56.000Z
deps/libgeos/geos/src/operation/polygonize/Polygonizer.cpp
AmristarSolutions/node-gdal-next
8c0a7d9b26c240bf04abbf1b1de312b0691b3d88
[ "Apache-2.0" ]
8
2020-03-17T11:18:07.000Z
2021-10-14T03:45:15.000Z
/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2010 Sandro Santilli <strk@kbt.io> * Copyright (C) 2005-2006 Refractions Research Inc. * Copyright (C) 2001-2002 Vivid Solutions Inc. * * This is free softwar...
23.802941
108
0.640306
AmristarSolutions
38bef76989da03cdba92d7e5d6ceeedb90466644
6,662
cpp
C++
src/drv/hd44780/hd44780.cpp
ghsecuritylab/omef
a6b2dec8d57545c3804174883e582080ef6f3af9
[ "MIT" ]
null
null
null
src/drv/hd44780/hd44780.cpp
ghsecuritylab/omef
a6b2dec8d57545c3804174883e582080ef6f3af9
[ "MIT" ]
null
null
null
src/drv/hd44780/hd44780.cpp
ghsecuritylab/omef
a6b2dec8d57545c3804174883e582080ef6f3af9
[ "MIT" ]
null
null
null
#include <stddef.h> #include "common/assert.h" #include "third_party/printf/printf.h" #include "hd44780.hpp" using namespace drv; using namespace hal; #define DDRAM1_MIN_ADDR 0 #define DDRAM1_MAX_ADDR 39 #define DDRAM2_MIN_ADDR 64 #define DDRAM2_MAX_ADDR 103 #define STROB_DELAY 37 // us enum cmd_t { CLEAR_DISPLAY...
21.700326
81
0.644401
ghsecuritylab
38c0a940ef7fac4fe1b38094bc3cda98e082d9fa
324
cpp
C++
elastic-circuits/examples/string_match.cpp
minseongg/dynamatic
268d97690f128569da46e4f39a99346e93ee9d4e
[ "MIT" ]
46
2019-11-16T13:44:07.000Z
2022-03-12T14:28:44.000Z
elastic-circuits/examples/string_match.cpp
minseongg/dynamatic
268d97690f128569da46e4f39a99346e93ee9d4e
[ "MIT" ]
11
2020-05-12T17:20:51.000Z
2022-02-04T10:04:59.000Z
elastic-circuits/examples/string_match.cpp
minseongg/dynamatic
268d97690f128569da46e4f39a99346e93ee9d4e
[ "MIT" ]
22
2020-02-21T21:33:40.000Z
2022-02-24T06:50:41.000Z
// Finds an occurrence of x in y // n is the length of x, m is the length of y int substring(char x[], char y[], int n, int m) { for (int i = 0; i <= m - n; ++i) { int j = 0; while (j < n and x[j] == y[i + j]) ++j; if (j == n) return i; } return -1; ...
24.923077
50
0.41358
minseongg
38c1132d12c4d5dc2cd9f95704f1968988993dc8
693
cpp
C++
code/K-th Smallest Prime Fraction.cpp
htfy96/leetcode-solutions
4736e87958d7e5aea3cbd999f88c7a86de13205a
[ "Apache-2.0" ]
1
2021-02-21T15:43:13.000Z
2021-02-21T15:43:13.000Z
code/K-th Smallest Prime Fraction.cpp
htfy96/leetcode-solutions
4736e87958d7e5aea3cbd999f88c7a86de13205a
[ "Apache-2.0" ]
null
null
null
code/K-th Smallest Prime Fraction.cpp
htfy96/leetcode-solutions
4736e87958d7e5aea3cbd999f88c7a86de13205a
[ "Apache-2.0" ]
1
2018-12-13T07:14:09.000Z
2018-12-13T07:14:09.000Z
class Solution { static int count_smaller(double x, const vector<int>& A) { int ans = 0; for (int i=0; i<A.size(); ++i) ans += lower_bound(A.begin(), A.begin() + i, x * A[i]) - A.begin(); return ans; } public: vector<int> kthSmallestPrimeFraction(vector<int>& A, int K) { ...
34.65
79
0.444444
htfy96
38c26fcac0c58012256f14c76372a4f4358826a9
3,244
cpp
C++
labs/functions/pointDistance.cpp
rambasnet/CPP-Fundamentals
bc2fa9fddac95ffaca56d3251842f35c52eb76b8
[ "MIT" ]
6
2021-03-12T10:02:23.000Z
2022-01-11T12:27:41.000Z
labs/functions/pointDistance.cpp
rambasnet/CPPFundamentals
d0dabf1969b2a084b15e8c0bbba3f70045b263f5
[ "MIT" ]
1
2021-03-13T18:07:37.000Z
2021-05-12T09:09:17.000Z
labs/functions/pointDistance.cpp
rambasnet/CPPFundamentals
d0dabf1969b2a084b15e8c0bbba3f70045b263f5
[ "MIT" ]
10
2021-03-12T10:02:33.000Z
2022-03-07T23:20:39.000Z
/* Functions Lab Updated By: FIXME1 CSCI 111 Date: FIXME2 Program prompts the user to enter two points in the form (x1, y1) and (x2, y2) and finds the distance between the two points using a function. Algorithm steps: 1. Define a function called findDistance(…) that takes four parameters x1, y1 and x2, y2 as two po...
34.147368
142
0.665845
rambasnet
38c5698195e603bcb0e4e82ab49a08cfac92fe4a
894
hpp
C++
modules/boost/simd/swar/include/boost/simd/swar/functions/details/random_permute.hpp
pbrunet/nt2
2aeca0f6a315725b335efd5d9dc95d72e10a7fb7
[ "BSL-1.0" ]
null
null
null
modules/boost/simd/swar/include/boost/simd/swar/functions/details/random_permute.hpp
pbrunet/nt2
2aeca0f6a315725b335efd5d9dc95d72e10a7fb7
[ "BSL-1.0" ]
null
null
null
modules/boost/simd/swar/include/boost/simd/swar/functions/details/random_permute.hpp
pbrunet/nt2
2aeca0f6a315725b335efd5d9dc95d72e10a7fb7
[ "BSL-1.0" ]
null
null
null
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // Se...
34.384615
80
0.57047
pbrunet
38c8116387f0f017c919e518abe6b6d3a6d25320
1,162
cpp
C++
src/core/test/test_musher_utils.cpp
jmaldon1/Musher
58f4c8bde4c314821f15bce27555896a00935c1c
[ "MIT" ]
4
2019-11-11T22:57:33.000Z
2020-11-30T03:12:44.000Z
src/core/test/test_musher_utils.cpp
jmaldon1/Musher
58f4c8bde4c314821f15bce27555896a00935c1c
[ "MIT" ]
null
null
null
src/core/test/test_musher_utils.cpp
jmaldon1/Musher
58f4c8bde4c314821f15bce27555896a00935c1c
[ "MIT" ]
1
2019-11-13T16:45:30.000Z
2019-11-13T16:45:30.000Z
#include <iostream> #include <stdexcept> #include <string> #include <vector> #include "gtest/gtest.h" #include "src/core/test/gtest_extras.h" #include "src/core/test/utils.h" #include "src/core/utils.h" using namespace musher::core; using namespace musher::core::test; TEST(TestUtils, Uint8_tVectorToHexString) { st...
29.794872
96
0.713425
jmaldon1
38c95e37da5fde4525978b6627c8e2429888881b
8,581
cpp
C++
branches/g3d-8.0-64ffmpeg-win/G3D.lib/source/GImage_png.cpp
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
branches/g3d-8.0-64ffmpeg-win/G3D.lib/source/GImage_png.cpp
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
branches/g3d-8.0-64ffmpeg-win/G3D.lib/source/GImage_png.cpp
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
/** @file GImage_png.cpp @author Morgan McGuire, http://graphics.cs.williams.edu @created 2002-05-27 @edited 2009-04-20 */ #include "G3D/platform.h" #include "G3D/GImage.h" #include "G3D/BinaryInput.h" #include "G3D/BinaryOutput.h" #include "G3D/Log.h" #include <png.h> namespace G3D { //libpng required fun...
30.429078
108
0.663326
brown-ccv
38ca6e7461ceb6687bc335e05c40db489d7ccd06
3,550
hxx
C++
src/engine/ivp/ivp_utility/ivu_float.hxx
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
6
2022-01-23T09:40:33.000Z
2022-03-20T20:53:25.000Z
src/engine/ivp/ivp_utility/ivu_float.hxx
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
null
null
null
src/engine/ivp/ivp_utility/ivu_float.hxx
cstom4994/SourceEngineRebuild
edfd7f8ce8af13e9d23586318350319a2e193c08
[ "MIT" ]
1
2022-02-06T21:05:23.000Z
2022-02-06T21:05:23.000Z
#ifdef WIN32 #include <float.h> #endif #if defined(IVP_NO_DOUBLE) && !defined(SUN) # include <math.h> # if defined(WIN32) || defined(PSXII) || defined(LINUX) union p_float_ieee { IVP_FLOAT val; struct { unsigned int valh:23; unsigned int exp:8; unsigned int signum:1; } ln; }; #else unio...
26.102941
98
0.587606
cstom4994
38ca766d5e6de6ec96fdbd66c9960d4178cf2c54
737
cpp
C++
33_FileDialog/mainwindow.cpp
mongobaba/learn_qt
eac25c34f0104e229afe9e5408ea89a1eab9aefa
[ "MIT" ]
1
2022-01-16T03:51:50.000Z
2022-01-16T03:51:50.000Z
33_FileDialog/mainwindow.cpp
mongobaba/learn_qt
eac25c34f0104e229afe9e5408ea89a1eab9aefa
[ "MIT" ]
null
null
null
33_FileDialog/mainwindow.cpp
mongobaba/learn_qt
eac25c34f0104e229afe9e5408ea89a1eab9aefa
[ "MIT" ]
null
null
null
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QFileDialog> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); fileName = new QLineEdit(this); fileName->setGeometry(QRect(50, 50, 450, 25)); button = new QPushButton(tr("浏览")...
24.566667
78
0.645862
mongobaba
38cb0edf44d87a3a9a36ca82f4c06e941e8d6a97
5,997
cpp
C++
meeting-qt/setup/src/dui/Box/TileBox.cpp
GrowthEase/-
5cc7cab95fc309049de8023ff618219dff22d773
[ "MIT" ]
48
2022-03-02T07:15:08.000Z
2022-03-31T08:37:33.000Z
meeting-qt/setup/src/dui/Box/TileBox.cpp
chandarlee/Meeting
9350fdea97eb2cdda28b8bffd9c4199de15460d9
[ "MIT" ]
1
2022-02-16T01:54:05.000Z
2022-02-16T01:54:05.000Z
meeting-qt/setup/src/dui/Box/TileBox.cpp
chandarlee/Meeting
9350fdea97eb2cdda28b8bffd9c4199de15460d9
[ "MIT" ]
9
2022-03-01T13:41:37.000Z
2022-03-10T06:05:23.000Z
/** * @copyright Copyright (c) 2021 NetEase, Inc. All rights reserved. * Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ #include "stdafx.h" #include "TileBox.h" namespace ui { TileLayout::TileLayout() { m_szItem.cx = m_szItem.cy = 0; } CSize TileLay...
29.541872
125
0.637986
GrowthEase
38d059c88a8cdda0cb6ba2169db771c76242e513
1,483
cpp
C++
src/Aplicatii Vectori/ex 9/main.cpp
andrew-miroiu/Cpp-projects
d0917a7f78aef929c25dc9b019e910951c2050ac
[ "MIT" ]
2
2021-11-27T18:29:32.000Z
2021-11-28T14:35:47.000Z
src/Aplicatii Vectori/ex 9/main.cpp
andrew-miroiu/Cpp-projects
d0917a7f78aef929c25dc9b019e910951c2050ac
[ "MIT" ]
null
null
null
src/Aplicatii Vectori/ex 9/main.cpp
andrew-miroiu/Cpp-projects
d0917a7f78aef929c25dc9b019e910951c2050ac
[ "MIT" ]
null
null
null
#include <iostream> //9. Se citesc elementele unui tablou v unidimensional cu n (n&lt;=100) componente, numere întregi din cel //mult 4 cifre fiecare. Sa se realizeze următoarele prelucrări: a. Să se afişeze valorile prime. b. Să se afişeze //numerele prime a căror invers este tot un număr prim. using namespace std; i...
19.25974
113
0.401214
andrew-miroiu
38d1097ac49d5678b32384644edd0219f7fcd9f5
4,679
cpp
C++
Engine/source/platform/platformAssert.cpp
fr1tz/alux3d
249a3b51751ce3184d52879b481f83eabe89e7e3
[ "MIT" ]
null
null
null
Engine/source/platform/platformAssert.cpp
fr1tz/alux3d
249a3b51751ce3184d52879b481f83eabe89e7e3
[ "MIT" ]
null
null
null
Engine/source/platform/platformAssert.cpp
fr1tz/alux3d
249a3b51751ce3184d52879b481f83eabe89e7e3
[ "MIT" ]
1
2018-10-26T03:18:22.000Z
2018-10-26T03:18:22.000Z
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #include <stdarg.h> #include "core/strings/stringFunctions.h" #include "console/console.h" //-------------------------------------- STATIC Declaration PlatformAssert *PlatformAssert::platformAssert...
30.383117
119
0.582176
fr1tz
38d15c721c10b88000fc8841d3021692d002b1b5
2,097
cpp
C++
src/Saurobyte/SystemPool.cpp
Symphonym/Saurobyte
c4bc5afd4ac4353ed6cd9a201454fd14aa3aced2
[ "MIT" ]
17
2015-01-26T19:46:42.000Z
2021-10-04T15:30:32.000Z
src/Saurobyte/SystemPool.cpp
Symphonym/Saurobyte
c4bc5afd4ac4353ed6cd9a201454fd14aa3aced2
[ "MIT" ]
1
2021-04-06T01:12:03.000Z
2021-04-06T01:12:03.000Z
src/Saurobyte/SystemPool.cpp
Symphonym/Saurobyte
c4bc5afd4ac4353ed6cd9a201454fd14aa3aced2
[ "MIT" ]
2
2015-02-03T21:23:49.000Z
2021-05-02T14:52:52.000Z
#include <Saurobyte/SystemPool.hpp> #include <Saurobyte/System.hpp> namespace Saurobyte { SystemPool::SystemPool(Engine *engine) : m_engine(engine) { } SystemPool::~SystemPool() { frameCleanup(); m_systemPool.clear(); } void SystemPool::addSystem(BaseSystem *newSystem) { // Make sure the system do...
22.793478
89
0.680496
Symphonym
38d1ea2ff8ef4143ec19cb5090cc2eee413cbcf4
539,849
cpp
C++
com/netfx/src/clr/vm/class.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
com/netfx/src/clr/vm/class.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
com/netfx/src/clr/vm/class.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // =========================================================================== // File: CLASS.CPP // // =========================================================================== // This file contains CreateClass() whi...
37.878824
219
0.549328
npocmaka
38d3c1e7f8c1a57cf3db762f9dda90899b1e041b
11,451
cpp
C++
Spider3D.cpp
Artars/WalkingGLSpider
d939a1f27730aaabdc36b01fd574351f967c08dd
[ "MIT" ]
null
null
null
Spider3D.cpp
Artars/WalkingGLSpider
d939a1f27730aaabdc36b01fd574351f967c08dd
[ "MIT" ]
null
null
null
Spider3D.cpp
Artars/WalkingGLSpider
d939a1f27730aaabdc36b01fd574351f967c08dd
[ "MIT" ]
null
null
null
#include "Spider3D.h" Spider3D::Spider3D(){ finishConstruction(); } Spider3D::Spider3D(Vector3 position, Vector3 scale, Vector3 rotation){ this->position = position; this->scale = scale; this->rotation = rotation; finishConstruction(); } void Spider3D::finishConstruction() { char path[] = "S...
40.896429
128
0.643699
Artars
38dc60458e367ea135611f1b6160469ccd7f898a
78,194
cpp
C++
SGXDNN/sgxdnn_main.cpp
goten-team/Goten
690f1429b62c70caec72f4010ee5b7a9786f0d25
[ "MIT" ]
17
2020-04-28T09:18:28.000Z
2021-12-28T08:38:00.000Z
SGXDNN/sgxdnn_main.cpp
goten-team/Goten
690f1429b62c70caec72f4010ee5b7a9786f0d25
[ "MIT" ]
2
2021-09-26T04:10:51.000Z
2022-03-31T05:28:25.000Z
SGXDNN/sgxdnn_main.cpp
goten-team/Goten
690f1429b62c70caec72f4010ee5b7a9786f0d25
[ "MIT" ]
2
2021-09-26T05:06:17.000Z
2021-12-14T16:25:06.000Z
#define USE_EIGEN_TENSOR #ifndef USE_SGX #define EIGEN_USE_THREADS #include <malloc.h> #else #include "Enclave.h" #include "sgx_tseal.h" #include "sgx_trts.h" #include "sgx_thread.h" #endif #include "sgxdnn_main.hpp" #include "randpool.hpp" #include "utils.hpp" #include "common_with_enclaves.h" #include <unsupporte...
45.647402
303
0.656201
goten-team
38e1f5eafcc25c2f57ec7bc27db575cd4b52dbaf
6,688
cpp
C++
Project/Tiger/src/IR.cpp
TheNetAdmin/tiger-compiler
ef09e538d23c0f59910d651cf6e1ea63a96d3112
[ "MIT" ]
4
2018-09-18T03:46:51.000Z
2020-08-19T09:40:16.000Z
Project/Tiger/src/IR.cpp
TheNetAdmin/tiger-compiler
ef09e538d23c0f59910d651cf6e1ea63a96d3112
[ "MIT" ]
null
null
null
Project/Tiger/src/IR.cpp
TheNetAdmin/tiger-compiler
ef09e538d23c0f59910d651cf6e1ea63a96d3112
[ "MIT" ]
4
2018-02-15T21:02:10.000Z
2022-03-03T14:16:01.000Z
#include "IR.h" // // Created by Chege on 2017/6/1. // namespace IR { Stm::Stm(StmType type) : stmType(type) { } StmType Stm::getStmType() const { return stmType; } Exp::Exp(ExpType expType) : Stm(EXP), expType(expType) { } ExpType Exp::getExpT...
22.671186
104
0.580144
TheNetAdmin
38e4d38d50750c10109432ede6945a804cd9906f
7,047
cc
C++
test/distributions.cc
TeoGiane/bayesmix
43182d61c3f332aefb832426cc9e8e2b2394bd68
[ "BSD-3-Clause" ]
null
null
null
test/distributions.cc
TeoGiane/bayesmix
43182d61c3f332aefb832426cc9e8e2b2394bd68
[ "BSD-3-Clause" ]
null
null
null
test/distributions.cc
TeoGiane/bayesmix
43182d61c3f332aefb832426cc9e8e2b2394bd68
[ "BSD-3-Clause" ]
null
null
null
#include "src/utils/distributions.h" #include <gtest/gtest.h> #include <Eigen/Dense> #include <stan/math/prim.hpp> #include <vector> #include "src/utils/rng.h" TEST(mix_dist, 1) { auto& rng = bayesmix::Rng::Instance().get(); int nclus = 5; Eigen::VectorXd weights1 = stan::math::dirichlet_rng(Eigen::Vec...
31.600897
79
0.648503
TeoGiane
38eca32354dc5f2fd7f50db6ee608ecde759de72
1,409
cpp
C++
src/generator/SwitchGenerator.cpp
jaydee-io/bnf2c
453b9dec8d94f32eebf9df1ab9578da0b5c70d84
[ "BSD-4-Clause" ]
null
null
null
src/generator/SwitchGenerator.cpp
jaydee-io/bnf2c
453b9dec8d94f32eebf9df1ab9578da0b5c70d84
[ "BSD-4-Clause" ]
null
null
null
src/generator/SwitchGenerator.cpp
jaydee-io/bnf2c
453b9dec8d94f32eebf9df1ab9578da0b5c70d84
[ "BSD-4-Clause" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// // BNF2C // // This file is distributed under the 4-clause Berkeley Software Distribution // License. See LICENSE for details. /////////////////////////////////////////////////////////////////////////////...
38.081081
120
0.432221
jaydee-io
38ee1e8d1b6727b4cc07d51b0c016c9e57777c01
3,960
cc
C++
cc/animation/filter_animation_curve.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
cc/animation/filter_animation_curve.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
cc/animation/filter_animation_curve.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cc/animation/filter_animation_curve.h" #include "base/memory/ptr_util.h" #include "ui/gfx/animation/keyframe/keyframed_animation_curve-inl.h" ...
31.935484
79
0.732576
zealoussnow
38eec9b7f9f3239a097967416fa7f2d6fe070a22
10,011
cpp
C++
fluxes.cpp
rocketcrush/suchsolver
18ffeaf13aa0c549f7081acc943bc1257e50c656
[ "MIT" ]
1
2017-11-07T17:45:52.000Z
2017-11-07T17:45:52.000Z
fluxes.cpp
rocketcrush/suchsolver
18ffeaf13aa0c549f7081acc943bc1257e50c656
[ "MIT" ]
null
null
null
fluxes.cpp
rocketcrush/suchsolver
18ffeaf13aa0c549f7081acc943bc1257e50c656
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <cmath> #include <data.h> #include <constants.h> #include <mesh.h> #include <initialconditions.h> using namespace std; extern vector<node> n; extern vector<element> e; extern vector<type1> tp1; extern vector<type2> tp2; extern vector<type3> tp3; void W(int i) { tp1[...
18.888679
145
0.386775
rocketcrush
38ef2670a4f65f2b81725468725d81d53a46c3c9
392
hpp
C++
08_pass-by-reference/include/vehicle.hpp
JuliusDiestra/cpp-sandbox
6fa3bcb2a284e58136168e1952a8a54621232621
[ "MIT" ]
null
null
null
08_pass-by-reference/include/vehicle.hpp
JuliusDiestra/cpp-sandbox
6fa3bcb2a284e58136168e1952a8a54621232621
[ "MIT" ]
null
null
null
08_pass-by-reference/include/vehicle.hpp
JuliusDiestra/cpp-sandbox
6fa3bcb2a284e58136168e1952a8a54621232621
[ "MIT" ]
null
null
null
#ifndef TOKEN_VEHICLE_H_ #define TOKEN_VEHICLE_H_ #include <iostream> #include <memory> class Vehicle { public: Vehicle(); float GetVelocity(); float GetAcceleration(); void SetVelocity(float velocity_); void SetAcceleration(float acceleration_); private: float ...
17.818182
50
0.660714
JuliusDiestra
38f3ed6d74edc2ff689deff592ba87296c98c9f6
3,771
cpp
C++
libs/assign/v2/speed/tools.cpp
rogard/assign_v2
8735f57177dbee57514b4e80c498dd4b89f845e5
[ "BSL-1.0" ]
null
null
null
libs/assign/v2/speed/tools.cpp
rogard/assign_v2
8735f57177dbee57514b4e80c498dd4b89f845e5
[ "BSL-1.0" ]
null
null
null
libs/assign/v2/speed/tools.cpp
rogard/assign_v2
8735f57177dbee57514b4e80c498dd4b89f845e5
[ "BSL-1.0" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////// // Copyright 2010 Manuel Peinado Gallego // // Distributed under the Boost Software License, Version 1.0. (See // // accompanying file LICENSE_1_0.txt or copy at // ...
27.129496
94
0.529568
rogard
38f659577afa98b56ac96286e15c1d72bdd86810
475
cpp
C++
src/LibCraft/renderEngine/ibo.cpp
Kenny38GH/Test
24c0277de8f98a3b0b3b8a90a300a321a485684c
[ "MIT" ]
1
2021-11-24T16:49:48.000Z
2021-11-24T16:49:48.000Z
src/LibCraft/renderEngine/ibo.cpp
leodlplq/IMACraft
5fec1729238e7e428bd39543dfd1fad521e16047
[ "MIT" ]
null
null
null
src/LibCraft/renderEngine/ibo.cpp
leodlplq/IMACraft
5fec1729238e7e428bd39543dfd1fad521e16047
[ "MIT" ]
null
null
null
// // Created by leodlplq on 18/11/2021. // #include "LibCraft/renderEngine/include/ibo.hpp" ibo::ibo(GLuint *vertices, GLsizeiptr size) { glGenBuffers(1, &_id); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _id); glBufferData(GL_ELEMENT_ARRAY_BUFFER, size, vertices, GL_STATIC_DRAW); } void ibo::bind() { gl...
19
74
0.701053
Kenny38GH
38fa76819bdbf20fe7f3616974344595930a6254
3,293
hpp
C++
src/libsnw_event/future.hpp
Sojourn/snw
e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f
[ "MIT" ]
null
null
null
src/libsnw_event/future.hpp
Sojourn/snw
e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f
[ "MIT" ]
null
null
null
src/libsnw_event/future.hpp
Sojourn/snw
e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f
[ "MIT" ]
null
null
null
#include <cassert> template<typename T> snw::future<T>::future() : promise_(nullptr) , state_(state::broken) { } template<typename T> snw::future<T>::future(promise<T>* promise) : promise_(promise) , state_(state::waiting) { } template<typename T> snw::future<T>::future(T value) : promise_(nullpt...
19.485207
63
0.57607
Sojourn
38fd5226cfb72ff89b1201543e35bcbe39bbbdd8
1,051
cpp
C++
test/ParamResponseTest.cpp
DronMDF/zond
c882400aff5f41569e6deee609ddbe7b2b1bc378
[ "MIT" ]
5
2018-11-14T19:46:49.000Z
2022-01-08T09:00:45.000Z
test/ParamResponseTest.cpp
DronMDF/zond
c882400aff5f41569e6deee609ddbe7b2b1bc378
[ "MIT" ]
223
2018-11-14T19:20:27.000Z
2019-02-13T11:53:23.000Z
test/ParamResponseTest.cpp
DronMDF/zond
c882400aff5f41569e6deee609ddbe7b2b1bc378
[ "MIT" ]
null
null
null
// Copyright (c) 2018-2019 Andrey Valyaev <dron.valyaev@gmail.com> // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. #include "ParamResponseTest.h" #include "../http/ParamResponse.h" #include "../http/RawResponse.h" using namespace std; using...
20.211538
66
0.671741
DronMDF
ac0181486adf913dc29ed5cb8a5939bca47e8b2d
838
hpp
C++
meta/include/mgs/meta/concepts/input_range.hpp
theodelrieu/mgs
965a95e3d539447cc482e915f9c44b3439168a4e
[ "BSL-1.0" ]
24
2020-07-01T13:45:50.000Z
2021-11-04T19:54:47.000Z
meta/include/mgs/meta/concepts/input_range.hpp
theodelrieu/mgs
965a95e3d539447cc482e915f9c44b3439168a4e
[ "BSL-1.0" ]
null
null
null
meta/include/mgs/meta/concepts/input_range.hpp
theodelrieu/mgs
965a95e3d539447cc482e915f9c44b3439168a4e
[ "BSL-1.0" ]
null
null
null
#pragma once #include <type_traits> #include <mgs/meta/concepts/input_iterator.hpp> #include <mgs/meta/concepts/range.hpp> #include <mgs/meta/detected.hpp> #include <mgs/meta/iterator_t.hpp> namespace mgs { namespace meta { template <typename T> struct is_input_range { private: using Iterator = meta::detected_t<it...
20.95
76
0.74105
theodelrieu
ac0483ad1b7c2d1c61cf0a68a621281d07889c6e
194
cpp
C++
OCT18B/CHSERVE.cpp
Chhekur/codechef-solutions
14ca902ea693139de13ffe5b9f602447bf34b79f
[ "MIT" ]
1
2019-03-25T14:14:47.000Z
2019-03-25T14:14:47.000Z
OCT18B/CHSERVE.cpp
Chhekur/codechef-solutions
14ca902ea693139de13ffe5b9f602447bf34b79f
[ "MIT" ]
null
null
null
OCT18B/CHSERVE.cpp
Chhekur/codechef-solutions
14ca902ea693139de13ffe5b9f602447bf34b79f
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; int main(void){ int t;cin>>t; while(t--){ long a,b,c;cin>>a>>b>>c; long e = (a + b) / c; if(e % 2 == 0)cout<<"CHEF\n"; else cout<<"COOK\n"; } }
17.636364
31
0.541237
Chhekur
f19b1b83a103bd226c6c7a5a11a8ce8ec21649fe
920
cc
C++
third_party/blink/renderer/core/frame/navigator_ua.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/blink/renderer/core/frame/navigator_ua.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/blink/renderer/core/frame/navigator_ua.cc
mghgroup/Glide-Browser
6a4c1eaa6632ec55014fee87781c6bbbb92a2af5
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2021-01-05T23:43:46.000Z
2021-01-07T23:36:34.000Z
// Copyright 2019 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 "third_party/blink/renderer/core/frame/navigator_ua.h" namespace blink { NavigatorUAData* NavigatorUA::userAgentData() { NavigatorUAData* ua_...
35.384615
73
0.765217
mghgroup
f19f54632a9a42642580b073ddb19973492bd572
5,582
cpp
C++
Source/Gui3D-master/Gui3DPanel.cpp
shanefarris/CoreGameEngine
5bef275d1cd4e84aa059f2f4f9e97bfa2414d000
[ "MIT" ]
3
2019-04-12T15:22:53.000Z
2022-01-05T02:59:56.000Z
Source/Gui3D-master/Gui3DPanel.cpp
shanefarris/CoreGameEngine
5bef275d1cd4e84aa059f2f4f9e97bfa2414d000
[ "MIT" ]
null
null
null
Source/Gui3D-master/Gui3DPanel.cpp
shanefarris/CoreGameEngine
5bef275d1cd4e84aa059f2f4f9e97bfa2414d000
[ "MIT" ]
2
2019-04-10T22:46:21.000Z
2020-05-27T16:21:37.000Z
/* Gui3D ------- Copyright (c) 2012 Valentin Frechaud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
36.966887
94
0.64296
shanefarris
f1a4c44e616b221904cda01046e4865fa97fe64e
742
cpp
C++
src/LuminoEngine/sandbox/Example_Shader.cpp
infinnie/Lumino
921caabdbcb91528a2aac290e31d650628bc3bed
[ "MIT" ]
null
null
null
src/LuminoEngine/sandbox/Example_Shader.cpp
infinnie/Lumino
921caabdbcb91528a2aac290e31d650628bc3bed
[ "MIT" ]
null
null
null
src/LuminoEngine/sandbox/Example_Shader.cpp
infinnie/Lumino
921caabdbcb91528a2aac290e31d650628bc3bed
[ "MIT" ]
null
null
null
 #include <LuminoEngine.hpp> using namespace ln; class App_Example_Shader : public Application { virtual void onInit() override { Engine::renderView()->setGuideGridEnabled(true); Engine::mainCamera()->addComponent(CameraOrbitControlComponent::create()); auto plane = PlaneMesh::create(...
21.2
106
0.657682
infinnie
f1a57afa200e7da6937ae658156a22b31fb8054f
456
cpp
C++
Leetcode/35.SearchInsertPosition/SearchInsertPosition.cpp
juancgar/CompetitiveProgramming
9ff93ba14d9d5f45314a18cc78bd2d44de0b9fec
[ "MIT" ]
null
null
null
Leetcode/35.SearchInsertPosition/SearchInsertPosition.cpp
juancgar/CompetitiveProgramming
9ff93ba14d9d5f45314a18cc78bd2d44de0b9fec
[ "MIT" ]
null
null
null
Leetcode/35.SearchInsertPosition/SearchInsertPosition.cpp
juancgar/CompetitiveProgramming
9ff93ba14d9d5f45314a18cc78bd2d44de0b9fec
[ "MIT" ]
null
null
null
int searchInsert(vector<int>& nums, int target) { int begin = 0; int end = nums.size(); end > 0 ? end = end-1: end = begin; int mid; while(begin <= end) { mid = begin + (end-begin)/2; if(nums[mid] == target) return mid; else if(nums[mid] ...
22.8
50
0.414474
juancgar
f1a68d13344afd1477dfc29135e40432a55a63b1
1,052
cpp
C++
extra/news/src/xk/iat/ImageAnnotation/iat-stage/listtool.cpp
scignscape/PGVM
e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0
[ "BSL-1.0" ]
null
null
null
extra/news/src/xk/iat/ImageAnnotation/iat-stage/listtool.cpp
scignscape/PGVM
e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0
[ "BSL-1.0" ]
null
null
null
extra/news/src/xk/iat/ImageAnnotation/iat-stage/listtool.cpp
scignscape/PGVM
e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0
[ "BSL-1.0" ]
null
null
null
#include "listtool.h" #include "ui_listtool.h" ListTool::ListTool(QWidget *parent):QDialog(parent),ui(new Ui::ListTool){ ui->setupUi(this); } ListTool::~ListTool(){ delete ui; } void ListTool::on_textObject_textChanged() { } void ListTool::on_textInstance_textChanged() { } void ListT...
21.04
99
0.615019
scignscape
f1a7d76d699ec0852a16f4325b7452f4240f7166
1,244
cpp
C++
source/Input/Queue.cpp
kurocha/input
619cbe901ebb2cfd9dd97235d30e596edc96aa14
[ "MIT", "Unlicense" ]
null
null
null
source/Input/Queue.cpp
kurocha/input
619cbe901ebb2cfd9dd97235d30e596edc96aa14
[ "MIT", "Unlicense" ]
null
null
null
source/Input/Queue.cpp
kurocha/input
619cbe901ebb2cfd9dd97235d30e596edc96aa14
[ "MIT", "Unlicense" ]
null
null
null
// // Queue.cpp // This file is part of the "Input" project and released under the MIT License. // // Created by Samuel Williams on 23/2/2019. // Copyright, 2019, by Samuel Williams. All rights reserved. // #include "Queue.hpp" #include "ResizeEvent.hpp" #include "ButtonEvent.hpp" #include "MotionEvent.hpp" #incl...
18.567164
80
0.686495
kurocha
f1a8e7362e9df7d5424c5caab15669ef09c32c1b
1,280
cpp
C++
3/main.cpp
ls171433/leetcode
863d562153382f3d1480deb7ab453c15a72da6c4
[ "MIT" ]
null
null
null
3/main.cpp
ls171433/leetcode
863d562153382f3d1480deb7ab453c15a72da6c4
[ "MIT" ]
null
null
null
3/main.cpp
ls171433/leetcode
863d562153382f3d1480deb7ab453c15a72da6c4
[ "MIT" ]
null
null
null
#include <algorithm> #include <iostream> #include <string> using namespace std; class Solution { public: int lengthOfLongestSubstring(string s) { int longest = 0; size_t indexs[256]; size_t repeated_index = (size_t)(-1); for (size_t &index : indexs) { index ...
22.45614
74
0.435156
ls171433
f1b056fb7ca09893bca8210a477e191668acb722
709
cpp
C++
src/game/Hazard.cpp
HaedHutner/Hazard
88a50582dac83a5e80bce94c9faadd5cd4618279
[ "MIT" ]
null
null
null
src/game/Hazard.cpp
HaedHutner/Hazard
88a50582dac83a5e80bce94c9faadd5cd4618279
[ "MIT" ]
null
null
null
src/game/Hazard.cpp
HaedHutner/Hazard
88a50582dac83a5e80bce94c9faadd5cd4618279
[ "MIT" ]
null
null
null
#include "Hazard.h" Hazard::Hazard() : Game(), config("res/config/config.json") { name = "Hazard"; log_info("Width: %d, Height: %d, Test: %f", config.getInt({"window", "width"}), config.getInt({"window", "height"}), config.getDouble({"window", "test"}) ); glm::vec3 color...
20.257143
62
0.554302
HaedHutner
f1b0a041aa928c91071daf898bd919066ceeba51
1,727
cpp
C++
SDL Game/SDL Game/Behaviours/Mover.cpp
BrunoAOR/SDL-Game
090a09e2c19d18b000769f353c5e7727d60fe5f6
[ "MIT" ]
null
null
null
SDL Game/SDL Game/Behaviours/Mover.cpp
BrunoAOR/SDL-Game
090a09e2c19d18b000769f353c5e7727d60fe5f6
[ "MIT" ]
null
null
null
SDL Game/SDL Game/Behaviours/Mover.cpp
BrunoAOR/SDL-Game
090a09e2c19d18b000769f353c5e7727d60fe5f6
[ "MIT" ]
null
null
null
#include "Mover.h" #include "Engine/API/API.h" #include "Engine/GameObjects/GameObject.h" #include "Engine/Components/Transforms/Transform.h" #include "Engine/Vector2.h" Mover::Mover() { useWASD = false; speed = 100; speedStep = 50; } void Mover::update() { Vector2 motion(0, 0); // Check speed if (InputAPI:...
16.292453
56
0.634627
BrunoAOR
f1b0fb4bdda39f7ee4cfec67a370d89ddd7ac883
13,926
cpp
C++
API/src/Scene.cpp
cnsuhao/OtterUI-1
07149c970adaaa8c7696efa9ad7a92137f0a4557
[ "MIT" ]
10
2016-06-03T02:18:37.000Z
2021-02-03T15:14:50.000Z
API/src/Scene.cpp
ppiecuch/OtterUI
07149c970adaaa8c7696efa9ad7a92137f0a4557
[ "MIT" ]
null
null
null
API/src/Scene.cpp
ppiecuch/OtterUI
07149c970adaaa8c7696efa9ad7a92137f0a4557
[ "MIT" ]
5
2017-07-31T07:25:50.000Z
2021-03-16T11:45:31.000Z
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "Common/Platforms.h" #include "Data/OtterData.h" #include "Graphics/Graphics.h" #include "Scene.h" #include "View.h" #include "Font.h" #include "Memory/Memory.h" namespace Otter { /* Default Constructor */ Scene::Scene(System...
22.069731
108
0.665087
cnsuhao
f1b16795a51cf46ab86bd6b0a21cb1319c93f2f9
2,085
cpp
C++
GLGUIWindowManager.cpp
BernardIgiri/archive-OpenGLTechDemonstrator
d18d8d16833f2d8a95bb7f5f29f2952708938573
[ "MIT" ]
null
null
null
GLGUIWindowManager.cpp
BernardIgiri/archive-OpenGLTechDemonstrator
d18d8d16833f2d8a95bb7f5f29f2952708938573
[ "MIT" ]
null
null
null
GLGUIWindowManager.cpp
BernardIgiri/archive-OpenGLTechDemonstrator
d18d8d16833f2d8a95bb7f5f29f2952708938573
[ "MIT" ]
null
null
null
#include "GLGUIWindowManager.h" #include "SystemTimer.h" typedef struct { CInputManager *cInputMan; CGLGUIWINDOWGENERATOR *cWinGen; } GLGGUISWINITDATA_t; bool GLGUIRenderWin(CGLGUIWindow *&window,int windowType, void *data, int x, int y, int screenWidth, int screenHeight) { static width=640,height=480; if (screen...
31.590909
147
0.753477
BernardIgiri
f1b6df40f02c068d419034453b13e697531733b3
1,169
cpp
C++
test/ExtensionWordTest.cpp
PaulTrampert/GenieSys
637e7f764bc7faac8d0b5afcf22646e200562f6a
[ "MIT" ]
null
null
null
test/ExtensionWordTest.cpp
PaulTrampert/GenieSys
637e7f764bc7faac8d0b5afcf22646e200562f6a
[ "MIT" ]
82
2020-12-17T04:03:10.000Z
2022-03-24T17:54:28.000Z
test/ExtensionWordTest.cpp
PaulTrampert/GenieSys
637e7f764bc7faac8d0b5afcf22646e200562f6a
[ "MIT" ]
null
null
null
// // Created by paul.trampert on 11/26/2020. // #include <gtest/gtest.h> #include <GenieSys/ExtensionWord.h> TEST(ExtensionWord, DecodeBriefExtensionWord) { uint16_t word = 0b1010101000000011; auto result = GenieSys::ExtensionWord(word); EXPECT_EQ(GenieSys::M68K_REG_TYPE_ADDR, result.getIdxRegType()); ...
37.709677
74
0.740804
PaulTrampert
f1b77b495c0fe88863915c977078ffa07b1236a2
604
cpp
C++
Chapter_6_Loops/Program1.cpp
othneildrew/CPP-Programming-Practices
27a20c00b395446a7d2e0dd4b199f4cd9e35591b
[ "MIT" ]
1
2020-12-03T15:26:20.000Z
2020-12-03T15:26:20.000Z
Chapter_6_Loops/Program1.cpp
othneildrew/CPP-Programming-Practices
27a20c00b395446a7d2e0dd4b199f4cd9e35591b
[ "MIT" ]
null
null
null
Chapter_6_Loops/Program1.cpp
othneildrew/CPP-Programming-Practices
27a20c00b395446a7d2e0dd4b199f4cd9e35591b
[ "MIT" ]
null
null
null
// Chapter 6: Program 1 /*** Write a C++ program to read ten students' names and display them. **/ # include <iostream> # include <string> using namespace std; int main(void) { string Name; int LCV, Size = 10; for(LCV = 0; LCV < Size; LCV++) { if(LCV == 0) cout <<"\n\t Pl...
18.875
66
0.516556
othneildrew
f1b7f3bc74e80fa36b8323602b2fbc7fa005694e
947
cpp
C++
source/Ch18/main.cpp
Koma52/UDProg-Introduction
ca8cf7f7a2c11559d4f5b3c8ad5dd55040e99762
[ "CC0-1.0" ]
null
null
null
source/Ch18/main.cpp
Koma52/UDProg-Introduction
ca8cf7f7a2c11559d4f5b3c8ad5dd55040e99762
[ "CC0-1.0" ]
null
null
null
source/Ch18/main.cpp
Koma52/UDProg-Introduction
ca8cf7f7a2c11559d4f5b3c8ad5dd55040e99762
[ "CC0-1.0" ]
1
2020-09-12T11:41:44.000Z
2020-09-12T11:41:44.000Z
#include "../std_lib_facilities.h" int* ga = new int[10] { 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 }; void f(int* array, int n){ int* la = new int[10]; for (int i = 0; i < 10; ++i){ la[i] = ga[i]; } for (int i = 0; i < 10; ++i){ cout << la[i] << " "; } cout << endl; int* ...
14.796875
64
0.393875
Koma52
f1b89d4d3c8d3d92409904dd78483cd83ba357f6
1,554
cpp
C++
client/main.cpp
master-gekus/thrift_test
cbf6b763706f1212e4fcac377b2a5225ea7cd033
[ "Unlicense" ]
null
null
null
client/main.cpp
master-gekus/thrift_test
cbf6b763706f1212e4fcac377b2a5225ea7cd033
[ "Unlicense" ]
null
null
null
client/main.cpp
master-gekus/thrift_test
cbf6b763706f1212e4fcac377b2a5225ea7cd033
[ "Unlicense" ]
null
null
null
#include "SharedService.h" #include <cstdio> #include <thrift/protocol/TBinaryProtocol.h> #include <thrift/transport/TSocket.h> #include <thrift/transport/TBufferTransports.h> using namespace std; using namespace apache::thrift; using namespace apache::thrift::protocol; using namespace apache::thrift::transport; u...
27.75
77
0.602317
master-gekus
f1b9ddc57c32d1c2385dbe1d61224e24c989287a
1,330
cpp
C++
engine/time/source/SwimmingMovementAccumulationChecker.cpp
sidav/shadow-of-the-wyrm
747afdeebed885b1a4f7ab42f04f9f756afd3e52
[ "MIT" ]
60
2019-08-21T04:08:41.000Z
2022-03-10T13:48:04.000Z
engine/time/source/SwimmingMovementAccumulationChecker.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
3
2021-03-18T15:11:14.000Z
2021-10-20T12:13:07.000Z
engine/time/source/SwimmingMovementAccumulationChecker.cpp
cleancoindev/shadow-of-the-wyrm
51b23e98285ecb8336324bfd41ebf00f67b30389
[ "MIT" ]
8
2019-11-16T06:29:05.000Z
2022-01-23T17:33:43.000Z
#include "CombatManager.hpp" #include "Game.hpp" #include "MapUtils.hpp" #include "SwimmingCalculator.hpp" #include "SwimmingMovementAccumulationChecker.hpp" #include "RNG.hpp" // Check for damage due to swimming past the point of exhaustion. void SwimmingMovementAccumulationChecker::check(CreaturePtr creature) { if...
32.439024
140
0.728571
sidav
f1bd0a6c75cf98cba651784528e7a7d0b476d9cf
4,344
cpp
C++
gl-spline/Texture.cpp
dlarudgus20/gl-spline
bc1c5ab71e8522c6cf0bbf35c7673e9f98c5b105
[ "BSD-2-Clause" ]
null
null
null
gl-spline/Texture.cpp
dlarudgus20/gl-spline
bc1c5ab71e8522c6cf0bbf35c7673e9f98c5b105
[ "BSD-2-Clause" ]
null
null
null
gl-spline/Texture.cpp
dlarudgus20/gl-spline
bc1c5ab71e8522c6cf0bbf35c7673e9f98c5b105
[ "BSD-2-Clause" ]
null
null
null
// Copyright (c) 2014, 임경현 // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, this // list of conditions and the f...
28.96
112
0.700046
dlarudgus20
f1bdd927a07345f35ee7e40bd6e687692fc0f579
3,795
cpp
C++
src/Engine/TextLine.cpp
Terryhata6/Mengine
dfe36fdc84d7398fbbbd199feffc46c6f157f1d4
[ "MIT" ]
null
null
null
src/Engine/TextLine.cpp
Terryhata6/Mengine
dfe36fdc84d7398fbbbd199feffc46c6f157f1d4
[ "MIT" ]
null
null
null
src/Engine/TextLine.cpp
Terryhata6/Mengine
dfe36fdc84d7398fbbbd199feffc46c6f157f1d4
[ "MIT" ]
null
null
null
#include "TextLine.h" #include "Kernel/Logger.h" #include "utf8.h" namespace Mengine { ////////////////////////////////////////////////////////////////////////// TextLine::TextLine( uint32_t _layout, float _charOffset ) : m_layout( _layout ) , m_length( 0.f ) , m_charOffse...
33.289474
152
0.436627
Terryhata6
f1beb97847c09949f33987b4e64fb137edf47025
74
cpp
C++
src/rosic_NumberManipulations.cpp
NeoBirth/rs-303
bf3cda07e354809b2bdee389d8ee230210f741c4
[ "MIT" ]
13
2019-11-04T17:54:43.000Z
2022-03-30T12:31:58.000Z
src/rosic_NumberManipulations.cpp
NeoBirth/rs-303
bf3cda07e354809b2bdee389d8ee230210f741c4
[ "MIT" ]
null
null
null
src/rosic_NumberManipulations.cpp
NeoBirth/rs-303
bf3cda07e354809b2bdee389d8ee230210f741c4
[ "MIT" ]
5
2020-04-10T06:23:43.000Z
2022-03-12T18:15:59.000Z
#include "rosic_NumberManipulations.h" using namespace rosic;
9.25
39
0.702703
NeoBirth
f1becde937ef49393472de6ff5c3a4cdc6354ea8
51,253
cpp
C++
source/game/anim/Anim.cpp
JasonHutton/QWTA
7f42dc70eb230cf69a8048fc98d647a486e752f1
[ "MIT" ]
2
2021-05-02T18:37:48.000Z
2021-07-18T16:18:14.000Z
source/game/anim/Anim.cpp
JasonHutton/QWTA
7f42dc70eb230cf69a8048fc98d647a486e752f1
[ "MIT" ]
null
null
null
source/game/anim/Anim.cpp
JasonHutton/QWTA
7f42dc70eb230cf69a8048fc98d647a486e752f1
[ "MIT" ]
null
null
null
// Copyright (C) 2007 Id Software, Inc. // #include "../precompiled.h" #pragma hdrstop #if defined( _DEBUG ) && !defined( ID_REDIRECT_NEWDELETE ) #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #include "Anim.h" #include "../../framework/Licensee.h" bool idAnimMana...
28.697088
162
0.604609
JasonHutton
f1bee58ab434b40987cd26f207f244d178b46bff
1,334
hpp
C++
clstatphys/clstatphys/tools/auto_correlation_function.hpp
FIshikawa/ClassicalStatPhys
e4010480d3c7977829c1b3fdeaf51401a2409373
[ "MIT" ]
null
null
null
clstatphys/clstatphys/tools/auto_correlation_function.hpp
FIshikawa/ClassicalStatPhys
e4010480d3c7977829c1b3fdeaf51401a2409373
[ "MIT" ]
2
2020-01-21T08:54:05.000Z
2020-01-21T09:29:10.000Z
clstatphys/clstatphys/tools/auto_correlation_function.hpp
FIshikawa/ClassicalStatPhys
e4010480d3c7977829c1b3fdeaf51401a2409373
[ "MIT" ]
2
2020-07-18T03:36:32.000Z
2021-07-21T22:58:27.000Z
#ifndef AUTO_CORRELATION_FUNCTION_HPP #define AUTO_CORRELATION_FUNCTION_HPP #include <string> #include <vector> #include <cmath> namespace correlation{ class AutoCorrelationFunction{ public: AutoCorrelationFunction(int dim=1, int Nl=1) : dim_(dim), Nl_(Nl), counter_(0), correlation_(dim,0.0), mean_(dim,0.0){} vo...
23.821429
121
0.623688
FIshikawa
f1c3743bb7c377984f1883af63580bbba63f752d
1,839
cc
C++
device/serial/buffer.cc
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
device/serial/buffer.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
device/serial/buffer.cc
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
// 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 "base/numerics/safe_conversions.h" #include "device/serial/buffer.h" #include "net/base/io_buffer.h" namespace device { ReadOnlyBuffer::~ReadOn...
28.734375
79
0.69603
zipated
f1c408765e190153494a9c37b38d278a39d71c1e
351
cpp
C++
module-01/ex01/ZombieHorde.cpp
kotabrog/CPP-module
db858e57ac194d4ca9b38667ff3820418b42e9c8
[ "MIT" ]
1
2021-09-05T14:59:20.000Z
2021-09-05T14:59:20.000Z
module-01/ex01/ZombieHorde.cpp
kotabrog/CPP-module
db858e57ac194d4ca9b38667ff3820418b42e9c8
[ "MIT" ]
null
null
null
module-01/ex01/ZombieHorde.cpp
kotabrog/CPP-module
db858e57ac194d4ca9b38667ff3820418b42e9c8
[ "MIT" ]
null
null
null
#include "Zombie.hpp" Zombie* zombieHorde( int N, std::string name ) { Zombie *z; if (N < 0) return (NULL); try { z = new Zombie[N]; } catch(const std::exception& e) { std::cerr << e.what() << '\n'; exit(1); } while (N--) { z[N].set_nam...
13.5
46
0.435897
kotabrog
f1c8958542fa299f3a4e485f1ab73146a8dd6dec
5,636
cpp
C++
utils/nlxml_transformer.cpp
Twinklebear/nlxml
2044a89c8b0b1d69c7762dc48406770f4b7c9834
[ "MIT" ]
null
null
null
utils/nlxml_transformer.cpp
Twinklebear/nlxml
2044a89c8b0b1d69c7762dc48406770f4b7c9834
[ "MIT" ]
1
2019-03-18T00:37:08.000Z
2019-03-18T21:45:35.000Z
utils/nlxml_transformer.cpp
Twinklebear/nlxml
2044a89c8b0b1d69c7762dc48406770f4b7c9834
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <functional> #include <glm/glm.hpp> #include <glm/ext.hpp> #include "nlxml.h" using namespace nlxml; template<typename F> void transform_neuron_data(nlxml::NeuronData &inout, const F &transform) { auto transform_points = [&](auto &points) { std::transform(std::begi...
33.349112
113
0.6478
Twinklebear
f1c8a4b71dd5ac17a96688419b510a09f599d7cf
7,917
cpp
C++
lib/Resources/src/resources.cpp
jfcameron/WebAssembly-C-Cpp-Reference
b0d276565097920e700776fbf621f24ef82972cd
[ "MIT" ]
1
2018-06-05T07:54:52.000Z
2018-06-05T07:54:52.000Z
lib/Resources/src/resources.cpp
jfcameron/WebAssembly-C-Cpp-Reference
b0d276565097920e700776fbf621f24ef82972cd
[ "MIT" ]
8
2018-08-11T05:13:57.000Z
2018-11-15T00:14:42.000Z
lib/Resources/src/resources.cpp
jfcameron/WebAssembly-C-Cpp-Reference
b0d276565097920e700776fbf621f24ef82972cd
[ "MIT" ]
null
null
null
// © 2018 Joseph Cameron - All Rights Reserved #include <gdk/locking_queue.h> #include <gdk/resources.h> #include <gdk/resources_protected.h> #include <gdk/resources_private.h> #include <gdkresources/buildinfo.h> #if defined JFC_TARGET_PLATFORM_Emscripten #include <emscripten.h> #include <emscripten/fetch.h> #endif ...
38.808824
186
0.610206
jfcameron
f1c93a2a9c228fe9a34700902c910d3bba0a5741
355
hpp
C++
src/Wave/IVoice.hpp
clauderichard/Wgx
eec7bbab51e2245191424895073ab688ff6f8ac4
[ "MIT" ]
null
null
null
src/Wave/IVoice.hpp
clauderichard/Wgx
eec7bbab51e2245191424895073ab688ff6f8ac4
[ "MIT" ]
null
null
null
src/Wave/IVoice.hpp
clauderichard/Wgx
eec7bbab51e2245191424895073ab688ff6f8ac4
[ "MIT" ]
null
null
null
#ifndef __IVOICE_HPP__ #define __IVOICE_HPP__ #include "IWaveSampler.hpp" #include <vector> using namespace std; class IVoice : public IWaveSampler { public: virtual ~IVoice(){} virtual IVoice *copy() = 0; virtual void resetParams(size_t numSamples, initializer_list<double> params) = 0; vi...
20.882353
86
0.695775
clauderichard
f1c967503ead248e5269a51c98a133a1912ecf5d
534
cpp
C++
src/duktype/AsyncObjectScope.cpp
CasperTech/duktype
dbfd2838d23c3c2d8c3574f61e23f197c00b0fa2
[ "MIT" ]
1
2021-11-01T20:18:08.000Z
2021-11-01T20:18:08.000Z
src/duktype/AsyncObjectScope.cpp
CasperTech/duktype
dbfd2838d23c3c2d8c3574f61e23f197c00b0fa2
[ "MIT" ]
1
2021-01-28T17:46:47.000Z
2021-01-28T17:46:47.000Z
src/duktype/AsyncObjectScope.cpp
CasperTech/duktype
dbfd2838d23c3c2d8c3574f61e23f197c00b0fa2
[ "MIT" ]
null
null
null
#include "AsyncObjectScope.h" #include "AsyncContext.h" namespace Duktype { void AsyncObjectScope::createObjectAsync(const Nan::FunctionCallbackInfo<v8::Value> &info) { if (info.Length() > 0 && info[0]->IsString()) { std::string objNameStr = *Nan::Utf8String(info[0]); ...
29.666667
95
0.586142
CasperTech
f1ca0b122a3a56602d7b95ec703416109cf92159
15,400
cpp
C++
code/src/qvgeNodeEditorUIController.cpp
turbanoff/qvge
53508adadb4ca566c011b2b41d432030a5fa5fac
[ "MIT" ]
null
null
null
code/src/qvgeNodeEditorUIController.cpp
turbanoff/qvge
53508adadb4ca566c011b2b41d432030a5fa5fac
[ "MIT" ]
null
null
null
code/src/qvgeNodeEditorUIController.cpp
turbanoff/qvge
53508adadb4ca566c011b2b41d432030a5fa5fac
[ "MIT" ]
null
null
null
/* This file is a part of QVGE - Qt Visual Graph Editor (c) 2016-2018 Ars L. Masiuk (ars.masiuk@gmail.com) It can be used freely, maintaining the information above. */ #include <qvgeNodeEditorUIController.h> #include <qvgeMainWindow.h> #include <CCommutationTable.h> #include <CSceneOptionsDialog.h> #include <CNodeE...
32.016632
112
0.745584
turbanoff
f1cda3d7607fd6ff5c36aa04ffde53f78ec6eef5
2,159
hpp
C++
BoostGraph/include/ATG.hpp
Arka2009/ita3e
1b33e9a0ca167449c68596b7065ea84af2ed3942
[ "BSD-2-Clause" ]
null
null
null
BoostGraph/include/ATG.hpp
Arka2009/ita3e
1b33e9a0ca167449c68596b7065ea84af2ed3942
[ "BSD-2-Clause" ]
1
2017-04-07T19:19:09.000Z
2017-04-07T19:19:09.000Z
BoostGraph/include/ATG.hpp
Arka2009/ita3e
1b33e9a0ca167449c68596b7065ea84af2ed3942
[ "BSD-2-Clause" ]
null
null
null
#ifndef DEF_ATG_H #define DEF_ATG_H #include <iostream> #include <vector> #include <algorithm> #include <set> #include <queue> #include <boost/graph/adjacency_list.hpp> void testATG(int N, double p); void randDAGGen(); std::ostream& operator<<(std::ostream &os, const NodeType &et); class AppTaskGraph { private:...
42.333333
99
0.633627
Arka2009
f1ce6b6911bff1a229eb1bd792ce95f284ff51ac
1,860
cpp
C++
src/0.3.7-R1/KeyStuff.cpp
DarkP1xel/SAMP-API
0d43a3603239f2f4bc65b8305ffc72177386cc29
[ "MIT" ]
7
2019-09-23T10:19:40.000Z
2021-07-25T06:17:27.000Z
src/0.3.7-R1/KeyStuff.cpp
DarkP1xel/SAMP-API
0d43a3603239f2f4bc65b8305ffc72177386cc29
[ "MIT" ]
null
null
null
src/0.3.7-R1/KeyStuff.cpp
DarkP1xel/SAMP-API
0d43a3603239f2f4bc65b8305ffc72177386cc29
[ "MIT" ]
1
2021-04-11T17:13:00.000Z
2021-04-11T17:13:00.000Z
/* This is a SAMP (0.3.7-R1) API project file. Developer: LUCHARE <luchare.dev@gmail.com> See more here https://github.com/LUCHARE/SAMP-API Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved. */ #include "KeyStuff.h" CPad *&SAMP::KeyStuff::pInternalKeys = *(CPad **)SAMP_ADDROF(0...
31.525424
82
0.682796
DarkP1xel
f1d08d0158b9c32fb53f4b7af8c2d00d2c1edbd8
710
hpp
C++
src/mettle/test_command.hpp
jimporter/mettle
c65aa75b04a08b550b3572f4c080c68e26ad86fa
[ "BSD-3-Clause" ]
82
2015-01-05T10:06:44.000Z
2022-03-07T01:41:28.000Z
src/mettle/test_command.hpp
JohnGalbraith/mettle
38b70fe1dc0f30e98b768a37108196328182b5f4
[ "BSD-3-Clause" ]
44
2015-01-08T08:40:54.000Z
2021-10-29T23:28:56.000Z
src/mettle/test_command.hpp
jimporter/mettle
c65aa75b04a08b550b3572f4c080c68e26ad86fa
[ "BSD-3-Clause" ]
13
2015-06-23T07:41:54.000Z
2020-02-14T15:35:07.000Z
#ifndef INC_METTLE_SRC_METTLE_TEST_COMMAND_HPP #define INC_METTLE_SRC_METTLE_TEST_COMMAND_HPP #include <memory> #include <string> #include <vector> #include <boost/any.hpp> namespace mettle { class test_command { public: test_command(std::string command); const std::string & command() const { ret...
18.684211
70
0.657746
jimporter
f1d0e5c99102573c592e0691fd77267909efc6f1
600
cpp
C++
samples/cppassert.cpp
aminya/cppassert
a686985e16698dfbcfa60e512c33a2eedf240892
[ "BSD-3-Clause" ]
3
2016-05-12T13:21:26.000Z
2019-02-06T14:00:24.000Z
samples/cppassert.cpp
aminya/cppassert
a686985e16698dfbcfa60e512c33a2eedf240892
[ "BSD-3-Clause" ]
1
2022-02-17T23:07:54.000Z
2022-02-17T23:07:54.000Z
samples/cppassert.cpp
DariuszOstolski/cppassert
3b0c3f800297e368a7c452ec039c3eba268fbfd3
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <cppassert/Assertion.hpp> using namespace std; int check_args(int size) { const int ARGS_MIN = 2; (void)ARGS_MIN; //bool condition = (size!=0); CPP_ASSERT_ALWAYS(size!=0, "Size shouldnt be 0"); return 0; } int main(int argc, char **) { const int ARGS_MAX = 5; s...
24
61
0.6
aminya
f1d1cace8a50a0dc5605adfcf33c39b328c9248a
644
cpp
C++
P/2032.cpp
langonginc/cfile
46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f
[ "MIT" ]
1
2020-09-13T02:51:25.000Z
2020-09-13T02:51:25.000Z
P/2032.cpp
langonginc/cfile
46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f
[ "MIT" ]
null
null
null
P/2032.cpp
langonginc/cfile
46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f
[ "MIT" ]
1
2021-06-05T03:37:57.000Z
2021-06-05T03:37:57.000Z
#include<iostream> #include<stdio.h> #include<deque> #define max(_1,_2) ((_1)>(_2)?(_1):(_2)) #define min(_1,_2) ((_1)>(_2)?(_1):(_2)) using namespace std; struct cr{ int num,id; inline void put(int _num,int _id){ num=_num,id=_id; } }a[1000005]; int num,n,m; void work(int _if_min){ deque<cr>q; for(int i=1;i<=n;i...
17.888889
60
0.56677
langonginc
f1d369cce4acafd0ffd0df540a2895f7eb84e1bc
231
hpp
C++
cegui/src/ScriptModules/Python/bindings/output/CEGUI/AnimationManager.pypp.hpp
OpenTechEngine-Libraries/CEGUI
6f00952d31f318f9482766d1ad2206cb540a78b9
[ "MIT" ]
257
2020-01-03T10:13:29.000Z
2022-03-26T14:55:12.000Z
cegui/src/ScriptModules/Python/bindings/output/CEGUI/AnimationManager.pypp.hpp
OpenTechEngine-Libraries/CEGUI
6f00952d31f318f9482766d1ad2206cb540a78b9
[ "MIT" ]
116
2020-01-09T18:13:13.000Z
2022-03-15T18:32:02.000Z
cegui/src/ScriptModules/Python/bindings/output/CEGUI/AnimationManager.pypp.hpp
OpenTechEngine-Libraries/CEGUI
6f00952d31f318f9482766d1ad2206cb540a78b9
[ "MIT" ]
58
2020-01-09T03:07:02.000Z
2022-03-22T17:21:36.000Z
// This file has been generated by Py++. #ifndef AnimationManager_hpp__pyplusplus_wrapper #define AnimationManager_hpp__pyplusplus_wrapper void register_AnimationManager_class(); #endif//AnimationManager_hpp__pyplusplus_wrapper
25.666667
48
0.865801
OpenTechEngine-Libraries
f1d547e1a53f5d72571bcdaa396fdb7408d6c43b
767
cpp
C++
PyCommon/externalLibs/BaseLib/motion/Retarget_JH/MATHCLASS/cross_product.cpp
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
4
2017-04-15T09:16:10.000Z
2018-04-19T09:28:54.000Z
PyCommon/externalLibs/BaseLib/motion/Retarget_JH/MATHCLASS/cross_product.cpp
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
null
null
null
PyCommon/externalLibs/BaseLib/motion/Retarget_JH/MATHCLASS/cross_product.cpp
hpgit/HumanFoot
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
[ "Apache-2.0" ]
1
2021-07-26T15:13:55.000Z
2021-07-26T15:13:55.000Z
#include "mathclass.h" namespace jhm { position operator*( position const& a, unit_vector const& b ) { position c; c.p[0] = a.p[1]*b.p[2] - a.p[2]*b.p[1]; c.p[1] = a.p[2]*b.p[0] - a.p[0]*b.p[2]; c.p[2] = a.p[0]*b.p[1] - a.p[1]*b.p[0]; return c; } position operator*( unit_vector...
18.707317
62
0.445893
hpgit
f1d558f3d6294a7cebd557d1c8c20082674e5bf0
7,024
cpp
C++
examples/Example_reconstruct_image.cpp
MSusik/LibAPR
5338da714905577642342c80120524bdebab5bb6
[ "Apache-2.0" ]
null
null
null
examples/Example_reconstruct_image.cpp
MSusik/LibAPR
5338da714905577642342c80120524bdebab5bb6
[ "Apache-2.0" ]
null
null
null
examples/Example_reconstruct_image.cpp
MSusik/LibAPR
5338da714905577642342c80120524bdebab5bb6
[ "Apache-2.0" ]
null
null
null
// // Created by cheesema on 14/03/17. // //////////////////////////////////////// /// /// Bevan Cheeseman 2018 /// const char* usage = R"( APR pixel image reconstruction example: Outputs various reconstructed images from the APR. Usage: (using *_apr.h5 output of Example_get_apr) Example_reconstruct_image -i input...
31.63964
120
0.632118
MSusik
f1d637ee274d74c7f3dc883b100d9db2cd160fd2
329
cpp
C++
tests/FirstBadVersionTest.cpp
yanzhe-chen/LeetCode
d82f0b9721ea613ab216c78e7286671d0e9e4187
[ "MIT" ]
43
2015-10-10T12:59:52.000Z
2018-07-11T18:07:00.000Z
tests/FirstBadVersionTest.cpp
yanzhe-chen/LeetCode
d82f0b9721ea613ab216c78e7286671d0e9e4187
[ "MIT" ]
null
null
null
tests/FirstBadVersionTest.cpp
yanzhe-chen/LeetCode
d82f0b9721ea613ab216c78e7286671d0e9e4187
[ "MIT" ]
11
2015-10-10T14:41:11.000Z
2018-07-28T06:03:16.000Z
#include "catch.hpp" #include "FirstBadVersion.hpp" TEST_CASE("First Bad Version") { const int N = 2126753390; const int M = 1702766719; auto isBad = [](int version) { return version >= M; }; FirstBadVersion s(isBad); SECTION("Sample test") { REQUIRE(s.firstBadVersion(N) == M);...
20.5625
43
0.601824
yanzhe-chen
f1d751e953d0eed8d2a4d0d74293687e75404e1c
2,719
cpp
C++
Shadows/Game.cpp
EmilianC/Jewel3D-Samples
077c5f2531814ffe9041021c5ba5fe93e0461348
[ "MIT" ]
6
2017-02-04T21:47:01.000Z
2019-06-01T00:33:56.000Z
Shadows/Game.cpp
EmilianC/Gemcutter-Samples
077c5f2531814ffe9041021c5ba5fe93e0461348
[ "MIT" ]
null
null
null
Shadows/Game.cpp
EmilianC/Gemcutter-Samples
077c5f2531814ffe9041021c5ba5fe93e0461348
[ "MIT" ]
3
2018-04-12T04:09:15.000Z
2019-12-19T20:06:49.000Z
#include "Game.h" #include <gemcutter/Entity/Hierarchy.h> #include <gemcutter/Input/Input.h> #include <gemcutter/Math/Matrix.h> #include <gemcutter/Rendering/Camera.h> #include <gemcutter/Rendering/Light.h> #include <gemcutter/Rendering/Mesh.h> #include <gemcutter/Resource/Material.h> #include <gemcutter/Resource/Mode...
26.920792
93
0.709084
EmilianC
f1d81120239f2881c17133155996f17f280e2788
1,966
ipp
C++
implement/oglplus/images/sphere_bmap.ipp
matus-chochlik/oglplus
76dd964e590967ff13ddff8945e9dcf355e0c952
[ "BSL-1.0" ]
364
2015-01-01T09:38:23.000Z
2022-03-22T05:32:00.000Z
implement/oglplus/images/sphere_bmap.ipp
matus-chochlik/oglplus
76dd964e590967ff13ddff8945e9dcf355e0c952
[ "BSL-1.0" ]
55
2015-01-06T16:42:55.000Z
2020-07-09T04:21:41.000Z
implement/oglplus/images/sphere_bmap.ipp
matus-chochlik/oglplus
76dd964e590967ff13ddff8945e9dcf355e0c952
[ "BSL-1.0" ]
57
2015-01-07T18:35:49.000Z
2022-03-22T05:32:04.000Z
/** * @file oglplus/images/sphere_bmap.ipp * @brief Implementation of images::SphereBumpMap * * @author Matus Chochlik * * Copyright 2010-2019 Matus Chochlik. 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.t...
27.690141
69
0.539166
matus-chochlik
f1ed79f793e5fa7fe143dcd2981a49c9d124d13a
2,795
cpp
C++
Source/BehaviorTreeExtension/Private/BTStateMachineSelector.cpp
bretvincent/UnrealBehaviorTreeExtension
dc82c9297a43bb5096c25c262d661609534f9897
[ "MIT" ]
2
2021-09-11T11:45:31.000Z
2021-12-23T07:35:41.000Z
Source/BehaviorTreeExtension/Private/BTStateMachineSelector.cpp
bretvincent/UnrealBehaviorTreeExtension
dc82c9297a43bb5096c25c262d661609534f9897
[ "MIT" ]
null
null
null
Source/BehaviorTreeExtension/Private/BTStateMachineSelector.cpp
bretvincent/UnrealBehaviorTreeExtension
dc82c9297a43bb5096c25c262d661609534f9897
[ "MIT" ]
1
2021-09-11T11:45:34.000Z
2021-09-11T11:45:34.000Z
// Copyright 2019 Vincent Breton Kochanowski. All Rights Reserved. #include "BTStateMachineSelector.h" #include "BTStateTransitionDecorator.h" void UBTStateMachineSelector::OnGameplayTaskActivated(UGameplayTask& Task) { } void UBTStateMachineSelector::OnGameplayTaskDeactivated(UGameplayTask& Task) { } ...
28.814433
143
0.743828
bretvincent
f1f069dbe0c7d96784f129f043ead6c4d09d247d
4,291
cc
C++
engine/Node.cc
zhouzhiyong18/SubgraphMatch
e34b088ed5efc67556c91ad9591dc8718a048d59
[ "Apache-2.0" ]
4
2018-11-19T08:05:41.000Z
2018-11-19T11:55:55.000Z
engine/Node.cc
ChengTsang/SSSP
6d6680b87e0edaac5668cbf9cb4d39ee7a77d150
[ "Apache-2.0" ]
null
null
null
engine/Node.cc
ChengTsang/SSSP
6d6680b87e0edaac5668cbf9cb4d39ee7a77d150
[ "Apache-2.0" ]
null
null
null
/** * @file Node.cc * @author Songjie Niu, Shimin Chen * @version 0.1 * * @section LICENSE * * Copyright 2016 Shimin Chen (chensm@ict.ac.cn) and * Songjie Niu (niusongjie@ict.ac.cn) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
28.230263
111
0.646003
zhouzhiyong18
f1feac745c1dfd8af36ee7527ab1c2ca296ffaee
1,324
cpp
C++
samples/flags/main.cpp
Nitta-K-git/vcglib_sample
dbe70bd21bbc618286bbdf7533782a398a4f276d
[ "MIT" ]
12
2020-12-07T21:04:31.000Z
2022-01-04T13:48:22.000Z
samples/flags/main.cpp
Nitta-K-git/vcglib_samples
dbe70bd21bbc618286bbdf7533782a398a4f276d
[ "MIT" ]
null
null
null
samples/flags/main.cpp
Nitta-K-git/vcglib_samples
dbe70bd21bbc618286bbdf7533782a398a4f276d
[ "MIT" ]
null
null
null
#include <vcg/complex/algorithms/create/platonic.h> using namespace vcg; using namespace std; class MyFace; class MyVertex; struct MyUsedTypes : public UsedTypes< Use<MyVertex>::AsVertexType, Use<MyFace>::AsFaceType> {}; class MyVertex : public Vertex< MyUsedTypes, vertex::Coord3f, vertex::Normal3f, vertex::...
20.060606
96
0.659366
Nitta-K-git
7b008b951d5d37d8e11c711155bc85bb79ee924b
1,483
cpp
C++
src/2015/day03.cpp
AnthonyN1/Advent-of-Code
28782b219a50d92b2621dc88ecf00ae2e3b45b0a
[ "MIT" ]
null
null
null
src/2015/day03.cpp
AnthonyN1/Advent-of-Code
28782b219a50d92b2621dc88ecf00ae2e3b45b0a
[ "MIT" ]
null
null
null
src/2015/day03.cpp
AnthonyN1/Advent-of-Code
28782b219a50d92b2621dc88ecf00ae2e3b45b0a
[ "MIT" ]
null
null
null
/* Advent of Code - 2015: Day 03 Author: Anthony Nool (AnthonyN1) */ #include <iostream> #include <set> #include <string> #include <vector> #include "../../includes/point.h" /* Updates pt based on the direction ch is pointing. ch is either '^', 'v', '<', or '>'. */ void updatePoint(Point &pt, char ch){ switch(...
20.040541
74
0.633176
AnthonyN1
7b00e5214a6dc4fe1cf09dc9c1a76352eeafbc3e
14,395
cpp
C++
blast/src/connect/services/netschedule_api_getjob.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/connect/services/netschedule_api_getjob.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/connect/services/netschedule_api_getjob.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
/* $Id: netschedule_api_getjob.cpp 607687 2020-05-06 16:16:59Z sadyrovr $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States...
31.293478
96
0.601737
mycolab
7b0277669cf1498f84f4fd55b963de55dc6848df
13,608
cpp
C++
AppForm.cpp
DarknessFX/UEPlugins_DisableDefault
dbaf4c83a8dbe1bb745bb00bd0a5f5a87c0b3271
[ "MIT" ]
1
2021-12-01T13:57:54.000Z
2021-12-01T13:57:54.000Z
AppForm.cpp
DarknessFX/UEPlugins_DisableDefault
dbaf4c83a8dbe1bb745bb00bd0a5f5a87c0b3271
[ "MIT" ]
null
null
null
AppForm.cpp
DarknessFX/UEPlugins_DisableDefault
dbaf4c83a8dbe1bb745bb00bd0a5f5a87c0b3271
[ "MIT" ]
null
null
null
/// /// Created by DarknessFX - https://dfx.lv - @DrkFX /// Source Code at https://github.com/DarknessFX/UEPlugins_DisableDefault /// #include <windows.h> #include "AppForm.h" using namespace System; using namespace System::Windows::Forms; using namespace System::IO; ...
33.935162
378
0.568122
DarknessFX
7b039b471b189e5416aa8eebf51d95d078696b02
8,365
cpp
C++
LifeBrush/Source/LifeBrush/VRInterface/CollectionSpace.cpp
timdecode/LifeBrush
dbc65bcc0ec77f9168e08cf7b39539af94420725
[ "MIT" ]
33
2019-04-23T23:00:09.000Z
2021-11-09T11:44:09.000Z
LifeBrush/Source/LifeBrush/VRInterface/CollectionSpace.cpp
MyelinsheathXD/LifeBrush
dbc65bcc0ec77f9168e08cf7b39539af94420725
[ "MIT" ]
1
2019-10-09T15:57:56.000Z
2020-03-05T20:01:01.000Z
LifeBrush/Source/LifeBrush/VRInterface/CollectionSpace.cpp
MyelinsheathXD/LifeBrush
dbc65bcc0ec77f9168e08cf7b39539af94420725
[ "MIT" ]
6
2019-04-25T00:10:55.000Z
2021-04-12T05:16:28.000Z
// Copyright 2018, Timothy Davison. All rights reserved. #include "LifeBrush.h" #include <cmath> #include "CollectionSpace.h" #include <../Plugins/Experimental/AlembicImporter/Source/ThirdParty/Alembic/Deploy/include/OpenEXR/halfLimits.h> UInteractionSpace::UInteractionSpace() { // Set this component to be initia...
24.895833
157
0.749671
timdecode
7b0885fff9dc7b16718e7cdc3d7d0b364df2b9b0
861
cpp
C++
unit_tests/test_flush.cpp
brridder/nanoarq
5aa9e5d9dda002f569aa70dcec0eded67404c44d
[ "Unlicense" ]
1
2021-12-07T18:33:20.000Z
2021-12-07T18:33:20.000Z
unit_tests/test_flush.cpp
skyformat99/nanoarq
167425b0a073c4e41f4d32eafc21cb1a71b186e3
[ "Unlicense" ]
null
null
null
unit_tests/test_flush.cpp
skyformat99/nanoarq
167425b0a073c4e41f4d32eafc21cb1a71b186e3
[ "Unlicense" ]
null
null
null
#include "arq_in_unit_tests.h" #include "arq_runtime_mock_plugin.h" #include <CppUTest/TestHarness.h> #include <CppUTestExt/MockSupport.h> #include <cstring> TEST_GROUP(flush) {}; namespace { TEST(flush, invalid_params) { CHECK_EQUAL(ARQ_ERR_INVALID_PARAM, arq_flush(nullptr)); } void MockSendWndFlush(arq__send_...
21.525
83
0.744483
brridder
7b0bb8a60fa230961fe485904d1fc910c3f6be90
333
cpp
C++
C++/bulb-switcher-iv.cpp
Akhil-Kashyap/LeetCode-Solutions
c671a588f96f4e4bbde4512727322ff9b1c8ae6a
[ "MIT" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
C++/bulb-switcher-iv.cpp
Akhil-Kashyap/LeetCode-Solutions
c671a588f96f4e4bbde4512727322ff9b1c8ae6a
[ "MIT" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
C++/bulb-switcher-iv.cpp
Akhil-Kashyap/LeetCode-Solutions
c671a588f96f4e4bbde4512727322ff9b1c8ae6a
[ "MIT" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
// Time: O(n) // Space: O(1) class Solution { public: int minFlips(string target) { int result = 0; char curr = '0'; for (const auto& c : target) { if (c == curr) { continue; } curr = c; ++result; } return resu...
17.526316
38
0.393393
Akhil-Kashyap
7b0c268235e24726c5e4271e75d91c71fe37a633
1,691
cpp
C++
libs/modelmd3/impl/src/model/md3/impl/read_string.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
2
2016-01-27T13:18:14.000Z
2018-05-11T01:11:32.000Z
libs/modelmd3/impl/src/model/md3/impl/read_string.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
null
null
null
libs/modelmd3/impl/src/model/md3/impl/read_string.cpp
cpreh/spacegameengine
313a1c34160b42a5135f8223ffaa3a31bc075a01
[ "BSL-1.0" ]
3
2018-05-11T01:11:34.000Z
2021-04-24T19:47:45.000Z
// Copyright Carl Philipp Reh 2006 - 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <sge/model/md3/exception.hpp> #include <sge/model/md3/string.hpp> #include <sge/model/md3/...
35.229167
92
0.716144
cpreh
7b0df066af04530745ec08a92576b72a336a1dee
5,864
cpp
C++
oja_unsupervised/main.cpp
Shimmen/NeuralNetworkStuff
f9058a7ce8aa9d1929083e974568795245304159
[ "MIT" ]
null
null
null
oja_unsupervised/main.cpp
Shimmen/NeuralNetworkStuff
f9058a7ce8aa9d1929083e974568795245304159
[ "MIT" ]
null
null
null
oja_unsupervised/main.cpp
Shimmen/NeuralNetworkStuff
f9058a7ce8aa9d1929083e974568795245304159
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <random> #define WITHOUT_NUMPY #include <matplotlib-cpp/matplotlibcpp.h> namespace plt = matplotlibcpp; /////////////////////////////////////////////// // Data reading, parsing, preprocessing struct Pattern { double x; double y; Pattern(double x, double y)...
28.8867
105
0.604707
Shimmen
7b0f314c43ab2b27cff9d41d0ea5fd2ebdd5bb76
1,048
hpp
C++
src/bridge/jni/NativeReference.hpp
codegitpro/qt-app
d8cdc29156c324d174362ac971d11b7989483395
[ "Libpng", "Zlib" ]
null
null
null
src/bridge/jni/NativeReference.hpp
codegitpro/qt-app
d8cdc29156c324d174362ac971d11b7989483395
[ "Libpng", "Zlib" ]
null
null
null
src/bridge/jni/NativeReference.hpp
codegitpro/qt-app
d8cdc29156c324d174362ac971d11b7989483395
[ "Libpng", "Zlib" ]
null
null
null
// AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from form2.djinni #pragma once #include "djinni_support.hpp" #include "reference.hpp" namespace djinni_generated { class NativeReference final { public: using CppType = ::ai::Reference; using JniType = jobject; using Boxed = Native...
30.823529
131
0.706107
codegitpro
7b16248afcbad5b4b9806804ed397b811651c375
9,742
cpp
C++
source/folders/camera/camera.cpp
jacoblammert/programmiersprachen-raytracer-cpp
d40ead374762094ee67d04c487764196f94748d6
[ "MIT" ]
null
null
null
source/folders/camera/camera.cpp
jacoblammert/programmiersprachen-raytracer-cpp
d40ead374762094ee67d04c487764196f94748d6
[ "MIT" ]
null
null
null
source/folders/camera/camera.cpp
jacoblammert/programmiersprachen-raytracer-cpp
d40ead374762094ee67d04c487764196f94748d6
[ "MIT" ]
null
null
null
#include "camera.hpp" /** Camera constructor with angle/ fov @param name of the camera @param fov field of view in degrees */ Camera::Camera (std::string const& name, float fov_x) : name_ {name}, position_ {0.0f, 0.0f, 0.0f}, direction_ {0.0000001f, 0.00000001f, -1.0f}, width_ {1}, height_ {1},...
32.912162
419
0.649559
jacoblammert
7b17e7e7fb6a568984fbf6c4e5913cb6c01ed11a
10,347
cpp
C++
Source/Scene/imstkcpdScene.cpp
quantingxie/vibe
965a79089ac3ec821ad65c45ac50e69bf32dc92f
[ "Apache-2.0" ]
2
2020-08-14T07:21:30.000Z
2021-08-30T09:39:09.000Z
Source/Scene/imstkcpdScene.cpp
quantingxie/vibe
965a79089ac3ec821ad65c45ac50e69bf32dc92f
[ "Apache-2.0" ]
null
null
null
Source/Scene/imstkcpdScene.cpp
quantingxie/vibe
965a79089ac3ec821ad65c45ac50e69bf32dc92f
[ "Apache-2.0" ]
1
2020-08-14T07:00:31.000Z
2020-08-14T07:00:31.000Z
#include "imstkcpdScene.h" #include <chrono> using Clock = std::chrono::steady_clock; const int nit = 1000; namespace cpd { Scene::Scene() { m_constraintSolver = std::make_shared<ConstraintSolver>(); m_externalForceSolver = std::make_shared<ExternalForceSolver>(); m_time.setZero(nit); m_pos.setZ...
25.802993
124
0.50662
quantingxie
7b1b0dfd044f5948256c953748dddbf54b8266c7
10,573
cpp
C++
applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Incompressible_Flows/IMPLICIT_VISCOSITY_MULTIPHASE_UNIFORM.cpp
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
20
2017-07-03T19:09:09.000Z
2021-09-10T02:53:56.000Z
applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Incompressible_Flows/IMPLICIT_VISCOSITY_MULTIPHASE_UNIFORM.cpp
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
null
null
null
applications/physbam/physbam-lib/Public_Library/PhysBAM_Dynamics/Incompressible_Flows/IMPLICIT_VISCOSITY_MULTIPHASE_UNIFORM.cpp
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
9
2017-09-17T02:05:06.000Z
2020-01-31T00:12:01.000Z
//##################################################################### // Copyright 2005-2006, Geoffrey Irving, Frank Losasso, Tamar Shinar. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //########################################...
73.937063
288
0.720609
schinmayee
7b1bcb43e5a3ff72c14e8f82bf2ce5866fbceff2
350
cpp
C++
CodeForces/Complete/300-399/339B-XeniaAndRingroad.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
CodeForces/Complete/300-399/339B-XeniaAndRingroad.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
CodeForces/Complete/300-399/339B-XeniaAndRingroad.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
#include <cstdio> int main(){ long n(0), m(0); scanf("%ld %ld", &n, &m); long current(0), last(1); long long total(0); for(int k = 0; k < m; k++){ scanf("%ld", &current); total += current - last; if(current < last){total += n;} last = current; } printf("%ll...
19.444444
46
0.465714
Ashwanigupta9125
7b209de8b83eb3fa2daf1d2844d249798e75317a
4,221
cpp
C++
kxEditor/CmdMgr.cpp
kxkx5150/KXEditor
d131cc6312b5cbff0c297bd269a253c0c7c6380a
[ "MIT" ]
null
null
null
kxEditor/CmdMgr.cpp
kxkx5150/KXEditor
d131cc6312b5cbff0c297bd269a253c0c7c6380a
[ "MIT" ]
null
null
null
kxEditor/CmdMgr.cpp
kxkx5150/KXEditor
d131cc6312b5cbff0c297bd269a253c0c7c6380a
[ "MIT" ]
null
null
null
#include "CmdMgr.h" #include <nlohmann/json.hpp> #include <windows.h> CmdMgr::CmdMgr(NodeMgr* nodemgr,ContMgr* contmgr) { m_nodemgr = nodemgr; m_contmgr = contmgr; } CmdMgr::~CmdMgr() { } void CmdMgr::set_hwnd(HWND hwnd) { m_hwnd = hwnd; } LONG CmdMgr::on_keydown(int contno, UINT nKeyCode, UINT nFlags) { ...
28.714286
110
0.548685
kxkx5150
7b2292fa629b25a62f8a6ccb64d25887a6cf388d
1,757
cpp
C++
Codes/Codes_for_xStar/diploidSequence.cpp
CasperLumby/Bottleneck_Size_Estimation
9f9d81e35c1ac9dc74541401e8da70d428be1ad1
[ "MIT" ]
null
null
null
Codes/Codes_for_xStar/diploidSequence.cpp
CasperLumby/Bottleneck_Size_Estimation
9f9d81e35c1ac9dc74541401e8da70d428be1ad1
[ "MIT" ]
null
null
null
Codes/Codes_for_xStar/diploidSequence.cpp
CasperLumby/Bottleneck_Size_Estimation
9f9d81e35c1ac9dc74541401e8da70d428be1ad1
[ "MIT" ]
1
2019-06-12T13:25:36.000Z
2019-06-12T13:25:36.000Z
// // diploidSequence.cpp // TransmissionProject // // Created by Casper Lumby on 28/10/2015. // Copyright © 2015 Casper Lumby. All rights reserved. // #include <stdio.h> #include "iostream" #include "diploidSequence.h" using namespace std; DiploidSequence::DiploidSequence() {} DiploidSequence::DiploidSequence(i...
27.888889
107
0.69152
CasperLumby
7b242039bcfcd3edc867bfae06077d799306bcee
6,764
cc
C++
vowpalwabbit/core/tests/cache_test.cc
HollowMan6/vowpal_wabbit
eecdaccce568b53ed195bc4d50a6a582ab9a83d5
[ "BSD-3-Clause" ]
4,332
2015-01-01T10:26:51.000Z
2018-10-01T14:05:43.000Z
vowpalwabbit/core/tests/cache_test.cc
HollowMan6/vowpal_wabbit
eecdaccce568b53ed195bc4d50a6a582ab9a83d5
[ "BSD-3-Clause" ]
1,004
2015-01-01T12:00:54.000Z
2018-09-30T22:13:42.000Z
vowpalwabbit/core/tests/cache_test.cc
HollowMan6/vowpal_wabbit
eecdaccce568b53ed195bc4d50a6a582ab9a83d5
[ "BSD-3-Clause" ]
1,182
2015-01-02T20:38:55.000Z
2018-09-26T02:47:37.000Z
// Copyright (c) by respective owners including Yahoo!, Microsoft, and // individual contributors. All rights reserved. Released under a BSD (revised) // license as described in the file LICENSE. #include "vw/core/cache.h" #include "vw/core/parse_example.h" #include "vw/core/vw.h" #include "vw/core/vw_fwd.h" #includ...
37.164835
120
0.689237
HollowMan6
7b28229a8e9f3c34ef1117d7f38cc381de7f3050
778
cpp
C++
Code/src/engine/graphics/fonts/FontContainer.cpp
Thraix/MasterThesis
4e4cb94b2a4ee261b2b9974aa4b20f6643eb6595
[ "MIT" ]
1
2021-04-16T10:54:38.000Z
2021-04-16T10:54:38.000Z
Code/src/engine/graphics/fonts/FontContainer.cpp
Thraix/MasterThesis
4e4cb94b2a4ee261b2b9974aa4b20f6643eb6595
[ "MIT" ]
null
null
null
Code/src/engine/graphics/fonts/FontContainer.cpp
Thraix/MasterThesis
4e4cb94b2a4ee261b2b9974aa4b20f6643eb6595
[ "MIT" ]
null
null
null
#include "FontContainer.h" namespace Greet{ FontContainer::FontContainer(const std::string& filename, const std::string& name) : m_filename(filename),m_data(NULL),m_datasize(0), m_name(name) { } FontContainer::FontContainer(const byte* data, uint datasize, const std::string& name) : m_filename(""),m_...
19.45
88
0.611825
Thraix
7b2c9e3024ec3150c3e3013fa41163fbcf564d2c
400
cpp
C++
engine/source/private/core/threads.cpp
kociap/GameEngine
ff5f1ca589df5b44887c3383919a73bbe0ab05a0
[ "MIT" ]
12
2019-01-02T11:13:19.000Z
2020-06-02T10:58:20.000Z
engine/source/private/core/threads.cpp
kociap/GameEngine
ff5f1ca589df5b44887c3383919a73bbe0ab05a0
[ "MIT" ]
null
null
null
engine/source/private/core/threads.cpp
kociap/GameEngine
ff5f1ca589df5b44887c3383919a73bbe0ab05a0
[ "MIT" ]
1
2020-04-03T11:54:53.000Z
2020-04-03T11:54:53.000Z
#include <core/threads.hpp> #include <thread> #if defined(_WIN32) || defined(_WIN64) extern "C" { // xthreads.h struct xtime; void _Thrd_sleep(const xtime*); } namespace anton_engine::threads { void sleep(Timespec const& duration) { _Thrd_sleep(reinterpret_cast<xtime const*>(&duration)); ...
16.666667
63
0.6775
kociap
7b2cf1c96808f8d5344dd91b27052c554ab513bd
1,874
cpp
C++
test/smoke/vasp1/vasp1.cpp
raramakr/aomp
9a224fe01ca8eff4209b8b79aa1fa15a18da65db
[ "Apache-2.0" ]
106
2019-02-05T13:07:36.000Z
2022-03-20T11:15:03.000Z
test/smoke/vasp1/vasp1.cpp
raramakr/aomp
9a224fe01ca8eff4209b8b79aa1fa15a18da65db
[ "Apache-2.0" ]
195
2019-02-26T23:42:40.000Z
2022-03-29T10:08:19.000Z
test/smoke/vasp1/vasp1.cpp
raramakr/aomp
9a224fe01ca8eff4209b8b79aa1fa15a18da65db
[ "Apache-2.0" ]
27
2019-05-17T10:33:28.000Z
2022-03-25T16:17:48.000Z
#include <omp.h> #include <stdio.h> #include <sched.h> int main( int argc, char **argv){ int execution_space_gpu = 0; if (argc > 1){ fprintf(stderr,"argv[0] = %s\n",argv[1]); execution_space_gpu = atoi(argv[1]); } int N = 1024*1024*100; int Niter = 10; float *A, *B; A = new flo...
26.394366
142
0.566169
raramakr
7b316fc3f854138c2fe13cd184a97734b67f18f2
14,421
cc
C++
ge/graph/manager/graph_caching_allocator.cc
mindspore-ai/graphengine
460406cbd691b963d125837f022be5d8abd1a637
[ "Apache-2.0" ]
207
2020-03-28T02:12:50.000Z
2021-11-23T18:27:45.000Z
ge/graph/manager/graph_caching_allocator.cc
mindspore-ai/graphengine
460406cbd691b963d125837f022be5d8abd1a637
[ "Apache-2.0" ]
4
2020-04-17T07:32:44.000Z
2021-06-26T04:55:03.000Z
ge/graph/manager/graph_caching_allocator.cc
mindspore-ai/graphengine
460406cbd691b963d125837f022be5d8abd1a637
[ "Apache-2.0" ]
13
2020-03-28T02:52:26.000Z
2021-07-03T23:12:54.000Z
/** * Copyright 2019-2020 Huawei Technologies 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 applicabl...
32.11804
114
0.654324
mindspore-ai
7b343a347a312d83c60063c15f44403f4a925f51
22,936
cpp
C++
comp477-a1/src/glMain.cpp
aidendeom/comp477-assignment
a2b4d752c40c23416f518047e92c29beaacf5e2c
[ "MIT" ]
null
null
null
comp477-a1/src/glMain.cpp
aidendeom/comp477-assignment
a2b4d752c40c23416f518047e92c29beaacf5e2c
[ "MIT" ]
null
null
null
comp477-a1/src/glMain.cpp
aidendeom/comp477-assignment
a2b4d752c40c23416f518047e92c29beaacf5e2c
[ "MIT" ]
null
null
null
#ifdef __APPLE__ #include <GLUT/glut.h> #else #ifdef _WIN32 #include "GL/glut.h" #else #include <GL/freeglut.h> #endif #endif #include <iostream> #include <fstream> #include <cmath> #include <cstring> #include <csignal> #include <chrono> #include <functional> #include <string> #include <Shlwapi.h> #include <Windows.h>...
23.427988
121
0.635943
aidendeom
7b38e38f837413b6622534a45a79f92246d736f0
18,513
cpp
C++
test/pt-client/test_pt_client.cpp
costanic/mbed-edge
4900e950ff67f8974b7aeef955289ef56606c964
[ "Apache-2.0" ]
24
2018-03-27T16:44:18.000Z
2020-04-28T15:28:34.000Z
test/pt-client/test_pt_client.cpp
costanic/mbed-edge
4900e950ff67f8974b7aeef955289ef56606c964
[ "Apache-2.0" ]
19
2021-01-28T20:14:45.000Z
2021-11-23T13:08:59.000Z
test/pt-client/test_pt_client.cpp
costanic/mbed-edge
4900e950ff67f8974b7aeef955289ef56606c964
[ "Apache-2.0" ]
28
2018-04-02T02:36:48.000Z
2020-10-13T05:37:16.000Z
#include "CppUTest/TestHarness.h" #include "CppUTestExt/MockSupport.h" #include "cpputest-custom-types/value_pointer.h" extern "C" { #include "jansson.h" #include <string.h> #include <event2/event.h> #include <event2/bufferevent.h> #include "pt-client/pt_api.h" #include "pt-client/pt_api_internal.h" #include "test-lib...
39.056962
120
0.708097
costanic
7b39815fa0ad8c240b0c8acbde068a8017b38d88
667
cpp
C++
OJ/1423/src/main.cpp
RabitDash/practice
2becb4367d0fa7d6ad0226dfa9b67765b5c59af9
[ "MIT" ]
null
null
null
OJ/1423/src/main.cpp
RabitDash/practice
2becb4367d0fa7d6ad0226dfa9b67765b5c59af9
[ "MIT" ]
null
null
null
OJ/1423/src/main.cpp
RabitDash/practice
2becb4367d0fa7d6ad0226dfa9b67765b5c59af9
[ "MIT" ]
1
2021-04-06T08:11:19.000Z
2021-04-06T08:11:19.000Z
#include <iostream> #include <vector> using namespace std; int main() { int n; while(cin >> n) { vector<int> a; vector<int> shit; int max = 0; a.resize(2 * n + 1); a[1] = 1; for(int i = 2; i <= n; i++) { if(i % 2 == 0) a[i] = a[i/2] + 1; else a[i] = a[(i-1)/2] + a[(i-...
15.159091
39
0.401799
RabitDash
7b3caed6220b47186ac5669ad54b9dc8fc26b4ed
7,993
cpp
C++
src/transport/ofed/Utils.cpp
IBM/tulips
040f79f9a54bb7da85bdb87daefb9e9b2cdeade2
[ "BSD-2-Clause" ]
5
2020-09-22T06:02:48.000Z
2021-11-17T09:26:30.000Z
src/transport/ofed/Utils.cpp
xguerin/tulips
040f79f9a54bb7da85bdb87daefb9e9b2cdeade2
[ "BSD-2-Clause" ]
null
null
null
src/transport/ofed/Utils.cpp
xguerin/tulips
040f79f9a54bb7da85bdb87daefb9e9b2cdeade2
[ "BSD-2-Clause" ]
4
2021-03-22T09:00:24.000Z
2021-06-28T09:13:44.000Z
/* * Copyright (c) 2020, International Business Machines * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * thi...
29.824627
80
0.676592
IBM
7b3d18818aba67a65bf5dcb69d54fcba1aed292f
21,118
cpp
C++
src/engine/render/Model.cpp
italrr/astro
1c1ac28eacb081eee17a19c833d7866dfb348967
[ "MIT" ]
2
2020-11-30T23:18:12.000Z
2021-10-16T05:26:16.000Z
src/engine/render/Model.cpp
italrr/astro
1c1ac28eacb081eee17a19c833d7866dfb348967
[ "MIT" ]
null
null
null
src/engine/render/Model.cpp
italrr/astro
1c1ac28eacb081eee17a19c833d7866dfb348967
[ "MIT" ]
null
null
null
#include <cmath> #include <assimp/Importer.hpp> #include <assimp/scene.h> #include <assimp/postprocess.h> #include "../common/Type.hpp" #include "../common/Result.hpp" #include "../Core.hpp" #include "Model.hpp" static astro::Mat<4,4, float> aiMat2Astro(const aiMatrix4x4 &mat){ astro::Mat<4,4, float>...
42.490946
183
0.564116
italrr
7b414cb0a59aa01e8d876de89b356fdd33d77f8e
5,672
cpp
C++
DialogSystemSolution/DialogSystem/j1DialogSystem.cpp
RoperoIvan/Dialogue-System
f9619decf859c452addc6a5ba37fcc26c892d9ea
[ "MIT" ]
null
null
null
DialogSystemSolution/DialogSystem/j1DialogSystem.cpp
RoperoIvan/Dialogue-System
f9619decf859c452addc6a5ba37fcc26c892d9ea
[ "MIT" ]
null
null
null
DialogSystemSolution/DialogSystem/j1DialogSystem.cpp
RoperoIvan/Dialogue-System
f9619decf859c452addc6a5ba37fcc26c892d9ea
[ "MIT" ]
null
null
null
#include "j1App.h" #include "j1UIManager.h" #include "j1Fonts.h" #include "j1DialogSystem.h" #include "j1Input.h" #include "GUI_Label.h" #include "GUI_Button.h" j1DialogSystem::j1DialogSystem() { } j1DialogSystem::~j1DialogSystem() { } bool j1DialogSystem::Start() { bool ret = true; LoadDialogue("Dialog.xml"); cur...
24.448276
165
0.681594
RoperoIvan