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
0b9eefd450416d7fbd226a21f513e742c6e6cf8a
4,466
cpp
C++
tc 160+/CubeRoll.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
3
2015-05-25T06:24:37.000Z
2016-09-10T07:58:00.000Z
tc 160+/CubeRoll.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
null
null
null
tc 160+/CubeRoll.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
5
2015-05-25T06:24:40.000Z
2021-08-19T19:22:29.000Z
#include <algorithm> #include <cassert> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <sstream> #include <string> #include <vector> #include <set> #include <queue> using namespace std; bool done[100001]; int solve(int a, int b, int x, int y) { memset(done, 0,...
34.890625
309
0.478728
ibudiselic
0ba3c2151d33f9fbad0dfa431a211587439e66c4
1,246
cpp
C++
CSCI 301/Project 8 - Queuing Simulation/implement.cpp
pradhulstha/Prashul-Shrestha-CSCI-2
903ffbe8001577890d2336a6cd706d5a17458f62
[ "Apache-2.0" ]
null
null
null
CSCI 301/Project 8 - Queuing Simulation/implement.cpp
pradhulstha/Prashul-Shrestha-CSCI-2
903ffbe8001577890d2336a6cd706d5a17458f62
[ "Apache-2.0" ]
null
null
null
CSCI 301/Project 8 - Queuing Simulation/implement.cpp
pradhulstha/Prashul-Shrestha-CSCI-2
903ffbe8001577890d2336a6cd706d5a17458f62
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include "header.h" using namespace std; void Store_Queue::enqueue(int Time) { Node* temp; temp = new Node; temp -> data = Time; temp -> next = NULL; if(first == NULL) first = temp; if(rear == NULL) rear = temp; ++count; } Store_Queue::Item Store_Queue::dequeu...
15.974359
95
0.610754
pradhulstha
0ba43aeceb5658d59f6183f177c35b23db44dd80
2,455
cpp
C++
tests/AllegroFlare/RandomTest.cpp
MarkOates/allegro_flare
b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7
[ "MIT" ]
25
2015-03-30T02:02:43.000Z
2019-03-04T22:29:12.000Z
tests/AllegroFlare/RandomTest.cpp
MarkOates/allegro_flare
b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7
[ "MIT" ]
122
2015-04-01T08:15:26.000Z
2019-10-16T20:31:22.000Z
tests/AllegroFlare/RandomTest.cpp
MarkOates/allegro_flare
b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7
[ "MIT" ]
4
2016-09-02T12:14:09.000Z
2018-11-23T20:38:49.000Z
#include <gtest/gtest.h> #include <AllegroFlare/Random.hpp> TEST(AllegroFlare_RandomTest, gets_the_current_seed) { AllegroFlare::Random number_generator = AllegroFlare::Random(123); ASSERT_EQ(123, number_generator.get_seed()); } TEST(AllegroFlare_RandomTest, sets_the_current_seed) { AllegroFlare::Rando...
26.684783
86
0.731568
MarkOates
0ba44d8c21d841694a05a6d0ce438d8f6ceff019
1,403
cpp
C++
psx/_dump_/18/_dump_c_src_/diabpsx/psxsrc/pads.cpp
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
15
2018-06-28T01:11:25.000Z
2021-09-27T15:57:18.000Z
psx/_dump_/18/_dump_c_src_/diabpsx/psxsrc/pads.cpp
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-29T04:08:23.000Z
2019-10-17T13:57:22.000Z
psx/_dump_/18/_dump_c_src_/diabpsx/psxsrc/pads.cpp
maoa3/scalpel
2e7381b516cded28996d290438acc618d00b2aa7
[ "Unlicense" ]
7
2018-06-28T01:11:34.000Z
2020-05-23T09:21:48.000Z
// C:\diabpsx\PSXSRC\PADS.CPP #include "types.h" // address: 0x8009FBFC // line start: 98 // line end: 105 void PAD_Open__Fv() { } // address: 0x800831AC // line start: 111 // line end: 141 unsigned long ReadPadStream__Fv() { // register: 19 register unsigned char *p0; // register: 18 register unsigned char...
15.943182
88
0.670706
maoa3
24392ec5778dc52e78bd8d93517094c6e0a92d22
18,609
cc
C++
wrappers/7.0.0/vtkCylinderSourceWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
6
2016-02-03T12:48:36.000Z
2020-09-16T15:07:51.000Z
wrappers/7.0.0/vtkCylinderSourceWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
4
2016-02-13T01:30:43.000Z
2020-03-30T16:59:32.000Z
wrappers/7.0.0/vtkCylinderSourceWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
null
null
null
/* this file has been autogenerated by vtkNodeJsWrap */ /* editing this might proof futile */ #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include <nan.h> #include "vtkPolyDataAlgorithmWrap.h" #include "vtkCylinderSourceWrap.h" #include "vtkObjectWrap.h" #include "../../plus/plus.h" using namespace v8; ex...
30.506557
102
0.723037
axkibe
243a4125ec0e4aff0607b782bb2619c443a15db1
993
cpp
C++
class/app/juego/rompible.cpp
TheMarlboroMan/winter-fgj5
28cd4bd4ae37230e51c1a9963bcd293e674cdc3c
[ "Beerware" ]
null
null
null
class/app/juego/rompible.cpp
TheMarlboroMan/winter-fgj5
28cd4bd4ae37230e51c1a9963bcd293e674cdc3c
[ "Beerware" ]
null
null
null
class/app/juego/rompible.cpp
TheMarlboroMan/winter-fgj5
28cd4bd4ae37230e51c1a9963bcd293e674cdc3c
[ "Beerware" ]
null
null
null
#include "rompible.h" using namespace App_Juego; Rompible::Rompible(float x, float y) :Actor(x, y, W, H) { } unsigned int Rompible::obtener_ciclos_representable()const { return 1; } unsigned short int Rompible::obtener_profundidad_ordenacion() const { return 30; } void Rompible::transformar_bloque(App_Graficos...
26.131579
124
0.784491
TheMarlboroMan
243a74c9cddaf02dcd3bbf7236ab3f142daebafd
31,866
cpp
C++
src/core/runtime/src/level_zero_runtime.cpp
intel/cassian
8e9594f053f9b9464066c8002297346580e4aa2a
[ "MIT" ]
1
2021-10-05T14:15:34.000Z
2021-10-05T14:15:34.000Z
src/core/runtime/src/level_zero_runtime.cpp
intel/cassian
8e9594f053f9b9464066c8002297346580e4aa2a
[ "MIT" ]
null
null
null
src/core/runtime/src/level_zero_runtime.cpp
intel/cassian
8e9594f053f9b9464066c8002297346580e4aa2a
[ "MIT" ]
null
null
null
/* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include <algorithm> #include <cstddef> #include <cstdint> #include <string> #include <unordered_map> #include <utility> #include <vector> #include <ze_api.h> #include <cassian/logging/logging.hpp> #include <cassian/offline_compiler...
37.622196
80
0.711009
intel
243adbb232eafea79221ffa8f9fd869b0a1c9014
16,115
cpp
C++
PhantomEngine/PhantomFont.cpp
DexianZhao/PhantomGameEngine
cf8e341d21e3973856d9f23ad0b1af9db831bac7
[ "MIT" ]
4
2019-11-08T00:15:13.000Z
2021-03-26T13:34:50.000Z
PhantomEngine/PhantomFont.cpp
DexianZhao/PhantomGameEngine
cf8e341d21e3973856d9f23ad0b1af9db831bac7
[ "MIT" ]
4
2021-03-13T10:26:09.000Z
2021-03-13T10:45:35.000Z
PhantomEngine/PhantomFont.cpp
DexianZhao/PhantomGameEngine
cf8e341d21e3973856d9f23ad0b1af9db831bac7
[ "MIT" ]
3
2020-06-01T01:53:05.000Z
2021-03-21T03:51:33.000Z
////////////////////////////////////////////////////////////////////////////////////////////////////// /* 幻影游戏引擎, 2009-2016, Phantom Game Engine, http://www.aixspace.com Design Writer : 赵德贤 Dexian Zhao Email: yuzhou_995@hotmail.com */ ////////////////////////////////////////////////////////////////////////////////...
30.348399
173
0.634998
DexianZhao
243c884e7bac4f400e8f268fe9e546622882ffe6
944
cpp
C++
test/tests/memcached/regression/lp_000-583-031.cpp
topilski/libmemcached
7a10166fbc4e718a3392ff744eb5bc499defd952
[ "BSD-3-Clause" ]
18
2021-06-23T15:20:25.000Z
2022-03-25T22:51:09.000Z
test/tests/memcached/regression/lp_000-583-031.cpp
topilski/libmemcached
7a10166fbc4e718a3392ff744eb5bc499defd952
[ "BSD-3-Clause" ]
108
2020-01-20T09:25:47.000Z
2021-05-18T06:45:30.000Z
test/tests/memcached/regression/lp_000-583-031.cpp
topilski/libmemcached
7a10166fbc4e718a3392ff744eb5bc499defd952
[ "BSD-3-Clause" ]
4
2021-06-25T07:49:31.000Z
2022-02-07T21:30:45.000Z
#include "test/lib/common.hpp" #include "test/lib/ReturnMatcher.hpp" TEST_CASE("memcached_regression_lp583031") { MemcachedPtr memc; LoneReturnMatcher test{*memc}; REQUIRE_SUCCESS(memcached_server_add(*memc, "192.0.2.1", 11211)); REQUIRE_SUCCESS(memcached_behavior_set(*memc, MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT...
44.952381
93
0.808263
topilski
2441f77a6976761118737787ae981b45238b81e3
3,260
cpp
C++
tests/integral.cpp
steven-varga/h5cpp11
9b322fe381608cb277817a993999d03753d356be
[ "MIT" ]
6
2019-03-07T23:40:16.000Z
2021-09-22T17:31:32.000Z
tests/integral.cpp
steven-varga/h5cpp11
9b322fe381608cb277817a993999d03753d356be
[ "MIT" ]
null
null
null
tests/integral.cpp
steven-varga/h5cpp11
9b322fe381608cb277817a993999d03753d356be
[ "MIT" ]
1
2021-03-18T04:34:47.000Z
2021-03-18T04:34:47.000Z
/* * Copyright (c) 2017 vargaconsulting, Toronto,ON Canada * Author: Varga, Steven <steven@vargaconsulting.ca> * * 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...
44.657534
111
0.675767
steven-varga
24426d11f8ebb6badf340fe65008b120b3fdc2fb
1,912
cpp
C++
pcommon/unittests/benchmark_bin128hash.cpp
mmalyutin/libpcomn
22e315e1de5f47254e1080a37ec87759e2fbed55
[ "Zlib" ]
6
2015-02-18T17:10:15.000Z
2019-01-01T13:48:05.000Z
pcommon/unittests/benchmark_bin128hash.cpp
mmalyutin/libpcomn
22e315e1de5f47254e1080a37ec87759e2fbed55
[ "Zlib" ]
null
null
null
pcommon/unittests/benchmark_bin128hash.cpp
mmalyutin/libpcomn
22e315e1de5f47254e1080a37ec87759e2fbed55
[ "Zlib" ]
3
2018-06-24T15:59:12.000Z
2021-02-15T09:21:39.000Z
/*-*- tab-width:4;indent-tabs-mode:nil;c-file-style:"ellemtel";c-basic-offset:4;c-file-offsets:((innamespace . 0)(inlambda . 0)) -*-*/ #include <pcomn_stopwatch.h> #include <pcomn_hash.h> #include <iostream> #include <algorithm> using namespace pcomn ; static constexpr size_t SIDE = 2048 ; static binary128_t v1[SIDE...
29.415385
134
0.598849
mmalyutin
2444c57303f6608b70cdf975eade38640a782801
9,352
cpp
C++
Dev/unitTest_cpp_gtest/Graphics/LowLayer/asd.Graphics_CubemapTexture_Test.cpp
akitsu-sanae/Altseed
03ac9ed2bc9d05c713f415177d796cb81914bb9a
[ "FTL" ]
null
null
null
Dev/unitTest_cpp_gtest/Graphics/LowLayer/asd.Graphics_CubemapTexture_Test.cpp
akitsu-sanae/Altseed
03ac9ed2bc9d05c713f415177d796cb81914bb9a
[ "FTL" ]
null
null
null
Dev/unitTest_cpp_gtest/Graphics/LowLayer/asd.Graphics_CubemapTexture_Test.cpp
akitsu-sanae/Altseed
03ac9ed2bc9d05c713f415177d796cb81914bb9a
[ "FTL" ]
null
null
null
 #include "../asd.Graphics_Test_Utls.h" static const char* dx_vs = R"( struct VS_Input { float3 Pos : Pos0; float2 UV : UV0; }; struct VS_Output { float4 Pos : SV_POSITION; float2 UV : TEXCOORD0; }; VS_Output main( const VS_Input Input ) { VS_Output Output = (VS_Output)0; Output.Pos = float4( Input.Pos.x...
23.736041
264
0.682849
akitsu-sanae
24456748eb83551545415f08cac844482106b8f2
2,215
cpp
C++
tests/dist/mpi/examples/mpi_send.cpp
Shillaker/faabric
40da290179c650d9e285475a1992572dfe1c0b10
[ "Apache-2.0" ]
1
2020-09-01T13:37:54.000Z
2020-09-01T13:37:54.000Z
tests/dist/mpi/examples/mpi_send.cpp
Shillaker/faabric
40da290179c650d9e285475a1992572dfe1c0b10
[ "Apache-2.0" ]
null
null
null
tests/dist/mpi/examples/mpi_send.cpp
Shillaker/faabric
40da290179c650d9e285475a1992572dfe1c0b10
[ "Apache-2.0" ]
1
2020-09-13T15:21:16.000Z
2020-09-13T15:21:16.000Z
#include <faabric/mpi/mpi.h> #include <stdio.h> namespace tests::mpi { int send() { int res = MPI_Init(NULL, NULL); if (res != MPI_SUCCESS) { printf("Failed on MPI init\n"); return 1; } int rank; int worldSize; MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_W...
27.012195
80
0.504289
Shillaker
24457fd301b53435389d8c4e4ca692145557a1f1
416
cpp
C++
source/pso/function/Easom.cpp
Nothrax/pso_visualisation
96f9453643c49f0b94b5d9f0462274f74a29388f
[ "MIT" ]
null
null
null
source/pso/function/Easom.cpp
Nothrax/pso_visualisation
96f9453643c49f0b94b5d9f0462274f74a29388f
[ "MIT" ]
null
null
null
source/pso/function/Easom.cpp
Nothrax/pso_visualisation
96f9453643c49f0b94b5d9f0462274f74a29388f
[ "MIT" ]
null
null
null
#include <pso/function/Easom.h> double Easom::calculateFitness(Point point) { return -cos(point.x) * cos(point.y) * exp(-(point.x - _pi) * (point.x - _pi) - (point.y - _pi) * (point.y - _pi)); } double Easom::getMinFitness() { return -1.0; } Point Easom::getBoundary() { Point point = {80.0, 80...
21.894737
87
0.596154
Nothrax
244761738fccc8a11616eb2eccb6938685186722
7,679
cpp
C++
test/test_complex.cpp
pruthvistony/rocThrust
c986b97395d4a6cbacc7a4600d11bdf389de639a
[ "Apache-2.0" ]
null
null
null
test/test_complex.cpp
pruthvistony/rocThrust
c986b97395d4a6cbacc7a4600d11bdf389de639a
[ "Apache-2.0" ]
null
null
null
test/test_complex.cpp
pruthvistony/rocThrust
c986b97395d4a6cbacc7a4600d11bdf389de639a
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2008-2013 NVIDIA Corporation * Modifications Copyright© 2019 Advanced Micro Devices, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
29.648649
94
0.643313
pruthvistony
2449425f1b7bfb17634c4118ae5ffb5b55724615
38,179
cc
C++
pcall/src/main/cpp/slicer/dex_bytecode.cc
johnlee175/PCallDemo
1940e2ecac85d37505e66524fb46ff801c3d4de3
[ "Apache-2.0" ]
4
2019-01-03T04:16:37.000Z
2019-08-04T17:54:18.000Z
pcall/src/main/cpp/slicer/dex_bytecode.cc
johnlee175/PCallDemo
1940e2ecac85d37505e66524fb46ff801c3d4de3
[ "Apache-2.0" ]
null
null
null
pcall/src/main/cpp/slicer/dex_bytecode.cc
johnlee175/PCallDemo
1940e2ecac85d37505e66524fb46ff801c3d4de3
[ "Apache-2.0" ]
2
2019-08-04T17:54:34.000Z
2021-05-07T05:40:27.000Z
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
42.51559
113
0.606197
johnlee175
2449ed2b00ba32f672b59471cecc210d30d65993
5,335
cpp
C++
src/WINNT/afsrdr/tools/settrace/settrace.cpp
jakllsch/openafs
e739eaa650ee30dcce54d05908b062839eafbf73
[ "BSD-3-Clause" ]
54
2015-01-26T02:12:37.000Z
2022-02-09T07:00:34.000Z
src/WINNT/afsrdr/tools/settrace/settrace.cpp
jakllsch/openafs
e739eaa650ee30dcce54d05908b062839eafbf73
[ "BSD-3-Clause" ]
5
2016-08-12T04:37:29.000Z
2020-12-10T16:46:06.000Z
src/WINNT/afsrdr/tools/settrace/settrace.cpp
jakllsch/openafs
e739eaa650ee30dcce54d05908b062839eafbf73
[ "BSD-3-Clause" ]
38
2015-07-30T13:27:25.000Z
2022-01-27T06:45:13.000Z
/* * Copyright (c) 2008, 2009, 2010, 2011 Kernel Drivers, LLC. * Copyright (c) 2009, 2010, 2011 Your File System, 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: * * - Redistributi...
26.280788
105
0.561575
jakllsch
244d67f3a543162ec8841d0659c81427b0abcf37
10,823
cc
C++
runtime/vm/resolver.cc
annagrin/sdk
dfce72bbf9bf359ecd810964259978e24c55e237
[ "BSD-3-Clause" ]
2
2020-03-09T11:45:05.000Z
2021-06-08T12:06:05.000Z
runtime/vm/resolver.cc
annagrin/sdk
dfce72bbf9bf359ecd810964259978e24c55e237
[ "BSD-3-Clause" ]
null
null
null
runtime/vm/resolver.cc
annagrin/sdk
dfce72bbf9bf359ecd810964259978e24c55e237
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/resolver.h" #include "vm/dart_entry.h" #include "vm/flags.h" #include "vm/isolate.h" #inc...
42.443137
80
0.61397
annagrin
244da09164ff9cfabb3cb29e67832566c39f0107
1,039
cpp
C++
src/3D/Face3D.cpp
FloydATC/Deep
856914d7e99778df094541361e8d98b9f3ce8a06
[ "CC0-1.0" ]
null
null
null
src/3D/Face3D.cpp
FloydATC/Deep
856914d7e99778df094541361e8d98b9f3ce8a06
[ "CC0-1.0" ]
null
null
null
src/3D/Face3D.cpp
FloydATC/Deep
856914d7e99778df094541361e8d98b9f3ce8a06
[ "CC0-1.0" ]
null
null
null
#include "Face3D.h" Face3D::Face3D(Vertex3D* v1, Vertex3D* v2, Vertex3D* v3) { //ctor vertices.push_back(v1); vertices.push_back(v2); vertices.push_back(v3); calc_normal(); calc_center(); adjacent = { -1, -1, -1 }; } Face3D::~Face3D() { //dtor } Vector3 Face3D::calc_normal() { // Compute vertex ...
18.553571
78
0.637151
FloydATC
244da2fbf3de12c406a0160c5777f5c9f7a87d27
879
cpp
C++
src/engine/Demo.cpp
wsmind/leaf
2a421515ef667a77c36fd852e59aedb677ab734c
[ "MIT" ]
18
2017-01-11T22:09:07.000Z
2022-02-02T03:20:23.000Z
src/engine/Demo.cpp
wsmind/leaf
2a421515ef667a77c36fd852e59aedb677ab734c
[ "MIT" ]
13
2016-08-04T18:29:14.000Z
2018-11-21T19:08:11.000Z
src/engine/Demo.cpp
wsmind/leaf
2a421515ef667a77c36fd852e59aedb677ab734c
[ "MIT" ]
1
2018-11-20T15:24:53.000Z
2018-11-20T15:24:53.000Z
#include <engine/Demo.h> #include <cassert> #include <engine/resource/ResourceManager.h> #include <engine/scene/Scene.h> #include <cJSON/cJSON.h> const std::string Demo::resourceClassName = "Demo"; const std::string Demo::defaultResourceData = "{\"scenes\": []}"; void Demo::load(const unsigned char *buffer, size_t...
23.756757
102
0.676906
wsmind
245322917e3c4ac189437cfcc7ebda7edc618771
2,165
cpp
C++
logdevice/common/SlowStorageTasksTracer.cpp
SimonKinds/LogDevice
fc9ac2fccb6faa3292b2b0a610a9eb77fd445824
[ "BSD-3-Clause" ]
1
2018-10-17T06:49:04.000Z
2018-10-17T06:49:04.000Z
logdevice/common/SlowStorageTasksTracer.cpp
msdgwzhy6/LogDevice
bc2491b7dfcd129e25490c7d5321d3d701f53ac4
[ "BSD-3-Clause" ]
null
null
null
logdevice/common/SlowStorageTasksTracer.cpp
msdgwzhy6/LogDevice
bc2491b7dfcd129e25490c7d5321d3d701f53ac4
[ "BSD-3-Clause" ]
null
null
null
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "logdevice/common/SlowStorageTasksTracer.h" #include "logdevice/common/config...
32.313433
78
0.68545
SimonKinds
24594fbb7ff3fa127391fb572484b90cf630ff2c
3,207
cc
C++
components/metrics/metrics_upload_scheduler.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
components/metrics/metrics_upload_scheduler.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
components/metrics/metrics_upload_scheduler.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
// Copyright 2017 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 "components/metrics/metrics_upload_scheduler.h" #include <stdint.h> #include "base/feature_list.h" #include "base/metrics/field_trial_params.h"...
34.117021
79
0.772373
sarang-apps
245a974abe43b18a78fbf27cbd469476071daf5f
304
hpp
C++
include/mod/sequences.hpp
rationalis-petra/modulus
194e4029b3085e89b7e35bb925fcba079905ef80
[ "MIT" ]
1
2021-09-24T19:45:18.000Z
2021-09-24T19:45:18.000Z
include/mod/sequences.hpp
rationalis-petra/modulus
194e4029b3085e89b7e35bb925fcba079905ef80
[ "MIT" ]
null
null
null
include/mod/sequences.hpp
rationalis-petra/modulus
194e4029b3085e89b7e35bb925fcba079905ef80
[ "MIT" ]
null
null
null
#ifndef __MODULUS_MOD_OPTIONAL_HPP #define __MODULUS_MOD_OPTIONAL_HPP #include <functional> namespace mod { template <typename Seq, typename B> B fold(Seq s, std::function<B(B, B)> func, B val) { for (auto it = s.begin(); it < s.end(); it++) { val = func(*it, val); } return val; } } #endif
17.882353
51
0.661184
rationalis-petra
245aa294f35055b88d677f25841334f7b7067bfa
2,000
cpp
C++
src/Xen/XenCtrl.cpp
nccgroup/xendbg
74ce0c1ad6398b14e5702d0f58832d40088cea23
[ "MIT" ]
67
2019-01-27T01:49:40.000Z
2022-02-18T16:01:09.000Z
src/Xen/XenCtrl.cpp
SpencerMichaels/xendbg
e0290847eb0c345a9db681514c1adcf9269396c8
[ "MIT" ]
3
2019-06-30T14:51:56.000Z
2020-02-14T19:17:23.000Z
src/Xen/XenCtrl.cpp
SpencerMichaels/xendbg
e0290847eb0c345a9db681514c1adcf9269396c8
[ "MIT" ]
14
2019-01-28T07:11:23.000Z
2021-06-14T13:33:12.000Z
// // Copyright (C) 2018-2019 NCC Group // // 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, modify, merge, publ...
36.363636
83
0.729
nccgroup
245f3dce222614e9e4f091a4afb52e5525ae3296
291
cpp
C++
PROVAS/prova_1_2019_2/q4/q4.cpp
EduFreit4s/Tecnicas-de-Program
360a2addabe8226b4abc78b26fd6ece0297892f4
[ "MIT" ]
5
2019-10-03T22:14:13.000Z
2020-02-18T00:23:55.000Z
PROVAS/prova_1_2019_2/q4/q4.cpp
EduFreit4s/Tecnicas-de-Program
360a2addabe8226b4abc78b26fd6ece0297892f4
[ "MIT" ]
null
null
null
PROVAS/prova_1_2019_2/q4/q4.cpp
EduFreit4s/Tecnicas-de-Program
360a2addabe8226b4abc78b26fd6ece0297892f4
[ "MIT" ]
2
2019-10-24T21:32:53.000Z
2019-12-05T18:36:56.000Z
#include "triangulo.h" #include "quadrado.h" using namespace std; int main(){ Triangulo triangulo(5, 2); Quadrado quadrado(15, 10); cout << "Area do triangulo: " << triangulo.getArea() << endl; cout << "Area do quadrado: " << quadrado.getArea() << endl; return 0; }
19.4
65
0.618557
EduFreit4s
246011e5d6908b4bbd4919d5f4b5a558ad96daa5
31,996
cpp
C++
unit-tests/hdr/test-hdr.cpp
rocket-kaya/librealsense
4663fe85b5177b5ac19834f115400fb1d5368e14
[ "Apache-2.0" ]
1
2021-05-05T17:46:11.000Z
2021-05-05T17:46:11.000Z
unit-tests/hdr/test-hdr.cpp
rocket-kaya/librealsense
4663fe85b5177b5ac19834f115400fb1d5368e14
[ "Apache-2.0" ]
null
null
null
unit-tests/hdr/test-hdr.cpp
rocket-kaya/librealsense
4663fe85b5177b5ac19834f115400fb1d5368e14
[ "Apache-2.0" ]
2
2021-01-25T01:18:47.000Z
2021-03-18T06:44:07.000Z
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2021 Intel Corporation. All Rights Reserved. ///////////////////////////////////////////////////////////////////////////// // This set of tests is valid for any device that supports the HDR feature // //////////////////////////////////////////...
42.322751
122
0.561039
rocket-kaya
2463b1d1f84cb6068161203df82beb4d4fd58407
3,272
cc
C++
test/static_test/test_strings.cc
vvchernov/onnxruntime-extensions
cc858e831b719d31e4f34ee9adb391105b4ce26b
[ "MIT" ]
59
2021-04-29T07:39:42.000Z
2022-03-29T21:12:05.000Z
test/static_test/test_strings.cc
vvchernov/onnxruntime-extensions
cc858e831b719d31e4f34ee9adb391105b4ce26b
[ "MIT" ]
45
2021-05-12T08:32:58.000Z
2022-03-29T21:11:59.000Z
test/static_test/test_strings.cc
vvchernov/onnxruntime-extensions
cc858e831b719d31e4f34ee9adb391105b4ce26b
[ "MIT" ]
18
2021-05-10T10:15:46.000Z
2022-03-22T10:46:36.000Z
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "gtest/gtest.h" #include "string_utils.h" #include "text/re2_strings/string_regex_split_re.hpp" #include "text/string_ecmaregex_split.hpp" TEST(strings, std_regex_test) { std::regex regex("[\u2700-\u27bf\U0001f...
38.494118
90
0.718826
vvchernov
2463d4d986c95bf2155c21f51c379c6e05df10ea
2,512
cpp
C++
src/modules/m_setagent.cpp
BerilBBJ/beryldb
6569b568796e4cea64fe7f42785b0319541a0284
[ "BSD-3-Clause" ]
206
2021-04-27T21:44:24.000Z
2022-02-23T12:01:20.000Z
src/modules/m_setagent.cpp
BerilBBJ/beryldb
6569b568796e4cea64fe7f42785b0319541a0284
[ "BSD-3-Clause" ]
10
2021-05-04T19:46:59.000Z
2021-10-01T23:43:07.000Z
src/modules/m_setagent.cpp
berylcorp/beryl
6569b568796e4cea64fe7f42785b0319541a0284
[ "BSD-3-Clause" ]
7
2021-04-28T16:17:56.000Z
2021-12-10T01:14:42.000Z
/* * BerylDB - A lightweight database. * http://www.beryldb.com * * Copyright (C) 2021 - Carlos F. Ferry <cferry@beryldb.com> * * This file is part of BerylDB. BerylDB is free software: you can * redistribute it and/or modify it under the terms of the BSD License * version 3. * * More information about our l...
27.911111
84
0.492834
BerilBBJ
2465240e76a1b711bf73c99d1ae72091b9b828a4
440
cpp
C++
Algorithms/DynamicProgramming/Fibonacci Numbers/fibonacci_recursion.cpp
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Algorithms/DynamicProgramming/Fibonacci Numbers/fibonacci_recursion.cpp
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Algorithms/DynamicProgramming/Fibonacci Numbers/fibonacci_recursion.cpp
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
#include<iostream> #include<ctime> using namespace std; int fib(int); int main() { int n; cin >> n; time_t start = time(NULL); for (int i = 1; i <= n; ++i) { cout << fib(i) << " "; } time_t end = time(NULL); cout << endl << "Time: " << (end - start) << " s"; } int fib(int...
12.571429
54
0.425
Nidita
2465d6c0361247ffb55a93d70af22c11b4255a73
10,826
cpp
C++
src/Chinese/relations/ch_PotentialRelationInstance.cpp
BBN-E/serif
1e2662d82fb1c377ec3c79355a5a9b0644606cb4
[ "Apache-2.0" ]
1
2022-03-24T19:57:00.000Z
2022-03-24T19:57:00.000Z
src/Chinese/relations/ch_PotentialRelationInstance.cpp
BBN-E/serif
1e2662d82fb1c377ec3c79355a5a9b0644606cb4
[ "Apache-2.0" ]
null
null
null
src/Chinese/relations/ch_PotentialRelationInstance.cpp
BBN-E/serif
1e2662d82fb1c377ec3c79355a5a9b0644606cb4
[ "Apache-2.0" ]
null
null
null
// Copyright 2008 by BBN Technologies Corp. // All Rights Reserved. #include "Generic/common/leak_detection.h" #include "Chinese/relations/ch_PotentialRelationInstance.h" #include "Generic/relations/RelationTypeSet.h" #include "Chinese/relations/ch_RelationUtilities.h" #include "Generic/common/InternalInconsi...
42.124514
160
0.752448
BBN-E
24665bf25fac621878f6a60c15a824be490ca97b
2,755
cpp
C++
src/apps/gxyviewer-worker.cpp
BruceCherniak/Galaxy
239cdd6ae060916ea8c1ba225e386095b785a702
[ "Apache-2.0" ]
null
null
null
src/apps/gxyviewer-worker.cpp
BruceCherniak/Galaxy
239cdd6ae060916ea8c1ba225e386095b785a702
[ "Apache-2.0" ]
null
null
null
src/apps/gxyviewer-worker.cpp
BruceCherniak/Galaxy
239cdd6ae060916ea8c1ba225e386095b785a702
[ "Apache-2.0" ]
null
null
null
// ========================================================================== // // Copyright (c) 2014-2019 The University of Texas at Austin. // // All rights reserved. // // ...
32.797619
81
0.477677
BruceCherniak
246a4824d5f3ccfbe303f34dda510baeb45d4adf
3,407
cpp
C++
PETBWUAMF/src/Application.cpp
piotrfutymski/PETBWUAMF
05953179a8649b8e55abcdb98b50f91a46e2da53
[ "Apache-2.0" ]
null
null
null
PETBWUAMF/src/Application.cpp
piotrfutymski/PETBWUAMF
05953179a8649b8e55abcdb98b50f91a46e2da53
[ "Apache-2.0" ]
null
null
null
PETBWUAMF/src/Application.cpp
piotrfutymski/PETBWUAMF
05953179a8649b8e55abcdb98b50f91a46e2da53
[ "Apache-2.0" ]
null
null
null
#include "Application.h" Application::Application() { } void Application::init(std::string settingFilePath) { srand(time(NULL)); std::ifstream stream(settingFilePath); if(stream.is_open()) { stream >> _settings; Logger::log("Setting loaded succesfully"); } else { Logger::log("Unable to load settings"...
20.279762
82
0.491048
piotrfutymski
246d1122b2586189924fae88f550ba68460df271
4,061
hpp
C++
include/common_robotics_utilities/simple_dtw.hpp
EricCousineau-TRI/common_robotics_utilities
df2f0c68d92d93c919bb7401abe5e12bd5ca2345
[ "BSD-3-Clause" ]
null
null
null
include/common_robotics_utilities/simple_dtw.hpp
EricCousineau-TRI/common_robotics_utilities
df2f0c68d92d93c919bb7401abe5e12bd5ca2345
[ "BSD-3-Clause" ]
null
null
null
include/common_robotics_utilities/simple_dtw.hpp
EricCousineau-TRI/common_robotics_utilities
df2f0c68d92d93c919bb7401abe5e12bd5ca2345
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <cstdint> #include <functional> #include <limits> #include <stdexcept> #include <vector> #include <Eigen/Geometry> namespace common_robotics_utilities { namespace simple_dtw { template<typename FirstDatatype, typename SecondDatatype, typename FirstContainer=std::vector<FirstDatatype>, ...
30.765152
80
0.645654
EricCousineau-TRI
246d5610bfb128a44e51d3a4ff61c77c00376058
199
cpp
C++
ModelChecker/unitary_tests/Model_checker/unused_var.cpp
jxw1102/projet_merou
886c6774c5d2dbd91556ec5592a2296703da0132
[ "Apache-2.0" ]
3
2015-02-11T20:10:38.000Z
2015-12-26T07:30:37.000Z
ModelChecker/unitary_tests/Model_checker/unused_var.cpp
jxw1102/projet_merou
886c6774c5d2dbd91556ec5592a2296703da0132
[ "Apache-2.0" ]
7
2015-02-06T23:34:58.000Z
2015-02-26T21:53:20.000Z
ModelChecker/unitary_tests/Model_checker/unused_var.cpp
jxw1102/projet_merou
886c6774c5d2dbd91556ec5592a2296703da0132
[ "Apache-2.0" ]
1
2015-04-24T07:54:22.000Z
2015-04-24T07:54:22.000Z
int f() { return 2; } int main(int argc, char** argv) { int x; int y; int z; x + y + 2 + f(); if (x > 2) { int r = 3; } else { int r = 2; r++; } return 0; }
9.47619
34
0.376884
jxw1102
246e58a926a20d920d3c54a118e320fac5bee7e3
1,984
cpp
C++
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/animation/PointFEvaluator.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/animation/PointFEvaluator.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/animation/PointFEvaluator.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
28.342857
75
0.611895
jingcao80
246e7c5a830df24ef92625e448e2d17a770c243a
7,270
hpp
C++
Engine/Core/Headers/Molten/Gui/CanvasRenderer.hpp
jimmiebergmann/CurseEngine
74a0502e36327f893c8e4f3e7cbe5b9d38fbe194
[ "MIT" ]
2
2019-11-11T21:17:14.000Z
2019-11-11T22:07:26.000Z
Engine/Core/Headers/Molten/Gui/CanvasRenderer.hpp
jimmiebergmann/CurseEngine
74a0502e36327f893c8e4f3e7cbe5b9d38fbe194
[ "MIT" ]
null
null
null
Engine/Core/Headers/Molten/Gui/CanvasRenderer.hpp
jimmiebergmann/CurseEngine
74a0502e36327f893c8e4f3e7cbe5b9d38fbe194
[ "MIT" ]
1
2020-04-05T03:50:57.000Z
2020-04-05T03:50:57.000Z
/* * MIT License * * Copyright (c) 2022 Jimmie Bergmann * * 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, modify, m...
33.657407
132
0.708391
jimmiebergmann
2471b6f6fb0b17ef35074b28a2af07d8eac4d4a9
1,203
cpp
C++
QSidePanel/QSidePanel/PanelLeftSide.cpp
inobelar/QSidePanel
4554e1bcd3f0942df66ed1357cdac7afdd08597d
[ "MIT" ]
16
2019-10-11T12:08:05.000Z
2022-01-02T05:59:16.000Z
QSidePanel/QSidePanel/PanelLeftSide.cpp
inobelar/QSidePanel
4554e1bcd3f0942df66ed1357cdac7afdd08597d
[ "MIT" ]
null
null
null
QSidePanel/QSidePanel/PanelLeftSide.cpp
inobelar/QSidePanel
4554e1bcd3f0942df66ed1357cdac7afdd08597d
[ "MIT" ]
9
2019-11-17T20:09:55.000Z
2021-10-31T14:54:02.000Z
#include "PanelLeftSide.hpp" #include "side_panel_helpers.hpp" PanelLeftSide::PanelLeftSide(QWidget *parent) : SidePanel(parent) { this->getOpenedRect = [this](const QRect& parent_rect) -> QRect { return q_sp::rect_opened_left(this->getPanelSize(), parent_rect); }; this->getClosedRect = ...
27.340909
101
0.630923
inobelar
2472363c01386672c2bd64fd807a58795b005fbe
2,092
cc
C++
L1TriggerConfig/GMTConfigProducers/src/L1MuGMTChannelMaskOnlineProducer.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
L1TriggerConfig/GMTConfigProducers/src/L1MuGMTChannelMaskOnlineProducer.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
L1TriggerConfig/GMTConfigProducers/src/L1MuGMTChannelMaskOnlineProducer.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#include "CondTools/L1Trigger/interface/L1ConfigOnlineProdBase.h" #include "CondFormats/L1TObjects/interface/L1MuGMTChannelMask.h" #include "CondFormats/DataRecord/interface/L1MuGMTChannelMaskRcd.h" class L1MuGMTChannelMaskOnlineProducer : public L1ConfigOnlineProdBase<L1MuGMTChannelMaskRcd, L1MuGMTChannelMask> { publ...
36.068966
115
0.751912
ckamtsikis
2473bab8beb9489d52016119d08a8b903ff7dcf8
5,800
cc
C++
src/developer/debug/zxdb/console/verbs_shared.cc
casey/fuchsia
2b965e9a1e8f2ea346db540f3611a5be16bb4d6b
[ "BSD-3-Clause" ]
null
null
null
src/developer/debug/zxdb/console/verbs_shared.cc
casey/fuchsia
2b965e9a1e8f2ea346db540f3611a5be16bb4d6b
[ "BSD-3-Clause" ]
null
null
null
src/developer/debug/zxdb/console/verbs_shared.cc
casey/fuchsia
2b965e9a1e8f2ea346db540f3611a5be16bb4d6b
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2019 The Fuchsia 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 "src/developer/debug/zxdb/client/filter.h" #include "src/developer/debug/zxdb/client/session.h" #include "src/developer/debug/zxdb/console/command...
33.526012
100
0.647414
casey
24740f8c87f13649a18bb0264ec9969e7e44e74c
1,521
cpp
C++
src/application/ui/rental/view_all_rental_history_ui.cpp
luist18/feup-aeda-proj1
c9d500f3fbc24d36fed85a706926872094c2bf0b
[ "MIT" ]
null
null
null
src/application/ui/rental/view_all_rental_history_ui.cpp
luist18/feup-aeda-proj1
c9d500f3fbc24d36fed85a706926872094c2bf0b
[ "MIT" ]
null
null
null
src/application/ui/rental/view_all_rental_history_ui.cpp
luist18/feup-aeda-proj1
c9d500f3fbc24d36fed85a706926872094c2bf0b
[ "MIT" ]
1
2020-04-03T17:10:34.000Z
2020-04-03T17:10:34.000Z
#include <list> #include "../../../model/rental/rental.h" #include "view_all_rental_history_ui.h" #include "../../../util/io_util.h" ViewAllRentalHistoryUI::ViewAllRentalHistoryUI(UIManager &ui_manager) : controller(ui_manager.getCompany().getRentalManager()) {} void ViewAllRentalHistoryUI::run() { const size_t qt...
24.532258
113
0.634451
luist18
247823b2fcf93eeb139a63caf4829f6b3aa21578
2,273
cc
C++
google/cloud/spanner/testing/pick_random_instance.cc
antfitch/google-cloud-cpp-spanner
05a2e3ad3ee0ac96164013ce4d9cfce251059569
[ "Apache-2.0" ]
null
null
null
google/cloud/spanner/testing/pick_random_instance.cc
antfitch/google-cloud-cpp-spanner
05a2e3ad3ee0ac96164013ce4d9cfce251059569
[ "Apache-2.0" ]
null
null
null
google/cloud/spanner/testing/pick_random_instance.cc
antfitch/google-cloud-cpp-spanner
05a2e3ad3ee0ac96164013ce4d9cfce251059569
[ "Apache-2.0" ]
null
null
null
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
37.883333
79
0.730312
antfitch
247bd112688fb21ced0ac93ae15fb723c9e2e421
3,105
cc
C++
Algorithms/RawPRI/RawPRITest.cc
jwillemsen/sidecar
941d9f3b84d05ca405df1444d4d9fd0bde03887f
[ "MIT" ]
null
null
null
Algorithms/RawPRI/RawPRITest.cc
jwillemsen/sidecar
941d9f3b84d05ca405df1444d4d9fd0bde03887f
[ "MIT" ]
null
null
null
Algorithms/RawPRI/RawPRITest.cc
jwillemsen/sidecar
941d9f3b84d05ca405df1444d4d9fd0bde03887f
[ "MIT" ]
null
null
null
#include <iostream> #include "ace/FILE_Connector.h" #include "ace/Reactor.h" #include "ace/Stream.h" #include "IO/FileWriterTask.h" #include "IO/MessageManager.h" #include "IO/Module.h" #include "IO/Readers.h" #include "Logger/Log.h" #include "Messages/RawVideo.h" #include "Messages/Video.h" #include "UnitTest/UnitT...
31.683673
107
0.637359
jwillemsen
247bdad5a035d5882800b6810a7ec53368ce88b1
894
hpp
C++
stan/math/prim/fun/as_value_column_array_or_scalar.hpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
null
null
null
stan/math/prim/fun/as_value_column_array_or_scalar.hpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
null
null
null
stan/math/prim/fun/as_value_column_array_or_scalar.hpp
LaudateCorpus1/math
990a66b3cccd27a5fd48626360bb91093a48278b
[ "BSD-3-Clause" ]
null
null
null
#ifndef STAN_MATH_PRIM_FUN_AS_VALUE_COLUMN_ARRAY_OR_SCALAR #define STAN_MATH_PRIM_FUN_AS_VALUE_COLUMN_ARRAY_OR_SCALAR #include <stan/math/prim/fun/Eigen.hpp> #include <stan/math/prim/meta.hpp> #include <stan/math/prim/fun/as_column_vector_or_scalar.hpp> #include <stan/math/prim/fun/as_array_or_scalar.hpp> #include <st...
28.83871
76
0.762864
LaudateCorpus1
247e37797dd0ee0a881cf103d22af936faf33b19
9,735
cpp
C++
TERefiner/HardClipReads.cpp
simoncchu/REPdenovo
708f2f8efc40f6df0a64c1e4049f16e79f65f471
[ "MIT" ]
6
2019-11-11T19:33:21.000Z
2020-03-26T23:41:22.000Z
TERefiner/HardClipReads.cpp
simoncchu/REPdenovo
708f2f8efc40f6df0a64c1e4049f16e79f65f471
[ "MIT" ]
3
2019-08-19T14:14:55.000Z
2020-05-10T23:47:23.000Z
TERefiner/HardClipReads.cpp
simoncchu/REPdenovo
708f2f8efc40f6df0a64c1e4049f16e79f65f471
[ "MIT" ]
1
2020-02-13T15:18:53.000Z
2020-02-13T15:18:53.000Z
/* The MIT License Copyright (c) 20082-2012 by Heng Li <lh3@me.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
30.139319
124
0.571443
simoncchu
247e76eb1c02396e67955e75d55929d252af6e8c
9,124
cc
C++
src/so/so.cc
emer/pdpp
ccce243ae356dc5908cdd667419a7afd74cf22ad
[ "BSD-3-Clause" ]
null
null
null
src/so/so.cc
emer/pdpp
ccce243ae356dc5908cdd667419a7afd74cf22ad
[ "BSD-3-Clause" ]
null
null
null
src/so/so.cc
emer/pdpp
ccce243ae356dc5908cdd667419a7afd74cf22ad
[ "BSD-3-Clause" ]
null
null
null
/* -*- C++ -*- */ /*============================================================================= // // // This file is part of the PDP++ software package. // // // // Copyright (C) 1995 Randall C. O'Reilly, Chadley K. Dawson, // // James L. McClelland, and Carnegie Me...
25.994302
84
0.612231
emer
247fe0aaaccabce6151516dcb6e2b2bd5f98a08c
375
cpp
C++
codeforces/contests/round/452-div2/a.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
4
2020-10-05T19:24:10.000Z
2021-07-15T00:45:43.000Z
codeforces/contests/round/452-div2/a.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
codeforces/contests/round/452-div2/a.cpp
tysm/cpsols
262212646203e516d1706edf962290de93762611
[ "MIT" ]
null
null
null
#include <cpplib/stdinc.hpp> int32_t main(){ desync(); int n; cin >> n; int a = 0, b = 0; for(int i=0; i<n; ++i){ int x; cin >> x; if(x == 1) a++; else b++; } int ans = a/3; for(int i=1; i<=min(a, b); ++i) ans = max(ans, i ...
17.045455
38
0.365333
tysm
248549609861a709e59c17a09dd585989e60102b
3,703
cc
C++
tensorflow/cc/ops/control_flow_ops.cc
shishaochen/TensorFlow-0.8-Win
63221dfc4f1a1d064308e632ba12e6a54afe1fd8
[ "Apache-2.0" ]
1
2017-09-14T23:59:05.000Z
2017-09-14T23:59:05.000Z
tensorflow/cc/ops/control_flow_ops.cc
shishaochen/TensorFlow-0.8-Win
63221dfc4f1a1d064308e632ba12e6a54afe1fd8
[ "Apache-2.0" ]
1
2016-10-19T02:43:04.000Z
2016-10-31T14:53:06.000Z
tensorflow/cc/ops/control_flow_ops.cc
shishaochen/TensorFlow-0.8-Win
63221dfc4f1a1d064308e632ba12e6a54afe1fd8
[ "Apache-2.0" ]
8
2016-10-23T00:50:02.000Z
2019-04-21T11:11:57.000Z
// This file is MACHINE GENERATED! Do not edit. #include "tensorflow/cc/ops/control_flow_ops.h" #include "tensorflow/core/graph/node_builder.h" namespace tensorflow { namespace ops { Node* Abort(const GraphDefBuilder::Options& opts) { static const string kOpName = "Abort"; return SourceOp(kOpName, opts); } Nod...
33.0625
79
0.706454
shishaochen
2486d4b4ca6ead6c8a6b3b0be35db8628c79d0c2
1,998
cpp
C++
odetest02.cpp
yoggy/odetest
9fd121098b436092509b098db38519d8fc2e8526
[ "MIT" ]
null
null
null
odetest02.cpp
yoggy/odetest
9fd121098b436092509b098db38519d8fc2e8526
[ "MIT" ]
null
null
null
odetest02.cpp
yoggy/odetest
9fd121098b436092509b098db38519d8fc2e8526
[ "MIT" ]
null
null
null
// // odetest02.cpp - simple free fall & bound test // #include <ode/ode.h> #include <ncurses.h> #include <unistd.h> dWorldID world; dJointGroupID contactgroup; static void nearCallback(void *data, dGeomID o1, dGeomID o2) { const int N = 10; dContact contact[N]; int n = dCollide(o1, o2, N, &contact[0].geom, size...
21.031579
86
0.631632
yoggy
248777dae7d01164b3d2928d2aed3fe2a25f6e7e
2,650
hpp
C++
src/ibeo_8l_sdk/src/ibeosdk/datablocks/PointCloudPlane7510.hpp
tomcamp0228/ibeo_ros2
ff56c88d6e82440ae3ce4de08f2745707c354604
[ "MIT" ]
1
2020-06-19T11:01:49.000Z
2020-06-19T11:01:49.000Z
include/ibeosdk/datablocks/PointCloudPlane7510.hpp
chouer19/enjoyDriving
e4a29e6cad7d3b0061d59f584cce7cdea2a55351
[ "MIT" ]
null
null
null
include/ibeosdk/datablocks/PointCloudPlane7510.hpp
chouer19/enjoyDriving
e4a29e6cad7d3b0061d59f584cce7cdea2a55351
[ "MIT" ]
2
2020-06-19T11:01:48.000Z
2020-10-29T03:07:14.000Z
//====================================================================== /*! \file PointCloudPlane7510.hpp *\verbatim * ------------------------------------------ * (C) 2016 Ibeo Automotive Systems GmbH, Hamburg, Germany * ------------------------------------------ * * Created on: Mar 15, 2016 * by: K...
35.333333
181
0.548679
tomcamp0228
24894c0176346f59b7ff2438ae254a9da1dfd571
486
cpp
C++
gmsh-4.2.2/demos/api/onelab_data.cpp
Poofee/fastFEM
14eb626df973e2123604041451912c867ab7188c
[ "MIT" ]
4
2019-05-06T09:35:08.000Z
2021-05-14T16:26:45.000Z
onelab/share/doc/gmsh/demos/api/onelab_data.cpp
Christophe-Foyer/pyFEA
344996d6b075ee4b2214283f0af8159d86d154fd
[ "MIT" ]
null
null
null
onelab/share/doc/gmsh/demos/api/onelab_data.cpp
Christophe-Foyer/pyFEA
344996d6b075ee4b2214283f0af8159d86d154fd
[ "MIT" ]
1
2020-12-15T13:47:23.000Z
2020-12-15T13:47:23.000Z
#include <iostream> #include <gmsh.h> int main(int argc, char **argv) { if(argc < 2){ std::cout << "Usage: " << argv[0] << " file [options]" << std::endl; return 0; } gmsh::initialize(); gmsh::option::setNumber("General.Terminal", 1); gmsh::open(argv[1]); // attempts to run a client selected whe...
18
79
0.59465
Poofee
248feb2e5cba068ec2e626244553d2d7f758bbba
3,475
hh
C++
include/ignition/physics/Geometry.hh
jspricke/ign-physics
abd7c4562e96eb2adcf0dea9b8c8ca3dcccd4790
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
include/ignition/physics/Geometry.hh
jspricke/ign-physics
abd7c4562e96eb2adcf0dea9b8c8ca3dcccd4790
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
include/ignition/physics/Geometry.hh
jspricke/ign-physics
abd7c4562e96eb2adcf0dea9b8c8ca3dcccd4790
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
/* * Copyright (C) 2018 Open Source Robotics Foundation * * 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...
33.095238
77
0.699281
jspricke
2490d796d308211a5a203296e845088c5207edd0
15,105
cpp
C++
c/wikipedia/wikipedia_tuple_map_impl.cpp
mmonto7/small-world-graph
8ea1015c24065cb71875620b28c66ffb8348dcae
[ "MIT" ]
3
2016-05-31T07:23:27.000Z
2018-02-16T00:06:04.000Z
c/wikipedia/wikipedia_tuple_map_impl.cpp
mmonto7/small-world-graph
8ea1015c24065cb71875620b28c66ffb8348dcae
[ "MIT" ]
2
2020-08-31T20:51:20.000Z
2021-03-30T18:05:25.000Z
c/wikipedia/wikipedia_tuple_map_impl.cpp
mmonto7/small-world-graph
8ea1015c24065cb71875620b28c66ffb8348dcae
[ "MIT" ]
4
2015-01-17T07:31:25.000Z
2020-08-31T20:49:41.000Z
#include "wikipedia_tuple_map_impl.h" #include "benchmark.h" #include <sys/stat.h> #include "wikipedia_stopword_list.h" #include "string_utils.h" #include <valgrind/callgrind.h> WikipediaTupleMapImpl::WikipediaTupleMapImpl() { id_tuple_table_ = NULL; tuples_.set_deleted_key(NULL); } void WikipediaTupleMapImpl::l...
29.792899
250
0.583052
mmonto7
24911b4f7decb852ac130f4a734da024f44f63a3
2,282
hpp
C++
src/hotspot/share/gc/z/zThreadLocalData.hpp
siweilxy/openjdkstudy
8597674ec1d6809faf55cbee1f45f4e9149d670d
[ "Apache-2.0" ]
null
null
null
src/hotspot/share/gc/z/zThreadLocalData.hpp
siweilxy/openjdkstudy
8597674ec1d6809faf55cbee1f45f4e9149d670d
[ "Apache-2.0" ]
null
null
null
src/hotspot/share/gc/z/zThreadLocalData.hpp
siweilxy/openjdkstudy
8597674ec1d6809faf55cbee1f45f4e9149d670d
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
31.260274
90
0.741017
siweilxy
24922cc39bb9c95ecb2e31239adbbb1ae3876c47
6,327
cpp
C++
tests/main.cpp
8infy/XILoader
7e82d917cddb3c66be76c614637cdb05dde4dddf
[ "Apache-2.0" ]
null
null
null
tests/main.cpp
8infy/XILoader
7e82d917cddb3c66be76c614637cdb05dde4dddf
[ "Apache-2.0" ]
null
null
null
tests/main.cpp
8infy/XILoader
7e82d917cddb3c66be76c614637cdb05dde4dddf
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <string> #include <vector> #include <fstream> #include <XILoader/XILoader.h> // variables for stbi to write // image size data to static int x, y, z; static uint16_t passed = 0; static uint16_t failed = 0; #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #define PATH_TO(image) XI...
41.900662
111
0.684369
8infy
2492eca9ffd00a5653d65c9c4069f1959fb829a5
761
cpp
C++
src/Maths.cpp
elvisoric/hmi
4e80f0bb0e4ac459bef2ddbc439faf895e1b60cb
[ "MIT" ]
17
2019-03-02T14:59:32.000Z
2022-03-10T15:08:36.000Z
src/Maths.cpp
elvisoric/hmi
4e80f0bb0e4ac459bef2ddbc439faf895e1b60cb
[ "MIT" ]
1
2019-07-02T06:01:35.000Z
2019-07-02T08:25:22.000Z
src/Maths.cpp
elvisoric/hmi
4e80f0bb0e4ac459bef2ddbc439faf895e1b60cb
[ "MIT" ]
2
2019-05-15T21:05:32.000Z
2021-04-26T03:09:24.000Z
#include <Maths.h> namespace nrg { glm::mat4 createTransformation(const glm::vec3& translation, float rx, float ry, float rz, float scale) { glm::mat4 transformation{1.0f}; transformation = glm::translate(transformation, translation); transformation = glm::rotate(transformation, gl...
42.277778
80
0.599212
elvisoric
24940cf3fc62959bcbdcce907c6a46ac52bdefd2
842
hpp
C++
engine/graphics/renderer/Camera.hpp
taida957789/ouzel
a8c1cc74e6151a0f7d7d2c534f8747cba46a36af
[ "Unlicense" ]
1
2021-03-01T13:17:49.000Z
2021-03-01T13:17:49.000Z
engine/graphics/renderer/Camera.hpp
taida957789/ouzel
a8c1cc74e6151a0f7d7d2c534f8747cba46a36af
[ "Unlicense" ]
null
null
null
engine/graphics/renderer/Camera.hpp
taida957789/ouzel
a8c1cc74e6151a0f7d7d2c534f8747cba46a36af
[ "Unlicense" ]
null
null
null
// Copyright 2015-2020 Elviss Strazdins. All rights reserved. #ifndef OUZEL_GRAPHICS_RENDERER_CAMERA_HPP #define OUZEL_GRAPHICS_RENDERER_CAMERA_HPP #include "Renderer.hpp" #include "../../math/Matrix.hpp" namespace ouzel::graphics::renderer { class Camera final { public: enum class ProjectionMode...
19.581395
61
0.579572
taida957789
24983831d385f0eadab472fa5d34e904d7e2c7d4
1,045
cc
C++
fuzzers/tint_spv_reader_fuzzer.cc
dorba/tint
f81c1081ea7d27ea55f373c0bfaf651e491da7e6
[ "Apache-2.0" ]
null
null
null
fuzzers/tint_spv_reader_fuzzer.cc
dorba/tint
f81c1081ea7d27ea55f373c0bfaf651e491da7e6
[ "Apache-2.0" ]
null
null
null
fuzzers/tint_spv_reader_fuzzer.cc
dorba/tint
f81c1081ea7d27ea55f373c0bfaf651e491da7e6
[ "Apache-2.0" ]
null
null
null
// Copyright 2020 The Tint 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 agreed ...
32.65625
75
0.719617
dorba
2498f10a871dbe916e582f9a6f96d443a526416f
3,000
cpp
C++
Base/PLCore/src/System/ConsoleAndroid.cpp
ktotheoz/pixellight
43a661e762034054b47766d7e38d94baf22d2038
[ "MIT" ]
83
2015-01-08T15:06:14.000Z
2021-07-20T17:07:00.000Z
Base/PLCore/src/System/ConsoleAndroid.cpp
PixelLightFoundation/pixellight
43a661e762034054b47766d7e38d94baf22d2038
[ "MIT" ]
27
2019-06-18T06:46:07.000Z
2020-02-02T11:11:28.000Z
Base/PLCore/src/System/ConsoleAndroid.cpp
naetherm/PixelLight
d7666f5b49020334cbb5debbee11030f34cced56
[ "MIT" ]
40
2015-02-25T18:24:34.000Z
2021-03-06T09:01:48.000Z
/*********************************************************\ * File: ConsoleAndroid.cpp * * * Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/) * * This file is part of PixelLight. * * Permission is hereby granted, free of charge, to any person obtaining a co...
38.961039
146
0.505
ktotheoz
249c6d2bbc55a5154b01e724367e83c8ad6e0912
359
cpp
C++
cpp_playground/ex110/numbers.cpp
chgogos/oop
3b0e6bbd29a76f863611e18d082913f080b1b571
[ "MIT" ]
14
2019-04-23T13:45:10.000Z
2022-03-12T18:26:47.000Z
cpp_playground/ex110/numbers.cpp
chgogos/oop
3b0e6bbd29a76f863611e18d082913f080b1b571
[ "MIT" ]
null
null
null
cpp_playground/ex110/numbers.cpp
chgogos/oop
3b0e6bbd29a76f863611e18d082913f080b1b571
[ "MIT" ]
9
2019-09-01T15:17:45.000Z
2020-11-13T20:31:36.000Z
#include "numbers.hpp" int gcd(int x, int y) { int a, b, r; if (x > y) { a = x; b = y; } else { a = y; b = x; } while (b != 0) { r = a % b; a = b; b = r; } return a; } // x * y = LCM(x, y) * GCD (x, y) int lcm(int x, i...
12.37931
33
0.314763
chgogos
249fcbd55bd3e42b3bec6ae9ff6af3281666d15c
2,659
cpp
C++
drlvm/vm/port/src/signals/linux/signals_ia32.cpp
sirinath/Harmony
724deb045a85b722c961d8b5a83ac7a697319441
[ "Apache-2.0" ]
8
2015-11-04T06:06:35.000Z
2021-07-04T13:47:36.000Z
drlvm/vm/port/src/signals/linux/signals_ia32.cpp
sirinath/Harmony
724deb045a85b722c961d8b5a83ac7a697319441
[ "Apache-2.0" ]
1
2021-10-17T13:07:28.000Z
2021-10-17T13:07:28.000Z
drlvm/vm/port/src/signals/linux/signals_ia32.cpp
sirinath/Harmony
724deb045a85b722c961d8b5a83ac7a697319441
[ "Apache-2.0" ]
13
2015-11-27T03:14:50.000Z
2022-02-26T15:12:20.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 You under the Apache License, Version 2.0 * (the "License"); you...
25.084906
76
0.574276
sirinath
24a6f4ca879d1e340a083669874c78ed923e19a7
3,888
hpp
C++
utils.hpp
Instand/algorithms
079ac867932e65e0936eab08b3176dc2d68bf684
[ "MIT" ]
2
2019-10-29T03:25:21.000Z
2019-10-30T12:03:50.000Z
utils.hpp
Instand/Algorithms
079ac867932e65e0936eab08b3176dc2d68bf684
[ "MIT" ]
null
null
null
utils.hpp
Instand/Algorithms
079ac867932e65e0936eab08b3176dc2d68bf684
[ "MIT" ]
null
null
null
#ifndef UTILS_HPP #define UTILS_HPP #include <iostream> #include <utility> #include <random> #include <string> #include <chrono> #include <memory> #define forever for(;;) #define unused(x) (void)(x) namespace cs { struct Initializer { Initializer() { std::srand(seed); } inlin...
29.233083
121
0.551698
Instand
24a92d1969bfe14239b7da65421c720798b39331
2,813
cpp
C++
source/SoloFeature_redistributeReadsByCB.cpp
Gavin-Lijy/STAR
4571190968fc134aa4bd0d4d7065490253b1a4c5
[ "MIT" ]
1,315
2015-01-07T02:03:15.000Z
2022-03-30T09:48:17.000Z
source/SoloFeature_redistributeReadsByCB.cpp
Gavin-Lijy/STAR
4571190968fc134aa4bd0d4d7065490253b1a4c5
[ "MIT" ]
1,429
2015-01-08T00:09:17.000Z
2022-03-31T08:12:14.000Z
source/SoloFeature_redistributeReadsByCB.cpp
Gavin-Lijy/STAR
4571190968fc134aa4bd0d4d7065490253b1a4c5
[ "MIT" ]
495
2015-01-23T20:00:45.000Z
2022-03-31T13:24:50.000Z
#include "SoloFeature.h" #include "streamFuns.h" //#include "TimeFunctions.h" //#include "SequenceFuns.h" //#include "Stats.h" //#include "GlobalVariables.h" void SoloFeature::redistributeReadsByCB() {//redistribute reads in files by CB - each file with the approximately the same number of reads, each CB is on one fil...
34.728395
163
0.596872
Gavin-Lijy
24b0a21e49006b8ffb15dfad251cda8793b24d33
715
cpp
C++
Quanta/Source/Graphics/Buffer/VertexLayout.cpp
thedoctorquantum/Quanta
c952c8ca0832f978ea1fc1aa9e9a840c500977a3
[ "MIT" ]
null
null
null
Quanta/Source/Graphics/Buffer/VertexLayout.cpp
thedoctorquantum/Quanta
c952c8ca0832f978ea1fc1aa9e9a840c500977a3
[ "MIT" ]
null
null
null
Quanta/Source/Graphics/Buffer/VertexLayout.cpp
thedoctorquantum/Quanta
c952c8ca0832f978ea1fc1aa9e9a840c500977a3
[ "MIT" ]
null
null
null
#include <Quanta/Graphics/Buffer/VertexLayout.h> #include "../../Debugging/Validation.h" namespace Quanta { const VertexElement& VertexLayout::operator[](const USize index) const { DEBUG_ASSERT(index < elements.size()); return elements[index]; } void VertexLay...
21.666667
74
0.594406
thedoctorquantum
24b888b8ea47372594f86e4489eaa80d64b20a52
1,511
cpp
C++
src/worker/common.cpp
abudnik/prun
643a6bf49249e220f08317b8a4739570faf7b2ae
[ "Apache-2.0" ]
20
2015-05-14T19:44:01.000Z
2018-04-14T15:25:08.000Z
src/worker/common.cpp
abudnik/prun
643a6bf49249e220f08317b8a4739570faf7b2ae
[ "Apache-2.0" ]
11
2015-04-15T19:51:06.000Z
2017-01-03T14:57:49.000Z
src/worker/common.cpp
abudnik/prun
643a6bf49249e220f08317b8a4739570faf7b2ae
[ "Apache-2.0" ]
7
2015-05-08T12:44:38.000Z
2021-12-10T18:00:01.000Z
/* =========================================================================== This software is licensed under the Apache 2 license, quoted below. Copyright (C) 2013 Andrey Budnik <budnik27@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with ...
33.577778
77
0.688948
abudnik
24bc7245b30b67d814caea99b2ef86dd1fa1371c
2,231
cc
C++
src/space/libmin/mindefs.cc
yrrapt/cacd
696f5a22cb71b83eabbb9de199f1972d458fa9e9
[ "ISC" ]
11
2019-10-16T11:03:49.000Z
2021-09-28T19:46:12.000Z
src/space/libmin/mindefs.cc
yrrapt/cacd
696f5a22cb71b83eabbb9de199f1972d458fa9e9
[ "ISC" ]
null
null
null
src/space/libmin/mindefs.cc
yrrapt/cacd
696f5a22cb71b83eabbb9de199f1972d458fa9e9
[ "ISC" ]
1
2021-09-29T18:15:17.000Z
2021-09-29T18:15:17.000Z
/* * ISC License * * Copyright (C) 1997-2018 by * Arjan van Genderen * Kees-Jan van der Kolk * Simon de Graaf * Nick van der Meijs * Delft University of Technology * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the a...
30.148649
102
0.629314
yrrapt
24bd02b74e123c16ba3fc1576c9820cf2c74ab79
379
hpp
C++
include/aikido/planner/ompl/detail/CRRTConnect-impl.hpp
personalrobotics/r3
1303e3f3ef99a0c2249abc7415d19113f0026565
[ "BSD-3-Clause" ]
181
2016-04-22T15:11:23.000Z
2022-03-26T12:51:08.000Z
include/aikido/planner/ompl/detail/CRRTConnect-impl.hpp
personalrobotics/r3
1303e3f3ef99a0c2249abc7415d19113f0026565
[ "BSD-3-Clause" ]
514
2016-04-20T04:29:51.000Z
2022-02-10T19:46:21.000Z
include/aikido/planner/ompl/detail/CRRTConnect-impl.hpp
personalrobotics/r3
1303e3f3ef99a0c2249abc7415d19113f0026565
[ "BSD-3-Clause" ]
31
2017-03-17T09:53:02.000Z
2022-03-23T10:35:05.000Z
namespace aikido { namespace planner { namespace ompl { //============================================================================== template <template <typename T> class NN> void CRRTConnect::setNearestNeighbors() { mStartTree.reset(new NN<CRRT::Motion*>()); mGoalTree.reset(new NN<CRRT::Motion*>()); } } // n...
23.6875
80
0.562005
personalrobotics
24beaeeb0a15535525308aced1c0e098200695b3
5,394
cpp
C++
applications/PoromechanicsApplication/custom_constitutive/custom_yield_criteria/modified_mises_yield_criterion.cpp
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/PoromechanicsApplication/custom_constitutive/custom_yield_criteria/modified_mises_yield_criterion.cpp
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/PoromechanicsApplication/custom_constitutive/custom_yield_criteria/modified_mises_yield_criterion.cpp
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
// // Project Name: KratosPoromechanicsApplication $ // Created by: $Author: IPouplana $ // Last modified by: $Co-Author: $ // Date: $Date: July 2015 $ // Revision: $Revision: 0.0 $ // // // System i...
32.493976
123
0.513904
lkusch
24c330f2e3f866747cee4264ff09b664462b5de9
16,214
cpp
C++
platforms/android/modules/alexa/src/main/cpp/src/Alexa/AlexaConfigurationBinder.cpp
krishnaprasad/alexa-auto-sdk
2fb8d28a9c4138111f9b19c2527478562acc4643
[ "Apache-2.0" ]
null
null
null
platforms/android/modules/alexa/src/main/cpp/src/Alexa/AlexaConfigurationBinder.cpp
krishnaprasad/alexa-auto-sdk
2fb8d28a9c4138111f9b19c2527478562acc4643
[ "Apache-2.0" ]
null
null
null
platforms/android/modules/alexa/src/main/cpp/src/Alexa/AlexaConfigurationBinder.cpp
krishnaprasad/alexa-auto-sdk
2fb8d28a9c4138111f9b19c2527478562acc4643
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2019-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "...
39.837838
120
0.704946
krishnaprasad
24c33c40653321a4e4db478187c783c22e089f39
10,897
cpp
C++
src/comm.cpp
ckrisgarrett/C3D-2015
76b751e8c33aa048e0e19c5aec53780735fd2144
[ "MIT" ]
null
null
null
src/comm.cpp
ckrisgarrett/C3D-2015
76b751e8c33aa048e0e19c5aec53780735fd2144
[ "MIT" ]
null
null
null
src/comm.cpp
ckrisgarrett/C3D-2015
76b751e8c33aa048e0e19c5aec53780735fd2144
[ "MIT" ]
null
null
null
/* File: comm.cpp Author: Kris Garrett Date: September 6, 2013 */ #include "global.h" #include "utils.h" #include <string.h> #include <stdlib.h> #ifdef USE_MPI #include <mpi.h> /* Returns MPI communication sizes in bytes. */ static double getBoundarySizeX() { return (g_gY[3] - g_gY[0] + 1)...
33.42638
95
0.564834
ckrisgarrett
24c40051257477239e4aefb7b39bbed8838c2052
507
cpp
C++
leetcode/153_Find-Minimum-in-Rotated-Sorted-Array/FindMin.cpp
chasingegg/Online_Judge
8a3f4b5b207cbeda921c743a527a25bf9c7b6248
[ "MIT" ]
1
2017-10-13T10:34:46.000Z
2017-10-13T10:34:46.000Z
leetcode/153_Find-Minimum-in-Rotated-Sorted-Array/FindMin.cpp
chasingegg/Online_Judge
8a3f4b5b207cbeda921c743a527a25bf9c7b6248
[ "MIT" ]
null
null
null
leetcode/153_Find-Minimum-in-Rotated-Sorted-Array/FindMin.cpp
chasingegg/Online_Judge
8a3f4b5b207cbeda921c743a527a25bf9c7b6248
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; class Solution { public: int findMin(vector<int>& nums) { int n = nums.size(); if (n <= 0) return 0; if (n == 1) return nums[0]; int left = 0; int right = n - 1; while (left < right) { int mid = l...
25.35
58
0.487179
chasingegg
24c43e8624709e2201d2e79d6f1f08627e8678a3
439
cpp
C++
Kattis-Solutions/Backspace.cpp
SurgicalSteel/Competitive-Programming
3662b676de94796f717b25dc8d1b93c6851fb274
[ "MIT" ]
14
2016-02-11T09:26:13.000Z
2022-03-27T01:14:29.000Z
Kattis-Solutions/Backspace.cpp
SurgicalSteel/Competitive-Programming
3662b676de94796f717b25dc8d1b93c6851fb274
[ "MIT" ]
null
null
null
Kattis-Solutions/Backspace.cpp
SurgicalSteel/Competitive-Programming
3662b676de94796f717b25dc8d1b93c6851fb274
[ "MIT" ]
7
2016-10-25T19:29:35.000Z
2021-12-05T18:31:39.000Z
#include <bits/stdc++.h> using namespace std; #define psb push_back int main() { string s; cin>>s; if(s.length()==1){cout<<s<<"\n";} else { stack<string> ss; for(int i=0;i<s.length();++i) { if(s.substr(i,1)!="<"){ss.push(s.substr(i,1));} else{ss.pop();} } vector<string> vs; while(!ss.empty()) {...
16.259259
50
0.530752
SurgicalSteel
24c45235ff20b5f80136dc02bf808429808375b4
5,663
cc
C++
tensorflow/core/grappler/costs/virtual_placer.cc
tianhm/tensorflow
e55574f28257bdacd744dcdba86c839e661b1b2a
[ "Apache-2.0" ]
47
2017-03-08T20:58:54.000Z
2021-06-24T07:07:49.000Z
tensorflow/core/grappler/costs/virtual_placer.cc
genSud/tensorflow
ec8216568d8cd9810004067558041c11a8356685
[ "Apache-2.0" ]
1
2019-07-11T16:29:54.000Z
2019-07-11T16:29:54.000Z
tensorflow/core/grappler/costs/virtual_placer.cc
genSud/tensorflow
ec8216568d8cd9810004067558041c11a8356685
[ "Apache-2.0" ]
19
2017-04-17T01:28:40.000Z
2020-08-15T13:01:33.000Z
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
37.753333
80
0.666961
tianhm
24c45595e93abef055dbd268558dec5fb6858ce6
4,251
cpp
C++
Editor/src/windows/assets_create/SceneCreator.cpp
ThakeeNathees/PixelEngine
4df8d8b209497ffae881d65da9eebaa054279b41
[ "Apache-2.0" ]
11
2020-08-23T17:36:40.000Z
2021-08-24T09:42:50.000Z
Editor/src/windows/assets_create/SceneCreator.cpp
ThakeeNathees/PixelEngine
4df8d8b209497ffae881d65da9eebaa054279b41
[ "Apache-2.0" ]
1
2020-08-24T06:56:46.000Z
2020-08-24T13:56:14.000Z
Editor/src/windows/assets_create/SceneCreator.cpp
ThakeeNathees/Pixel-Engine
4df8d8b209497ffae881d65da9eebaa054279b41
[ "Apache-2.0" ]
3
2019-12-09T13:03:22.000Z
2020-04-08T06:00:53.000Z
#include "pch.h" #include "SceneCreator.h" // cpp include #include "windows/file_tree/FileTree.h" SceneCreator* SceneCreator::s_instance = nullptr; void SceneCreator::render() { if (m_open) { ImGui::Begin("Create New Script", &m_open); ImGui::SetWindowSize(ImVec2(400, 220), ImGuiCond_Once); static float w...
39
175
0.669725
ThakeeNathees
24c72f6b20c435a4c35c6da2ddfdddbaeb5fc1a1
34,826
cpp
C++
cpp/nvgraph/cpp/tests/nvgraph_capi_tests_clustering.cpp
seunghwak/cugraph
f2f6f9147ce8c2f46b7b6dbc335f885c11b69004
[ "Apache-2.0" ]
16
2019-09-13T11:43:26.000Z
2022-03-02T10:11:59.000Z
cpp/nvgraph/cpp/tests/nvgraph_capi_tests_clustering.cpp
seunghwak/cugraph
f2f6f9147ce8c2f46b7b6dbc335f885c11b69004
[ "Apache-2.0" ]
5
2020-02-12T14:55:25.000Z
2021-12-06T17:55:12.000Z
cpp/nvgraph/cpp/tests/nvgraph_capi_tests_clustering.cpp
seunghwak/cugraph
f2f6f9147ce8c2f46b7b6dbc335f885c11b69004
[ "Apache-2.0" ]
6
2020-04-06T01:34:45.000Z
2021-01-21T17:13:24.000Z
#include <utility> #include "gtest/gtest.h" #include "nvgraph_test_common.h" #include "valued_csr_graph.hxx" #include "readMatrix.hxx" #include "nvgraphP.h" #include "nvgraph.h" #include "nvgraph_experimental.h" #include "stdlib.h" #include <algorithm> extern "C" { #include "mmio.h" } #include "mm.hxx" // do the perf ...
53.088415
229
0.584822
seunghwak
24c796b8ef924857dae0df21aaede888ebbeb2c0
6,388
cpp
C++
src/rdx/rdx_containers.cpp
elasota/rdx2
e08ca09a07d3ac8675f7f950a7bdf838a9f5f907
[ "MIT" ]
null
null
null
src/rdx/rdx_containers.cpp
elasota/rdx2
e08ca09a07d3ac8675f7f950a7bdf838a9f5f907
[ "MIT" ]
null
null
null
src/rdx/rdx_containers.cpp
elasota/rdx2
e08ca09a07d3ac8675f7f950a7bdf838a9f5f907
[ "MIT" ]
null
null
null
#include "rdx_reftypedefs.hpp" #include "rdx_builtins.hpp" void rdxCStructContainer::VisitReferences(rdxIObjectManager *objm, rdxIObjectReferenceVisitor *visitor, bool visitNonSerializable) { rdxDebugBreak(rdxBREAKCAUSE_Unimplemented); } void rdxCStructContainer::InitializeContents(rdxIObjectManager *objm, r...
37.139535
229
0.766594
elasota
24c8cc7529379dee87d921eb4741ee34c6bdb2bc
4,607
hpp
C++
srcs/list/list_iterator.hpp
paozer/ft_containers
ec6db7fa47b31abae3d6a997b344315c884f4b45
[ "Unlicense" ]
1
2021-02-16T23:16:05.000Z
2021-02-16T23:16:05.000Z
srcs/list/list_iterator.hpp
paozer/ft_containers
ec6db7fa47b31abae3d6a997b344315c884f4b45
[ "Unlicense" ]
null
null
null
srcs/list/list_iterator.hpp
paozer/ft_containers
ec6db7fa47b31abae3d6a997b344315c884f4b45
[ "Unlicense" ]
null
null
null
#pragma once #include "list_node.hpp" #include "../utils/utils.hpp" #include <cstddef> // NULL, std::ptrdiff_t #include <iterator> // std::bidirectional_iterator_tag namespace ft { template <class T, bool is_const> class list_iterator { public: typedef T value_type; typedef std::ptrdiff_t diffe...
27.921212
115
0.569351
paozer
24c934f081d9ad0d56c6c5ee51ae4f9c7033400e
1,596
hpp
C++
Sources/Audio/SoundBuffer.hpp
liuping1997/Acid
0b28d63d03ead41047d5881f08e3b693a4e6e63f
[ "MIT" ]
null
null
null
Sources/Audio/SoundBuffer.hpp
liuping1997/Acid
0b28d63d03ead41047d5881f08e3b693a4e6e63f
[ "MIT" ]
null
null
null
Sources/Audio/SoundBuffer.hpp
liuping1997/Acid
0b28d63d03ead41047d5881f08e3b693a4e6e63f
[ "MIT" ]
null
null
null
#pragma once #include "Maths/Vector3.hpp" #include "Resources/Resource.hpp" #include "Audio.hpp" namespace acid { /** * @brief Resource that represents a sound buffer. */ class ACID_EXPORT SoundBuffer : public Resource { public: /** * Creates a new sound buffer, or finds one with the same values. * @param met...
27.517241
116
0.736842
liuping1997
24cb85e54cd50c9746b27788c67e923e9747c047
1,079
cpp
C++
Excelenta/Problema1.cpp
NegreanV/MyAlgorithms
7dd16d677d537d34280c3858ccf4cbea4b3ddf26
[ "Apache-2.0" ]
1
2015-10-24T10:02:06.000Z
2015-10-24T10:02:06.000Z
Excelenta/Problema1.cpp
NegreanV/MyAlgorithms
7dd16d677d537d34280c3858ccf4cbea4b3ddf26
[ "Apache-2.0" ]
null
null
null
Excelenta/Problema1.cpp
NegreanV/MyAlgorithms
7dd16d677d537d34280c3858ccf4cbea4b3ddf26
[ "Apache-2.0" ]
null
null
null
/*Se considera fisierul BAC.TXT ce contine un sir crescator cu cel mult un milion de numere naturale de cel mult noua cifre fiecare, separate prin câte un spatiu. Sa se scrie un program C/C++ care, folosind un algoritm eficient din punct de vedere al memoriei utilizate si al timpului de executare, citeste din fisier...
25.690476
86
0.599629
NegreanV
24d0626c3a47f6d399935c90b5edbf5dd7428df0
1,492
cc
C++
src/kernel.cc
klantz81/feature-detection
1ed289711128a30648e198b085534fe9a9610984
[ "MIT" ]
null
null
null
src/kernel.cc
klantz81/feature-detection
1ed289711128a30648e198b085534fe9a9610984
[ "MIT" ]
null
null
null
src/kernel.cc
klantz81/feature-detection
1ed289711128a30648e198b085534fe9a9610984
[ "MIT" ]
null
null
null
#include "kernel.h" cKernel::cKernel(int kernel_radius, double mu, double sigma) : kernel_radius(kernel_radius), mu(mu), sigma(sigma) { this->kernel = new double[this->kernel_radius * 2 + 1]; this->kernel_derivative = new double[this->kernel_radius * 2 + 1]; for (int _i = -this->kernel_radius; _i <= thi...
42.628571
165
0.632708
klantz81
24d4f10e103130563f1b3b21732b8fac57d35c50
8,027
cpp
C++
MIPS/mipsr3000/pi_control.cpp
lovisXII/RISC-V-project
8131f8b2cb2d476ebf80c71d727b1b3831fd6811
[ "MIT" ]
3
2022-02-07T02:15:14.000Z
2022-02-14T09:43:28.000Z
MIPS/mipsr3000/pi_control.cpp
lovisXII/RISC-V-project
8131f8b2cb2d476ebf80c71d727b1b3831fd6811
[ "MIT" ]
null
null
null
MIPS/mipsr3000/pi_control.cpp
lovisXII/RISC-V-project
8131f8b2cb2d476ebf80c71d727b1b3831fd6811
[ "MIT" ]
null
null
null
#include "pi_control.h" void pi_control::processPI_IREQ() { sc_uint<8> pi_ireq; pi_ireq[0]=PI_IREQ0.read(); pi_ireq[1]=PI_IREQ1.read(); pi_ireq[2]=PI_IREQ2.read(); pi_ireq[3]=PI_IREQ3.read(); pi_ireq[4]=PI_IREQ4.read(); pi_ireq[5]=PI_IREQ5.read(); pi_ireq[6]=PI_IREQ6.read(); pi_ireq[7]=PI_IREQ7.rea...
26.57947
117
0.665753
lovisXII
24d7ec97e429ddae0ff31e23caff4c73292b190e
5,952
cc
C++
tensorflow/lite/core/api/flatbuffer_conversions_test.cc
where-is-brett/tensorflow
5da8599b2cf9edfb9fac4431c705501bf7ceccd8
[ "Apache-2.0" ]
57
2017-09-03T07:08:31.000Z
2022-02-28T04:33:42.000Z
tensorflow/lite/core/api/flatbuffer_conversions_test.cc
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
58
2021-11-22T05:41:28.000Z
2022-01-19T01:33:40.000Z
tensorflow/lite/core/api/flatbuffer_conversions_test.cc
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
35.640719
80
0.710349
where-is-brett
24d7ef2cbedf3c0ca8bdb5bac2609f7477a868fc
13,032
cc
C++
ragel/flat.cc
podsvirov/colm-suite
9d45f0d47982d83141763a9728a4f97d6a06bacd
[ "MIT" ]
3
2018-08-18T16:37:49.000Z
2019-04-30T20:21:50.000Z
ragel/flat.cc
podsvirov/colm-suite
9d45f0d47982d83141763a9728a4f97d6a06bacd
[ "MIT" ]
null
null
null
ragel/flat.cc
podsvirov/colm-suite
9d45f0d47982d83141763a9728a4f97d6a06bacd
[ "MIT" ]
1
2017-08-31T05:45:14.000Z
2017-08-31T05:45:14.000Z
/* * Copyright 2004-2018 Adrian Thurston <thurston@colm.net> * * 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, cop...
22.585789
81
0.651473
podsvirov
24dd44fbc951d9b8039b54dedd592133ae1e0dfc
1,221
hpp
C++
src/libs/asn1/include/keto/asn1/TimeHelper.hpp
burntjam/keto
dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8
[ "MIT" ]
1
2020-03-04T10:38:00.000Z
2020-03-04T10:38:00.000Z
src/libs/asn1/include/keto/asn1/TimeHelper.hpp
burntjam/keto
dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8
[ "MIT" ]
null
null
null
src/libs/asn1/include/keto/asn1/TimeHelper.hpp
burntjam/keto
dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8
[ "MIT" ]
1
2020-03-04T10:38:01.000Z
2020-03-04T10:38:01.000Z
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: TimeHelper.hpp * Author: ubuntu * * Created on January 31, 2018, 8:12 AM */ #ifndef TIMEHELPER_HPP #define TIMEHEL...
22.611111
79
0.674857
burntjam
24e02d8b23ecbbcb76f21271ea3e5fea3b61e872
94
cc
C++
DataFormats/L1TMuon/src/EMTFDaqOut.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DataFormats/L1TMuon/src/EMTFDaqOut.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DataFormats/L1TMuon/src/EMTFDaqOut.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
#include "DataFormats/L1TMuon/interface/EMTFDaqOut.h" namespace l1t {} // End namespace l1t
23.5
53
0.765957
ckamtsikis
24e7a91e3bd72cc1198516040aae5562d61e71e6
3,096
hpp
C++
include/more_concepts/base_concepts.hpp
MiSo1289/more_concepts
ee7949691e8d0024b818bc10f3157dcdeb4ed8af
[ "MIT" ]
45
2021-02-01T01:28:27.000Z
2022-03-29T23:48:46.000Z
include/more_concepts/base_concepts.hpp
MiSo1289/more_concepts
ee7949691e8d0024b818bc10f3157dcdeb4ed8af
[ "MIT" ]
1
2021-02-11T12:33:25.000Z
2021-02-11T16:33:05.000Z
include/more_concepts/base_concepts.hpp
MiSo1289/more_concepts
ee7949691e8d0024b818bc10f3157dcdeb4ed8af
[ "MIT" ]
3
2021-02-11T07:25:47.000Z
2021-08-15T16:55:11.000Z
#pragma once #include <concepts> #include <cstddef> #include <system_error> #include <type_traits> #include "more_concepts/detail/type_traits.hpp" namespace more_concepts { /// Types that are non-reference, non-c-array, non-function or function reference, /// non-const and non-volatile. /// /// Assig...
38.7
98
0.674419
MiSo1289
24e811f79451435abe222df6e663d9e41fce8351
232
hpp
C++
book/cpp_templates/tmplbook/meta/pow3const.hpp
houruixiang/day_day_learning
208f70a4f0a85dd99191087835903d279452fd54
[ "MIT" ]
null
null
null
book/cpp_templates/tmplbook/meta/pow3const.hpp
houruixiang/day_day_learning
208f70a4f0a85dd99191087835903d279452fd54
[ "MIT" ]
null
null
null
book/cpp_templates/tmplbook/meta/pow3const.hpp
houruixiang/day_day_learning
208f70a4f0a85dd99191087835903d279452fd54
[ "MIT" ]
null
null
null
// primary template to compute 3 to the Nth template<int N> struct Pow3 { static int const value = 3 * Pow3<N-1>::value; }; // full specialization to end the recursion template<> struct Pow3<0> { static int const value = 1; };
19.333333
48
0.689655
houruixiang
00878d1828f82cbcc4f844db2ec01e3607c21e02
1,216
cpp
C++
plugins/mmstd_moldyn/src/io/MMSPDFrameData.cpp
azuki-monster/megamol
f5d75ae5630f9a71a7fbf81624bfd4f6b253c655
[ "BSD-3-Clause" ]
2
2020-10-16T10:15:37.000Z
2021-01-21T13:06:00.000Z
plugins/mmstd_moldyn/src/io/MMSPDFrameData.cpp
azuki-monster/megamol
f5d75ae5630f9a71a7fbf81624bfd4f6b253c655
[ "BSD-3-Clause" ]
null
null
null
plugins/mmstd_moldyn/src/io/MMSPDFrameData.cpp
azuki-monster/megamol
f5d75ae5630f9a71a7fbf81624bfd4f6b253c655
[ "BSD-3-Clause" ]
1
2021-01-28T01:19:54.000Z
2021-01-28T01:19:54.000Z
/* * MMSPDFrameData.cpp * * Copyright (C) 2011 by VISUS (Universitaet Stuttgart) * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "io/MMSPDFrameData.h" using namespace megamol::stdplugin::moldyn::io; /****************************************************************************/ /* * MMSPDFrameData:...
20.610169
82
0.583882
azuki-monster
008a4345df697e2ff35f98f5123b8a3f56d9f7f2
417
hpp
C++
include/netuit/assign/AssignAvailableProcs.hpp
mmore500/pipe-profile
861babd819909d1bda5e933269e7bc64018272d6
[ "MIT" ]
15
2020-07-31T23:06:09.000Z
2022-01-13T18:05:33.000Z
include/netuit/assign/AssignAvailableProcs.hpp
mmore500/pipe-profile
861babd819909d1bda5e933269e7bc64018272d6
[ "MIT" ]
137
2020-08-13T23:32:17.000Z
2021-10-16T04:00:40.000Z
include/netuit/assign/AssignAvailableProcs.hpp
mmore500/pipe-profile
861babd819909d1bda5e933269e7bc64018272d6
[ "MIT" ]
3
2020-08-09T01:52:03.000Z
2020-10-02T02:13:47.000Z
#pragma once #ifndef NETUIT_ASSIGN_ASSIGNAVAILABLEPROCS_HPP_INCLUDE #define NETUIT_ASSIGN_ASSIGNAVAILABLEPROCS_HPP_INCLUDE #include "../../uitsl/mpi/mpi_init_utils.hpp" namespace netuit { struct AssignAvailableProcs { uitsl::proc_id_t operator()(const size_t & node_id) { return node_id % uitsl::get_nprocs(); ...
20.85
64
0.784173
mmore500
008a4c950ad08521c91437bc9c7c9915522d39f9
5,090
cpp
C++
src/Parsers.cpp
markwinter/tmxjson
926a6effcf0f0fc2a4ff0350d0c33b843e827d4b
[ "MIT" ]
1
2018-06-23T06:42:44.000Z
2018-06-23T06:42:44.000Z
src/Parsers.cpp
markwinter/tmxjson
926a6effcf0f0fc2a4ff0350d0c33b843e827d4b
[ "MIT" ]
null
null
null
src/Parsers.cpp
markwinter/tmxjson
926a6effcf0f0fc2a4ff0350d0c33b843e827d4b
[ "MIT" ]
null
null
null
/* MIT License. Copyright Mark Winter */ #include <string> #include <iostream> #include "thirdparty/base64.hpp" #include "Utils.hpp" #include "Parsers.hpp" #include "TypedProperty.hpp" namespace tmxjson { void from_json(const json& object_json, Object& object) { object.SetId(object_json["id"]); if (check_json_v...
34.161074
124
0.70609
markwinter
008c68739342faedec38079069043a21980ac6c4
527
hpp
C++
src/font.hpp
ceilors/fb-tetris
5496898443e35e37e374de2e97505a6027d38c30
[ "BSD-3-Clause" ]
null
null
null
src/font.hpp
ceilors/fb-tetris
5496898443e35e37e374de2e97505a6027d38c30
[ "BSD-3-Clause" ]
null
null
null
src/font.hpp
ceilors/fb-tetris
5496898443e35e37e374de2e97505a6027d38c30
[ "BSD-3-Clause" ]
null
null
null
#ifndef __FONT_HPP__ #define __FONT_HPP__ #include <sstream> #include <cstdint> #include <ft2build.h> #include FT_FREETYPE_H #include "framebuffer.hpp" #include "structs.hpp" class Font { FT_Library library; FT_Face face; FT_GlyphSlot slot; const uint16_t font_dpi = 100; uint16_t font_size = 0; ...
19.518519
64
0.70019
ceilors
008c7403ea5ba46d564973fae113c0166ba45d05
1,103
cpp
C++
xpcc/examples/lpc2368/display/hd44780/main.cpp
jrahlf/3D-Non-Contact-Laser-Profilometer
912eb8890442f897c951594c79a8a594096bc119
[ "MIT" ]
5
2016-02-06T14:57:35.000Z
2018-01-02T23:34:18.000Z
xpcc/examples/lpc2368/display/hd44780/main.cpp
jrahlf/3D-Non-Contact-Laser-Profilometer
912eb8890442f897c951594c79a8a594096bc119
[ "MIT" ]
null
null
null
xpcc/examples/lpc2368/display/hd44780/main.cpp
jrahlf/3D-Non-Contact-Laser-Profilometer
912eb8890442f897c951594c79a8a594096bc119
[ "MIT" ]
1
2020-04-19T13:16:31.000Z
2020-04-19T13:16:31.000Z
/** * Test for LPC2368 processor on * Development board * "CP-JR ARM7 LPC2368" * from www.etteam.com * * A HD44780 compatible display should be connected to the ET-CLCD connector. * * Status as of 2012-06-10: works in hardware. * */ #include <xpcc/architecture.hpp> #include <xpcc/driver/ui/display.hpp> // ...
18.383333
77
0.651859
jrahlf
0092de019f5e7bd61c3475801f384247613a6b7a
421
cpp
C++
books/C++_Prime_Plus/Chapter6/or.cpp
liangjisheng/C-Cpp
8b33ba1f43580a7bdded8bb4ce3d92983ccedb81
[ "MIT" ]
5
2019-09-17T09:12:15.000Z
2021-05-29T10:54:39.000Z
books/C++_Prime_Plus/Chapter6/or.cpp
liangjisheng/C-Cpp
8b33ba1f43580a7bdded8bb4ce3d92983ccedb81
[ "MIT" ]
null
null
null
books/C++_Prime_Plus/Chapter6/or.cpp
liangjisheng/C-Cpp
8b33ba1f43580a7bdded8bb4ce3d92983ccedb81
[ "MIT" ]
2
2021-07-26T06:36:12.000Z
2022-01-23T15:20:30.000Z
#include"iostream" using namespace std; int main() { cout<<"This program may reformat your hard disk\n" "and destroy all your data\n" "Do you wish to continue?<y/n> "; char ch; cin>>ch; if(ch=='y'||ch=='Y') cout<<"You were warned!\a\a\a\n"; else if(ch=='n'||ch=='N') cout<<"A wise choice... bye\n"; else ...
22.157895
51
0.610451
liangjisheng
009a69572ae19d08e1621db09756870bd9d81657
2,617
cpp
C++
source/models.cpp
KJ002/Tetris
bf02931628c7b7bd78b4aa46fefca4d219786a65
[ "MIT" ]
null
null
null
source/models.cpp
KJ002/Tetris
bf02931628c7b7bd78b4aa46fefca4d219786a65
[ "MIT" ]
null
null
null
source/models.cpp
KJ002/Tetris
bf02931628c7b7bd78b4aa46fefca4d219786a65
[ "MIT" ]
null
null
null
#include "models.hpp" #include <array> #include <raylib.h> TetrisMeta::TetrisMeta(int x, int y, int shape){ shape = shape % 7; origin = (Vec2){(float)x, (float)y}; if (!shape){ map = { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, }; rota...
15.485207
51
0.477264
KJ002
009e8864b6f1ccab1f2eca3b93d2aae451b25ed1
2,863
cc
C++
chromium/content/browser/background_sync/background_sync_context_impl.cc
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
null
null
null
chromium/content/browser/background_sync/background_sync_context_impl.cc
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
null
null
null
chromium/content/browser/background_sync/background_sync_context_impl.cc
wedataintelligence/vivaldi-source
22a46f2c969f6a0b7ca239a05575d1ea2738768c
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/background_sync/background_sync_context_impl.h" #include <utility> #include "base/bind.h" #include "base/stl_util.h" #include ...
30.457447
79
0.785889
wedataintelligence
009fe56b1bf529a6710d1c8311e3e9668e6662b1
2,197
cpp
C++
samples/CoreAPI_SpriteRendering/SpriteRendering.cpp
odayibasi/swengine
ef07b7c9125d01596837a423a9f3dcbced1f5aa7
[ "Zlib", "MIT" ]
3
2021-03-01T20:41:13.000Z
2021-07-10T13:45:47.000Z
samples/CoreAPI_SpriteRendering/SpriteRendering.cpp
odayibasi/swengine
ef07b7c9125d01596837a423a9f3dcbced1f5aa7
[ "Zlib", "MIT" ]
null
null
null
samples/CoreAPI_SpriteRendering/SpriteRendering.cpp
odayibasi/swengine
ef07b7c9125d01596837a423a9f3dcbced1f5aa7
[ "Zlib", "MIT" ]
null
null
null
#include "../../include/SWEngine.h" #pragma comment (lib,"../../lib/SWUtil.lib") #pragma comment (lib,"../../lib/SWTypes.lib") #pragma comment (lib,"../../lib/SWCore.lib") #pragma comment (lib,"../../lib/SWGame.lib") #pragma comment (lib,"../../lib/SWGui.lib") #pragma comment (lib,"../../lib/SWEngine...
24.142857
93
0.699135
odayibasi
00a03f1b75847a8934df7a07051cddbc3a8427e8
7,303
hpp
C++
libraries/app/include/graphene/app/api_objects.hpp
dls-cipher/bitshares-core
feba0cf93f0e442ef5e39f58b469112033cd74d8
[ "MIT" ]
null
null
null
libraries/app/include/graphene/app/api_objects.hpp
dls-cipher/bitshares-core
feba0cf93f0e442ef5e39f58b469112033cd74d8
[ "MIT" ]
null
null
null
libraries/app/include/graphene/app/api_objects.hpp
dls-cipher/bitshares-core
feba0cf93f0e442ef5e39f58b469112033cd74d8
[ "MIT" ]
null
null
null
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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...
37.071066
126
0.606189
dls-cipher
00a13c40be88a9e7bc31cc03d6355162f9d7a23e
3,175
cpp
C++
src/base/tkernel_utils.cpp
Unionfab/mayo
881b81b2b6febe6fb88967e4eef6ef22882e1734
[ "BSD-2-Clause" ]
382
2018-02-24T23:46:02.000Z
2022-03-31T16:08:24.000Z
src/base/tkernel_utils.cpp
Unionfab/mayo
881b81b2b6febe6fb88967e4eef6ef22882e1734
[ "BSD-2-Clause" ]
102
2017-05-18T09:36:26.000Z
2022-03-24T15:24:28.000Z
src/base/tkernel_utils.cpp
Unionfab/mayo
881b81b2b6febe6fb88967e4eef6ef22882e1734
[ "BSD-2-Clause" ]
124
2017-10-22T23:40:13.000Z
2022-03-28T08:57:23.000Z
/**************************************************************************** ** Copyright (c) 2021, Fougue Ltd. <http://www.fougue.pro> ** All rights reserved. ** See license at https://github.com/fougue/mayo/blob/master/LICENSE.txt ****************************************************************************/ #includ...
28.603604
83
0.562835
Unionfab
00a2800fbe8a64fd882eba54a45718b91645985b
827
cpp
C++
Smooth_Game/Source/Component.cpp
Glitch0011/DirectX11-Demo
02b2ff51f4c936696ab25fb34da77cb4997980a9
[ "MIT" ]
null
null
null
Smooth_Game/Source/Component.cpp
Glitch0011/DirectX11-Demo
02b2ff51f4c936696ab25fb34da77cb4997980a9
[ "MIT" ]
null
null
null
Smooth_Game/Source/Component.cpp
Glitch0011/DirectX11-Demo
02b2ff51f4c936696ab25fb34da77cb4997980a9
[ "MIT" ]
null
null
null
#include <Component.h> #include <GameObject.h> using namespace std; using namespace SmoothGame; HRESULT Component::Send(MessageName name, Params param) { return this->GameObject->Send(name, param); } HRESULT Component::RecieveMessage(MessageName functionName, Params parameters) { if (this->functions.size() > 0) {...
22.972222
102
0.754534
Glitch0011
00a4b6e7228139c55153d0688a42e282e3a86328
1,641
cpp
C++
Source/CoreExtensions/Private/Math/Triangle2D.cpp
TheEmidee/UECoreExtensions
3068a8655509b7ff3d8f3e2fedf345618fdb37a2
[ "MIT" ]
2
2021-08-13T17:45:45.000Z
2021-10-06T14:42:52.000Z
Source/CoreExtensions/Private/Math/Triangle2D.cpp
TheEmidee/UE4CoreExtensions
e904c600d125d2fff737f8e54ea93145c964484d
[ "MIT" ]
1
2022-03-04T13:20:29.000Z
2022-03-04T13:20:29.000Z
Source/CoreExtensions/Private/Math/Triangle2D.cpp
TheEmidee/UECoreExtensions
3068a8655509b7ff3d8f3e2fedf345618fdb37a2
[ "MIT" ]
null
null
null
#include "Math/Triangle2D.h" FTriangle2D::FTriangle2D( const FVector2D & v1, const FVector2D & v2, const FVector2D & v3 ) : PointA( v1 ), PointB( v2 ), PointC( v3 ) {} bool FTriangle2D::ContainsVertex( const FVector2D & v ) const { return PointA.Equals( v ) || PointB.Equals( v ) || PointC.Eq...
39.071429
147
0.57465
TheEmidee
00a4f998bf537d09a9fa7d120e7b6d1ff70c23c6
2,635
hpp
C++
lib/util/bitmask.hpp
sparkml/mastermind-strategy
22763672c413c6a73e2c036a9f522b65a0025b68
[ "MIT" ]
null
null
null
lib/util/bitmask.hpp
sparkml/mastermind-strategy
22763672c413c6a73e2c036a9f522b65a0025b68
[ "MIT" ]
null
null
null
lib/util/bitmask.hpp
sparkml/mastermind-strategy
22763672c413c6a73e2c036a9f522b65a0025b68
[ "MIT" ]
null
null
null
/// @defgroup BitMask Bit-Mask of fixed size /// @ingroup util #ifndef UTILITIES_BITMASK_HPP #define UTILITIES_BITMASK_HPP #include <cassert> #include "intrinsic.hpp" namespace util { /** * Represents a bitmask of fixed size. * This class serves as a simpler and faster alternative to * <code>std::bitset<N></code...
20.585938
83
0.639848
sparkml