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
66ea04f83007fa91fd4f1792c8d814884fa254c1
414
cpp
C++
EU4toV3Tests/MapperTests/Buildings/BuildingTests.cpp
Idhrendur/EU4toVic3
b29ba8e59a3bd14af11fb6b30f4626cde7264a4f
[ "MIT" ]
42
2018-12-22T03:59:43.000Z
2022-02-03T10:45:42.000Z
EU4ToVic2Tests/MapperTests/Buildings/BuildingTests.cpp
IhateTrains/EU4toVic2
061f5e1a0bc1a1f3b54bdfe471b501260149b56b
[ "MIT" ]
336
2018-12-22T17:15:27.000Z
2022-03-02T11:19:32.000Z
EU4ToVic2Tests/MapperTests/Buildings/BuildingTests.cpp
klorpa/EU4toVic2
e3068eb2aa459f884c1929f162d0047a4cb5f4d4
[ "MIT" ]
56
2018-12-22T19:13:23.000Z
2022-01-01T23:08:53.000Z
#include "Buildings/Building.h" #include "gtest/gtest.h" TEST(Mappers_BuildingTests, costDefaultsToZero) { std::stringstream input; const mappers::Building theBuilding(input); ASSERT_EQ(0, theBuilding.getCost()); } TEST(Mappers_BuildingTests, costCanBeSet) { std::stringstream input; input << "cost = 100\n"; co...
20.7
48
0.753623
Idhrendur
66f4d7bd84527f44e681e88246d89d9e4ce0f1b7
2,466
cpp
C++
Day5/main.cpp
baldwinmatt/AoC-2020
718115341c7e5e62e37d77127b9241b177f37836
[ "Apache-2.0" ]
null
null
null
Day5/main.cpp
baldwinmatt/AoC-2020
718115341c7e5e62e37d77127b9241b177f37836
[ "Apache-2.0" ]
null
null
null
Day5/main.cpp
baldwinmatt/AoC-2020
718115341c7e5e62e37d77127b9241b177f37836
[ "Apache-2.0" ]
null
null
null
#include "aoc/helpers.h" #include <vector> namespace { using Result = std::pair<int, int>; using MappedFileSource = aoc::MappedFileSource<char>; using SeatMap = std::vector<bool>; constexpr std::string_view SampleInput(R"(FBFBBFFRLR BFFFBBFRRR FFFBBBFRRR BBFFBBFRLL)"); constexpr int SR_Part1 = 820; cons...
19.728
73
0.530819
baldwinmatt
66f515cbf2a1fcb2b2a97d4beb25aecb40ae9521
342,355
cxx
C++
core/sqf/monitor/linux/cluster.cxx
mashengchen/trafodion
4639458b029f46160228ae0de5dfcabf8c634265
[ "Apache-2.0" ]
null
null
null
core/sqf/monitor/linux/cluster.cxx
mashengchen/trafodion
4639458b029f46160228ae0de5dfcabf8c634265
[ "Apache-2.0" ]
null
null
null
core/sqf/monitor/linux/cluster.cxx
mashengchen/trafodion
4639458b029f46160228ae0de5dfcabf8c634265
[ "Apache-2.0" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////// // // @@@ START COPYRIGHT @@@ // // 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 o...
38.427994
236
0.484366
mashengchen
66fb78d629a16317d3b76e6d1886d86111dfc88c
224
cpp
C++
Source/Client/IM-Client/ATL_NetLib/SIDs.cpp
InstantBusinessNetwork/IBN
bbcf47de56bfc52049eeb2e46677642a28f38825
[ "MIT" ]
21
2015-07-22T15:22:41.000Z
2021-03-23T05:40:44.000Z
Source/Client/IM-Client/ATL_NetLib/SIDs.cpp
InstantBusinessNetwork/IBN
bbcf47de56bfc52049eeb2e46677642a28f38825
[ "MIT" ]
11
2015-10-19T07:54:10.000Z
2021-09-01T08:47:56.000Z
Source/Client/IM-Client/ATL_NetLib/SIDs.cpp
InstantBusinessNetwork/IBN
bbcf47de56bfc52049eeb2e46677642a28f38825
[ "MIT" ]
16
2015-07-22T15:23:09.000Z
2022-01-17T10:49:43.000Z
// SIDs.cpp : Implementation of CATL_NetLibApp and DLL registration. #include "stdafx.h" #include "ATL_NetLib.h" #include "SIDs.h" ///////////////////////////////////////////////////////////////////////////// //
22.4
78
0.441964
InstantBusinessNetwork
66fd3759ad2e5ab48e6c9848fa33c70dca0d9da6
2,269
cpp
C++
samples/threat_level/src/PostRadial.cpp
fallahn/crogine
f6cf3ade1f4e5de610d52e562bf43e852344bca0
[ "FTL", "Zlib" ]
41
2017-08-29T12:14:36.000Z
2022-02-04T23:49:48.000Z
samples/threat_level/src/PostRadial.cpp
fallahn/crogine
f6cf3ade1f4e5de610d52e562bf43e852344bca0
[ "FTL", "Zlib" ]
11
2017-09-02T15:32:45.000Z
2021-12-27T13:34:56.000Z
samples/threat_level/src/PostRadial.cpp
fallahn/crogine
f6cf3ade1f4e5de610d52e562bf43e852344bca0
[ "FTL", "Zlib" ]
5
2020-01-25T17:51:45.000Z
2022-03-01T05:20:30.000Z
/*----------------------------------------------------------------------- Matt Marchant 2017 http://trederia.blogspot.com crogine test application - Zlib license. 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 us...
28.3625
73
0.672543
fallahn
0f08eb14a62a1cd8d42aa72f393683beae0e0a85
5,632
cpp
C++
main.cpp
RedGuff/PseudoRandomPPM
65362bd9fce945043a1e3bf21dbd643500b898e9
[ "Unlicense" ]
1
2019-08-19T04:44:46.000Z
2019-08-19T04:44:46.000Z
main.cpp
RedGuff/PseudoRandomPPM
65362bd9fce945043a1e3bf21dbd643500b898e9
[ "Unlicense" ]
1
2019-09-05T04:22:25.000Z
2019-09-14T07:35:16.000Z
main.cpp
RedGuff/PseudoRandomPPM
65362bd9fce945043a1e3bf21dbd643500b898e9
[ "Unlicense" ]
null
null
null
// From scratch: initial https://github.com/RedGuff/PseudoRandomPPM can NOT ask the size of the image. #include <iostream> #include <time.h> #include <fstream> #include <string> #include <vector> #include <bits/stdc++.h> // ? #include <math.h> using namespace std; int errorfile = 0; // no error now. bool errBadVAlue (...
31.116022
144
0.550781
RedGuff
0f0b1e68fdc501c8161b61c6712b6b892b5a8627
7,575
hpp
C++
examples/pppbayestree/gpstk/RinexMetFilterOperators.hpp
shaolinbit/minisam_lib
e2e904d1b6753976de1dee102f0b53e778c0f880
[ "BSD-3-Clause" ]
104
2019-06-23T14:45:20.000Z
2022-03-20T12:45:29.000Z
examples/pppbayestree/gpstk/RinexMetFilterOperators.hpp
shaolinbit/minisam_lib
e2e904d1b6753976de1dee102f0b53e778c0f880
[ "BSD-3-Clause" ]
2
2019-06-28T08:23:23.000Z
2019-07-17T02:37:08.000Z
examples/pppbayestree/gpstk/RinexMetFilterOperators.hpp
shaolinbit/minisam_lib
e2e904d1b6753976de1dee102f0b53e778c0f880
[ "BSD-3-Clause" ]
28
2019-06-23T14:45:19.000Z
2022-03-20T12:45:24.000Z
#pragma ident "$Id$" /** * @file RinexMetFilterOperators.hpp * Operators for FileFilter using RINEX 2 & 3 Met file data. */ #ifndef GPSTK_RINEXMETFILTEROPERATORS_HPP #define GPSTK_RINEXMETFILTEROPERATORS_HPP //============================================================================ // // This file is part of...
31.5625
90
0.607921
shaolinbit
0f0b93d4f9c066a59e9a718e3e575d958cde1f6b
2,171
cpp
C++
src/libs/level3/theforge/src/utils.cpp
DeanoC/wyrd
50508dbe2427f1bd72a0ed03d7c7963cb74b37a7
[ "MIT" ]
null
null
null
src/libs/level3/theforge/src/utils.cpp
DeanoC/wyrd
50508dbe2427f1bd72a0ed03d7c7963cb74b37a7
[ "MIT" ]
null
null
null
src/libs/level3/theforge/src/utils.cpp
DeanoC/wyrd
50508dbe2427f1bd72a0ed03d7c7963cb74b37a7
[ "MIT" ]
null
null
null
#include "core/core.h" #include "theforge/renderer.hpp" #include "utils.hpp" namespace TheForge { void AllocatorUint32ToStr(char *outStr, size_t strLen, uint32_t num) { char *p; /* pointer to traverse string */ char *firstdig; /* pointer to first digit */ char temp; /* temp char */ uint32_t val ...
28.565789
70
0.557347
DeanoC
0f129c88e66fa767905a36210144af988f2c163f
4,015
cpp
C++
source/core/camera/camerafrustum.cpp
lukaklar/Khan-Engine
2496366759649d282d725fa637b25fb1e0d4fdfa
[ "Apache-2.0" ]
null
null
null
source/core/camera/camerafrustum.cpp
lukaklar/Khan-Engine
2496366759649d282d725fa637b25fb1e0d4fdfa
[ "Apache-2.0" ]
null
null
null
source/core/camera/camerafrustum.cpp
lukaklar/Khan-Engine
2496366759649d282d725fa637b25fb1e0d4fdfa
[ "Apache-2.0" ]
null
null
null
#include "core/precomp.h" #include "core/camera/camerafrustum.hpp" #include "core/boundingvolume.h" namespace Khan { inline static glm::vec4 GetNormalizedPlane(const glm::vec4& plane) { float length3 = glm::sqrt(plane.x * plane.x + plane.y * plane.y + plane.z * plane.z); return plane / length3; } void CameraF...
30.884615
151
0.64807
lukaklar
0f12ce02356aaf0d5a96ff38f6408f83b39d344d
403
cpp
C++
UVA-10104.cpp
qgatn/UVa
6b6badc5d988a3828184141ed026970df28b4cd1
[ "MIT" ]
null
null
null
UVA-10104.cpp
qgatn/UVa
6b6badc5d988a3828184141ed026970df28b4cd1
[ "MIT" ]
null
null
null
UVA-10104.cpp
qgatn/UVa
6b6badc5d988a3828184141ed026970df28b4cd1
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; #define ll long long ll x, y, d; void eeu(ll a, ll b) { if (b == 0) { x = 1; y = 0; d = a; } else { eeu(b, a % b); ll x1 = y; ll y1 = x - (a / b) * y; x = x1; y = y1; } } int main() { ll a, b; while (ci...
11.194444
45
0.384615
qgatn
0f1412caeff730cbecd3f3f9c4a0cca5a4c616d2
1,379
hpp
C++
include/model/Logic.hpp
pinam45/MagicPlayer
963549c88cf3c7f6b1b6b62c556ea2adaa40634e
[ "MIT" ]
3
2019-04-16T06:47:43.000Z
2020-10-14T07:52:24.000Z
include/model/Logic.hpp
pinam45/MagicPlayer
963549c88cf3c7f6b1b6b62c556ea2adaa40634e
[ "MIT" ]
null
null
null
include/model/Logic.hpp
pinam45/MagicPlayer
963549c88cf3c7f6b1b6b62c556ea2adaa40634e
[ "MIT" ]
null
null
null
// // Copyright (c) 2018 Maxime Pinard // // Distributed under the MIT license // See accompanying file LICENSE or copy at // https://opensource.org/licenses/MIT // #ifndef MAGICPLAYER_LOGIC_HPP #define MAGICPLAYER_LOGIC_HPP #include "model/Messages.hpp" #include "data/Database.hpp" #include "data/DataManager.hpp" #in...
20.58209
72
0.749094
pinam45
0f141e5f4e471da649bd4d4885d50cd6dfc1d4ff
2,148
cpp
C++
src/lib/support/LifetimePersistedCounter.cpp
hrishikesh-amzn/connectedhomeip
6ed99f4234dcefc16362daecdcdbd243feebb77a
[ "Apache-2.0" ]
14
2021-06-23T19:52:29.000Z
2022-03-31T14:14:03.000Z
src/lib/support/LifetimePersistedCounter.cpp
hrishikesh-amzn/connectedhomeip
6ed99f4234dcefc16362daecdcdbd243feebb77a
[ "Apache-2.0" ]
2
2021-04-26T10:51:20.000Z
2021-04-26T10:52:09.000Z
src/lib/support/LifetimePersistedCounter.cpp
hrishikesh-amzn/connectedhomeip
6ed99f4234dcefc16362daecdcdbd243feebb77a
[ "Apache-2.0" ]
7
2021-08-14T04:36:31.000Z
2022-03-31T10:39:09.000Z
/* * * Copyright (c) 2021 Project CHIP 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...
29.833333
106
0.73324
hrishikesh-amzn
0f1686f079fcc180eb15715d7b988f2020dd6c52
2,078
cpp
C++
codetop/Leetcode39.cpp
Aged-cat/interview_codehub
0d915934a8d89a10943ef3e0ba8e528948433578
[ "MIT" ]
2
2021-09-06T06:47:34.000Z
2022-02-21T04:43:23.000Z
codetop/Leetcode39.cpp
Aged-cat/interview_codehub
0d915934a8d89a10943ef3e0ba8e528948433578
[ "MIT" ]
null
null
null
codetop/Leetcode39.cpp
Aged-cat/interview_codehub
0d915934a8d89a10943ef3e0ba8e528948433578
[ "MIT" ]
null
null
null
#include<iostream> #include<vector> #include<algorithm> using namespace std; // vector<vector<int>>ans; // void DFS(vector<int>& candidates,int target,vector<int>&temp,int index) // { // if(target==0) // { // ans.push_back(temp); // return; // } // for(int i=index;i<candidates.size();+...
20.989899
74
0.54283
Aged-cat
0f203c35c549dac2849ade42d10a8b54a841c273
13,469
cpp
C++
RenderCore/Assets/MaterialCompiler.cpp
pocketgems/XLE2
82771e9ab1fc3b12927f1687bbe05d4f7dce8765
[ "MIT" ]
3
2018-05-17T08:39:39.000Z
2020-12-09T13:20:26.000Z
RenderCore/Assets/MaterialCompiler.cpp
pocketgems/XLE2
82771e9ab1fc3b12927f1687bbe05d4f7dce8765
[ "MIT" ]
null
null
null
RenderCore/Assets/MaterialCompiler.cpp
pocketgems/XLE2
82771e9ab1fc3b12927f1687bbe05d4f7dce8765
[ "MIT" ]
1
2021-11-14T08:50:15.000Z
2021-11-14T08:50:15.000Z
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #include "MaterialCompiler.h" #include "RawMaterial.h" #include "MaterialScaffold.h" #include "../../Assets/CompilationThread.h" #include "../...
43.031949
165
0.698047
pocketgems
0f22faf9a569553a0dbf761f52f7305ac1e33784
274
hpp
C++
include/math.hpp
baillyjamy/Nano-Swarm
1c8afb2d7da8b91b98036e17e048bd23f23935fe
[ "MIT" ]
8
2017-01-21T03:45:33.000Z
2017-01-26T13:54:27.000Z
include/math.hpp
baillyjamy/Nano-Swarm
1c8afb2d7da8b91b98036e17e048bd23f23935fe
[ "MIT" ]
null
null
null
include/math.hpp
baillyjamy/Nano-Swarm
1c8afb2d7da8b91b98036e17e048bd23f23935fe
[ "MIT" ]
null
null
null
#ifndef MATH_HPP # define MATH_HPP # include "vect.hpp" namespace math { template<class T> constexpr Vect<2u, T> complexProduct(Vect<2u, T> a, Vect<2u, T> b) { return Vect<2u, T>{a[0] * b[0] - a[1] * b[1], a[0] * b[1] + a[1] * b[0]}; } }; #endif // !MATH_HPP
17.125
77
0.572993
baillyjamy
0f24e7d05863a4e8bf596830c973f3aa193406e4
261
cpp
C++
source/aufgabe-1-9.cpp
GottaGoGitHub/programmiersprachen-abgabe-1
f1707ef3fecd84105f754c206497a4fb350b1c86
[ "MIT" ]
null
null
null
source/aufgabe-1-9.cpp
GottaGoGitHub/programmiersprachen-abgabe-1
f1707ef3fecd84105f754c206497a4fb350b1c86
[ "MIT" ]
null
null
null
source/aufgabe-1-9.cpp
GottaGoGitHub/programmiersprachen-abgabe-1
f1707ef3fecd84105f754c206497a4fb350b1c86
[ "MIT" ]
null
null
null
#include <iostream> unsigned int checksum(unsigned int zahl){ if(zahl < 10){ return zahl; } else{ return zahl%10 + checksum(zahl/10); } } //test befindet sich in tests.cpp int main(){ std::cout << checksum(120232) << "\n"; return 0; }
16.3125
42
0.609195
GottaGoGitHub
0f252bd63260e30773a083db68e245f694b259aa
6,076
cpp
C++
test/ShaderWriter/TestWriterConstantDeclarations.cpp
Praetonus/ShaderWriter
1c5b3961e3e1b91cb7158406998519853a4add07
[ "MIT" ]
null
null
null
test/ShaderWriter/TestWriterConstantDeclarations.cpp
Praetonus/ShaderWriter
1c5b3961e3e1b91cb7158406998519853a4add07
[ "MIT" ]
null
null
null
test/ShaderWriter/TestWriterConstantDeclarations.cpp
Praetonus/ShaderWriter
1c5b3961e3e1b91cb7158406998519853a4add07
[ "MIT" ]
null
null
null
#include "../Common.hpp" #include "WriterCommon.hpp" namespace { void dummyMain( sdw::ShaderWriter & writer ) { writer.implementFunction< sdw::Void >( "main" , []() { } ); } template< typename T > void simpleMain( sdw::ShaderWriter & writer , T const & value ) { writer.implementFunction< sdw::Voi...
36.166667
107
0.651415
Praetonus
0f2652ca85fc44e79e784f2cad4d92485f2284df
1,077
cpp
C++
src/test/logging/user_filter_test.cpp
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
src/test/logging/user_filter_test.cpp
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
src/test/logging/user_filter_test.cpp
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
#include <Python.h> #include <boost/test/unit_test.hpp> #include <ackward/logging/UserFilter.hpp> #include "../util.hpp" #include "LoggerFixture.hpp" #include "PushBackHandler.hpp" namespace { // Only passes messages with an even level struct EvenLevelFilterImpl { int filter(const LogRecord& lr) { ...
19.944444
56
0.679666
abingham
0f2a1c98b385b31e07a7432e6ae12c503a229e45
373
cc
C++
lib/xdrpp/tests/types.cc
KoriCommunity/KORI
4d76c7f68ba5f62b1be38a31d0282e6c4a54ce0e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSL-1.0", "BSD-3-Clause" ]
11
2015-01-20T13:35:38.000Z
2021-07-11T06:01:19.000Z
lib/xdrpp/tests/types.cc
KoriCommunity/KORI
4d76c7f68ba5f62b1be38a31d0282e6c4a54ce0e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSL-1.0", "BSD-3-Clause" ]
24
2015-04-09T21:07:16.000Z
2021-09-17T05:03:55.000Z
lib/xdrpp/tests/types.cc
KoriCommunity/KORI
4d76c7f68ba5f62b1be38a31d0282e6c4a54ce0e
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSL-1.0", "BSD-3-Clause" ]
14
2015-01-21T19:33:34.000Z
2021-06-02T19:57:01.000Z
#include <iomanip> #include <iostream> #include <xdrpp/printer.h> #include "tests/xdrtest.hh" using namespace std; using namespace xdr; int main() { { uptr b(false); { uptr a(true); cout << "created" << endl; b = a; cout << "assigned" << endl; } cout << "destroyed a" << endl;...
14.346154
34
0.552279
KoriCommunity
0f2c41e69e90f4b7a1e4715326a8ade19e231b03
642
hpp
C++
include/tao/json/cbor/internal/major.hpp
robinchrist/json
99c57818ba1644a58f0535ff3e98bd2ae0e75b52
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
include/tao/json/cbor/internal/major.hpp
robinchrist/json
99c57818ba1644a58f0535ff3e98bd2ae0e75b52
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
include/tao/json/cbor/internal/major.hpp
robinchrist/json
99c57818ba1644a58f0535ff3e98bd2ae0e75b52
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
// Copyright (c) 2017-2019 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/json/ #ifndef TAO_JSON_CBOR_INTERNAL_MAJOR_HPP #define TAO_JSON_CBOR_INTERNAL_MAJOR_HPP #include <cstdint> namespace tao::json::cbor::internal { enum class major : std::uint8_t { ...
22.137931
74
0.669782
robinchrist
0f2d0a7e6cabb03a0f851cebb906831f97b45f43
1,387
cpp
C++
src/transport/udp-message.cpp
tdinucci/packet-sniffer
b8921e07b7fcdcd676e5624f9a8372360aedfa4a
[ "MIT" ]
null
null
null
src/transport/udp-message.cpp
tdinucci/packet-sniffer
b8921e07b7fcdcd676e5624f9a8372360aedfa4a
[ "MIT" ]
null
null
null
src/transport/udp-message.cpp
tdinucci/packet-sniffer
b8921e07b7fcdcd676e5624f9a8372360aedfa4a
[ "MIT" ]
null
null
null
#include <cstdint> #include <sstream> #include <stdexcept> #include "../util.h" #include "udp-message.h" using namespace std; using namespace sniff; UdpMessage::UdpMessage(vector<uint8_t>& message) { auto msg_iter = message.begin(); source_port = ntohs(msg_iter); dest_port = ntohs(msg_iter + 2); len...
27.196078
73
0.664744
tdinucci
0f2e19fa7ac00bef0250da29c39d4ba4783b190b
313
hpp
C++
OpenCLMocker/src/include/OpenCLMocker/Buffer.hpp
DrizztDoUrden/OpenCLMocker
f3382ce780483f2af9c44b112ee76a2d374f097c
[ "MIT" ]
null
null
null
OpenCLMocker/src/include/OpenCLMocker/Buffer.hpp
DrizztDoUrden/OpenCLMocker
f3382ce780483f2af9c44b112ee76a2d374f097c
[ "MIT" ]
null
null
null
OpenCLMocker/src/include/OpenCLMocker/Buffer.hpp
DrizztDoUrden/OpenCLMocker
f3382ce780483f2af9c44b112ee76a2d374f097c
[ "MIT" ]
null
null
null
#pragma once #include <OpenCLMocker/ForbidCopy.hpp> #include <OpenCLMocker/MapToCl.hpp> #include <OpenCLMocker/Retainable.hpp> #include <CL/cl.h> namespace OpenCL { class Buffer : public Retainable { ForbidCopy(Buffer); public: Buffer() = default; }; } MapToCl(OpenCL::Buffer, cl_mem)
14.904762
38
0.693291
DrizztDoUrden
0f303fc6570d008ef415aa60eb106a8a8c7ff614
4,961
hh
C++
src/Core/HashMap.hh
alexanderrichard/squirrel
12614a9eb429500c8f341654043f33a1b6bd1d31
[ "AFL-3.0" ]
63
2016-07-08T13:35:27.000Z
2021-01-13T18:37:13.000Z
src/Core/HashMap.hh
alexanderrichard/squirrel
12614a9eb429500c8f341654043f33a1b6bd1d31
[ "AFL-3.0" ]
4
2017-08-04T09:25:10.000Z
2022-02-24T15:38:52.000Z
src/Core/HashMap.hh
alexanderrichard/squirrel
12614a9eb429500c8f341654043f33a1b6bd1d31
[ "AFL-3.0" ]
30
2016-05-11T02:24:46.000Z
2021-11-12T14:06:20.000Z
/* * Copyright 2016 Alexander Richard * * This file is part of Squirrel. * * Licensed under the Academic Free License 3.0 (the "License"). * You may not use this file except in compliance with the License. * You should have received a copy of the License along with Squirrel. * If not, see <https://opensource.or...
25.441026
113
0.65511
alexanderrichard
0f33580c9a329d7a30acf2eb65c3713934c2098f
3,773
cpp
C++
Plugins/Renderer/plugins.cpp
anchurcn/MetaHookSv
8408f57d5abb2109285ed9f7897e3a0776e51c87
[ "MIT" ]
null
null
null
Plugins/Renderer/plugins.cpp
anchurcn/MetaHookSv
8408f57d5abb2109285ed9f7897e3a0776e51c87
[ "MIT" ]
null
null
null
Plugins/Renderer/plugins.cpp
anchurcn/MetaHookSv
8408f57d5abb2109285ed9f7897e3a0776e51c87
[ "MIT" ]
null
null
null
#include <metahook.h> #include "gl_local.h" #include "exportfuncs.h" #include <IRenderer.h> cl_exportfuncs_t gExportfuncs; mh_interface_t *g_pInterface; metahook_api_t *g_pMetaHookAPI; mh_enginesave_t *g_pMetaSave; IFileSystem *g_pFileSystem; HINSTANCE g_hInstance, g_hThisModule, g_hEngineModule; PVOID g_dwEngineBase...
26.201389
123
0.774715
anchurcn
0f36aaaf148229a25ebf9211ca6ae8f29cc07422
2,245
cpp
C++
src_rebuild/utils/audio_source/snd_wav_cache.cpp
nahimr/REDRIVER2
dbe4e8999338da07dc69aa58691cd66e0532c191
[ "MIT" ]
681
2020-11-04T17:18:10.000Z
2022-03-30T05:14:25.000Z
src_rebuild/utils/audio_source/snd_wav_cache.cpp
nahimr/REDRIVER2
dbe4e8999338da07dc69aa58691cd66e0532c191
[ "MIT" ]
147
2020-11-03T08:35:42.000Z
2022-03-28T23:10:18.000Z
src_rebuild/utils/audio_source/snd_wav_cache.cpp
nahimr/REDRIVER2
dbe4e8999338da07dc69aa58691cd66e0532c191
[ "MIT" ]
63
2020-11-08T20:21:00.000Z
2022-03-29T21:25:15.000Z
#include "snd_wav_cache.h" #include <malloc.h> #include <string.h> bool CSoundSource_WaveCache::Load(const char* szFilename) { CRIFF_Parser reader( szFilename ); while ( reader.GetName( ) ) { ParseChunk( reader ); reader.ChunkNext(); } reader.ChunkClose(); return m_numSamples > 0; } void CSoundSource_Wav...
19.867257
97
0.655234
nahimr
0f407a226dabe1a9e69d80f56620a26cc05e98a7
62,554
cc
C++
src/lib/dhcpsrv/tests/shared_network_unittest.cc
piskyscan/kea
72c0a679a1101aada8d22c98abf7bde615fa7a11
[ "Apache-2.0" ]
null
null
null
src/lib/dhcpsrv/tests/shared_network_unittest.cc
piskyscan/kea
72c0a679a1101aada8d22c98abf7bde615fa7a11
[ "Apache-2.0" ]
null
null
null
src/lib/dhcpsrv/tests/shared_network_unittest.cc
piskyscan/kea
72c0a679a1101aada8d22c98abf7bde615fa7a11
[ "Apache-2.0" ]
null
null
null
// Copyright (C) 2017-2020 Internet Systems Consortium, Inc. ("ISC") // // 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/. #include <config.h> #include <asiolink/io_ad...
41.42649
100
0.64824
piskyscan
0f41dd52562b99a2474c24b73bc75ddcf717c1e7
1,042
hpp
C++
include/platform/internal/list/merge_type.hpp
vladankor/types_library
9f0f64946b621c447c5f72a6df34ced9438b1ff2
[ "MIT" ]
null
null
null
include/platform/internal/list/merge_type.hpp
vladankor/types_library
9f0f64946b621c447c5f72a6df34ced9438b1ff2
[ "MIT" ]
null
null
null
include/platform/internal/list/merge_type.hpp
vladankor/types_library
9f0f64946b621c447c5f72a6df34ced9438b1ff2
[ "MIT" ]
null
null
null
// ---------------------------------------------------------------------------- // Copyright (C) 2019 Korobov Vladislav // ---------------------------------------------------------------------------- #pragma once //- platform ------------------------------------------------------------------ #include <platform/intern...
32.5625
79
0.386756
vladankor
0f43740976b732114061ba2706608ee4d8cb78a9
6,268
cxx
C++
lab02/lab_2.2.cxx
coallege/Wi21.CIS.D022B.02Z
bc1b55acbc8b0505d89532fc00a55bd5a95efff1
[ "MIT" ]
null
null
null
lab02/lab_2.2.cxx
coallege/Wi21.CIS.D022B.02Z
bc1b55acbc8b0505d89532fc00a55bd5a95efff1
[ "MIT" ]
null
null
null
lab02/lab_2.2.cxx
coallege/Wi21.CIS.D022B.02Z
bc1b55acbc8b0505d89532fc00a55bd5a95efff1
[ "MIT" ]
null
null
null
/* Cole Gannon Winter 2021 Lab 02 Problem 2.2 Description of problem: Take user input and store it in a Cargo/Cargo class. Then output the class contents. */ #include <cstdint> #include <cstdlib> #include <cctype> #include <string> #include <iostream> using namespace std; class Cargo { // Static stuff that needs to b...
27.134199
86
0.688417
coallege
0f4464c14c4b109de8831d5a4df7e92e7114029d
23,546
cpp
C++
openstudiocore/src/energyplus/Test/ForwardTranslator_GTest.cpp
bobzabcik/OpenStudio
858321dc0ad8d572de15858d2ae487b029a8d847
[ "blessing" ]
null
null
null
openstudiocore/src/energyplus/Test/ForwardTranslator_GTest.cpp
bobzabcik/OpenStudio
858321dc0ad8d572de15858d2ae487b029a8d847
[ "blessing" ]
null
null
null
openstudiocore/src/energyplus/Test/ForwardTranslator_GTest.cpp
bobzabcik/OpenStudio
858321dc0ad8d572de15858d2ae487b029a8d847
[ "blessing" ]
null
null
null
/********************************************************************** * Copyright (c) 2008-2013, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
40.044218
158
0.736558
bobzabcik
0f4874d2fd76c403743916d6909757445cbd17ba
7,496
tpp
C++
aslam_incremental_calibration/incremental_calibration/include/aslam/calibration/statistics/NormalDistributionMv.tpp
mmmspatz/kalibr
e2e881e5d25d378f0c500c67e00532ee1c1082fd
[ "BSD-4-Clause" ]
null
null
null
aslam_incremental_calibration/incremental_calibration/include/aslam/calibration/statistics/NormalDistributionMv.tpp
mmmspatz/kalibr
e2e881e5d25d378f0c500c67e00532ee1c1082fd
[ "BSD-4-Clause" ]
null
null
null
aslam_incremental_calibration/incremental_calibration/include/aslam/calibration/statistics/NormalDistributionMv.tpp
mmmspatz/kalibr
e2e881e5d25d378f0c500c67e00532ee1c1082fd
[ "BSD-4-Clause" ]
null
null
null
/****************************************************************************** * Copyright (C) 2013 by Jerome Maye * * jerome.maye@gmail.com * * * ...
36.21256
80
0.541889
mmmspatz
0f4b05ef6071715fd39654840495125f833cc709
3,389
cc
C++
fechas/src/fechas.cc
ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-JonayVE-ull
380168a7f9b98cc3e31f9760754ef457f56e63fd
[ "MIT" ]
null
null
null
fechas/src/fechas.cc
ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-JonayVE-ull
380168a7f9b98cc3e31f9760754ef457f56e63fd
[ "MIT" ]
null
null
null
fechas/src/fechas.cc
ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-JonayVE-ull
380168a7f9b98cc3e31f9760754ef457f56e63fd
[ "MIT" ]
null
null
null
/** * Universidad de La Laguna * Escuela Superior de Ingeniería y Tecnología * Grado en Ingeniería Informática * Informática Básica * * @author F. de Sande * @date 7.nov.2020 * @brief Cada nuevo término de la serie de Fibonacci se genera sumando los dos anteriores. * Comenzando con 0 y 1, los primeros ...
25.674242
104
0.505754
ULL-ESIT-IB-2020-2021
0f4b91d0ceff7e20c14dd78307c0638b8503cba3
1,407
cpp
C++
Codeforces/Contest 1613/1613A.cpp
Sansiff/Coding-Practice
b76f5a403c478abedc7bf22acb314b6cebb538ea
[ "MIT" ]
1
2021-09-14T11:25:21.000Z
2021-09-14T11:25:21.000Z
Codeforces/Contest 1613/1613A.cpp
Sansiff/Coding-Practice
b76f5a403c478abedc7bf22acb314b6cebb538ea
[ "MIT" ]
null
null
null
Codeforces/Contest 1613/1613A.cpp
Sansiff/Coding-Practice
b76f5a403c478abedc7bf22acb314b6cebb538ea
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define int long long #define lowbit(x) (x&-x) #define rep(i, l, r) for(int i = l; i < r; i ++) #define all(x) (x).begin(),(x).end() #define fi first #define se second using namespace std; typedef long long LL; typedef pair<int,int> PII; typedef vector<int> VI; int qpow(int a, int b, int p){ ...
24.258621
53
0.428571
Sansiff
0f4e841d8e34b7fe1dd388b318cd85b2e3e34c8c
6,664
cpp
C++
wxump/TakuInfo.cpp
fuzz-inc/wxump
0f178b65670ec51e5e3d1eb498326f8b98ef13a7
[ "BSD-3-Clause" ]
null
null
null
wxump/TakuInfo.cpp
fuzz-inc/wxump
0f178b65670ec51e5e3d1eb498326f8b98ef13a7
[ "BSD-3-Clause" ]
null
null
null
wxump/TakuInfo.cpp
fuzz-inc/wxump
0f178b65670ec51e5e3d1eb498326f8b98ef13a7
[ "BSD-3-Clause" ]
1
2018-06-28T10:52:49.000Z
2018-06-28T10:52:49.000Z
/* Copyright 2016 fuzz, Inc. All rights reserved. http://www.fuzz.co.jp Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditio...
38.97076
77
0.483343
fuzz-inc
0f53b624fb2ef029b4b5336bd14f95577c30a9f9
104,513
cpp
C++
src/lib/conversion.cpp
rosasurfer/mt4-expander
dc2fb04aaaa62f4ba575d7c16a266169daac417a
[ "WTFPL" ]
25
2017-02-16T16:58:18.000Z
2021-12-06T06:42:54.000Z
src/lib/conversion.cpp
rosasurfer/mt4-expander
dc2fb04aaaa62f4ba575d7c16a266169daac417a
[ "WTFPL" ]
5
2016-12-13T05:58:11.000Z
2020-09-23T17:49:33.000Z
src/lib/conversion.cpp
rosasurfer/mt4-expander
dc2fb04aaaa62f4ba575d7c16a266169daac417a
[ "WTFPL" ]
26
2017-02-08T13:34:28.000Z
2022-03-12T10:53:41.000Z
#include "expander.h" #include "lib/conversion.h" #include "lib/format.h" #include "lib/string.h" /** * Return a description of a Strategy Tester's bar model id. * * @param int id * * @return char* - description or NULL if the parameter is invalid */ const char* WINAPI BarModelDescription(int id) { switch (...
85.386438
202
0.4549
rosasurfer
0f5417745f99832702a320b5af3c6837a164dde6
2,964
cpp
C++
Source/IDE/src/Forms/AssetForm.cpp
DatZach/Swift
b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7
[ "MIT" ]
null
null
null
Source/IDE/src/Forms/AssetForm.cpp
DatZach/Swift
b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7
[ "MIT" ]
null
null
null
Source/IDE/src/Forms/AssetForm.cpp
DatZach/Swift
b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7
[ "MIT" ]
1
2021-10-30T20:43:01.000Z
2021-10-30T20:43:01.000Z
/* * AssetForm.cpp * Asset Form */ #include <QCloseEvent> #include <MainWindow.hpp> #include <Forms/AssetForm.hpp> extern MainWindow* mainWindow; AssetLink::AssetLink(ProjectAsset* asset) : asset(asset), tabItem(nullptr), treeItem(nullptr), opened(false) { } ProjectAssetType AssetLink::G...
22.285714
94
0.620445
DatZach
0f5552487bd16f4c729e5e3557ec98aef5ef5d0f
11,918
hpp
C++
src/calculate_dlog.hpp
yuchen1024/InnerProduct_FE
495e98c9cd147cc11e04f7d7c7225ca93ebca804
[ "MIT" ]
1
2022-01-16T11:39:53.000Z
2022-01-16T11:39:53.000Z
src/calculate_dlog.hpp
yuchen1024/InnerProduct_FE
495e98c9cd147cc11e04f7d7c7225ca93ebca804
[ "MIT" ]
null
null
null
src/calculate_dlog.hpp
yuchen1024/InnerProduct_FE
495e98c9cd147cc11e04f7d7c7225ca93ebca804
[ "MIT" ]
null
null
null
/**************************************************************************** this hpp implements DLOG algorithm ***************************************************************************** * @author This file is part of PGC, developed by Yu Chen * @paper https://eprint.iacr.org/2019/319 * @copyright MIT li...
36.335366
130
0.612267
yuchen1024
0f56511f7ee555f82b5ffba3c3574cba6d4cc58b
318
hpp
C++
include/utils.hpp
Aritzherrero4/fsCheckDaemon
3cad10938ce0d14ff70490ca4bc3df742eb974c9
[ "MIT" ]
null
null
null
include/utils.hpp
Aritzherrero4/fsCheckDaemon
3cad10938ce0d14ff70490ca4bc3df742eb974c9
[ "MIT" ]
null
null
null
include/utils.hpp
Aritzherrero4/fsCheckDaemon
3cad10938ce0d14ff70490ca4bc3df742eb974c9
[ "MIT" ]
null
null
null
#ifndef UTILS_HPP #define UTILS_HPP #include <filesystem> #include <iostream> #include <fstream> #include <algorithm> #include <string.h> namespace fs = std::filesystem; extern "C" int getPathFromConfig(fs::path configFile, fs::path *cp); extern "C" int getHashModeFromConfig(fs::path configFile, int *mode); #endif
22.714286
69
0.754717
Aritzherrero4
0f57a8dc7738551037e014864bc2e9ea775e74f1
432
cpp
C++
src/utility/Maths.cpp
noasoder/VulkanEngine
c5cde80bb62df4ead23c55b70d0149949d1e4d9e
[ "MIT" ]
1
2022-01-23T14:28:56.000Z
2022-01-23T14:28:56.000Z
src/utility/Maths.cpp
noasoder/VulkanEngine
c5cde80bb62df4ead23c55b70d0149949d1e4d9e
[ "MIT" ]
1
2021-11-07T22:33:36.000Z
2021-11-07T22:33:36.000Z
src/utility/Maths.cpp
noasoder/VulkanEngine
c5cde80bb62df4ead23c55b70d0149949d1e4d9e
[ "MIT" ]
null
null
null
#include "Maths.h" #include "Types.h" float Dot(Vec3 rVec1, Vec3 rVec2) { float dot = 0.0f; dot = rVec1.x * rVec2.x + rVec1.y * rVec2.y + rVec1.z * rVec2.z; return dot; } float Random(float min, float max) { float result = min + static_cast <float> (rand()) / (static_cast <float> (RAND_MAX / (max - min))); re...
18
100
0.625
noasoder
0f5b0b4f0cd7b366d795db7dbeb99e4ecd28af88
6,015
cpp
C++
engine/lib_tile_level_loader/LevelSystem.cpp
alexbarker/soc10101_honours_project
c29c10f0e5d7bed50819c948f841dd97e7d68809
[ "MIT" ]
null
null
null
engine/lib_tile_level_loader/LevelSystem.cpp
alexbarker/soc10101_honours_project
c29c10f0e5d7bed50819c948f841dd97e7d68809
[ "MIT" ]
null
null
null
engine/lib_tile_level_loader/LevelSystem.cpp
alexbarker/soc10101_honours_project
c29c10f0e5d7bed50819c948f841dd97e7d68809
[ "MIT" ]
null
null
null
#include "LevelSystem.h" #include <fstream> using namespace std; using namespace sf; std::map<LevelSystem::Tile, sf::Color> LevelSystem::_colours{ { WALL, Color::White }, { END, Color::Red }, { ENDGAME, Color::Blue } }; sf::Color LevelSystem::getColor(LevelSystem::Tile t) { auto it = _colours.find(t); if (it ==...
23.869048
75
0.598005
alexbarker
0f6395ab51934bb10156267dd9553e3992fca5c9
2,693
inl
C++
glm/glm/detail/func_geometric_simd.inl
gregsimon/shaderharness
22e7229c490bbca1a9cce4426f64a784edf6e8cf
[ "BSD-3-Clause" ]
1,851
2017-03-24T00:08:21.000Z
2022-03-29T21:14:30.000Z
glm/glm/detail/func_geometric_simd.inl
gregsimon/shaderharness
22e7229c490bbca1a9cce4426f64a784edf6e8cf
[ "BSD-3-Clause" ]
964
2017-03-24T01:20:31.000Z
2022-03-28T14:18:30.000Z
glm/glm/detail/func_geometric_simd.inl
gregsimon/shaderharness
22e7229c490bbca1a9cce4426f64a784edf6e8cf
[ "BSD-3-Clause" ]
458
2017-05-17T09:04:01.000Z
2022-03-31T11:52:07.000Z
/// @ref core /// @file glm/detail/func_geometric_simd.inl #include "../simd/geometric.h" #if GLM_ARCH & GLM_ARCH_SSE2_BIT namespace glm{ namespace detail { template <precision P> struct compute_length<tvec4, float, P, true> { GLM_FUNC_QUALIFIER static float call(tvec4<float, P> const & v) { ...
26.93
130
0.6658
gregsimon
0f681f8f2df4d28d670615a3c47480b80d9f6681
3,673
cc
C++
libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.cc
sarthak-saxena/cef_node_webkit
cca786066cdc635d2bcfb67315a70a1c40c5d77a
[ "BSD-3-Clause" ]
1,686
2017-04-02T19:51:57.000Z
2022-03-31T10:08:40.000Z
libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.cc
sarthak-saxena/cef_node_webkit
cca786066cdc635d2bcfb67315a70a1c40c5d77a
[ "BSD-3-Clause" ]
16
2017-04-21T12:05:52.000Z
2022-03-01T23:15:13.000Z
libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.cc
sarthak-saxena/cef_node_webkit
cca786066cdc635d2bcfb67315a70a1c40c5d77a
[ "BSD-3-Clause" ]
343
2017-04-21T11:20:31.000Z
2022-03-31T07:47:25.000Z
// Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by the CEF translato...
34.980952
86
0.756874
sarthak-saxena
0f68f84265bb0e1a6733da307f2ab4f625f571bd
2,172
cpp
C++
src/mainlib/gui/objects/NoteRenderable.cpp
priera/aixa
faa5d9cd99fcec47703f2b82a64b465dbc4fd3bc
[ "MIT" ]
null
null
null
src/mainlib/gui/objects/NoteRenderable.cpp
priera/aixa
faa5d9cd99fcec47703f2b82a64b465dbc4fd3bc
[ "MIT" ]
3
2021-05-12T08:45:11.000Z
2021-05-12T09:09:25.000Z
src/mainlib/gui/objects/NoteRenderable.cpp
priera/aixa
faa5d9cd99fcec47703f2b82a64b465dbc4fd3bc
[ "MIT" ]
null
null
null
#include "NoteRenderable.h" using namespace std::chrono_literals; NoteRenderable::NoteRenderable(QOpenGLShaderProgram &program, Dimensions dim) : RenderableObject(program, dim), charText(nullptr) {} void NoteRenderable::updateOnCharData() { angle = 0.0; } void NoteRenderable::setCharacterText(Texture &charTex) ...
29.351351
100
0.679098
priera
0f6bd080938b62238de2cb2580574745c0cb0744
4,395
cpp
C++
REST/main.cpp
NuLL3rr0r/runner-game-leaderboard-rest
6568c08e22518e486dae1cc46924153668be96c2
[ "MIT", "Unlicense" ]
1
2022-01-22T09:49:42.000Z
2022-01-22T09:49:42.000Z
REST/main.cpp
NuLL3rr0r/runner-game-leaderboard-rest
6568c08e22518e486dae1cc46924153668be96c2
[ "MIT", "Unlicense" ]
null
null
null
REST/main.cpp
NuLL3rr0r/runner-game-leaderboard-rest
6568c08e22518e486dae1cc46924153668be96c2
[ "MIT", "Unlicense" ]
null
null
null
#include <csignal> #include <cstdlib> #if defined ( _WIN32 ) #include <windows.h> #else #include <unistd.h> #endif // defined ( _WIN32 ) #include <boost/algorithm/string.hpp> #include <boost/exception/diagnostic_information.hpp> #include <boost/filesystem/exception.hpp> #include <boost/filesystem/operations.hpp> #incl...
33.807692
704
0.610922
NuLL3rr0r
0f6d3d67cb03af3effcd4374c5e0f205d364e3a7
1,588
cpp
C++
examples/07_BLE/BLE_server/src/BLE_server.cpp
MelihOzbk/deneyapkart-platformio-core
c0fbc8ffa181ee22e597569b24bde5a011ccaaa4
[ "Apache-2.0" ]
6
2021-05-12T13:20:06.000Z
2022-01-11T19:09:32.000Z
examples/07_BLE/BLE_server/src/BLE_server.cpp
MelihOzbk/deneyapkart-platformio-core
c0fbc8ffa181ee22e597569b24bde5a011ccaaa4
[ "Apache-2.0" ]
2
2021-05-14T01:08:07.000Z
2022-01-11T17:46:25.000Z
examples/07_BLE/BLE_server/src/BLE_server.cpp
MelihOzbk/deneyapkart-platformio-core
c0fbc8ffa181ee22e597569b24bde5a011ccaaa4
[ "Apache-2.0" ]
3
2021-08-10T13:15:37.000Z
2022-02-26T09:48:53.000Z
#include <Arduino.h> #include <BLEDevice.h> #include <BLEUtils.h> #include <BLEServer.h> // UUID oluşturmak için aşağıdaki linki kullanabilirsiniz: // https://www.uuidgenerator.net/ #define SERVICE_UUID "42ac05e6-9955-42ef-ab86-87111361d3ea" #define CHARACTERISTIC_UUID "6414d63c-5b8b-4b2...
36.090909
107
0.677582
MelihOzbk
0f6f7b57dfd95c6af67ceeae5426d100e45a7bca
3,168
cpp
C++
codes/POJ/POJ_3261.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
2
2021-03-07T03:34:02.000Z
2021-03-09T01:22:21.000Z
codes/POJ/POJ_3261.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
1
2021-03-27T15:01:23.000Z
2021-03-27T15:55:34.000Z
codes/POJ/POJ_3261.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
1
2021-03-27T05:02:33.000Z
2021-03-27T05:02:33.000Z
#include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <ctime> #include <cmath> #include <cassert> #include <algorithm> #include <vector> #include <string> #include <map> #include <set> #include <sstream> #include <list> #include <queue> #include <stack> //#include <unordered_map> //#inclu...
24.75
127
0.500631
chessbot108
0f713f2ed0dd8bb8ac4fb5276808047c684e693b
19,385
cpp
C++
libraries/libwidget/Window.cpp
jfpowell/skift
2ebbfc82206c17c044cc49ae07633bad8eb9f984
[ "MIT" ]
null
null
null
libraries/libwidget/Window.cpp
jfpowell/skift
2ebbfc82206c17c044cc49ae07633bad8eb9f984
[ "MIT" ]
null
null
null
libraries/libwidget/Window.cpp
jfpowell/skift
2ebbfc82206c17c044cc49ae07633bad8eb9f984
[ "MIT" ]
null
null
null
#include <libsystem/Assert.h> #include <libsystem/Logger.h> #include <libsystem/core/CString.h> #include <libsystem/eventloop/EventLoop.h> #include <libsystem/io/Stream.h> #include <libsystem/system/Memory.h> #include <libwidget/Application.h> #include <libwidget/Event.h> #include <libwidget/Screen.h> #include <libwidg...
24.725765
151
0.599845
jfpowell
0f714372ed7999d4431cbb329cdc4c4fbbea510e
1,617
hpp
C++
src/server/listen.hpp
bleu48/aobazero
c805b80d9ed8d27ce507fc2b74fb7609d75b2426
[ "Unlicense" ]
43
2019-05-10T05:50:23.000Z
2022-01-03T02:46:00.000Z
src/server/listen.hpp
bleu48/aobazero
c805b80d9ed8d27ce507fc2b74fb7609d75b2426
[ "Unlicense" ]
34
2019-05-07T15:22:44.000Z
2021-09-21T04:34:39.000Z
src/server/listen.hpp
kobanium/aoba-zero
dd6eb185e22c57b72663859e678fff79f7f425a5
[ "Unlicense" ]
13
2019-05-10T02:11:45.000Z
2021-10-05T12:28:03.000Z
// 2019 Team AobaZero // This source code is in the public domain. #pragma once #include <memory> template <typename K, typename V> class HashTable; class Listen { using uint = unsigned int; using time_point_t = std::chrono::time_point<std::chrono::system_clock>; std::atomic<bool> _bEndWorker; std::thread _thr...
35.152174
78
0.737168
bleu48
0f74c6e032da131a0364e4e29e4981cdc5f1ffa8
460
cpp
C++
lib/munkres-cpp/benchmarks/tools/generator/main.cpp
ademirtc/bandeirantes
2dfc2ceadb555c1c40991520f450745bedf88c77
[ "MIT" ]
1
2021-01-01T23:39:02.000Z
2021-01-01T23:39:02.000Z
src/DREAMPlace/thirdparty/munkres-cpp/benchmarks/tools/generator/main.cpp
zoumingzhe/OpenEDA
e87867044b495e40d4276756a6cb13bb38fe49a9
[ "BSD-3-Clause" ]
null
null
null
src/DREAMPlace/thirdparty/munkres-cpp/benchmarks/tools/generator/main.cpp
zoumingzhe/OpenEDA
e87867044b495e40d4276756a6cb13bb38fe49a9
[ "BSD-3-Clause" ]
null
null
null
#include <cstdlib> #include "matrixutils.h" #include <string> int main (int argc, char * argv []) { std::vector <Matrix <double> *> matrices; for (int i = 1; i < argc; ++i) { const size_t size = std::stoi (argv [i]); Matrix <double> * matrix = new Matrix <double>; * matrix = generate...
21.904762
64
0.593478
ademirtc
0f75e350932e8edf540ef0dc772e20955f5ff7ff
708
cpp
C++
project/source/game/stats/Buff.cpp
Shdorsh/carpg
376130a1ed410116fc8a607601b327eae7dca383
[ "MIT" ]
null
null
null
project/source/game/stats/Buff.cpp
Shdorsh/carpg
376130a1ed410116fc8a607601b327eae7dca383
[ "MIT" ]
null
null
null
project/source/game/stats/Buff.cpp
Shdorsh/carpg
376130a1ed410116fc8a607601b327eae7dca383
[ "MIT" ]
null
null
null
#include "Pch.h" #include "GameCore.h" #include "Buff.h" #include "Language.h" #include "ResourceManager.h" BuffInfo BuffInfo::info[] = { BuffInfo("buff_regeneration"), BuffInfo("buff_natural"), BuffInfo("buff_food"), BuffInfo("buff_alcohol"), BuffInfo("buff_poison"), BuffInfo("buff_antimagic"), BuffInfo("buff_...
19.135135
49
0.670904
Shdorsh
0f78a3456eea1be0405d778152635c85258570b0
219
cpp
C++
Game/Client/WXClient/Network/PacketHandler/CGTeamKickHandler.cpp
hackerlank/SourceCode
b702c9e0a9ca5d86933f3c827abb02a18ffc9a59
[ "MIT" ]
4
2021-07-31T13:56:01.000Z
2021-11-13T02:55:10.000Z
Game/Client/WXClient/Network/PacketHandler/CGTeamKickHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
null
null
null
Game/Client/WXClient/Network/PacketHandler/CGTeamKickHandler.cpp
shacojx/SourceCodeGameTLBB
e3cea615b06761c2098a05427a5f41c236b71bf7
[ "MIT" ]
7
2021-08-31T14:34:23.000Z
2022-01-19T08:25:58.000Z
#include "StdAfx.h" #include "CGTeamKick.h" uint CGTeamKickHandler::Execute( CGTeamKick* pPacket, Player* pPlayer ) { __ENTER_FUNCTION return PACKET_EXE_CONTINUE ; __LEAVE_FUNCTION return PACKET_EXE_ERROR ; }
12.166667
71
0.771689
hackerlank
0f7b493ef90d2e5f6efafc8df2b292fcb5160174
8,450
cpp
C++
Source/AliveLibAE/Rope.cpp
mouzedrift/alive_reversing
be7dfbaed3be99b452459e974bc4e79f9503c178
[ "MIT" ]
3
2018-07-17T20:25:34.000Z
2020-07-27T19:25:50.000Z
Source/AliveLibAE/Rope.cpp
mouzedrift/alive_reversing
be7dfbaed3be99b452459e974bc4e79f9503c178
[ "MIT" ]
1
2021-09-12T16:59:46.000Z
2021-09-12T16:59:46.000Z
Source/AliveLibAE/Rope.cpp
mouzedrift/alive_reversing
be7dfbaed3be99b452459e974bc4e79f9503c178
[ "MIT" ]
1
2018-07-18T04:55:56.000Z
2018-07-18T04:55:56.000Z
#include "stdafx.h" #include "Rope.hpp" #include "Function.hpp" #include "PsxDisplay.hpp" #include "Animation.hpp" #include "stdlib.hpp" #include "ScreenManager.hpp" #include "ShadowZone.hpp" const TintEntry kRopeTints_55FD68[18] = { {LevelIds_s8::eMines_1, 127u, 127u, 127u}, {LevelIds_s8::eNecrum_2, 127u, 127...
34.773663
169
0.604142
mouzedrift
0f7c607ec4594b1ff86123922e0be3867d07c40d
478
cpp
C++
exercises/acronym/example.cpp
Pengyuz/cpp
8d0ac20afaef2f8b25d9eb009925f38e44e880a5
[ "MIT" ]
1
2021-12-13T00:59:20.000Z
2021-12-13T00:59:20.000Z
exercises/acronym/example.cpp
Pengyuz/cpp
8d0ac20afaef2f8b25d9eb009925f38e44e880a5
[ "MIT" ]
null
null
null
exercises/acronym/example.cpp
Pengyuz/cpp
8d0ac20afaef2f8b25d9eb009925f38e44e880a5
[ "MIT" ]
null
null
null
#include <vector> #include <boost/algorithm/string.hpp> #include "acronym.h" using std::string; using std::vector; namespace acronym { string acronym(string const& input_str) { vector<string> words; boost::split(words, input_str, boost::is_any_of(" :-,")); string acronym_str; for (auto const& s : wor...
19.916667
80
0.633891
Pengyuz
0f7d1e77ce3fec48e46fe83d8a08d52a9c408985
33,074
cpp
C++
src/IB/IBFEDirectForcingKinematics.cpp
syam-s/IBAMR
b6502f2f818835961d103fd2a2827d9336e68640
[ "BSD-3-Clause" ]
2
2020-03-03T12:29:36.000Z
2021-02-15T06:54:20.000Z
src/IB/IBFEDirectForcingKinematics.cpp
syam-s/IBAMR
b6502f2f818835961d103fd2a2827d9336e68640
[ "BSD-3-Clause" ]
null
null
null
src/IB/IBFEDirectForcingKinematics.cpp
syam-s/IBAMR
b6502f2f818835961d103fd2a2827d9336e68640
[ "BSD-3-Clause" ]
null
null
null
// --------------------------------------------------------------------- // // Copyright (c) 2018 - 2019 by the IBAMR developers // All rights reserved. // // This file is part of IBAMR. // // IBAMR is free software and is distributed under the 3-clause BSD // license. The full text of the license can be found in the f...
36.95419
119
0.613533
syam-s
0f80d85afd4034616dd924990bff350df7953265
962
hpp
C++
libs/core/include/fcppt/math/vector/cross.hpp
freundlich/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
13
2015-02-21T18:35:14.000Z
2019-12-29T14:08:29.000Z
libs/core/include/fcppt/math/vector/cross.hpp
cpreh/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
5
2016-08-27T07:35:47.000Z
2019-04-21T10:55:34.000Z
libs/core/include/fcppt/math/vector/cross.hpp
freundlich/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
8
2015-01-10T09:22:37.000Z
2019-12-01T08:31:12.000Z
// Copyright Carl Philipp Reh 2009 - 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_MATH_VECTOR_CROSS_HPP_INCLUDED #define FCPPT_MATH_VECTOR_CROSS_HPP_INCLUDED #include...
28.294118
99
0.679834
freundlich
0f81d0087c94635af334238bcebcd5efbb7541fc
720
cpp
C++
internals/wip/program/core/types/sum_test.cpp
polytypic/algebraic.cpp
77813838eb775e7640506a0a3d10a3b5d2130421
[ "MIT" ]
2
2018-12-16T21:32:21.000Z
2021-12-11T20:54:36.000Z
internals/wip/program/core/types/sum_test.cpp
polytypic/algebraic.cpp
77813838eb775e7640506a0a3d10a3b5d2130421
[ "MIT" ]
null
null
null
internals/wip/program/core/types/sum_test.cpp
polytypic/algebraic.cpp
77813838eb775e7640506a0a3d10a3b5d2130421
[ "MIT" ]
null
null
null
#include "sum.hpp" #include "util/test_runner.hpp" #include "generics/pretty.hpp" #include <iostream> struct empty_t {}; static auto option_test = test_runner([]() { std::cerr << sizeof(empty_t) << std::endl; std::cerr << sizeof(int) << std::endl; std::cerr << sizeof(the_t<L(Foo)>) << std::endl; std::cerr ...
27.692308
76
0.615278
polytypic
0f838a48b43d2f96920862761c9d3e28103537e9
4,313
cpp
C++
Projects/Editor/Source/Editor/Space/Assets/CSpaceAssets.cpp
tsukoyumi/skylicht-engine
3b88d9718e87e552152633ef60e3f889869b71de
[ "MIT" ]
null
null
null
Projects/Editor/Source/Editor/Space/Assets/CSpaceAssets.cpp
tsukoyumi/skylicht-engine
3b88d9718e87e552152633ef60e3f889869b71de
[ "MIT" ]
null
null
null
Projects/Editor/Source/Editor/Space/Assets/CSpaceAssets.cpp
tsukoyumi/skylicht-engine
3b88d9718e87e552152633ef60e3f889869b71de
[ "MIT" ]
null
null
null
/* !@ MIT License Copyright (c) 2020 Skylicht Technology CO., LTD 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...
34.782258
141
0.753536
tsukoyumi
abf0c8b483ebb09a02b5c0fe824381ccd1c31186
5,751
hxx
C++
src/multibody/joint/joint-composite.hxx
paLeziart/pinocchio
66a4177663bdb9549bcf3d22d54383e11904ecc9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/multibody/joint/joint-composite.hxx
paLeziart/pinocchio
66a4177663bdb9549bcf3d22d54383e11904ecc9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/multibody/joint/joint-composite.hxx
paLeziart/pinocchio
66a4177663bdb9549bcf3d22d54383e11904ecc9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
// // Copyright (c) 2016,2018 CNRS // #ifndef __pinocchio_joint_composite_hxx__ #define __pinocchio_joint_composite_hxx__ #include "pinocchio/multibody/visitor.hpp" namespace pinocchio { template<typename Scalar, int Options, template<typename S, int O> class JointCollectionTpl, typename ConfigVectorType> stru...
37.344156
149
0.641801
paLeziart
abf150da930a0b2d59af03cbbf87eb0ef0ec5c18
3,194
cc
C++
src/libctp/calculatorfactory.cc
jimbach/ctp
e5b33f074f81c6e6859dfaacada1b6c992c67c2b
[ "Apache-2.0" ]
null
null
null
src/libctp/calculatorfactory.cc
jimbach/ctp
e5b33f074f81c6e6859dfaacada1b6c992c67c2b
[ "Apache-2.0" ]
null
null
null
src/libctp/calculatorfactory.cc
jimbach/ctp
e5b33f074f81c6e6859dfaacada1b6c992c67c2b
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2009-2012 The VOTCA Development Team * (http://www.votca.org) * * Licensed under the Apache License, Version 2.0 (the "License") * * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
39.432099
75
0.642768
jimbach
abf708dda7ba737c0f59320ed6af573f437aaf33
1,430
cpp
C++
source/plugins/ELAC/Input/DirectInput/DirectInputDevice.cpp
DavidMax-dm/PDA-Loader
9fbf102099fdd565f993d8204a328bc090a8deb1
[ "MIT" ]
3
2020-12-30T22:41:36.000Z
2022-01-14T06:08:47.000Z
source/plugins/ELAC/Input/DirectInput/DirectInputDevice.cpp
DavidMax-dm/PDA-Loader
9fbf102099fdd565f993d8204a328bc090a8deb1
[ "MIT" ]
1
2021-01-01T15:16:49.000Z
2021-01-01T15:16:49.000Z
source/plugins/ELAC/Input/DirectInput/DirectInputDevice.cpp
DavidMax-dm/PDA-Loader
9fbf102099fdd565f993d8204a328bc090a8deb1
[ "MIT" ]
9
2020-12-27T10:14:56.000Z
2022-01-19T08:28:56.000Z
#include "DirectInputDevice.h" namespace ELAC::Input { HRESULT DirectInputDevice::DI_CreateDevice(const GUID &guid) { if (!DirectInputInitialized()) return DIERR_NOTINITIALIZED; HRESULT result = IDirectInputInstance->CreateDevice(guid, &directInputdevice, NULL); return result; } HRESULT DirectInputDevic...
21.666667
86
0.751748
DavidMax-dm
abfb547ed5e9423bb21969758fbb476db332894c
14,547
cpp
C++
torch/csrc/jit/passes/onnx/fixup_onnx_controlflow.cpp
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
5
2021-08-17T17:44:20.000Z
2021-08-21T05:03:42.000Z
torch/csrc/jit/passes/onnx/fixup_onnx_controlflow.cpp
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
1
2021-09-03T09:35:27.000Z
2021-09-03T09:35:27.000Z
torch/csrc/jit/passes/onnx/fixup_onnx_controlflow.cpp
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
null
null
null
#include <torch/csrc/jit/passes/onnx/fixup_onnx_controlflow.h> #include <aten/src/ATen/InitialTensorOptions.h> #include <c10/util/irange.h> #include <torch/csrc/jit/jit_log.h> #include <torch/csrc/jit/passes/dead_code_elimination.h> #include <torch/csrc/jit/passes/onnx/peephole.h> namespace torch { namespace jit { n...
35.830049
126
0.663161
edward-io
abfcaae2d4e171c77c735c503073cd764f1f35e2
5,491
cc
C++
source/extensions/common/tap/tap_matcher.cc
ryanmcnamara/envoy
29b30911dbfb3f9760efeb28238ceac36e1a1a23
[ "Apache-2.0" ]
null
null
null
source/extensions/common/tap/tap_matcher.cc
ryanmcnamara/envoy
29b30911dbfb3f9760efeb28238ceac36e1a1a23
[ "Apache-2.0" ]
null
null
null
source/extensions/common/tap/tap_matcher.cc
ryanmcnamara/envoy
29b30911dbfb3f9760efeb28238ceac36e1a1a23
[ "Apache-2.0" ]
null
null
null
#include "extensions/common/tap/tap_matcher.h" #include "envoy/config/tap/v3alpha/common.pb.h" #include "common/common/assert.h" namespace Envoy { namespace Extensions { namespace Common { namespace Tap { void buildMatcher(const envoy::config::tap::v3alpha::MatchPredicate& match_config, std::vecto...
42.238462
100
0.710799
ryanmcnamara
abff3a13cffb0f697115431d9810cc8f41b3d09a
2,093
cpp
C++
sniper/event/TimerDetail.cpp
rtbtech/libsniper
0828df9da74f8ed11a1273c61c15dfb5816c3c1e
[ "Apache-2.0" ]
9
2020-05-08T21:17:12.000Z
2021-06-04T18:38:35.000Z
sniper/event/TimerDetail.cpp
rtbtech/libsniper
0828df9da74f8ed11a1273c61c15dfb5816c3c1e
[ "Apache-2.0" ]
null
null
null
sniper/event/TimerDetail.cpp
rtbtech/libsniper
0828df9da74f8ed11a1273c61c15dfb5816c3c1e
[ "Apache-2.0" ]
null
null
null
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com /* * Copyright (c) 2018 - 2019, MetaHash, Oleg Romanenko (oleg@romanenko.ro) * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
24.057471
97
0.634496
rtbtech
abff47b25d88733e7cb4e298c9e19b233467e5a9
2,604
hxx
C++
generated/include/mmx/TimeLordRewardsBase.hxx
pestotoast/mmx-node
eb9e27aa077c111e814c62cc5b716c4957eac09e
[ "Apache-2.0" ]
154
2021-12-24T19:18:15.000Z
2022-03-24T04:49:45.000Z
generated/include/mmx/TimeLordRewardsBase.hxx
pestotoast/mmx-node
eb9e27aa077c111e814c62cc5b716c4957eac09e
[ "Apache-2.0" ]
33
2021-12-26T03:21:54.000Z
2022-03-24T12:52:40.000Z
generated/include/mmx/TimeLordRewardsBase.hxx
pestotoast/mmx-node
eb9e27aa077c111e814c62cc5b716c4957eac09e
[ "Apache-2.0" ]
23
2021-12-26T03:23:33.000Z
2022-02-20T18:10:45.000Z
// AUTO GENERATED by vnxcppcodegen #ifndef INCLUDE_mmx_TimeLordRewardsBase_HXX_ #define INCLUDE_mmx_TimeLordRewardsBase_HXX_ #include <mmx/package.hxx> #include <mmx/ProofOfTime.hxx> #include <vnx/Module.h> #include <vnx/TopicPtr.hpp> namespace mmx { class MMX_EXPORT TimeLordRewardsBase : public ::vnx::Module { p...
30.27907
135
0.768433
pestotoast
2801d9ff3742329b476bd5f055e0b1f5e886f7bd
1,689
cpp
C++
QJsonExample/main.cpp
coologic/QtCoreExamples
3a86f685e7e081da8d9cce7ece3c8e4131a8c5ee
[ "MIT" ]
3
2020-02-24T08:39:56.000Z
2020-07-01T02:21:12.000Z
QJsonExample/main.cpp
coologic/QtCoreExamples
3a86f685e7e081da8d9cce7ece3c8e4131a8c5ee
[ "MIT" ]
null
null
null
QJsonExample/main.cpp
coologic/QtCoreExamples
3a86f685e7e081da8d9cce7ece3c8e4131a8c5ee
[ "MIT" ]
2
2020-06-05T23:41:03.000Z
2022-03-21T11:19:33.000Z
#include <QCoreApplication> #include <QJsonDocument>//json文档 #include <QJsonArray>//json数组 #include <QJsonObject>//json对象 #include <QJsonValue>//json值 #include <QJsonParseError>//错误处理 #include <QDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QJsonDocument json; QJsonArray array; ...
31.867925
58
0.608644
coologic
28039fdafa9c4a8174e2aa244077cd09ff61f231
4,262
cpp
C++
experimental/Pomdog.Experimental/Gameplay2D/CameraComponent.cpp
ValtoForks/pomdog
73798ae5f4a4c3b9b1e1e96239187c4b842c93b2
[ "MIT" ]
null
null
null
experimental/Pomdog.Experimental/Gameplay2D/CameraComponent.cpp
ValtoForks/pomdog
73798ae5f4a4c3b9b1e1e96239187c4b842c93b2
[ "MIT" ]
null
null
null
experimental/Pomdog.Experimental/Gameplay2D/CameraComponent.cpp
ValtoForks/pomdog
73798ae5f4a4c3b9b1e1e96239187c4b842c93b2
[ "MIT" ]
null
null
null
// Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license. #include "Pomdog.Experimental/Gameplay2D/CameraComponent.hpp" #include "Pomdog/Math/MathHelper.hpp" #include "Pomdog/Math/Matrix4x4.hpp" #include "Pomdog/Utility/Assert.hpp" #include <utility> namespace Pomdog { CameraComponent::CameraComponent(...
24.215909
82
0.756687
ValtoForks
2805750c604f0ff1ebbbab2553f2e58c10832f8d
2,418
cpp
C++
breakout/main.cpp
Terlang/Breakout
84e98062466b105a1be21171e3afcc6729fbbb1b
[ "MIT" ]
null
null
null
breakout/main.cpp
Terlang/Breakout
84e98062466b105a1be21171e3afcc6729fbbb1b
[ "MIT" ]
null
null
null
breakout/main.cpp
Terlang/Breakout
84e98062466b105a1be21171e3afcc6729fbbb1b
[ "MIT" ]
null
null
null
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> #include "game.h" #include "resource_manager.h" void framebuffer_size_callback(GLFWwindow* window, int width, int height); void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode); const unsigned int SCREEN_WIDTH...
27.477273
99
0.719603
Terlang
280b837a82a07a05930e13ee70c8863fc413ff2f
27,739
cpp
C++
src/lib/statistics/chunk_statistics/histograms/abstract_histogram.cpp
nilsthamm/hyrise
75a701f281bb7dc1636832012c43005ec3c66384
[ "MIT" ]
2
2019-01-22T19:44:32.000Z
2019-01-22T19:52:33.000Z
src/lib/statistics/chunk_statistics/histograms/abstract_histogram.cpp
nilsthamm/hyrise
75a701f281bb7dc1636832012c43005ec3c66384
[ "MIT" ]
33
2019-02-02T09:52:50.000Z
2019-03-07T13:14:40.000Z
src/lib/statistics/chunk_statistics/histograms/abstract_histogram.cpp
nilsthamm/hyrise
75a701f281bb7dc1636832012c43005ec3c66384
[ "MIT" ]
null
null
null
#include "abstract_histogram.hpp" #include <cmath> #include <algorithm> #include <limits> #include <map> #include <memory> #include <string> #include <utility> #include <vector> #include "expression/evaluation/like_matcher.hpp" #include "histogram_utils.hpp" #include "storage/segment_iterate.hpp" namespace opossum ...
45.47377
120
0.677638
nilsthamm
280eb6280ea214b55bc064d9c1eebcaf09506faa
11,353
hpp
C++
native/external-libraries/boost/boost/log/core/core.hpp
l3dlp-sandbox/airkinect-2-core
49aecbd3c3fd9584434089dd2d9eef93567036e7
[ "Apache-2.0" ]
null
null
null
native/external-libraries/boost/boost/log/core/core.hpp
l3dlp-sandbox/airkinect-2-core
49aecbd3c3fd9584434089dd2d9eef93567036e7
[ "Apache-2.0" ]
null
null
null
native/external-libraries/boost/boost/log/core/core.hpp
l3dlp-sandbox/airkinect-2-core
49aecbd3c3fd9584434089dd2d9eef93567036e7
[ "Apache-2.0" ]
null
null
null
/* * Copyright Andrey Semashev 2007 - 2010. * 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) */ /*! * \file core/core.hpp * \author Andrey Semashev * \date 19.04.2007 * * This heade...
39.420139
131
0.706245
l3dlp-sandbox
2816f8a1cb38f43f667a01e2de6b8c9c084f7907
5,093
cpp
C++
src/mystring.cpp
wi1d5ky/myString
329cb1f175bfeedff7a31aa45a594fcc59b69990
[ "MIT" ]
null
null
null
src/mystring.cpp
wi1d5ky/myString
329cb1f175bfeedff7a31aa45a594fcc59b69990
[ "MIT" ]
null
null
null
src/mystring.cpp
wi1d5ky/myString
329cb1f175bfeedff7a31aa45a594fcc59b69990
[ "MIT" ]
null
null
null
#include "mystring.h" #include <iostream> #include <cstring> #include <cstdio> // ================================ // ========= Constructor ========== // ================================ String::String() { size_ = 0; capacity_ = 1; str_ = new char[capacity_]; str_[0] = '\0'; } String::String(const String& src):s...
18.862963
66
0.590418
wi1d5ky
2817e4c9f5ad9b4292e219544f35fa54e68fd11e
1,437
cpp
C++
benchmarks/02-formatted_read/sscanf_formatted_read.cpp
germandiagogomez/cpp-benchmarks
87d190ee0a54110f8016b5761ba82e5a7e40cfe7
[ "MIT" ]
75
2015-08-23T14:45:14.000Z
2022-01-08T10:07:47.000Z
benchmarks/02-formatted_read/sscanf_formatted_read.cpp
germandiagogomez/cpp-benchmarks
87d190ee0a54110f8016b5761ba82e5a7e40cfe7
[ "MIT" ]
null
null
null
benchmarks/02-formatted_read/sscanf_formatted_read.cpp
germandiagogomez/cpp-benchmarks
87d190ee0a54110f8016b5761ba82e5a7e40cfe7
[ "MIT" ]
2
2015-08-28T11:30:35.000Z
2017-06-18T16:15:34.000Z
#include <limits> #include <tuple> #include <iostream> #include <cassert> #include <random> #include <cstdio> #include <algorithm> #include <string> #include <vector> #include <chrono> #include "util/benchutil.hpp" #include "util/random_generate.hpp" namespace s = std; namespace c = std::chrono; using benchmarks::...
22.809524
96
0.638135
germandiagogomez
2819d2e99dcc0ce00635d80ede28bdf9bc3f1110
36,333
cpp
C++
sources/Renderer/OpenGL/Texture/GLTexImage.cpp
beldenfox/LLGL
3a54125ebfa79bb06fccf8c413d308ff22186b52
[ "BSD-3-Clause" ]
1,403
2016-09-28T21:48:07.000Z
2022-03-31T23:58:57.000Z
sources/Renderer/OpenGL/Texture/GLTexImage.cpp
beldenfox/LLGL
3a54125ebfa79bb06fccf8c413d308ff22186b52
[ "BSD-3-Clause" ]
70
2016-10-13T20:15:58.000Z
2022-01-12T23:51:12.000Z
sources/Renderer/OpenGL/Texture/GLTexImage.cpp
beldenfox/LLGL
3a54125ebfa79bb06fccf8c413d308ff22186b52
[ "BSD-3-Clause" ]
122
2016-10-23T15:33:44.000Z
2022-03-07T07:41:23.000Z
/* * GLTexImage.cpp * * This file is part of the "LLGL" project (Copyright (c) 2015-2019 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "GLTexImage.h" #include "../GLTypes.h" #include "../GLProfile.h" #include "../Ext/GLExtensions.h" #include "../Ext/GLExtensionRegistry.h" #include <...
31.955145
153
0.586134
beldenfox
281c4e01bddb39f84eeea0ecc4cf2f1fe045d729
17,753
cpp
C++
core/http_request.cpp
mail-ru-im/im-desktop
d6bb606650ad84b31046fe39b81db1fec4e6050b
[ "Apache-2.0" ]
81
2019-09-18T13:53:17.000Z
2022-03-19T00:44:20.000Z
core/http_request.cpp
mail-ru-im/im-desktop
d6bb606650ad84b31046fe39b81db1fec4e6050b
[ "Apache-2.0" ]
4
2019-10-03T15:17:00.000Z
2019-11-03T01:05:41.000Z
core/http_request.cpp
mail-ru-im/im-desktop
d6bb606650ad84b31046fe39b81db1fec4e6050b
[ "Apache-2.0" ]
25
2019-09-27T16:56:02.000Z
2022-03-14T07:11:14.000Z
#include "stdafx.h" #include "http_request.h" #include "curl_context.h" #include "openssl/crypto.h" #include "tools/system.h" #include "tools/url.h" #include "tools/features.h" #include "log/log.h" #include "utils.h" #include "async_task.h" #include "core.h" #include "proxy_settings.h" #include "network_log.h" #include...
29.055646
195
0.697516
mail-ru-im
281cf0b547fa54b42e003d14ed6cd67a2f160bdc
2,225
cpp
C++
test/Driver/XRay/xray-mode-flags.cpp
LambdaMan/clang
6edb1bc43453c555f37f713992cd99c674806ead
[ "Apache-2.0" ]
3,102
2015-01-04T02:28:35.000Z
2022-03-30T12:53:41.000Z
test/Driver/XRay/xray-mode-flags.cpp
LambdaMan/clang
6edb1bc43453c555f37f713992cd99c674806ead
[ "Apache-2.0" ]
497
2017-04-04T14:22:22.000Z
2020-03-10T14:12:27.000Z
test/Driver/XRay/xray-mode-flags.cpp
LambdaMan/clang
6edb1bc43453c555f37f713992cd99c674806ead
[ "Apache-2.0" ]
1,868
2015-01-03T04:27:11.000Z
2022-03-25T13:37:35.000Z
// RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=xray-fdr %s -### \ // RUN: 2>&1 | FileCheck --check-prefix FDR %s // RUN: %clang -v -o /dev/null -fxray-instrument -fxray-modes=xray-basic %s \ // RUN: -### 2>&1 | FileCheck --check-prefix BASIC %s // RUN: %clang -v -o /dev/null -fxray-instrument -fx...
44.5
80
0.611236
LambdaMan
281faed2e37a426cebbe3e9f4f5bb6bc842a4104
7,822
hpp
C++
include/mango/math/vector_float32x8.hpp
heiligeslama/mango
6528e151fa70c1b02871f1e7972e6c162c945350
[ "Zlib" ]
null
null
null
include/mango/math/vector_float32x8.hpp
heiligeslama/mango
6528e151fa70c1b02871f1e7972e6c162c945350
[ "Zlib" ]
null
null
null
include/mango/math/vector_float32x8.hpp
heiligeslama/mango
6528e151fa70c1b02871f1e7972e6c162c945350
[ "Zlib" ]
1
2021-04-25T15:16:59.000Z
2021-04-25T15:16:59.000Z
/* MANGO Multimedia Development Platform Copyright (C) 2012-2018 Twilight Finland 3D Oy Ltd. All rights reserved. */ #pragma once #include "vector.hpp" #include "vector_float32x4.hpp" namespace mango { // ------------------------------------------------------------------ // Vector<float, 8> // --...
22.412607
103
0.478394
heiligeslama
2821816335cf2d212ea559bc846ebf8720c9afc5
6,504
cc
C++
flare/fiber/detail/scheduling_parameters_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
868
2021-05-28T04:00:22.000Z
2022-03-31T08:57:14.000Z
flare/fiber/detail/scheduling_parameters_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
33
2021-05-28T08:44:47.000Z
2021-09-26T13:09:21.000Z
flare/fiber/detail/scheduling_parameters_test.cc
AriCheng/flare
b2c84588fe4ac52f0875791d22284d7e063fd057
[ "CC-BY-3.0", "BSD-2-Clause", "BSD-3-Clause" ]
122
2021-05-28T08:22:23.000Z
2022-03-29T09:52:09.000Z
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of the // License at // // https://opensource.org/licenses/BSD-3-Clause // // Unless req...
41.96129
80
0.630843
AriCheng
282a03c8ac2db40db3dd055ed82e23848b745d5e
4,320
cpp
C++
lib/Transforms/ConvertToAsyncDialect.cpp
giuseros/iree-llvm-sandbox
d47050d04d299dab799f8a1c6eb7e5d85bda535f
[ "Apache-2.0" ]
null
null
null
lib/Transforms/ConvertToAsyncDialect.cpp
giuseros/iree-llvm-sandbox
d47050d04d299dab799f8a1c6eb7e5d85bda535f
[ "Apache-2.0" ]
null
null
null
lib/Transforms/ConvertToAsyncDialect.cpp
giuseros/iree-llvm-sandbox
d47050d04d299dab799f8a1c6eb7e5d85bda535f
[ "Apache-2.0" ]
null
null
null
// Copyright 2021 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
41.142857
79
0.679861
giuseros
2831ff46077cce5a1da3e24a1cfa0e71005530b8
801
cpp
C++
codeforces/118-B-33437303.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
codeforces/118-B-33437303.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
codeforces/118-B-33437303.cpp
debashish05/competitive_programming
e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> #define ll long long int #define loop(k) for(i=0;i<k;++i) #define loop2(k,l) for(j=k;j<l;++j) #define mod 1000000007 using namespace std; int main() { std::ios_base::sync_with_stdio(false);cin.tie(NULL); ll t=1,i=0,j=0,k=0; //cin>>t; while(t--){ int n; ...
25.83871
62
0.398252
debashish05
2833a05d403cae1ccea19848bc3f3606df9af070
2,568
cpp
C++
Source/Common/nv_d3dh/D3DHelpers.cpp
ytt747536970/ocean
1bd27aae62294229c8b8b07058a94b7d60723b1b
[ "MIT" ]
null
null
null
Source/Common/nv_d3dh/D3DHelpers.cpp
ytt747536970/ocean
1bd27aae62294229c8b8b07058a94b7d60723b1b
[ "MIT" ]
null
null
null
Source/Common/nv_d3dh/D3DHelpers.cpp
ytt747536970/ocean
1bd27aae62294229c8b8b07058a94b7d60723b1b
[ "MIT" ]
null
null
null
#include "PrecompiledHeader.h" #include "D3DHelpers.h" std::wstring ToWideString(const char* pStr) { int len = strlen(pStr); //ASSERT_PTR( pStr ) ; //ASSERT( len >= 0 || len == -1 , _T("Invalid string length: ") << len ) ; // figure out how many wide characters we are going to get int nChars ...
28.533333
89
0.603193
ytt747536970
28392f0ba4089c5a1bc4e8422164b3714395859d
3,589
cpp
C++
Practica 1/ejercicio05/main.cpp
Abrantedr/Practicas-Informatica-Industrial-4-GIEIA
53d73c7c58b43e27370e2c5627220df2989e43d4
[ "MIT" ]
null
null
null
Practica 1/ejercicio05/main.cpp
Abrantedr/Practicas-Informatica-Industrial-4-GIEIA
53d73c7c58b43e27370e2c5627220df2989e43d4
[ "MIT" ]
null
null
null
Practica 1/ejercicio05/main.cpp
Abrantedr/Practicas-Informatica-Industrial-4-GIEIA
53d73c7c58b43e27370e2c5627220df2989e43d4
[ "MIT" ]
null
null
null
// Ejercicio 05 - All tests passed! // Autor: Rubén Abrante Delgado // Fecha: 19/10/2020 #include <fstream> #include <iostream> #include <string> #include <vector> /** * Recorre un vector de enteros y devuelve otros dos con * los elementos del vector mayores y menores que el pivote. * Devuelve el número de elemen...
26.389706
72
0.616049
Abrantedr
28404b6f8bd33ba32bc87afc157082e82307f1d4
8,817
cpp
C++
jni/external/zenilib/zeni_rest/main.cpp
gdewald/Spacefrog
eae9bd5c91670f7d13442740b5d801286ba41e5e
[ "BSD-2-Clause" ]
null
null
null
jni/external/zenilib/zeni_rest/main.cpp
gdewald/Spacefrog
eae9bd5c91670f7d13442740b5d801286ba41e5e
[ "BSD-2-Clause" ]
null
null
null
jni/external/zenilib/zeni_rest/main.cpp
gdewald/Spacefrog
eae9bd5c91670f7d13442740b5d801286ba41e5e
[ "BSD-2-Clause" ]
null
null
null
/* This file is part of the Zenipex Library (zenilib). * Copyright (C) 2011 Mitchell Keith Bloch (bazald). * * zenilib is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the Licens...
27.212963
107
0.647953
gdewald
2842f48d924c59886ec67ad9e719defe71a86620
4,269
cpp
C++
oceanus/src/v20190422/model/ResourceRefJobInfo.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
43
2019-08-14T08:14:12.000Z
2022-03-30T12:35:09.000Z
oceanus/src/v20190422/model/ResourceRefJobInfo.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
12
2019-07-15T10:44:59.000Z
2021-11-02T12:35:00.000Z
oceanus/src/v20190422/model/ResourceRefJobInfo.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
28
2019-07-12T09:06:22.000Z
2022-03-30T08:04:18.000Z
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
29.040816
152
0.713048
suluner
2843e36b8f82ee036088c7325244c692ee0dd20a
1,130
cpp
C++
src/Input/KeyboardInput.cpp
ksmai/fire-web-engine
531fd3d2ae78244bf2e2a62571ccbcd6e6c2a5bd
[ "MIT" ]
null
null
null
src/Input/KeyboardInput.cpp
ksmai/fire-web-engine
531fd3d2ae78244bf2e2a62571ccbcd6e6c2a5bd
[ "MIT" ]
null
null
null
src/Input/KeyboardInput.cpp
ksmai/fire-web-engine
531fd3d2ae78244bf2e2a62571ccbcd6e6c2a5bd
[ "MIT" ]
null
null
null
#include <algorithm> #include "App/abort.h" #include "App/Logger.h" #include "Input/KeyboardInput.h" bool FW::KeyboardInput::created{false}; FW::KeyboardInput::KeyboardInput() { if (created) { Logger::error("Cannot create more than 1 KeyboardInput"); abort(); } created = true; int length; SDL_GetKe...
24.042553
67
0.707965
ksmai
2845ca0710cd88b676787bcd29fdcf22af641814
1,339
cpp
C++
mydevice.cpp
zvebabi/dronalizer
6466187ec39b05206ed19ee9ef74241faaf38749
[ "Apache-2.0" ]
null
null
null
mydevice.cpp
zvebabi/dronalizer
6466187ec39b05206ed19ee9ef74241faaf38749
[ "Apache-2.0" ]
null
null
null
mydevice.cpp
zvebabi/dronalizer
6466187ec39b05206ed19ee9ef74241faaf38749
[ "Apache-2.0" ]
null
null
null
#include "mydevice.h" MyDevice::MyDevice(QObject *parent) : QObject(parent) { m_screen = qApp->primaryScreen(); m_dpi = m_screen->physicalDotsPerInch() * m_screen->devicePixelRatio(); m_isMobile = false; #if defined(Q_OS_IOS) m_dpi = m_screen->physicalDotsPerInch(); m_isMobile = true; #elif define...
26.78
122
0.67065
zvebabi
284742d6b001f0366108fa8888e02037170a6fe3
6,350
cpp
C++
samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CPP/form1.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
421
2018-04-01T01:57:50.000Z
2022-03-28T15:24:42.000Z
samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CPP/form1.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
5,797
2018-04-02T21:12:23.000Z
2022-03-31T23:54:38.000Z
samples/snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.ListView2/CPP/form1.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
1,482
2018-03-31T11:26:20.000Z
2022-03-30T22:36:45.000Z
// The following code example demonstrates using the ListView.CheckedItems, // CheckedItem.CheckState, ListView.BeginUpdate, and ListView.EndUpdate // members, along with instances of the ListViewCheckedItemCollection, // and ItemCheckEventArgs classes #using <System.dll> #using <System.Drawing.dll> #using...
37.134503
121
0.620472
hamarb123
2847450437a4eb43413c2785274e7115b5f8d0f4
2,813
cpp
C++
Source/Scripting/bsfScript/Generated/BsScriptParticleSize.generated.cpp
bsf2dev/bsf
b318cd4eb1b0299773d625e6c870b8d503cf539e
[ "MIT" ]
1,745
2018-03-16T02:10:28.000Z
2022-03-26T17:34:21.000Z
Source/Scripting/bsfScript/Generated/BsScriptParticleSize.generated.cpp
bsf2dev/bsf
b318cd4eb1b0299773d625e6c870b8d503cf539e
[ "MIT" ]
395
2018-03-16T10:18:20.000Z
2021-08-04T16:52:08.000Z
Source/Scripting/bsfScript/Generated/BsScriptParticleSize.generated.cpp
bsf2dev/bsf
b318cd4eb1b0299773d625e6c870b8d503cf539e
[ "MIT" ]
267
2018-03-17T19:32:54.000Z
2022-02-17T16:55:50.000Z
//********************************* bs::framework - Copyright 2018-2019 Marko Pintera ************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #include "BsScriptParticleSize.generated.h" #include "BsMonoMethod.h" ...
40.768116
125
0.771063
bsf2dev
284d535a3a2cd9d4408bf5754a2b385875dc3eb3
3,037
cpp
C++
src/ulib/win32/Clipboard.cpp
vividos/UlibCpp
d96348844348a00523b7742b3e7a5c9764613877
[ "BSD-2-Clause" ]
null
null
null
src/ulib/win32/Clipboard.cpp
vividos/UlibCpp
d96348844348a00523b7742b3e7a5c9764613877
[ "BSD-2-Clause" ]
null
null
null
src/ulib/win32/Clipboard.cpp
vividos/UlibCpp
d96348844348a00523b7742b3e7a5c9764613877
[ "BSD-2-Clause" ]
null
null
null
// // ulib - a collection of useful classes // Copyright (C) 2007,2008,2017,2020 Michael Fink // /// \file Clipboard.cpp clipboard class // #pragma once #include "stdafx.h" #include <ulib/win32/Clipboard.hpp> #include <ulib/UTF8.hpp> using Win32::Clipboard; Clipboard::Clipboard(HWND hwnd) { ATLVERIFY(TRUE == Open...
20.80137
88
0.675996
vividos
28535019988342fb43c54a82f17c52d949c800d0
1,902
hpp
C++
inc/measures/CCalpha.hpp
RuneKokNielsen/TopAwaRe
de5099111fca790a3ddf46aeb7f7aeae70229715
[ "MIT" ]
2
2019-11-28T11:45:50.000Z
2020-03-25T13:38:29.000Z
inc/measures/CCalpha.hpp
RuneKokNielsen/TopAwaRe
de5099111fca790a3ddf46aeb7f7aeae70229715
[ "MIT" ]
null
null
null
inc/measures/CCalpha.hpp
RuneKokNielsen/TopAwaRe
de5099111fca790a3ddf46aeb7f7aeae70229715
[ "MIT" ]
null
null
null
#ifndef CC_ALPHA_HPP #define CC_ALPHA_HPP #include <Measure.hpp> #include <CC.hpp> using namespace measure; /** * Context for computing alpha version of the CC measure. **/ struct CCalphaContext : CCContext, AlphaContext{ CCalphaContext(uint timesteps, float beta, float w): Context(timesteps){ _beta = beta; ...
22.376471
88
0.699264
RuneKokNielsen
2858b30b69d387e49fb6c60e7d186c9f17d721a9
545
hpp
C++
include/radix/input/NullInputSource.hpp
atkurtul/RadixEngine
0eb1c176a25aa9430f54d5a20ce5749360c51381
[ "Zlib" ]
163
2016-08-28T23:24:05.000Z
2022-03-31T04:51:51.000Z
include/radix/input/NullInputSource.hpp
atkurtul/RadixEngine
0eb1c176a25aa9430f54d5a20ce5749360c51381
[ "Zlib" ]
144
2016-09-10T08:40:06.000Z
2020-12-03T17:20:03.000Z
include/radix/input/NullInputSource.hpp
atkurtul/RadixEngine
0eb1c176a25aa9430f54d5a20ce5749360c51381
[ "Zlib" ]
88
2016-02-22T08:34:49.000Z
2022-03-05T12:29:19.000Z
#ifndef RADIX_NULL_INPUT_SOURCE_HPP #define RADIX_NULL_INPUT_SOURCE_HPP #include <radix/input/InputSource.hpp> namespace radix { class NullInputSource : public InputSource { public: void processEvents() {} void keyPressed(int, int) {} void keyReleased(int, int) {} bool isKeyDown(int) { return false; } std...
21.8
44
0.711927
atkurtul
285aae13285d8f037e22c713c0d2c540f67782d1
1,079
cpp
C++
UVA/sms.cpp
sourav025/algorithms-practices
987932fe0b995c61fc40d1b5a7da18dce8492752
[ "MIT" ]
null
null
null
UVA/sms.cpp
sourav025/algorithms-practices
987932fe0b995c61fc40d1b5a7da18dce8492752
[ "MIT" ]
null
null
null
UVA/sms.cpp
sourav025/algorithms-practices
987932fe0b995c61fc40d1b5a7da18dce8492752
[ "MIT" ]
null
null
null
#include<stdio.h> #include<string.h> int main() { char msg[5000]; int i,j,k,n,count; scanf("%d",&n); getchar(); for(k=1;k<=n;k++) { count=0; gets(msg); for(i=0;i<strlen(msg);i+=1) { if(msg[i]=='a'||msg[i]=='d'||msg[i]=='g'||msg[i]=='j' ...
27.666667
82
0.290083
sourav025
28621860a1cb0f9c6bea6c42dda62b3b7e499d5e
2,236
cpp
C++
folly/TimeoutQueue.cpp
yeqiaojun/folly
42eed2657f8e5c1d1af54a7394cef13467492b2e
[ "Apache-2.0" ]
2
2019-04-11T01:39:44.000Z
2019-11-21T16:06:13.000Z
hphp/third_party/folly/folly/TimeoutQueue.cpp
rmasters/hiphop-php
218e4718a7b68bf49b9a98caad9bd5f1cb2abe31
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/third_party/folly/folly/TimeoutQueue.cpp
rmasters/hiphop-php
218e4718a7b68bf49b9a98caad9bd5f1cb2abe31
[ "PHP-3.01", "Zend-2.0" ]
1
2019-04-11T01:39:45.000Z
2019-04-11T01:39:45.000Z
/* * Copyright 2013 Facebook, 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...
29.038961
75
0.68381
yeqiaojun
28663907cd8372bf37fb2ec99ad531d58530f064
2,864
cpp
C++
EXAMPLES/WebSnap/MasterDetail/masterdatamod.cpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
1
2022-01-13T01:03:55.000Z
2022-01-13T01:03:55.000Z
EXAMPLES/WebSnap/MasterDetail/masterdatamod.cpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
null
null
null
EXAMPLES/WebSnap/MasterDetail/masterdatamod.cpp
earthsiege2/borland-cpp-ide
09bcecc811841444338e81b9c9930c0e686f9530
[ "Unlicense", "FSFAP", "Apache-1.1" ]
null
null
null
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "MasterDataMod.h" #include <WebReq.hpp> #include <WebCntxt.hpp> #include <WebFact.hpp> #include "OrderPg.h" #include <WebInit.h> //----------------------------------------------------------...
34.095238
91
0.550279
earthsiege2
28684567630a745222bd598e76ca8b432511e181
1,721
cpp
C++
src/PixelFlutUDPSource.cpp
subject721/floodfill
f1328ac8de2f3c7988256e7cb9948f671f91a2d7
[ "MIT" ]
null
null
null
src/PixelFlutUDPSource.cpp
subject721/floodfill
f1328ac8de2f3c7988256e7cb9948f671f91a2d7
[ "MIT" ]
null
null
null
src/PixelFlutUDPSource.cpp
subject721/floodfill
f1328ac8de2f3c7988256e7cb9948f671f91a2d7
[ "MIT" ]
null
null
null
#include "PixelFlutUDPSource.h" #include "ThreadPool.h" #include "DrawIF.h" #include "DrawOperations.h" #include <cstring> #include <cstdlib> #include <unistd.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/select.h> //TODO: Implement according to PixelFlutSource class!!!!1111...
19.122222
101
0.737943
subject721
2868d66d1daed72473a9223c598f7e9e9cf094c7
1,281
cpp
C++
test/unit/math/prim/prob/inv_wishart_log_test.cpp
bayesmix-dev/math
3616f7195adc95ef8e719a2af845d61102bc9272
[ "BSD-3-Clause" ]
1
2020-06-14T14:33:37.000Z
2020-06-14T14:33:37.000Z
test/unit/math/prim/prob/inv_wishart_log_test.cpp
bayesmix-dev/math
3616f7195adc95ef8e719a2af845d61102bc9272
[ "BSD-3-Clause" ]
null
null
null
test/unit/math/prim/prob/inv_wishart_log_test.cpp
bayesmix-dev/math
3616f7195adc95ef8e719a2af845d61102bc9272
[ "BSD-3-Clause" ]
1
2020-05-10T12:55:07.000Z
2020-05-10T12:55:07.000Z
#include <stan/math/prim.hpp> #include <gtest/gtest.h> TEST(ProbInvWishart, log_matches_lpmf) { Eigen::MatrixXd Y(4, 4); Eigen::MatrixXd Sigma(4, 4); Y << 7.988168, -10.955605, -14.47483, 4.395895, -9.555605, 44.750570, 49.21577, -15.454186, -14.474830, 49.215769, 60.08987, -20.481079, 4.395895, -18....
49.269231
77
0.63388
bayesmix-dev
286a3a47ba9f2674a5d1adf1dbbe709a56fffdb7
8,655
cpp
C++
core/game_engine/black_jack/black_jack_game.cpp
anschen1994/RLCardCXX
87820626d8f3ef4a2da63ab37a97064980bd4dd5
[ "MIT" ]
1
2021-12-03T00:06:22.000Z
2021-12-03T00:06:22.000Z
core/game_engine/black_jack/black_jack_game.cpp
anschen1994/RLCardCXX
87820626d8f3ef4a2da63ab37a97064980bd4dd5
[ "MIT" ]
null
null
null
core/game_engine/black_jack/black_jack_game.cpp
anschen1994/RLCardCXX
87820626d8f3ef4a2da63ab37a97064980bd4dd5
[ "MIT" ]
null
null
null
#include "black_jack_game.h" #include <iostream> namespace rlcard { namespace engine { BlackJackGame::BlackJackGame() { p_dealer_ = nullptr; p_judger_ = nullptr; p_banker_ = nullptr; logger_ = spdlog::basic_logger_mt("black_jack_logger", "./logs/...
32.660377
104
0.435471
anschen1994
286b6a43940f811b5aa1640badad78c7654b1bd2
4,653
cpp
C++
Scripting/ReflectionNameService.cpp
dnv-opensource/Reflection
27effb850e9f0cc6acc2d48630ee6aa5d75fa000
[ "BSL-1.0" ]
null
null
null
Scripting/ReflectionNameService.cpp
dnv-opensource/Reflection
27effb850e9f0cc6acc2d48630ee6aa5d75fa000
[ "BSL-1.0" ]
null
null
null
Scripting/ReflectionNameService.cpp
dnv-opensource/Reflection
27effb850e9f0cc6acc2d48630ee6aa5d75fa000
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2021 DNV AS // // 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 "ReflectionNameService.h" #include "Reflection\Types\DynamicTypeTraits.h" #include "Reflection\Attributes\AttributeCollec...
33.235714
116
0.623254
dnv-opensource
286e23d36242d4a0cfb5ad03cbafa19e4521b5b2
2,011
cpp
C++
super-mario-dx10/05-SceneManager/Animations.cpp
HoangTuan0611/Game
64bbf4396ff38d17d3516c1eae687033f954d769
[ "MIT" ]
null
null
null
super-mario-dx10/05-SceneManager/Animations.cpp
HoangTuan0611/Game
64bbf4396ff38d17d3516c1eae687033f954d769
[ "MIT" ]
null
null
null
super-mario-dx10/05-SceneManager/Animations.cpp
HoangTuan0611/Game
64bbf4396ff38d17d3516c1eae687033f954d769
[ "MIT" ]
null
null
null
#include "Animations.h" #include "debug.h" #include "Sprites.h" CAnimationSets* CAnimationSets::__instance = NULL; void CAnimation::Add(int spriteId, DWORD time) { int t = time; if (time == 0) t = this->defaultTime; LPSPRITE sprite = CSprites::GetInstance()->Get(spriteId); if (sprite == NULL) DebugOut(L"[ERRO...
18.971698
65
0.691198
HoangTuan0611
286e3ef915b63a8cf4d77359b45523557cfa03ba
513
cpp
C++
server.cpp
puma10100505/game-networking
c85e4ed404cc16974a5b4e01c973e01b1509ac55
[ "MIT" ]
null
null
null
server.cpp
puma10100505/game-networking
c85e4ed404cc16974a5b4e01c973e01b1509ac55
[ "MIT" ]
null
null
null
server.cpp
puma10100505/game-networking
c85e4ed404cc16974a5b4e01c973e01b1509ac55
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include "server.hpp" #include "misc.hpp" const int server::CLIENT_UPDATE_INTERVAL_MS = 50; int main(int argc, char const *argv[]) { if (argc < 2 || !misc::is_number(argv[1])) { std::cout << "Usage: " << argv[0] << " <port>" << std::endl; return 1; } try { ser...
19.730769
64
0.57115
puma10100505
2870e8988fda4c053e28a218a1a791148658d700
903
cpp
C++
projects/biogears/libBiogears/src/pybwrappers/cdm/properties/pybSEScalar0To1.cpp
vybhavramachandran/mophy
7271c12b85a324a4f1494e0ce15942dc25bc4931
[ "Apache-2.0" ]
null
null
null
projects/biogears/libBiogears/src/pybwrappers/cdm/properties/pybSEScalar0To1.cpp
vybhavramachandran/mophy
7271c12b85a324a4f1494e0ce15942dc25bc4931
[ "Apache-2.0" ]
5
2020-12-23T00:19:32.000Z
2020-12-29T20:53:58.000Z
projects/biogears/libBiogears/src/pybwrappers/cdm/properties/pybSEScalar0To1.cpp
vybhavramachandran/biogears-vybhav
7271c12b85a324a4f1494e0ce15942dc25bc4931
[ "Apache-2.0" ]
null
null
null
#include <biogears/cdm/properties/SEScalar0To1.h> #include <biogears/cdm/properties/SEScalar.h> // #include <biogears/biogears/schema/cdm/Properties.hxx> #include <pybind11/pybind11.h> namespace py = pybind11; PYBIND11_MODULE(pybSEScalar0To1, m) { py::class_<biogears::SEScalar0To1>(m, "SEScalar0To1") .d...
29.129032
109
0.705426
vybhavramachandran
2871b32c950949e8844abf2cc05b86914600109d
686
cpp
C++
Source/Serialization/Yaml2Serializer.cpp
morrow1nd/ToyUtility
0df3364a516de7a396b1cbb7975263506f41121d
[ "MIT" ]
null
null
null
Source/Serialization/Yaml2Serializer.cpp
morrow1nd/ToyUtility
0df3364a516de7a396b1cbb7975263506f41121d
[ "MIT" ]
null
null
null
Source/Serialization/Yaml2Serializer.cpp
morrow1nd/ToyUtility
0df3364a516de7a396b1cbb7975263506f41121d
[ "MIT" ]
null
null
null
#include "ToyUtility/Serialization/Yaml2Serializer.h" #include "ToyUtility/Log/Logger.h" namespace ToyUtility { Yaml2Serializer::Yaml2Serializer(DataStream & stream) : Serializer(stream) { yaml_emitter_initialize(&m_YamlEmitter); //yaml_emitter_set_output(&m_YamlEmitter, ) } Yaml2Serializer::~Yaml...
14
67
0.74344
morrow1nd
28732577430ad5d2e40708640c0f02a0adda2104
1,511
cpp
C++
dotth/Utility.cpp
jaefunk/dotth
d93c69a1744c545606bec3ee0cdc8f46b5c19d36
[ "MIT" ]
null
null
null
dotth/Utility.cpp
jaefunk/dotth
d93c69a1744c545606bec3ee0cdc8f46b5c19d36
[ "MIT" ]
8
2019-11-05T00:06:59.000Z
2022-03-28T09:20:40.000Z
dotth/Utility.cpp
jaefunk/dotth
d93c69a1744c545606bec3ee0cdc8f46b5c19d36
[ "MIT" ]
null
null
null
#include "Utility.h" #pragma warning(disable : 4996) std::string Utility::Str::Format(const char * format, ...) { va_list args; va_start(args, format); va_list temp_args; va_copy(temp_args, args); int size = vsnprintf(nullptr, 0, format, temp_args); va_end(temp_args); if (size < 0) return ""; std::string resul...
26.508772
84
0.663799
jaefunk