hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
float64
1
77k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
float64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
653k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
1
4b2077ca2c82309e54bb41136d53f1d69c1a5bbf
2,260
cpp
C++
sources/Video/Core/VideoMode.cpp
LukasBanana/ForkENGINE
8b575bd1d47741ad5025a499cb87909dbabc3492
[ "BSD-3-Clause" ]
13
2017-03-21T22:46:18.000Z
2020-07-30T01:31:57.000Z
sources/Video/Core/VideoMode.cpp
LukasBanana/ForkENGINE
8b575bd1d47741ad5025a499cb87909dbabc3492
[ "BSD-3-Clause" ]
null
null
null
sources/Video/Core/VideoMode.cpp
LukasBanana/ForkENGINE
8b575bd1d47741ad5025a499cb87909dbabc3492
[ "BSD-3-Clause" ]
2
2018-07-23T19:56:41.000Z
2020-07-30T01:32:01.000Z
/* * Video mode file * * This file is part of the "ForkENGINE" (Copyright (c) 2014 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "Video/Core/VideoMode.h" namespace Fork { namespace Video { /* --- VideoMode structure --- */ VideoMode::VideoMode(const Math::Size2ui& vmResolution...
20.36036
96
0.638053
4b218b0ad86a62aa94fc5fe0c4cedead3e00e16f
1,511
cpp
C++
GameServer/Bullet.cpp
Chr157i4n/OpenGL_Space_Game
b4cd4ab65385337c37f26af641597c5fc9126f04
[ "MIT" ]
3
2020-08-05T00:02:30.000Z
2021-08-23T00:41:24.000Z
GameServer/Bullet.cpp
Chr157i4n/OpenGL_Space_Game
b4cd4ab65385337c37f26af641597c5fc9126f04
[ "MIT" ]
null
null
null
GameServer/Bullet.cpp
Chr157i4n/OpenGL_Space_Game
b4cd4ab65385337c37f26af641597c5fc9126f04
[ "MIT" ]
2
2021-07-03T19:32:08.000Z
2021-08-19T18:48:52.000Z
#include "Bullet.h" #include "Game.h" Bullet::Bullet(glm::vec3 position, glm::vec3 rotation, glm::vec3 direction) : Object("arrow.bmf") { this->setType(ObjectType::Object_Bullet); this->position = position; this->rotation = rotation; this->movement = glm::normalize(direction) * speed; this->name = "Bullet"; this...
25.610169
120
0.696889
4b21e57bed1f9471b5422586d070e208fae43c90
10,414
cpp
C++
frmts/mrf/libLERC/BitStuffer2.cpp
VisualAwarenessTech/gdal-2.2.1
5ea1c6671d6f0f3b93e9e9bf2a71da618c834e8d
[ "Apache-2.0" ]
null
null
null
frmts/mrf/libLERC/BitStuffer2.cpp
VisualAwarenessTech/gdal-2.2.1
5ea1c6671d6f0f3b93e9e9bf2a71da618c834e8d
[ "Apache-2.0" ]
null
null
null
frmts/mrf/libLERC/BitStuffer2.cpp
VisualAwarenessTech/gdal-2.2.1
5ea1c6671d6f0f3b93e9e9bf2a71da618c834e8d
[ "Apache-2.0" ]
null
null
null
/* Copyright 2015 Esri 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, software distributed un...
28.767956
124
0.598713
4b242cab08417adf39f8783383d9f9182bea52bd
1,061
cpp
C++
lightoj/1111.cpp
cosmicray001/Online_judge_Solutions-
5dc6f90d3848eb192e6edea8e8c731f41a1761dd
[ "MIT" ]
3
2018-01-08T02:52:51.000Z
2021-03-03T01:08:44.000Z
lightoj/1111.cpp
cosmicray001/Online_judge_Solutions-
5dc6f90d3848eb192e6edea8e8c731f41a1761dd
[ "MIT" ]
null
null
null
lightoj/1111.cpp
cosmicray001/Online_judge_Solutions-
5dc6f90d3848eb192e6edea8e8c731f41a1761dd
[ "MIT" ]
1
2020-08-13T18:07:35.000Z
2020-08-13T18:07:35.000Z
#include <bits/stdc++.h> using namespace std; #define le 1003 vector <int> v[le]; vector<int> ct; int dis[le]; bool vis[le]; void bfs(int a){ memset(vis, false, sizeof(vis)); vis[a] = true; dis[a]++; queue<int> q; q.push(a); while(!q.empty()){ int p = q.front(); q.pop(); for(int i = 0; i < v[p]....
24.113636
74
0.454288
4b24f95eeb9ec356b181529c3137c2ced175a031
23,481
cc
C++
Example/Pods/gRPC-Core/third_party/re2/re2/onepass.cc
cpllj/RPC
73931a563ed7321f1f7e15ee8e3198a31e3fd0bc
[ "MIT" ]
1
2022-01-14T14:35:02.000Z
2022-01-14T14:35:02.000Z
Example/Pods/gRPC-Core/third_party/re2/re2/onepass.cc
cpllj/RPC
73931a563ed7321f1f7e15ee8e3198a31e3fd0bc
[ "MIT" ]
null
null
null
Example/Pods/gRPC-Core/third_party/re2/re2/onepass.cc
cpllj/RPC
73931a563ed7321f1f7e15ee8e3198a31e3fd0bc
[ "MIT" ]
null
null
null
// Copyright 2008 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Tested by search_test.cc. // // Prog::SearchOnePass is an efficient implementation of // regular expression search with submatch tracking for // what I cal...
35.794207
80
0.626294
4b270364a68fee334fa4684c73572e79b7fb7407
19,303
cpp
C++
src/core/movie/ffmpeg/AEUtil.cpp
A29586a/Kirikiroid2
7871cf9b393453f4b8c8b6f0e6ac1f3c24cdcf7f
[ "BSD-3-Clause" ]
22
2020-01-14T19:19:05.000Z
2021-09-11T14:06:56.000Z
src/core/movie/ffmpeg/AEUtil.cpp
A29586a/Kirikiroid2
7871cf9b393453f4b8c8b6f0e6ac1f3c24cdcf7f
[ "BSD-3-Clause" ]
3
2020-06-07T16:28:26.000Z
2021-11-11T09:31:27.000Z
src/core/movie/ffmpeg/AEUtil.cpp
A29586a/Kirikiroid2
7871cf9b393453f4b8c8b6f0e6ac1f3c24cdcf7f
[ "BSD-3-Clause" ]
6
2020-10-11T13:36:56.000Z
2021-11-13T06:32:14.000Z
#ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS #endif #if (defined HAVE_CONFIG_H) && (!defined TARGET_WINDOWS) #include "config.h" #endif #include "AEUtil.h" #include "TimeUtils.h" #include <cassert> extern "C" { #include "libavutil/channel_layout.h" } NS_KRMOVIE_BEGIN /* declare the rng seed and initial...
29.027068
131
0.626897
4b2d1d8166b81a4e12d544093f709e440d3547d7
6,500
cxx
C++
Modules/IO/TestKernel/src/otbTestDriver.cxx
qingswu/otb
ed903b6a5e51a27a3d04786e4ad1637cf6b2772e
[ "Apache-2.0" ]
null
null
null
Modules/IO/TestKernel/src/otbTestDriver.cxx
qingswu/otb
ed903b6a5e51a27a3d04786e4ad1637cf6b2772e
[ "Apache-2.0" ]
null
null
null
Modules/IO/TestKernel/src/otbTestDriver.cxx
qingswu/otb
ed903b6a5e51a27a3d04786e4ad1637cf6b2772e
[ "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
30.516432
148
0.650154
4b2d2b0d516a824823c24998dc12d7708ee5d8f9
109,583
cpp
C++
modules/objdetect/src/haar.cpp
gunnjo/opencv
a05ce00a654268f214fcf43e815891a01f7987b5
[ "BSD-3-Clause" ]
144
2015-01-15T03:38:44.000Z
2022-02-17T09:07:52.000Z
modules/objdetect/src/haar.cpp
gunnjo/opencv
a05ce00a654268f214fcf43e815891a01f7987b5
[ "BSD-3-Clause" ]
9
2015-09-09T06:51:46.000Z
2020-06-17T14:10:10.000Z
modules/objdetect/src/haar.cpp
gunnjo/opencv
a05ce00a654268f214fcf43e815891a01f7987b5
[ "BSD-3-Clause" ]
58
2015-01-14T23:43:49.000Z
2021-11-15T05:19:08.000Z
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
42.655897
130
0.492832
4b2e24347482ce6b3684f9920a502184d1d07a65
25,380
cpp
C++
faiss/utils/distances_simd.cpp
positive666/faiss_search
441ccebbff480592bdc8afb9be4523e7d95466f2
[ "MIT" ]
1
2021-04-20T13:24:35.000Z
2021-04-20T13:24:35.000Z
faiss/utils/distances_simd.cpp
adeline-cs/faiss
bde7c0027191f29c9dadafe4f6e68ca0ee31fb30
[ "MIT" ]
null
null
null
faiss/utils/distances_simd.cpp
adeline-cs/faiss
bde7c0027191f29c9dadafe4f6e68ca0ee31fb30
[ "MIT" ]
null
null
null
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // -*- c++ -*- #include <faiss/utils/distances.h> #include <cassert> #include <cmath> #include <cstdio> #include <cstring> #inc...
26.465068
78
0.533176
4b2ff373b7dc945b4a733bb104221e63b5b271f9
720
cpp
C++
solver/expr/detail/driver.cpp
scalexm/sat_solver
0235f76d0a93c4b8ff59071479c8ca139d2e162a
[ "MIT" ]
3
2016-02-16T17:39:28.000Z
2018-07-04T09:11:11.000Z
solver/expr/detail/driver.cpp
scalexm/sat_solver
0235f76d0a93c4b8ff59071479c8ca139d2e162a
[ "MIT" ]
null
null
null
solver/expr/detail/driver.cpp
scalexm/sat_solver
0235f76d0a93c4b8ff59071479c8ca139d2e162a
[ "MIT" ]
null
null
null
/* * expr/detail/driver.cpp * solver * * Created by Alexandre Martin on 03/02/2016. * Copyright © 2016 scalexm. All rights reserved. * */ #include "driver.hpp" #include <sstream> namespace expr { namespace detail { result<generic_expr> driver::parse(const std::string & str) { begin_scan(str); ...
24
73
0.580556
4b309015431d812c6a7dbb99f4666a6aa7f4c743
80,934
cpp
C++
Engine/ac/game.cpp
SpeechCenter/ags
624e5c96da1d70346c35c81b3bb16f1ab30658bb
[ "Artistic-2.0" ]
1
2021-07-24T08:37:34.000Z
2021-07-24T08:37:34.000Z
Engine/ac/game.cpp
SpeechCenter/ags
624e5c96da1d70346c35c81b3bb16f1ab30658bb
[ "Artistic-2.0" ]
null
null
null
Engine/ac/game.cpp
SpeechCenter/ags
624e5c96da1d70346c35c81b3bb16f1ab30658bb
[ "Artistic-2.0" ]
null
null
null
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 Chris Jones and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS ...
32.386555
198
0.66684
4b33184ff8474f757406cc958bedb0c8f114256d
17,161
cpp
C++
c-dependencies/js-compute-runtime/js-compute-runtime.cpp
eduardomourar/js-compute-runtime
e6a34e015b847c0cb96f426ab92102c10d8571b0
[ "Apache-2.0" ]
60
2021-07-30T05:27:05.000Z
2022-03-01T01:27:59.000Z
c-dependencies/js-compute-runtime/js-compute-runtime.cpp
eduardomourar/js-compute-runtime
e6a34e015b847c0cb96f426ab92102c10d8571b0
[ "Apache-2.0" ]
43
2021-08-02T08:57:09.000Z
2022-03-23T18:22:24.000Z
c-dependencies/js-compute-runtime/js-compute-runtime.cpp
eduardomourar/js-compute-runtime
e6a34e015b847c0cb96f426ab92102c10d8571b0
[ "Apache-2.0" ]
6
2021-08-06T21:06:06.000Z
2022-03-23T07:37:22.000Z
#include <cassert> #include <cstdlib> #include <iostream> #include <chrono> #ifdef MEM_STATS #include <string> #endif #include <wasi/libc-environ.h> // TODO: remove these once the warnings are fixed #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #include "js/CompilationAndEvaluat...
32.501894
113
0.70194
4b35a1305f82161d1039c565fa52105daaedd6b0
1,003
cpp
C++
ABC154/ABC154D.cpp
KoukiNAGATA/c-
ae51bacb9facb936a151dd777beb6688383a2dcd
[ "MIT" ]
null
null
null
ABC154/ABC154D.cpp
KoukiNAGATA/c-
ae51bacb9facb936a151dd777beb6688383a2dcd
[ "MIT" ]
3
2021-03-31T01:39:25.000Z
2021-05-04T10:02:35.000Z
ABC154/ABC154D.cpp
KoukiNAGATA/c-
ae51bacb9facb936a151dd777beb6688383a2dcd
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <cstdio> #include <string> #include <algorithm> using namespace std; int main() { int n, k; cin >> n >> k; vector<float> v(n + k + 10, 0.0); vector<float> s(n + k + 10, 0.0); vector<float> dp(n + k + 10, 0.0); float tmp; for (int i = 1; i <= n...
19.288462
83
0.363908
4b367dee1553f8f835a5c857e5f26c318bcb2f91
7,034
hpp
C++
plugins/bm3d/src/VAggregate.hpp
darcyg/vapoursynth-plugins
5aaf090d3523cb8c53841949f2da286688ba33bb
[ "BSD-2-Clause" ]
null
null
null
plugins/bm3d/src/VAggregate.hpp
darcyg/vapoursynth-plugins
5aaf090d3523cb8c53841949f2da286688ba33bb
[ "BSD-2-Clause" ]
null
null
null
plugins/bm3d/src/VAggregate.hpp
darcyg/vapoursynth-plugins
5aaf090d3523cb8c53841949f2da286688ba33bb
[ "BSD-2-Clause" ]
1
2020-04-06T16:52:59.000Z
2020-04-06T16:52:59.000Z
/* * BM3D denoising filter - VapourSynth plugin * Copyright (C) 2015 mawen1250 * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later...
37.216931
137
0.632784
4b3713d5fea0e780c388cee24e4af28785ae4911
2,912
cpp
C++
Core/src/MemBuffer.cpp
int-Frank/BSR
16310147281c76ca37836b07aff2974234e09a47
[ "Apache-2.0" ]
1
2020-01-04T20:17:42.000Z
2020-01-04T20:17:42.000Z
Core/src/MemBuffer.cpp
int-Frank/BSR
16310147281c76ca37836b07aff2974234e09a47
[ "Apache-2.0" ]
null
null
null
Core/src/MemBuffer.cpp
int-Frank/BSR
16310147281c76ca37836b07aff2974234e09a47
[ "Apache-2.0" ]
null
null
null
#include "MemBuffer.h" //-------------------------------------------------------------------------------------------- // MemBufferDynamic //-------------------------------------------------------------------------------------------- MemBufferDynamic::MemBufferDynamic() : m_cursor(0) , m_memblock(s_defaultSize) ...
22.4
94
0.629121
4b372c7f74d23b4c806a9cba4e5b1a3f75f1dbfd
5,880
cpp
C++
src/cpotrf_mgpu.cpp
shengren/magma-1.6.1
1adfee30b763e9491a869403e0f320b3888923b6
[ "BSD-3-Clause" ]
21
2017-10-06T05:05:05.000Z
2022-03-13T15:39:20.000Z
src/cpotrf_mgpu.cpp
shengren/magma-1.6.1
1adfee30b763e9491a869403e0f320b3888923b6
[ "BSD-3-Clause" ]
1
2017-03-23T00:27:24.000Z
2017-03-23T00:27:24.000Z
src/cpotrf_mgpu.cpp
shengren/magma-1.6.1
1adfee30b763e9491a869403e0f320b3888923b6
[ "BSD-3-Clause" ]
4
2018-01-09T15:49:58.000Z
2022-03-13T15:39:27.000Z
/* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @generated from zpotrf_mgpu.cpp normal z -> c, Fri Jan 30 19:00:13 2015 */ #include "common_magma.h" /** Purpose ------- CPOTRF c...
33.6
95
0.522449
4b37f86dbc4fdd78055aadd3ce416277edd8b2a9
10,031
cpp
C++
game_shared/voice_status.cpp
darealshinji/halflife
f3853c2a666c3264d218cf2d1b14b17c0b21c073
[ "Unlicense" ]
1
2020-07-14T12:47:38.000Z
2020-07-14T12:47:38.000Z
game_shared/voice_status.cpp
darealshinji/hlspbunny-v4
f3853c2a666c3264d218cf2d1b14b17c0b21c073
[ "Unlicense" ]
null
null
null
game_shared/voice_status.cpp
darealshinji/hlspbunny-v4
f3853c2a666c3264d218cf2d1b14b17c0b21c073
[ "Unlicense" ]
null
null
null
#include <stdio.h> #include <string.h> #include "wrect.h" #include "cl_dll.h" #include "cl_util.h" #include "cl_entity.h" #include "const.h" #include "parsemsg.h" // BEGIN_READ(), ... #include "voice_status.h" static CVoiceStatus *g_pInternalVoiceStatus = NULL; // ------------------------------------------------...
21.525751
128
0.662945
4b3ad2c0bd10c8076b986bb60eca2d9e768487a5
9,514
cpp
C++
src/slg/lights/infinitelight.cpp
OmidGhotbi/LuxCore
e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a
[ "Apache-2.0" ]
826
2017-12-12T15:38:16.000Z
2022-03-28T07:12:40.000Z
src/slg/lights/infinitelight.cpp
OmidGhotbi/LuxCore
e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a
[ "Apache-2.0" ]
531
2017-12-03T17:21:06.000Z
2022-03-20T19:22:11.000Z
src/slg/lights/infinitelight.cpp
OmidGhotbi/LuxCore
e83fb6bf2e2c0254e3c769ffc8e5546eb71f576a
[ "Apache-2.0" ]
133
2017-12-13T18:46:10.000Z
2022-03-27T16:21:00.000Z
/*************************************************************************** * Copyright 1998-2020 by authors (see AUTHORS.txt) * * * * This file is part of LuxCoreRender. * * ...
36.037879
141
0.670486
4b3d7eebd6e070bb47b195912f7194c6112d041b
8,854
cpp
C++
wzskcmbd/CrdWzskSht/PnlWzskShtDetail.cpp
mpsitech/wzsk-Whiznium-StarterK
94a0a8a05a0fac06c4360b8f835556a299b9425a
[ "MIT" ]
1
2020-09-20T16:25:07.000Z
2020-09-20T16:25:07.000Z
wzskcmbd/CrdWzskSht/PnlWzskShtDetail.cpp
mpsitech/wzsk-Whiznium-StarterKit
94a0a8a05a0fac06c4360b8f835556a299b9425a
[ "MIT" ]
null
null
null
wzskcmbd/CrdWzskSht/PnlWzskShtDetail.cpp
mpsitech/wzsk-Whiznium-StarterKit
94a0a8a05a0fac06c4360b8f835556a299b9425a
[ "MIT" ]
null
null
null
/** * \file PnlWzskShtDetail.cpp * job handler for job PnlWzskShtDetail (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Emily Johnson (auto-generation) * \date created: 5 Dec 2020 */ // IP header --- ABOVE #ifdef WZSKCMBD #include <Wzskcmbd.h> #else #include <Wzskd.h> #endif #incl...
28.378205
132
0.70375
4b3de477cd0579d0cf9a250831e6f7332710c3e0
9,377
cpp
C++
tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
seanbaxter/DirectXShaderCompiler
6d02c8d43ff3fdeb9963acaf3af00c62aaa01f44
[ "NCSA" ]
null
null
null
tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
seanbaxter/DirectXShaderCompiler
6d02c8d43ff3fdeb9963acaf3af00c62aaa01f44
[ "NCSA" ]
null
null
null
tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
seanbaxter/DirectXShaderCompiler
6d02c8d43ff3fdeb9963acaf3af00c62aaa01f44
[ "NCSA" ]
null
null
null
//==- UnreachableCodeChecker.cpp - Generalized dead code checker -*- C++ -*-==// // // The LLVM37 Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------------------...
36.628906
80
0.644769
4b3e15649008fff3ff878c272fb4d0dc5fe8314f
1,134
cpp
C++
heap_sort.cpp
MDarshan123/Algorithms-1
c077ef399f4fea59f683c0338e56d1a87a79a466
[ "MIT" ]
33
2019-10-20T03:07:31.000Z
2021-12-05T06:50:12.000Z
heap_sort.cpp
MDarshan123/Algorithms-1
c077ef399f4fea59f683c0338e56d1a87a79a466
[ "MIT" ]
51
2019-10-09T18:09:53.000Z
2021-07-06T08:28:39.000Z
heap_sort.cpp
MDarshan123/Algorithms-1
c077ef399f4fea59f683c0338e56d1a87a79a466
[ "MIT" ]
117
2019-10-09T18:10:58.000Z
2022-02-22T14:22:47.000Z
# Python program for implementation of heap Sort # To heapify subtree rooted at index i. # n is size of heap def heapify(arr, n, i): largest = i # Initialize largest as root l = 2 * i + 1 # left = 2*i + 1 r = 2 * i + 2 # right = 2*i + 2 # See if left child of root exists and is # greater than root if...
23.625
51
0.603175
4b40cb282bccefe5f63fcfea11d1405e9c6c359e
16,227
cc
C++
Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/src/contrib/random/sgx_random_engine.cc
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
64
2021-05-02T14:42:34.000Z
2021-05-06T01:35:03.000Z
src/contrib/random/sgx_random_engine.cc
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
23
2019-07-29T05:21:52.000Z
2020-08-31T18:51:42.000Z
src/contrib/random/sgx_random_engine.cc
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
51
2019-07-12T05:10:25.000Z
2021-07-28T16:19:06.000Z
/*! * Copyright (c) 2018 by Contributors * \file random/sgx_random_engine.h * \brief SGX trusted random engine */ #include <dmlc/logging.h> #include <sgx_trts.h> #include <algorithm> #include <cmath> #include "../../runtime/sgx/common.h" namespace tvm { namespace contrib { /*! * \brief An interface for generati...
55.762887
92
0.762125
4b425e1bcfaab4ff82c705397313c550c4eecbdd
4,120
cxx
C++
Modules/Filtering/ImageGradient/test/itkGradientImageFilterTest2.cxx
floryst/ITK
321e673bcbac15aae2fcad863fd0977b7fbdb3e9
[ "Apache-2.0" ]
1
2021-11-29T14:41:43.000Z
2021-11-29T14:41:43.000Z
Modules/Filtering/ImageGradient/test/itkGradientImageFilterTest2.cxx
floryst/ITK
321e673bcbac15aae2fcad863fd0977b7fbdb3e9
[ "Apache-2.0" ]
1
2017-08-18T19:28:52.000Z
2017-08-18T19:28:52.000Z
Modules/Filtering/ImageGradient/test/itkGradientImageFilterTest2.cxx
floryst/ITK
321e673bcbac15aae2fcad863fd0977b7fbdb3e9
[ "Apache-2.0" ]
1
2017-08-18T19:07:39.000Z
2017-08-18T19:07:39.000Z
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
30.518519
99
0.674029
4b42a06a27f4d72f91b1a18e9c18eb11801c3a31
24,236
cpp
C++
tests/args-test.cpp
mbits-libs/libargs
72f5f2b87ae39f26638a585fa4ad0b96b4152ae6
[ "MIT" ]
null
null
null
tests/args-test.cpp
mbits-libs/libargs
72f5f2b87ae39f26638a585fa4ad0b96b4152ae6
[ "MIT" ]
2
2020-09-25T10:07:38.000Z
2020-10-11T16:01:17.000Z
tests/args-test.cpp
mbits-libs/libargs
72f5f2b87ae39f26638a585fa4ad0b96b4152ae6
[ "MIT" ]
null
null
null
#include <args/parser.hpp> #include <iostream> #include <string_view> using namespace std::literals; struct test { const char* title; int (*callback)(); int expected{0}; std::string_view output{}; }; std::vector<test> g_tests; template <typename Test> struct registrar { registrar() { ::g_tests.push_back( ...
31.151671
718
0.609589
4b42cf206f3e1c9b44048a47981ebfdd2d78de10
6,505
cpp
C++
C++CodeSnippets/HLD [LOJ-1348].cpp
Maruf-Tuhin/Online_Judge
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
1
2019-03-31T05:47:30.000Z
2019-03-31T05:47:30.000Z
C++CodeSnippets/HLD [LOJ-1348].cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
C++CodeSnippets/HLD [LOJ-1348].cpp
the-redback/competitive-programming
cf9b2a522e8b1a9623d3996a632caad7fd67f751
[ "MIT" ]
null
null
null
/** * @author : Maruf Tuhin * @College : CUET CSE 11 * @Topcoder : the_redback * @CodeForces : the_redback * @UVA : the_redback * @link : http://www.fb.com/maruf.2hin */ #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long llu; ...
26.443089
79
0.465796
4b43788c40830200684afa37f82a146623c14339
5,748
cpp
C++
lib/analyzer/expressions/typeclass.cpp
reaver-project/vapor
17ddb5c60b483bd17a288319bfd3e8a43656859e
[ "Zlib" ]
4
2017-07-22T23:12:36.000Z
2022-01-13T23:57:06.000Z
lib/analyzer/expressions/typeclass.cpp
reaver-project/vapor
17ddb5c60b483bd17a288319bfd3e8a43656859e
[ "Zlib" ]
36
2016-11-26T17:46:16.000Z
2019-05-21T16:27:13.000Z
lib/analyzer/expressions/typeclass.cpp
reaver-project/vapor
17ddb5c60b483bd17a288319bfd3e8a43656859e
[ "Zlib" ]
3
2016-10-01T21:04:32.000Z
2021-03-20T06:57:53.000Z
/** * Vapor Compiler Licence * * Copyright © 2017-2019 Michał "Griwes" Dominiak * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this ...
37.324675
110
0.60421
4b438c9f87d7bc33cfe4d9a966bba4f1e2767a67
3,036
cpp
C++
sp/src/game/client/dbr/hud_hull.cpp
URAKOLOUY5/source-sdk-2013
d6e2d4b6d3e93b1224e6b4aa378d05309eee20bc
[ "Unlicense" ]
2
2022-02-18T18:16:37.000Z
2022-02-23T21:21:37.000Z
sp/src/game/client/dbr/hud_hull.cpp
URAKOLOUY5/u5-maps
d6e2d4b6d3e93b1224e6b4aa378d05309eee20bc
[ "Unlicense" ]
null
null
null
sp/src/game/client/dbr/hud_hull.cpp
URAKOLOUY5/u5-maps
d6e2d4b6d3e93b1224e6b4aa378d05309eee20bc
[ "Unlicense" ]
null
null
null
#include "cbase.h" #include "hud.h" #include "hud_macros.h" #include "c_baseplayer.h" #include "hud_hull.h" #include "iclientmode.h" #include "vgui/ISurface.h" using namespace vgui; #include "tier0/memdbgon.h" #ifndef DBR DECLARE_HUDELEMENT (CHudHull); #endif # define HULL_INIT 80 //-----------------------...
26.172414
105
0.525033
4b45421dcb8c6a9168ef3b3b2d44ed2d2dbd917b
19,308
cxx
C++
Rendering/VR/vtkVRRenderWindow.cxx
jpouderoux/VTK
1af22bcce698e121b6c8064ea724636621d1bf7e
[ "BSD-3-Clause" ]
1
2021-11-23T02:09:28.000Z
2021-11-23T02:09:28.000Z
Rendering/VR/vtkVRRenderWindow.cxx
zist8888/VTK
74ae7be4aa33c94b0535ebbdaf7d27573d7c7614
[ "BSD-3-Clause" ]
null
null
null
Rendering/VR/vtkVRRenderWindow.cxx
zist8888/VTK
74ae7be4aa33c94b0535ebbdaf7d27573d7c7614
[ "BSD-3-Clause" ]
null
null
null
/*========================================================================= Program: Visualization Toolkit Module: vtkVRRenderWindow.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distribute...
31.497553
100
0.610317
4b456dc0150daf1a1979db5991fec39e2c70fefe
732
cpp
C++
Ticker.cpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
26
2015-04-22T05:25:25.000Z
2020-11-15T11:07:56.000Z
Ticker.cpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
2
2015-01-05T10:41:27.000Z
2015-01-06T20:46:11.000Z
Ticker.cpp
quyse/inanity
a39225c5a41f879abe5aa492bb22b500dbe77433
[ "MIT" ]
5
2016-08-02T11:13:57.000Z
2018-10-26T11:19:27.000Z
#include "Ticker.hpp" BEGIN_INANITY Ticker::Ticker() : lastTick(-1), pauseTick(-1) { tickCoef = 1.0f / Time::GetTicksPerSecond(); } void Ticker::Pause() { // if already paused, do nothing if(pauseTick >= 0) return; // remember pause time pauseTick = Time::GetTick(); } float Ticker::Tick() { // get curren...
15.25
45
0.659836
4b4571a1dcce05248083a5fc2bc7cf8acfc8de44
1,851
cpp
C++
Code/Libraries/Rodin/src/BTNodes/rodinbtnodeuseresource.cpp
lihop/Eldritch
bb38ff8ad59e4c1f11b1430ef482e60f7618a280
[ "Zlib" ]
4
2019-09-15T20:00:23.000Z
2021-08-27T23:32:53.000Z
Code/Libraries/Rodin/src/BTNodes/rodinbtnodeuseresource.cpp
lihop/Eldritch
bb38ff8ad59e4c1f11b1430ef482e60f7618a280
[ "Zlib" ]
null
null
null
Code/Libraries/Rodin/src/BTNodes/rodinbtnodeuseresource.cpp
lihop/Eldritch
bb38ff8ad59e4c1f11b1430ef482e60f7618a280
[ "Zlib" ]
1
2021-03-27T11:27:03.000Z
2021-03-27T11:27:03.000Z
#include "core.h" #include "rodinbtnodeuseresource.h" #include "configmanager.h" #include "Components/wbcomprodinresourcemap.h" #include "Components/wbcomprodinbehaviortree.h" #include "wbentity.h" RodinBTNodeUseResource::RodinBTNodeUseResource() : m_Resource() , m_ForceClaim( false ) { } RodinBTNodeUseResource::~Rod...
26.070423
93
0.763911
4b45b2aa280d0a1054559f1185dd10551b0220e2
331
cpp
C++
src/power.cpp
Glowman554/FoxOS-kernel
06c9f820dee8769b23cf6ba4d5df9cb9324a14d7
[ "MIT" ]
13
2021-02-19T16:54:18.000Z
2022-01-06T18:02:20.000Z
src/power.cpp
Glowman554/FoxOS-kernel
06c9f820dee8769b23cf6ba4d5df9cb9324a14d7
[ "MIT" ]
1
2021-08-21T16:55:38.000Z
2021-08-24T10:34:32.000Z
src/power.cpp
Glowman554/FoxOS-kernel
06c9f820dee8769b23cf6ba4d5df9cb9324a14d7
[ "MIT" ]
4
2021-08-20T15:28:01.000Z
2022-03-22T19:02:56.000Z
#include <power.h> #include <pci/acpi.h> #include <interrupts/panic.h> #include <stivale2.h> //#do_reboot-doc: Reboot FoxOS void do_reboot() { uint8_t good = 0x02; while (good & 0x02) { good = inb(0x64); } outb(0x64, 0xfe); asm("hlt"); interrupts::Panic p = interrupts::Panic((char*) "Reboot failed!"); p.do_...
18.388889
67
0.655589
4b49ad3749602235aac24ea6c174b33d47f545f6
45,547
cc
C++
Calibration/EcalCalibAlgos/src/ElectronCalibrationUniv.cc
malbouis/cmssw
16173a30d3f0c9ecc5419c474bb4d272c58b65c8
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Calibration/EcalCalibAlgos/src/ElectronCalibrationUniv.cc
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Calibration/EcalCalibAlgos/src/ElectronCalibrationUniv.cc
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DataFormats/EcalDetId/interface/EBDetId.h" #include "DataFormats/DetId/interface/DetId.h" #include "Calibration/Tools/interface/calibXMLwriter.h" #include "Calibration/Tools/interface/CalibrationCluster.h" #include "Calibration/Tools/interface/Househol...
44.091965
166
0.629855
4b4a53a88a31216c53148baa1ab0b86d8d60022f
14,142
cpp
C++
src/client/client/Command_Client_Engine.cpp
Kuga23/Projet-M2
85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433
[ "MIT" ]
null
null
null
src/client/client/Command_Client_Engine.cpp
Kuga23/Projet-M2
85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433
[ "MIT" ]
null
null
null
src/client/client/Command_Client_Engine.cpp
Kuga23/Projet-M2
85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433
[ "MIT" ]
null
null
null
#include <iostream> #include <functional> #include <unistd.h> #include "Command_Client_Engine.h" #include "state.h" #include "render.h" #include "engine.h" using namespace client; using namespace render; using namespace engine; using namespace state; using namespace std; Command_Client_Engine::Command_Client_Engine(...
47.14
119
0.534366
4b4a849a3095755fca6a4b889b518508f7977745
62,983
cxx
C++
Plugins/GenericIOReader/Readers/LANL/GIO/GenericIO.cxx
psavery/ParaView
00074fbc7de29c2ab2f1b90624e07d1af53484ee
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-07-21T07:15:44.000Z
2021-07-21T07:15:44.000Z
Plugins/GenericIOReader/Readers/LANL/GIO/GenericIO.cxx
psavery/ParaView
00074fbc7de29c2ab2f1b90624e07d1af53484ee
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Plugins/GenericIOReader/Readers/LANL/GIO/GenericIO.cxx
psavery/ParaView
00074fbc7de29c2ab2f1b90624e07d1af53484ee
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-03-13T03:35:01.000Z
2021-03-13T03:35:01.000Z
/* * Copyright (C) 2015, UChicago Argonne, LLC * All Rights Reserved * * Generic IO (ANL-15-066) * Hal Finkel, Argonne National Laboratory * * OPEN SOURCE LICENSE * * Under the terms ...
28.370721
100
0.625327
4b4a88a92eb5389cc24518a5e9e3e5b05e3510f6
423
cc
C++
src/ppl/nn/engines/x86/kernels/onnx/constant_kernel.cc
wolf15/ppl.nn
ac23e5eb518039536f1ef39b43c63d6bda900e77
[ "Apache-2.0" ]
1
2021-06-30T14:07:37.000Z
2021-06-30T14:07:37.000Z
src/ppl/nn/engines/x86/kernels/onnx/constant_kernel.cc
wolf15/ppl.nn
ac23e5eb518039536f1ef39b43c63d6bda900e77
[ "Apache-2.0" ]
null
null
null
src/ppl/nn/engines/x86/kernels/onnx/constant_kernel.cc
wolf15/ppl.nn
ac23e5eb518039536f1ef39b43c63d6bda900e77
[ "Apache-2.0" ]
null
null
null
#include "ppl/nn/engines/x86/kernels/onnx/constant_kernel.h" using namespace std; using namespace ppl::common; namespace ppl { namespace nn { namespace x86 { RetCode ConstantKernel::DoExecute(KernelExecContext* ctx) { auto output = ctx->GetOutput<TensorImpl>(0); GetDevice()->CopyFromHost(&output->GetBufferDes...
30.214286
97
0.728132
4b4af7404b2bc9c13c9bfaddb37f9d5ae6b508a7
572
cpp
C++
src/leetcode/8/61231414_wrong_answer.cpp
lnkkerst/oj-codes
d778489182d644370b2a690aa92c3df6542cc306
[ "MIT" ]
null
null
null
src/leetcode/8/61231414_wrong_answer.cpp
lnkkerst/oj-codes
d778489182d644370b2a690aa92c3df6542cc306
[ "MIT" ]
null
null
null
src/leetcode/8/61231414_wrong_answer.cpp
lnkkerst/oj-codes
d778489182d644370b2a690aa92c3df6542cc306
[ "MIT" ]
null
null
null
class Solution { public: bool isdigit(char ch) { return (ch <= '9' && ch >= '0'); } int myAtoi(string str) { #define int long long int pos = 0, ret = 0, fl = 1; char ch; while(pos < (int)str.length() && !isdigit(ch = str[pos++])) if(ch == '-') (fl = -1); for(r...
31.777778
109
0.472028
4b4c4d4b90790b30be2c6ce0010ef3f8ab971bdb
3,898
cpp
C++
devices/laihost/laihost.cpp
JartC0ding/horizon
2b9a75b45ac768a8da0f7a98f164a37690dc583f
[ "MIT" ]
null
null
null
devices/laihost/laihost.cpp
JartC0ding/horizon
2b9a75b45ac768a8da0f7a98f164a37690dc583f
[ "MIT" ]
null
null
null
devices/laihost/laihost.cpp
JartC0ding/horizon
2b9a75b45ac768a8da0f7a98f164a37690dc583f
[ "MIT" ]
null
null
null
extern "C" { #include <lai/host.h> #include <acpispec/tables.h> } #include <memory/page_table_manager.h> #include <memory/page_frame_allocator.h> #include <utils/abort.h> #include <utils/log.h> #include <utils/string.h> #include <utils/port.h> #include <pci/pci.h> #include <timer/timer.h> #include <acpi/acpi.h> ext...
26.161074
112
0.693689
4b4d9667bcd8c48992dafb1598dcc5c44defc873
4,160
cpp
C++
example/Reading/source/main.cpp
HamletDuFromage/Simple-INI-Parser
ca427f98dc25620432430c563d9a73534b942c37
[ "0BSD" ]
null
null
null
example/Reading/source/main.cpp
HamletDuFromage/Simple-INI-Parser
ca427f98dc25620432430c563d9a73534b942c37
[ "0BSD" ]
null
null
null
example/Reading/source/main.cpp
HamletDuFromage/Simple-INI-Parser
ca427f98dc25620432430c563d9a73534b942c37
[ "0BSD" ]
null
null
null
/* * SimpleIniParser * Copyright (c) 2020 Nichole Mattera * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS I...
33.821138
195
0.568029
4b4d9c3b2d73165f35ead04dcae80358ea85ee85
374
cpp
C++
examples/error_mitigation/simple_mitiq.cpp
ausbin/qcor
e9e0624a0e14b1b980ce9265b71c9b394abc60a8
[ "BSD-3-Clause" ]
59
2019-08-22T18:40:38.000Z
2022-03-09T04:12:42.000Z
examples/error_mitigation/simple_mitiq.cpp
ausbin/qcor
e9e0624a0e14b1b980ce9265b71c9b394abc60a8
[ "BSD-3-Clause" ]
137
2019-09-13T15:50:18.000Z
2021-12-06T14:19:46.000Z
examples/error_mitigation/simple_mitiq.cpp
ausbin/qcor
e9e0624a0e14b1b980ce9265b71c9b394abc60a8
[ "BSD-3-Clause" ]
26
2019-07-08T17:30:35.000Z
2021-12-03T16:24:12.000Z
// run error mitigation with mitiq with // $ qcor -qpu aer[noise-model:noise_model.json] -shots 4096 -em mitiq simple_mitiq.cpp // $ ./a.out __qpu__ void noisy_zero(qreg q) { for (int i = 0; i < 100; i++) { X(q[0]); } Measure(q[0]); } int main() { qreg q = qalloc(1); noisy_zero(q); st...
23.375
87
0.564171
4b5209642cd837eb185a7620bf2c05692dbb57e3
62,359
cpp
C++
src/pal/src/map/virtual.cpp
chrisaut/coreclr
849da1bdf828256624dac634eefe8590e48f0c26
[ "MIT" ]
null
null
null
src/pal/src/map/virtual.cpp
chrisaut/coreclr
849da1bdf828256624dac634eefe8590e48f0c26
[ "MIT" ]
null
null
null
src/pal/src/map/virtual.cpp
chrisaut/coreclr
849da1bdf828256624dac634eefe8590e48f0c26
[ "MIT" ]
1
2021-02-24T10:01:34.000Z
2021-02-24T10:01:34.000Z
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /*++ Module Name: virtual.cpp Abstract: Implementation of virtual memory management functions. --*/...
30.198063
108
0.614474
4b52edac9b99a758c946b121fb8e0a8a29024d59
44,075
cpp
C++
Marlin-RC_Deltaprintr/Marlin/stepper.cpp
lordjoe/DeltaPrintRFirmware
c94fbcb1e3b82c495e5fddd7f43409e25fcddf71
[ "Apache-2.0" ]
2
2018-08-17T07:16:42.000Z
2018-08-17T07:16:54.000Z
firmware/Marlin/stepper.cpp
polygontwist/alu_slider
0e648a732dd32789f9a72f116da08ed585e71feb
[ "MIT" ]
null
null
null
firmware/Marlin/stepper.cpp
polygontwist/alu_slider
0e648a732dd32789f9a72f116da08ed585e71feb
[ "MIT" ]
null
null
null
/** * Marlin 3D Printer Firmware * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General...
31.414825
165
0.627703
4b5334791fd558dd47efd07d0e0f53ecfd1088e1
1,282
cc
C++
handy/port_posix.cc
onlyet/handy
780548fc7433c7f3ec541b15a7e87efb996a7218
[ "BSD-2-Clause" ]
2
2018-04-27T15:32:37.000Z
2019-12-27T13:04:58.000Z
handy/port_posix.cc
OnlYet/handy
780548fc7433c7f3ec541b15a7e87efb996a7218
[ "BSD-2-Clause" ]
1
2018-11-13T06:41:51.000Z
2018-11-13T06:41:51.000Z
handy/port_posix.cc
OnlYet/handy
780548fc7433c7f3ec541b15a7e87efb996a7218
[ "BSD-2-Clause" ]
null
null
null
#include "port_posix.h" #include <netdb.h> #include <pthread.h> #include <string.h> #include <sys/syscall.h> #include <unistd.h> #define OS_LINUX namespace handy { namespace port { #ifdef OS_LINUX struct in_addr getHostByName(const std::string &host) { struct in_addr addr; char buf[1024]; struct hostent h...
25.137255
80
0.638846
4b53deea56787cb6b802da4d1dc5e7358e42ed8a
10,359
cc
C++
src/Worker.cc
tsw303005/MapReduce
e29778a439210963a7cd8047e55123e0c810b79b
[ "MIT" ]
null
null
null
src/Worker.cc
tsw303005/MapReduce
e29778a439210963a7cd8047e55123e0c810b79b
[ "MIT" ]
null
null
null
src/Worker.cc
tsw303005/MapReduce
e29778a439210963a7cd8047e55123e0c810b79b
[ "MIT" ]
null
null
null
#include "Worker.h" Worker::Worker(char **argv, int cpu_num, int rank, int size) { this->job_name = std::string(argv[1]); this->num_reducer = std::stoi(argv[2]); this->delay = std::stoi(argv[3]); this->input_filename = std::string(argv[4]); this->chunk_size = std::stoi(argv[5]); this->output_di...
28.458791
107
0.551212
4b544ad0ecd7ada690a6c1b109de0382c6378e86
3,501
hpp
C++
heart/src/problem/cell_factories/PlaneStimulusCellFactory.hpp
stu-l/Chaste
8efa8b440660553af66804067639f237c855f557
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
heart/src/problem/cell_factories/PlaneStimulusCellFactory.hpp
stu-l/Chaste
8efa8b440660553af66804067639f237c855f557
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
heart/src/problem/cell_factories/PlaneStimulusCellFactory.hpp
stu-l/Chaste
8efa8b440660553af66804067639f237c855f557
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2005-2022, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
38.472527
142
0.748072
4b552c1892dbbbcfd60a47b4272ada7a60f94504
3,499
cpp
C++
GDADPRG_HO6/GameObjectPool.cpp
NeilDG/GDADPRG-GDPARCM_Courseware
771509ec7b3eb6d6375807819ca9da957dd22641
[ "MIT" ]
null
null
null
GDADPRG_HO6/GameObjectPool.cpp
NeilDG/GDADPRG-GDPARCM_Courseware
771509ec7b3eb6d6375807819ca9da957dd22641
[ "MIT" ]
null
null
null
GDADPRG_HO6/GameObjectPool.cpp
NeilDG/GDADPRG-GDPARCM_Courseware
771509ec7b3eb6d6375807819ca9da957dd22641
[ "MIT" ]
null
null
null
#include "GameObjectPool.h" #include <iostream> #include "GameObjectManager.h" GameObjectPool::GameObjectPool(string tag, APoolable* poolableCopy, int poolableSize, AGameObject* parent) { this->tag = tag; this->objectCopy = poolableCopy; this->maxPoolSize = poolableSize; this->parent = parent; } GameObjectPool::~...
26.11194
131
0.692769
4b56038c11eb76d4f69b9a5268b00764dc33c48b
7,261
cpp
C++
missile_command_Fa16/doubly_linked_list.cpp
RandyDeng/Missile_Command
771bcfb042112e97ceb3f511106c2965295ac979
[ "MIT" ]
null
null
null
missile_command_Fa16/doubly_linked_list.cpp
RandyDeng/Missile_Command
771bcfb042112e97ceb3f511106c2965295ac979
[ "MIT" ]
null
null
null
missile_command_Fa16/doubly_linked_list.cpp
RandyDeng/Missile_Command
771bcfb042112e97ceb3f511106c2965295ac979
[ "MIT" ]
1
2020-07-24T11:23:17.000Z
2020-07-24T11:23:17.000Z
/////////////////////////////////////////////////////////////////////// // Doubly Linked List // // This file should contain you implementation of the doubly-linked // list data structure as described in the project documentation. // // Some functions are provided for you - use these as guides for the // implem...
27.093284
103
0.545655
4b5783feaffc0d23f3d088d4a5ee3bf15ee2c6b1
198
cpp
C++
ExaHyPE/exahype/solvers/CellWiseCoupling.cpp
linusseelinger/ExaHyPE-Tsunami
92a6e14926862e1584ef1e935874c91d252e8112
[ "BSD-3-Clause" ]
2
2019-08-14T22:41:26.000Z
2020-02-04T19:30:24.000Z
ExaHyPE/exahype/solvers/CellWiseCoupling.cpp
linusseelinger/ExaHyPE-Tsunami
92a6e14926862e1584ef1e935874c91d252e8112
[ "BSD-3-Clause" ]
null
null
null
ExaHyPE/exahype/solvers/CellWiseCoupling.cpp
linusseelinger/ExaHyPE-Tsunami
92a6e14926862e1584ef1e935874c91d252e8112
[ "BSD-3-Clause" ]
3
2019-07-22T10:27:36.000Z
2020-05-11T12:25:29.000Z
#include "exahype/solvers/CellWiseCoupling.h" exahype::solvers::CellWiseCoupling::CellWiseCoupling(double time, double repeat): SolverCoupling( SolverCoupling::Type::CellWise, time, repeat) { }
28.285714
81
0.787879
4b57dce6491d197f21456d7d3dbb59514309aad5
5,034
cpp
C++
src/VK/base/ExtFreeSync2.cpp
Zakhrov/Cauldron
6c50024f6cd4495a1c6d18a58fa4875072ffa243
[ "MIT" ]
1
2019-07-24T12:02:40.000Z
2019-07-24T12:02:40.000Z
src/VK/base/ExtFreeSync2.cpp
Zakhrov/Cauldron
6c50024f6cd4495a1c6d18a58fa4875072ffa243
[ "MIT" ]
null
null
null
src/VK/base/ExtFreeSync2.cpp
Zakhrov/Cauldron
6c50024f6cd4495a1c6d18a58fa4875072ffa243
[ "MIT" ]
null
null
null
// AMD AMDUtils code // // Copyright(c) 2018 Advanced Micro Devices, Inc.All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files(the "Software"), to deal // in the Software without restriction, including without limitat...
48.403846
187
0.77056
4b5911b16b46bea84b40d6018d6bfa651aa697d5
2,110
cc
C++
tests/CSGNodeTest.cc
simoncblyth/CSG
9022100123cbc982b741a9e9ae9a544956818770
[ "Apache-2.0" ]
null
null
null
tests/CSGNodeTest.cc
simoncblyth/CSG
9022100123cbc982b741a9e9ae9a544956818770
[ "Apache-2.0" ]
null
null
null
tests/CSGNodeTest.cc
simoncblyth/CSG
9022100123cbc982b741a9e9ae9a544956818770
[ "Apache-2.0" ]
null
null
null
// ./CSGNodeTest.sh #include <vector> #include <iomanip> #include <iostream> #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> #include "sutil_vec_math.h" #include "CSGNode.h" #include "Sys.h" void test_copy() { glm::mat4 m0(1.f); glm::mat4 m1(2.f); glm::mat4 m2(3.f); m0[0][3] = Sys::int_as_floa...
20.095238
72
0.563981
4b5917d3c368dd0f8781755970b0334e422fdd9a
1,101
cpp
C++
0001-0100/0073.cpp
YKR/LeetCode2019
e4c6346eae5c7b85ba53249c46051700a73dd95e
[ "MIT" ]
null
null
null
0001-0100/0073.cpp
YKR/LeetCode2019
e4c6346eae5c7b85ba53249c46051700a73dd95e
[ "MIT" ]
null
null
null
0001-0100/0073.cpp
YKR/LeetCode2019
e4c6346eae5c7b85ba53249c46051700a73dd95e
[ "MIT" ]
null
null
null
class Solution { public: void setZeroes(vector<vector<int>>& matrix) { if (matrix.empty() || matrix[0].empty()) return; int n = matrix.size(), m = matrix[0].size(); bool lastRowZero = false; for (int j = 0; j < m; ++j) if (matrix[0][j] == 0) { ...
31.457143
56
0.347866
4b5afc308f388cadad67a3a4a95f9471189f6432
6,054
cpp
C++
rclcpp/src/rclcpp/executors/static_single_threaded_executor.cpp
asorbini/rclcpp
bc9abd02cd1f34107449e5e849063de7f0e9f71f
[ "Apache-2.0" ]
1
2021-02-01T23:39:44.000Z
2021-02-01T23:39:44.000Z
rclcpp/src/rclcpp/executors/static_single_threaded_executor.cpp
sanjayaranga/rclcpp
1c92e6d6091aae88422ad568761b736abf846e98
[ "Apache-2.0" ]
null
null
null
rclcpp/src/rclcpp/executors/static_single_threaded_executor.cpp
sanjayaranga/rclcpp
1c92e6d6091aae88422ad568761b736abf846e98
[ "Apache-2.0" ]
null
null
null
// Copyright 2019 Nobleo Technology // // 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 ...
32.724324
94
0.746283
4b5cf1061cc899d4e701a0869bad5e25290fd409
176
hpp
C++
src/HTMLElements/HTMLHeadElement.hpp
windlessStorm/WebWhir
0ed261427d4f4e4f81b62816dc0d94bfacd0890b
[ "MIT" ]
90
2017-04-03T21:42:57.000Z
2022-01-22T11:08:56.000Z
src/HTMLElements/HTMLHeadElement.hpp
windlessStorm/WebWhir
0ed261427d4f4e4f81b62816dc0d94bfacd0890b
[ "MIT" ]
21
2017-03-06T21:45:36.000Z
2017-03-06T21:45:37.000Z
src/HTMLElements/HTMLHeadElement.hpp
windlessStorm/WebWhir
0ed261427d4f4e4f81b62816dc0d94bfacd0890b
[ "MIT" ]
17
2017-04-15T22:42:13.000Z
2021-12-20T09:50:15.000Z
#ifndef HTMLHEADELEMENT_H #define HTMLHEADELEMENT_H #include "HTMLElement.hpp" class HTMLHeadElement : public HTMLElement { public: HTMLHeadElement(); }; #endif
13.538462
42
0.738636
4b5d23ce14403f0f3a7a4f2dbf24030ab0cfe1b9
6,496
cc
C++
chrome/browser/ui/network_profile_bubble.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-11-28T10:46:52.000Z
2019-11-28T10:46:52.000Z
chrome/browser/ui/network_profile_bubble.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/ui/network_profile_bubble.cc
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/network_profile_bubble.h" #include <windows.h> #include <wtsapi32.h> // Make sure we link the wtsapi lib file in. #pragm...
34.37037
80
0.735991
4b5d7d1c3d2bcdbfcb3610abe894088b437df312
2,087
cpp
C++
src/stubgenerator/stubgenerator.cpp
WinBuilds/libjson-rpc-cpp
eb3404156b389f3e76e859ca764a2f1a45da3bb5
[ "MIT" ]
null
null
null
src/stubgenerator/stubgenerator.cpp
WinBuilds/libjson-rpc-cpp
eb3404156b389f3e76e859ca764a2f1a45da3bb5
[ "MIT" ]
null
null
null
src/stubgenerator/stubgenerator.cpp
WinBuilds/libjson-rpc-cpp
eb3404156b389f3e76e859ca764a2f1a45da3bb5
[ "MIT" ]
null
null
null
/************************************************************************* * libjson-rpc-cpp ************************************************************************* * @file stubgenerator.cpp * @date 01.05.2013 * @author Peter Spiess-Knafl <dev@spiessknafl.at> * @license See attached LICENSE.txt ********...
35.982759
80
0.55103
4b5dee04ebcc36f796ac7481fa4d22eb71b1bbd2
866
cpp
C++
API/Driver/OpenGL/src/Command/Query.cpp
Gpinchon/OCRA
341bb07facc616f1f8a27350054d1e86f022d7c6
[ "Apache-2.0" ]
null
null
null
API/Driver/OpenGL/src/Command/Query.cpp
Gpinchon/OCRA
341bb07facc616f1f8a27350054d1e86f022d7c6
[ "Apache-2.0" ]
null
null
null
API/Driver/OpenGL/src/Command/Query.cpp
Gpinchon/OCRA
341bb07facc616f1f8a27350054d1e86f022d7c6
[ "Apache-2.0" ]
null
null
null
#include <GL/Command/Buffer.hpp> #include <GL/QueryPool.hpp> OCRA_DECLARE_HANDLE(OCRA::Command::Buffer); OCRA_DECLARE_HANDLE(OCRA::QueryPool); namespace OCRA::Command { void BeginQuery( const Command::Buffer::Handle& a_CommandBuffer, const QueryPool::Handle& a_QueryPool, const uint32_t& ...
32.074074
129
0.69746
4b5f0b462215ce3c27fb8d26902faf397c88f791
18,192
cpp
C++
rmf_fleet_adapter/rmf_rxcpp/RxCpp-4.1.0/Rx/v2/test/operators/publish.cpp
Capstone-S13/rmf_ros2
66721dd2ab5a458c050bad154c6a17d8e4b5c8f4
[ "Apache-2.0" ]
1,451
2018-05-04T21:36:08.000Z
2022-03-27T07:42:45.000Z
rmf_fleet_adapter/rmf_rxcpp/RxCpp-4.1.0/Rx/v2/test/operators/publish.cpp
Capstone-S13/rmf_ros2
66721dd2ab5a458c050bad154c6a17d8e4b5c8f4
[ "Apache-2.0" ]
150
2018-05-10T10:38:19.000Z
2022-03-24T14:15:11.000Z
rmf_fleet_adapter/rmf_rxcpp/RxCpp-4.1.0/Rx/v2/test/operators/publish.cpp
Capstone-S13/rmf_ros2
66721dd2ab5a458c050bad154c6a17d8e4b5c8f4
[ "Apache-2.0" ]
220
2018-05-05T08:11:16.000Z
2022-03-13T10:34:41.000Z
#include "../test.h" #include <rxcpp/operators/rx-publish.hpp> #include <rxcpp/operators/rx-connect_forever.hpp> #include <rxcpp/operators/rx-ref_count.hpp> #include <rxcpp/operators/rx-map.hpp> #include <rxcpp/operators/rx-merge.hpp> SCENARIO("publish range", "[!hide][range][subject][publish][subject][operators]"){ ...
34.259887
97
0.445031
4b5f3bbb80365fb815744bb378f3c8e80225ee07
9,256
cpp
C++
UnrealEngine-4.11.2-release/Engine/Source/Runtime/AIModule/Private/EnvironmentQuery/Tests/EnvQueryTest_Pathfinding.cpp
armroyce/Unreal
ea1cdebe70407d59af4e8366d7111c52ce4606df
[ "MIT" ]
1
2016-10-01T21:35:52.000Z
2016-10-01T21:35:52.000Z
UnrealEngine-4.11.2-release/Engine/Source/Runtime/AIModule/Private/EnvironmentQuery/Tests/EnvQueryTest_Pathfinding.cpp
armroyce/Unreal
ea1cdebe70407d59af4e8366d7111c52ce4606df
[ "MIT" ]
null
null
null
UnrealEngine-4.11.2-release/Engine/Source/Runtime/AIModule/Private/EnvironmentQuery/Tests/EnvQueryTest_Pathfinding.cpp
armroyce/Unreal
ea1cdebe70407d59af4e8366d7111c52ce4606df
[ "MIT" ]
1
2021-04-27T08:48:33.000Z
2021-04-27T08:48:33.000Z
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "AIModulePrivate.h" #include "AI/Navigation/NavigationSystem.h" #include "AI/Navigation/NavAgentInterface.h" #include "EnvironmentQuery/Contexts/EnvQueryContext_Querier.h" #include "EnvironmentQuery/Items/EnvQueryItemType_VectorBase.h" #include "Env...
39.896552
222
0.784032
4b60e237f32d8903ee202101513eabbd349fab27
352
cpp
C++
src/core/aa_clip.cpp
nicelbole/skia.c
ce60902da5768973316075917e347d5f61097e74
[ "Apache-2.0" ]
null
null
null
src/core/aa_clip.cpp
nicelbole/skia.c
ce60902da5768973316075917e347d5f61097e74
[ "Apache-2.0" ]
null
null
null
src/core/aa_clip.cpp
nicelbole/skia.c
ce60902da5768973316075917e347d5f61097e74
[ "Apache-2.0" ]
null
null
null
AAClip* create_aa_clip() { AAClip *clip = malloc(sizeof(AAClip)); clip->bounds.setEmpty(); clip->run_head = nullptr; return clip; } AAClip* create_aa_clip(const AAClip& src) { AAClip* clip = malloc(sizeof(AAClip)); clip->run_head = nullptr; *clip = src; return clip; } void delete_aa_clip(AAClip* clip)...
16.761905
41
0.6875
4b610bec63b9e74ff0100d2707996f2b72a7c074
2,892
cpp
C++
src/mongo/db/pipeline/accumulator.cpp
wentingwang/morphus
af40299a5f07fd3157946112738f602a566a9908
[ "Apache-2.0" ]
24
2015-10-15T00:03:57.000Z
2021-04-25T18:21:31.000Z
src/mongo/db/pipeline/accumulator.cpp
stennie/mongo
9ff44ae9ad16a70e49517a78279260a37d31ac7c
[ "Apache-2.0" ]
1
2015-06-02T12:19:19.000Z
2015-06-02T12:19:19.000Z
src/mongo/db/pipeline/accumulator.cpp
stennie/mongo
9ff44ae9ad16a70e49517a78279260a37d31ac7c
[ "Apache-2.0" ]
3
2017-07-26T11:17:11.000Z
2021-11-30T00:11:32.000Z
/** * Copyright (c) 2011 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOU...
36.607595
84
0.641425
4b611427d23e90bf2bff67429967beaebd7a79bc
2,407
cpp
C++
bucket_BB/clucene/patches/patch-src__core__CLucene__util__BitSet.cpp
jrmarino/ravensource
91d599fd1f2af55270258d15e72c62774f36033e
[ "FTL" ]
17
2017-04-22T21:53:52.000Z
2021-01-21T16:57:55.000Z
bucket_BB/clucene/patches/patch-src__core__CLucene__util__BitSet.cpp
jrmarino/ravensource
91d599fd1f2af55270258d15e72c62774f36033e
[ "FTL" ]
186
2017-09-12T20:46:52.000Z
2021-11-27T18:15:14.000Z
bucket_BB/clucene/patches/patch-src__core__CLucene__util__BitSet.cpp
jrmarino/ravensource
91d599fd1f2af55270258d15e72c62774f36033e
[ "FTL" ]
74
2017-09-06T14:48:01.000Z
2021-08-28T02:48:27.000Z
--- src/core/CLucene/util/BitSet.cpp.orig 2011-03-17 00:21:07 UTC +++ src/core/CLucene/util/BitSet.cpp @@ -32,6 +32,25 @@ const uint8_t BitSet::BYTE_COUNTS[256] = 3, 4, 4, 5, 4, 5, 5, 6, 4, 5, 5, 6, 5, 6, 6, 7, 4, 5, 5, 6, 5, 6, 6, 7, 5, 6, 6, 7, 6, 7, 7, 8}; +const uint8_t BitSet::BYTE_OFFSETS[256] = { + ...
35.397059
86
0.427919
4b625c2b53bbb7da89a23da8837473a212e765e9
376,712
cc
C++
3rdParty/V8/v7.1.302.28/test/cctest/test-assembler-mips.cc
cclauss/arangodb
089f7a7e60483f0fb73171d159f922dd3de283e9
[ "BSL-1.0", "Apache-2.0" ]
4
2019-04-20T15:56:13.000Z
2019-12-23T07:14:01.000Z
3rdParty/V8/v7.1.302.28/test/cctest/test-assembler-mips.cc
fceller/arangodb
22eec2e35407d868ac36f06b9abdbee3fb3c3ef3
[ "Apache-2.0" ]
1
2019-02-13T09:53:48.000Z
2019-02-13T09:53:48.000Z
3rdParty/V8/v7.1.302.28/test/cctest/test-assembler-mips.cc
fceller/arangodb
22eec2e35407d868ac36f06b9abdbee3fb3c3ef3
[ "Apache-2.0" ]
null
null
null
// Copyright 2012 the V8 project authors. 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 ...
36.017975
80
0.562576
4b62903d8f7d8ba575463658ed03c461cb3858e2
6,771
cpp
C++
examples/FloodPedestrian_2018/src/visualisation/PedestrianPopulation.cpp
SahebSh/FLAMEGPU
c81323b68532a52756b96dbf55fd29416e642cc9
[ "MIT" ]
1
2021-02-24T18:41:29.000Z
2021-02-24T18:41:29.000Z
examples/FloodPedestrian_2018/src/visualisation/PedestrianPopulation.cpp
SahebSh/FLAMEGPU
c81323b68532a52756b96dbf55fd29416e642cc9
[ "MIT" ]
null
null
null
examples/FloodPedestrian_2018/src/visualisation/PedestrianPopulation.cpp
SahebSh/FLAMEGPU
c81323b68532a52756b96dbf55fd29416e642cc9
[ "MIT" ]
null
null
null
/* * Copyright 2011 University of Sheffield. * Author: Dr Paul Richmond * Contact: p.richmond@sheffield.ac.uk (http://www.paulrichmond.staff.shef.ac.uk) * * University of Sheffield retain all intellectual property and * proprietary rights in and to this software and related documentation. * Any use, reproduct...
29.960177
127
0.794122
b49d34f23db8a34ae34537037b7bd2017e3db9af
5,045
cpp
C++
src/module.cpp
mworchel/xatlas-python
6d7e9815bf80d283bfa68f20ebd9e1dd02419785
[ "MIT" ]
17
2021-02-08T09:12:28.000Z
2022-03-15T10:07:42.000Z
src/module.cpp
mworchel/xatlas-python
6d7e9815bf80d283bfa68f20ebd9e1dd02419785
[ "MIT" ]
8
2021-05-28T21:53:08.000Z
2022-02-28T14:55:01.000Z
src/module.cpp
mworchel/xatlas-python
6d7e9815bf80d283bfa68f20ebd9e1dd02419785
[ "MIT" ]
null
null
null
/** * MIT License * * Copyright (c) 2021 Markus Worchel * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
33.85906
196
0.589098
b49ee02b8dfc79ea768391b51d38ec4b44863f61
2,412
cc
C++
leetcode/ds_list_missing_number.cc
prashrock/C-
3ed46815d40b3e42cd9f36d23c8ee2a9de742323
[ "MIT" ]
1
2016-12-05T10:42:46.000Z
2016-12-05T10:42:46.000Z
leetcode/ds_list_missing_number.cc
prashrock/CPP
3ed46815d40b3e42cd9f36d23c8ee2a9de742323
[ "MIT" ]
null
null
null
leetcode/ds_list_missing_number.cc
prashrock/CPP
3ed46815d40b3e42cd9f36d23c8ee2a9de742323
[ "MIT" ]
null
null
null
//g++-5 --std=c++11 -Wall -g -o ds_list_missing_number ds_list_missing_number.cc /** * @file Find Missing Number from Array * @brief Given array containing n distinct integers [0, n) find missing integer */ // https://leetcode.com/problems/missing-number/ #include <iostream> /* std::cout ...
33.5
81
0.538972
b49f395cef0e4b108b73c6ae583ef37eff3d02eb
4,137
cpp
C++
Vendor/Include/bullet/BulletCollision/Gimpact/btContactProcessing.cpp
allogic/Redshift
4606267b53e3d094ba588acb9ceaa97e3289632b
[ "MIT" ]
null
null
null
Vendor/Include/bullet/BulletCollision/Gimpact/btContactProcessing.cpp
allogic/Redshift
4606267b53e3d094ba588acb9ceaa97e3289632b
[ "MIT" ]
null
null
null
Vendor/Include/bullet/BulletCollision/Gimpact/btContactProcessing.cpp
allogic/Redshift
4606267b53e3d094ba588acb9ceaa97e3289632b
[ "MIT" ]
null
null
null
/* This source file is part of GIMPACT Library. For the latest info, see http://gimpact.sourceforge.net/ Copyright (c) 2007 Francisco Leon Najera. C.C. 80087371. email: projectileman@yahoo.com This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable fo...
23.505682
243
0.719604
b49f6ce41d181e942f2e4dab67fbb039f4a6d4dd
6,047
cpp
C++
Source/Falcor/Core/API/D3D12/D3D12Resource.cpp
jeongsoopark/Falcor
48aa4e28d6812ced004b56c83484de03b19526fa
[ "BSD-3-Clause" ]
2
2019-11-04T03:46:56.000Z
2019-11-05T03:25:31.000Z
Source/Falcor/Core/API/D3D12/D3D12Resource.cpp
wowhyuck/Falcor
48aa4e28d6812ced004b56c83484de03b19526fa
[ "BSD-3-Clause" ]
8
2019-10-30T10:32:19.000Z
2019-11-21T14:55:25.000Z
Source/Falcor/Core/API/D3D12/D3D12Resource.cpp
wowhyuck/Falcor
48aa4e28d6812ced004b56c83484de03b19526fa
[ "BSD-3-Clause" ]
2
2019-10-31T06:34:55.000Z
2019-11-27T16:54:42.000Z
/*************************************************************************** # Copyright (c) 2018, NVIDIA CORPORATION. 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 sourc...
39.012903
140
0.676699
b49fb7d26b8c0162262044733b2279cbcbf30db6
823
cpp
C++
construct-binary-tree-from-preorder-and-inorder/main.cpp
rickytan/LeetCode
7df9a47928552babaf5d2abf1d153bd92d44be09
[ "MIT" ]
1
2015-04-04T18:32:31.000Z
2015-04-04T18:32:31.000Z
construct-binary-tree-from-preorder-and-inorder/main.cpp
rickytan/LeetCode
7df9a47928552babaf5d2abf1d153bd92d44be09
[ "MIT" ]
null
null
null
construct-binary-tree-from-preorder-and-inorder/main.cpp
rickytan/LeetCode
7df9a47928552babaf5d2abf1d153bd92d44be09
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { public: TreeNode *buildTree(vector<int> &preorder, vector<int> &inorder) { i...
22.861111
87
0.602673
b49ff458628b0c5c3cdfe7da2ac9780d026ce4b4
12,220
cpp
C++
kvbc/src/ReplicaImp.cpp
sync-bft/concord-clone
fcc5a454ca16446f04351676f330df2382699929
[ "Apache-2.0" ]
null
null
null
kvbc/src/ReplicaImp.cpp
sync-bft/concord-clone
fcc5a454ca16446f04351676f330df2382699929
[ "Apache-2.0" ]
null
null
null
kvbc/src/ReplicaImp.cpp
sync-bft/concord-clone
fcc5a454ca16446f04351676f330df2382699929
[ "Apache-2.0" ]
null
null
null
// Copyright 2018-2020 VMware, all rights reserved // // KV Blockchain replica implementation. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/param.h> #include <unistd.h> #include "ReplicaImp.h" #include <inttypes.h> #include <algorithm> #include <cassert> #include <chrono> #include <cstdlib>...
36.477612
120
0.723404
b4a07feb3a01881c7c13ffc77852481b1c248c06
1,139
hh
C++
include/ftk/utils/scatter.hh
hguo/FTT
f1d5387d6353cf2bd165c51fc717eb5d6b2675ef
[ "MIT" ]
19
2018-11-01T02:15:17.000Z
2022-03-28T16:55:00.000Z
include/ftk/utils/scatter.hh
hguo/FTT
f1d5387d6353cf2bd165c51fc717eb5d6b2675ef
[ "MIT" ]
12
2019-04-14T12:49:41.000Z
2021-10-20T03:59:21.000Z
include/ftk/utils/scatter.hh
hguo/FTT
f1d5387d6353cf2bd165c51fc717eb5d6b2675ef
[ "MIT" ]
9
2019-02-08T19:40:46.000Z
2021-06-15T00:31:09.000Z
#ifndef _DIYEXT_SCATTER_HH #define _DIYEXT_SCATTER_HH #include <ftk/external/diy/mpi.hpp> #include <ftk/utils/serialization.hh> #include <numeric> namespace diy { namespace mpi { template <typename Obj> inline void scatterv(const communicator& comm, const std::vector<Obj> &ins, Obj &out, int root = 0) ...
20.339286
65
0.651449
b4a240be38ac640a2e444854cc45f56d12abeecb
13,324
hxx
C++
main/starmath/source/mathmlimport.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/starmath/source/mathmlimport.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/starmath/source/mathmlimport.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
38.62029
141
0.666992
b4a4f274283ff435bf2e8f4a7db55a429580833e
1,229
cpp
C++
tests/unit/src/get_all_widgets.cpp
igagis/morda
dd7b58f7cb2689d56b7796cc9b6b9302aad1a529
[ "MIT" ]
69
2016-12-07T05:56:53.000Z
2020-11-27T20:59:05.000Z
tests/unit/src/get_all_widgets.cpp
igagis/morda
dd7b58f7cb2689d56b7796cc9b6b9302aad1a529
[ "MIT" ]
103
2015-07-10T14:42:21.000Z
2020-09-09T16:16:21.000Z
tests/unit/src/get_all_widgets.cpp
igagis/morda
dd7b58f7cb2689d56b7796cc9b6b9302aad1a529
[ "MIT" ]
18
2016-11-22T14:41:37.000Z
2020-04-22T18:16:10.000Z
#include <tst/set.hpp> #include <tst/check.hpp> #include <morda/gui.hpp> #include <morda/widgets/group/column.hpp> #include "../../harness/util/dummy_context.hpp" namespace{ tst::set set("get_all_widgets", [](tst::suite& suite){ suite.add("get_all_widgets_function", []{ morda::gui m(make_dummy_context()); au...
16.835616
78
0.498779
b4a6e99d62c96a7bf64bf4102df97e5e0a62de59
15,362
cc
C++
src/fcst/source/layers/catalyst_layer.cc
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
24
2016-10-04T20:49:55.000Z
2022-03-12T19:07:10.000Z
src/fcst/source/layers/catalyst_layer.cc
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
null
null
null
src/fcst/source/layers/catalyst_layer.cc
jeremyjiezhou/Learn-PyTorch
7e4404609bacd2ec796f6ca3ea118e8e34ab4a22
[ "MIT" ]
9
2016-12-11T22:15:03.000Z
2020-11-21T13:51:05.000Z
//--------------------------------------------------------------------------- // // FCST: Fuel Cell Simulation Toolbox // // Copyright (C) 2013 by Energy Systems Design Laboratory, University of Alberta // // This software is distributed under the MIT License. // For more information, see the README file in...
46.978593
213
0.593217
b4a7433fbd7f183050b4626f558d7b32054c877f
2,437
cc
C++
rtc_base/testutils.cc
airmelody5211/webrtc-clone
943843f1da42e47668c22ca758830334167f1b17
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
rtc_base/testutils.cc
zhangj1024/webrtc
3a6b729a8edaabd2fe324e1f6f830869ec38d5ab
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
rtc_base/testutils.cc
zhangj1024/webrtc
3a6b729a8edaabd2fe324e1f6f830869ec38d5ab
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
/* * Copyright 2007 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
27.382022
75
0.629462
b4a756dcb85a3911a1482af0b3334cc0e585488d
243
cpp
C++
libs/core/render/src/bksge_core_render_frame_buffer.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
4
2018-06-10T13:35:32.000Z
2021-06-03T14:27:41.000Z
libs/core/render/src/bksge_core_render_frame_buffer.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
566
2017-01-31T05:36:09.000Z
2022-02-09T05:04:37.000Z
libs/core/render/src/bksge_core_render_frame_buffer.cpp
myoukaku/bksge
0f8b60e475a3f1709723906e4796b5e60decf06e
[ "MIT" ]
1
2018-07-05T04:40:53.000Z
2018-07-05T04:40:53.000Z
/** * @file bksge_core_render_frame_buffer.cpp * * @brief FrameBuffer の実装 * * @author myoukaku */ #include <bksge/fnd/config.hpp> #if !defined(BKSGE_HEADER_ONLY) #include <bksge/core/render/inl/frame_buffer_inl.hpp> #endif
18.692308
54
0.695473
b4a884b2d92d9c9e3a74e342111feea17c0bff18
2,691
cc
C++
third_party/blink/renderer/core/scroll/scrollbar_theme_overlay_mobile.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/blink/renderer/core/scroll/scrollbar_theme_overlay_mobile.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/blink/renderer/core/scroll/scrollbar_theme_overlay_mobile.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// 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/scroll/scrollbar_theme_overlay_mobile.h" #include "third_party/blink/public/platform/platform.h" #include "thir...
40.772727
82
0.697882
b4a96cd3a1e8fba64a73730d66fc74f02cd14db2
4,881
cpp
C++
src/mongo/dbtests/keypatterntests.cpp
wonderslug/mongo
8da54bf660d2a5095e0e20c94734f784d49f0aeb
[ "Apache-2.0" ]
1
2015-07-17T04:37:51.000Z
2015-07-17T04:37:51.000Z
src/mongo/dbtests/keypatterntests.cpp
wonderslug/mongo
8da54bf660d2a5095e0e20c94734f784d49f0aeb
[ "Apache-2.0" ]
null
null
null
src/mongo/dbtests/keypatterntests.cpp
wonderslug/mongo
8da54bf660d2a5095e0e20c94734f784d49f0aeb
[ "Apache-2.0" ]
null
null
null
// keypatterntests.cpp - Tests for the KeyPattern class // /** * Copyright (C) 2012 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * Th...
40.338843
100
0.544356
b4aa0f8d7ffcaf0004af1791b153c8e4f88443eb
5,565
cc
C++
src/eckit/thread/ThreadPool.cc
dvuckovic/eckit
58a918e7be8fe073f37683abf639374ab1ad3e4f
[ "Apache-2.0" ]
10
2018-03-01T22:11:10.000Z
2021-05-17T14:13:58.000Z
src/eckit/thread/ThreadPool.cc
dvuckovic/eckit
58a918e7be8fe073f37683abf639374ab1ad3e4f
[ "Apache-2.0" ]
43
2018-04-11T11:13:44.000Z
2022-03-31T15:28:03.000Z
src/eckit/thread/ThreadPool.cc
dvuckovic/eckit
58a918e7be8fe073f37683abf639374ab1ad3e4f
[ "Apache-2.0" ]
20
2018-03-07T21:36:50.000Z
2022-03-30T13:25:25.000Z
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
25.645161
120
0.532435
b4aa9cc7048eb0c33ed984dc932031a41f2588b7
99,824
cpp
C++
src/urAPI.cpp
jongwook/urMus
b3d22e8011253f137a3581e84db8e79accccc7a4
[ "MIT", "AML", "BSD-3-Clause" ]
1
2015-11-05T00:50:07.000Z
2015-11-05T00:50:07.000Z
src/urAPI.cpp
jongwook/urMus
b3d22e8011253f137a3581e84db8e79accccc7a4
[ "MIT", "AML", "BSD-3-Clause" ]
null
null
null
src/urAPI.cpp
jongwook/urMus
b3d22e8011253f137a3581e84db8e79accccc7a4
[ "MIT", "AML", "BSD-3-Clause" ]
null
null
null
/* * urAPI.c * urMus * * Created by Georg Essl on 6/20/09. * Copyright 2009 Georg Essl. All rights reserved. See LICENSE.txt for license details. * */ #include "urAPI.h" #include "urGraphics.h" #include "MachTimer.h" //TODO//#include "RIOAudioUnitLayer.h" #include "urSound.h" #include "httpServer.h" // Mak...
24.34138
132
0.694021
b4aad0e311a6e07a5eacf82b160229f8ad611d2e
10,817
cc
C++
packages/grpc-tools/src/node_generator.cc
thisisnotapril/grpc-node
c160feaeaadd45d904de47dd753c3a2ea887ca44
[ "Apache-2.0" ]
3,432
2017-09-14T23:28:59.000Z
2022-03-31T15:00:41.000Z
packages/grpc-tools/src/node_generator.cc
thisisnotapril/grpc-node
c160feaeaadd45d904de47dd753c3a2ea887ca44
[ "Apache-2.0" ]
1,301
2017-09-15T00:00:40.000Z
2022-03-31T19:01:03.000Z
packages/grpc-tools/src/node_generator.cc
thisisnotapril/grpc-node
c160feaeaadd45d904de47dd753c3a2ea887ca44
[ "Apache-2.0" ]
551
2017-09-14T21:21:33.000Z
2022-03-30T16:43:24.000Z
/* * * Copyright 2016 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
37.821678
82
0.679301
b4ab7508b8b65363e2c87d6b37e60967ec9bd4da
2,552
cpp
C++
SimpleEngine/Main.cpp
RichardBangs/SimpleEngine
a4acdf11d05e018db5a55994291475df55856c0c
[ "MIT" ]
null
null
null
SimpleEngine/Main.cpp
RichardBangs/SimpleEngine
a4acdf11d05e018db5a55994291475df55856c0c
[ "MIT" ]
null
null
null
SimpleEngine/Main.cpp
RichardBangs/SimpleEngine
a4acdf11d05e018db5a55994291475df55856c0c
[ "MIT" ]
null
null
null
#include "glew.h" #include "freeglut.h" #include "glm.hpp" #include "Path.h" #include "Renderer\RenderableManager.h" #include "Renderer\Camera.h" #include "Renderer\ShaderLoader.h" #include "Renderer\WindowManager.h" #include "Game\InputManager.h" #include "Game\GameManager.h" #include <iostream> #include <vector>...
20.580645
113
0.723354
b4ac5ff96fde73b7daa9d1da116a7917e99ad54c
21,270
hpp
C++
lib/include/base_dkg.hpp
fetchai/research-dvrf
943b335e1733bb9b2ef403e4f8237dfdc4f93952
[ "Apache-2.0" ]
16
2020-02-08T00:04:58.000Z
2022-01-18T11:42:07.000Z
lib/include/base_dkg.hpp
fetchai/research-dvrf
943b335e1733bb9b2ef403e4f8237dfdc4f93952
[ "Apache-2.0" ]
null
null
null
lib/include/base_dkg.hpp
fetchai/research-dvrf
943b335e1733bb9b2ef403e4f8237dfdc4f93952
[ "Apache-2.0" ]
4
2021-07-20T08:56:08.000Z
2022-01-03T01:48:12.000Z
#pragma once //------------------------------------------------------------------------------ // // Copyright 2019-2020 Fetch.AI 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 Licen...
34.473258
120
0.658063
b4b01ddff1189da2fcffbeb47138f9644b0fb89c
1,009
cpp
C++
waterbox/bsnescore/bsnes/sfc/coprocessor/sa1/iram.cpp
Fortranm/BizHawk
8cb0ffb6f8964cc339bbe1784838918fb0aa7e27
[ "MIT" ]
1,414
2015-06-28T09:57:51.000Z
2021-10-14T03:51:10.000Z
waterbox/bsnescore/bsnes/sfc/coprocessor/sa1/iram.cpp
Fortranm/BizHawk
8cb0ffb6f8964cc339bbe1784838918fb0aa7e27
[ "MIT" ]
2,369
2015-06-25T01:45:44.000Z
2021-10-16T08:44:18.000Z
waterbox/bsnescore/bsnes/sfc/coprocessor/sa1/iram.cpp
Fortranm/BizHawk
8cb0ffb6f8964cc339bbe1784838918fb0aa7e27
[ "MIT" ]
430
2015-06-29T04:28:58.000Z
2021-10-05T18:24:17.000Z
auto SA1::IRAM::conflict() const -> bool { if(configuration.hacks.coprocessor.delayedSync) return false; if((cpu.r.mar & 0x40f800) == 0x003000) return cpu.refresh() == 0; //00-3f,80-bf:3000-37ff return false; } auto SA1::IRAM::read(uint address, uint8 data) -> uint8 { if(!size()) return data; address = bus...
27.27027
92
0.686819
b4b04407fd4a536b00436666f0ba5fe5c63361b9
909
cpp
C++
venv/lib/python3.7/site-packages/pystan/stan/lib/stan_math/test/unit/math/prim/scal/fun/promote_elements_test.cpp
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
1
2019-09-06T15:53:17.000Z
2019-09-06T15:53:17.000Z
venv/lib/python3.7/site-packages/pystan/stan/lib/stan_math/test/unit/math/prim/scal/fun/promote_elements_test.cpp
vchiapaikeo/prophet
e8c250ca7bfffc280baa7dabc80a2c2d1f72c6a7
[ "MIT" ]
8
2019-01-17T18:51:16.000Z
2019-01-17T18:51:39.000Z
test/unit/math/prim/scal/fun/promote_elements_test.cpp
riddell-stan/math
d84ee0d991400d6cf4b08a07a4e8d86e0651baea
[ "BSD-3-Clause" ]
null
null
null
#include <stan/math/prim/scal.hpp> #include <stan/math/rev/core/var.hpp> #include <gtest/gtest.h> #include <boost/typeof/typeof.hpp> #include <type_traits> using stan::math::promote_elements; using stan::math::var; TEST(MathFunctionsScalPromote_Elements, int2double) { int from; promote_elements<double, int> p; ...
27.545455
56
0.752475
b4b0744abd82d7c910b256ca203276348aed6a49
4,101
hpp
C++
ext/src/java/lang/Integer.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
ext/src/java/lang/Integer.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
ext/src/java/lang/Integer.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar #pragma once #include <fwd-POI.hpp> #include <java/lang/fwd-POI.hpp> #include <java/lang/Number.hpp> #include <java/lang/Comparable.hpp> struct default_init_tag; class java::lang::Integer final : public Number ...
32.291339
116
0.717142
b4b1b1587b36708cb4f4e6a416f5bd994fd8848a
3,665
cpp
C++
src/GafferBindings/ReferenceBinding.cpp
PaulDoessel/gaffer-play
8b72dabb388e12424c230acfb0bd209049b01bd6
[ "BSD-3-Clause" ]
1
2016-07-31T09:55:09.000Z
2016-07-31T09:55:09.000Z
src/GafferBindings/ReferenceBinding.cpp
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
null
null
null
src/GafferBindings/ReferenceBinding.cpp
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
1
2020-02-15T16:15:54.000Z
2020-02-15T16:15:54.000Z
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2013, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * R...
33.018018
157
0.703683
b4b4b7612769a8959e9781c826428e3fcfdb3b7b
4,441
cpp
C++
tinysdl/Game/Tetris/App.cpp
silent1603/silent1603-TinySDL
7b3470b2e343bcec8d4788de2d817b41bec1141d
[ "MIT" ]
null
null
null
tinysdl/Game/Tetris/App.cpp
silent1603/silent1603-TinySDL
7b3470b2e343bcec8d4788de2d817b41bec1141d
[ "MIT" ]
null
null
null
tinysdl/Game/Tetris/App.cpp
silent1603/silent1603-TinySDL
7b3470b2e343bcec8d4788de2d817b41bec1141d
[ "MIT" ]
null
null
null
#include "App.hpp" namespace Tetris { #define MIN_SIZE_WIDTH 600 #define MIN_SIZE_HEIGHT 400 App::App(/* args */) : m_strTitle("Tetris"), m_iWidth(800), m_iHeight(600) { } App::~App() { } App::App(std::string title, int width, int heig...
28.467949
126
0.517901
b4b5b33df2ac6538dd6be817ea7bb9e279244b1a
178
cpp
C++
Iniciante/1008.cpp
nobreconfrade/AKIRA
6040f6db0efe3a4c9ca7fe360859bf3f3ca58e42
[ "Apache-2.0" ]
null
null
null
Iniciante/1008.cpp
nobreconfrade/AKIRA
6040f6db0efe3a4c9ca7fe360859bf3f3ca58e42
[ "Apache-2.0" ]
null
null
null
Iniciante/1008.cpp
nobreconfrade/AKIRA
6040f6db0efe3a4c9ca7fe360859bf3f3ca58e42
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <stdio.h> using namespace std; int main(){ float a,b,c; cin>>a>>b>>c; printf("NUMBER = %.0f\n",a); printf("SALARY = U$ %.2f\n",b*c); return 0; }
17.8
34
0.601124
b4b7bf5748274f32a4a9eafc01bedf69be03d47d
2,228
cpp
C++
samples/stencil/average_env/main.cpp
Jerry-Ma/grppi
d6e5435a2c146605fc53eed899d1777ac0b35699
[ "ECL-2.0", "Apache-2.0" ]
75
2017-05-05T08:22:47.000Z
2022-02-18T23:48:13.000Z
samples/stencil/average_env/main.cpp
Jerry-Ma/grppi
d6e5435a2c146605fc53eed899d1777ac0b35699
[ "ECL-2.0", "Apache-2.0" ]
317
2017-03-29T15:26:18.000Z
2021-10-02T04:18:27.000Z
samples/stencil/average_env/main.cpp
Yagoloco2210/grppi
03f3712f282298a64b37dc560b28f6109437b774
[ "ECL-2.0", "Apache-2.0" ]
21
2017-08-02T14:35:19.000Z
2022-02-17T22:19:06.000Z
/* * Copyright 2018 Universidad Carlos III de Madrid * * 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 appl...
25.033708
79
0.639138
b4bab8beddc277e7ec1c0d68931e5cb56e009338
6,914
hpp
C++
dependencies/osi_clp/Clp/src/ClpDynamicExampleMatrix.hpp
zyxrrr/GraphSfM
1af22ec17950ffc8a5c737a6a46f4465c40aa470
[ "BSD-3-Clause" ]
5
2020-01-28T08:38:35.000Z
2021-06-19T04:11:23.000Z
dependencies/osi_clp/Clp/src/ClpDynamicExampleMatrix.hpp
zyxrrr/GraphSfM
1af22ec17950ffc8a5c737a6a46f4465c40aa470
[ "BSD-3-Clause" ]
null
null
null
dependencies/osi_clp/Clp/src/ClpDynamicExampleMatrix.hpp
zyxrrr/GraphSfM
1af22ec17950ffc8a5c737a6a46f4465c40aa470
[ "BSD-3-Clause" ]
3
2019-11-26T14:43:13.000Z
2021-10-06T08:03:46.000Z
/* $Id$ */ // Copyright (C) 2004, International Business Machines // Corporation and others. All Rights Reserved. // This code is licensed under the terms of the Eclipse Public License (EPL). #ifndef ClpDynamicExampleMatrix_H #define ClpDynamicExampleMatrix_H #include "CoinPragma.hpp" #include "ClpDynamicMatrix.hp...
36.973262
98
0.614406
b4bba29492d76f324d1eb8dc7a2a3a6d3362e579
8,093
cpp
C++
ShaderParser/NodeGraph.cpp
pocketgems/XLE2
82771e9ab1fc3b12927f1687bbe05d4f7dce8765
[ "MIT" ]
3
2018-05-17T08:39:39.000Z
2020-12-09T13:20:26.000Z
ShaderParser/NodeGraph.cpp
djewsbury/XLE
7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e
[ "MIT" ]
null
null
null
ShaderParser/NodeGraph.cpp
djewsbury/XLE
7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e
[ "MIT" ]
2
2015-03-03T05:32:39.000Z
2015-12-04T09:16:54.000Z
// Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #include "NodeGraph.h" namespace GraphLanguage { const std::string s_resultName = "result"; const std::string ParameterName_NodeInstantiation = "<instantiation>"; NodeGra...
35.968889
160
0.540344
b4bc34420daa43633be23c1cc9e20ad6852e3bfe
496
cpp
C++
Contest 1006/D.cpp
PC-DOS/SEUCPP-OJ-KEYS
073f97fb29a659abd25554330382f0a7149c2511
[ "MIT" ]
null
null
null
Contest 1006/D.cpp
PC-DOS/SEUCPP-OJ-KEYS
073f97fb29a659abd25554330382f0a7149c2511
[ "MIT" ]
null
null
null
Contest 1006/D.cpp
PC-DOS/SEUCPP-OJ-KEYS
073f97fb29a659abd25554330382f0a7149c2511
[ "MIT" ]
null
null
null
#include<iostream> #include<cmath> #include<iomanip> using namespace std; int main() { unsigned long orig,i,j,tmp; cin >> orig; tmp = orig; if (orig == 1){ cout << "1=1"<<endl; goto endapp; } cout << orig << '='; for (i = 2; tmp != 1 && i<=orig; ++i){ while (tmp%i == ...
19.84
42
0.431452
b4bdef12b202efb72b46b38e20fb24e47b565294
11,416
cpp
C++
Server/src/modules/SD3/scripts/eastern_kingdoms/zulgurub/instance_zulgurub.cpp
ZON3DEV/wow-vanilla
7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f
[ "OpenSSL" ]
null
null
null
Server/src/modules/SD3/scripts/eastern_kingdoms/zulgurub/instance_zulgurub.cpp
ZON3DEV/wow-vanilla
7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f
[ "OpenSSL" ]
null
null
null
Server/src/modules/SD3/scripts/eastern_kingdoms/zulgurub/instance_zulgurub.cpp
ZON3DEV/wow-vanilla
7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f
[ "OpenSSL" ]
null
null
null
/** * ScriptDev3 is an extension for mangos providing enhanced features for * area triggers, creatures, game objects, instances, items, and spells beyond * the default database scripting in mangos. * * Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/> * Copyright (C) 2014-2022 MaNGOS <https://getma...
32.617143
148
0.530221
b4be27c953d61b8905bae5d0d8eb889e3254fc24
441
hpp
C++
Classes/ui/pause/PauseLayer.hpp
cpinan/Turbo-Race
c9394c308a8d25ece63a90326bad7283d5005d46
[ "Apache-2.0" ]
null
null
null
Classes/ui/pause/PauseLayer.hpp
cpinan/Turbo-Race
c9394c308a8d25ece63a90326bad7283d5005d46
[ "Apache-2.0" ]
null
null
null
Classes/ui/pause/PauseLayer.hpp
cpinan/Turbo-Race
c9394c308a8d25ece63a90326bad7283d5005d46
[ "Apache-2.0" ]
null
null
null
// // PauseLayer.hpp // TurboRace // // Created by Carlos Eduardo Pinan Indacochea on 21/02/22. // #ifndef PauseLayer_hpp #define PauseLayer_hpp #include "cocos2d.h" enum PauseButtons { kTagPauseResumeGame = 0, kTagPauseGoHome = 1, kTagPausePlayAgain = 2 }; class PauseLayer : public cocos2d::LayerCol...
15.206897
59
0.698413
b4bfe6b3eafcda5b6be8c87c328622e205ab7fd9
6,335
cxx
C++
main/extensions/workben/testcomponent.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/extensions/workben/testcomponent.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/extensions/workben/testcomponent.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
28.926941
105
0.671823
b4c533912c6521898cb2fc209a4440b1c6adbc10
1,918
cpp
C++
src/TaskRunner.cpp
paulpaul9740/RemoteRunnerd
90638ad4e8908a93c0bdcb1505c90015be67b459
[ "MIT" ]
null
null
null
src/TaskRunner.cpp
paulpaul9740/RemoteRunnerd
90638ad4e8908a93c0bdcb1505c90015be67b459
[ "MIT" ]
null
null
null
src/TaskRunner.cpp
paulpaul9740/RemoteRunnerd
90638ad4e8908a93c0bdcb1505c90015be67b459
[ "MIT" ]
null
null
null
#include "TaskRunner.h" #include <stdexcept> #include <string.h> #include <sys/wait.h> #include <unistd.h> std::vector<TaskPtr> TaskRunner::getResults() { int status; pid_t child; std::vector<TaskPtr> result; while ((child = waitpid(-1, &status, WNOHANG)) > 0) { TaskPtr task = getResult(child);...
27.797101
89
0.577164
b4c6dbf231034e03bdfb97199c67fdca208eeaf2
3,882
cpp
C++
libtorrent/test/main.cpp
majestrate/twister-core
b509c202607f09169b3ca2380390eb91f6486238
[ "MIT" ]
754
2015-01-04T02:12:17.000Z
2022-03-20T10:27:35.000Z
libtorrent/test/main.cpp
majestrate/twister-core
b509c202607f09169b3ca2380390eb91f6486238
[ "MIT" ]
144
2015-01-04T03:36:56.000Z
2022-02-04T21:54:21.000Z
libtorrent/test/main.cpp
twisterarmy/twister-core
9584caf124320fd185ec36fa5ffc95cc7891260e
[ "MIT" ]
185
2015-01-04T23:11:39.000Z
2022-03-03T18:39:19.000Z
/* Copyright (c) 2008, Arvid Norberg 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...
26.958333
81
0.735188
b4c8ba33533492c15aee8d37ddd5e8f71a5c8c73
9,822
cpp
C++
tools/rpc_replay/rpc_replay.cpp
coxin12/brpc
3d9a6ec81b74c875464fab1a6ab2ebf6081cadaa
[ "Apache-2.0" ]
1
2021-03-21T14:41:57.000Z
2021-03-21T14:41:57.000Z
tools/rpc_replay/rpc_replay.cpp
shaellancelot/brpc
88481be8ab5ad23b30727ea17b27ce7557779690
[ "Apache-2.0" ]
null
null
null
tools/rpc_replay/rpc_replay.cpp
shaellancelot/brpc
88481be8ab5ad23b30727ea17b27ce7557779690
[ "Apache-2.0" ]
1
2018-03-13T10:29:40.000Z
2018-03-13T10:29:40.000Z
// Copyright (c) 2014 Baidu, Inc. // // 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...
35.716364
88
0.582264
b4c96c9995e47735e8c51f89cf4515a8855830f6
1,658
hpp
C++
android-31/android/service/notification/NotificationListenerService_Ranking.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-31/android/service/notification/NotificationListenerService_Ranking.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-31/android/service/notification/NotificationListenerService_Ranking.hpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#pragma once #include "../../../JObject.hpp" namespace android::app { class NotificationChannel; } namespace android::content::pm { class ShortcutInfo; } class JString; class JObject; class JString; namespace android::service::notification { class NotificationListenerService_Ranking : public JObject { public: ...
28.101695
176
0.764777
b4c9fda6340c36ec22c8f570b4acda7385c7b96e
7,119
cc
C++
mindspore/ccsrc/utils/callbacks_ge.cc
donaghyXu/mindspore
43f9a85758a732143d4a9207ba611126fedd6818
[ "Apache-2.0" ]
1
2020-04-25T11:00:23.000Z
2020-04-25T11:00:23.000Z
mindspore/ccsrc/utils/callbacks_ge.cc
donaghyXu/mindspore
43f9a85758a732143d4a9207ba611126fedd6818
[ "Apache-2.0" ]
null
null
null
mindspore/ccsrc/utils/callbacks_ge.cc
donaghyXu/mindspore
43f9a85758a732143d4a9207ba611126fedd6818
[ "Apache-2.0" ]
null
null
null
/** * Copyright 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 applicable law...
38.901639
120
0.690687
b4cb37fb8d82cabc96487db673d422889877bfe4
4,070
cc
C++
chrome/browser/ui/views/autofill/payments/virtual_card_selection_dialog_browsertest.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
chrome/browser/ui/views/autofill/payments/virtual_card_selection_dialog_browsertest.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
chrome/browser/ui/views/autofill/payments/virtual_card_selection_dialog_browsertest.cc
DamieFC/chromium
54ce2d3c77723697efd22cfdb02aea38f9dfa25c
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.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 "base/callback_helpers.h" #include "base/run_loop.h" #include "chrome/browser/ui/autofill/payments/virtual_card_selection_dialog_controller_impl....
34.201681
94
0.739803