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
109
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
48.5k
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
02ee48b730b0657571d19095f67b4e1bed1d3f02
1,774
cpp
C++
source/ff.ui/source/stream.cpp
spadapet/ff_game_library
f1bf00f90adde66c2c2aa35b109fe61b8d2c6352
[ "MIT" ]
null
null
null
source/ff.ui/source/stream.cpp
spadapet/ff_game_library
f1bf00f90adde66c2c2aa35b109fe61b8d2c6352
[ "MIT" ]
null
null
null
source/ff.ui/source/stream.cpp
spadapet/ff_game_library
f1bf00f90adde66c2c2aa35b109fe61b8d2c6352
[ "MIT" ]
null
null
null
#include "pch.h" #include "stream.h" ff::internal::ui::stream::stream(ff::auto_resource_value&& resource) : resource_(std::move(resource)) { auto resource_file = this->resource_.valid() ? std::dynamic_pointer_cast<ff::resource_file>(this->resource_.value()->get<ff::resource_object_base>()) : nu...
21.901235
112
0.603157
spadapet
02ef14bf890e376f0d8cad173b481bcacf150d69
1,505
cpp
C++
engine/source/gfx/source/src/Animation_player.cpp
mateusgondim/Demos
6aa5da3a6c0e960d10811c9e71e9a0a746e8d6ab
[ "MIT" ]
5
2019-02-12T07:23:55.000Z
2020-06-22T15:03:36.000Z
engine/source/gfx/source/src/Animation_player.cpp
mateusgondim/Demos
6aa5da3a6c0e960d10811c9e71e9a0a746e8d6ab
[ "MIT" ]
null
null
null
engine/source/gfx/source/src/Animation_player.cpp
mateusgondim/Demos
6aa5da3a6c0e960d10811c9e71e9a0a746e8d6ab
[ "MIT" ]
2
2019-06-17T05:04:21.000Z
2020-04-22T09:05:57.000Z
#include <vector> #include <iostream> #include "Animation_player.hpp" #include "Animation.hpp" gfx::Animation_player::Animation_player(const gfx::Animation & animation) : m_animation(animation), m_playing(true), m_current_frame(-1), m_local_clock(0.0f), m_changed_frame(true) { m_seconds_per_frame = 1.0f / m_anima...
20.902778
107
0.712292
mateusgondim
02f1fa5cda8dcad8043b57289b4afbec682f789d
964
hh
C++
packages/solid/Sphere.hh
brbass/ibex
5a4cc5b4d6d46430d9667970f8a34f37177953d4
[ "MIT" ]
2
2020-04-13T20:06:41.000Z
2021-02-12T17:55:54.000Z
packages/solid/Sphere.hh
brbass/ibex
5a4cc5b4d6d46430d9667970f8a34f37177953d4
[ "MIT" ]
1
2018-10-22T21:03:35.000Z
2018-10-22T21:03:35.000Z
packages/solid/Sphere.hh
brbass/ibex
5a4cc5b4d6d46430d9667970f8a34f37177953d4
[ "MIT" ]
3
2019-04-03T02:15:37.000Z
2022-01-04T05:50:23.000Z
#ifndef Sphere_hh #define Sphere_hh #include "Surface.hh" class Sphere : public Surface { public: Sphere(int index, int dimension, Surface_Type surface_type); // Sphere methods virtual double radius() const = 0; virtual std::vector<double> const &origin() const = 0; ...
29.212121
94
0.621369
brbass
02f25d8294c5f536346ee749ae9d3e6464a84c6a
3,659
cpp
C++
dialogs/dialogfieldinformation.cpp
avttrue/fungus
c6ca9ef94317ecbe930da25606ca7331f048ef60
[ "MIT" ]
null
null
null
dialogs/dialogfieldinformation.cpp
avttrue/fungus
c6ca9ef94317ecbe930da25606ca7331f048ef60
[ "MIT" ]
2
2020-08-20T05:04:33.000Z
2020-09-22T17:10:39.000Z
dialogs/dialogfieldinformation.cpp
avttrue/fungus
c6ca9ef94317ecbe930da25606ca7331f048ef60
[ "MIT" ]
null
null
null
#include "dialogfieldinformation.h" #include "properties.h" #include "controls/infopanel.h" #include "controls/separators.h" #include "field/field.h" #include "field/fieldinformation.h" #include <QDebug> #include <QToolBar> #include <QApplication> #include <QIcon> #include <QScrollArea> #include <QVBoxLayout> #include...
43.559524
130
0.68434
avttrue
02f344ce9f29f0c714e4a49cbb59e581fd892afc
2,600
hpp
C++
src/framework/frontend/type/type.hpp
aamshukov/arcturus
4d10cd15ff2b79f23621853961a2178c0bde7d79
[ "MIT" ]
1
2020-12-10T02:33:41.000Z
2020-12-10T02:33:41.000Z
src/framework/frontend/type/type.hpp
aamshukov/arcturus
4d10cd15ff2b79f23621853961a2178c0bde7d79
[ "MIT" ]
null
null
null
src/framework/frontend/type/type.hpp
aamshukov/arcturus
4d10cd15ff2b79f23621853961a2178c0bde7d79
[ "MIT" ]
null
null
null
//.............................. // UI Lab Inc. Arthur Amshukov . //.............................. #ifndef __TYPE_H__ #define __TYPE_H__ #pragma once BEGIN_NAMESPACE(frontend) USING_NAMESPACE(core) class type : public visitable { public: using index_type = int32_t; enum class flag : uint64_t ...
26.530612
108
0.521923
aamshukov
02f7e0741d115d9cad1db6806420b4e53ff02d62
1,003
cpp
C++
problems/codeforces/1210/c-kamil-and-making-a-stream/code.cpp
brunodccarvalho/competitive
4177c439174fbe749293b9da3445ce7303bd23c2
[ "MIT" ]
7
2020-10-15T22:37:10.000Z
2022-02-26T17:23:49.000Z
problems/codeforces/1210/c-kamil-and-making-a-stream/code.cpp
brunodccarvalho/competitive
4177c439174fbe749293b9da3445ce7303bd23c2
[ "MIT" ]
null
null
null
problems/codeforces/1210/c-kamil-and-making-a-stream/code.cpp
brunodccarvalho/competitive
4177c439174fbe749293b9da3445ce7303bd23c2
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define long int64_t // ***** constexpr long mod = 1e9 + 7; long ans = 0; vector<vector<int>> adj; vector<long> beauty; void dfs(int u, int p, unordered_map<long, int> cnts) { unordered_map<long, int> new_cnts; for (auto [g, n] : cnts) { new_cnts[gcd(g,...
18.236364
55
0.464606
brunodccarvalho
02fede09ff91b1f539ae503e098b3f0db91676c5
379
cpp
C++
allMatuCommit/7_将输入单词译成密码_2021010911010_20210920145352.cpp
BachWV/matu
d4e3a89385f0a205431dd34c2c7214af40bb8ddb
[ "MIT" ]
null
null
null
allMatuCommit/7_将输入单词译成密码_2021010911010_20210920145352.cpp
BachWV/matu
d4e3a89385f0a205431dd34c2c7214af40bb8ddb
[ "MIT" ]
null
null
null
allMatuCommit/7_将输入单词译成密码_2021010911010_20210920145352.cpp
BachWV/matu
d4e3a89385f0a205431dd34c2c7214af40bb8ddb
[ "MIT" ]
null
null
null
#include<stdio.h> #include<string.h> int main() { int i; char a[21]; gets(a); for (i = 0; a[i] != 0; i++) { if ((a[i] >= 'A' && a[i] <= 'V') || (a[i] >= 'a' && a[i] <= 'v')) printf("%c", a[i] + 4); else if ((a[i] >= 'W' && a[i] <= 'Z') || (a[i] >= 'w' && a[i] <= 'z')) printf("%c", a[i]...
19.947368
74
0.356201
BachWV
02ff84352a4fce7d7782262154dc621f3bc5c3d5
1,143
cpp
C++
nTA/Source/unit_MoveInfo.cpp
loganjones/nTA-Total-Annihilation-Clone
d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14
[ "MIT" ]
2
2020-05-09T20:50:12.000Z
2021-06-20T08:34:58.000Z
nTA/Source/unit_MoveInfo.cpp
loganjones/nTA-Total-Annihilation-Clone
d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14
[ "MIT" ]
null
null
null
nTA/Source/unit_MoveInfo.cpp
loganjones/nTA-Total-Annihilation-Clone
d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14
[ "MIT" ]
2
2018-01-08T00:12:04.000Z
2020-06-14T10:56:50.000Z
// unit_MoveInfo.cpp // \author Logan Jones ////////////////////// \date 4/16/2002 /// \file /// \brief ... ///////////////////////////////////////////////////////////////////// #include "unit.h" #include "unit_MoveInfo.h" // Include inline implementa...
30.891892
71
0.328084
loganjones
f30011dd875bf4a9842d428b290747e077cd5b82
181
hpp
C++
src/agl/engine/camera/world_to_eye.hpp
the-last-willy/abstractgl
d685bef25ac18773d3eea48ca52806c3a3485ddb
[ "MIT" ]
null
null
null
src/agl/engine/camera/world_to_eye.hpp
the-last-willy/abstractgl
d685bef25ac18773d3eea48ca52806c3a3485ddb
[ "MIT" ]
null
null
null
src/agl/engine/camera/world_to_eye.hpp
the-last-willy/abstractgl
d685bef25ac18773d3eea48ca52806c3a3485ddb
[ "MIT" ]
null
null
null
#pragma once #include "camera.hpp" #include "eye_to_world.hpp" namespace agl::engine { inline auto world_to_eye(const eng::Camera& c) { return inverse(eye_to_world(c)); } }
12.928571
41
0.712707
the-last-willy
f300d206a6f749a2e2374f08ee78187daa983deb
35,523
cpp
C++
src/WEDProperties/WED_PropertyTable.cpp
maboehme/xptools
24bc6023f45d3ba73a282e97dc6e04a2e5fbd898
[ "X11", "MIT" ]
null
null
null
src/WEDProperties/WED_PropertyTable.cpp
maboehme/xptools
24bc6023f45d3ba73a282e97dc6e04a2e5fbd898
[ "X11", "MIT" ]
null
null
null
src/WEDProperties/WED_PropertyTable.cpp
maboehme/xptools
24bc6023f45d3ba73a282e97dc6e04a2e5fbd898
[ "X11", "MIT" ]
null
null
null
/* * Copyright (c) 2007, Laminar Research. * * 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, ...
28.282643
208
0.677364
maboehme
f30c8484815dbe32536af7eda17e7e10f4d4ae26
295
hpp
C++
OCR/ANN/PreprocessorANN.hpp
liuouya/basicOCR
99940949db010839ca42c4e5dad07dd9cf611e64
[ "MIT" ]
null
null
null
OCR/ANN/PreprocessorANN.hpp
liuouya/basicOCR
99940949db010839ca42c4e5dad07dd9cf611e64
[ "MIT" ]
null
null
null
OCR/ANN/PreprocessorANN.hpp
liuouya/basicOCR
99940949db010839ca42c4e5dad07dd9cf611e64
[ "MIT" ]
null
null
null
#pragma once #include <opencv2/core.hpp> #include "../IPreprocessor.hpp" class PreprocessorANN : public IPreprocessor { public: virtual ~PreprocessorANN() {} virtual cv::Mat apply(cv::Mat* image, bool target = false); virtual std::vector<cv::Mat> segmentation(cv::Mat* image); };
18.4375
62
0.698305
liuouya
f30e8c71d68ef695059d706b7cd74b9160789285
3,405
cc
C++
hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tools/hdfs-allow-snapshot/hdfs-allow-snapshot.cc
luoyuan3471/hadoop
20b78c8f978dc74f03a0dd5551904f8ec40ccf82
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
14,425
2015-01-01T15:34:43.000Z
2022-03-31T15:28:37.000Z
hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tools/hdfs-allow-snapshot/hdfs-allow-snapshot.cc
bharatviswa504/hadoop-1
3bf014d8717603828ef2dd166d9ec014b7d9b2c9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3,805
2015-03-20T15:58:53.000Z
2022-03-31T23:58:37.000Z
hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tools/hdfs-allow-snapshot/hdfs-allow-snapshot.cc
bharatviswa504/hadoop-1
3bf014d8717603828ef2dd166d9ec014b7d9b2c9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
9,521
2015-01-01T19:12:52.000Z
2022-03-31T03: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 you under the Apache License, Version 2.0 (the "License"); you may no...
29.608696
78
0.659031
luoyuan3471
f30f51755007b57339865aed77869ac55dab2cd2
618
cpp
C++
state.cpp
MatthewSmithPhysics/Ising-Model
af5e150603aa0cdae4fd73cdfe36975651ec528d
[ "MIT" ]
null
null
null
state.cpp
MatthewSmithPhysics/Ising-Model
af5e150603aa0cdae4fd73cdfe36975651ec528d
[ "MIT" ]
null
null
null
state.cpp
MatthewSmithPhysics/Ising-Model
af5e150603aa0cdae4fd73cdfe36975651ec528d
[ "MIT" ]
null
null
null
#include"state.h" using namespace std; State::State() { this->scramble(); } State::State(int d, int n) { this->d = d; this->n = n; this->scramble(); } State::State(int d, int n, double J) { this->d = d; this->n = n; this->J = J; this->scramble(); } State State::copy() { State Y =...
14.372093
69
0.490291
MatthewSmithPhysics
f310d16cfc96110602cbb8ad8eb738b37b3e1549
24,606
cpp
C++
test/pt-client-2/test_pt_client.cpp
costanic/mbed-edge
4900e950ff67f8974b7aeef955289ef56606c964
[ "Apache-2.0" ]
24
2018-03-27T16:44:18.000Z
2020-04-28T15:28:34.000Z
test/pt-client-2/test_pt_client.cpp
costanic/mbed-edge
4900e950ff67f8974b7aeef955289ef56606c964
[ "Apache-2.0" ]
19
2021-01-28T20:14:45.000Z
2021-11-23T13:08:59.000Z
test/pt-client-2/test_pt_client.cpp
costanic/mbed-edge
4900e950ff67f8974b7aeef955289ef56606c964
[ "Apache-2.0" ]
28
2018-04-02T02:36:48.000Z
2020-10-13T05:37:16.000Z
#include <stdint.h> #include "CppUTest/TestHarness.h" #include "CppUTestExt/MockSupport.h" #include "test-lib/msg_api_mocks.h" #include "test-lib/mutex_helper.h" extern "C" { #include "common/edge_mutex.h" #include "test-lib/evbase_mock.h" #include "libwebsocket-mock/lws_mock.h" #include "pt-client-2/pt_api_internal....
33.432065
114
0.736731
costanic
f3129105bbf6009f766bca0bc87eda7dbeaf7254
3,060
cpp
C++
modules/core/gallery/unit/gallery/magic.cpp
psiha/nt2
5e829807f6b57b339ca1be918a6b60a2507c54d0
[ "BSL-1.0" ]
34
2017-05-19T18:10:17.000Z
2022-01-04T02:18:13.000Z
modules/core/gallery/unit/gallery/magic.cpp
psiha/nt2
5e829807f6b57b339ca1be918a6b60a2507c54d0
[ "BSL-1.0" ]
null
null
null
modules/core/gallery/unit/gallery/magic.cpp
psiha/nt2
5e829807f6b57b339ca1be918a6b60a2507c54d0
[ "BSL-1.0" ]
7
2017-12-02T12:59:17.000Z
2021-07-31T12:46:14.000Z
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
38.25
84
0.448693
psiha
f31525d3f14956f46ae95478176b673f0912151f
18,220
cpp
C++
src/gle/color.cpp
vlabella/GLE
ff6b424fda75d674c6a9f270ccdade3ab149e24f
[ "BSD-3-Clause" ]
3
2022-03-03T06:48:33.000Z
2022-03-13T21:18:11.000Z
src/gle/color.cpp
vlabella/GLE
ff6b424fda75d674c6a9f270ccdade3ab149e24f
[ "BSD-3-Clause" ]
1
2022-03-14T13:01:29.000Z
2022-03-14T13:13:23.000Z
src/gle/color.cpp
vlabella/GLE
ff6b424fda75d674c6a9f270ccdade3ab149e24f
[ "BSD-3-Clause" ]
1
2021-12-21T23:14:06.000Z
2021-12-21T23:14:06.000Z
/************************************************************************ * * * GLE - Graphics Layout Engine <http://www.gle-graphics.org/> * * * * Modified BSD License ...
40.669643
92
0.727607
vlabella
f3180be9e3e08ecbc66586b42743f74714df8bda
1,839
cpp
C++
VectorOfPtr/VectorOfPtr.cpp
jbcoe/CppSandbox
574dc31bbd3640a8cf1b7642c4a449bee687cce5
[ "MIT" ]
7
2015-01-18T13:30:09.000Z
2021-08-21T19:50:26.000Z
VectorOfPtr/VectorOfPtr.cpp
jbcoe/CppSandbox
574dc31bbd3640a8cf1b7642c4a449bee687cce5
[ "MIT" ]
1
2016-03-13T21:26:37.000Z
2016-03-13T21:26:37.000Z
VectorOfPtr/VectorOfPtr.cpp
jbcoe/CppSandbox
574dc31bbd3640a8cf1b7642c4a449bee687cce5
[ "MIT" ]
1
2016-02-16T04:56:25.000Z
2016-02-16T04:56:25.000Z
#include <iostream> #include <algorithm> #include <memory> #include <iterator> #include <boost/date_time/posix_time/posix_time.hpp> #include <boost/lexical_cast.hpp> #include <Common/Timer.h> class MySimpleClass { public: double m_x = 0.0; double m_y = 0.0; std::string m_name; }; int main(int argc, char* argv[]...
23.576923
72
0.49429
jbcoe
f31c7aea2800bb394da04b1a45f74cbf78ac91e3
2,089
cpp
C++
test/function/scalar/ilog2.cpp
TobiasLudwig/boost.simd
c04d0cc56747188ddb9a128ccb5715dd3608dbc1
[ "BSL-1.0" ]
6
2018-02-25T22:23:33.000Z
2021-01-15T15:13:12.000Z
test/function/scalar/ilog2.cpp
remymuller/boost.simd
3caefb7ee707e5f68dae94f8f31f72f34b7bb5de
[ "BSL-1.0" ]
null
null
null
test/function/scalar/ilog2.cpp
remymuller/boost.simd
3caefb7ee707e5f68dae94f8f31f72f34b7bb5de
[ "BSL-1.0" ]
7
2017-12-12T12:36:31.000Z
2020-02-10T14:27:07.000Z
//================================================================================================== /*! Copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //====================================...
29.013889
100
0.611297
TobiasLudwig
f32133642073fd1278db485b674e43248210c4a0
4,610
cc
C++
src/Model.cc
AnotherHermit/VoxelConeTracing
3c10cd07584fcec805c154abc08cf07838933a66
[ "Beerware" ]
16
2016-08-09T15:25:27.000Z
2021-06-11T21:48:31.000Z
src/Model.cc
AnotherHermit/VoxelConeTracing
3c10cd07584fcec805c154abc08cf07838933a66
[ "Beerware" ]
null
null
null
src/Model.cc
AnotherHermit/VoxelConeTracing
3c10cd07584fcec805c154abc08cf07838933a66
[ "Beerware" ]
3
2021-03-22T09:48:29.000Z
2021-07-04T11:14:13.000Z
/////////////////////////////////////// // // Computer Graphics TSBK03 // Conrad Wahlén - conwa099 // /////////////////////////////////////// #include "Model.h" #include "GL_utilities.h" #include <iostream> Model::Model() { subDrawID = 0; subVoxelizeID = 0; diffuseID = 0; maskID = 0; diffColor = glm::vec3(1.0...
27.771084
95
0.756833
AnotherHermit
f322fde77daf78dd7e91117d9027a40ae4552f4b
793
hpp
C++
contracts/system/test/include/ramconsumption.hpp
EOSPowerNetwork/system-epn
dfa836101f6b148916b08b3c2988b591ed92ce9e
[ "MIT" ]
null
null
null
contracts/system/test/include/ramconsumption.hpp
EOSPowerNetwork/system-epn
dfa836101f6b148916b08b3c2988b591ed92ce9e
[ "MIT" ]
null
null
null
contracts/system/test/include/ramconsumption.hpp
EOSPowerNetwork/system-epn
dfa836101f6b148916b08b3c2988b591ed92ce9e
[ "MIT" ]
null
null
null
#pragma once #include <eosio/eosio.hpp> namespace system_epn { namespace ramConsumption_bytes { namespace firstEmplace { constexpr int64_t DraftDonation = 237; constexpr int64_t SignDonation = 900; } // namespace firstEmplace namespace subsequentEmplace { ...
33.041667
56
0.598991
EOSPowerNetwork
f323c56e9a241ca5fd268d7d67c4ef6af7a9899a
23,625
cpp
C++
windows_desktop/e_transactions_w.cpp
MrCryptoT/mwc-qt-wallet
7de81b73f4259ef203f8031c31cc25811e70e338
[ "Apache-2.0" ]
1
2021-05-06T22:54:13.000Z
2021-05-06T22:54:13.000Z
windows_desktop/e_transactions_w.cpp
MrCryptoT/mwc-qt-wallet
7de81b73f4259ef203f8031c31cc25811e70e338
[ "Apache-2.0" ]
null
null
null
windows_desktop/e_transactions_w.cpp
MrCryptoT/mwc-qt-wallet
7de81b73f4259ef203f8031c31cc25811e70e338
[ "Apache-2.0" ]
1
2021-12-09T06:15:16.000Z
2021-12-09T06:15:16.000Z
// Copyright 2019 The MWC Developers // // 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...
38.539967
169
0.600085
MrCryptoT
f3289870f2eefd025f37b488bec90568e604a650
39,828
cpp
C++
Source/General/Driver/Filter/BPTC/Core/BC7CompressorSIMD.cpp
paintdream/paintsnow
3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781
[ "MIT" ]
null
null
null
Source/General/Driver/Filter/BPTC/Core/BC7CompressorSIMD.cpp
paintdream/paintsnow
3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781
[ "MIT" ]
null
null
null
Source/General/Driver/Filter/BPTC/Core/BC7CompressorSIMD.cpp
paintdream/paintsnow
3a1cbc9e571eaa2e62a3a2d60f75817b45f0c781
[ "MIT" ]
null
null
null
//-------------------------------------------------------------------------------------- // Copyright 2011 Intel Corporation // All Rights Reserved // // Permission is granted to use, copy, distribute and prepare derivative works of this // software for any purpose and without fee, provided, that the above copyright no...
31.939054
255
0.657
paintdream
f3289a364207d1bc7600864e1de90fd816ea0a59
1,775
hpp
C++
serial_communication/include/serial_communication/serial_windows.hpp
Terabee/hardware_drivers
09eb0404cff615ccba7cbb2866c4b65fe8d6a517
[ "MIT" ]
1
2020-06-22T21:44:32.000Z
2020-06-22T21:44:32.000Z
serial_communication/include/serial_communication/serial_windows.hpp
Terabee/hardware_drivers
09eb0404cff615ccba7cbb2866c4b65fe8d6a517
[ "MIT" ]
null
null
null
serial_communication/include/serial_communication/serial_windows.hpp
Terabee/hardware_drivers
09eb0404cff615ccba7cbb2866c4b65fe8d6a517
[ "MIT" ]
2
2020-06-24T07:07:50.000Z
2021-03-30T15:37:40.000Z
#ifndef SERIAL_WINDOWS_H #define SERIAL_WINDOWS_H #include "serial_communication/iserial.hpp" #include <windows.h> namespace terabee { namespace serial_communication { class SerialWindows : public ISerial { public: SerialWindows() = delete; /** * Constructs Serial from given port, e.g. /dev/tt...
27.307692
67
0.703099
Terabee
f3314bdc07fc13583b425d4d663513c73a2d7497
1,543
cpp
C++
tests_cpp14/benchmark/benchmark.cpp
p-groarke/fea_libs
b7ddec06be807efb0eba51cf52bedf1cd800ef52
[ "BSD-3-Clause" ]
4
2021-01-23T03:35:33.000Z
2022-03-19T03:04:28.000Z
tests_cpp14/benchmark/benchmark.cpp
p-groarke/fea_libs
b7ddec06be807efb0eba51cf52bedf1cd800ef52
[ "BSD-3-Clause" ]
null
null
null
tests_cpp14/benchmark/benchmark.cpp
p-groarke/fea_libs
b7ddec06be807efb0eba51cf52bedf1cd800ef52
[ "BSD-3-Clause" ]
null
null
null
#include <chrono> #include <cstdio> #include <fea/benchmark/benchmark.hpp> #include <gtest/gtest.h> #include <thread> using namespace std::chrono_literals; namespace { TEST(fea_benchmark, basics) { // TODO : This tests nothing, rewrite. fea::bench::suite suite; suite.title("suite test"); suite.benchmark("test1...
26.152542
77
0.631238
p-groarke
f334aebe60b0ab8eaba6ef7d14e7c33e99e17f83
1,263
cpp
C++
example.cpp
wzhao18/easy-just-in-time
4f28cb18a8d7783fe9fd55d6b5a37a546e426125
[ "BSD-3-Clause" ]
null
null
null
example.cpp
wzhao18/easy-just-in-time
4f28cb18a8d7783fe9fd55d6b5a37a546e426125
[ "BSD-3-Clause" ]
null
null
null
example.cpp
wzhao18/easy-just-in-time
4f28cb18a8d7783fe9fd55d6b5a37a546e426125
[ "BSD-3-Clause" ]
1
2021-06-29T19:15:31.000Z
2021-06-29T19:15:31.000Z
// RUN: %clangxx %cxxflags %include_flags %ld_flags %s -Xclang -load -Xclang %lib_pass -o %t // RUN: %t > %t.out // RUN: %FileCheck %s < %t.out #include <easy/jit.h> #include <llvm/Transforms/Utils/Cloning.h> #include <functional> #include <cstdio> using namespace std::placeholders; double add (double a, double b) ...
26.3125
92
0.683294
wzhao18
f3356db94db7c66fc5d0f42d454550da332ce7e8
697
cpp
C++
concurrency/ex2_1.cpp
hahnjiang/cpp-practices
c8ea5e5e82b9c42c9c99b92b60bb0efaea879e12
[ "MIT" ]
null
null
null
concurrency/ex2_1.cpp
hahnjiang/cpp-practices
c8ea5e5e82b9c42c9c99b92b60bb0efaea879e12
[ "MIT" ]
null
null
null
concurrency/ex2_1.cpp
hahnjiang/cpp-practices
c8ea5e5e82b9c42c9c99b92b60bb0efaea879e12
[ "MIT" ]
null
null
null
#include <algorithm> #include <functional> #include <iostream> #include <thread> #include <vector> using namespace std; class WorkerThread { public: void operator()() { cout << "Worker Thread " << this_thread::get_id() << "is Executing" << endl; } }; int main(void) { vector<thread> t...
23.233333
75
0.615495
hahnjiang
f335b95156763a5021a572e39d7672b0d35cedfd
2,271
cc
C++
src/xpdf/goo/FixedPoint.cc
hackbinary/pdfedit
5efb58265d0b86c2786d7b218aa0d6f895b926d3
[ "CECILL-B" ]
63
2016-01-08T14:48:19.000Z
2022-03-23T11:21:28.000Z
src/xpdf/goo/FixedPoint.cc
mmoselhy/PDF-X
b72597bbb0c6c86d99e44cf18f7b46d5175a7bfa
[ "CECILL-B" ]
2
2017-05-12T02:57:20.000Z
2020-08-15T13:16:00.000Z
src/xpdf/goo/FixedPoint.cc
mmoselhy/PDF-X
b72597bbb0c6c86d99e44cf18f7b46d5175a7bfa
[ "CECILL-B" ]
27
2015-01-21T01:33:56.000Z
2022-03-22T19:42:45.000Z
//======================================================================== // // FixedPoint.cc // // Fixed point type, with C++ operators. // // Copyright 2004 Glyph & Cog, LLC // //======================================================================== #include <xpdf-aconf.h> #if USE_FIXEDPOINT #ifdef USE_GCC_PRAG...
19.084034
76
0.459269
hackbinary
f3371ebd667ad084db50fb42547ca725350cac23
6,731
hpp
C++
src/server/UserCommandProcessor.hpp
nopdotcom/opentxs
140428ba8f1bd4c09654ebf0a1c1725f396efa8b
[ "MIT" ]
null
null
null
src/server/UserCommandProcessor.hpp
nopdotcom/opentxs
140428ba8f1bd4c09654ebf0a1c1725f396efa8b
[ "MIT" ]
null
null
null
src/server/UserCommandProcessor.hpp
nopdotcom/opentxs
140428ba8f1bd4c09654ebf0a1c1725f396efa8b
[ "MIT" ]
null
null
null
// Copyright (c) 2018 The Open-Transactions developers // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #pragma once #include "Internal.hpp" #include "opentxs/Types...
38.462857
80
0.710741
nopdotcom
f33777ff123a37ff9c34b4f3edf49fe5bc5fc534
1,635
cpp
C++
control/MwcLabel.cpp
velezladonna/mwc-qt-wallet
bd241b91d28350e17e52a10208e663fcb992d7cc
[ "Apache-2.0" ]
1
2020-03-19T10:02:16.000Z
2020-03-19T10:02:16.000Z
control/MwcLabel.cpp
velezladonna/mwc-qt-wallet
bd241b91d28350e17e52a10208e663fcb992d7cc
[ "Apache-2.0" ]
null
null
null
control/MwcLabel.cpp
velezladonna/mwc-qt-wallet
bd241b91d28350e17e52a10208e663fcb992d7cc
[ "Apache-2.0" ]
null
null
null
// Copyright 2019 The MWC Developers // // 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...
25.546875
89
0.727217
velezladonna
f3378089971b220c12c735ba6f52957dde086632
1,545
cpp
C++
shared_model/backend/protobuf/query_responses/impl/proto_account_asset_response.cpp
akshatkarani/iroha
5acef9dd74720c6185360d951e9b11be4ef73260
[ "Apache-2.0" ]
1,467
2016-10-25T12:27:19.000Z
2022-03-28T04:32:05.000Z
shared_model/backend/protobuf/query_responses/impl/proto_account_asset_response.cpp
akshatkarani/iroha
5acef9dd74720c6185360d951e9b11be4ef73260
[ "Apache-2.0" ]
2,366
2016-10-25T10:07:57.000Z
2022-03-31T22:03:24.000Z
shared_model/backend/protobuf/query_responses/impl/proto_account_asset_response.cpp
akshatkarani/iroha
5acef9dd74720c6185360d951e9b11be4ef73260
[ "Apache-2.0" ]
662
2016-10-26T04:41:22.000Z
2022-03-31T04:15:02.000Z
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "backend/protobuf/query_responses/proto_account_asset_response.hpp" namespace shared_model { namespace proto { AccountAssetResponse::AccountAssetResponse( iroha::protocol::QueryResponse &query_...
35.113636
76
0.640777
akshatkarani
f339ddb5db89a64b0a37ea73ea78c32c0887d4e9
2,423
cpp
C++
src/nnfusion/core/operators/generic_op/generic_op_define/Convert.cpp
lynex/nnfusion
6332697c71b6614ca6f04c0dac8614636882630d
[ "MIT" ]
null
null
null
src/nnfusion/core/operators/generic_op/generic_op_define/Convert.cpp
lynex/nnfusion
6332697c71b6614ca6f04c0dac8614636882630d
[ "MIT" ]
null
null
null
src/nnfusion/core/operators/generic_op/generic_op_define/Convert.cpp
lynex/nnfusion
6332697c71b6614ca6f04c0dac8614636882630d
[ "MIT" ]
null
null
null
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "nnfusion/common/type/element_type.hpp" #include "nnfusion/core/operators/generic_op/generic_op.hpp" REGISTER_OP(Convert) .infershape(nnfusion::op::infershape::unimplemented_and_not_used) .translate([](std::shared_ptr<graph::G...
52.673913
149
0.616178
lynex
f33b5eca580d7501cb35b8a0a215e6fdfc904b42
3,920
cpp
C++
week10/BattleShip/BBoardTest.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
1
2019-01-06T22:36:01.000Z
2019-01-06T22:36:01.000Z
week10/BattleShip/BBoardTest.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
week10/BattleShip/BBoardTest.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
#include <iostream> #include "BBoard.hpp" #include <gtest/gtest.h> namespace { class BBoardTest : public ::testing::Test { protected: Ship destroyer1; Ship destroyer2; Ship carrier1; Ship carrier2; Ship battleship1; Ship battleship2; BBoard board; ...
31.612903
72
0.577551
WeiChienHsu
f33bd8f2e7870fcafeb5e6ff5ac265d47af15f2b
21,172
cpp
C++
owl/Context.cpp
jeffamstutz/owl
fff3b9b29a01f39292f62c173f9bd8452b2fcef1
[ "Apache-2.0" ]
null
null
null
owl/Context.cpp
jeffamstutz/owl
fff3b9b29a01f39292f62c173f9bd8452b2fcef1
[ "Apache-2.0" ]
null
null
null
owl/Context.cpp
jeffamstutz/owl
fff3b9b29a01f39292f62c173f9bd8452b2fcef1
[ "Apache-2.0" ]
null
null
null
// ======================================================================== // // Copyright 2019-2021 Ingo Wald // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
34.093398
95
0.584026
jeffamstutz
f33c035eff045f8263df44781692910ca022c268
2,095
cpp
C++
src/util/helpers.cpp
darksworm/imgsel-x11
5271301932de3af9fd3e2312e89e8e145db86949
[ "MIT" ]
null
null
null
src/util/helpers.cpp
darksworm/imgsel-x11
5271301932de3af9fd3e2312e89e8e145db86949
[ "MIT" ]
null
null
null
src/util/helpers.cpp
darksworm/imgsel-x11
5271301932de3af9fd3e2312e89e8e145db86949
[ "MIT" ]
null
null
null
#include "helpers.h" #include <unistd.h> #include <pwd.h> #include <iostream> void drawText(WindowManager *windowManager, const std::string &text, Dimensions position) { XClearArea( windowManager->getDisplay(), windowManager->getWindow(), position.x - 10, position.y ...
26.858974
99
0.596659
darksworm
f33f888a0be3caa0fcc9651244a677fa1edfe367
424,079
cpp
C++
Acceleration/memcached/hls/memcachedPipeline_prj/solution1/syn/systemc/response_r.cpp
pratik0509/HLSx_Xilinx_edit
14bdbcdb3107aa225e46a0bfe7d4a2a426e9e1ca
[ "BSD-3-Clause" ]
null
null
null
Acceleration/memcached/hls/memcachedPipeline_prj/solution1/syn/systemc/response_r.cpp
pratik0509/HLSx_Xilinx_edit
14bdbcdb3107aa225e46a0bfe7d4a2a426e9e1ca
[ "BSD-3-Clause" ]
null
null
null
Acceleration/memcached/hls/memcachedPipeline_prj/solution1/syn/systemc/response_r.cpp
pratik0509/HLSx_Xilinx_edit
14bdbcdb3107aa225e46a0bfe7d4a2a426e9e1ca
[ "BSD-3-Clause" ]
1
2018-11-13T17:59:49.000Z
2018-11-13T17:59:49.000Z
// ============================================================== // RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC // Version: 2018.2 // Copyright (C) 1986-2018 Xilinx, Inc. All Rights Reserved. // // =========================================================== #include "response_r.h" ...
64.665904
642
0.737896
pratik0509
f3417e0ea4b44777de3be19447a4e6429f311131
740
cpp
C++
Game/Client/WXClient/Network/PacketHandler/GCBankItemInfoHandler.cpp
hackerlank/SourceCode
b702c9e0a9ca5d86933f3c827abb02a18ffc9a59
[ "MIT" ]
4
2021-07-31T13:56:01.000Z
2021-11-13T02:55:10.000Z
Game/Client/WXClient/Network/PacketHandler/GCBankItemInfoHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
null
null
null
Game/Client/WXClient/Network/PacketHandler/GCBankItemInfoHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
7
2021-08-31T14:34:23.000Z
2022-01-19T08:25:58.000Z
#include "StdAfx.h" #include "GCBankItemInfo.h" #include "..\..\Procedure\GameProcedure.h" #include "..\..\Object\ObjectManager.h" #include "..\..\DataPool\GMDataPool.h" #include "..\..\Action\GMActionSystem.h" #include "..\..\Event\GMEventSystem.h" uint GCBankItemInfoHandler::Execute( GCBankItemInfo* pPacket, Player...
27.407407
113
0.745946
hackerlank
f34540411e0e84a4c18bafeaf17c1ad829af9d03
2,863
cpp
C++
samples/RTSample.cpp
keima97/ouzel
e6673e678b4739235371a15ae3863942b692c5fb
[ "BSD-2-Clause" ]
null
null
null
samples/RTSample.cpp
keima97/ouzel
e6673e678b4739235371a15ae3863942b692c5fb
[ "BSD-2-Clause" ]
null
null
null
samples/RTSample.cpp
keima97/ouzel
e6673e678b4739235371a15ae3863942b692c5fb
[ "BSD-2-Clause" ]
null
null
null
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include "RTSample.h" #include "MainMenu.h" using namespace std; using namespace ouzel; RTSample::RTSample(Samples& aSamples): samples(aSamples), characterSprite("run.json"), backButton("button.png", "button_selected.png", "...
32.168539
176
0.683199
keima97
f345777e8ee9aead06e70a2d9550ce192df34f38
2,430
cpp
C++
Underlight/cSending.cpp
christyganger/ULClient
bc008ab3042ff9b74d47cdda47ce2318311a51db
[ "BSD-3-Clause" ]
5
2018-08-17T17:17:01.000Z
2020-11-14T05:41:31.000Z
Underlight/cSending.cpp
christyganger/ULClient
bc008ab3042ff9b74d47cdda47ce2318311a51db
[ "BSD-3-Clause" ]
16
2018-08-16T15:37:04.000Z
2019-12-24T19:09:19.000Z
Underlight/cSending.cpp
christyganger/ULClient
bc008ab3042ff9b74d47cdda47ce2318311a51db
[ "BSD-3-Clause" ]
5
2018-08-16T15:34:41.000Z
2019-03-04T04:06:11.000Z
// cSending: The local monster (sending) class. // Copyright Lyra LLC, 1996. All rights reserved. #define STRICT #include "Central.h" #include "4dx.h" #include "cDSound.h" #include "cChat.h" #include "cPlayer.h" #include "cItem.h" #include "Realm.h" #include "cLevel.h" #include "Move.h" #include "cMissile.h" #includ...
17.357143
144
0.663786
christyganger
f349236102d5ec3d2e055f245cdf9cf85385ef63
582
cpp
C++
strcharcount.cpp
Re-taro/report-code
e8ff7543a251c33c8a58f6a8818af9c2cbb8f659
[ "MIT" ]
null
null
null
strcharcount.cpp
Re-taro/report-code
e8ff7543a251c33c8a58f6a8818af9c2cbb8f659
[ "MIT" ]
null
null
null
strcharcount.cpp
Re-taro/report-code
e8ff7543a251c33c8a58f6a8818af9c2cbb8f659
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; unsigned strcharcount(char *str, char c); int main() { char str[20]="ABCDBEFGGGIJB"; cout << strcharcount(str, 'A') << endl; // 1 cout << strcharcount(str, 'B') << endl; // 3 cout << strcharcount(str+4, 'B') << endl; // 2 cout << strcharcount(str, 'G') << e...
21.555556
50
0.496564
Re-taro
f34b8b07c1fdb8e4ea310455e83d97d38631b3c0
752
cpp
C++
Source/RPG/Game/RPGEngineEditor.cpp
Aboutdept/RPGFramework
34c5c578e0ca1e455637082587291f6eac1bf35d
[ "BSD-2-Clause" ]
64
2015-01-04T01:47:31.000Z
2022-03-18T10:12:18.000Z
Source/RPG/Game/RPGEngineEditor.cpp
iniside/RPGFramework
72c83cd9a814ac18b19cfaa7fadbee88417f64e3
[ "BSD-2-Clause" ]
null
null
null
Source/RPG/Game/RPGEngineEditor.cpp
iniside/RPGFramework
72c83cd9a814ac18b19cfaa7fadbee88417f64e3
[ "BSD-2-Clause" ]
39
2015-01-20T02:37:56.000Z
2021-11-27T11:11:13.000Z
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved. #include "RPG.h" #include "GameplayTagsModule.h" #include "GameplayTags.h" #include "RPGEngineEditor.h" URPGEngineEditor::URPGEngineEditor(const class FPostConstructInitializeProperties& PCIP) : Super(PCIP) { } //bool URPGEngineEditor::Exec(UWorld* InWo...
28.923077
96
0.773936
Aboutdept
f35315950015aa1a85cc07f9049094923c5fca9b
3,857
cpp
C++
directfire_github/trunk/gameui/battle.net/gamepagetitle.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
1
2015-08-12T04:05:33.000Z
2015-08-12T04:05:33.000Z
directfire_github/trunk/gameui/battle.net/gamepagetitle.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
null
null
null
directfire_github/trunk/gameui/battle.net/gamepagetitle.cpp
zhwsh00/DirectFire-android
10c757e1be0b25dee951f9ba3a0e1f6d5c04a938
[ "MIT" ]
null
null
null
#include "gamepagetitle.h" GamePageTitle::GamePageTitle() { m_refreshListener = 0; m_refreshFunc = 0; m_nameSortListener = 0; m_nameSortFunc = 0; m_numSortListener = 0; m_numSortFunc = 0; m_dfListener = 0; m_dfFunc = 0; m_towerListener = 0; m_towerFunc = 0; m_theme = "defaul...
31.357724
131
0.705989
zhwsh00
f3536343f7075fe5a9ac4fcd8747d2a3779c1d7d
237
cpp
C++
solved/i-k/joana-and-the-odd-numbers/joana.cpp
abuasifkhan/pc-code
77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90
[ "Unlicense" ]
13
2015-09-30T19:18:04.000Z
2021-06-26T21:11:30.000Z
solved/i-k/joana-and-the-odd-numbers/joana.cpp
sbmaruf/pc-code
77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90
[ "Unlicense" ]
null
null
null
solved/i-k/joana-and-the-odd-numbers/joana.cpp
sbmaruf/pc-code
77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90
[ "Unlicense" ]
13
2015-01-04T09:49:54.000Z
2021-06-03T13:18:44.000Z
#include <cstdio> typedef long long i64; i64 n; int main() { while (true) { if (scanf("%lld", &n) != 1) break; i64 l = n + (n - 1) * ((n - 1) / 2 + 1); printf("%lld\n", 3*l - 6); } return 0; }
11.285714
48
0.417722
abuasifkhan
f3557354993496a15b49d64f98e91c0b5f7fb343
1,101
hpp
C++
include/parse/node_expr_field.hpp
BastianBlokland/novus
3b984c36855aa84d6746c14ff7e294ab7d9c1575
[ "MIT" ]
14
2020-04-14T17:00:56.000Z
2021-08-30T08:29:26.000Z
include/parse/node_expr_field.hpp
BastianBlokland/novus
3b984c36855aa84d6746c14ff7e294ab7d9c1575
[ "MIT" ]
27
2020-12-27T16:00:44.000Z
2021-08-01T13:12:14.000Z
include/parse/node_expr_field.hpp
BastianBlokland/novus
3b984c36855aa84d6746c14ff7e294ab7d9c1575
[ "MIT" ]
1
2020-05-29T18:33:37.000Z
2020-05-29T18:33:37.000Z
#pragma once #include "lex/token.hpp" #include "parse/node.hpp" namespace parse { // Field access expression. // Example in source: 'u.name'. class FieldExprNode final : public Node { friend auto fieldExprNode(NodePtr lhs, lex::Token dot, lex::Token id) -> NodePtr; public: FieldExprNode() = delete; auto opera...
27.525
83
0.702089
BastianBlokland
f355aacd268c9c69756049031a4bd21db012cf90
38,444
cc
C++
ggadget/gtk/view_widget_binder.cc
suzhe/google-gadgets-for-linux
b58baabd8458c8515c9902b8176151a08d240983
[ "Apache-2.0" ]
175
2015-01-01T12:40:33.000Z
2019-05-24T22:33:59.000Z
ggadget/gtk/view_widget_binder.cc
suzhe/google-gadgets-for-linux
b58baabd8458c8515c9902b8176151a08d240983
[ "Apache-2.0" ]
11
2015-01-19T16:30:56.000Z
2018-04-25T01:06:52.000Z
ggadget/gtk/view_widget_binder.cc
suzhe/google-gadgets-for-linux
b58baabd8458c8515c9902b8176151a08d240983
[ "Apache-2.0" ]
97
2015-01-19T15:35:29.000Z
2019-05-15T05:48:02.000Z
/* Copyright 2008 Google 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 to in writing,...
34.29438
81
0.638487
suzhe
f3585d17b16b4fa691d45b18daa513dc336ff2a9
759
cpp
C++
libs/gzstream/gzutil.cpp
hoehleatsu/besiq
94959e2819251805e19311ce377919e6bccb7bf9
[ "BSD-3-Clause" ]
1
2015-10-21T14:22:12.000Z
2015-10-21T14:22:12.000Z
libs/gzstream/gzutil.cpp
hoehleatsu/besiq
94959e2819251805e19311ce377919e6bccb7bf9
[ "BSD-3-Clause" ]
2
2019-05-26T20:52:31.000Z
2019-05-28T16:19:49.000Z
libs/gzstream/gzutil.cpp
hoehleatsu/besiq
94959e2819251805e19311ce377919e6bccb7bf9
[ "BSD-3-Clause" ]
2
2016-11-06T14:58:37.000Z
2019-05-26T14:03:13.000Z
#include <gzstream/gzutil.hpp> bool ends_with(const std::string &str, const std::string &end) { return str.rfind( end ) == ( str.size( ) - end.size( ) ); } shared_ptr<std::istream> open_possible_gz(const std::string &path) { if( ends_with( path, ".gz" ) ) { return shared_ptr<std::istream>( new gz:...
22.323529
78
0.592885
hoehleatsu
f35b7afb3e08dbcdd441df54c05ea755cff81ee5
25,166
cpp
C++
tests/AsyncAgencyComm/AsyncAgencyCommTest.cpp
trooso/arangodb
3a3eb78dcab73cdc7aa6bb9cfdf4c7b20bc2857c
[ "Apache-2.0" ]
1
2022-03-25T19:26:09.000Z
2022-03-25T19:26:09.000Z
tests/AsyncAgencyComm/AsyncAgencyCommTest.cpp
solisoft/arangodb
ebb11f901fdcac72ca298f7f329427c7ec51b157
[ "Apache-2.0" ]
null
null
null
tests/AsyncAgencyComm/AsyncAgencyCommTest.cpp
solisoft/arangodb
ebb11f901fdcac72ca298f7f329427c7ec51b157
[ "Apache-2.0" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
40.009539
99
0.619129
trooso
f3615d6aa36a30eb2f2a7accce0658d248cd1bd7
26,868
cpp
C++
ThirdParty/bullet-2.82-r2704/Extras/Serialize/BulletXmlWorldImporter/btBulletXmlWorldImporter.cpp
vif/3D-STG
721402e76a9b9b99b88ba3eb06beb6abb17a9254
[ "MIT" ]
75
2016-12-22T14:53:01.000Z
2022-03-31T08:04:19.000Z
Extras/Serialize/BulletXmlWorldImporter/btBulletXmlWorldImporter.cpp
biojppm/bullet3
aff3fe089fb3f5fe5c4b07de7de99bbccb531443
[ "Zlib" ]
6
2017-04-03T21:27:16.000Z
2019-08-28T17:05:23.000Z
Extras/Serialize/BulletXmlWorldImporter/btBulletXmlWorldImporter.cpp
biojppm/bullet3
aff3fe089fb3f5fe5c4b07de7de99bbccb531443
[ "Zlib" ]
53
2017-03-16T16:38:34.000Z
2022-02-25T14:31:01.000Z
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2012 Erwin Coumans http://bulletphysics.org 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 grant...
30.811927
243
0.754206
vif
f361fe616d81e4c92dc9aeb668f378273c971dca
28
cpp
C++
Pogo/src/Logic/Player.cpp
pinam45/UTBM_IA41_Pogo
1512825278d75f13e6169d3ff02c37ab19c31d16
[ "MIT" ]
null
null
null
Pogo/src/Logic/Player.cpp
pinam45/UTBM_IA41_Pogo
1512825278d75f13e6169d3ff02c37ab19c31d16
[ "MIT" ]
null
null
null
Pogo/src/Logic/Player.cpp
pinam45/UTBM_IA41_Pogo
1512825278d75f13e6169d3ff02c37ab19c31d16
[ "MIT" ]
null
null
null
#include <Logic/Player.hpp>
14
27
0.75
pinam45
f362343c753d47d69e1f9dc5b8c18475c6a39e99
3,859
hpp
C++
engine/include/Engine/Keys.hpp
Alexthehuman3/ASGE
a9cf473a3117f4b67a2dbe8fac00b1a2a4fd6e44
[ "MIT" ]
8
2020-04-26T11:48:29.000Z
2022-02-23T15:13:50.000Z
engine/include/Engine/Keys.hpp
Alexthehuman3/ASGE
a9cf473a3117f4b67a2dbe8fac00b1a2a4fd6e44
[ "MIT" ]
null
null
null
engine/include/Engine/Keys.hpp
Alexthehuman3/ASGE
a9cf473a3117f4b67a2dbe8fac00b1a2a4fd6e44
[ "MIT" ]
1
2021-05-13T16:37:24.000Z
2021-05-13T16:37:24.000Z
// Copyright (c) 2021 James Huxtable. All rights reserved. // // This work is licensed under the terms of the MIT license. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE...
37.105769
94
0.601451
Alexthehuman3
f3659cb2d8fca80418b3abf2d18eb7d59f26feb6
48,982
cpp
C++
tests/IResearch/ExpressionFilterTest.cpp
kapahimansi123/arangodb
66e4b96ab21baf0a857fd50bb6916e71c0defc06
[ "Apache-2.0" ]
null
null
null
tests/IResearch/ExpressionFilterTest.cpp
kapahimansi123/arangodb
66e4b96ab21baf0a857fd50bb6916e71c0defc06
[ "Apache-2.0" ]
null
null
null
tests/IResearch/ExpressionFilterTest.cpp
kapahimansi123/arangodb
66e4b96ab21baf0a857fd50bb6916e71c0defc06
[ "Apache-2.0" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
35.779401
136
0.641501
kapahimansi123
f365cf2c3b1d1b1e63bc6bbc4acf0688f8cf2310
11,883
cpp
C++
src/algebra/curves/edwards/edwards_g2.cpp
amiller/libsnark
d34b477ed9c0e36f74c78946012658bdecde0c00
[ "MIT" ]
null
null
null
src/algebra/curves/edwards/edwards_g2.cpp
amiller/libsnark
d34b477ed9c0e36f74c78946012658bdecde0c00
[ "MIT" ]
null
null
null
src/algebra/curves/edwards/edwards_g2.cpp
amiller/libsnark
d34b477ed9c0e36f74c78946012658bdecde0c00
[ "MIT" ]
null
null
null
/** @file ***************************************************************************** * @author This file is part of libsnark, developed by SCIPR Lab * and contributors (see AUTHORS). * @copyright MIT license (see LICENSE file) ********************************************************************...
28.496403
128
0.541698
amiller
f366b8e91529b3cc3caf3050449ada5fd5fb2e33
1,279
cpp
C++
aoj/ALDS1/ALDS5B/main.cpp
xirc/cp-algorithm
89c67cff2f00459c5bb020ab44bff5ae419a1728
[ "Apache-2.0" ]
8
2020-12-23T07:54:53.000Z
2021-11-23T02:46:35.000Z
aoj/ALDS1/ALDS5B/main.cpp
xirc/cp-algorithm
89c67cff2f00459c5bb020ab44bff5ae419a1728
[ "Apache-2.0" ]
1
2020-11-07T13:22:29.000Z
2020-12-20T12:54:00.000Z
aoj/ALDS1/ALDS5B/main.cpp
xirc/cp-algorithm
89c67cff2f00459c5bb020ab44bff5ae419a1728
[ "Apache-2.0" ]
1
2021-01-16T03:40:10.000Z
2021-01-16T03:40:10.000Z
#include <bits/stdc++.h> using namespace std; void dump(vector<int>& A) { for (int i = 0; i < A.size(); ++i) { if (i > 0) cout << " "; cout << A[i]; } cout << endl; } const int inf = 1e9+1; int merge(vector<int>& A, int l, int m, int r) { int count = 0; const int n1 = m - l; c...
20.301587
50
0.42846
xirc
f372494af13e38f70e6df7a924e52bbcb8a6ec6c
3,222
cpp
C++
CoreTest/FaceTest.cpp
PremiumGraphicsCodes/CGLib
eecd73c5af1a9e0c044e7d675318dbb496aec6b5
[ "MIT" ]
null
null
null
CoreTest/FaceTest.cpp
PremiumGraphicsCodes/CGLib
eecd73c5af1a9e0c044e7d675318dbb496aec6b5
[ "MIT" ]
null
null
null
CoreTest/FaceTest.cpp
PremiumGraphicsCodes/CGLib
eecd73c5af1a9e0c044e7d675318dbb496aec6b5
[ "MIT" ]
1
2022-02-03T08:09:03.000Z
2022-02-03T08:09:03.000Z
#include "stdafx.h" #include "../Core/Face.h" #include "../Core/Vertex.h" #include "../Core/FaceBuilder.h" using namespace Crystal::Math; using namespace Crystal::Core; TEST(FaceTest, TestGetArea) { Vertex v1(Vector3d<float>(-1, 0, 0), 0); Vertex v2(Vector3d<float>( 1, 0, 0), 0); Vertex v3(Vector3d<flo...
29.559633
77
0.612353
PremiumGraphicsCodes
f3726e0b9a5fdfc65372fdb8e6272caf8d61c986
4,706
cpp
C++
src/sleek/driver/texture3d.cpp
Phirxian/sleek-engine
741d55c8daad67ddf631e8b8fbdced59402d7bda
[ "BSD-2-Clause" ]
null
null
null
src/sleek/driver/texture3d.cpp
Phirxian/sleek-engine
741d55c8daad67ddf631e8b8fbdced59402d7bda
[ "BSD-2-Clause" ]
null
null
null
src/sleek/driver/texture3d.cpp
Phirxian/sleek-engine
741d55c8daad67ddf631e8b8fbdced59402d7bda
[ "BSD-2-Clause" ]
null
null
null
#include "texture3d.h" #include "context.h" #include <cstring> namespace sleek { namespace driver { static const unsigned int TextureFormatSize[] = { 1, 2, 3, 4, 4, 8, 12, 16 }; static const unsigned int TextureFormatComponant[] = { 1, 2, 3, 4, ...
30.558442
130
0.473013
Phirxian
f377694ce6e0ca0a046164f068bbf4b7baad05e7
11,803
cpp
C++
test/thread/source/TestThreadCondition.cpp
questor/eathread
5767f201c78b41002fee155c4e85c13d9d1adfe4
[ "BSD-3-Clause" ]
null
null
null
test/thread/source/TestThreadCondition.cpp
questor/eathread
5767f201c78b41002fee155c4e85c13d9d1adfe4
[ "BSD-3-Clause" ]
null
null
null
test/thread/source/TestThreadCondition.cpp
questor/eathread
5767f201c78b41002fee155c4e85c13d9d1adfe4
[ "BSD-3-Clause" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) Electronic Arts Inc. All rights reserved. /////////////////////////////////////////////////////////////////////////////// #include "TestThread.h" #include <EATest/EATest.h> #include <eathread/eathread_condition.h> #include...
35.127976
143
0.705499
questor
f37878b96cd4dd41a9a48f5e47d6fa124f1e09f5
605
cpp
C++
appcontext/src/get_current_time_as_string.cpp
gavinband/bingwa
d52e166b3bb6bc32cd32ba63bf8a4a147275eca1
[ "BSL-1.0" ]
3
2021-04-21T05:42:24.000Z
2022-01-26T14:59:43.000Z
appcontext/src/get_current_time_as_string.cpp
gavinband/bingwa
d52e166b3bb6bc32cd32ba63bf8a4a147275eca1
[ "BSL-1.0" ]
2
2020-04-09T16:11:04.000Z
2020-11-10T11:18:56.000Z
appcontext/src/get_current_time_as_string.cpp
gavinband/qctool
8d8adb45151c91f953fe4a9af00498073b1132ba
[ "BSL-1.0" ]
null
null
null
// Copyright Gavin Band 2008 - 2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <string> #include <ctime> #include "appcontext/get_current_time_as_string.hpp" namespace appco...
27.5
62
0.669421
gavinband
f37c74d0f54ac5bc8628bb0f4cd2e4d763885437
245
cpp
C++
lab71arrayj.cpp
aizhansapina/lab7
afe2e08dea728f45a679c085ec05d7ca8a66817e
[ "MIT" ]
null
null
null
lab71arrayj.cpp
aizhansapina/lab7
afe2e08dea728f45a679c085ec05d7ca8a66817e
[ "MIT" ]
null
null
null
lab71arrayj.cpp
aizhansapina/lab7
afe2e08dea728f45a679c085ec05d7ca8a66817e
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main () { int n; cin >> n; int a[n]; for (int i=0; i<n; i++){ cin >> a[i];} int mx = a[0]; for (int i=1; i<n; i++){ if (a[i]>mx) mx = a[i]; cout << a[i] << " ";} return 0; }
14.411765
26
0.444898
aizhansapina
3ce462dbd874bed265565e17c3455b403e4cb06e
9,321
cpp
C++
src/utils/registry.cpp
shravanAngadi/seafile-client
69f8e88e07f6960fd37fe1caa06649c613ea81d4
[ "Apache-2.0" ]
null
null
null
src/utils/registry.cpp
shravanAngadi/seafile-client
69f8e88e07f6960fd37fe1caa06649c613ea81d4
[ "Apache-2.0" ]
null
null
null
src/utils/registry.cpp
shravanAngadi/seafile-client
69f8e88e07f6960fd37fe1caa06649c613ea81d4
[ "Apache-2.0" ]
1
2021-11-02T18:40:14.000Z
2021-11-02T18:40:14.000Z
#include <windows.h> #include <shlwapi.h> #include <vector> #include "utils/stl.h" #include "registry.h" namespace { LONG openKey(HKEY root, const QString& path, HKEY *p_key, REGSAM samDesired = KEY_ALL_ACCESS) { LONG result; result = RegOpenKeyExW(root, path.toStdWString().c_str(...
27.174927
93
0.497586
shravanAngadi
3ce5d2ea45a5ca2d752e93bfc58ee6ba704f5aee
2,084
hpp
C++
include/oglplus/client_context.hpp
highfidelity/oglplus
c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e
[ "BSL-1.0" ]
2
2017-06-09T00:28:35.000Z
2017-06-09T00:28:43.000Z
include/oglplus/client_context.hpp
highfidelity/oglplus
c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e
[ "BSL-1.0" ]
null
null
null
include/oglplus/client_context.hpp
highfidelity/oglplus
c5fb7cc21869cb9555cfa2a7e28ea6bc6491d11e
[ "BSL-1.0" ]
8
2017-01-30T22:06:41.000Z
2020-01-14T17:24:36.000Z
/** * @file oglplus/client_context.hpp * @brief Client context. * * @author Matus Chochlik * * Copyright 2010-2014 Matus Chochlik. Distributed under the Boost * Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #pragma once #ifnde...
29.352113
68
0.784069
highfidelity
3cea1172e4ac7f3e5010ebf08a3586e04441bec0
1,306
hh
C++
include/ignition/gazebo/components/LevelBuffer.hh
mrushyendra/ign-gazebo
2f7f33d4fa34657badec81558d5953fe7643769f
[ "ECL-2.0", "Apache-2.0" ]
198
2020-04-15T16:56:09.000Z
2022-03-27T12:31:08.000Z
include/ignition/gazebo/components/LevelBuffer.hh
mrushyendra/ign-gazebo
2f7f33d4fa34657badec81558d5953fe7643769f
[ "ECL-2.0", "Apache-2.0" ]
1,220
2020-04-15T18:10:29.000Z
2022-03-31T22:37:06.000Z
include/ignition/gazebo/components/LevelBuffer.hh
mrushyendra/ign-gazebo
2f7f33d4fa34657badec81558d5953fe7643769f
[ "ECL-2.0", "Apache-2.0" ]
134
2020-04-15T16:59:57.000Z
2022-03-26T08:51:31.000Z
/* * 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...
29.681818
76
0.774885
mrushyendra
3cecaefaf6aace984b23497e9d5569b3412c61e0
176
hpp
C++
runtime/src/aderite/scripting/internals/ScriptEntity.hpp
nfwGytautas/aderite
87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c
[ "MIT" ]
null
null
null
runtime/src/aderite/scripting/internals/ScriptEntity.hpp
nfwGytautas/aderite
87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c
[ "MIT" ]
null
null
null
runtime/src/aderite/scripting/internals/ScriptEntity.hpp
nfwGytautas/aderite
87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c
[ "MIT" ]
null
null
null
#pragma once namespace aderite { namespace scripting { /** * @brief Links entity internal calls */ void entityInternals(); } // namespace scripting } // namespace aderite
13.538462
37
0.715909
nfwGytautas
3cece45eb27ca11c094add36bf3778f50d31330b
1,418
cpp
C++
Websites/Codeforces/158B.cpp
justaname94/Algorithms
4c9ec4119b0d92d5889f85b89fcb24f885a82373
[ "MIT" ]
null
null
null
Websites/Codeforces/158B.cpp
justaname94/Algorithms
4c9ec4119b0d92d5889f85b89fcb24f885a82373
[ "MIT" ]
null
null
null
Websites/Codeforces/158B.cpp
justaname94/Algorithms
4c9ec4119b0d92d5889f85b89fcb24f885a82373
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int groupsNum; cin >> groupsNum; vector<int> groups(groupsNum); for (int i = 0; i < groups.size(); i++) { cin >> groups[i]; } // Sort from biggest to smallest Num. sort(groups.rbegin(...
24.033898
69
0.49859
justaname94
3cedd63ae202687fc2e7fef7ed66082e6eb3546b
2,185
cpp
C++
Resources/Button.cpp
JTuthill01/Nightmare
e4b712e28c228c66a33664418cc176cf527c28c9
[ "MIT" ]
null
null
null
Resources/Button.cpp
JTuthill01/Nightmare
e4b712e28c228c66a33664418cc176cf527c28c9
[ "MIT" ]
null
null
null
Resources/Button.cpp
JTuthill01/Nightmare
e4b712e28c228c66a33664418cc176cf527c28c9
[ "MIT" ]
null
null
null
#include "stdafx.hpp" #include "Button.hpp" Button::Button(sf::Vector2f position, sf::Vector2f size, sf::Font * font, std::string text, unsigned character_size, sf::Color buttonColor, sf::Color idleButtonColor, sf::Color buttonHoverColor, sf::Color buttonActiveColor, sf::Color textColor) : mPosition(position), m...
29.527027
190
0.715789
JTuthill01
3cefb28f682660b3fd19f2ef575daf4c4cfdda7d
11,934
cpp
C++
src/qt/qtbase/src/network/access/qnetworkcookiejar.cpp
zwollerob/PhantomJS_AMR6VL
71c126e98a8c32950158d04d0bd75823cd008b99
[ "BSD-3-Clause" ]
null
null
null
src/qt/qtbase/src/network/access/qnetworkcookiejar.cpp
zwollerob/PhantomJS_AMR6VL
71c126e98a8c32950158d04d0bd75823cd008b99
[ "BSD-3-Clause" ]
null
null
null
src/qt/qtbase/src/network/access/qnetworkcookiejar.cpp
zwollerob/PhantomJS_AMR6VL
71c126e98a8c32950158d04d0bd75823cd008b99
[ "BSD-3-Clause" ]
null
null
null
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtNetwork module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid com...
34.997067
97
0.684263
zwollerob
3cf12203308d5157ac61d5cd20f775b77d386886
696
cpp
C++
src/kern_state.cpp
ammrat13/cuda-magnetic-pendulum
51c77a21d6fdec15add82aeb0895684a4bbda1ff
[ "MIT" ]
null
null
null
src/kern_state.cpp
ammrat13/cuda-magnetic-pendulum
51c77a21d6fdec15add82aeb0895684a4bbda1ff
[ "MIT" ]
null
null
null
src/kern_state.cpp
ammrat13/cuda-magnetic-pendulum
51c77a21d6fdec15add82aeb0895684a4bbda1ff
[ "MIT" ]
null
null
null
#include "kern.h" kern::State::State(size_t res): resolution{res} { this->data = std::make_unique<kern::State::StateElem[]>( this->resolution * this->resolution ); } void kern::State::check_bounds(size_t r, size_t c) const { if(r >= this->resolution || c >= this->resolution) { throw std:...
26.769231
82
0.632184
ammrat13
3cf251222232a74dba2586526ddeef2f57dd0856
20,971
cpp
C++
SPH_SM_monodomain/SPH_SM_monodomain.cpp
Hagen23/SPH-SM-Monodomain
9211cfa38cbc508a88495cecc1154e93ed414ae7
[ "MIT" ]
null
null
null
SPH_SM_monodomain/SPH_SM_monodomain.cpp
Hagen23/SPH-SM-Monodomain
9211cfa38cbc508a88495cecc1154e93ed414ae7
[ "MIT" ]
null
null
null
SPH_SM_monodomain/SPH_SM_monodomain.cpp
Hagen23/SPH-SM-Monodomain
9211cfa38cbc508a88495cecc1154e93ed414ae7
[ "MIT" ]
null
null
null
#ifndef __SPH_SM_monodomain_CPP__ #define __SPH_SM_monodomain_CPP__ #include <SPH_SM_monodomain.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <iostream> using namespace std; SPH_SM_monodomain::SPH_SM_monodomain() { float sigma_i = 0.893, sigma_e = 0.67; kernel = 0.04f; ...
25.205529
465
0.583425
Hagen23
3cf4c4ba4ceb68b48a6298f95bdb4b08d6dbf4a3
10,751
cpp
C++
src/xalanc/XSLT/ElemValueOf.cpp
kidaa/xalan-c
bb666d0ab3d0a192410823e6857c203d83c27b16
[ "Apache-2.0" ]
null
null
null
src/xalanc/XSLT/ElemValueOf.cpp
kidaa/xalan-c
bb666d0ab3d0a192410823e6857c203d83c27b16
[ "Apache-2.0" ]
1
2021-08-18T12:32:31.000Z
2021-08-18T12:32:31.000Z
src/xalanc/XSLT/ElemValueOf.cpp
AaronNGray/xalan
6741bbdcb64a9d33df8bd7e21b558d66bb4292ec
[ "Apache-2.0" ]
null
null
null
/* * 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 m...
25.002326
101
0.597898
kidaa
3cf6bf02b24135d23e7a67e4f4a0e75ad5c1de31
14,231
cpp
C++
libless/src/value/NumberFunctions.cpp
Ti-R/clessc
c822dedd077ff82395890d6c58f213d9a574d96c
[ "MIT" ]
66
2015-02-07T09:08:30.000Z
2021-12-06T17:07:45.000Z
libless/src/value/NumberFunctions.cpp
Ti-R/clessc
c822dedd077ff82395890d6c58f213d9a574d96c
[ "MIT" ]
30
2015-01-18T07:05:48.000Z
2020-10-08T12:44:21.000Z
libless/src/value/NumberFunctions.cpp
Ti-R/clessc
c822dedd077ff82395890d6c58f213d9a574d96c
[ "MIT" ]
19
2015-10-19T12:59:19.000Z
2021-12-06T17:07:49.000Z
#include "less/value/NumberFunctions.h" #include "less/value/FunctionLibrary.h" #include "less/value/Value.h" #include "less/value/NumberValue.h" #include "less/value/UnitValue.h" void NumberFunctions::loadFunctions(FunctionLibrary& lib) { lib.push("unit", ".U?", &NumberFunctions::unit); lib.push("get-unit", ".",...
34.625304
78
0.577612
Ti-R
3cf9215adfb996ab70f88fc8175b9281211047cb
1,485
cpp
C++
Tree/nodesNotHavingSiblings.cpp
harshallgarg/Diversified-Programming
7e6fb135c4639dbaa0651b85f98397f994a5b11d
[ "MIT" ]
2
2020-08-09T02:09:50.000Z
2020-08-09T07:07:47.000Z
Tree/nodesNotHavingSiblings.cpp
harshallgarg/Diversified-Programming
7e6fb135c4639dbaa0651b85f98397f994a5b11d
[ "MIT" ]
null
null
null
Tree/nodesNotHavingSiblings.cpp
harshallgarg/Diversified-Programming
7e6fb135c4639dbaa0651b85f98397f994a5b11d
[ "MIT" ]
5
2020-09-21T12:49:07.000Z
2020-09-29T16:13:09.000Z
// // Created by Anish Mookherjee on 27/05/20. // /* Tree node structure used in the program struct Node { int data; Node* left, *right; }; */ /* Prints the nodes having no siblings. */ vector<int> v; void pushVector(Node* root) { if(root==NULL) return; else if(!root->left&&root->right)...
17.470588
43
0.531987
harshallgarg
3cfa57d0287b926ac690165484157b616e709dd9
14,036
cpp
C++
src/graphics/CSegmentArray.cpp
Yung-Quant/elec490
09314b1c3f4f061effa396c104f094f28a0aabff
[ "BSD-3-Clause" ]
null
null
null
src/graphics/CSegmentArray.cpp
Yung-Quant/elec490
09314b1c3f4f061effa396c104f094f28a0aabff
[ "BSD-3-Clause" ]
null
null
null
src/graphics/CSegmentArray.cpp
Yung-Quant/elec490
09314b1c3f4f061effa396c104f094f28a0aabff
[ "BSD-3-Clause" ]
null
null
null
//============================================================================== /* Software License Agreement (BSD License) Copyright (c) 2003-2016, CHAI3D. (www.chai3d.org) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are perm...
42.662614
101
0.527216
Yung-Quant
a70266cfa6b87ad0f13235fbdab40f6b7920353a
3,709
cpp
C++
test/resqml2_test/WellboreTrajectoryRepresentationTest.cpp
cgodkin/fesapi
d25c5e30ccec537c471adc3bb036c48f2c51f2c9
[ "Apache-2.0" ]
null
null
null
test/resqml2_test/WellboreTrajectoryRepresentationTest.cpp
cgodkin/fesapi
d25c5e30ccec537c471adc3bb036c48f2c51f2c9
[ "Apache-2.0" ]
null
null
null
test/resqml2_test/WellboreTrajectoryRepresentationTest.cpp
cgodkin/fesapi
d25c5e30ccec537c471adc3bb036c48f2c51f2c9
[ "Apache-2.0" ]
null
null
null
/*----------------------------------------------------------------------- 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 ...
42.147727
163
0.760582
cgodkin
a7089fdafc2e3224ad4799430a572ed3e8be8167
964
cpp
C++
dlk/python/dlk/templates/src/func/sqrt.cpp
toohsk/blueoil
596922caa939db9c5ecbac3286fbf6f703865ee6
[ "Apache-2.0" ]
null
null
null
dlk/python/dlk/templates/src/func/sqrt.cpp
toohsk/blueoil
596922caa939db9c5ecbac3286fbf6f703865ee6
[ "Apache-2.0" ]
null
null
null
dlk/python/dlk/templates/src/func/sqrt.cpp
toohsk/blueoil
596922caa939db9c5ecbac3286fbf6f703865ee6
[ "Apache-2.0" ]
2
2019-02-08T10:03:34.000Z
2019-03-20T06:25:55.000Z
/* Copyright 2018 The Blueoil 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 agre...
32.133333
80
0.68361
toohsk
a7110ec8f2e77e4efd6c5348589460fab4a0d357
7,940
cpp
C++
source/Irrlicht/CSkyDomeSceneNode.cpp
WieszKto/IrrlichtBAW
bcef8386c2ca7f06ff006b866c397035551a2351
[ "Apache-2.0" ]
null
null
null
source/Irrlicht/CSkyDomeSceneNode.cpp
WieszKto/IrrlichtBAW
bcef8386c2ca7f06ff006b866c397035551a2351
[ "Apache-2.0" ]
null
null
null
source/Irrlicht/CSkyDomeSceneNode.cpp
WieszKto/IrrlichtBAW
bcef8386c2ca7f06ff006b866c397035551a2351
[ "Apache-2.0" ]
null
null
null
// Copyright (C) 2002-2012 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h // Code for this scene node has been contributed by Anders la Cour-Harbo (alc) #include "CSkyDomeSceneNode.h" #include "ICameraSceneNode.h" ...
33.644068
146
0.715365
WieszKto
a71b8c3974ad8afc505d74eba5973c2bf0d7e250
41,555
cpp
C++
DirectZobEngine/Rendering/Engine.cpp
zeralph/directZob
7682ec0b77b697659be157cce62413e3ee877ee4
[ "WTFPL" ]
2
2019-06-12T18:11:36.000Z
2022-01-19T00:26:00.000Z
DirectZobEngine/Rendering/Engine.cpp
zeralph/directZob
7682ec0b77b697659be157cce62413e3ee877ee4
[ "WTFPL" ]
null
null
null
DirectZobEngine/Rendering/Engine.cpp
zeralph/directZob
7682ec0b77b697659be157cce62413e3ee877ee4
[ "WTFPL" ]
1
2019-10-05T02:44:47.000Z
2019-10-05T02:44:47.000Z
#include "Engine.h" #include <algorithm> #include <thread> #ifdef LINUX #include <unistd.h> #elif MACOS #include <unistd.h> #elif WINDOWS #include <windows.h> #endif //LINUX #include <assert.h> #include <mutex> #include <condition_variable> #include "DirectZob.h" #include "Rasterizer.h" #include "../ZobObjects/Camera.h...
29.513494
190
0.657466
zeralph
a71d7957271f372b509b81c9b356e69aea0cb74e
175
cpp
C++
main/compilation/routine_call.cpp
amakuzaze/lizard
2e53bdd62fd7f0524c15f2787edd8c6ac1079115
[ "MIT" ]
null
null
null
main/compilation/routine_call.cpp
amakuzaze/lizard
2e53bdd62fd7f0524c15f2787edd8c6ac1079115
[ "MIT" ]
null
null
null
main/compilation/routine_call.cpp
amakuzaze/lizard
2e53bdd62fd7f0524c15f2787edd8c6ac1079115
[ "MIT" ]
1
2022-03-21T08:00:45.000Z
2022-03-21T08:00:45.000Z
#include "routine_call.h" RoutineCall::RoutineCall(const Routine_ptr routine) : routine(routine) { } bool RoutineCall::run() { this->routine->start(); return true; }
19.444444
72
0.702857
amakuzaze
a71d8700713cb112eaca7cb82e0d84d68ba48fcf
321
cpp
C++
qt-ts-csv/x2x/Xlsx2Ts.cpp
Stivvo/qt-ts-csv
5b262dbc1250fffd465c2114ffbb0a8e63c3c1ac
[ "MIT" ]
2
2019-08-07T10:02:20.000Z
2021-11-03T17:09:42.000Z
qt-ts-csv/x2x/Xlsx2Ts.cpp
Stivvo/qt-ts-csv
5b262dbc1250fffd465c2114ffbb0a8e63c3c1ac
[ "MIT" ]
null
null
null
qt-ts-csv/x2x/Xlsx2Ts.cpp
Stivvo/qt-ts-csv
5b262dbc1250fffd465c2114ffbb0a8e63c3c1ac
[ "MIT" ]
null
null
null
#include "Xlsx2Ts.hpp" #include "TsBuilder.hpp" #include "Writer.hpp" #include "XlsxParser.hpp" #include <sstream> void Xlsx2Ts::convert(std::string &&filename, std::string &&output) { Writer().write(TsBuilder().build(XlsxParser().parse(std::move(filename))), std::move(output)); } ...
22.928571
79
0.635514
Stivvo
a71e3fe91e4ede20886f6eeba0dd01101d89bef2
416
hpp
C++
4w_Arcade/src/globals.hpp
Bryanmarc/VEX-Robotics-3273
d4a0188bb705265a505488684e09aff7531fd080
[ "MIT" ]
1
2019-03-13T14:55:59.000Z
2019-03-13T14:55:59.000Z
4w_Arcade/src/globals.hpp
Bryanmarc/VEX-Robotics-3273
d4a0188bb705265a505488684e09aff7531fd080
[ "MIT" ]
null
null
null
4w_Arcade/src/globals.hpp
Bryanmarc/VEX-Robotics-3273
d4a0188bb705265a505488684e09aff7531fd080
[ "MIT" ]
null
null
null
#ifndef GLOBALS_H #define GLOBALS_H #include "main.h" extern int side_sel; extern int auton_sel; extern pros::Controller master; extern pros::Motor back_left_mtr; extern pros::Motor back_right_mtr; extern pros::Motor front_left_mtr; extern pros::Motor front_right_mtr; extern pros::Motor flywheel_mtr_one; extern pros:...
21.894737
36
0.810096
Bryanmarc
a7208403aeb09b9fc80a0dee04aad5b5f33c480b
1,268
cpp
C++
iterator/cpp/self-made/iterator_pattern.cpp
LoLei/design-patterns-examples
213241ab94c8a5e74a3faa9c5f554d557e60b753
[ "MIT" ]
3
2020-02-11T20:37:13.000Z
2020-07-31T14:16:51.000Z
iterator/cpp/self-made/iterator_pattern.cpp
LoLei/design-patterns-examples
213241ab94c8a5e74a3faa9c5f554d557e60b753
[ "MIT" ]
null
null
null
iterator/cpp/self-made/iterator_pattern.cpp
LoLei/design-patterns-examples
213241ab94c8a5e74a3faa9c5f554d557e60b753
[ "MIT" ]
null
null
null
#include <iostream> #include <array> #include "arrayconcretecollection.h" #include "arrayconcreteiterator.h" #include "linkedlistconcretecollection.h" #include "linkedlistconcreteiterator.h" int main() { // Use custom array container std::cout << "#### Array container" << std::endl; ArrayConcreteCollection my_cu...
30.926829
89
0.747634
LoLei
a722b3f98dfcc263bc4557df7f793dbf36dcf7ee
13,573
cpp
C++
duilib/Utils/WinImplBase.cpp
l619534951/monitor_helper_duilib
a0df2a0285bdd37b77a611fba080dee0e55bda4f
[ "BSD-2-Clause", "MIT" ]
null
null
null
duilib/Utils/WinImplBase.cpp
l619534951/monitor_helper_duilib
a0df2a0285bdd37b77a611fba080dee0e55bda4f
[ "BSD-2-Clause", "MIT" ]
null
null
null
duilib/Utils/WinImplBase.cpp
l619534951/monitor_helper_duilib
a0df2a0285bdd37b77a611fba080dee0e55bda4f
[ "BSD-2-Clause", "MIT" ]
null
null
null
#include "stdafx.h" namespace ui { WindowImplBase::WindowImplBase() { } WindowImplBase::~WindowImplBase() { } void WindowImplBase::OnFinalMessage( HWND hWnd ) { __super::OnFinalMessage(hWnd); ReapObjects(GetRoot()); delete this; } LONG WindowImplBase::GetStyle() { LONG styleValue = ::GetWindowLong(GetHWND()...
29.442516
121
0.709202
l619534951
a723372107c01170afc7642f452c1ff49c6468de
5,974
cpp
C++
test/lru_map_test.cpp
arunksaha/lru_map
83cb3db3ddd467250a35a4775485bdbd759ffbb9
[ "Apache-2.0" ]
null
null
null
test/lru_map_test.cpp
arunksaha/lru_map
83cb3db3ddd467250a35a4775485bdbd759ffbb9
[ "Apache-2.0" ]
null
null
null
test/lru_map_test.cpp
arunksaha/lru_map
83cb3db3ddd467250a35a4775485bdbd759ffbb9
[ "Apache-2.0" ]
null
null
null
#include <random> #include "lru_map.h" using namespace std; struct LruKey { explicit LruKey(int64_t k) : key(k) {} bool operator==(const LruKey& rhs) const { return key == rhs.key; } int64_t key; }; std::ostream& operator<<(std::ostream& os, const LruKey& lrukey) { os << lrukey.key; return os; } nam...
24.483607
79
0.677603
arunksaha
a726021589ae1509f57e8772723ea6a66fa18b66
1,444
cpp
C++
test/guitar_string_test.cpp
dsantosp12/Karplus-Strong-simulation
705cde9e720b0354e1123b44d30b93374e889840
[ "MIT" ]
2
2019-04-20T08:44:53.000Z
2021-04-07T00:29:44.000Z
test/guitar_string_test.cpp
dsantosp12/Karplus-Strong-simulation
705cde9e720b0354e1123b44d30b93374e889840
[ "MIT" ]
null
null
null
test/guitar_string_test.cpp
dsantosp12/Karplus-Strong-simulation
705cde9e720b0354e1123b44d30b93374e889840
[ "MIT" ]
null
null
null
/* Copyright 2015 Fred Martin, fredm@cs.uml.edu Wed Apr 1 09:43:12 2015 test file for GuitarString class compile with g++ -c GStest.cpp -lboost_unit_test_framework g++ GStest.o GuitarString.o RingBuffer.o -o GStest -lboost_unit_test_framework */ #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE Main ...
21.552239
80
0.666205
dsantosp12
a72e3575f7db4e6f76c9224b31b32bfe14b5adb2
6,569
hpp
C++
include/bsio/net/http/HttpService.hpp
OpenArkStudio/bsio
5ea4ec1c084b6b508a122188720538015f2f8bc5
[ "Apache-2.0" ]
4
2021-06-09T02:03:18.000Z
2022-01-20T01:22:12.000Z
include/bsio/net/http/HttpService.hpp
OpenArkStudio/bsio
5ea4ec1c084b6b508a122188720538015f2f8bc5
[ "Apache-2.0" ]
null
null
null
include/bsio/net/http/HttpService.hpp
OpenArkStudio/bsio
5ea4ec1c084b6b508a122188720538015f2f8bc5
[ "Apache-2.0" ]
null
null
null
#pragma once #include <asio.hpp> #include <bsio/net/TcpSession.hpp> #include <bsio/net/http/HttpParser.hpp> #include <bsio/net/http/WebSocketFormat.hpp> #include <memory> #include <thread> #include <utility> namespace bsio::net::http { class HttpService; class HttpSession : private asio::noncopyable { public: ...
29.195556
108
0.537068
OpenArkStudio
a7307ea92b6df3fd79532901bf9caa03e53b8fd2
1,192
cpp
C++
src/main.cpp
saracen24/CameraStateMachine
9abef3383c3ce20be1d1b563fc4c26848215d8ce
[ "MIT" ]
null
null
null
src/main.cpp
saracen24/CameraStateMachine
9abef3383c3ce20be1d1b563fc4c26848215d8ce
[ "MIT" ]
null
null
null
src/main.cpp
saracen24/CameraStateMachine
9abef3383c3ce20be1d1b563fc4c26848215d8ce
[ "MIT" ]
null
null
null
#include <iostream> #include <memory> #include "camera.hpp" using namespace std; using namespace aiz; static const array<const char*, 4> kState{"OFF", "READY", "CAPTURE", "PAUSE"}; void showState(Camera::State state) { cout << "State: " << kState.at(state) << endl << endl; } int main() { cout << "[Initial stat...
20.551724
78
0.60151
saracen24
a731b43b31aa7081590c0471a3ef69c7aaeb67a9
4,156
cpp
C++
library/string/palindromicTree.cpp
bluedawnstar/algorithm_library
4c7f64ec61fc2ba059b64ad7ba20fcb5b838ced6
[ "Unlicense" ]
40
2017-11-26T05:29:18.000Z
2020-11-13T00:29:26.000Z
library/string/palindromicTree.cpp
bluedawnstar/algorithm_library
4c7f64ec61fc2ba059b64ad7ba20fcb5b838ced6
[ "Unlicense" ]
101
2019-02-09T06:06:09.000Z
2021-12-25T16:55:37.000Z
library/string/palindromicTree.cpp
bluedawnstar/algorithm_library
4c7f64ec61fc2ba059b64ad7ba20fcb5b838ced6
[ "Unlicense" ]
6
2017-01-03T14:17:58.000Z
2021-01-22T10:37:04.000Z
#include <vector> #include <string> #include <algorithm> using namespace std; #include "palindromicTree.h" /////////// For Testing /////////////////////////////////////////////////////// #include <cassert> #include <iostream> #include "../common/iostreamhelper.h" #include "../common/rand.h" #include "palindromicSu...
29.267606
100
0.44129
bluedawnstar
a7383554ccfe5a51103c86dce7c2bdd4252b8f18
336
cc
C++
below2.1/testdulu.cc
danzel-py/Kattis-Problem-Archive
bce1929d654b1bceb104f96d68c74349273dd1ff
[ "Apache-2.0" ]
null
null
null
below2.1/testdulu.cc
danzel-py/Kattis-Problem-Archive
bce1929d654b1bceb104f96d68c74349273dd1ff
[ "Apache-2.0" ]
null
null
null
below2.1/testdulu.cc
danzel-py/Kattis-Problem-Archive
bce1929d654b1bceb104f96d68c74349273dd1ff
[ "Apache-2.0" ]
null
null
null
#include <iostream> using namespace std; int main(){ int n; cin>>n; int arr[n]; for (int i = 0; i < n; i++) { cin>>arr[i]; } for (int i = 1; i < 9; i++) { for (int j = 0; j < n; j++) { cout<<arr[j]%i<<' '; } cout<<'\n'; } ...
14.608696
35
0.342262
danzel-py
a73b6f48a998bca4aa97ab9dde4ff31945190afc
7,016
cpp
C++
Official Windows Platform Sample/Windows 8.1 desktop samples/[C++]-Windows 8.1 desktop samples/Input Method Editor (IME) sample/C++/SampleIME/RegKey.cpp
zzgchina888/msdn-code-gallery-microsoft
21cb9b6bc0da3b234c5854ecac449cb3bd261f29
[ "MIT" ]
8
2017-04-30T17:38:27.000Z
2021-11-29T00:59:03.000Z
Samples/IME/cpp/SampleIME/RegKey.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
1
2022-03-15T04:21:41.000Z
2022-03-15T04:21:41.000Z
Samples/IME/cpp/SampleIME/RegKey.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
2
2020-08-11T13:21:49.000Z
2021-09-01T10:41:51.000Z
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright (c) Microsoft Corporation. All rights reserved #include "Private.h" #inclu...
25.146953
219
0.515108
zzgchina888
a73b75d42ba76302564151254f8fea0ee74cd6c3
417
cpp
C++
binarysearch.io/easy/Z-Sum.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
18
2020-08-27T05:27:50.000Z
2022-03-08T02:56:48.000Z
binarysearch.io/easy/Z-Sum.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
null
null
null
binarysearch.io/easy/Z-Sum.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
1
2020-10-13T05:23:58.000Z
2020-10-13T05:23:58.000Z
#include "solution.hpp" using namespace std; class Solution { public: int solve(vector<vector<int>>& matrix) { int m=matrix.size(), ans=0; if(m==0) return ans; int n=matrix[0].size(); for(int i=0;i<n;i++) ans+=matrix[0][i]; for(int i=1,j=n-2;i<=m-2&&j>=1;i++,j--) ans+=m...
24.529412
66
0.513189
wingkwong
a73c2f87ded93e673dd0047cb8111ca2582bb67c
18,802
cpp
C++
source/symbols/VariableSymbols.cpp
jankcorn/slang
2c697d8f16ef2449110d3094f8eeb6196d1fcabb
[ "MIT" ]
null
null
null
source/symbols/VariableSymbols.cpp
jankcorn/slang
2c697d8f16ef2449110d3094f8eeb6196d1fcabb
[ "MIT" ]
null
null
null
source/symbols/VariableSymbols.cpp
jankcorn/slang
2c697d8f16ef2449110d3094f8eeb6196d1fcabb
[ "MIT" ]
1
2021-11-15T05:37:12.000Z
2021-11-15T05:37:12.000Z
//------------------------------------------------------------------------------ // VariableSymbols.cpp // Contains variable-related symbol definitions // // File is under the MIT license; see LICENSE for details //------------------------------------------------------------------------------ #include "slang/symbols/Va...
39.089397
100
0.63222
jankcorn
a740097b7643cbe1765e79298f31a10aab181bb5
796
cc
C++
clients/zukou/glm-helper.cc
Aki-7/zen
c3cfb95f554198427b4b102da55e4fab0cfc97ff
[ "Apache-2.0" ]
null
null
null
clients/zukou/glm-helper.cc
Aki-7/zen
c3cfb95f554198427b4b102da55e4fab0cfc97ff
[ "Apache-2.0" ]
null
null
null
clients/zukou/glm-helper.cc
Aki-7/zen
c3cfb95f554198427b4b102da55e4fab0cfc97ff
[ "Apache-2.0" ]
null
null
null
#include <string.h> #include <zukou.h> #include <glm/glm.hpp> namespace zukou { glm::vec3 glm_vec3_from_wl_array(struct wl_array *array) { float *data = (float *)array->data; return glm::vec3(data[0], data[1], data[2]); } void glm_vec3_to_wl_array(glm::vec3 v, struct wl_array *array) { size_t size = sizeof(fl...
19.9
57
0.678392
Aki-7
a743ed092d46e9c0d7cd80f34e4289c40d31293a
515
cpp
C++
Chapter 9/twofile2.cpp
liu1322592019/Cpp-Primer
7f6daa7ff37d67456eb6a0dd6d0d1aa64fdc10ef
[ "MIT" ]
4
2020-12-26T03:17:45.000Z
2022-01-11T05:54:40.000Z
Chapter 9/twofile2.cpp
liu1322592019/Cpp-Primer
7f6daa7ff37d67456eb6a0dd6d0d1aa64fdc10ef
[ "MIT" ]
null
null
null
Chapter 9/twofile2.cpp
liu1322592019/Cpp-Primer
7f6daa7ff37d67456eb6a0dd6d0d1aa64fdc10ef
[ "MIT" ]
null
null
null
// twofile2.cpp -- variables with internal and external linkage #include <iostream> extern int tom; // tom defined elsewhere static int dick = 10; // overrides external dick int harry = 200; // external variable definition, // no conflict with twofile1 harry void remote_access(...
32.1875
65
0.6
liu1322592019
a7454d5ba19451d225b1321c9a8c2784d6252a3e
100
cpp
C++
Untitled.cpp
ASAD-BE18/Cpp-Programs
d942015e3e21e8fb13d1fc86049d65ffb9555fe3
[ "MIT" ]
null
null
null
Untitled.cpp
ASAD-BE18/Cpp-Programs
d942015e3e21e8fb13d1fc86049d65ffb9555fe3
[ "MIT" ]
null
null
null
Untitled.cpp
ASAD-BE18/Cpp-Programs
d942015e3e21e8fb13d1fc86049d65ffb9555fe3
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main () { int i; ++i; cout<<i; return 0; }
11.111111
21
0.56
ASAD-BE18
a74bb8a8e0f38012a09463cb5d42312612f4a679
22,583
hpp
C++
include/LIEF/MachO/Binary.hpp
ekilmer/LIEF
77328b0071c7254567d9e8383ea0f5f876f9da17
[ "Apache-2.0" ]
null
null
null
include/LIEF/MachO/Binary.hpp
ekilmer/LIEF
77328b0071c7254567d9e8383ea0f5f876f9da17
[ "Apache-2.0" ]
null
null
null
include/LIEF/MachO/Binary.hpp
ekilmer/LIEF
77328b0071c7254567d9e8383ea0f5f876f9da17
[ "Apache-2.0" ]
null
null
null
/* Copyright 2017 - 2022 R. Thomas * Copyright 2017 - 2022 Quarkslab * * 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 req...
34.79661
108
0.733649
ekilmer
a751976982216d924f49b2d87703ae13480ee6ca
21,648
cpp
C++
src/comport/src/wepet_comport_linux.cpp
peterweissig/cpp_main
491ce299b98d24b3da3b43e1121d609f28f3ece0
[ "BSD-3-Clause" ]
null
null
null
src/comport/src/wepet_comport_linux.cpp
peterweissig/cpp_main
491ce299b98d24b3da3b43e1121d609f28f3ece0
[ "BSD-3-Clause" ]
null
null
null
src/comport/src/wepet_comport_linux.cpp
peterweissig/cpp_main
491ce299b98d24b3da3b43e1121d609f28f3ece0
[ "BSD-3-Clause" ]
null
null
null
/****************************************************************************** * * * wepet_comport_linux.cpp * * ======================= ...
31.014327
85
0.501571
peterweissig
a7529d7ebb5ecb2740c03649b7b8dbb218211556
697
hpp
C++
fk/framework/Updatable.hpp
yotsuashi/franken
ddc2872b85e2a64ad5d6725bcef3a8659dd73556
[ "MIT" ]
null
null
null
fk/framework/Updatable.hpp
yotsuashi/franken
ddc2872b85e2a64ad5d6725bcef3a8659dd73556
[ "MIT" ]
null
null
null
fk/framework/Updatable.hpp
yotsuashi/franken
ddc2872b85e2a64ad5d6725bcef3a8659dd73556
[ "MIT" ]
null
null
null
/***********************************************************************//** @file ***************************************************************************/ #pragma once namespace fk { namespace framework { /***********************************************************************//** @brief *********************...
697
697
0.220947
yotsuashi
a75527152b9efa1fee5894a42ae8e1a671c203ea
4,037
cpp
C++
cell_based/src/cell/cycle/CellCycleTimesGenerator.cpp
DGermano8/ChasteDom
539a3a811698214c0938489b0cfdffd1abccf667
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
cell_based/src/cell/cycle/CellCycleTimesGenerator.cpp
DGermano8/ChasteDom
539a3a811698214c0938489b0cfdffd1abccf667
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
cell_based/src/cell/cycle/CellCycleTimesGenerator.cpp
DGermano8/ChasteDom
539a3a811698214c0938489b0cfdffd1abccf667
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2005-2018, 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...
30.126866
141
0.735199
DGermano8
a755a172ea90e8de918f5c0b0abbeb0ccc2395f9
1,812
cpp
C++
Modules/IGT/TrackingDevices/mitkUnspecifiedTrackingTypeInformation.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2022-03-03T12:03:32.000Z
2022-03-03T12:03:32.000Z
Modules/IGT/TrackingDevices/mitkUnspecifiedTrackingTypeInformation.cpp
zhaomengxiao/MITK
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2021-12-22T10:19:02.000Z
2021-12-22T10:19:02.000Z
Modules/IGT/TrackingDevices/mitkUnspecifiedTrackingTypeInformation.cpp
zhaomengxiao/MITK_lancet
a09fd849a4328276806008bfa92487f83a9e2437
[ "BSD-3-Clause" ]
1
2020-11-27T09:41:18.000Z
2020-11-27T09:41:18.000Z
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
32.357143
130
0.710265
zhaomengxiao
a75719d75324f1dfad3493849f2fde60fe5deef4
502
hpp
C++
Helena/Util/Sleep.hpp
NIKEA-SOFT/HelenaFramework
4f443710e6a67242ddd4361f9c1a89e9d757c820
[ "MIT" ]
24
2020-08-17T21:49:38.000Z
2022-03-31T13:31:46.000Z
Helena/Util/Sleep.hpp
NIKEA-SOFT/HelenaFramework
4f443710e6a67242ddd4361f9c1a89e9d757c820
[ "MIT" ]
null
null
null
Helena/Util/Sleep.hpp
NIKEA-SOFT/HelenaFramework
4f443710e6a67242ddd4361f9c1a89e9d757c820
[ "MIT" ]
2
2021-04-21T09:27:03.000Z
2021-08-20T09:44:53.000Z
#ifndef HELENA_UTIL_SLEEP_HPP #define HELENA_UTIL_SLEEP_HPP #include <cstdint> #include <chrono> #include <thread> namespace Helena::Util { inline void Sleep(const std::uint64_t milliseconds) { std::this_thread::sleep_for(std::chrono::milliseconds(milliseconds)); } template <typename...
25.1
78
0.691235
NIKEA-SOFT
a7590b2f07b5bd576a96cb6468c5749a219b0b1b
7,595
hpp
C++
Ponce/include_IDA6.8/auto.hpp
fcccode/Ponce
fc25268592027af0c71c898f87a347418c5ad475
[ "BSL-1.0" ]
1
2019-12-30T00:19:08.000Z
2019-12-30T00:19:08.000Z
Ponce/include_IDA6.8/auto.hpp
ZhuHuiBeiShaDiao/Ponce
fc25268592027af0c71c898f87a347418c5ad475
[ "BSL-1.0" ]
null
null
null
Ponce/include_IDA6.8/auto.hpp
ZhuHuiBeiShaDiao/Ponce
fc25268592027af0c71c898f87a347418c5ad475
[ "BSL-1.0" ]
null
null
null
/* * Interactive disassembler (IDA). * Copyright (c) 1990-2015 Hex-Rays * ALL RIGHTS RESERVED. * */ #ifndef _AUTO_HPP #define _AUTO_HPP #include <ida.hpp> #pragma pack(push, 1) /*! \file auto.hpp \brief Functions that work with the autoanalyzer queue. The autoanalyzer works when IDA is not b...
29.784314
88
0.695984
fcccode
a759ee205b2a15cfa075abf5f5e6bf9110ab555f
1,216
cpp
C++
cpp/src/lights/lighting.cpp
LawrenceRafferty/ray-tracer-challenge
f54dfd4eb717e44c9e313be4bd28f8fad00094d0
[ "MIT" ]
null
null
null
cpp/src/lights/lighting.cpp
LawrenceRafferty/ray-tracer-challenge
f54dfd4eb717e44c9e313be4bd28f8fad00094d0
[ "MIT" ]
null
null
null
cpp/src/lights/lighting.cpp
LawrenceRafferty/ray-tracer-challenge
f54dfd4eb717e44c9e313be4bd28f8fad00094d0
[ "MIT" ]
null
null
null
#pragma once #include "./lighting.h" #include <cmath> using data_structures::color; using data_structures::four_tuple; using shapes::shape; namespace lights { color lighting( const shape & shape, const point_light & light, const four_tuple & point, const four_tuple & eyev, const four_tuple & normalv, bool isSh...
21.714286
75
0.705592
LawrenceRafferty
a75a5fccf9404e5f36b8769a9f3cee958130680b
2,873
cpp
C++
src/lldb/Bindings/SBLineEntryBinding.cpp
danielzfranklin/lldb-sys.rs
47c1673d131d4911b3cfdc8e6b2c7a300707314e
[ "Apache-2.0", "MIT" ]
null
null
null
src/lldb/Bindings/SBLineEntryBinding.cpp
danielzfranklin/lldb-sys.rs
47c1673d131d4911b3cfdc8e6b2c7a300707314e
[ "Apache-2.0", "MIT" ]
null
null
null
src/lldb/Bindings/SBLineEntryBinding.cpp
danielzfranklin/lldb-sys.rs
47c1673d131d4911b3cfdc8e6b2c7a300707314e
[ "Apache-2.0", "MIT" ]
null
null
null
//===-- SBLineEntryBinding.cpp ----------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
26.118182
105
0.740341
danielzfranklin