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
a30edb5b7df06e3eeeb36a1e86e746d9db32f323
7,084
cpp
C++
src/gui/TActionCuePaletteView.cpp
thezealousfool/UltraDV
470840a298a306495e59fb2d00b730edf04b4506
[ "Unlicense" ]
null
null
null
src/gui/TActionCuePaletteView.cpp
thezealousfool/UltraDV
470840a298a306495e59fb2d00b730edf04b4506
[ "Unlicense" ]
null
null
null
src/gui/TActionCuePaletteView.cpp
thezealousfool/UltraDV
470840a298a306495e59fb2d00b730edf04b4506
[ "Unlicense" ]
2
2021-08-19T20:37:23.000Z
2021-08-20T00:35:19.000Z
//--------------------------------------------------------------------- // // File: TActionCuePaletteView.cpp // // Author: Gene Z. Ragan // // Date: 01.26.98 // // Desc: MediaCue sheet view // // Copyright ©1998 mediapede Software // //--------------------------------------------------------------------- // Includes ...
25.482014
124
0.632129
thezealousfool
a30f415007d528b0323b5e899ce825139147b803
2,405
cpp
C++
src/bindings/bindings.cpp
RUrlus/ModelMetricUncertainty
f401a25dd196d6e4edf4901fcfee4b56ebd7c10b
[ "Apache-2.0" ]
null
null
null
src/bindings/bindings.cpp
RUrlus/ModelMetricUncertainty
f401a25dd196d6e4edf4901fcfee4b56ebd7c10b
[ "Apache-2.0" ]
11
2021-12-08T10:34:17.000Z
2022-01-20T13:40:05.000Z
src/bindings/bindings.cpp
RUrlus/ModelMetricUncertainty
f401a25dd196d6e4edf4901fcfee4b56ebd7c10b
[ "Apache-2.0" ]
null
null
null
/* bindings.cpp -- Python bindings for MMU * Copyright 2022 Ralph Urlus */ #include <pybind11/pybind11.h> #include <mmu/bindings/confusion_matrix.hpp> #include <mmu/bindings/metrics.hpp> #include <mmu/bindings/bvn_error.hpp> #include <mmu/bindings/pr_bvn_grid.hpp> #include <mmu/bindings/pr_multn_loglike.hpp> #includ...
26.141304
58
0.730561
RUrlus
a31039f4da79a37297db4fae02bc08b2a84540c7
4,547
cpp
C++
src/demo_server.cpp
xiyou-linuxer/demo
e1176dde72be50732e39e289d91a0c14ece964d7
[ "MIT" ]
7
2019-04-26T03:49:55.000Z
2019-04-27T10:03:00.000Z
src/demo_server.cpp
xiyou-linuxer/demo
e1176dde72be50732e39e289d91a0c14ece964d7
[ "MIT" ]
null
null
null
src/demo_server.cpp
xiyou-linuxer/demo
e1176dde72be50732e39e289d91a0c14ece964d7
[ "MIT" ]
null
null
null
#include "demo_server.hpp" #include "statistics.hpp" namespace Demo { bool DemoServer::initNetwork() { Config *config = Config::getInstance(); started_ = true; if (!config->dev_name.empty()) { uint32_t addr = Util::getLocalAddr(config->dev_name.c_str()); if (addr) { listen_ip_ ...
37.270492
121
0.607873
xiyou-linuxer
a3104b9f1b01da13d583e52f6c986cac2a0d97a9
10,665
cpp
C++
printtext.cpp
Begasus/beos-fakBEtur
2cfd06d73801a218f35c0591f071f9fcfa11a747
[ "MIT" ]
null
null
null
printtext.cpp
Begasus/beos-fakBEtur
2cfd06d73801a218f35c0591f071f9fcfa11a747
[ "MIT" ]
null
null
null
printtext.cpp
Begasus/beos-fakBEtur
2cfd06d73801a218f35c0591f071f9fcfa11a747
[ "MIT" ]
null
null
null
// // TODO: // usunąć niepotrzebne .String()? // IDEAS: // szerokosci,parametry dla 80/136 do osobnej tabeli, indeksowac // #include "printtext.h" #include "globals.h" #include <stdio.h> printText::printText(int id, sqlite3 *db, int numkopii) : beFakPrint(id,db,numkopii) { wide = ( p_textcols > 80 ); switch ( p_t...
30.73487
166
0.509423
Begasus
a31275d7856913dafa17f5eacc7022eb0da992c5
807
hpp
C++
include/domains/tests/State_test.hpp
vieiramanoel/TP1-2019-1
4d68de98efcb0b77d921b3b0dc4c922a41ac7db3
[ "MIT" ]
null
null
null
include/domains/tests/State_test.hpp
vieiramanoel/TP1-2019-1
4d68de98efcb0b77d921b3b0dc4c922a41ac7db3
[ "MIT" ]
null
null
null
include/domains/tests/State_test.hpp
vieiramanoel/TP1-2019-1
4d68de98efcb0b77d921b3b0dc4c922a41ac7db3
[ "MIT" ]
null
null
null
#include "domains/State.hpp" #include <gtest/gtest.h> #include <stdexcept> #include <string> TEST(StateTest, StateWithNumbers) { ASSERT_THROW(State("14"), std::invalid_argument); ASSERT_THROW(State("154"), std::invalid_argument); } TEST(StateTest, StateWithMoreLetters) { ASSERT_THROW(State("DFT"), std::in...
25.21875
70
0.702602
vieiramanoel
a312fd88cd17580a38289e199cbd1f8d96b02de7
104,535
cpp
C++
lib/test/public-api.cpp
K-H-Ismail/irritator
ff9f1706f5d8c93c93131259e91b8db53a6ea146
[ "BSL-1.0" ]
null
null
null
lib/test/public-api.cpp
K-H-Ismail/irritator
ff9f1706f5d8c93c93131259e91b8db53a6ea146
[ "BSL-1.0" ]
null
null
null
lib/test/public-api.cpp
K-H-Ismail/irritator
ff9f1706f5d8c93c93131259e91b8db53a6ea146
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2020 INRA 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 <irritator/core.hpp> #include <irritator/io.hpp> #include <boost/ut.hpp> #include <fmt/format.h> #include <iostream> struct fi...
37.240827
86
0.544258
K-H-Ismail
a315495f76fbfbb100e12ea2c9037b4daafcb65d
3,160
cpp
C++
examples_rpx/apps/app2.cpp
alsaibie/MachineRX
a92a951e72fb63b03a69a64bc545c9fe91ccee89
[ "MIT" ]
null
null
null
examples_rpx/apps/app2.cpp
alsaibie/MachineRX
a92a951e72fb63b03a69a64bc545c9fe91ccee89
[ "MIT" ]
null
null
null
examples_rpx/apps/app2.cpp
alsaibie/MachineRX
a92a951e72fb63b03a69a64bc545c9fe91ccee89
[ "MIT" ]
null
null
null
/* * MIT License * * Copyright (c) 2020 Ali AlSaibie * * 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, m...
32.244898
115
0.640506
alsaibie
a315c44ddb945948ae9741af654b6f1a988ff30f
349
cpp
C++
tests/simplelog.backend.spdlog/test_main.cpp
ClausKlein/cxx.simplelog
73365bd126ca49ab7bd02e2bd53738f296cdb83a
[ "MIT" ]
null
null
null
tests/simplelog.backend.spdlog/test_main.cpp
ClausKlein/cxx.simplelog
73365bd126ca49ab7bd02e2bd53738f296cdb83a
[ "MIT" ]
8
2020-01-31T20:07:27.000Z
2021-03-06T13:13:25.000Z
tests/simplelog.backend.spdlog/test_main.cpp
ClausKlein/cxx.simplelog
73365bd126ca49ab7bd02e2bd53738f296cdb83a
[ "MIT" ]
3
2020-01-31T20:03:24.000Z
2021-02-28T11:34:42.000Z
/** * @file tests/simplelog.backend.spdlog/test_main.cpp * Unit tests main-function by using the doctest C++ testing framework. * * @see https://github.com/onqtam/doctest * @see https://github.com/onqtam/doctest/blob/master/doc/markdown/tutorial.md **/ // -- TEST MAIN: #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN ...
29.083333
78
0.74212
ClausKlein
a316b21a015649ec3bfba6d1ff255372bff3e6dd
2,576
hxx
C++
xsd-4.0.0/xsd/cxx/tree/comparison-map.hxx
beroset/OpenADR-VEN-Library
16546464fe1dc714a126474aaadf75483ec9cbc6
[ "Apache-2.0" ]
12
2016-09-21T19:07:13.000Z
2021-12-13T06:17:36.000Z
xsd-4.0.0/xsd/cxx/tree/comparison-map.hxx
beroset/OpenADR-VEN-Library
16546464fe1dc714a126474aaadf75483ec9cbc6
[ "Apache-2.0" ]
21
2016-06-13T11:33:45.000Z
2017-05-23T09:46:52.000Z
xsd-4.0.0/xsd/cxx/tree/comparison-map.hxx
beroset/OpenADR-VEN-Library
16546464fe1dc714a126474aaadf75483ec9cbc6
[ "Apache-2.0" ]
12
2018-06-10T10:52:56.000Z
2020-12-08T15:47:13.000Z
// file : xsd/cxx/tree/comparison-map.hxx // copyright : Copyright (c) 2005-2014 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file #ifndef XSD_CXX_TREE_COMPARISON_MAP_HXX #define XSD_CXX_TREE_COMPARISON_MAP_HXX #include <map> #include <cstddef> // std::size_t #include...
22.79646
72
0.586957
beroset
a316ef1993a0f3c08ac59c75f35e65fed9c9ebed
111
cpp
C++
Classes/MyMoveTo.cpp
FrSanchez/snake
4e2260d0784cd90ddf28a9f209b0d00da3cf66d0
[ "MIT" ]
null
null
null
Classes/MyMoveTo.cpp
FrSanchez/snake
4e2260d0784cd90ddf28a9f209b0d00da3cf66d0
[ "MIT" ]
null
null
null
Classes/MyMoveTo.cpp
FrSanchez/snake
4e2260d0784cd90ddf28a9f209b0d00da3cf66d0
[ "MIT" ]
null
null
null
// // MyMoveTo.cpp // snake-mobile // // Created by Francisco Sanchez on 3/15/21. // #include "MyMoveTo.h"
12.333333
44
0.630631
FrSanchez
a3173f544567b22c78af825942e0376bf6e0364d
6,161
cc
C++
quic/core/crypto/aead_base_encrypter.cc
itangwang/quiche
6f18a8295cc1f00b1b7e0adad70e7b764cf9dd51
[ "BSD-3-Clause" ]
1
2020-03-11T03:44:02.000Z
2020-03-11T03:44:02.000Z
src/net/third_party/quiche/src/quic/core/crypto/aead_base_encrypter.cc
bylond/naiveproxy
a04a8330a8bb0d0892259cf6d795271fbe6e6d0e
[ "BSD-3-Clause" ]
null
null
null
src/net/third_party/quiche/src/quic/core/crypto/aead_base_encrypter.cc
bylond/naiveproxy
a04a8330a8bb0d0892259cf6d795271fbe6e6d0e
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/third_party/quiche/src/quic/core/crypto/aead_base_encrypter.h" #include "third_party/boringssl/src/include/openssl/crypto.h" #include "...
32.771277
80
0.677325
itangwang
a3181a0b68c7adc5906f4a8f8b477d6905f260c9
387
cpp
C++
competitive_programming/programming_contests/uri/flavious_josephus_legend3.cpp
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
205
2018-12-01T17:49:49.000Z
2021-12-22T07:02:27.000Z
competitive_programming/programming_contests/uri/flavious_josephus_legend3.cpp
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
2
2020-01-01T16:34:29.000Z
2020-04-26T19:11:13.000Z
competitive_programming/programming_contests/uri/flavious_josephus_legend3.cpp
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
50
2018-11-28T20:51:36.000Z
2021-11-29T04:08:25.000Z
// https://www.urionlinejudge.com.br/judge/en/problems/view/1030 #include <iostream> using namespace std; int josephus(int n, int k) { if (n == 1) return 0; return (josephus(n-1, k) + k) % n; } int main() { int n, n1, n2, counter = 1; cin >> n; while (n--) { cin >> n1 >> n2; cout << "Case " << counter <...
16.125
67
0.560724
LeandroTk
a31d494ee8bba2254641e5f955b492d03ce109ec
8,339
cpp
C++
src/Engine/PVSearch.cpp
jweathers777/mShogi
941cd4dc37e6e6210d4f993c96a553753e228b19
[ "BSD-3-Clause" ]
4
2015-12-24T04:52:48.000Z
2021-11-09T11:31:36.000Z
src/Engine/PVSearch.cpp
jweathers777/mShogi
941cd4dc37e6e6210d4f993c96a553753e228b19
[ "BSD-3-Clause" ]
null
null
null
src/Engine/PVSearch.cpp
jweathers777/mShogi
941cd4dc37e6e6210d4f993c96a553753e228b19
[ "BSD-3-Clause" ]
null
null
null
//////////////////////////////////////////////////////////////////////////// // Name: PVSearch.cpp // Description: Implementation for class that performs a // principle variation search // Created: 07/09/2004 04:34:22 Eastern Standard Time // Last Updated: $Date: 2004/09/18 21:59:43 $ // Rev...
29.570922
76
0.536515
jweathers777
a320643d640b715c53ff9a7f368226971eaf910f
571
hpp
C++
include/RED4ext/Scripting/Natives/Generated/vehicle/DetachAllPartsEvent.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
42
2020-12-25T08:33:00.000Z
2022-03-22T14:47:07.000Z
include/RED4ext/Scripting/Natives/Generated/vehicle/DetachAllPartsEvent.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
38
2020-12-28T22:36:06.000Z
2022-02-16T11:25:47.000Z
include/RED4ext/Scripting/Natives/Generated/vehicle/DetachAllPartsEvent.hpp
jackhumbert/RED4ext.SDK
2c55eccb83beabbbe02abae7945af8efce638fca
[ "MIT" ]
20
2020-12-28T22:17:38.000Z
2022-03-22T17:19:01.000Z
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Scripting/Natives/Generated/red/Event.hpp> namespace RED4ext { namespace vehicle { struct DetachAllPartsEvent : red::Event { static constexpr const char* NAME = "vehicleDetac...
25.954545
70
0.782837
jackhumbert
a322f838d16e31946c4de0677916fd636994edf5
4,091
cpp
C++
kd_tree/ut/kd_tree_ut.cpp
Abergard/rtc
e0cdbbb4a005b7d9f3b10d1a519fcb6be876e65f
[ "MIT" ]
3
2019-05-25T01:03:38.000Z
2019-06-29T07:43:49.000Z
kd_tree/ut/kd_tree_ut.cpp
Abergard/rtc
e0cdbbb4a005b7d9f3b10d1a519fcb6be876e65f
[ "MIT" ]
1
2019-05-24T22:16:30.000Z
2019-05-24T22:16:30.000Z
kd_tree/ut/kd_tree_ut.cpp
Abergard/rtc
e0cdbbb4a005b7d9f3b10d1a519fcb6be876e65f
[ "MIT" ]
1
2019-05-24T19:12:44.000Z
2019-05-24T19:12:44.000Z
#include "gtest/gtest.h" #include "kd_tree.hpp" #include "scene_model.hpp" #include "brs.hpp" #include "point_in_triangle_test.hpp" #include "math_plane.hpp" #include "rtc_log.hpp" #include "scoped_timer.hpp" #include "ray_tracer.hpp" namespace rtc::ut { TEST(kd_tree_ut, room_test_found_1032) { auto scene = std::m...
28.608392
67
0.712051
Abergard
a326145e89950ce2e2c611e9bd8f009190efbfd9
16,879
hh
C++
cpu6502.hh
bellcorreia/cpu6502
4fc1bc463ccdfac46e8443bfc14d4cbadf0d5736
[ "MIT" ]
3
2022-01-21T19:54:57.000Z
2022-01-23T04:44:56.000Z
cpu6502.hh
bellcorreia/cpu6502
4fc1bc463ccdfac46e8443bfc14d4cbadf0d5736
[ "MIT" ]
null
null
null
cpu6502.hh
bellcorreia/cpu6502
4fc1bc463ccdfac46e8443bfc14d4cbadf0d5736
[ "MIT" ]
null
null
null
/* * Source code written by Gabriel Correia */ #pragma once #include <array> #include <cstdint> #include <string_view> #include <cstdarg> #include <fmt/core.h> /* Set to 1 to enable callback functions */ #define USE_6502_CALLBACKS 1 /* Set to 1 to enable the internal ram memory (You don't will ne...
38.802299
117
0.538361
bellcorreia
cd11546ea1f13d1c68b459d3a0a1c84a18081463
1,496
cpp
C++
tools/PTPServerProc/ErrorIds.cpp
SergeyStrukov/CCore-4-xx
5faeadd50a24a7dbe18ffff8efe5f49212588637
[ "BSL-1.0" ]
null
null
null
tools/PTPServerProc/ErrorIds.cpp
SergeyStrukov/CCore-4-xx
5faeadd50a24a7dbe18ffff8efe5f49212588637
[ "BSL-1.0" ]
null
null
null
tools/PTPServerProc/ErrorIds.cpp
SergeyStrukov/CCore-4-xx
5faeadd50a24a7dbe18ffff8efe5f49212588637
[ "BSL-1.0" ]
null
null
null
/* ErrorIds.cpp */ //---------------------------------------------------------------------------------------- // // Project: PTPServerProc 1.00 // // License: Boost Software License - Version 1.0 - August 17th, 2003 // // see http://www.boost.org/LICENSE_1_0.txt or the local copy // // Copyright (c) 2021 ...
25.355932
90
0.562834
SergeyStrukov
cd130eaee54e95d1ac77e222e60be8edc99fc892
18,264
cpp
C++
1368 - Truchet Tiling .cpp
anirudha-ani/LightOJ
619d637f28fce3c9e15d0d3590d59ef75d8d6cb3
[ "Apache-2.0" ]
1
2020-04-25T03:09:12.000Z
2020-04-25T03:09:12.000Z
1368 - Truchet Tiling .cpp
anirudha-ani/LightOJ
619d637f28fce3c9e15d0d3590d59ef75d8d6cb3
[ "Apache-2.0" ]
null
null
null
1368 - Truchet Tiling .cpp
anirudha-ani/LightOJ
619d637f28fce3c9e15d0d3590d59ef75d8d6cb3
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> using namespace std; string graph[105]; double PI = acos(-1.0); double area[6]; int test_case , R , C , query_no , row , column; double BFS(int row , int column) { double answer = 0.0; queue<int> row_line; queue<int> column_line; queue<int> type_line; bool ...
35.952756
128
0.426796
anirudha-ani
cd155d5b088d7fe5e4a9dff4bd963338c350ef28
4,955
cpp
C++
ios/Arasan/src/searchc.cpp
mono424/flutter-arasan
9dc537c6bf84eb52998497fcd0cc754b6a5e22f9
[ "MIT" ]
1
2021-08-31T06:03:40.000Z
2021-08-31T06:03:40.000Z
ios/Arasan/src/searchc.cpp
mono424/flutter-arasan
9dc537c6bf84eb52998497fcd0cc754b6a5e22f9
[ "MIT" ]
null
null
null
ios/Arasan/src/searchc.cpp
mono424/flutter-arasan
9dc537c6bf84eb52998497fcd0cc754b6a5e22f9
[ "MIT" ]
1
2021-08-31T06:03:41.000Z
2021-08-31T06:03:41.000Z
// Copyright 2006-2008, 2011, 2017-2021 by Jon Dart. All Rights Reserved. #include "searchc.h" #include "search.h" SearchContext::SearchContext() { history = new ButterflyArray<int>(); counterMoves = new PieceToArray<Move>(); counterMoveHistory = new PieceTypeToMatrix<int>(); fuMoveHistory = new Piece...
34.409722
84
0.552775
mono424
cd180f290f5a7d4a21d7636ac0213e28d198ff6a
2,608
cpp
C++
examples/api/linear_arith.cpp
guykatzz/CVC4_idl_lab
24cb1ed0c7c1445cbfb592a7ebcb454b70897d30
[ "BSL-1.0" ]
null
null
null
examples/api/linear_arith.cpp
guykatzz/CVC4_idl_lab
24cb1ed0c7c1445cbfb592a7ebcb454b70897d30
[ "BSL-1.0" ]
null
null
null
examples/api/linear_arith.cpp
guykatzz/CVC4_idl_lab
24cb1ed0c7c1445cbfb592a7ebcb454b70897d30
[ "BSL-1.0" ]
null
null
null
/********************* */ /*! \file linear_arith.cpp ** \verbatim ** Top contributors (to current version): ** Tim King, Morgan Deters ** This file is part of the CVC4 project. ** Copyright (c) 2009-2016 by the authors listed in the file AUTHORS ** in the t...
30.682353
80
0.65069
guykatzz
cd1f034be9296a516ae1cd49c49cefe74a2ff2a2
5,856
cpp
C++
samples/Hello/third-party/fuzzylite/fuzzylite/src/activation/Threshold.cpp
okocsis/ios-cmake
ca61d83725bc5b1a755928f4592badbd9a8b37f4
[ "BSD-3-Clause" ]
null
null
null
samples/Hello/third-party/fuzzylite/fuzzylite/src/activation/Threshold.cpp
okocsis/ios-cmake
ca61d83725bc5b1a755928f4592badbd9a8b37f4
[ "BSD-3-Clause" ]
null
null
null
samples/Hello/third-party/fuzzylite/fuzzylite/src/activation/Threshold.cpp
okocsis/ios-cmake
ca61d83725bc5b1a755928f4592badbd9a8b37f4
[ "BSD-3-Clause" ]
null
null
null
/* fuzzylite (R), a fuzzy logic control library in C++. Copyright (C) 2010-2017 FuzzyLite Limited. All rights reserved. Author: Juan Rada-Vilela, Ph.D. <jcrada@fuzzylite.com> This file is part of fuzzylite. fuzzylite is free software: you can redistribute it and/or modify it under the terms of the FuzzyLite Lic...
34.245614
95
0.608265
okocsis
cd1f6ba5b738ccf8d12b09698a881e4b19709038
760
hpp
C++
test/addrlist.hpp
zenomt/rtmfp-cpp
e85d8928d5192c5e16f963ca281a4c5a701dae7b
[ "MIT" ]
21
2021-01-25T07:33:12.000Z
2022-02-09T08:08:51.000Z
test/addrlist.hpp
zenomt/rtmfp-cpp
e85d8928d5192c5e16f963ca281a4c5a701dae7b
[ "MIT" ]
2
2021-04-25T15:30:27.000Z
2021-06-26T22:56:31.000Z
test/addrlist.hpp
zenomt/rtmfp-cpp
e85d8928d5192c5e16f963ca281a4c5a701dae7b
[ "MIT" ]
null
null
null
namespace { bool addrlist_parse(int argc, char * const *argv, int start_at, bool combined, std::vector<com::zenomt::rtmfp::Address> &dst) { int parts = combined ? 1 : 2; while(start_at < argc - parts + 1) { com::zenomt::rtmfp::Address each; if(not each.setFromPresentation(argv[start_at], combined)) { prin...
24.516129
125
0.672368
zenomt
cd2048965dfdb894aac2e660b85ca7ed263bcc6e
1,532
hpp
C++
libRay/Math/Vector.hpp
RA-Kooi/Ray-Tracer
8a4f133c1a7cc479f9f33819eb200d5a3ffa48d0
[ "MIT" ]
3
2019-03-22T02:15:18.000Z
2019-11-12T08:12:57.000Z
libRay/Math/Vector.hpp
RA-Kooi/Ray-Tracer
8a4f133c1a7cc479f9f33819eb200d5a3ffa48d0
[ "MIT" ]
null
null
null
libRay/Math/Vector.hpp
RA-Kooi/Ray-Tracer
8a4f133c1a7cc479f9f33819eb200d5a3ffa48d0
[ "MIT" ]
null
null
null
#ifndef f51e2d4a_b54f_2fdf_a142_ebc7a4bcf3a3 #define f51e2d4a_b54f_2fdf_a142_ebc7a4bcf3a3 #include <cstddef> #include <ostream> #include <glm/gtx/extended_min_max.hpp> #include <glm/gtx/component_wise.hpp> #include <glm/gtx/norm.hpp> #include <glm/geometric.hpp> #include <glm/vec2.hpp> #include <glm/vec3.hpp> #includ...
28.90566
83
0.633159
RA-Kooi
cd211fbfb0df0a4fecbc4a8b616854913fa3900e
2,449
cc
C++
lib/sanitizer_common/sanitizer_unwind_win.cc
remote-android/toolchain_compiler-rt
2ab6b9526fadddd76a15e0ecedf60462b2de2ed7
[ "Apache-2.0" ]
null
null
null
lib/sanitizer_common/sanitizer_unwind_win.cc
remote-android/toolchain_compiler-rt
2ab6b9526fadddd76a15e0ecedf60462b2de2ed7
[ "Apache-2.0" ]
null
null
null
lib/sanitizer_common/sanitizer_unwind_win.cc
remote-android/toolchain_compiler-rt
2ab6b9526fadddd76a15e0ecedf60462b2de2ed7
[ "Apache-2.0" ]
3
2021-11-28T11:21:54.000Z
2022-03-13T11:10:01.000Z
//===-- sanitizer_unwind_win.cc -------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
32.653333
80
0.685586
remote-android
cd2152777213364448188ea5ea4c3c6f7452ce6f
3,420
cpp
C++
Chapter_27/Model/Model.cpp
9ndres/Ray-Tracing-Gems-II
5fef3b49375c823431ef06f8c67d1b44b432304a
[ "MIT" ]
603
2021-08-04T11:46:33.000Z
2022-03-28T12:12:31.000Z
Chapter_27/Model/Model.cpp
9ndres/Ray-Tracing-Gems-II
5fef3b49375c823431ef06f8c67d1b44b432304a
[ "MIT" ]
null
null
null
Chapter_27/Model/Model.cpp
9ndres/Ray-Tracing-Gems-II
5fef3b49375c823431ef06f8c67d1b44b432304a
[ "MIT" ]
45
2021-08-04T18:57:37.000Z
2022-03-11T11:33:49.000Z
// // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. ...
26.307692
162
0.609649
9ndres
cd228184f392b1e510e5ac075719c098c7f028c3
5,815
hpp
C++
arbor/include/arbor/math.hpp
kanzl/arbor
86b1eb065ac252bf0026de7cf7cbc6748a528254
[ "BSD-3-Clause" ]
53
2018-10-18T12:08:21.000Z
2022-03-26T22:03:51.000Z
arbor/include/arbor/math.hpp
kanzl/arbor
86b1eb065ac252bf0026de7cf7cbc6748a528254
[ "BSD-3-Clause" ]
864
2018-10-01T08:06:00.000Z
2022-03-31T08:06:48.000Z
arbor/include/arbor/math.hpp
kanzl/arbor
86b1eb065ac252bf0026de7cf7cbc6748a528254
[ "BSD-3-Clause" ]
37
2019-03-03T16:18:49.000Z
2022-03-24T10:39:51.000Z
#pragma once #include <cmath> #include <limits> #include <type_traits> #include <utility> #include <arbor/util/compat.hpp> namespace arb { namespace math { template <typename T> T constexpr pi = 3.1415926535897932384626433832795l; template <typename T = float> T constexpr infinity = std::numeric_limits<T>::infinit...
23.831967
91
0.582115
kanzl
cd23334900f5c0d6a2f516206c87edd95ac34c5f
2,793
hpp
C++
include/Nazara/VulkanRenderer/VulkanDevice.hpp
gogo2464/NazaraEngine
f1a00c36cb27d9f07d1b7db03313e0038d9a7d00
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
376
2015-01-09T03:14:48.000Z
2022-03-26T17:59:18.000Z
include/Nazara/VulkanRenderer/VulkanDevice.hpp
gogo2464/NazaraEngine
f1a00c36cb27d9f07d1b7db03313e0038d9a7d00
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
252
2015-01-21T17:34:39.000Z
2022-03-20T16:15:50.000Z
include/Nazara/VulkanRenderer/VulkanDevice.hpp
gogo2464/NazaraEngine
f1a00c36cb27d9f07d1b7db03313e0038d9a7d00
[ "BSD-3-Clause-Clear", "Apache-2.0", "MIT" ]
104
2015-01-18T11:03:41.000Z
2022-03-11T05:40:47.000Z
// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Vulkan Renderer" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_VULKANRENDERER_VULKANDEVICE_HPP #define NAZARA_VULKANRENDERER_VULKANDEVICE_HPP #include <Nazara/Prerequisites.h...
51.722222
240
0.814536
gogo2464
cd2525f5b0bf5d04677e0a7884490f9527341f8a
20,108
cpp
C++
automated-tests/src/dali/utc-Dali-Matrix.cpp
pwisbey/dali-core
53117f5d4178001b0d688c5bce14d7bf8e861631
[ "Apache-2.0" ]
1
2016-08-05T09:58:38.000Z
2016-08-05T09:58:38.000Z
automated-tests/src/dali/utc-Dali-Matrix.cpp
tizenorg/platform.core.uifw.dali-core
dd89513b4bb1fdde74a83996c726e10adaf58349
[ "Apache-2.0" ]
null
null
null
automated-tests/src/dali/utc-Dali-Matrix.cpp
tizenorg/platform.core.uifw.dali-core
dd89513b4bb1fdde74a83996c726e10adaf58349
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
25.041096
146
0.592202
pwisbey
cd2915f9deadd1c1cb19fdea87a0b1e38ed6f705
8,790
cpp
C++
src/test/TestRcClipGeneric.cpp
mikelange49/pedalevite
a81bd8a6119c5920995ec91b9f70e11e9379580e
[ "WTFPL" ]
null
null
null
src/test/TestRcClipGeneric.cpp
mikelange49/pedalevite
a81bd8a6119c5920995ec91b9f70e11e9379580e
[ "WTFPL" ]
null
null
null
src/test/TestRcClipGeneric.cpp
mikelange49/pedalevite
a81bd8a6119c5920995ec91b9f70e11e9379580e
[ "WTFPL" ]
null
null
null
/***************************************************************************** TestRcClipGeneric.cpp Author: Laurent de Soras, 2020 --- Legal stuff --- This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it und...
25.258621
101
0.604096
mikelange49
cd30eab09ec4f82b8e2a95cd14abf583c430cb86
8,062
cpp
C++
Sources/Display/Platform/Win32/cursor_provider_win32.cpp
xctan/ClanLib
1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d
[ "Linux-OpenIB" ]
248
2015-01-08T05:21:40.000Z
2022-03-20T02:59:16.000Z
Sources/Display/Platform/Win32/cursor_provider_win32.cpp
xctan/ClanLib
1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d
[ "Linux-OpenIB" ]
39
2015-01-14T17:37:07.000Z
2022-03-17T12:59:26.000Z
Sources/Display/Platform/Win32/cursor_provider_win32.cpp
xctan/ClanLib
1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d
[ "Linux-OpenIB" ]
82
2015-01-11T13:23:49.000Z
2022-02-19T03:17:24.000Z
/* ** ClanLib SDK ** Copyright (c) 1997-2020 The ClanLib Team ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors be held liable for any damages ** arising from the use of this software. ** ** Permission is granted to anyone to use this software for a...
33.591667
170
0.708013
xctan
cd3513680c3ae35f2ccf1890a8827e010bbfd761
1,123
hh
C++
gsky/net/pp/writer.hh
pwnsky/gsky
8d671c949a88726c6923f44cdce38699fc7fe660
[ "Apache-2.0" ]
1
2021-10-30T14:40:59.000Z
2021-10-30T14:40:59.000Z
gsky/net/pp/writer.hh
pwnsky/gsky
8d671c949a88726c6923f44cdce38699fc7fe660
[ "Apache-2.0" ]
null
null
null
gsky/net/pp/writer.hh
pwnsky/gsky
8d671c949a88726c6923f44cdce38699fc7fe660
[ "Apache-2.0" ]
null
null
null
#pragma once #include <map> #include <string> #include <gsky/gsky.hh> #include <gsky/util/vessel.hh> #include <gsky/util/json.hh> namespace gsky { namespace net { namespace pp { class writer { using json = gsky::util::json; public: explicit writer(); // uid for deal with offline ~writer(); void set_s...
29.552632
75
0.69724
pwnsky
cd38d9dae4018330c6caa49ac82c8b981c30a82e
879
cpp
C++
Source/TPSOnline/Private/Actors/AmmoPickupActor.cpp
DanialKama/TPSOnline
0c683be23882a72ca8f1daf6e62728fabf1db913
[ "MIT" ]
2
2022-01-20T19:29:43.000Z
2022-01-26T15:01:32.000Z
Source/TPSOnline/Private/Actors/AmmoPickupActor.cpp
DanialKama/TPSOnline
0c683be23882a72ca8f1daf6e62728fabf1db913
[ "MIT" ]
42
2022-01-15T09:20:06.000Z
2022-02-01T19:28:04.000Z
Source/TPSOnline/Private/Actors/AmmoPickupActor.cpp
DanialKama/TPSOnline
0c683be23882a72ca8f1daf6e62728fabf1db913
[ "MIT" ]
null
null
null
// Copyright 2022 Danial Kamali. All Rights Reserved. #include "Actors/AmmoPickupActor.h" AAmmoPickupActor::AAmmoPickupActor() { PrimaryActorTick.bCanEverTick = false; MeshComponent = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Mesh")); SetRootComponent(MeshComponent); MeshComponent->SetComponentTickEnabl...
22.538462
76
0.754266
DanialKama
cd3c01a6a17c5cbf71efa33dc3a7311e4aebb12b
878
cpp
C++
ConsoleWriterFactory.cpp
nwehr/eloquent-ext-consolewriter
35ce11895fb092120689359a0b80d4e47632a029
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ConsoleWriterFactory.cpp
nwehr/eloquent-ext-consolewriter
35ce11895fb092120689359a0b80d4e47632a029
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ConsoleWriterFactory.cpp
nwehr/eloquent-ext-consolewriter
35ce11895fb092120689359a0b80d4e47632a029
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
// // Copyright 2013-2014 EvriChart, Inc. All Rights Reserved. // See LICENSE.txt // // Internal #include "ConsoleWriter.h" #include "ConsoleWriterFactory.h" /////////////////////////////////////////////////////////////////////////////// // ConsoleWriterFactory : IOExtensionFactory ///////////////////////////////////...
36.583333
106
0.574032
nwehr
cd3c2eeb055fef1a26ec3b781c3bf0a173fddbb9
19,764
cpp
C++
src/3rd_party/miniz_cpp.cpp
Eisenwave/voxel-io
d902568de2d4afda254e533a5ee9e4ad5fe7d2be
[ "MIT" ]
12
2020-06-25T13:40:22.000Z
2021-12-06T04:00:29.000Z
src/3rd_party/miniz_cpp.cpp
Eisenwave/voxel-io
d902568de2d4afda254e533a5ee9e4ad5fe7d2be
[ "MIT" ]
2
2021-02-04T16:19:40.000Z
2021-06-25T09:39:20.000Z
src/3rd_party/miniz_cpp.cpp
Eisenwave/voxel-io
d902568de2d4afda254e533a5ee9e4ad5fe7d2be
[ "MIT" ]
null
null
null
#include "voxelio/3rd_party/miniz_cpp.hpp" #include "voxelio/3rd_party/miniz.h" #include <assert.h> #include <iostream> #include <fstream> #include <cstring> namespace miniz_cpp { namespace detail { #ifdef _WIN32 char directory_separator = '\\'; char alt_directory_separator = '/'; #else constexpr char directory_se...
28.810496
196
0.635499
Eisenwave
cd3f7ea62174f82d1dded06605810dbaa95730a2
473
cpp
C++
NJUPT-ACM/2017.4.15/A.cpp
ZsgsDesign/My_ACM_Life
9cd5e6dedbf58d8dd2322d5f06ea9d86583f7c46
[ "CC-BY-4.0" ]
4
2019-02-17T15:14:21.000Z
2019-03-30T11:34:19.000Z
NJUPT-ACM/2017.4.15/A.cpp
ZsgsDesign/My_ACM_Life
9cd5e6dedbf58d8dd2322d5f06ea9d86583f7c46
[ "CC-BY-4.0" ]
null
null
null
NJUPT-ACM/2017.4.15/A.cpp
ZsgsDesign/My_ACM_Life
9cd5e6dedbf58d8dd2322d5f06ea9d86583f7c46
[ "CC-BY-4.0" ]
null
null
null
#include <cstdio> #include <cstring> #include <cmath> #include <iostream> #include <algorithm> using namespace std; int n,ans; int a,b,c,t; int main() { //ios::sync_with_stdio(false); cin >> n; //cin >> n; for(int i=1;i<=n;i++) { cin >> a >> b >> c; if(a>b){t=a;a=b;b=t;} if(b>c){t=b;b=c;c=t;} if...
14.333333
31
0.513742
ZsgsDesign
cd41b3c1ef6d919f19e570969e364f866be9fe4b
7,086
cpp
C++
Platform/Serializer.cpp
kaizen365/truecrypt
4033160fd27dd0182a7b88f63faee1e4e32b709e
[ "Zlib" ]
23
2015-02-15T19:46:22.000Z
2019-08-14T16:53:52.000Z
Platform/Serializer.cpp
pustladi/TrueCrypt
df093ae9b4c5f15e4d494658fa19f459ad77e6d3
[ "Zlib", "MIT" ]
1
2018-11-04T13:57:55.000Z
2018-11-04T15:59:40.000Z
Platform/Serializer.cpp
pustladi/TrueCrypt
df093ae9b4c5f15e4d494658fa19f459ad77e6d3
[ "Zlib", "MIT" ]
8
2015-04-03T14:01:20.000Z
2020-05-17T03:26:19.000Z
/* Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved. Governed by the TrueCrypt License 3.0 the full text of which is contained in the file License.txt included in TrueCrypt binary and source code distribution packages. */ #include "Exception.h" #include "ForEach.h" #include "Memo...
23.62
109
0.659328
kaizen365
cd4249b7289bbddad74b859af29bd91b5f15b6c0
10,830
hpp
C++
include/caffe/util/math_functions.hpp
oscmansan/nvcaffe
22738c97e9c6991e49a12a924c3c773d95795b5c
[ "BSD-2-Clause" ]
null
null
null
include/caffe/util/math_functions.hpp
oscmansan/nvcaffe
22738c97e9c6991e49a12a924c3c773d95795b5c
[ "BSD-2-Clause" ]
null
null
null
include/caffe/util/math_functions.hpp
oscmansan/nvcaffe
22738c97e9c6991e49a12a924c3c773d95795b5c
[ "BSD-2-Clause" ]
null
null
null
#ifndef CAFFE_UTIL_MATH_FUNCTIONS_H_ #define CAFFE_UTIL_MATH_FUNCTIONS_H_ #include <stdint.h> #include <cmath> // for std::fabs and std::signbit #include "glog/logging.h" #include "caffe/common.hpp" #include "caffe/util/device_alternate.hpp" #include "caffe/util/mkl_alternate.hpp" #include "caffe/util/get.hpp" nam...
36.464646
97
0.734718
oscmansan
cd49ab9f5f1345fb41366b8b8db9410425d26416
1,791
cpp
C++
JobduInCPlusPlus/1013 开门人和关门人.cpp
zpfbuaa/JobduInCPlusPlus
067db56ee952660c6ee6e6ab958747d566f3da02
[ "MIT" ]
16
2017-04-17T03:52:51.000Z
2021-01-21T07:56:50.000Z
JobduInCPlusPlus/1013 开门人和关门人.cpp
zpfbuaa/JobduInCPlusPlus
067db56ee952660c6ee6e6ab958747d566f3da02
[ "MIT" ]
null
null
null
JobduInCPlusPlus/1013 开门人和关门人.cpp
zpfbuaa/JobduInCPlusPlus
067db56ee952660c6ee6e6ab958747d566f3da02
[ "MIT" ]
7
2017-04-17T03:52:52.000Z
2019-09-26T08:41:08.000Z
// // 1013 开门人和关门人.cpp // Jobdu // // Created by PengFei_Zheng on 28/04/2017. // Copyright © 2017 PengFei_Zheng. All rights reserved. // #include <stdio.h> #include <iostream> #include <algorithm> #include <string.h> #include <cstring> #include <cmath> #define MAX_SIZE 21 #define MAX_HUMAN 110 using namespace std...
22.111111
143
0.535455
zpfbuaa
cd4f45c69789cbc1c4c4d87fb97175f7a7d4540d
529
cxx
C++
firmware/MXKeyboard.cxx
bad-alloc-heavy-industries/MXKeyboard
b1637ba3b2eb9a741559ceb789452127e1a441a6
[ "BSD-3-Clause" ]
5
2021-03-07T00:19:15.000Z
2021-09-02T22:34:19.000Z
firmware/MXKeyboard.cxx
bad-alloc-heavy-industries/MXKeyboard
b1637ba3b2eb9a741559ceb789452127e1a441a6
[ "BSD-3-Clause" ]
null
null
null
firmware/MXKeyboard.cxx
bad-alloc-heavy-industries/MXKeyboard
b1637ba3b2eb9a741559ceb789452127e1a441a6
[ "BSD-3-Clause" ]
null
null
null
// SPDX-License-Identifier: BSD-3-Clause #include <avr/builtins.h> #include <usb/core.hxx> #include "MXKeyboard.hxx" #include "interrupts.hxx" #include "usb/hid.hxx" void run() { __builtin_avr_cli(); oscInit(); //ps2Init(); dmaInit(); ledInit(); keyInit(); usb::core::init(); usb::hid::registerHandlers(1, 0, 1)...
18.892857
56
0.674858
bad-alloc-heavy-industries
cd4fcfa8ce8324da396dfd5d3570eb2cd7f56a51
5,309
hpp
C++
lib/ModbusAPI.hpp
mensinda/modbusSMA
0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979
[ "Apache-2.0" ]
1
2020-03-15T18:53:26.000Z
2020-03-15T18:53:26.000Z
lib/ModbusAPI.hpp
mensinda/modbusSMA
0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979
[ "Apache-2.0" ]
null
null
null
lib/ModbusAPI.hpp
mensinda/modbusSMA
0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979
[ "Apache-2.0" ]
1
2022-03-14T11:06:26.000Z
2022-03-14T11:06:26.000Z
//! \file /* * Copyright (C) 2018 Daniel Mensinger * * 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 la...
34.474026
119
0.666227
mensinda
cd52a00ff1fd417431d11df6686e97b729ad523a
2,042
cc
C++
graph/mst-kruskal.cc
deyuan/coding-practice
82bdf719397507601e582ab6d5693e4e50e96a3a
[ "MIT" ]
null
null
null
graph/mst-kruskal.cc
deyuan/coding-practice
82bdf719397507601e582ab6d5693e4e50e96a3a
[ "MIT" ]
null
null
null
graph/mst-kruskal.cc
deyuan/coding-practice
82bdf719397507601e582ab6d5693e4e50e96a3a
[ "MIT" ]
null
null
null
// Minimum Spanning Tree, Kruskal Algorithm // Copyright (c) 2021 Deyuan Guo <guodeyuan@gmail.com>. All rights reserved. #include <iostream> #include <vector> #include "graph_util.h" class UnionFind { public: UnionFind(int n) : root(n), rank(n) { for (int i = 0; i < n; i++) { root[i] = i; } } in...
22.195652
76
0.554358
deyuan
cd5ef5628c996ec0cae3f8d242ac50f518c663a4
606
cpp
C++
t/tests.cpp
chickchirik/randcrypt
b216d3dc70ff432a8c1d65945a414e00ada4f7bf
[ "MIT" ]
1
2020-05-08T12:55:58.000Z
2020-05-08T12:55:58.000Z
t/tests.cpp
chickchirik/randcrypt
b216d3dc70ff432a8c1d65945a414e00ada4f7bf
[ "MIT" ]
null
null
null
t/tests.cpp
chickchirik/randcrypt
b216d3dc70ff432a8c1d65945a414e00ada4f7bf
[ "MIT" ]
null
null
null
/* tests.cpp Created by <chickchirik> on 08/10/2019. DESCRIPTION: tests sub-project based on Catch2 testing framework that runs tests on core modules. In order to run tests - just build this project and execute t. In order to add tests - create new cpp file, include Catch2 and fil...
24.24
46
0.69637
chickchirik
cd62dd60e4583da7c78b8913d5d40913adcf642a
2,424
cpp
C++
src/1_digital/cclight/exe_flag_gen.cpp
gtaifu/CACTUS
a05f47423ac37b14989ec38c525741ec597b4826
[ "Apache-2.0" ]
8
2020-01-04T06:40:13.000Z
2020-12-04T19:29:02.000Z
src/1_digital/cclight/exe_flag_gen.cpp
gtaifu/CACTUS
a05f47423ac37b14989ec38c525741ec597b4826
[ "Apache-2.0" ]
null
null
null
src/1_digital/cclight/exe_flag_gen.cpp
gtaifu/CACTUS
a05f47423ac37b14989ec38c525741ec597b4826
[ "Apache-2.0" ]
1
2021-07-05T02:14:05.000Z
2021-07-05T02:14:05.000Z
#include "exe_flag_gen.h" #include <vector> namespace cactus { Fce_logic::Fce_logic(const sc_core::sc_module_name& n) : sc_core::sc_module(n) { msmt_res_his.init(NUM_HIS_MSMT_RES); SC_CTHREAD(log_msmt_his, clock); SC_CTHREAD(gen_exe_flag, clock); } void Fce_logic::log_msmt_his() { std::vector...
27.545455
93
0.608911
gtaifu
cd6632a23b49abd05da65718cdd28b6192597a9d
797
hpp
C++
vp/src/platform/redv/i2c/i2cclient.hpp
U2654/riscv-vp
2ecb20927d72bf8431c7b436ddbe90d634d32c64
[ "MIT" ]
null
null
null
vp/src/platform/redv/i2c/i2cclient.hpp
U2654/riscv-vp
2ecb20927d72bf8431c7b436ddbe90d634d32c64
[ "MIT" ]
null
null
null
vp/src/platform/redv/i2c/i2cclient.hpp
U2654/riscv-vp
2ecb20927d72bf8431c7b436ddbe90d634d32c64
[ "MIT" ]
1
2021-11-04T14:18:06.000Z
2021-11-04T14:18:06.000Z
#ifndef I2C_CLIENT_H #define I2C_CLIENT_H #define I2C_CMD_STA 7 #define I2C_CMD_STO 6 #define I2C_CMD_ACK 3 #define I2C_STAT_RXACK 7 #define I2C_STAT_BUSY 6 #define I2C_STAT_ARLO 5 #define I2C_STAT_TIP 1 #define I2C_STAT_IF 0 class I2CClient { public: enum State { IDLE, ADDRESS, REGIS...
16.265306
65
0.662484
U2654
cd6d8e155d23c304eac4357f682ac51845b1b14e
1,498
cpp
C++
c++/leetcode/0065-Valid_Number-H.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
1
2020-03-02T10:56:22.000Z
2020-03-02T10:56:22.000Z
c++/leetcode/0065-Valid_Number-H.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
c++/leetcode/0065-Valid_Number-H.cpp
levendlee/leetcode
35e274cb4046f6ec7112cd56babd8fb7d437b844
[ "Apache-2.0" ]
null
null
null
// 65 Valid Number // https://leetcode.com/problems/valid-number // version: 1; create time: 2020-02-06 21:40:48; class Solution { public: bool isNumber(string s) { const int n = s.size(); int i = 0, j = n - 1; while (i < n && s[i] == ' ') ++i; while (j >= 0 && s[j] == ' ') --j; ...
29.96
74
0.408545
levendlee
cd6eea94294b20e4d6c5b8fbe78f139389e3366a
8,161
cpp
C++
build/src/DistributedEnergyResource.cpp
Tylores/DCS
2fc852b4a044d371795f1ddc63e0cb1b0cbd303d
[ "Apache-2.0" ]
null
null
null
build/src/DistributedEnergyResource.cpp
Tylores/DCS
2fc852b4a044d371795f1ddc63e0cb1b0cbd303d
[ "Apache-2.0" ]
null
null
null
build/src/DistributedEnergyResource.cpp
Tylores/DCS
2fc852b4a044d371795f1ddc63e0cb1b0cbd303d
[ "Apache-2.0" ]
null
null
null
#include "include/DistributedEnergyResource.hpp" DistributedEnergyResource::DistributedEnergyResource ( std::map <std::string, std::string> init) : rated_export_power_(stoul(init["RatedExportPower"])), rated_export_energy_(stoul(init["RatedExportEnergy"])), export_ramp_(stoul(init["ExportRamp"]))...
33.72314
79
0.689621
Tylores
cd6f34c4e79b5a101c8b875154fac6e32ad91f24
2,008
cc
C++
ACAP_linux/3rd/CoMISo/Base/Test/ChecksumCondition.cc
shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer
8c9afe017769f9554706bcd267b6861c4c144999
[ "MIT" ]
216
2018-09-09T11:53:56.000Z
2022-03-19T13:41:35.000Z
ACAP_linux/3rd/CoMISo/Base/Test/ChecksumCondition.cc
gaolinorange/Automatic-Unpaired-Shape-Deformation-Transfer
8c9afe017769f9554706bcd267b6861c4c144999
[ "MIT" ]
13
2018-10-23T08:29:09.000Z
2021-09-08T06:45:34.000Z
ACAP_linux/3rd/CoMISo/Base/Test/ChecksumCondition.cc
shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer
8c9afe017769f9554706bcd267b6861c4c144999
[ "MIT" ]
41
2018-09-13T08:50:41.000Z
2022-02-23T00:33:54.000Z
// (C) Copyright 2016 by Autodesk, Inc. #if defined(TEST_ON) #include "ChecksumCondition.hh" #include "TestResult.hh" #include "Base/Code/CodeLink.hh" #include <algorithm> namespace Test { namespace Checksum { const char* const CHECKED_TAG = " checked "; const char* const TOTAL_TAG = "total#: "; const char* const ...
25.74359
80
0.683267
shubhMaheshwari
cd70c597028af6688e991c5f834f1ef966dfddf4
2,988
cpp
C++
ion/ServerSettingsPage.cpp
dtylman/ion
219a84761ff9213a53c79d3447b03ae620711024
[ "MIT" ]
2
2018-01-15T12:22:31.000Z
2018-03-16T12:43:32.000Z
ion/ServerSettingsPage.cpp
dtylman/ion
219a84761ff9213a53c79d3447b03ae620711024
[ "MIT" ]
null
null
null
ion/ServerSettingsPage.cpp
dtylman/ion
219a84761ff9213a53c79d3447b03ae620711024
[ "MIT" ]
null
null
null
/* * File: ServerSettingsPage.cpp * Author: danny * * Created on February 24, 2015, 4:15 PM */ #include "ServerSettingsPage.h" #include "WebMenu.h" #include "WebForm.h" #include "Main.h" #include <Poco/Util/LayeredConfiguration.h> #include <Poco/Util/Application.h> const std::string ServerSettingsPage::Link("s...
32.478261
142
0.691098
dtylman
cd71b09fc5ca6ab9ac9795e6df6838a78d93b13f
1,730
cpp
C++
Drone.cpp
IrrationalKyo/ViconMAVLink
6a13eaa3722d5871c23f6bbda43fa068d23e0349
[ "MIT" ]
18
2017-12-07T23:40:29.000Z
2022-01-30T05:47:25.000Z
Drone.cpp
IrrationalKyo/ViconMAVLink
6a13eaa3722d5871c23f6bbda43fa068d23e0349
[ "MIT" ]
null
null
null
Drone.cpp
IrrationalKyo/ViconMAVLink
6a13eaa3722d5871c23f6bbda43fa068d23e0349
[ "MIT" ]
15
2017-12-08T16:56:04.000Z
2021-10-04T16:31:55.000Z
/*************************************************************************** * * * Copyright (C) 2017 by University of Illinois * * * * http://illinois.edu ...
18.404255
109
0.44104
IrrationalKyo
cd72d74e259b63d263f890f1220576b9a8819a61
5,700
cpp
C++
3rdparty/jsonrpc-cpp-0.4/src/jsonrpc_tcpserver.cpp
wohaaitinciu/zpublic
0e4896b16e774d2f87e1fa80f1b9c5650b85c57e
[ "Unlicense" ]
50
2015-01-07T01:54:54.000Z
2021-01-15T00:41:48.000Z
3rdparty/jsonrpc-cpp-0.4/src/jsonrpc_tcpserver.cpp
lib1256/zpublic
64c2be9ef1abab878288680bb58122dcc25df81d
[ "Unlicense" ]
1
2015-05-26T07:40:19.000Z
2015-05-26T07:40:19.000Z
3rdparty/jsonrpc-cpp-0.4/src/jsonrpc_tcpserver.cpp
lib1256/zpublic
64c2be9ef1abab878288680bb58122dcc25df81d
[ "Unlicense" ]
39
2015-01-07T02:03:15.000Z
2021-01-15T00:41:50.000Z
/* * JsonRpc-Cpp - JSON-RPC implementation. * Copyright (C) 2008-2011 Sebastien Vincent <sebastien.vincent@cppextrem.com> * * This program 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, eith...
22.529644
95
0.527368
wohaaitinciu
cd72dd25a2b8d31063d22e2eee0d06f59dec3e45
77
hh
C++
kernel/arch/rtc.hh
ErrorOnUsername/axiom
1455e10e8528cf272bea38c46bc05966a108215c
[ "MIT" ]
null
null
null
kernel/arch/rtc.hh
ErrorOnUsername/axiom
1455e10e8528cf272bea38c46bc05966a108215c
[ "MIT" ]
null
null
null
kernel/arch/rtc.hh
ErrorOnUsername/axiom
1455e10e8528cf272bea38c46bc05966a108215c
[ "MIT" ]
null
null
null
#pragma once namespace Kernel::RTC { void initialize_real_time_clock(); }
9.625
34
0.753247
ErrorOnUsername
cd75b6371618ec1e5d9cea82be8890060d0f2827
992
cpp
C++
src/sketchup/RubyUtils/mbRubyUtils.cpp
sonicth/SUMB_ShapeFitting
65f5debdbe6729d21543b532b97367bd99b54b73
[ "BSL-1.0" ]
1
2016-09-06T09:14:48.000Z
2016-09-06T09:14:48.000Z
src/sketchup/RubyUtils/mbRubyUtils.cpp
sonicth/SUMB_ShapeFitting
65f5debdbe6729d21543b532b97367bd99b54b73
[ "BSL-1.0" ]
null
null
null
src/sketchup/RubyUtils/mbRubyUtils.cpp
sonicth/SUMB_ShapeFitting
65f5debdbe6729d21543b532b97367bd99b54b73
[ "BSL-1.0" ]
null
null
null
/* * copyright 2016 mike vasiljevs (contact@michaelvasiljevs.com) * ShapeFitting SU plugin */ #include "mbRubyUtils.h" #include <boost/foreach.hpp> void getShapePts(VALUE shape, Pts_t& pts) { // convert to ruby DS auto iregion_num = RARRAY_LEN(shape); pts.reserve(iregion_num); for (int i = 0; i...
21.565217
64
0.650202
sonicth
cd7a69fc9dfc2313564660106bf7d4047a1af35d
1,224
cpp
C++
src/Address.cpp
evenleo/leo
67e148e04eb7b3af9890f907f24fb4f63d8405b0
[ "MIT" ]
null
null
null
src/Address.cpp
evenleo/leo
67e148e04eb7b3af9890f907f24fb4f63d8405b0
[ "MIT" ]
null
null
null
src/Address.cpp
evenleo/leo
67e148e04eb7b3af9890f907f24fb4f63d8405b0
[ "MIT" ]
null
null
null
#include "Address.h" #include "Log.h" #include <arpa/inet.h> #include <string.h> #include <sstream> namespace leo { IpAddress::IpAddress(std::string ip, in_port_t port) { bzero(&addr_, sizeof(addr_)); addr_.sin_family = AF_INET; addr_.sin_port = htons(port); if (int rt = ::inet_pton(AF_INET, ip.c_str(), &addr_.s...
21.473684
74
0.67402
evenleo
cd7c00d67bfbd5f4ec766b70046d9dc0cede3935
3,694
cpp
C++
src/Flownodes/CFlowCUITriggerEvent.cpp
CoherentLabs/CoherentUI_CryEngine3
44b30e41e37a92ee16edbc6b738f996cfb3bd67e
[ "BSD-2-Clause" ]
12
2015-04-04T17:21:06.000Z
2021-05-11T16:03:36.000Z
src/Flownodes/CFlowCUITriggerEvent.cpp
CoherentLabs/CoherentUI_CryEngine3
44b30e41e37a92ee16edbc6b738f996cfb3bd67e
[ "BSD-2-Clause" ]
1
2015-06-23T21:24:38.000Z
2015-06-25T03:42:39.000Z
src/Flownodes/CFlowCUITriggerEvent.cpp
CoherentLabs/CoherentUI_CryEngine3
44b30e41e37a92ee16edbc6b738f996cfb3bd67e
[ "BSD-2-Clause" ]
5
2015-02-11T22:43:43.000Z
2017-12-03T00:38:46.000Z
#include <StdAfx.h> #include <Nodes/G2FlowBaseNode.h> #include <CPluginCoherentUI.h> #include <Coherent/UI/View.h> #include "CoherentViewListener.h" #include "CoherentUISystem.h" namespace CoherentUIPlugin { class CFlowCUITriggerEvent : public CFlowBaseNode<eNCT_Instanced> { private: enum ...
35.864078
120
0.442339
CoherentLabs
cd7c046a95f658b316d02b79b95f521be9824890
1,027
cpp
C++
A_problems/GoofNumber.cpp
tarek99samy/code_forces_problems
a2e6fd1ad762843a4fa1e4a2561299a21ec2bb2e
[ "MIT" ]
null
null
null
A_problems/GoofNumber.cpp
tarek99samy/code_forces_problems
a2e6fd1ad762843a4fa1e4a2561299a21ec2bb2e
[ "MIT" ]
null
null
null
A_problems/GoofNumber.cpp
tarek99samy/code_forces_problems
a2e6fd1ad762843a4fa1e4a2561299a21ec2bb2e
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; //#include<windows.h> #include<cstring> #include<string> #include<algorithm> #include<stack> #include<vector> #include<cmath> #include<list> #include<cstdlib> long long GCD(long long A, long long B) { if (B > A) { swap(A, B); } long long gcd = A % B; if (gcd == 0) { ...
13.513158
42
0.497566
tarek99samy
cd7eed23799a026711a64cc5d2bb32a827b96c57
3,123
cpp
C++
opencl/test/unit_test/sku_info/sku_info_receiver_tests.cpp
mattcarter2017/compute-runtime
1f52802aac02c78c19d5493dd3a2402830bbe438
[ "Intel", "MIT" ]
null
null
null
opencl/test/unit_test/sku_info/sku_info_receiver_tests.cpp
mattcarter2017/compute-runtime
1f52802aac02c78c19d5493dd3a2402830bbe438
[ "Intel", "MIT" ]
null
null
null
opencl/test/unit_test/sku_info/sku_info_receiver_tests.cpp
mattcarter2017/compute-runtime
1f52802aac02c78c19d5493dd3a2402830bbe438
[ "Intel", "MIT" ]
null
null
null
/* * Copyright (C) 2018-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/sku_info/operations/windows/sku_info_receiver.h" #include "opencl/test/unit_test/sku_info/sku_info_base_reference.h" #include "gtest/gtest.h" using namespace NEO; inline bool operator==(const FeatureTa...
31.545455
102
0.759206
mattcarter2017
cd831dad499aa8163113b632a8bcc9f4649acd36
1,166
hpp
C++
src/krnl/hpp/gdt.hpp
maximsmol/nos
386b4166b3fd1701b734bfcd50ace1b9e1ea38ee
[ "MIT" ]
1
2019-04-29T05:10:52.000Z
2019-04-29T05:10:52.000Z
src/krnl/hpp/gdt.hpp
maximsmol/nos
386b4166b3fd1701b734bfcd50ace1b9e1ea38ee
[ "MIT" ]
null
null
null
src/krnl/hpp/gdt.hpp
maximsmol/nos
386b4166b3fd1701b734bfcd50ace1b9e1ea38ee
[ "MIT" ]
1
2021-12-06T23:49:27.000Z
2021-12-06T23:49:27.000Z
#pragma once #include "util/gdt.hpp" namespace gdt { constexpr uint64_t gdt[] = { 0, // null-selector is invalid, no matter what the entry is, so set to an invalid value util::gdt::Entry( /*.base = */0, /*.limit = */0xffff'ffff, /*.ring = */0, /*.rw = */true, /*.size = */util::...
25.911111
91
0.530875
maximsmol
cd84d8f21f88c36ad4fd4088940a84ada0f6adc2
2,268
cpp
C++
libs/ledger/tests/consensus/proof_of_work_tests.cpp
n-hutton/ledger-1
909a81c415a73c38fb3d7f486dfcf93d7f87adaf
[ "Apache-2.0" ]
3
2019-07-11T08:49:27.000Z
2021-09-07T16:49:15.000Z
libs/ledger/tests/consensus/proof_of_work_tests.cpp
n-hutton/ledger-1
909a81c415a73c38fb3d7f486dfcf93d7f87adaf
[ "Apache-2.0" ]
null
null
null
libs/ledger/tests/consensus/proof_of_work_tests.cpp
n-hutton/ledger-1
909a81c415a73c38fb3d7f486dfcf93d7f87adaf
[ "Apache-2.0" ]
2
2019-07-13T12:45:22.000Z
2021-03-12T08:48:57.000Z
//------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
28
80
0.646825
n-hutton
cd891243366127f14167731d254d77a61f18c7cf
197
cpp
C++
sample/test_server/main.cpp
iwtbabc/irpc
647b126450b986e73b350ed451c90d48ec3a420c
[ "MIT" ]
1
2018-08-28T12:01:01.000Z
2018-08-28T12:01:01.000Z
sample/test_server/main.cpp
majianfei/irpc
647b126450b986e73b350ed451c90d48ec3a420c
[ "MIT" ]
null
null
null
sample/test_server/main.cpp
majianfei/irpc
647b126450b986e73b350ed451c90d48ec3a420c
[ "MIT" ]
1
2018-07-28T04:53:12.000Z
2018-07-28T04:53:12.000Z
#include "dispatcher.h" #include "tcp_server.h" using namespace inet; int main(){ Dispatcher dispatcher; TcpServer server(&dispatcher, 8888); server.start(); dispatcher.loop(); return 0; }
14.071429
37
0.720812
iwtbabc
cd8a89ea84e1cb2da9b36beb2a06683579000597
849
cpp
C++
src/scenes/mainMenu.cpp
AndreJFBico/RadRts_BGFX
c8d37d95e68e2fc2b3db09a94f2817533e4aa700
[ "MIT" ]
null
null
null
src/scenes/mainMenu.cpp
AndreJFBico/RadRts_BGFX
c8d37d95e68e2fc2b3db09a94f2817533e4aa700
[ "MIT" ]
null
null
null
src/scenes/mainMenu.cpp
AndreJFBico/RadRts_BGFX
c8d37d95e68e2fc2b3db09a94f2817533e4aa700
[ "MIT" ]
null
null
null
#include "mainMenu.hpp" #include "materials/wireframe.hpp" #include "gameObjects/meshObject.hpp" #include "gameObjects/player.hpp" #include "core/sceneManager.hpp" #include "gameScene.hpp" namespace mainMenu { struct MainMenu { }; void init(scene::Scene& scene, MainMenu& mainMenu) { //TODO there should be a but...
23.583333
89
0.742049
AndreJFBico
cd8e4afcbdff2edbe9516e592533ef6095aab261
741
cc
C++
349.IntersectionofTwoArrays/349.InterTwoArr.cc
stdbilly/leetcode
752704ff99c21863bde4c929b7cc4fa18128cf39
[ "MIT" ]
null
null
null
349.IntersectionofTwoArrays/349.InterTwoArr.cc
stdbilly/leetcode
752704ff99c21863bde4c929b7cc4fa18128cf39
[ "MIT" ]
null
null
null
349.IntersectionofTwoArrays/349.InterTwoArr.cc
stdbilly/leetcode
752704ff99c21863bde4c929b7cc4fa18128cf39
[ "MIT" ]
null
null
null
#include <iostream> #include <unordered_set> #include <vector> using std::cout; using std::endl; using std::unordered_set; using std::vector; class Solution { public: vector<int> intersection(vector<int>& nums1, vector<int>& nums2) { unordered_set<int> record(nums1.begin(), nums1.end()); vector<...
22.454545
70
0.550607
stdbilly
cd8ea4bfce741ab5ad6ebfad1066efe2157d4b29
469
hpp
C++
pythran/pythonic/include/numpy/tan.hpp
artas360/pythran
66dad52d52be71693043e9a7d7578cfb9cb3d1da
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/include/numpy/tan.hpp
artas360/pythran
66dad52d52be71693043e9a7d7578cfb9cb3d1da
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/include/numpy/tan.hpp
artas360/pythran
66dad52d52be71693043e9a7d7578cfb9cb3d1da
[ "BSD-3-Clause" ]
null
null
null
#ifndef PYTHONIC_INCLUDE_NUMPY_TAN_HPP #define PYTHONIC_INCLUDE_NUMPY_TAN_HPP #include "pythonic/utils/proxy.hpp" #include "pythonic/types/ndarray.hpp" #include "pythonic/types/numexpr_to_ndarray.hpp" #include "pythonic/utils/numpy_traits.hpp" #include <nt2/include/functions/tan.hpp> namespace pythonic { namespace...
21.318182
53
0.808102
artas360
cd8f6e2a61c752896ed720aaa8c03aced8ad9ec7
16,924
cc
C++
test/runSimxAnisoAdapt.cc
cwsmith/core
840fbf6ec49a63aeaa3945f11ddb224f6055ac9f
[ "BSD-3-Clause" ]
null
null
null
test/runSimxAnisoAdapt.cc
cwsmith/core
840fbf6ec49a63aeaa3945f11ddb224f6055ac9f
[ "BSD-3-Clause" ]
null
null
null
test/runSimxAnisoAdapt.cc
cwsmith/core
840fbf6ec49a63aeaa3945f11ddb224f6055ac9f
[ "BSD-3-Clause" ]
null
null
null
#include <gmi_mesh.h> #include <gmi_null.h> #include <apfMDS.h> #include <apfMesh2.h> #include <apfConvert.h> #include <apfNumbering.h> #include <apfShape.h> #include <apf.h> #include <PCU.h> #include <pcu_util.h> #include "MeshSim.h" #include "MeshSimAdapt.h" #include "SimDiscrete.h" #include "SimMessages.h" #include...
27.744262
102
0.666273
cwsmith
cd914db2ff3374cdabf10971d522c98f164b3d90
1,302
cpp
C++
example/cmd_pwd.cpp
moslevin/mark3-terminal
3ff9e46e6d731e44b71ea3d329008a673da9efff
[ "BSD-3-Clause" ]
null
null
null
example/cmd_pwd.cpp
moslevin/mark3-terminal
3ff9e46e6d731e44b71ea3d329008a673da9efff
[ "BSD-3-Clause" ]
null
null
null
example/cmd_pwd.cpp
moslevin/mark3-terminal
3ff9e46e6d731e44b71ea3d329008a673da9efff
[ "BSD-3-Clause" ]
null
null
null
/*=========================================================================== _____ _____ _____ _____ ___| _|__ __|_ |__ __|__ |__ __| __ |__ ______ | \ / | || \ || | || |/ / ||___ | | \/ | || \ || \ || \ ||___ | |_...
31
79
0.364055
moslevin
cd92e551a6643b555479c00a1d40cec3e8f59322
2,283
hpp
C++
include/StringAlgo/Convert.hpp
PoetaKodu/string-algo
666496207db5cab4622d9c073eaecd6560d72d3c
[ "MIT" ]
null
null
null
include/StringAlgo/Convert.hpp
PoetaKodu/string-algo
666496207db5cab4622d9c073eaecd6560d72d3c
[ "MIT" ]
null
null
null
include/StringAlgo/Convert.hpp
PoetaKodu/string-algo
666496207db5cab4622d9c073eaecd6560d72d3c
[ "MIT" ]
1
2021-08-05T11:15:15.000Z
2021-08-05T11:15:15.000Z
#pragma once #include STRINGALGO_PCH namespace string_algo { //////////////////////////////////////// template <typename T, typename = std::enable_if_t<std::is_integral_v<T>> > inline bool toIntNoSkipWs(T& int_, char const* begin_, char const* end_) { if (begin_ == end_) return false; [[maybe_unused]] bool ...
20.754545
76
0.590889
PoetaKodu
cd94708744e2511956b2348b6a276fc3ec2d7274
1,914
cpp
C++
modules/ext/Logger/Logger.cpp
ToyAuthor/ToyBox
f517a64d00e00ccaedd76e33ed5897edc6fde55e
[ "Unlicense" ]
4
2017-07-06T22:18:41.000Z
2021-05-24T21:28:37.000Z
modules/ext/Logger/Logger.cpp
ToyAuthor/ToyBox
f517a64d00e00ccaedd76e33ed5897edc6fde55e
[ "Unlicense" ]
null
null
null
modules/ext/Logger/Logger.cpp
ToyAuthor/ToyBox
f517a64d00e00ccaedd76e33ed5897edc6fde55e
[ "Unlicense" ]
1
2020-08-02T13:00:38.000Z
2020-08-02T13:00:38.000Z
/* * Print message on terminal or user given target. */ #include <luapp.hpp> #include <toy/Oops.hpp> #include <toy/Log.hpp> #include <toy/Utf.hpp> #include <toy/io/Writer.hpp> namespace toy{ namespace luamodule{ namespace logger{ static int IsUTF8(lua::NativeState L) { lua::Str str; lua::CheckVarFromLua(L,&str...
17.089286
71
0.657262
ToyAuthor
cd994e696e6e0a7da03aea2ed7243d88bb0b2f34
1,602
cpp
C++
test/any/array.cpp
mkn/mkn.gpu
22946338e6a4790cc056708aa141c1a31538ba1c
[ "BSD-3-Clause" ]
null
null
null
test/any/array.cpp
mkn/mkn.gpu
22946338e6a4790cc056708aa141c1a31538ba1c
[ "BSD-3-Clause" ]
1
2020-09-13T10:39:29.000Z
2021-05-07T08:12:11.000Z
test/any/array.cpp
mkn/mkn.gpu
22946338e6a4790cc056708aa141c1a31538ba1c
[ "BSD-3-Clause" ]
null
null
null
#include "kul/gpu.hpp" static constexpr uint32_t WIDTH = 1024, HEIGHT = 1024; static constexpr uint32_t NUM = WIDTH * HEIGHT; static constexpr uint32_t THREADS_PER_BLOCK_X = 16, THREADS_PER_BLOCK_Y = 16; template <typename T> __global__ void vectoradd(T* a, const T* b, const T* c) { auto i = kul::gpu::idx(); a[i...
27.62069
96
0.559301
mkn
cd9c70a8f76ca7ebaaf764edee1bab5151d7ae1c
20,649
cpp
C++
src/bricklet_ambient_light.cpp
davidplotzki/sensorlogger
8ee255fba5f8560650e2b79fc967aeec8d8ec7b7
[ "MIT" ]
null
null
null
src/bricklet_ambient_light.cpp
davidplotzki/sensorlogger
8ee255fba5f8560650e2b79fc967aeec8d8ec7b7
[ "MIT" ]
null
null
null
src/bricklet_ambient_light.cpp
davidplotzki/sensorlogger
8ee255fba5f8560650e2b79fc967aeec8d8ec7b7
[ "MIT" ]
null
null
null
/* *********************************************************** * This file was automatically generated on 2021-05-06. * * * * C/C++ Bindings Version 2.1.32 * * * * If...
29.882779
224
0.791661
davidplotzki
cd9cbc111bdccff963aa565b984d050e634d2e72
41
hpp
C++
src/boost_metaparse_v1_one_of.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_metaparse_v1_one_of.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_metaparse_v1_one_of.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/metaparse/v1/one_of.hpp>
20.5
40
0.780488
miathedev
cd9e8610913475188b761e021e535988af73f889
9,406
cpp
C++
UrhoTest2.cpp
LeithKetchell/Humble
f71016d8a13c931da1aae0af49018c014c4f8c8e
[ "MIT" ]
null
null
null
UrhoTest2.cpp
LeithKetchell/Humble
f71016d8a13c931da1aae0af49018c014c4f8c8e
[ "MIT" ]
null
null
null
UrhoTest2.cpp
LeithKetchell/Humble
f71016d8a13c931da1aae0af49018c014c4f8c8e
[ "MIT" ]
null
null
null
#define URHO3D_ANGELSCRIPT 1 // we want angelscript support #define URHO3D_LOGGING 1 // we want debug log message support #include <Urho3D/Urho3DAll.h> using namespace Urho3D; /// Let's define (and implement) our custom application class /// Note it derives from Urho3D::Application class - there's some vir...
45.439614
117
0.628535
LeithKetchell
cd9fe4880ed50f3bbe02a66218e41d53daff8b16
2,240
hpp
C++
common/util/rviz_plugins/autoware_vehicle_rviz_plugin/src/tools/steering_angle.hpp
loop-perception/AutowareArchitectureProposal.iv
5d8dff0db51634f0c42d2a3e87ca423fbee84348
[ "Apache-2.0" ]
1
2022-03-09T05:53:04.000Z
2022-03-09T05:53:04.000Z
common/util/rviz_plugins/autoware_vehicle_rviz_plugin/src/tools/steering_angle.hpp
loop-perception/AutowareArchitectureProposal.iv
5d8dff0db51634f0c42d2a3e87ca423fbee84348
[ "Apache-2.0" ]
4
2022-01-07T21:21:04.000Z
2022-03-14T21:25:37.000Z
common/util/rviz_plugins/autoware_vehicle_rviz_plugin/src/tools/steering_angle.hpp
loop-perception/AutowareArchitectureProposal.iv
5d8dff0db51634f0c42d2a3e87ca423fbee84348
[ "Apache-2.0" ]
2
2021-03-09T00:20:39.000Z
2021-04-16T10:23:36.000Z
// Copyright 2020 Tier IV, 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 i...
30.684932
99
0.789286
loop-perception
cda2e263fa9b65e7637b4ab7e7d4f559eeac87a0
552
cpp
C++
ugly-number-ii/solution-1.cpp
tsenmu/leetcode
6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee
[ "Apache-2.0" ]
null
null
null
ugly-number-ii/solution-1.cpp
tsenmu/leetcode
6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee
[ "Apache-2.0" ]
null
null
null
ugly-number-ii/solution-1.cpp
tsenmu/leetcode
6f6d11dec4e5ee0fbc0c59fd6fa97b2c556e05ee
[ "Apache-2.0" ]
null
null
null
class Solution { public: int nthUglyNumber(int n) { int indices[] = {0, 0, 0}; int primes[] = {2, 3, 5}; int uglyNumbers[n]; uglyNumbers[0] = 1; for (int i = 1; i < n; ++i) { int minVal = INT_MAX; for (int j = 0; j < 3; ++j) { minVal = min(minVal, uglyNumbers[indices[j]] * pri...
24
67
0.472826
tsenmu
cda6263fcc74bdd940839ef0ce12fb718c862bfb
1,887
cpp
C++
gui/frequencytickbuilder.cpp
keur/prettyeq
c6d300b9070da3a35c4c534120361feb920c98ef
[ "BSD-3-Clause" ]
167
2020-08-31T00:05:03.000Z
2022-01-12T19:14:53.000Z
gui/frequencytickbuilder.cpp
keur/prettyeq
c6d300b9070da3a35c4c534120361feb920c98ef
[ "BSD-3-Clause" ]
2
2020-09-29T00:05:08.000Z
2021-04-22T12:52:49.000Z
gui/frequencytickbuilder.cpp
keur/prettyeq
c6d300b9070da3a35c4c534120361feb920c98ef
[ "BSD-3-Clause" ]
2
2020-09-27T14:25:58.000Z
2021-02-18T19:41:23.000Z
#include "frequencytick.h" #include "frequencytickbuilder.h" #include "macro.h" #include <QGraphicsScene> FrequencyTickBuilder::FrequencyTickBuilder(QGraphicsScene *scene, int width, int xmin, int xmax, int ymin, int ymax) { /* y-axis frequency markers */ int tickWidth = width / (NUM_TICKS - 1); tick[0] =...
36.288462
116
0.601484
keur
cda65c29255d279c84208b589e0e9b7176944a90
125,285
hpp
C++
include/third_party/fmt/format.hpp
BenBE/bun
027275d5e2b392a57610842a084a3809d1a23804
[ "BSD-3-Clause" ]
null
null
null
include/third_party/fmt/format.hpp
BenBE/bun
027275d5e2b392a57610842a084a3809d1a23804
[ "BSD-3-Clause" ]
null
null
null
include/third_party/fmt/format.hpp
BenBE/bun
027275d5e2b392a57610842a084a3809d1a23804
[ "BSD-3-Clause" ]
null
null
null
/* Formatting library for C++ Copyright (c) 2012 - 2016, Victor Zverovich All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright noti...
32.685886
132
0.619755
BenBE
cda700bc2549a61fb7f0943032d5505c70aef575
509
cpp
C++
src/cpsl.cpp
CarsonFox/CPSL
07a949166d9399f273ddf15e239ade6e5ea6e4a5
[ "MIT" ]
null
null
null
src/cpsl.cpp
CarsonFox/CPSL
07a949166d9399f273ddf15e239ade6e5ea6e4a5
[ "MIT" ]
null
null
null
src/cpsl.cpp
CarsonFox/CPSL
07a949166d9399f273ddf15e239ade6e5ea6e4a5
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdio> #include "src/AST/Program.hpp" extern int yyparse(); extern FILE *yyin; int main(int argc, char **argv) { if (argc > 1) { const auto infile = std::fopen(argv[1], "r"); if (!infile) { std::perror("Error opening file"); return EXIT_FAIL...
19.576923
53
0.563851
CarsonFox
cda995ab48c2b6b1c2e07954f505d836ac578669
371
hpp
C++
wave_optimization/include/wave/optimization/ceres/loss_function/bisquare_loss.hpp
Jebediah/libwave
c04998c964f0dc7d414783c6e8cf989a2716ad54
[ "MIT" ]
2
2019-06-13T13:47:18.000Z
2019-06-13T14:54:35.000Z
wave_optimization/include/wave/optimization/ceres/loss_function/bisquare_loss.hpp
Jebediah/libwave
c04998c964f0dc7d414783c6e8cf989a2716ad54
[ "MIT" ]
null
null
null
wave_optimization/include/wave/optimization/ceres/loss_function/bisquare_loss.hpp
Jebediah/libwave
c04998c964f0dc7d414783c6e8cf989a2716ad54
[ "MIT" ]
1
2020-02-13T02:27:29.000Z
2020-02-13T02:27:29.000Z
#ifndef WAVE_BISQUARE_LOSS_HPP #define WAVE_BISQUARE_LOSS_HPP #include <ceres/loss_function.h> namespace wave { class BisquareLoss : public ceres::LossFunction { public: explicit BisquareLoss(double k) : k2_(k*k) {} virtual void Evaluate(double ip, double* op) const; private: const double k2_; }; } ...
18.55
55
0.738544
Jebediah
cdaa6fa4da3fcbe8b1ccc1e9ba9c8c9c116ff7ee
5,075
cpp
C++
drivers/Atmel/AT24MAC/example/src/main.cpp
microHAL/microhal-drivers
09925a9696e4794f9ca0b2e9b5e61908ac99b84b
[ "BSD-3-Clause" ]
null
null
null
drivers/Atmel/AT24MAC/example/src/main.cpp
microHAL/microhal-drivers
09925a9696e4794f9ca0b2e9b5e61908ac99b84b
[ "BSD-3-Clause" ]
null
null
null
drivers/Atmel/AT24MAC/example/src/main.cpp
microHAL/microhal-drivers
09925a9696e4794f9ca0b2e9b5e61908ac99b84b
[ "BSD-3-Clause" ]
null
null
null
/** * @license BSD 3-Clause * @copyright Pawel Okas * @version $Id$ * @brief * * @authors Pawel Okas * created on: 30-03-2019 * * @copyright Copyright (c) 2019, Pawel Okas * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted prov...
36.775362
149
0.644532
microHAL
cdae6afc1eaff72126b4a96cc93e3a33739688d3
15,521
cc
C++
.generated/gen/parser/emit_lowering_spec.cc
blutmond/danach
0cd3b27f03d2d2cf563f90a14628b8bf5bb36283
[ "Apache-2.0" ]
null
null
null
.generated/gen/parser/emit_lowering_spec.cc
blutmond/danach
0cd3b27f03d2d2cf563f90a14628b8bf5bb36283
[ "Apache-2.0" ]
null
null
null
.generated/gen/parser/emit_lowering_spec.cc
blutmond/danach
0cd3b27f03d2d2cf563f90a14628b8bf5bb36283
[ "Apache-2.0" ]
null
null
null
namespace lowering_spec { void EmitType(std::ostream& stream, TypeRef* t); void EmitTypeSignature(std::ostream& stream, TypeRef* t); void EmitExpr(std::ostream& stream, ContextFinderContext* ctx, Expr* expr); void EmitStmt(std::ostream& stream, ContextFinderContext* ctx, Stmt* stmt); void EmitFuncDeclHeader(std::ostre...
23.062407
88
0.642613
blutmond
cdb054135f212aecce4815730df925a488dace29
8,185
cc
C++
test/src/test_swdevice.cc
tim-schoenmackers/hippo
ce381551898b4eba7ca73fc64bf138b6ba93a66c
[ "MIT" ]
null
null
null
test/src/test_swdevice.cc
tim-schoenmackers/hippo
ce381551898b4eba7ca73fc64bf138b6ba93a66c
[ "MIT" ]
null
null
null
test/src/test_swdevice.cc
tim-schoenmackers/hippo
ce381551898b4eba7ca73fc64bf138b6ba93a66c
[ "MIT" ]
null
null
null
 // Copyright 2019 HP Development Company, L.P. // SPDX-License-Identifier: MIT #include <windows.h> // for Sleep() #include <cstdio> #include <cstring> #include <cstdlib> #include <fstream> #include <vector> #include <thread> // NOLINT #include <mutex> // NOLINT #include "../include/adder.h" #include "incl...
27.013201
72
0.589982
tim-schoenmackers
cdb1b79894bf89c40fe8cf13629450393d27bfd7
204
cpp
C++
src/Circuit.cpp
bu-cms/dtcq
aef2da62f91ecf1694c1669d301f9cf0bf096c9e
[ "MIT" ]
null
null
null
src/Circuit.cpp
bu-cms/dtcq
aef2da62f91ecf1694c1669d301f9cf0bf096c9e
[ "MIT" ]
4
2021-04-26T07:28:03.000Z
2021-06-16T15:47:37.000Z
src/Circuit.cpp
bu-cms/dtcq
aef2da62f91ecf1694c1669d301f9cf0bf096c9e
[ "MIT" ]
null
null
null
#include<interface/Circuit.h> void Circuit::tick(){ for(auto component : components) { component->tick(); } for(auto component : components) { component->post_tick(); } };
20.4
38
0.598039
bu-cms
cdb442671ac1c9dbd791e828bd41c97017751d3b
2,381
cc
C++
Core/DianYing/Source/Core/Resource/Resource/Attachment/FDyAttachmentGeneralResource.cc
liliilli/DianYing
6e19f67e5d932e346a0ce63a648bed1a04ef618e
[ "MIT" ]
4
2019-03-17T19:46:54.000Z
2019-12-09T20:11:01.000Z
Core/DianYing/Source/Core/Resource/Resource/Attachment/FDyAttachmentGeneralResource.cc
liliilli/DianYing
6e19f67e5d932e346a0ce63a648bed1a04ef618e
[ "MIT" ]
null
null
null
Core/DianYing/Source/Core/Resource/Resource/Attachment/FDyAttachmentGeneralResource.cc
liliilli/DianYing
6e19f67e5d932e346a0ce63a648bed1a04ef618e
[ "MIT" ]
null
null
null
#include <precompiled.h> /// /// MIT License /// Copyright (c) 2018-2019 Jongmin Yun /// /// 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 AND NONINFRINGEMENT. IN NO EVENT SHALL...
36.630769
98
0.764385
liliilli
cdb4f17d406f3f836bf741e76de5dd35389842cb
9,594
hh
C++
thirdparty/graph-tools-master/include/graphalign/dagAligner/AffineAlignMatrix.hh
AlesMaver/ExpansionHunter
274903d26a33cfbc546aac98c85bbfe51701fd3b
[ "BSL-1.0", "Apache-2.0" ]
122
2017-01-06T16:19:31.000Z
2022-03-08T00:05:50.000Z
thirdparty/graph-tools-master/include/graphalign/dagAligner/AffineAlignMatrix.hh
AlesMaver/ExpansionHunter
274903d26a33cfbc546aac98c85bbfe51701fd3b
[ "BSL-1.0", "Apache-2.0" ]
90
2017-01-04T00:23:34.000Z
2022-02-27T12:55:52.000Z
thirdparty/graph-tools-master/include/graphalign/dagAligner/AffineAlignMatrix.hh
AlesMaver/ExpansionHunter
274903d26a33cfbc546aac98c85bbfe51701fd3b
[ "BSL-1.0", "Apache-2.0" ]
35
2017-03-02T13:39:58.000Z
2022-03-30T17:34:11.000Z
// // GraphTools library // Copyright 2017-2019 Illumina, Inc. // All rights reserved. // // Author: Roman Petrovski <RPetrovski@illumina.com> // // 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...
33.545455
120
0.512508
AlesMaver
cdb7f0ea55b3f2d936588d240c160439709e54f5
20,848
cpp
C++
src/vtk_viz.cpp
sphamil/enrico
7a346c14d113c0068382fdd5ae82f6c7d253c9eb
[ "BSD-3-Clause" ]
null
null
null
src/vtk_viz.cpp
sphamil/enrico
7a346c14d113c0068382fdd5ae82f6c7d253c9eb
[ "BSD-3-Clause" ]
null
null
null
src/vtk_viz.cpp
sphamil/enrico
7a346c14d113c0068382fdd5ae82f6c7d253c9eb
[ "BSD-3-Clause" ]
null
null
null
#include <cmath> #include "enrico/vtk_viz.h" #include "xtensor/xadapt.hpp" #include "xtensor/xbuilder.hpp" #include "xtensor/xtensor.hpp" #include "xtensor/xview.hpp" #include "openmc/constants.h" // some constant values const int WEDGE_TYPE_ = 13; const size_t WEDGE_SIZE_ = 6; const int HEX_TYPE_ = 12; const size_...
34.345964
90
0.65565
sphamil
cdbab8b3fdb14dba995821a6aec79ee0874c3b7e
24,293
cxx
C++
Filters/General/vtkMergeCells.cxx
isi-research/VTK
56a615b4e54233b65072d3eddd89dd6c0df78dd6
[ "BSD-3-Clause" ]
null
null
null
Filters/General/vtkMergeCells.cxx
isi-research/VTK
56a615b4e54233b65072d3eddd89dd6c0df78dd6
[ "BSD-3-Clause" ]
null
null
null
Filters/General/vtkMergeCells.cxx
isi-research/VTK
56a615b4e54233b65072d3eddd89dd6c0df78dd6
[ "BSD-3-Clause" ]
null
null
null
/*========================================================================= Program: Visualization Toolkit Module: vtkMergeCells.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is...
26.177802
110
0.646771
isi-research
cdbc03b806cfb680bab72f0cb749596ac1dd012f
15,608
hpp
C++
boost/gil/extension/io/detail/read_and_convert_image.hpp
ballisticwhisper/boost
f72119ab640b564c4b983bd457457046b52af9ee
[ "BSL-1.0" ]
2
2017-11-27T11:50:20.000Z
2021-04-04T13:26:45.000Z
boost/gil/extension/io/detail/read_and_convert_image.hpp
ballisticwhisper/boost
f72119ab640b564c4b983bd457457046b52af9ee
[ "BSL-1.0" ]
2
2019-01-13T23:45:51.000Z
2019-02-03T08:13:26.000Z
boost/gil/extension/io/detail/read_and_convert_image.hpp
ballisticwhisper/boost
f72119ab640b564c4b983bd457457046b52af9ee
[ "BSL-1.0" ]
2
2018-04-04T10:55:01.000Z
2020-04-23T18:52:06.000Z
/* Copyright 2007-2012 Christian Henning, Andreas Pokorny, Lubomir Bourdev Use, modification and distribution are subject to 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). */ /********************************************...
43.842697
107
0.447335
ballisticwhisper
cdc1503427eed6246f4f81c6a6505dd350768155
3,186
cpp
C++
src/gui/message_box.cpp
Piepenguin1995/retro-rpg
09b72d7a8a4d2a9e94b09957bcb88bcf08a67eeb
[ "MIT" ]
5
2016-02-09T20:05:57.000Z
2016-11-02T01:48:54.000Z
src/gui/message_box.cpp
dbMansfield/retro-rpg
09b72d7a8a4d2a9e94b09957bcb88bcf08a67eeb
[ "MIT" ]
null
null
null
src/gui/message_box.cpp
dbMansfield/retro-rpg
09b72d7a8a4d2a9e94b09957bcb88bcf08a67eeb
[ "MIT" ]
3
2016-02-09T20:06:04.000Z
2016-06-23T13:12:22.000Z
#include <SFML/Graphics.hpp> #include <vector> #include <string> #include "gui.hpp" #include "message_box.hpp" #include "text.hpp" gui::MessageBox::MessageBox(const sf::Vector2u& dimensions, const std::string& text, const gui::Font& font, const sf::Color& backgroundCol, const sf::Color& te...
26.114754
72
0.670747
Piepenguin1995
cdc18018eafd3c9196318fe30cbe2b310e41432b
787
cpp
C++
LeetCode/ThousandTwo/1688-count_match_in_tournament.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
LeetCode/ThousandTwo/1688-count_match_in_tournament.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
LeetCode/ThousandTwo/1688-count_match_in_tournament.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
#include "leetcode.hpp" /* 1688. 比赛中的配对次数 给你一个整数 n ,表示比赛中的队伍数。比赛遵循一种独特的赛制: 如果当前队伍数是 偶数 ,那么每支队伍都会与另一支队伍配对。 总共进行 n / 2 场比赛,且产生 n / 2 支队伍进入下一轮。 如果当前队伍数为 奇数 ,那么将会随机轮空并晋级一支队伍,其余的队伍配对。 总共进行 (n - 1) / 2 场比赛,且产生 (n - 1) / 2 + 1 支队伍进入下一轮。 返回在比赛中进行的配对次数,直到决出获胜队伍为止。 示例 1: 输入:n = 7 输出:6 解释:比赛详情: - 第 1 轮:队伍数 = 7 ,配对次数 = 3 ...
15.74
51
0.550191
Ginkgo-Biloba
02cf44e1fde012dbc47e28a846e04c1a34c498f2
10,866
cpp
C++
src/storage/buffer_manager.cpp
c5sire/duckdb
2266d0e6e353aab104026c9674af7158b948bae0
[ "MIT" ]
1
2021-06-14T08:09:40.000Z
2021-06-14T08:09:40.000Z
src/storage/buffer_manager.cpp
c5sire/duckdb
2266d0e6e353aab104026c9674af7158b948bae0
[ "MIT" ]
null
null
null
src/storage/buffer_manager.cpp
c5sire/duckdb
2266d0e6e353aab104026c9674af7158b948bae0
[ "MIT" ]
null
null
null
#include "duckdb/storage/buffer_manager.hpp" #include "duckdb/common/to_string.hpp" #include "duckdb/storage/storage_manager.hpp" #include "duckdb/common/exception.hpp" #include "duckdb/parallel/concurrentqueue.hpp" namespace duckdb { BlockHandle::BlockHandle(DatabaseInstance &db, block_id_t block_id_p) : db(db) { ...
33.229358
111
0.734585
c5sire
02d6501c286de5b002517feda7534d916ddcd9b7
7,766
cpp
C++
os/fs/fat/testsuite/fat32_time.cpp
rvedam/es-operating-system
32d3e4791c28a5623744800f108d029c40c745fc
[ "Apache-2.0" ]
2
2020-11-30T18:38:20.000Z
2021-06-07T07:44:03.000Z
os/fs/fat/testsuite/fat32_time.cpp
LambdaLord/es-operating-system
32d3e4791c28a5623744800f108d029c40c745fc
[ "Apache-2.0" ]
1
2019-01-14T03:09:45.000Z
2019-01-14T03:09:45.000Z
os/fs/fat/testsuite/fat32_time.cpp
LambdaLord/es-operating-system
32d3e4791c28a5623744800f108d029c40c745fc
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2008, 2009 Google Inc. * Copyright 2006 Nintendo Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
32.767932
97
0.61692
rvedam
02db7cd6952d7132a7503ab172e0932af88317b5
2,153
cpp
C++
src/cpp/camera.cpp
BrunodaSilvaBelo/historyCentral_cg
f0b10c1f8978610ac37c931259c33d6e3503d77f
[ "MIT" ]
null
null
null
src/cpp/camera.cpp
BrunodaSilvaBelo/historyCentral_cg
f0b10c1f8978610ac37c931259c33d6e3503d77f
[ "MIT" ]
null
null
null
src/cpp/camera.cpp
BrunodaSilvaBelo/historyCentral_cg
f0b10c1f8978610ac37c931259c33d6e3503d77f
[ "MIT" ]
null
null
null
#include "camera.h" #include <glm/gtx/transform.hpp> #include <GLFW/glfw3.h> Camera::Camera(const glm::vec3 &position, float fov, float aspect, float near, float far) : position(position) { forward = glm::vec3(0.f, 0.f, -1.f); up = glm::vec3(0.f, 1.f, 0.f); projection = glm::perspective(fov, asp...
30.757143
89
0.625174
BrunodaSilvaBelo
02db871fa595de0dc54085ca4467499ca2d1f656
8,488
cpp
C++
cpdp/src/v20190820/model/CreateSinglePayResult.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
43
2019-08-14T08:14:12.000Z
2022-03-30T12:35:09.000Z
cpdp/src/v20190820/model/CreateSinglePayResult.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
12
2019-07-15T10:44:59.000Z
2021-11-02T12:35:00.000Z
cpdp/src/v20190820/model/CreateSinglePayResult.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.574913
152
0.699222
suluner
02dc9bc94ffc741362e21ebdb3d2073bf9014a04
3,244
hpp
C++
test/set.hpp
LeslieW/gecode-clone
ab3ab207c98981abfe4c52f01b248ec7bc4e8e8c
[ "MIT-feh" ]
1
2017-05-10T05:42:43.000Z
2017-05-10T05:42:43.000Z
test/set.hpp
LeslieW/gecode-clone
ab3ab207c98981abfe4c52f01b248ec7bc4e8e8c
[ "MIT-feh" ]
null
null
null
test/set.hpp
LeslieW/gecode-clone
ab3ab207c98981abfe4c52f01b248ec7bc4e8e8c
[ "MIT-feh" ]
1
2017-01-27T14:52:22.000Z
2017-01-27T14:52:22.000Z
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Guido Tack <tack@gecode.org> * * Copyright: * Guido Tack, 2005 * * Last modified: * $Date$ by $Author$ * $Revision$ * * This file is part of Gecode, the generic constraint * development environment: ...
26.590164
74
0.649815
LeslieW
02dd77740c65e387a581758908730ba9bfb4e1d2
8,105
hpp
C++
esp/platform/esptraceloggingcomponent.hpp
jeclrsg/HPCC-Platform
c1daafb6060f0c47c95bce98e5431fedc33c592d
[ "Apache-2.0" ]
286
2015-01-03T12:45:17.000Z
2022-03-25T18:12:57.000Z
esp/platform/esptraceloggingcomponent.hpp
jeclrsg/HPCC-Platform
c1daafb6060f0c47c95bce98e5431fedc33c592d
[ "Apache-2.0" ]
9,034
2015-01-02T08:49:19.000Z
2022-03-31T20:34:44.000Z
esp/platform/esptraceloggingcomponent.hpp
jakesmith/HPCC-Platform
c3b9268c492e473176ea36e3e916c4a544f47561
[ "Apache-2.0" ]
208
2015-01-02T03:27:28.000Z
2022-02-11T05:54:52.000Z
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2021 HPCC Systems®. 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...
49.121212
220
0.741024
jeclrsg
02dfbb902eade56371c5928ff45c8610e0860600
235
cpp
C++
main.cpp
bguina/gomoku
bfce942ba8c0b5cb75675772eaf36ea0611c60b2
[ "Apache-2.0" ]
null
null
null
main.cpp
bguina/gomoku
bfce942ba8c0b5cb75675772eaf36ea0611c60b2
[ "Apache-2.0" ]
null
null
null
main.cpp
bguina/gomoku
bfce942ba8c0b5cb75675772eaf36ea0611c60b2
[ "Apache-2.0" ]
null
null
null
#include <libgen.h> #include "Gomoku.hpp" #include "ResourceMgr.hpp" int main(int ac, char** av) { Gomoku app; (void)ac; ResourceMgr::set_binary_directory(std::string(dirname(av[0]))); app.run(); return 0; }
14.6875
67
0.625532
bguina
02e13227a9bdbeb5269f929e0625f1b0a96d2149
2,474
cpp
C++
games_old/Pacman/lib/Ncurse.cpp
HugoSohm/Arcade
2363078a8bd5864c3812d1a25061ac72dd099eee
[ "MIT" ]
null
null
null
games_old/Pacman/lib/Ncurse.cpp
HugoSohm/Arcade
2363078a8bd5864c3812d1a25061ac72dd099eee
[ "MIT" ]
null
null
null
games_old/Pacman/lib/Ncurse.cpp
HugoSohm/Arcade
2363078a8bd5864c3812d1a25061ac72dd099eee
[ "MIT" ]
null
null
null
/* ** EPITECH PROJECT, 2018 ** OOP_arcade_2018 ** File description: ** ncurse.cpp */ #include "Ncurse.hpp" Ncurse::Ncurse() { initscr(); //noecho(); //cbreak(); //getch(); } Ncurse::~Ncurse() = default; void Ncurse::drawASquare(float x, float y, float width, float height, unsigned int color) { /* if (has_colors...
18.191176
134
0.656023
HugoSohm
02e5d887a776d290e7c1d6c775d66222d0b22583
4,697
cpp
C++
fake_main.cpp
AmberLJC/FALCONN
9438b38633283c851f8dd2692586e692260ac7b3
[ "MIT" ]
null
null
null
fake_main.cpp
AmberLJC/FALCONN
9438b38633283c851f8dd2692586e692260ac7b3
[ "MIT" ]
null
null
null
fake_main.cpp
AmberLJC/FALCONN
9438b38633283c851f8dd2692586e692260ac7b3
[ "MIT" ]
null
null
null
// // Created by 刘嘉晨 on 2019-06-22. // #include <omp.h> #include <numeric> #include <iostream> #include <vector> #include <algorithm> using namespace std; #include <string.h> #include <cstdlib> #include <string> #include<fstream> #include "float.h" #include<sstream> template <typename T> vector<size_t> sort_indexes...
21.545872
100
0.507984
AmberLJC
02e66dc92c0347f55b5f2fbc2db2245d183e668a
880
cpp
C++
gameobjects/PlayerServer.cpp
notbaab/HEAT
c8821a789e530216aa961ac9a4bee7f0a1a8736b
[ "MIT" ]
2
2019-11-15T18:49:09.000Z
2022-01-31T04:12:29.000Z
gameobjects/PlayerServer.cpp
notbaab/HEAT
c8821a789e530216aa961ac9a4bee7f0a1a8736b
[ "MIT" ]
37
2019-08-08T01:53:51.000Z
2022-02-01T04:35:03.000Z
gameobjects/PlayerServer.cpp
notbaab/HEAT
c8821a789e530216aa961ac9a4bee7f0a1a8736b
[ "MIT" ]
null
null
null
#include "PlayerServer.h" #include "events/PlayerInputEvent.h" namespace gameobjects { std::shared_ptr<PhysicsComponentUpdate> PlayerServer::CreateStateUpdateEvent() { return std::make_shared<PhysicsComponentUpdate>(this->GetWorldId(), lastMoveSeq, this->physicsComponent); } void PlayerServer::Update() { if ...
25.882353
109
0.711364
notbaab
02e75331acc5259abc0e8746e7cd0d371642a31a
1,365
cpp
C++
problems/election.cpp
migcruz/algorithms
802d6e4e0b463d887be1c2d62a6dbdd543522a7c
[ "MIT" ]
null
null
null
problems/election.cpp
migcruz/algorithms
802d6e4e0b463d887be1c2d62a6dbdd543522a7c
[ "MIT" ]
null
null
null
problems/election.cpp
migcruz/algorithms
802d6e4e0b463d887be1c2d62a6dbdd543522a7c
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <vector> using namespace std; struct candidate { int votes; string name; }; candidate findWinner(vector<candidate> &candidateList){ candidate winner; int currentVotes = 0; for (vector<candidate>::iterator it = candidateList.begin(); it != candidateList.end(); +...
21.328125
96
0.676923
migcruz
02e998d09bfce8e0465620db48d00f93573f7bc2
3,174
cpp
C++
tests/Unit/NumericalAlgorithms/SphericalHarmonics/Test_SpherepackIterator.cpp
nilsvu/spectre
1455b9a8d7e92db8ad600c66f54795c29c3052ee
[ "MIT" ]
117
2017-04-08T22:52:48.000Z
2022-03-25T07:23:36.000Z
tests/Unit/NumericalAlgorithms/SphericalHarmonics/Test_SpherepackIterator.cpp
nilsvu/spectre
1455b9a8d7e92db8ad600c66f54795c29c3052ee
[ "MIT" ]
3,177
2017-04-07T21:10:18.000Z
2022-03-31T23:55:59.000Z
tests/Unit/NumericalAlgorithms/SphericalHarmonics/Test_SpherepackIterator.cpp
nilsvu/spectre
1455b9a8d7e92db8ad600c66f54795c29c3052ee
[ "MIT" ]
85
2017-04-07T19:36:13.000Z
2022-03-01T10:21:00.000Z
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Framework/TestingFramework.hpp" #include <algorithm> #include <cstddef> #include <string> #include <vector> #include "Framework/TestHelpers.hpp" #include "NumericalAlgorithms/SphericalHarmonics/SpherepackIterator.hpp" #include "Utilities...
35.266667
78
0.603025
nilsvu
02eab0641c46b403b2d3713b545cab51fe645fab
1,673
cpp
C++
Project/Part4/Example/driver.cpp
BlakeBerry26/ProgLangS22
32619e751f3a9a7ff2ff0f9ed31d9b6817303420
[ "MIT" ]
null
null
null
Project/Part4/Example/driver.cpp
BlakeBerry26/ProgLangS22
32619e751f3a9a7ff2ff0f9ed31d9b6817303420
[ "MIT" ]
null
null
null
Project/Part4/Example/driver.cpp
BlakeBerry26/ProgLangS22
32619e751f3a9a7ff2ff0f9ed31d9b6817303420
[ "MIT" ]
null
null
null
//***************************************************************************** // purpose: driver file for interpreter example // version: Spring 2022 // author: Joe Crumpton / Ed Swan //***************************************************************************** #ifdef _MSC_VER #define _CRT_SECURE_NO_WARNINGS #endif...
26.555556
79
0.588763
BlakeBerry26