hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
float64
1
77k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
653k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
1
3068245fb2012c6185a50f5ed6d9c464cbf886c1
1,717
cpp
C++
control_app/joystick.cpp
houcy/wall-e-1
b159d05b0afa343cb161f60ec98974bc2f063afd
[ "MIT" ]
1
2021-05-05T14:11:03.000Z
2021-05-05T14:11:03.000Z
control_app/joystick.cpp
houcy/wall-e-1
b159d05b0afa343cb161f60ec98974bc2f063afd
[ "MIT" ]
null
null
null
control_app/joystick.cpp
houcy/wall-e-1
b159d05b0afa343cb161f60ec98974bc2f063afd
[ "MIT" ]
null
null
null
#include "joystick.h" #include "log.h" #include <QTimer> // Linux headers #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> /* Standard C++ API does not allow to read char device file in unblocking mode, * so used Linux API */ #define JOYSTICK_FILE "/dev/input/js0" #define READ_DATA_I...
22.893333
80
0.576005
3069a83b76d7aa1d62e769e3c75bcc32085ad3e2
2,168
cpp
C++
src/sorts/CombSort/comb_sort.cpp
delightedok/TGSToolkits
7570378fde1f3045a545c293fddb275143701114
[ "MIT" ]
null
null
null
src/sorts/CombSort/comb_sort.cpp
delightedok/TGSToolkits
7570378fde1f3045a545c293fddb275143701114
[ "MIT" ]
null
null
null
src/sorts/CombSort/comb_sort.cpp
delightedok/TGSToolkits
7570378fde1f3045a545c293fddb275143701114
[ "MIT" ]
null
null
null
#include "../../comms/comm_headers.h" #include <sorts/comb_sort.h> #define THIS_FILE "comb_sort.cpp" #define LOG_TAG "SORTS-COMB" TGSTK_EXPORT SortCombObject::SortCombObject(SortVTable & vTable, float factor) : SortObject(vTable) { this->factor = factor; if (factor <= 1) { mlog_e(LOG_TA...
31.42029
112
0.398985
306f23f5921876eb6705efe778fd911d6c548e85
294
cpp
C++
FruitManageSystem/Fruit.cpp
grahamitdev/FruitManageSystem
c3c9effaa84ad1d900767a8bc4aad9b35a2473fe
[ "Apache-2.0" ]
1
2021-02-17T12:33:12.000Z
2021-02-17T12:33:12.000Z
FruitManageSystem/Fruit.cpp
grahamitdev/FruitManageSystem
c3c9effaa84ad1d900767a8bc4aad9b35a2473fe
[ "Apache-2.0" ]
null
null
null
FruitManageSystem/Fruit.cpp
grahamitdev/FruitManageSystem
c3c9effaa84ad1d900767a8bc4aad9b35a2473fe
[ "Apache-2.0" ]
3
2018-02-07T01:58:30.000Z
2021-12-16T03:17:24.000Z
#include "Fruit.h" Fruit::Fruit(const QString &name, const double &price, const double &num) :name(name),price(price),num(num) { } QString Fruit::getName() const { return name; } double Fruit::getPrice() const { return price; } double Fruit::getNum() const { return num; }
12.782609
73
0.656463
307373a68a63c0a7466f75495fb6cfd8d2e2b32e
4,271
cpp
C++
test/lab/test_client.cpp
brigid-jp/brigid-core
edd7e1cdbfeb1babbc8fcf39c71c5d90d0137589
[ "MIT" ]
6
2019-12-24T01:55:57.000Z
2021-01-18T02:51:28.000Z
test/lab/test_client.cpp
brigid-jp/brigid-core
edd7e1cdbfeb1babbc8fcf39c71c5d90d0137589
[ "MIT" ]
11
2021-09-16T12:58:45.000Z
2021-12-08T08:14:58.000Z
test/lab/test_client.cpp
brigid-jp/brigid-core
edd7e1cdbfeb1babbc8fcf39c71c5d90d0137589
[ "MIT" ]
null
null
null
// Copyright (c) 2021 <dev@brigid.jp> // This software is released under the MIT License. // https://opensource.org/licenses/mit-license.php #include <brigid/error.hpp> #include "test_common.hpp" #include <exception> #include <iomanip> #include <iostream> #include <vector> #include <netinet/in.h> #include <netinet/t...
29.054422
123
0.510887
30777d7ac5ce4310015b27a34498b181e760e9f1
1,068
cpp
C++
cpp/UniqueBinarySearchTreesII.cpp
thinksource/code_interview
08be992240508b73894eaf6b8c025168fd19df19
[ "Apache-2.0" ]
12
2015-03-12T03:27:26.000Z
2021-03-11T09:26:16.000Z
cpp/UniqueBinarySearchTreesII.cpp
thinksource/code_interview
08be992240508b73894eaf6b8c025168fd19df19
[ "Apache-2.0" ]
null
null
null
cpp/UniqueBinarySearchTreesII.cpp
thinksource/code_interview
08be992240508b73894eaf6b8c025168fd19df19
[ "Apache-2.0" ]
11
2015-01-28T16:45:40.000Z
2017-03-28T20:01:38.000Z
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: vector<TreeNode *> generateTrees(int n) { vector<TreeNode *> v; generateTrees(1,n,v); ...
27.384615
71
0.476592
307aff939a124a82f61ec044b639cc285b500a99
2,296
hxx
C++
opencascade/StdSelect_FaceFilter.hxx
valgur/OCP
2f7d9da73a08e4ffe80883614aedacb27351134f
[ "Apache-2.0" ]
117
2020-03-07T12:07:05.000Z
2022-03-27T07:35:22.000Z
opencascade/StdSelect_FaceFilter.hxx
CadQuery/cpp-py-bindgen
66e7376d3a27444393fc99acbdbef40bbc7031ae
[ "Apache-2.0" ]
66
2019-12-20T16:07:36.000Z
2022-03-15T21:56:10.000Z
opencascade/StdSelect_FaceFilter.hxx
CadQuery/cpp-py-bindgen
66e7376d3a27444393fc99acbdbef40bbc7031ae
[ "Apache-2.0" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
// Created on: 1996-03-08 // Created by: Robert COUBLANC // Copyright (c) 1996-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GN...
27.011765
117
0.77831
307e4dcc379f086608ed6971559fccc25010eecc
2,928
cpp
C++
Graphs/MazeRunner.cpp
TheArquitect/Classic-Algorithms
29ef20af79346142df8c76dd266e728b5e12cd10
[ "BSD-2-Clause" ]
1
2019-09-30T17:47:41.000Z
2019-09-30T17:47:41.000Z
Graphs/MazeRunner.cpp
TheArquitect/Classic-Algorithms
29ef20af79346142df8c76dd266e728b5e12cd10
[ "BSD-2-Clause" ]
null
null
null
Graphs/MazeRunner.cpp
TheArquitect/Classic-Algorithms
29ef20af79346142df8c76dd266e728b5e12cd10
[ "BSD-2-Clause" ]
null
null
null
/** File : MazeRunner.cpp Author : Menashe Rosemberg Created : 2019.04.02 Version: 20190402.12 Check all spaces reachable in a maze from a random start place BSD License Copyright (c) 2019 TheArquitect (Menashe Rosemberg) rosemberg@ymail.com Redistribution and use in source...
49.627119
83
0.563525
3082d2b7b359e5c3f2df5d7dd1534c7b330b0f79
1,299
cpp
C++
microcontroller/lib/Timer/Timer.cpp
robfors/nut_sorter-microcontroller
bc909fdaa1cc856341fe16773aefe9f1af773c83
[ "Apache-2.0" ]
null
null
null
microcontroller/lib/Timer/Timer.cpp
robfors/nut_sorter-microcontroller
bc909fdaa1cc856341fe16773aefe9f1af773c83
[ "Apache-2.0" ]
null
null
null
microcontroller/lib/Timer/Timer.cpp
robfors/nut_sorter-microcontroller
bc909fdaa1cc856341fe16773aefe9f1af773c83
[ "Apache-2.0" ]
null
null
null
#include "Timer.h" // // public // Timer::Timer(Units units) { _default_length = 0; _length = 0; _units = units; _is_active = false; _start_time = 0; } Timer::Timer(unsigned long default_length, Units units) { _default_length = default_length; _length = 0; _units = units; _is_active = false; _...
13.121212
61
0.639723
30863a06f9bb3bb0f2714fb003ace0def7f08e26
155
cpp
C++
benignware/1000.cpp
CodmingOut/SecretProjectAI
addc43117eab30a25453c18fa042739c33cc6cfb
[ "MIT" ]
8
2018-04-12T15:54:09.000Z
2020-06-05T07:41:15.000Z
src/1000/1000.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
src/1000/1000.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int count_0 = 0, count_1 = 0; int main(void) { int a, b; cin >> a >> b; cout << a + b << endl; return 0; }
11.071429
29
0.574194
308846f94715c810eea8e4c19b8358fdaa42b62a
309
cpp
C++
Sorting-and-Order-Statistics/Selection sort.cpp
Fresher001/Competitive-Programming-2
e1e953bb1d4ade46cc670b2d0432f68504538ed2
[ "MIT" ]
86
2016-10-18T23:30:36.000Z
2022-01-09T21:57:34.000Z
Sorting-and-Order-Statistics/Selection sort.cpp
Fresher001/Competitive-Programming-2
e1e953bb1d4ade46cc670b2d0432f68504538ed2
[ "MIT" ]
1
2018-04-13T09:38:36.000Z
2018-04-13T09:38:36.000Z
Sorting-and-Order-Statistics/Selection sort.cpp
Fresher001/Competitive-Programming-2
e1e953bb1d4ade46cc670b2d0432f68504538ed2
[ "MIT" ]
39
2017-03-02T07:25:40.000Z
2020-12-14T12:13:50.000Z
#include <bits/stdc++.h> using namespace std; void selection_sort(int A[], int l, int r) { for (int i = l; i < r; ++i) { int p = i; for (int j = i + 1; j <= r; ++j) if (A[j] < A[p]) p = j; swap(A[i], A[p]); } } int main() { return 0; }
13.434783
42
0.391586
3088a13f78577e5dd7fc484a9a15ea8b0dd1cc3e
829
cpp
C++
clang/test/SemaCXX/align-x86-abi7.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
3,102
2015-01-04T02:28:35.000Z
2022-03-30T12:53:41.000Z
clang/test/SemaCXX/align-x86-abi7.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
clang/test/SemaCXX/align-x86-abi7.cpp
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
1,868
2015-01-03T04:27:11.000Z
2022-03-25T13:37:35.000Z
// RUN: %clang_cc1 -std=c++11 -triple i386-apple-darwin9 -fsyntax-only -verify -fclang-abi-compat=7 %s // expected-no-diagnostics using size_t = decltype(sizeof(0)); template <typename T, size_t Preferred> struct check_alignment { using type = T; static type value; static_assert(__alignof__(value) == Preferred...
31.884615
102
0.746683
308acdf55b1fd94729126e79d44df30fb1e46fdf
419
hpp
C++
src/PheromonWeight.hpp
mwieczor/ACO
aa30ecd728d6b205188da4993857e2291a464255
[ "MIT" ]
null
null
null
src/PheromonWeight.hpp
mwieczor/ACO
aa30ecd728d6b205188da4993857e2291a464255
[ "MIT" ]
null
null
null
src/PheromonWeight.hpp
mwieczor/ACO
aa30ecd728d6b205188da4993857e2291a464255
[ "MIT" ]
null
null
null
#pragma once #include "Ant.hpp" class WeightGraph; class Node; class PheromonWeight{ public: PheromonWeight(){} virtual ~PheromonWeight()=default; protected: virtual void leavePheromon(IWeightGraph &mGraph, Node lastNode, Node position, double weight); // virtual void leavePheromon(WeightGraph &mGrap...
19.952381
98
0.747017
308ee7bdaf4678260b1812aa891a01dd171bce97
46,577
cpp
C++
plugins/chain_plugin/test/test_trx_finality_status_processing.cpp
abitmore/mandel
dfa3c92a713e7a093fc671fefa453a3033e27b0a
[ "MIT" ]
60
2022-01-03T18:41:12.000Z
2022-03-25T07:08:19.000Z
plugins/chain_plugin/test/test_trx_finality_status_processing.cpp
abitmore/mandel
dfa3c92a713e7a093fc671fefa453a3033e27b0a
[ "MIT" ]
37
2022-01-13T22:23:58.000Z
2022-03-31T13:32:38.000Z
plugins/chain_plugin/test/test_trx_finality_status_processing.cpp
abitmore/mandel
dfa3c92a713e7a093fc671fefa453a3033e27b0a
[ "MIT" ]
11
2022-01-14T21:14:11.000Z
2022-03-25T07:08:29.000Z
#define BOOST_TEST_MODULE transaction_finality_status #include <boost/test/included/unit_test.hpp> #include <eosio/chain_plugin/trx_finality_status_processing.hpp> #include <eosio/testing/tester.hpp> #include <eosio/chain/block_header.hpp> #include <eosio/chain/genesis_state.hpp> #include <eosio/chain/name.hpp> #inc...
36.790679
163
0.694313
3091aa4676803d92ae456bcbb9262bf7557229fb
5,095
cpp
C++
modules/core/src/Slot/gmSlotBase.cpp
GraphMIC/GraphMIC
8fc2aeb0143ee1292c6757f010fc9e8c68823e2b
[ "BSD-3-Clause" ]
43
2016-04-11T11:34:05.000Z
2022-03-31T03:37:57.000Z
modules/core/src/Slot/gmSlotBase.cpp
kevinlq/GraphMIC
8fc2aeb0143ee1292c6757f010fc9e8c68823e2b
[ "BSD-3-Clause" ]
1
2016-05-17T12:58:16.000Z
2016-05-17T12:58:16.000Z
modules/core/src/Slot/gmSlotBase.cpp
kevinlq/GraphMIC
8fc2aeb0143ee1292c6757f010fc9e8c68823e2b
[ "BSD-3-Clause" ]
14
2016-05-13T20:23:16.000Z
2021-12-20T10:33:19.000Z
#include "gmSlotBase.hpp" #include "gmSlotInput.hpp" #include "gmSlotOutput.hpp" #include "gmNodeEditor.hpp" #include "gmNodeConnector.hpp" #include "gmSlotInputBase.hpp" #include "gmSlotOutputBase.hpp" #include "gmSlotConstraints.hpp" #include "gmAsync.hpp" namespace gm { namespace Slot { Base::Base(...
28.305556
210
0.452208
309438d436575dc3a725135e24f23899ef17ab21
344
cpp
C++
leetcode/cpp/qt_reverse_string.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
5
2016-10-29T09:28:11.000Z
2019-10-19T23:02:48.000Z
leetcode/cpp/qt_reverse_string.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
null
null
null
leetcode/cpp/qt_reverse_string.cpp
qiaotian/CodeInterview
294c1ba86d8ace41a121c5ada4ba4c3765ccc17d
[ "WTFPL" ]
null
null
null
/* Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". */ class Solution { public: string reverseString(string s) { int start = 0; int end = s.size()-1; while(start < end) { swap(s[start++], s[end--]); } ...
19.111111
78
0.561047
30975b6c7b89dfb8c38cf30bebfe7afef6d081db
5,087
cpp
C++
src/linearSolverFactorizedSLU_batched.cpp
GabrielCortesi/GPU-Linear-Solver-Small-Batched
7530707b043b4b96b7fb4081ee1e8cbeca92d833
[ "BSD-3-Clause" ]
1
2019-12-05T18:36:04.000Z
2019-12-05T18:36:04.000Z
src/linearSolverFactorizedSLU_batched.cpp
GabrielCortesi/GPU-Linear-Solver-Small-Batched
7530707b043b4b96b7fb4081ee1e8cbeca92d833
[ "BSD-3-Clause" ]
null
null
null
src/linearSolverFactorizedSLU_batched.cpp
GabrielCortesi/GPU-Linear-Solver-Small-Batched
7530707b043b4b96b7fb4081ee1e8cbeca92d833
[ "BSD-3-Clause" ]
1
2019-12-05T18:13:39.000Z
2019-12-05T18:13:39.000Z
 #ifdef __CDT_PARSER__ #undef __CUDA_RUNTIME_H__ #include <cuda_runtime.h> #endif #include <cuda_runtime.h> #include <math.h> #include <string.h> #include "utils.h" #include "operation_batched.h" #ifndef max #define max(a,b) (((a) > (b)) ? (a) : (b)) #endif #ifndef min #define min(a,b) (((a) <...
28.578652
116
0.549243
3098c961a04a961a07a9b587f9e56fac7d56ba21
287
hpp
C++
src/modules/osg/generated_code/TransformFeedbackBufferBinding.pypp.hpp
JaneliaSciComp/osgpyplusplus
a5ae3f69c7e9101a32d8cc95fe680dab292f75ac
[ "BSD-3-Clause" ]
17
2015-06-01T12:19:46.000Z
2022-02-12T02:37:48.000Z
src/modules/osg/generated_code/TransformFeedbackBufferBinding.pypp.hpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-07-04T14:36:49.000Z
2015-07-23T18:09:49.000Z
src/modules/osg/generated_code/TransformFeedbackBufferBinding.pypp.hpp
cmbruns/osgpyplusplus
f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75
[ "BSD-3-Clause" ]
7
2015-11-28T17:00:31.000Z
2020-01-08T07:00:59.000Z
// This file has been generated by Py++. #ifndef TransformFeedbackBufferBinding_hpp__pyplusplus_wrapper #define TransformFeedbackBufferBinding_hpp__pyplusplus_wrapper void register_TransformFeedbackBufferBinding_class(); #endif//TransformFeedbackBufferBinding_hpp__pyplusplus_wrapper
31.888889
62
0.891986
309cd4cf8ee842ba93c661842641de1cb0b0f4e5
42,488
cc
C++
src/cats/sql_create.cc
Acidburn0zzz/bareos
34a60296af2e2e948c8cd983876eebf5d4d31fc9
[ "MIT" ]
1
2018-04-28T14:03:39.000Z
2018-04-28T14:03:39.000Z
src/cats/sql_create.cc
Acidburn0zzz/bareos
34a60296af2e2e948c8cd983876eebf5d4d31fc9
[ "MIT" ]
null
null
null
src/cats/sql_create.cc
Acidburn0zzz/bareos
34a60296af2e2e948c8cd983876eebf5d4d31fc9
[ "MIT" ]
null
null
null
/* BAREOS® - Backup Archiving REcovery Open Sourced Copyright (C) 2000-2012 Free Software Foundation Europe e.V. Copyright (C) 2011-2016 Planets Communications B.V. Copyright (C) 2013-2017 Bareos GmbH & Co. KG This program is Free Software; you can redistribute it and/or modify it under the terms of...
28.708108
115
0.605583
30a19e7445d08c0baac9ae0bbc2d884232c675a1
1,446
hpp
C++
apps/las2oci.hpp
libLAS/libLAS-1.6
92b4c1370785481f212cc7fec9623637233c1418
[ "BSD-3-Clause" ]
1
2019-02-13T14:41:23.000Z
2019-02-13T14:41:23.000Z
apps/las2oci.hpp
libLAS/libLAS-1.6
92b4c1370785481f212cc7fec9623637233c1418
[ "BSD-3-Clause" ]
1
2018-03-13T07:12:06.000Z
2018-03-13T07:12:06.000Z
apps/las2oci.hpp
libLAS/libLAS-1.6
92b4c1370785481f212cc7fec9623637233c1418
[ "BSD-3-Clause" ]
2
2021-05-17T02:09:16.000Z
2021-06-21T12:15:52.000Z
#ifndef LAS2OCI_HPP_INCLUDED #define LAS2OCI_HPP_INCLUDED #include "oci_wrapper.h" #include <stdlib.h> // god-awful hack because of GDAL/GeoTIFF's shitty include structure #define CPL_SERV_H_INCLUDED #include <liblas/liblas.hpp> #include <boost/cstdint.hpp> #include <boost/concept_check.hpp> #include <string> #i...
17.421687
92
0.674965
30a2394057ff68551582ba148aa198343ee00668
407
cpp
C++
src/system/kernel/arch/sparc/arch_platform.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
2
2020-02-02T06:48:30.000Z
2020-04-05T13:58:32.000Z
src/system/kernel/arch/sparc/arch_platform.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
null
null
null
src/system/kernel/arch/sparc/arch_platform.cpp
Kirishikesan/haiku
835565c55830f2dab01e6e332cc7e2d9c015b51e
[ "MIT" ]
1
2022-02-05T11:40:54.000Z
2022-02-05T11:40:54.000Z
/* Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk. * Distributed under the terms of the MIT License. */ #include <arch/platform.h> status_t arch_platform_init(struct kernel_args *kernelArgs) { return B_OK; } status_t arch_platform_init_post_vm(struct kernel_args *kernelArgs) { return B_OK; } sta...
14.535714
62
0.781327
30a7ede92394a9d33e79057d72973a78de7eb231
1,903
cpp
C++
detect_all_cycles.cpp
poojacos/graph_algos
a6e5d5f29b2c18fda73cfdace8781cbddc294650
[ "MIT" ]
null
null
null
detect_all_cycles.cpp
poojacos/graph_algos
a6e5d5f29b2c18fda73cfdace8781cbddc294650
[ "MIT" ]
null
null
null
detect_all_cycles.cpp
poojacos/graph_algos
a6e5d5f29b2c18fda73cfdace8781cbddc294650
[ "MIT" ]
null
null
null
// C++ program to print all the cycles // in an undirected graph //CONCEPT-use colors #include <bits/stdc++.h> using namespace std; const int N = 100000; // variables to be used // in both functions vector<int> graph[N]; vector<int> cycles[N]; // Function to mark the vertex with // different colors for diff...
21.144444
85
0.620074
30a90f9ce996f0be688e897fbc53ec7af868bc92
2,752
cpp
C++
csvreader.cpp
VITObelgium/cpp-infra
2a95a112439b21ff9125c2e6e29810a418b94a4d
[ "MIT" ]
1
2022-02-23T03:15:54.000Z
2022-02-23T03:15:54.000Z
csvreader.cpp
VITObelgium/cpp-infra
2a95a112439b21ff9125c2e6e29810a418b94a4d
[ "MIT" ]
null
null
null
csvreader.cpp
VITObelgium/cpp-infra
2a95a112439b21ff9125c2e6e29810a418b94a4d
[ "MIT" ]
null
null
null
#include "infra/csvreader.h" namespace inf { CsvReader::CsvReader(const fs::path& filename) : _charset(detect_character_set(filename)) , _dataset(gdal::VectorDataSet::open(filename, gdal::VectorType::Csv)) , _layer(_dataset.layer(0)) { } int32_t CsvReader::column_count() const { return _layer.layer_definition().f...
21.5
79
0.704578
dd5fdd066ff02cf62e2468cfca7b80c957514164
9,526
hpp
C++
Classes/GestureRecognizers.hpp
bennyk/SmoothDrawing-x
c6095ee078948b82804c30398a65c4f06e522d1b
[ "MIT" ]
4
2016-07-21T10:37:24.000Z
2019-08-22T13:13:53.000Z
Classes/GestureRecognizers.hpp
bennyk/SmoothDrawing-x
c6095ee078948b82804c30398a65c4f06e522d1b
[ "MIT" ]
1
2017-07-14T10:02:12.000Z
2017-07-14T12:54:33.000Z
Classes/GestureRecognizers.hpp
bennyk/SmoothDrawing-x
c6095ee078948b82804c30398a65c4f06e522d1b
[ "MIT" ]
7
2016-02-26T04:07:03.000Z
2021-05-31T01:59:30.000Z
// // GestureRecognizers.hpp // SmoothDrawing // // Created by Benny Khoo on 21/10/2015. // // #ifndef GestureRecognizers_hpp #define GestureRecognizers_hpp #include <stdio.h> #include <array> using namespace cocos2d; class VelocityCalculator { public: using time_point = std::chrono::high_resolution_clo...
28.435821
157
0.5633
dd63164241ee268e1eb32e5e92a5a6d709794b61
766
cpp
C++
interview_preparation_kit/string_manipulation/common_child.cpp
Surya-06/hackerrank
dc001aebe4d2a01adbb711d18089117ba6629b2b
[ "MIT" ]
null
null
null
interview_preparation_kit/string_manipulation/common_child.cpp
Surya-06/hackerrank
dc001aebe4d2a01adbb711d18089117ba6629b2b
[ "MIT" ]
null
null
null
interview_preparation_kit/string_manipulation/common_child.cpp
Surya-06/hackerrank
dc001aebe4d2a01adbb711d18089117ba6629b2b
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; int** data; string a ,b; int max ( int a , int b ){ if ( a > b ) return a; return b; } int ss ( int ina , int inb ) { if ( ina == a.size() or inb==b.size() ) return 0; if ( data[ina][inb]!=-1 ) return data[ina][inb]; if ( a[ina]==b[inb]...
18.682927
59
0.513055
dd645f424261ce5b53ea1744ecac4d11c2ca18b4
14,422
hpp
C++
include/types/mat.hpp
Oxsomi/core2
96d64fc5f47b6aee2e205205196e4bb1ddee59f6
[ "MIT" ]
null
null
null
include/types/mat.hpp
Oxsomi/core2
96d64fc5f47b6aee2e205205196e4bb1ddee59f6
[ "MIT" ]
12
2020-01-17T21:40:53.000Z
2020-11-18T18:13:35.000Z
include/types/mat.hpp
Oxsomi/core2
96d64fc5f47b6aee2e205205196e4bb1ddee59f6
[ "MIT" ]
null
null
null
#pragma once #include "vec.hpp" //Helper for generating matrices //All rotations and fovs are in radians //Matrix storage template<typename T, usz W, usz H> struct TMatStorage { union { T f[W * H]; T m[W][H]; Vec<T, W> axes[H]; }; constexpr inline TMatStorage(): f{} {} template<typename ...args> const...
23.112179
138
0.630495
dd67e82e2b5df1e6dae23bcb1b1e013aedecc0ed
1,542
cpp
C++
src/DynamicRank.FreeForm.Library/libs/External/FreeForm2ExternalData.cpp
ltxtech/lightgbm-transform
ca3bdaae4e594c1bf74503c5ec151f2b794f855c
[ "MIT" ]
17
2021-11-02T13:52:10.000Z
2022-02-10T07:43:38.000Z
src/DynamicRank.FreeForm.Library/libs/External/FreeForm2ExternalData.cpp
ltxtech/lightgbm-transform
ca3bdaae4e594c1bf74503c5ec151f2b794f855c
[ "MIT" ]
2
2022-01-23T16:15:40.000Z
2022-03-07T15:54:34.000Z
src/DynamicRank.FreeForm.Library/libs/External/FreeForm2ExternalData.cpp
ltxtech/lightgbm-transform
ca3bdaae4e594c1bf74503c5ec151f2b794f855c
[ "MIT" ]
1
2022-01-21T09:42:59.000Z
2022-01-21T09:42:59.000Z
/*! * Copyright (c) 2021 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for * license information. */ #include "FreeForm2ExternalData.h" #include <string> #include "FreeForm2Type.h" #include "TypeImpl.h" #include "TypeManager.h" FreeForm2::Exter...
30.84
79
0.705577
dd6bc353fe58b13922c2ef58692429852b1ed9ef
2,360
hpp
C++
framework/platform/android/tcuAndroidWindow.hpp
iabernikhin/VK-GL-CTS
a3338eb2ded98b5befda64f9325db0d219095a00
[ "Apache-2.0" ]
354
2017-01-24T17:12:38.000Z
2022-03-30T07:40:19.000Z
framework/platform/android/tcuAndroidWindow.hpp
iabernikhin/VK-GL-CTS
a3338eb2ded98b5befda64f9325db0d219095a00
[ "Apache-2.0" ]
275
2017-01-24T20:10:36.000Z
2022-03-24T16:24:50.000Z
framework/platform/android/tcuAndroidWindow.hpp
iabernikhin/VK-GL-CTS
a3338eb2ded98b5befda64f9325db0d219095a00
[ "Apache-2.0" ]
190
2017-01-24T18:02:04.000Z
2022-03-27T13:11:23.000Z
#ifndef _TCUANDROIDWINDOW_HPP #define _TCUANDROIDWINDOW_HPP /*------------------------------------------------------------------------- * drawElements Quality Program Tester Core * ---------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Ve...
23.137255
75
0.645339
dd6d7a2708379614a1841ffc927dedf6ff8c7859
4,257
cpp
C++
blast/src/objtools/eutils/api/elink.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/objtools/eutils/api/elink.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
blast/src/objtools/eutils/api/elink.cpp
mycolab/ncbi-blast
e59746cec78044d2bf6d65de644717c42f80b098
[ "Apache-2.0" ]
null
null
null
/* $Id: elink.cpp 196493 2010-07-06 00:37:12Z dicuccio $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under...
28.192053
77
0.612403
dd6fc2943c3e92cafa915e06f0f9a2191e0dbd71
7,484
cpp
C++
source/MultiLibrary/Filesystem/Windows/Filesystem.cpp
danielga/multilibrary
3d1177dd3affa875e06015f5e3e42dda525f3336
[ "BSD-3-Clause" ]
2
2018-06-22T12:43:57.000Z
2019-05-31T21:56:27.000Z
source/MultiLibrary/Filesystem/Windows/Filesystem.cpp
danielga/multilibrary
3d1177dd3affa875e06015f5e3e42dda525f3336
[ "BSD-3-Clause" ]
1
2017-09-09T01:21:31.000Z
2017-11-12T17:52:56.000Z
source/MultiLibrary/Filesystem/Windows/Filesystem.cpp
danielga/multilibrary
3d1177dd3affa875e06015f5e3e42dda525f3336
[ "BSD-3-Clause" ]
1
2022-03-30T18:57:41.000Z
2022-03-30T18:57:41.000Z
/************************************************************************* * MultiLibrary - https://danielga.github.io/multilibrary/ * A C++ library that covers multiple low level systems. *------------------------------------------------------------------------ * Copyright (c) 2014-2022, Daniel Almeida * All righ...
29.234375
126
0.671833
dd707db35956550729f91f23ed4253756285de90
644
hpp
C++
C++/problems/0182_n_queens.hpp
raulhsant/algorithms
1578a0dc0a34d63c74c28dd87b0873e0b725a0bd
[ "MIT" ]
6
2019-03-20T22:23:26.000Z
2020-08-28T03:10:27.000Z
C++/problems/0182_n_queens.hpp
raulhsant/algorithms
1578a0dc0a34d63c74c28dd87b0873e0b725a0bd
[ "MIT" ]
15
2019-10-13T20:53:53.000Z
2022-03-31T02:01:35.000Z
C++/problems/0182_n_queens.hpp
raulhsant/algorithms
1578a0dc0a34d63c74c28dd87b0873e0b725a0bd
[ "MIT" ]
3
2019-03-11T10:57:46.000Z
2020-02-26T21:13:21.000Z
#ifndef N_QUEENS_HPP_INCLUDED #define N_QUEENS_HPP_INCLUDED #include <bits/stdc++.h> using namespace std; class Solution { private: vector<vector<string>> result; vector<string> createBoard(int n); bool checkColumn(const vector<string> &board,const int &row,const int & column); bool ch...
23.851852
88
0.704969
dd76f65c64e9fe7e05db1dd8378cf9c66fc19ec5
7,863
cpp
C++
bases/bases.cpp
mgaurav/sandbox
913d6a48ff77068a9bc18a77f51f79551933a71a
[ "MIT" ]
1
2018-08-30T10:17:38.000Z
2018-08-30T10:17:38.000Z
bases/bases.cpp
mgaurav/sandbox
913d6a48ff77068a9bc18a77f51f79551933a71a
[ "MIT" ]
null
null
null
bases/bases.cpp
mgaurav/sandbox
913d6a48ff77068a9bc18a77f51f79551933a71a
[ "MIT" ]
null
null
null
#include <bases.h> // Bases::toBase16, toBase36 #include <cmath> // std::ceil, std::log2 #include <stdexcept> // std::range_error #include <string> // std::string #include <vector> // std::vector namespace { char const BASE_16_CHARS[] = "0123456789abcdef"; char const BASE_36_CHARS[] = "012...
29.784091
108
0.579041
dd79134f524c1814c3c0b766e319640d6e358297
3,301
cpp
C++
libraries/ArduinoJson/test/JsonArray/add.cpp
tarontop/IRmqtt
5b3c0a4e442aeae46b62f6d8e0013d19c76e00d8
[ "MIT" ]
null
null
null
libraries/ArduinoJson/test/JsonArray/add.cpp
tarontop/IRmqtt
5b3c0a4e442aeae46b62f6d8e0013d19c76e00d8
[ "MIT" ]
1
2020-01-09T07:07:44.000Z
2020-01-09T07:07:44.000Z
libraries/ArduinoJson/test/JsonArray/add.cpp
tarontop/IRmqtt
5b3c0a4e442aeae46b62f6d8e0013d19c76e00d8
[ "MIT" ]
null
null
null
// ArduinoJson - arduinojson.org // Copyright Benoit Blanchon 2014-2018 // MIT License #include <ArduinoJson.h> #include <catch.hpp> TEST_CASE("JsonArray::add()") { DynamicJsonDocument doc; JsonArray _array = doc.to<JsonArray>(); SECTION("int") { _array.add(123); REQUIRE(123 == _array[0].as<int>()); ...
25.992126
59
0.633141
dd7ff997434a60045ef2756e488b922394b5f920
2,285
cc
C++
cc_mocks/socket.cc
piskorzj/node-packet-socket
151d985dced6fbbd3619e46572b9a6006a689d7a
[ "MIT" ]
7
2017-02-28T14:07:10.000Z
2019-10-08T18:49:42.000Z
cc_mocks/socket.cc
piskorzj/node-packet-socket
151d985dced6fbbd3619e46572b9a6006a689d7a
[ "MIT" ]
2
2017-04-02T12:24:00.000Z
2017-06-08T23:03:00.000Z
cc_mocks/socket.cc
piskorzj/node-packet-socket
151d985dced6fbbd3619e46572b9a6006a689d7a
[ "MIT" ]
null
null
null
#include "CppUTestExt/MockSupport.h" #include "socket.hh" #include <stdexcept> Socket::Socket(const char * device) { mock().actualCall("socket_constructor") .withStringParameter("device", device); if(!mock().returnBoolValueOrDefault(true)) { throw std::runtime_error("forced creation failure"); } } Socket::~So...
34.621212
89
0.76849
dd832ab319ce4878ad080464c4635919732aee27
1,687
hpp
C++
jsonrpc/serverMgr.hpp
flexibity-team/boost-tools
a6c67eacf7374136f9903680308334fc3408ba91
[ "MIT" ]
null
null
null
jsonrpc/serverMgr.hpp
flexibity-team/boost-tools
a6c67eacf7374136f9903680308334fc3408ba91
[ "MIT" ]
null
null
null
jsonrpc/serverMgr.hpp
flexibity-team/boost-tools
a6c67eacf7374136f9903680308334fc3408ba91
[ "MIT" ]
2
2019-12-26T13:54:29.000Z
2020-10-31T10:19:13.000Z
/* * serverMgr.hpp * * Created on: Oct 8, 2015 * Author: romeo */ #ifndef INCLUDE_FLEXIBITY_JSONRPC_SERVERMGR_HPP_ #define INCLUDE_FLEXIBITY_JSONRPC_SERVERMGR_HPP_ #include "flexibity/jsonrpc/jsonRpcSerial.hpp" #include "flexibity/jsonrpc/jsonRpcWebsocketClient.hpp" #include "flexibity/genericMgr.hpp" nam...
23.109589
94
0.713693
dd8497defaf062ee6fc3a88753ba4c155c430632
717
hpp
C++
include/SerialFiller/Crc16Ccitt1021.hpp
gbmhunter/SerialFiller
d678acbf6d29de7042d48c6be8ecef556bb6d857
[ "MIT" ]
9
2019-04-01T16:27:15.000Z
2022-03-14T19:45:34.000Z
include/SerialFiller/Crc16Ccitt1021.hpp
gbmhunter/SerialFiller
d678acbf6d29de7042d48c6be8ecef556bb6d857
[ "MIT" ]
12
2017-06-18T05:06:36.000Z
2018-01-30T21:55:39.000Z
include/SerialFiller/Crc16Ccitt1021.hpp
mbedded-ninja/SerialFiller
d678acbf6d29de7042d48c6be8ecef556bb6d857
[ "MIT" ]
3
2019-09-07T16:56:57.000Z
2022-02-08T03:25:28.000Z
/// /// \file Crc16Ccitt1021.hpp /// \author Geoffrey Hunter <gbmhunter@gmail.com> (www.mbedded.ninja) /// \edited n/a /// \created 2017-06-10 /// \last-modified 2018-01-25 /// \brief Contains the Crc16Ccitt1021 class. /// \details /// See README.rst in root dir for more info. #ifndef MN_SER...
24.724138
72
0.680614
dd849dbe0685f69864b08ab75120ea54905c2858
2,024
cpp
C++
DSA Crack Sheet/solutions/Minimum Cost of ropes.cpp
Akshad7829/DataStructures-Algorithms
439822c6a374672d1734e2389d3fce581a35007d
[ "MIT" ]
5
2021-08-10T18:47:49.000Z
2021-08-21T15:42:58.000Z
DSA Crack Sheet/solutions/Minimum Cost of ropes.cpp
Akshad7829/DataStructures-Algorithms
439822c6a374672d1734e2389d3fce581a35007d
[ "MIT" ]
2
2022-02-25T13:36:46.000Z
2022-02-25T14:06:44.000Z
DSA Crack Sheet/solutions/Minimum Cost of ropes.cpp
Akshad7829/DataStructures-Algorithms
439822c6a374672d1734e2389d3fce581a35007d
[ "MIT" ]
1
2021-08-11T06:36:42.000Z
2021-08-11T06:36:42.000Z
/* Minimum Cost of ropes ===================== There are given N ropes of different lengths, we need to connect these ropes into one rope. The cost to connect two ropes is equal to sum of their lengths. The task is to connect the ropes with minimum cost. Example 1: Input: n = 4 arr[] = {4, 3, 2, 6} Output: 29 Explan...
25.948718
207
0.676877
dd8952d0b69de72be8b0c6ffe35dd52fcdaa906f
769
cpp
C++
exception/IndexOutOfBoundException.cpp
JerryJin93/DataStructure
814857a064495eea51dd76bf85b6f706d6a5ba1f
[ "Apache-2.0" ]
null
null
null
exception/IndexOutOfBoundException.cpp
JerryJin93/DataStructure
814857a064495eea51dd76bf85b6f706d6a5ba1f
[ "Apache-2.0" ]
null
null
null
exception/IndexOutOfBoundException.cpp
JerryJin93/DataStructure
814857a064495eea51dd76bf85b6f706d6a5ba1f
[ "Apache-2.0" ]
null
null
null
// // Created by Jerry on 2021/5/15. // #include "IndexOutOfBoundException.h" #include <cstring> const char *IndexOutOfBoundException::DEFAULT_NAME = "Index out of bound!"; IndexOutOfBoundException::IndexOutOfBoundException(const string& name) { char* origin = const_cast<char*>(name.data()); this->name = stat...
23.30303
93
0.706112
dd8ef8e0c9f40df27ada5889ed871b1821998a93
12,579
cpp
C++
experiments/rmi_lookup.cpp
alhuan/analysis-rmi
be787ee9a02e04210d41af51c8a053f6dea575e9
[ "Apache-2.0" ]
9
2021-07-01T17:00:42.000Z
2022-03-23T09:21:17.000Z
experiments/rmi_lookup.cpp
alhuan/analysis-rmi
be787ee9a02e04210d41af51c8a053f6dea575e9
[ "Apache-2.0" ]
1
2021-07-20T13:39:27.000Z
2021-07-20T13:39:27.000Z
experiments/rmi_lookup.cpp
alhuan/analysis-rmi
be787ee9a02e04210d41af51c8a053f6dea575e9
[ "Apache-2.0" ]
1
2022-01-25T16:39:34.000Z
2022-01-25T16:39:34.000Z
#include <chrono> #include <random> #include "argparse/argparse.hpp" #include "rmi/models.hpp" #include "rmi/rmi.hpp" #include "rmi/util/fn.hpp" #include "rmi/util/search.hpp" using key_type = uint64_t; using namespace std::chrono; std::size_t s_glob; ///< global size_t variable /** * Measures lookup times of @p...
45.908759
163
0.608156
dd9a19698deae1729c3f357c3c054c787efda000
2,605
hpp
C++
Source/ReplicantHook/ReplicantHook.hpp
Asiern/ReplicantHook
63cbfd361d738dc37177c8fcf6e2657dc20bd9aa
[ "MIT" ]
11
2021-04-25T15:29:29.000Z
2022-02-27T09:49:54.000Z
Source/ReplicantHook/ReplicantHook.hpp
Asiern/ReplicantHook
63cbfd361d738dc37177c8fcf6e2657dc20bd9aa
[ "MIT" ]
6
2021-04-26T07:39:52.000Z
2021-10-06T14:12:09.000Z
Source/ReplicantHook/ReplicantHook.hpp
Asiern/ReplicantHook
63cbfd361d738dc37177c8fcf6e2657dc20bd9aa
[ "MIT" ]
1
2021-08-28T22:13:50.000Z
2021-08-28T22:13:50.000Z
#pragma once #include <Windows.h> #include <TlHelp32.h> #include <string> #include "Offsets.hpp" #include <map> class ReplicantHook { private: DWORD _pID; uintptr_t _baseAddress; uintptr_t actorPlayable; bool _hooked; offsets _offsets; int _version; std::map<std::string, uintptr_t> _inventory; int gold; std::...
23.053097
77
0.74357
dd9b7497e85b64798b1f7286795583dba4fa3aa6
12,213
cpp
C++
Pratica2Final/AlgoritmosBoost.cpp
RafaelDM/Tarea-4
85d5915cce9055245ee35367950b0ed147a634c6
[ "Apache-2.0" ]
null
null
null
Pratica2Final/AlgoritmosBoost.cpp
RafaelDM/Tarea-4
85d5915cce9055245ee35367950b0ed147a634c6
[ "Apache-2.0" ]
null
null
null
Pratica2Final/AlgoritmosBoost.cpp
RafaelDM/Tarea-4
85d5915cce9055245ee35367950b0ed147a634c6
[ "Apache-2.0" ]
null
null
null
/* Rafael Díaz Medina A01024592 David Benjamin Ruiz A01020825 https://www.boost.org/doc/libs/1_55_0/libs/graph/example/ https://www.boost.org/doc/libs/1_55_0/libs/graph/example/dfs-example.cpp https://www.boost.org/doc/libs/1_55_0/libs/graph/example/kruskal-example.cpp https://www.boost.org/doc/libs/1_55_0/libs/g...
34.019499
142
0.654876
dd9df012e1a640f25433cf2e364c3ebc8b1c7482
4,275
hpp
C++
src/stm32/registers/cpu_registers.hpp
Rexagon/stm32-emulator
4b4bc449a787c3f79c4e7e9dd563dcb4abc9abeb
[ "Apache-2.0" ]
null
null
null
src/stm32/registers/cpu_registers.hpp
Rexagon/stm32-emulator
4b4bc449a787c3f79c4e7e9dd563dcb4abc9abeb
[ "Apache-2.0" ]
2
2021-04-01T21:31:55.000Z
2021-04-06T07:35:04.000Z
src/stm32/registers/cpu_registers.hpp
Rexagon/stm32-emulator
4b4bc449a787c3f79c4e7e9dd563dcb4abc9abeb
[ "Apache-2.0" ]
null
null
null
#pragma once #include <cstdint> #include "../utils/general.hpp" namespace stm32::rg { /** * The special-purpose program status registers, xPSR */ DEFINE_REG(ApplicationProgramStatusRegister, { RESERVE(27); ///< bits[26:0] bool Q : 1; ///< bit[27] ///< Set to 1 if a SSAT or USAT instruct...
38.863636
121
0.56
dd9ee85db0caffeef07daeaec74107f9f0614fd0
23,906
cpp
C++
saber/funcs/impl/arm/neon/saber_softmax.cpp
baajur/Anakin
5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730
[ "Apache-2.0" ]
533
2018-05-18T06:14:04.000Z
2022-03-23T11:46:30.000Z
saber/funcs/impl/arm/neon/saber_softmax.cpp
baajur/Anakin
5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730
[ "Apache-2.0" ]
100
2018-05-26T08:32:48.000Z
2022-03-17T03:26:25.000Z
saber/funcs/impl/arm/neon/saber_softmax.cpp
baajur/Anakin
5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730
[ "Apache-2.0" ]
167
2018-05-18T06:14:35.000Z
2022-02-14T01:44:20.000Z
#include "saber/funcs/impl/arm/saber_softmax.h" #include "saber/funcs/impl/arm/neon/impl/neon_mathfun.h" namespace anakin{ namespace saber{ void softmax_basic(const float* din, float* dout, \ const int axis_size, const int inner_num, \ const int outer_num, const int compute_size) { #pragma omp parallel for ...
36.609495
102
0.582364
dda1d5424118961cb5c53d2751a15a6381c31ee2
1,259
cpp
C++
UCF HSPT Documents/2007/Solutions/zero.cpp
p473lr/i-urge-mafia-gear
ae19efb1af2e85ed8bcbbcc3d12ae0f024f3565e
[ "Apache-2.0" ]
null
null
null
UCF HSPT Documents/2007/Solutions/zero.cpp
p473lr/i-urge-mafia-gear
ae19efb1af2e85ed8bcbbcc3d12ae0f024f3565e
[ "Apache-2.0" ]
null
null
null
UCF HSPT Documents/2007/Solutions/zero.cpp
p473lr/i-urge-mafia-gear
ae19efb1af2e85ed8bcbbcc3d12ae0f024f3565e
[ "Apache-2.0" ]
null
null
null
// Guitar Zero solution // Written in C++ by Jobby Johns // UCF 2007 High School Programming Contest /* The solution is very simple. Get the number of score changes. Start the * score at 0. Then, get each score change one at a time and adjust the score * accordingly. Once all the score changes are done, ou...
19.984127
79
0.560763
dda483d94ce9cfa55a437bb7b8b995b0db566d45
358
hpp
C++
src/engineModules/eFont.hpp
psjuan97/JamEngine
20d98e6f3e962a518cc519fecd90205a52aba249
[ "MIT" ]
3
2019-09-30T08:23:03.000Z
2020-07-18T09:09:56.000Z
src/engineModules/eFont.hpp
psjuan97/JamEngine
20d98e6f3e962a518cc519fecd90205a52aba249
[ "MIT" ]
1
2019-09-28T14:17:05.000Z
2019-09-28T14:17:05.000Z
src/engineModules/eFont.hpp
psjuan97/JamEngine
20d98e6f3e962a518cc519fecd90205a52aba249
[ "MIT" ]
null
null
null
#pragma once #include <string> #include <SDL2/SDL_ttf.h> ///////// /// TODO /// liberar la fuente en el destructor class eFont{ public: eFont(const char* str, int size); ~eFont(); inline TTF_Font* getSDLFont() const { return sdl_font; }; private: ...
16.272727
45
0.539106
dda5c67804d14f06cabfc9360bcb4c7d47d84892
286
hpp
C++
astronomy/solar_system_fingerprints.hpp
madman2003/Principia
c757f840f5278ca3480799cee297238697868283
[ "MIT" ]
null
null
null
astronomy/solar_system_fingerprints.hpp
madman2003/Principia
c757f840f5278ca3480799cee297238697868283
[ "MIT" ]
null
null
null
astronomy/solar_system_fingerprints.hpp
madman2003/Principia
c757f840f5278ca3480799cee297238697868283
[ "MIT" ]
null
null
null
#pragma once #include <cstdint> namespace principia { namespace astronomy { constexpr std::uint64_t KSPStockSystemFingerprint = 0x54B6323B3376D6F3; constexpr std::uint64_t KSPStabilizedSystemFingerprint = 0xB57B58F9CF757C62; } // namespace astronomy } // namespace principia
22
76
0.793706
dda802b3b39ca7770bd99d0241c745b1a170b539
21,721
cpp
C++
ExternalSource/myOptimizer/ConicSolver/src/solver/optimizer/IPSolver.cpp
shbang91/PnC
880cbbcf96a48a93a0ab646634781e4f112a71f6
[ "MIT" ]
1
2020-05-04T22:36:54.000Z
2020-05-04T22:36:54.000Z
ExternalSource/myOptimizer/ConicSolver/src/solver/optimizer/IPSolver.cpp
shbang91/PnC
880cbbcf96a48a93a0ab646634781e4f112a71f6
[ "MIT" ]
null
null
null
ExternalSource/myOptimizer/ConicSolver/src/solver/optimizer/IPSolver.cpp
shbang91/PnC
880cbbcf96a48a93a0ab646634781e4f112a71f6
[ "MIT" ]
null
null
null
/* * * ECOS - Embedded Conic Solver * Copyright (C) [2012-2015] A. Domahidi [domahidi@embotech.com], * Automatic Control Lab, ETH Zurich & embotech GmbH, Zurich, Switzerland. * * Copyright [2017] Max Planck Society. All rights reserved. * * This program is free software: you can redistribute it and/or modify *...
51.716667
404
0.676718
ddad148892cd9abc74175c5f961396e5081ce719
14,159
cpp
C++
sources/tests/clone_generation_tests.cpp
greati/logicantsy
11d1f33f57df6fc77c3c18b506fc98f9b9a88794
[ "MIT" ]
2
2022-01-22T13:18:35.000Z
2022-02-12T22:56:34.000Z
sources/tests/clone_generation_tests.cpp
greati/logicantsy
11d1f33f57df6fc77c3c18b506fc98f9b9a88794
[ "MIT" ]
27
2020-06-06T18:32:02.000Z
2021-05-02T22:16:49.000Z
sources/tests/clone_generation_tests.cpp
greati/logicantsy
11d1f33f57df6fc77c3c18b506fc98f9b9a88794
[ "MIT" ]
null
null
null
#include "gtest/gtest.h" #include "core/common.h" #include "core/utils.h" #include "core/parser/fmla/fmla_parser.h" #include "apps/clones/clone_generation.h" namespace { TEST(CloneGen, GenerateCloneGodel) { ltsy::BisonFmlaParser parser; auto p = parser.parse("p"); auto q = parser.parse("q"...
32.106576
104
0.322127
ddb127e79811d14f6a32686dfbc2d5d990d73fbc
15,108
cpp
C++
frontends/common/resolveReferences/resolveReferences.cpp
pierce-m/p4c
afe96cf5a658f7bf5e1b95a044c241d9afb13dc6
[ "Apache-2.0" ]
null
null
null
frontends/common/resolveReferences/resolveReferences.cpp
pierce-m/p4c
afe96cf5a658f7bf5e1b95a044c241d9afb13dc6
[ "Apache-2.0" ]
null
null
null
frontends/common/resolveReferences/resolveReferences.cpp
pierce-m/p4c
afe96cf5a658f7bf5e1b95a044c241d9afb13dc6
[ "Apache-2.0" ]
null
null
null
/* Copyright 2013-present Barefoot Networks, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
32.560345
97
0.60458
ddb19031941d6712f7139733b6aaeda26c2f1e09
1,552
cpp
C++
Depth_Estimation_Pipeline/app/driver.cpp
jasonpilbrough/Mesh-Based-Depth-Estimation
fe82eab3b064c3fa6a543fa83f626e7d948d2335
[ "MIT" ]
null
null
null
Depth_Estimation_Pipeline/app/driver.cpp
jasonpilbrough/Mesh-Based-Depth-Estimation
fe82eab3b064c3fa6a543fa83f626e7d948d2335
[ "MIT" ]
null
null
null
Depth_Estimation_Pipeline/app/driver.cpp
jasonpilbrough/Mesh-Based-Depth-Estimation
fe82eab3b064c3fa6a543fa83f626e7d948d2335
[ "MIT" ]
null
null
null
#include "pipeline.h" //#include "colourmap.h" //#include <opencv2/viz.hpp> int main(int argc, char* argv[]) { // ######### EuRoC ######### //std::string dataset_path_left = "data/EuRoC/MH1/cam0/data/%10d.png"; //std::string dataset_path_right = "data/EuRoC/MH1/cam1/data/%10d.png"; // ######### E...
36.093023
98
0.691366
ddb1bc6b58aa8666fe1bd5ef983591fbeb7c216d
1,181
cpp
C++
test/ext/std/integral_constant/bug_datatype_inheritance.cpp
rbock/hana
2b76377f91a5ebe037dea444e4eaabba6498d3a8
[ "BSL-1.0" ]
2
2015-05-07T14:29:13.000Z
2015-07-04T10:59:46.000Z
test/ext/std/integral_constant/bug_datatype_inheritance.cpp
rbock/hana
2b76377f91a5ebe037dea444e4eaabba6498d3a8
[ "BSL-1.0" ]
null
null
null
test/ext/std/integral_constant/bug_datatype_inheritance.cpp
rbock/hana
2b76377f91a5ebe037dea444e4eaabba6498d3a8
[ "BSL-1.0" ]
null
null
null
/* @copyright Louis Dionne 2014 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #include <boost/hana/ext/std/integral_constant.hpp> #include <boost/hana/core/datatype.hpp> #include <type_traits> using namespace boost::hana;...
34.735294
94
0.730737
ddb25dd6ff068f1ee904f061f903794d46277de1
878
cpp
C++
examples/test.cpp
EBoespflug/multi_array
61ce2540bf5e4c3c9b7266ae5958eaad433481a4
[ "CC0-1.0" ]
null
null
null
examples/test.cpp
EBoespflug/multi_array
61ce2540bf5e4c3c9b7266ae5958eaad433481a4
[ "CC0-1.0" ]
null
null
null
examples/test.cpp
EBoespflug/multi_array
61ce2540bf5e4c3c9b7266ae5958eaad433481a4
[ "CC0-1.0" ]
null
null
null
#include "../multi_array.hpp" #include <iostream> #include <numeric> template<typename Container> void print(Container c) { std::cout << c.size() << '\n'; for(auto&& v : c) std::cout << v << ' '; std::cout << '\n'; } int main() { eb::multi_array<int, 3, 2, 2> arr1{0}; eb::multi_array<int,...
17.918367
43
0.458998
ddb41032afaac83ba298fd4710593472b69f5ec3
27,241
cpp
C++
deform_control/external_libs/OpenSceneGraph-2.8.5/examples/osgscreencapture/osgscreencapture.cpp
UM-ARM-Lab/mab_ms
f199f05b88060182cfbb47706bd1ff3479032c43
[ "BSD-2-Clause" ]
3
2018-08-20T12:12:43.000Z
2021-06-06T09:43:27.000Z
deform_control/external_libs/OpenSceneGraph-2.8.5/examples/osgscreencapture/osgscreencapture.cpp
UM-ARM-Lab/mab_ms
f199f05b88060182cfbb47706bd1ff3479032c43
[ "BSD-2-Clause" ]
null
null
null
deform_control/external_libs/OpenSceneGraph-2.8.5/examples/osgscreencapture/osgscreencapture.cpp
UM-ARM-Lab/mab_ms
f199f05b88060182cfbb47706bd1ff3479032c43
[ "BSD-2-Clause" ]
1
2022-03-31T03:12:23.000Z
2022-03-31T03:12:23.000Z
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This application is open source and may be redistributed and/or modified * freely and without restriction, both in commericial and non commericial applications, * as long as this copyright notice is maintained. * * This application is d...
34.395202
222
0.562645
ddb4b869c05f3c26a91225833baa2ebffa91a990
2,823
cc
C++
cc/whocc-scan-titers.cc
acorg/acmacs-whocc
af508bd4651ffb565cd4cf771200540918b1b2bd
[ "MIT" ]
null
null
null
cc/whocc-scan-titers.cc
acorg/acmacs-whocc
af508bd4651ffb565cd4cf771200540918b1b2bd
[ "MIT" ]
null
null
null
cc/whocc-scan-titers.cc
acorg/acmacs-whocc
af508bd4651ffb565cd4cf771200540918b1b2bd
[ "MIT" ]
null
null
null
#include <string> #include "acmacs-base/argv.hh" #include "acmacs-base/filesystem.hh" #include "acmacs-chart-2/chart.hh" #include "acmacs-chart-2/factory-import.hh" // ---------------------------------------------------------------------- void find_ace_files(const fs::path& source_dir, std::vector<fs::path>& ace_fil...
36.662338
129
0.569607
ddb8c1a668ae4b09afe226003e27e8d7b3fb0006
34,652
cpp
C++
Gunz/xpsupport/xpcrt.cpp
WhyWolfie/Repack-Aren
4839db138a502ca4cfac8c2a8c950f1b59064955
[ "FSFAP" ]
null
null
null
Gunz/xpsupport/xpcrt.cpp
WhyWolfie/Repack-Aren
4839db138a502ca4cfac8c2a8c950f1b59064955
[ "FSFAP" ]
null
null
null
Gunz/xpsupport/xpcrt.cpp
WhyWolfie/Repack-Aren
4839db138a502ca4cfac8c2a8c950f1b59064955
[ "FSFAP" ]
null
null
null
/* Copyright (c) 2012 Mike Ryan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli...
34.791165
157
0.75303
ddb931107eeba6b3642942bac5d454e2310eb50f
2,248
cpp
C++
src/Context.cpp
santa01/frank-luna-dx11
57172ca245f7933116ad8ab1974a1ff95c6a4f4c
[ "MIT" ]
null
null
null
src/Context.cpp
santa01/frank-luna-dx11
57172ca245f7933116ad8ab1974a1ff95c6a4f4c
[ "MIT" ]
null
null
null
src/Context.cpp
santa01/frank-luna-dx11
57172ca245f7933116ad8ab1974a1ff95c6a4f4c
[ "MIT" ]
null
null
null
/* * Copyright (c) 2020 Pavlo Lavrenenko * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pu...
27.084337
81
0.711744
ddba5cf6d9aad6ae6bad3b4345ffd496eb24dd05
1,259
cpp
C++
11497/11497.cpp
retroinspect/my-first-ps
89c583cd7207b32465c9616b032dd1c3f1f54438
[ "Apache-2.0" ]
null
null
null
11497/11497.cpp
retroinspect/my-first-ps
89c583cd7207b32465c9616b032dd1c3f1f54438
[ "Apache-2.0" ]
null
null
null
11497/11497.cpp
retroinspect/my-first-ps
89c583cd7207b32465c9616b032dd1c3f1f54438
[ "Apache-2.0" ]
null
null
null
// 통나무 건너뛰기 #include <iostream> #include <string> #include <vector> #include <cassert> #include <cmath> #include <algorithm> #include <list> using namespace std; vector<int> input; int N; int logJumping() { sort(input.begin(), input.end()); list<int> reorder; for (int i=0; i<N; i++) { int e = input[i]; ...
17.985714
81
0.58062
ddbebac1a83fa5be9674f895330b132b682461fb
6,612
cpp
C++
src/lpython/tests/test_parse.cpp
akshanshbhatt/lpython
70fef49dbbb6cbb0447f7013231171e5c8b8e5df
[ "BSD-3-Clause" ]
31
2022-01-07T23:56:33.000Z
2022-03-29T16:09:02.000Z
src/lpython/tests/test_parse.cpp
akshanshbhatt/lpython
70fef49dbbb6cbb0447f7013231171e5c8b8e5df
[ "BSD-3-Clause" ]
197
2021-12-29T19:01:41.000Z
2022-03-31T15:58:25.000Z
src/lpython/tests/test_parse.cpp
akshanshbhatt/lpython
70fef49dbbb6cbb0447f7013231171e5c8b8e5df
[ "BSD-3-Clause" ]
17
2022-01-06T15:34:36.000Z
2022-03-31T13:55:33.000Z
#include <tests/doctest.h> #include <iostream> #include <sstream> #include <chrono> #include <string> #include <lpython/bigint.h> using LFortran::TRY; using LFortran::Result; using LFortran::BigInt::is_int_ptr; using LFortran::BigInt::ptr_to_int; using LFortran::BigInt::int_to_ptr; using LFortran::BigInt::string_to...
22.187919
77
0.535088
ddbee71b4aee7077c83aaaa0be21fd6a14bc25e3
3,804
cpp
C++
google_analytics.cpp
mgoin/tiniest-analytics
4adae359d0c261fe61bc4206bc8c2b5619413f17
[ "MIT" ]
null
null
null
google_analytics.cpp
mgoin/tiniest-analytics
4adae359d0c261fe61bc4206bc8c2b5619413f17
[ "MIT" ]
null
null
null
google_analytics.cpp
mgoin/tiniest-analytics
4adae359d0c261fe61bc4206bc8c2b5619413f17
[ "MIT" ]
null
null
null
/* Tiniest Analytics - v1.1 - MIT License (i.e. can use it for whatever purpose) Version history: v1.1 - 2017/12/15 - changed to C-style C++ Original authors: Mihai Dragomir, email:dmc@pixelshard.com Mihai Gosa, email:pintea@inthekillhouse.com twitter: @gosamihai */ #include "google_analytics.h" #incl...
27.565217
160
0.694532
ddc43cf6da150fb602bef9745593a4c071d4c933
30,276
cpp
C++
Javelin/Assembler/arm64/Assembler.cpp
jthlim/JavelinPattern
8add264f88ac620de109ddf797f7431779bbd9ea
[ "BSD-3-Clause" ]
10
2016-04-06T01:24:00.000Z
2021-11-16T10:16:51.000Z
Javelin/Assembler/arm64/Assembler.cpp
jthlim/JavelinPattern
8add264f88ac620de109ddf797f7431779bbd9ea
[ "BSD-3-Clause" ]
1
2016-05-06T05:38:58.000Z
2016-05-09T16:42:43.000Z
Javelin/Assembler/arm64/Assembler.cpp
jthlim/JavelinPattern
8add264f88ac620de109ddf797f7431779bbd9ea
[ "BSD-3-Clause" ]
null
null
null
//============================================================================ #if defined(__arm64__) //============================================================================ #include "Javelin/Assembler/arm64/Assembler.h" #include "Javelin/Assembler/JitMemoryManager.h" #include <algorithm> #include <stdint.h>...
30.862385
148
0.647113
ddc72e086394b9020cfa8da295a9b09421540bdb
1,203
cpp
C++
Lab1_String_Class_Concepts/program2/functions.cpp
sanatRR/Data-Structures-ICT
c87f52987b3449ad902ffb1b37c198a0a50d480a
[ "MIT" ]
1
2021-07-07T14:38:08.000Z
2021-07-07T14:38:08.000Z
Lab1_String_Class_Concepts/program2/functions.cpp
sanatRR/Data-Structures-ICT
c87f52987b3449ad902ffb1b37c198a0a50d480a
[ "MIT" ]
null
null
null
Lab1_String_Class_Concepts/program2/functions.cpp
sanatRR/Data-Structures-ICT
c87f52987b3449ad902ffb1b37c198a0a50d480a
[ "MIT" ]
null
null
null
//Copyright (c) 2021 Sanat Raorane #include<iostream> #include"student.h" using namespace std; void student::read(student arrayA[],int num){ for(int i=0;i<num;i++){ cout<<"\n\n"; //Lines for spacing cout<<"Enter details for student "<<(i+1)<<endl; cout<<"Enter Name:"<<endl; cin.syn...
26.152174
73
0.512884
ddc7df328a0a0fc63c0eb711853554763af5474b
26,301
cpp
C++
keymaster/authorization_set_test.cpp
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
9
2017-11-10T15:54:02.000Z
2021-04-15T20:57:29.000Z
keymaster/authorization_set_test.cpp
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
null
null
null
keymaster/authorization_set_test.cpp
Keneral/asystem
df12381b72ef3d629c8efc61100cc8c714195320
[ "Unlicense" ]
7
2018-01-08T02:53:32.000Z
2020-10-15T13:01:46.000Z
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
41.681458
99
0.63393
ddcb34f1d4f4a1b84dff19e87cc67b491ab0c5af
264
cc
C++
source/skyline/solution_unittest.cc
Yang-33/SpatialSkylineQueries-on-TIN
82b828ccc5fe1e772fbfa04627cf6a8d8d69aaa1
[ "MIT" ]
null
null
null
source/skyline/solution_unittest.cc
Yang-33/SpatialSkylineQueries-on-TIN
82b828ccc5fe1e772fbfa04627cf6a8d8d69aaa1
[ "MIT" ]
null
null
null
source/skyline/solution_unittest.cc
Yang-33/SpatialSkylineQueries-on-TIN
82b828ccc5fe1e772fbfa04627cf6a8d8d69aaa1
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include <vector> // See main.cc TEST(SolutionTest, NaiveAndFast) { std::vector<int> a{1, 2, 3}; std::vector<int> b{1, 2, 3}; ASSERT_EQ(a.size(), b.size()); for (size_t i = 0; i < a.size(); ++i) { EXPECT_EQ(a[i], b[i]); } }
20.307692
41
0.568182
ddcca0f40ab90bb6e024256380939f74eaa3a966
2,393
cpp
C++
scisim/ConstrainedMaps/FrictionMaps/FrictionOperator.cpp
Lyestria/scisim
e2c2abc8d38ea9b07717841782c5c723fce37ce5
[ "Apache-2.0" ]
null
null
null
scisim/ConstrainedMaps/FrictionMaps/FrictionOperator.cpp
Lyestria/scisim
e2c2abc8d38ea9b07717841782c5c723fce37ce5
[ "Apache-2.0" ]
null
null
null
scisim/ConstrainedMaps/FrictionMaps/FrictionOperator.cpp
Lyestria/scisim
e2c2abc8d38ea9b07717841782c5c723fce37ce5
[ "Apache-2.0" ]
null
null
null
// FrictionOperator.cpp // // Breannan Smith // Last updated: 09/22/2015 #include "FrictionOperator.h" #include "scisim/Constraints/Constraint.h" FrictionOperator::~FrictionOperator() {} // TODO: Despecialize from smooth void FrictionOperator::formGeneralizedSmoothFrictionBasis( const unsigned ndofs, const unsigned...
36.815385
217
0.689929
ddce127677fce6623d4d0bced04fc24d66d7e2a1
242
hpp
C++
src/main/Input/Input.hpp
ramp-eu/AGILPLAS
b2ae7a234859d758dbc6c8a876329a4060c53bd1
[ "Apache-2.0" ]
null
null
null
src/main/Input/Input.hpp
ramp-eu/AGILPLAS
b2ae7a234859d758dbc6c8a876329a4060c53bd1
[ "Apache-2.0" ]
5
2021-05-28T15:17:38.000Z
2021-06-15T10:04:29.000Z
src/main/Input/Input.hpp
ramp-eu/AGILPLAS
b2ae7a234859d758dbc6c8a876329a4060c53bd1
[ "Apache-2.0" ]
1
2021-05-31T14:39:14.000Z
2021-05-31T14:39:14.000Z
#ifndef INPUT_H_INCLUDED #define INPUT_H_INCLUDED class Input { private: int reference; String alias; public: Input(int reference, String alias); int getReference(); String getAlias(); void serialPrint(); }; #endif
13.444444
39
0.690083
ddd09e71ba385f83682379de1e163d780b5bbfbb
515
cpp
C++
solved/o-q/odd-sum/odd.cpp
abuasifkhan/pc-code
77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90
[ "Unlicense" ]
13
2015-09-30T19:18:04.000Z
2021-06-26T21:11:30.000Z
solved/o-q/odd-sum/odd.cpp
sbmaruf/pc-code
77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90
[ "Unlicense" ]
null
null
null
solved/o-q/odd-sum/odd.cpp
sbmaruf/pc-code
77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90
[ "Unlicense" ]
13
2015-01-04T09:49:54.000Z
2021-06-03T13:18:44.000Z
#include <cstdio> int a, b; int sum(int lo, int hi) { if (lo < 1) lo = 1; if (lo > hi) return 0; if (lo == hi) return lo; return (hi*(hi+1) - (lo-1)*lo)/2; } int solve() { int x = a % 2 == 0 ? a / 2 : (a - 1) / 2; int y = b % 2 == 0 ? b / 2 - 1 : (b - 1) / 2; return sum(x, y)*2 + y - x +...
15.147059
50
0.4
ddd1d520109b5d536a00417fab5cb54c369f7a74
4,524
cpp
C++
src/main/c++/TestAPI/testMemIO.cpp
yildiz-online/component-native-freeimage
cb329c74ebe0aa16d8349a213e1e4b95204fce58
[ "MIT" ]
null
null
null
src/main/c++/TestAPI/testMemIO.cpp
yildiz-online/component-native-freeimage
cb329c74ebe0aa16d8349a213e1e4b95204fce58
[ "MIT" ]
1
2018-11-19T19:12:58.000Z
2018-11-19T19:12:58.000Z
src/main/c++/TestAPI/testMemIO.cpp
yildiz-online/component-native-freeimage
cb329c74ebe0aa16d8349a213e1e4b95204fce58
[ "MIT" ]
null
null
null
// ========================================================== // FreeImage 3 Test Script // // Design and implementation by // - Herv� Drolon (drolon@infonie.fr) // // This file is part of FreeImage 3 // // COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY // OF ANY KIND, EITHER EXPRESSE...
30.362416
89
0.715075
ddd40ffa25cb716b4e26db8746e71abad6f85a73
3,167
cpp
C++
sniper/pico/Response.cpp
rtbtech/libsniper
0828df9da74f8ed11a1273c61c15dfb5816c3c1e
[ "Apache-2.0" ]
9
2020-05-08T21:17:12.000Z
2021-06-04T18:38:35.000Z
sniper/pico/Response.cpp
rtbtech/libsniper
0828df9da74f8ed11a1273c61c15dfb5816c3c1e
[ "Apache-2.0" ]
null
null
null
sniper/pico/Response.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...
30.747573
116
0.616672
ddd4d5ab025307843be0b62229c0d85036cf370d
582
cpp
C++
Notes_Week2/multipleInput.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
1
2019-01-06T22:36:01.000Z
2019-01-06T22:36:01.000Z
Notes_Week2/multipleInput.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
Notes_Week2/multipleInput.cpp
WeiChienHsu/CS165
65e95efc90415c8acc707e2d544eb384d3982e18
[ "MIT" ]
null
null
null
/********************************************************************* ** Author: Wei-Chien Hsu ** Date: 04/09/18 ** Description: Asks the user enters width and height, and output the Area. *********************************************************************/ #include <iostream> using ...
27.714286
70
0.450172
ddd720b0fcd290ae56e957915fd210698ee5186e
5,636
cpp
C++
main01_c.cpp
mlytle4218/ffmpeg-tutorial
5ff665e60f14f366c7334a48e57caffbac48e0bf
[ "OML" ]
null
null
null
main01_c.cpp
mlytle4218/ffmpeg-tutorial
5ff665e60f14f366c7334a48e57caffbac48e0bf
[ "OML" ]
null
null
null
main01_c.cpp
mlytle4218/ffmpeg-tutorial
5ff665e60f14f366c7334a48e57caffbac48e0bf
[ "OML" ]
null
null
null
// tutorial02.c // A pedagogical video player that will stream through every video frame as fast as it can. // // Code based on FFplay, Copyright (c) 2003 Fabrice Bellard, // and a tutorial by Martin Bohme (boehme@inb.uni-luebeckREMOVETHIS.de) // Tested on Gentoo, CVS version 5/01/07 compiled with GCC 4.1.1 // With up...
26.838095
101
0.671398
ddd9d252ff1a1c5ec59f6dad71df542a8c0c6727
510
cpp
C++
src/resource.cpp
ayumi1139/altv-python-module
469efe9b619cd66874e1b9f10af46ec46accde83
[ "MIT" ]
1
2021-12-30T19:21:30.000Z
2021-12-30T19:21:30.000Z
src/resource.cpp
ayumi1139/altv-python-module
469efe9b619cd66874e1b9f10af46ec46accde83
[ "MIT" ]
null
null
null
src/resource.cpp
ayumi1139/altv-python-module
469efe9b619cd66874e1b9f10af46ec46accde83
[ "MIT" ]
null
null
null
#include "resource.h" bool PythonResource::Start() { return true; } bool PythonResource::Stop() { return Impl::Stop(); } bool PythonResource::OnEvent(const alt::CEvent *ev) { return Impl::OnEvent(ev); } void PythonResource::OnTick() { Impl::OnTick(); } void PythonResource::OnCreateBaseObject(alt::...
15.454545
74
0.703922
dddafcbbe3971a518cafdb18249ca33a8ffe9536
1,668
cc
C++
src/sockio.cc
SanczoPL/QtServer
c8350e920cadc215ad306592460cc16031eefff9
[ "MIT" ]
null
null
null
src/sockio.cc
SanczoPL/QtServer
c8350e920cadc215ad306592460cc16031eefff9
[ "MIT" ]
null
null
null
src/sockio.cc
SanczoPL/QtServer
c8350e920cadc215ad306592460cc16031eefff9
[ "MIT" ]
null
null
null
#include "../include/sockio.h" SockIO::SockIO(QTcpSocket* a_socket, QObject* parent) : QObject(parent) , m_socket{ a_socket } { connect(m_socket, &QTcpSocket::readyRead, this, &SockIO::onReadyRead); } bool SockIO::hasMessages() { return !m_messageQueue.isEmpty(); } Message SockIO::nextMessage() { if (!hasMessag...
26.903226
120
0.676259
50af57283f0874a8f209829a0822eb507912716d
536
hpp
C++
YYSloth/include/drivers/pic/pic8259.hpp
notYuriy/yayaos
4df7b015cb6e572797dd40a5d2891cf24abcb4d1
[ "MIT" ]
12
2020-04-13T12:38:54.000Z
2021-08-31T07:03:14.000Z
YYSloth/include/drivers/pic/pic8259.hpp
YayOrg/YayOS
4df7b015cb6e572797dd40a5d2891cf24abcb4d1
[ "MIT" ]
null
null
null
YYSloth/include/drivers/pic/pic8259.hpp
YayOrg/YayOS
4df7b015cb6e572797dd40a5d2891cf24abcb4d1
[ "MIT" ]
1
2020-07-18T12:11:37.000Z
2020-07-18T12:11:37.000Z
#ifndef __PIC_8259_HPP_INCLUDED__ #define __PIC_8259_HPP_INCLUDED__ #include <drivers/pic/pic.hpp> #include <utils.hpp> namespace drivers { class PIC8259 : public IPIC { uint8_t m_picMasterMask; uint8_t m_picSlaveMask; public: void init(); bool registerLegacyIrq(uint8_t irq, ...
23.304348
67
0.695896
50af8f89a9594ef35a72183c8ffc3c849c577598
6,043
hpp
C++
src/accelerator/Component.hpp
chrpilat/mnemosyne
bde60abf5e2be614dadf599e9e7b6a44afa83907
[ "BSD-2-Clause" ]
6
2017-03-02T16:02:00.000Z
2022-02-15T13:25:50.000Z
src/accelerator/Component.hpp
chrpilat/mnemosyne
bde60abf5e2be614dadf599e9e7b6a44afa83907
[ "BSD-2-Clause" ]
null
null
null
src/accelerator/Component.hpp
chrpilat/mnemosyne
bde60abf5e2be614dadf599e9e7b6a44afa83907
[ "BSD-2-Clause" ]
2
2019-04-25T15:53:20.000Z
2020-02-10T02:45:32.000Z
/** * @copyright * Copyright (c) 2017 - SLD Group @ Columbia University. All Rights Reserved. * * This file is part of Mnemosyne. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of sourc...
33.949438
154
0.707761
50b20c1135034b5cd83271592d6a03f873ae1c5f
1,326
cc
C++
modules/planning/tasks/traffic_decider/front_vehicle.cc
delding/apollo
22d67d6c2e28550105e04defdf61ce82f2f7e50f
[ "Apache-2.0" ]
null
null
null
modules/planning/tasks/traffic_decider/front_vehicle.cc
delding/apollo
22d67d6c2e28550105e04defdf61ce82f2f7e50f
[ "Apache-2.0" ]
null
null
null
modules/planning/tasks/traffic_decider/front_vehicle.cc
delding/apollo
22d67d6c2e28550105e04defdf61ce82f2f7e50f
[ "Apache-2.0" ]
null
null
null
/****************************************************************************** * Copyright 2018 The Apollo 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 ...
30.136364
79
0.662142
50b3329138cbe81855eaf86cf22bec99ae8d8dcc
935
hpp
C++
libs/libSocketHandler/src/SocketHandler.hpp
maxDcb/ExplorationC2
f7366118eaa43ca5172b5e9d4a03156d724748b1
[ "MIT" ]
null
null
null
libs/libSocketHandler/src/SocketHandler.hpp
maxDcb/ExplorationC2
f7366118eaa43ca5172b5e9d4a03156d724748b1
[ "MIT" ]
null
null
null
libs/libSocketHandler/src/SocketHandler.hpp
maxDcb/ExplorationC2
f7366118eaa43ca5172b5e9d4a03156d724748b1
[ "MIT" ]
null
null
null
#pragma once #include <fstream> #include <memory> #include <chrono> #include <random> #include <vector> #include <thread> #include <boost/asio.hpp> #include <boost/bind.hpp> #include <boost/shared_ptr.hpp> class Server { public: Server(int port); ~Server(); bool send(std::string& data); bool receive(std::strin...
15.327869
48
0.708021
50b528ab4d6ecd9b379fd23b296cae56f26bb391
2,047
cc
C++
src/image/b3TxSaveInfo.cc
stmork/blz3
275e24681cb1493319cd0a50e691feb86182f6f0
[ "BSD-3-Clause" ]
null
null
null
src/image/b3TxSaveInfo.cc
stmork/blz3
275e24681cb1493319cd0a50e691feb86182f6f0
[ "BSD-3-Clause" ]
null
null
null
src/image/b3TxSaveInfo.cc
stmork/blz3
275e24681cb1493319cd0a50e691feb86182f6f0
[ "BSD-3-Clause" ]
1
2022-01-07T15:58:38.000Z
2022-01-07T15:58:38.000Z
/* ** ** $Filename: b3TxSaveInfo.cc $ ** $Release: Dortmund 2001, 2016 $ ** $Revision$ ** $Date$ ** $Author$ ** $Developer: Steffen A. Mork $ ** ** Blizzard III - File format encoder ** ** (C) Copyright 2001 - 2021 Steffen A. Mork ** All Rights Reserved ** ** */ /*************************************************...
25.5875
85
0.429897
50b69ba7a31c994d4e138ca87f9a08b483c9e6de
2,811
hpp
C++
include/codegen/include/Oculus/Platform/RoomType.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/Oculus/Platform/RoomType.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/Oculus/Platform/RoomType.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:08 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes // Including type: System.Enum #include "System/Enum.hpp" #include "utils/il2cpp-utils.hpp" // Completed in...
49.315789
83
0.728211
50bb67be19b9e4f3024490551da250d377d80309
1,743
cpp
C++
UVa 11496 musical loop/sample/sol.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 11496 musical loop/sample/sol.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 11496 musical loop/sample/sol.cpp
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
#include <iostream> #include <vector> using namespace std; int main(void) { int n, first, last, current, sz; bool increasing; while (cin >> n) { if (n == 0) break; increasing = true; vector<int> points; for (int i = 0; i < n; i++) { cin >> ...
30.051724
62
0.430866
50be740fd5091b26478e43a76633c15e31d3e26c
1,586
cpp
C++
2017/February/Silver/Why Did the Cow Cross the Road III.cpp
Sumitkk10/USACO-submissions
543dafe041356e83a18e7a57e5d93d24bc266682
[ "MIT" ]
2
2020-12-09T05:43:19.000Z
2020-12-09T06:24:45.000Z
2017/February/Silver/Why Did the Cow Cross the Road III.cpp
Sumitkk10/USACO-submissions
543dafe041356e83a18e7a57e5d93d24bc266682
[ "MIT" ]
null
null
null
2017/February/Silver/Why Did the Cow Cross the Road III.cpp
Sumitkk10/USACO-submissions
543dafe041356e83a18e7a57e5d93d24bc266682
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define fast ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL) using namespace std; const int N = 100 + 5; const int MOD = 1e9 + 7; int n, k, m, sol; set<pair<int, pair<int, pair<int, int> > > > s; bool ok, vis[N][N]; map<pair<int, int>, int> mp; void check(int i, int j){ if(i <= 0...
26.433333
70
0.406053
50c0dcfccd74614378c4bf6189216683d5a33079
551
cpp
C++
acmicpc/14789.cpp
juseongkr/BOJ
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
7
2020-02-03T10:00:19.000Z
2021-11-16T11:03:57.000Z
acmicpc/14789.cpp
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2021-01-03T06:58:24.000Z
2021-01-03T06:58:24.000Z
acmicpc/14789.cpp
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2020-01-22T14:34:03.000Z
2020-01-22T14:34:03.000Z
#include <iostream> using namespace std; int t, k; string s; int main() { cin >> t; for (int T=1; T<=t; ++T) { cin >> s >> k; int cnt = 0; int n = s.length(); for (int i=0; i<=n-k; ++i) { if (s[i] == '-') { cnt++; for (int j=i; j<i+k; ++j) s[j] = s[j] == '+' ? '-' : '+'; } } bool fl...
14.128205
48
0.3902
50c316fdf459561e0def613aad0f9139b8a64c68
71,364
cpp
C++
PythonExtrasC/PythonExtrasC/PythonExtrasC.cpp
rbnbr/S4
61534933e305e76d00cbefb75fc5c713c5b90c74
[ "MIT" ]
1
2021-09-27T11:29:48.000Z
2021-09-27T11:29:48.000Z
PythonExtrasC/PythonExtrasC/PythonExtrasC.cpp
rbnbr/S4
61534933e305e76d00cbefb75fc5c713c5b90c74
[ "MIT" ]
null
null
null
PythonExtrasC/PythonExtrasC/PythonExtrasC.cpp
rbnbr/S4
61534933e305e76d00cbefb75fc5c713c5b90c74
[ "MIT" ]
1
2022-02-10T16:07:27.000Z
2022-02-10T16:07:27.000Z
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include <vector> #include <numeric> #include <cmath> #include <cstring> #include <algorithm> #include <functional> #include <random> #include <thread> #include <atomic> #include <chrono> #include <ctime> #include <iostream> #include "macros.h" #include "Buff...
46.011605
149
0.606749
50c650e0f191878630bdfa2f07e11db89750fae1
4,011
cpp
C++
flakor/math/GLMatrix.cpp
sainthsu/Flakor
c414502f85d637b82a47754f20d1175e747b0a7d
[ "Libpng", "Apache-2.0", "MIT" ]
4
2015-01-26T08:42:51.000Z
2015-04-14T09:22:12.000Z
flakor/math/GLMatrix.cpp
sainthsu/Flakor
c414502f85d637b82a47754f20d1175e747b0a7d
[ "Libpng", "Apache-2.0", "MIT" ]
null
null
null
flakor/math/GLMatrix.cpp
sainthsu/Flakor
c414502f85d637b82a47754f20d1175e747b0a7d
[ "Libpng", "Apache-2.0", "MIT" ]
null
null
null
#include "macros.h" #include <assert.h> #include "math/GLMatrix.h" FLAKOR_NS_BEGIN MatrixStack* modelviewStack; MatrixStack* projectionStack; MatrixStack* textureStack; MatrixStack* currentStack = NULL; static unsigned char initialized = 0; #ifdef __cplusplus extern "C" { #endif void lazyInitialize() { if (!...
23.051724
87
0.640987
50c673c4e99d14630c64df5ad4f9829184d85221
9,577
cpp
C++
src/gfx/graphics/vulkan/swapchain_vulkan.cpp
johannes-braun/graphics_utilities
191772a3ff1c14eea74b9b5614b6226cf1f8abb7
[ "MIT" ]
null
null
null
src/gfx/graphics/vulkan/swapchain_vulkan.cpp
johannes-braun/graphics_utilities
191772a3ff1c14eea74b9b5614b6226cf1f8abb7
[ "MIT" ]
null
null
null
src/gfx/graphics/vulkan/swapchain_vulkan.cpp
johannes-braun/graphics_utilities
191772a3ff1c14eea74b9b5614b6226cf1f8abb7
[ "MIT" ]
null
null
null
#include "init_struct.hpp" #include "swapchain_vulkan.hpp" #include "image_view_vulkan.hpp" #include "result.hpp" namespace gfx { inline namespace v1 { namespace vulkan { uint32_t swapchain_implementation::current_image() const noexcept { return _current_image; } void swapchain_implementation::present() { if...
49.365979
161
0.732066
50c7ba74baa9d0d989196197f1e0fc6c28ef57e1
1,044
cc
C++
shuffle-an-array.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
shuffle-an-array.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
shuffle-an-array.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
#include <vector> #include <random> class Solution { public: std::vector<int> arr_; std::random_device dev_; std::mt19937 rng_; std::vector<std::uniform_int_distribution<int>> dists_; std::vector<int> res_; Solution(std::vector<int>& nums) : arr_(nums), dev_(), rng_(dev_()), res_(nums) { ...
26.1
83
0.564176
50c7d8124ac98e54fedf686fc71097ffdb7e174f
4,919
cpp
C++
src/qt/distributedcomputingdialog.cpp
wolfeye88/BiblePay-BBP-
fc668d5b4051e51c48e944c9687587300ce25946
[ "MIT" ]
null
null
null
src/qt/distributedcomputingdialog.cpp
wolfeye88/BiblePay-BBP-
fc668d5b4051e51c48e944c9687587300ce25946
[ "MIT" ]
null
null
null
src/qt/distributedcomputingdialog.cpp
wolfeye88/BiblePay-BBP-
fc668d5b4051e51c48e944c9687587300ce25946
[ "MIT" ]
null
null
null
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "distributedcomputingdialog.h" #include "ui_distributedcomputingdialog.h" #include "addressbookpage.h" #include "ad...
32.150327
224
0.725351
50ccf6e8002517cfa041552b8f5ac2102158a917
83
cpp
C++
ksn-2021-pertahanan/solution-1.cpp
ia-toki/ksn-2021
e925029fa9ce6198aae489c5f8505c47078da28e
[ "CC-BY-4.0" ]
null
null
null
ksn-2021-pertahanan/solution-1.cpp
ia-toki/ksn-2021
e925029fa9ce6198aae489c5f8505c47078da28e
[ "CC-BY-4.0" ]
null
null
null
ksn-2021-pertahanan/solution-1.cpp
ia-toki/ksn-2021
e925029fa9ce6198aae489c5f8505c47078da28e
[ "CC-BY-4.0" ]
1
2021-12-05T04:17:41.000Z
2021-12-05T04:17:41.000Z
#include <bits/stdc++.h> using namespace std; int main() { cout << 9 << '\n'; }
11.857143
24
0.554217
50cd5b9f93c313756548633084e08427f4b688bd
8,537
cpp
C++
src/SamplesLibElise/CPP_CilliaImg.cpp
kikislater/micmac
3009dbdad62b3ad906ec882b74b85a3db86ca755
[ "CECILL-B" ]
451
2016-11-25T09:40:28.000Z
2022-03-30T04:20:42.000Z
src/SamplesLibElise/CPP_CilliaImg.cpp
kikislater/micmac
3009dbdad62b3ad906ec882b74b85a3db86ca755
[ "CECILL-B" ]
143
2016-11-25T20:35:57.000Z
2022-03-01T11:58:02.000Z
src/SamplesLibElise/CPP_CilliaImg.cpp
kikislater/micmac
3009dbdad62b3ad906ec882b74b85a3db86ca755
[ "CECILL-B" ]
139
2016-12-02T10:26:21.000Z
2022-03-10T19:40:29.000Z
/*Header-MicMac-eLiSe-25/06/2007 MiccMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : Marc Pierrot Deseilligny Contributors : Gregoire Maillet, Did...
26.512422
121
0.538597
50cd7e3c47b62a36e926996848352808662522a0
831
hh
C++
src/websocket_server/Packets/Out/WeatherStatusPacket.hh
3n16m4/websocket-server
5b6575bbd459feeef459b20a093ada3fd9d035e5
[ "MIT" ]
2
2020-11-16T15:53:39.000Z
2021-03-20T09:08:36.000Z
src/websocket_server/Packets/Out/WeatherStatusPacket.hh
3n16m4/websocket-server
5b6575bbd459feeef459b20a093ada3fd9d035e5
[ "MIT" ]
2
2020-12-09T23:54:55.000Z
2020-12-11T20:14:52.000Z
src/websocket_server/Packets/Out/WeatherStatusPacket.hh
3n16m4/websocket-server
5b6575bbd459feeef459b20a093ada3fd9d035e5
[ "MIT" ]
1
2021-03-20T09:08:41.000Z
2021-03-20T09:08:41.000Z
#ifndef WEBSOCKET_SERVER_OUT_WEATHER_STATUS_PACKET_HH #define WEBSOCKET_SERVER_OUT_WEATHER_STATUS_PACKET_HH #include <array> namespace amadeus { enum class WebSocketSessionFlag : std::uint8_t; #pragma pack(push, 1) namespace out { /// \brief Defines the WeatherStatusPacket which is sent by the server if a /// WebSock...
29.678571
78
0.758123
50d35331a0380b1acbd4127c8f8c2c6966f4b433
831
hpp
C++
cpp2c/test_data/mmalloc.hpp
mendlin/SIMD-libgen
0f386bb639c829275a00f46c4b31d59c5ed84a28
[ "AFL-1.1" ]
1
2021-01-07T03:18:27.000Z
2021-01-07T03:18:27.000Z
cpp2c/test_data/mmalloc.hpp
Logicalmars/SIMD-libgen
0f386bb639c829275a00f46c4b31d59c5ed84a28
[ "AFL-1.1" ]
null
null
null
cpp2c/test_data/mmalloc.hpp
Logicalmars/SIMD-libgen
0f386bb639c829275a00f46c4b31d59c5ed84a28
[ "AFL-1.1" ]
1
2021-11-29T07:28:13.000Z
2021-11-29T07:28:13.000Z
#ifndef ALIGNED_MMALLOC_HPP #define ALIGNED_MMALLOC_HPP /*============================================================================= allocator.hpp - Platform independent aligned memory allocation. Created on: 06-December-2011 Author: Ken Herdy Description: TODO - Wrap routines inside a class scope and/or...
22.459459
79
0.565584
50dae8608e9b682934ff5632912f808772132924
4,010
cpp
C++
test/test_array_derivatives.cpp
yairchu/Adept-2
3b4f898c74139618464ccd8e8df0934aed9ed6a2
[ "Apache-2.0" ]
131
2016-07-06T04:06:49.000Z
2022-03-19T22:34:47.000Z
test/test_array_derivatives.cpp
yairchu/Adept-2
3b4f898c74139618464ccd8e8df0934aed9ed6a2
[ "Apache-2.0" ]
19
2016-06-20T20:20:23.000Z
2022-02-15T14:55:01.000Z
test/test_array_derivatives.cpp
yairchu/Adept-2
3b4f898c74139618464ccd8e8df0934aed9ed6a2
[ "Apache-2.0" ]
31
2017-10-07T00:07:49.000Z
2022-03-05T17:51:17.000Z
/* test_array_derivatives.cpp - Test derivatives of array expressions Copyright (C) 2017 European Centre for Medium-Range Weather Forecasts Author: Robin Hogan <r.j.hogan@ecmwf.int> Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided t...
23.727811
101
0.610474
50db783e21b99550fa09f93b00936396feab61e9
9,908
hpp
C++
ze_common/include/ze/common/ringbuffer.hpp
rockenbf/ze_oss
ee04158e2d51acb07a267196f618e9afbc3ffd83
[ "BSD-3-Clause" ]
30
2016-09-27T07:41:28.000Z
2021-12-03T20:44:28.000Z
ze_common/include/ze/common/ringbuffer.hpp
rockenbf/ze_oss
ee04158e2d51acb07a267196f618e9afbc3ffd83
[ "BSD-3-Clause" ]
1
2018-12-18T15:53:06.000Z
2018-12-21T03:10:06.000Z
ze_common/include/ze/common/ringbuffer.hpp
rockenbf/ze_oss
ee04158e2d51acb07a267196f618e9afbc3ffd83
[ "BSD-3-Clause" ]
12
2016-11-05T07:51:29.000Z
2020-07-13T02:26:08.000Z
// Copyright (c) 2015-2016, ETH Zurich, Wyss Zurich, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // ...
31.858521
87
0.709931
50db7ca281441c15525ea23e0f2a09d9258fc9dd
3,198
cpp
C++
src/libraries/core/primitives/strings/lists/hashedWordList.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
src/libraries/core/primitives/strings/lists/hashedWordList.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
src/libraries/core/primitives/strings/lists/hashedWordList.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
/*---------------------------------------------------------------------------*\ Copyright (C) 2011 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it under...
20.5
79
0.530019
50e125deb4b320ce3f86b69e55896749b3dd1652
70
cpp
C++
gui/applicationdata.cpp
UnnamedCompany/UnnamedSoftware
3251dc9844f35622f616fd3d5a40cb8c89ac0b28
[ "MIT" ]
4
2016-02-18T00:48:10.000Z
2016-03-02T23:41:54.000Z
gui/applicationdata.cpp
UnnamedCompany/UnnamedSoftware
3251dc9844f35622f616fd3d5a40cb8c89ac0b28
[ "MIT" ]
null
null
null
gui/applicationdata.cpp
UnnamedCompany/UnnamedSoftware
3251dc9844f35622f616fd3d5a40cb8c89ac0b28
[ "MIT" ]
1
2016-02-29T18:13:34.000Z
2016-02-29T18:13:34.000Z
#include "applicationdata.h" ApplicationData::ApplicationData() { }
14
38
0.757143
50e27a852f0b1d876c84eba4259fca8df2a4e44b
11,149
cc
C++
store/benchmark/retwisClient.cc
yc1111/tapir
2ce0f57725611076cd76ad7374b44f887d8618d8
[ "MIT" ]
437
2016-01-13T23:06:06.000Z
2022-03-07T07:41:55.000Z
store/benchmark/retwisClient.cc
yc1111/tapir
2ce0f57725611076cd76ad7374b44f887d8618d8
[ "MIT" ]
13
2016-01-14T06:12:21.000Z
2021-09-15T07:45:17.000Z
store/benchmark/retwisClient.cc
yc1111/tapir
2ce0f57725611076cd76ad7374b44f887d8618d8
[ "MIT" ]
58
2016-01-14T05:54:13.000Z
2022-03-08T02:56:33.000Z
// -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*- /*********************************************************************** * * store/benchmark/retwisClient.cc: * Retwis benchmarking client for a distributed transactional store. * **********************************************************************/ ...
30.545205
90
0.44865
50e2b45736a4cb23039bc11d8b549132c96b556b
94
cpp
C++
src/cli/InvalidCommandSyntaxException.cpp
mbassale/ownpass
a84e0cd3933ec8c3febf0e09647990baf3c2d506
[ "MIT" ]
null
null
null
src/cli/InvalidCommandSyntaxException.cpp
mbassale/ownpass
a84e0cd3933ec8c3febf0e09647990baf3c2d506
[ "MIT" ]
null
null
null
src/cli/InvalidCommandSyntaxException.cpp
mbassale/ownpass
a84e0cd3933ec8c3febf0e09647990baf3c2d506
[ "MIT" ]
null
null
null
// // Created by Marco Bassaletti on 18-03-21. // #include "InvalidCommandSyntaxException.h"
15.666667
43
0.734043
50e75f1d819c1c35e5f770807a9f53e427904d2f
1,144
hpp
C++
DOS_Boat_Source/RequireSpace.hpp
michaelslewis/DOS_Boat
1c25f352d75555fa81bbd0f99c89aaed43739646
[ "MIT" ]
null
null
null
DOS_Boat_Source/RequireSpace.hpp
michaelslewis/DOS_Boat
1c25f352d75555fa81bbd0f99c89aaed43739646
[ "MIT" ]
null
null
null
DOS_Boat_Source/RequireSpace.hpp
michaelslewis/DOS_Boat
1c25f352d75555fa81bbd0f99c89aaed43739646
[ "MIT" ]
null
null
null
/**************************************************************************** * Author: Michael S. Lewis * * Date: 6/3/2016 * * Description: RequireSpace.hpp is the RequireSpace class declaration * * (interface) file (for Final Project "DOS Boat"). * * A Require S...
35.75
79
0.566434
50e780b7bab76861f125a4c3ff88c3d8acf4c755
360
cpp
C++
books/C++_advanced_course/Chapter6/template_parameter_4.cpp
liangjisheng/C-Cpp
8b33ba1f43580a7bdded8bb4ce3d92983ccedb81
[ "MIT" ]
5
2019-09-17T09:12:15.000Z
2021-05-29T10:54:39.000Z
books/C++_advanced_course/Chapter6/template_parameter_4.cpp
liangjisheng/C-Cpp
8b33ba1f43580a7bdded8bb4ce3d92983ccedb81
[ "MIT" ]
null
null
null
books/C++_advanced_course/Chapter6/template_parameter_4.cpp
liangjisheng/C-Cpp
8b33ba1f43580a7bdded8bb4ce3d92983ccedb81
[ "MIT" ]
2
2021-07-26T06:36:12.000Z
2022-01-23T15:20:30.000Z
#include <iostream> using std::cout; using std::endl; template<class T, int a> class X { public: T valX[a]; }; template<class T, int a> class Y { X<T, a> valY; public: void Set(T t) { valY.valX[0] = t; } void ShowFirst() { cout << valY.valX[0] << endl; } }; int main() { Y<double, 3> y; y.Set(0.8); y.ShowFi...
10.588235
51
0.586111
50e8fb9c008d57e9f0091fbfd6c1d3c827741bbc
1,836
cpp
C++
tests/rect_follow_mouse.cpp
AlexandruIca/SoftRender
9466251ad919d6896a1e3d1455a156186106cbaa
[ "Unlicense" ]
null
null
null
tests/rect_follow_mouse.cpp
AlexandruIca/SoftRender
9466251ad919d6896a1e3d1455a156186106cbaa
[ "Unlicense" ]
null
null
null
tests/rect_follow_mouse.cpp
AlexandruIca/SoftRender
9466251ad919d6896a1e3d1455a156186106cbaa
[ "Unlicense" ]
null
null
null
#include <chrono> #include <cmath> #include "softrender.hpp" struct rect_t { softrender::point_t pos{ 0, 0 }; int w{ 0 }; int h{ 0 }; }; using microsecond_t = decltype(std::chrono::duration_cast<std::chrono::microseconds>( std::chrono::seconds(1)) .count()); auto fo...
26.228571
78
0.594227
50e90c212b6c069bf716bd2de7e2fd50dc270404
4,508
cpp
C++
Code/GraphMol/catch_tests.cpp
Mike575/rdkit
373a89021e478f878c6011a201e3fb8f4a122093
[ "PostgreSQL" ]
1
2019-01-23T06:02:24.000Z
2019-01-23T06:02:24.000Z
Code/GraphMol/catch_tests.cpp
Mike575/rdkit
373a89021e478f878c6011a201e3fb8f4a122093
[ "PostgreSQL" ]
null
null
null
Code/GraphMol/catch_tests.cpp
Mike575/rdkit
373a89021e478f878c6011a201e3fb8f4a122093
[ "PostgreSQL" ]
null
null
null
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do // this in one cpp file #include "catch.hpp" #include <GraphMol/RDKitBase.h> #include <GraphMol/RDKitQueries.h> #include <GraphMol/Chirality.h> #include <GraphMol/FileParsers/FileParsers.h> #include <GraphMol/Smiles...
32.2
134
0.648625
50eb9c8a790c3cdc7a4a284c23365dca8452f292
973
cpp
C++
Problems/IEEEXtreme/IEEEXtreme_11.0/Codes/Full.Pyramid.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
2
2020-07-20T06:40:22.000Z
2021-11-20T01:23:26.000Z
Problems/IEEEXtreme/IEEEXtreme_11.0/Codes/Full.Pyramid.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
Problems/IEEEXtreme/IEEEXtreme_11.0/Codes/Full.Pyramid.cpp
metehkaya/Algo-Archive
03b5fdcf06f84a03125c57762c36a4e03ca6e756
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define fi first #define se second #define maxk 17 #define maxn 100003 #define mod 1000000007 using namespace std; typedef pair<int,int> pi; int s; int comb[maxk][maxk]; pi dp[maxn][maxk]; int f( int ind , int step , int rem ) { if( ind == step ) return 1; if( dp[rem][ind].se == step + 1...
20.702128
88
0.50668