hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
5a31ac6c558ce7d433cac63a29a1f0f05a16ca29
764
hpp
C++
src/threshold.hpp
minijackson/INF4710-TP3
7285ee279e65e0d76a752d0f1be936ca79638473
[ "MIT" ]
null
null
null
src/threshold.hpp
minijackson/INF4710-TP3
7285ee279e65e0d76a752d0f1be936ca79638473
[ "MIT" ]
null
null
null
src/threshold.hpp
minijackson/INF4710-TP3
7285ee279e65e0d76a752d0f1be936ca79638473
[ "MIT" ]
null
null
null
#pragma once #include "cl_mat.hpp" #include <opencv2/opencv.hpp> enum LightnessComponent { intensity, value, lightness, luma, luma_rounded }; cv::Mat_<uint8_t> threshold(cv::Mat_<cv::Vec4b> const& input, uint8_t limit, LightnessComponent component = intensity)...
36.380952
82
0.633508
minijackson
5a31bad41c7e164b66c9bf4f99d81b3af3ae510a
600
cpp
C++
1000/70/1076c.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
1
2020-07-03T15:55:52.000Z
2020-07-03T15:55:52.000Z
1000/70/1076c.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
null
null
null
1000/70/1076c.cpp
actium/cf
d7be128c3a9adb014a231a399f1c5f19e1ab2a38
[ "Unlicense" ]
3
2020-10-01T14:55:28.000Z
2021-07-11T11:33:58.000Z
#include <iostream> #include <cmath> void no_answer() { std::cout << "N" << '\n'; } void answer(double x, double y) { std::cout << "Y" << std::fixed << ' ' << x << ' ' << y << '\n'; } void solve(unsigned d) { if (d == 0) return answer(0, 0); if (d < 4) return no_answer(); const...
12.244898
67
0.456667
actium
5a32685be23db614797fdf5f5022934b5b331cb2
5,360
cpp
C++
src/PyZPK/utils/utils.cpp
gargarchit/PyZPK
682c20efc6ae5d7bf705f9fcbcbf003d9e382412
[ "Apache-2.0" ]
4
2020-05-21T13:55:33.000Z
2020-08-17T00:59:29.000Z
src/PyZPK/utils/utils.cpp
gargarchit/PyZPK
682c20efc6ae5d7bf705f9fcbcbf003d9e382412
[ "Apache-2.0" ]
1
2020-07-21T07:37:59.000Z
2020-07-21T07:39:14.000Z
src/PyZPK/utils/utils.cpp
gargarchit/PyZPK
682c20efc6ae5d7bf705f9fcbcbf003d9e382412
[ "Apache-2.0" ]
null
null
null
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <pybind11/stl_bind.h> #include <pybind11/cast.h> #include <pybind11/complex.h> #include <pybind11/operators.h> #include <vector> #include <cassert> #include <cmath> #include <cstdlib> #include <limits> #include <random> #include <cstddef> #include <iostr...
39.124088
92
0.619216
gargarchit
5a36a2cc3636f45f26988d6e74b65fe2a3eabefd
715
cpp
C++
31-40/031 Next Permutation/NextPermutation.cpp
tiandaochouqin1/leetcode
9dcfc1aafd4dcf2e2a7cb0fa84677b59d7d34430
[ "Apache-2.0" ]
1
2021-04-17T17:32:56.000Z
2021-04-17T17:32:56.000Z
31-40/031 Next Permutation/NextPermutation.cpp
tiandaochouqin1/leetcode
9dcfc1aafd4dcf2e2a7cb0fa84677b59d7d34430
[ "Apache-2.0" ]
null
null
null
31-40/031 Next Permutation/NextPermutation.cpp
tiandaochouqin1/leetcode
9dcfc1aafd4dcf2e2a7cb0fa84677b59d7d34430
[ "Apache-2.0" ]
null
null
null
#include <vector> #include <iostream> using namespace std; class Solution{ public: vector<int> nextPermutaion(vector<int>& vec) { vector<int>::iterator v1=prev(vec.end()),v2=vec.end()-1; int tmp; for(;(v1-1)!=vec.begin()&&*(v1-1)>*v1;--v1) ; if(!(v1-1==vec.begin()&&*(v1-1)>*v1))/...
22.34375
65
0.471329
tiandaochouqin1
5a3814ccb3c24edacb36caf75c8b2da5978dc2d0
2,593
cpp
C++
src/sample/main.cpp
WilstonOreo/omnicalib
5dcea24eb68fab19860e37c272f32288cd3fce71
[ "MIT" ]
4
2017-04-14T14:15:02.000Z
2018-12-09T17:18:27.000Z
src/sample/main.cpp
cr8tr/omnicalib
5dcea24eb68fab19860e37c272f32288cd3fce71
[ "MIT" ]
null
null
null
src/sample/main.cpp
cr8tr/omnicalib
5dcea24eb68fab19860e37c272f32288cd3fce71
[ "MIT" ]
2
2019-12-05T07:36:31.000Z
2021-07-21T09:58:34.000Z
/* Copyright (c) 2014-2016 "OmniCalibration" by cr8tr * Calibration Format for Omnidome (http://omnido.me). * Created by Michael Winkelmann aka Wilston Oreo (@WilstonOreo) * * This file is part of Omnidome. * * Simplified BSD license * Copyright (c) 2016 * Redistribution and use in source and binary forms, with...
36.521127
82
0.742383
WilstonOreo
5a386f5740ac989ce7a9e93af127a3c1bf608355
2,298
cpp
C++
stacker_cpp/window_title_screen.cpp
MrCrazyID/Stacker
d232fe21f4a1d1c75905c66fed319a394f2a2ffe
[ "MIT" ]
1
2019-04-05T08:24:40.000Z
2019-04-05T08:24:40.000Z
stacker_cpp/window_title_screen.cpp
idelsink/stacker
d232fe21f4a1d1c75905c66fed319a394f2a2ffe
[ "MIT" ]
null
null
null
stacker_cpp/window_title_screen.cpp
idelsink/stacker
d232fe21f4a1d1c75905c66fed319a394f2a2ffe
[ "MIT" ]
null
null
null
/** * @file window_title_screen.cpp * @author Ingmar Delsink * @date 2 may 2014 * @brief File containing the GUI of the Title screen of Stacker. * In this file evertyhing of the title screen of Stacker in relation with the GUI * can be found. */ #include "window_title_screen.h" #include "ui_window_title_screen....
33.794118
145
0.64752
MrCrazyID
5a3f18e2602df263cdfef44befc7f0774e5ea772
1,875
cpp
C++
cpp/Letter Combinations of a Phone Number.cpp
vishnureddys/leetcode
dcec596bab8fbf99cdaab7d4ba09865e34f7a0aa
[ "MIT" ]
null
null
null
cpp/Letter Combinations of a Phone Number.cpp
vishnureddys/leetcode
dcec596bab8fbf99cdaab7d4ba09865e34f7a0aa
[ "MIT" ]
null
null
null
cpp/Letter Combinations of a Phone Number.cpp
vishnureddys/leetcode
dcec596bab8fbf99cdaab7d4ba09865e34f7a0aa
[ "MIT" ]
null
null
null
/* 17. Letter Combinations of a Phone Number Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order. A mapping of digit to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any ...
28.409091
157
0.4832
vishnureddys
5a41118cf4ff28d829327cf2daffb34b67b60520
1,155
cc
C++
Option/SequenceOption/sequenceoption.cc
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
Option/SequenceOption/sequenceoption.cc
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
Option/SequenceOption/sequenceoption.cc
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
#include "sequenceoption.hh" #include "../util/log.hh" using namespace bold; using namespace std; using namespace rapidjson; SequenceOption::SequenceOption(std::string const& id, std::initializer_list<std::shared_ptr<Option>> sequence) : Option(id, "SequenceOption"), d_sequence(sequence), d_index(-1) { if (seq...
19.913793
110
0.646753
drewnoakes
5a413f063cfd76c67eb3130bbbcdf06993fe542f
234
hpp
C++
gb++/src/Input/Input.hpp
dfrias100/gb-plus-plus
e5c48f18ab24315f1a5c70789cd3c1cae9428baf
[ "MIT" ]
null
null
null
gb++/src/Input/Input.hpp
dfrias100/gb-plus-plus
e5c48f18ab24315f1a5c70789cd3c1cae9428baf
[ "MIT" ]
null
null
null
gb++/src/Input/Input.hpp
dfrias100/gb-plus-plus
e5c48f18ab24315f1a5c70789cd3c1cae9428baf
[ "MIT" ]
null
null
null
#ifndef INPUT_HPP #define INPUT_HPP #include "../Window/Window.hpp" #include "../Memory/Memory.hpp" struct InputHandler { Window* EmuWindow; Memory* EmulatorCore; sf::Event* EventVar; bool GetInput(); }; #endif // !INPUT_HPP
13.764706
31
0.709402
dfrias100
5a42b33f0e78c19f29a0874c7d3176bc5c072f76
7,047
cpp
C++
src/caffe/sparse_blob.cpp
alemagnani/caffe
9dfd7e44a452800566260d8b6f9bc27a29a34d76
[ "BSD-2-Clause" ]
2
2015-12-02T09:51:57.000Z
2016-05-03T09:34:30.000Z
src/caffe/sparse_blob.cpp
alemagnani/caffe
9dfd7e44a452800566260d8b6f9bc27a29a34d76
[ "BSD-2-Clause" ]
null
null
null
src/caffe/sparse_blob.cpp
alemagnani/caffe
9dfd7e44a452800566260d8b6f9bc27a29a34d76
[ "BSD-2-Clause" ]
null
null
null
#include <vector> #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/sparse_blob.hpp" #include "caffe/syncedmem.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template<typename Dtype> void SparseBlob<Dtype>::Reshape(const vector<int>& shape, const int nnz) { CHECK_EQ(shape.size(...
25.440433
79
0.677877
alemagnani
5a47cdc6fcaa6cc1dce8b7a0f191b31647ade007
4,115
cpp
C++
code/server/tests/single_channel_server_test.cpp
doleron/raspberry-as-gige-camera
ac73b09f126870684e8417da4be6ebb44822a322
[ "MIT" ]
20
2021-08-29T17:54:48.000Z
2022-03-06T07:17:10.000Z
code/server/tests/single_channel_server_test.cpp
doleron/raspberry-as-gige-camera
ac73b09f126870684e8417da4be6ebb44822a322
[ "MIT" ]
null
null
null
code/server/tests/single_channel_server_test.cpp
doleron/raspberry-as-gige-camera
ac73b09f126870684e8417da4be6ebb44822a322
[ "MIT" ]
2
2021-11-28T09:51:30.000Z
2022-02-05T08:40:16.000Z
#include "gtest/gtest.h" #include "rpiasgige/single_channel_server.hpp" static const int TEST_DATA_SIZE = 3 * 1280 * 1024; class Single_Channel_ServerTest : public ::testing::Test { }; /** * This class aims to expose the protected methods in order we can test them. **/ class Single_Channel_Server_Wrapper : publi...
27.804054
125
0.685055
doleron
5a496a7a40aa589ab248ff7da3645ad270f7658a
10,471
cc
C++
elec/collectGradientTraces.cc
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
33
2018-12-12T20:05:06.000Z
2021-09-26T13:30:16.000Z
elec/collectGradientTraces.cc
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
5
2019-04-25T11:34:43.000Z
2021-11-14T04:35:37.000Z
elec/collectGradientTraces.cc
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
15
2018-12-21T22:44:59.000Z
2021-08-29T10:30:25.000Z
#include <iostream> #include <iomanip> #include <string> #include <cassert> #include <fstream> #include <sstream> #include <vector> #include <mpi.h> #include <algorithm> #include <dirent.h> #include <sys/stat.h> #include "Simulate.hh" #include "PerformanceTimers.hh" #include "checkpointIO.hh" #include "BucketOfBits.hh...
33.136076
168
0.578455
paulkefer
5a4c7af3c699568a4753d44a600eeef010fcef50
12,865
cpp
C++
V_3D_Pose/poseEstimation.cpp
balintmaci/RoVi_project
29a948aef0d7596e7ba6afab36016b494ba1132e
[ "Unlicense" ]
null
null
null
V_3D_Pose/poseEstimation.cpp
balintmaci/RoVi_project
29a948aef0d7596e7ba6afab36016b494ba1132e
[ "Unlicense" ]
null
null
null
V_3D_Pose/poseEstimation.cpp
balintmaci/RoVi_project
29a948aef0d7596e7ba6afab36016b494ba1132e
[ "Unlicense" ]
null
null
null
#include <iostream> #include <pcl/io/pcd_io.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/common/random.h> #include <pcl/common/time.h> #include <pcl/features/normal_3d.h> #include <pcl/features/spin_image.h> #include <pcl/filters/voxel_grid.h> #include <pcl/filters/statistical_outlier_remo...
30.777512
157
0.67019
balintmaci
5a4dd696a6ca44558e771ca6807aaca0efb66c52
1,108
cpp
C++
src/cpp/pal/src/NativeUtils.cpp
Matthewacon/Pal
100246048efd209c54bbb22908faa31872bf890e
[ "MIT" ]
1
2019-02-03T14:47:38.000Z
2019-02-03T14:47:38.000Z
src/cpp/pal/src/NativeUtils.cpp
Matthewacon/Pal
100246048efd209c54bbb22908faa31872bf890e
[ "MIT" ]
9
2018-07-25T21:44:47.000Z
2018-07-25T21:59:41.000Z
src/cpp/pal/src/NativeUtils.cpp
Matthewacon/Pal
100246048efd209c54bbb22908faa31872bf890e
[ "MIT" ]
null
null
null
#include <jvmti.h> #include <jni.h> #include "io_github_matthewacon_pal_util_NativeUtils.h" #include "exception_utils.h" #include "common.h" JNIEXPORT jobject JNICALL Java_io_github_matthewacon_pal_NativeUtils_getInstanceFromStack(JNIEnv *env, jclass ignored, jint depth) { JavaVM *vm; EXCEPTION_ON_JVM_ERROR( env-...
27.02439
132
0.74639
Matthewacon
5a4e842176ad36aa5adff6864bfe30a36008d7cc
895
cpp
C++
DynamicProgramming/0279-Perfect-Squares/memorySearch-150ms.cpp
FeiZhao0531/PlayLeetCode
ed23477fd6086d5139bda3d93feeabc09b06854d
[ "MIT" ]
5
2019-05-11T18:33:32.000Z
2019-12-13T09:13:02.000Z
DynamicProgramming/0279-Perfect-Squares/memorySearch-150ms.cpp
FeiZhao0531/PlayLeetCode
ed23477fd6086d5139bda3d93feeabc09b06854d
[ "MIT" ]
null
null
null
DynamicProgramming/0279-Perfect-Squares/memorySearch-150ms.cpp
FeiZhao0531/PlayLeetCode
ed23477fd6086d5139bda3d93feeabc09b06854d
[ "MIT" ]
null
null
null
/// Source : https://leetcode.com/problems/perfect-squares/description/ /// Author : Fei /// Time : Jul-18-2019 #include <iostream> #include <vector> #include <cassert> using namespace std; /// Memory Search /// Time Complexity: O(n) /// Space Complexity: O(n) class Solution { public: int numSquares(int n) { ...
19.042553
81
0.532961
FeiZhao0531
53fe19dc3524119b56a6e9f35864b9dd5d99c7a8
1,127
cpp
C++
xpcom_demo/helloxpcomImpl.cpp
ShoufuLuo/csaw
0d030d5ab93e61b62dff10b27a15c83fcfce3ff3
[ "Apache-2.0" ]
null
null
null
xpcom_demo/helloxpcomImpl.cpp
ShoufuLuo/csaw
0d030d5ab93e61b62dff10b27a15c83fcfce3ff3
[ "Apache-2.0" ]
null
null
null
xpcom_demo/helloxpcomImpl.cpp
ShoufuLuo/csaw
0d030d5ab93e61b62dff10b27a15c83fcfce3ff3
[ "Apache-2.0" ]
null
null
null
/** * Copyright (c) 2012 Stevens Institute of Technology. * * 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/LIC...
25.044444
90
0.718722
ShoufuLuo
990000fc46691106c4cd6a2cba4d1a74f4cac8d9
2,282
hpp
C++
boost/assign/v2/ref/wrapper/framework.hpp
rogard/assign_v2
8735f57177dbee57514b4e80c498dd4b89f845e5
[ "BSL-1.0" ]
null
null
null
boost/assign/v2/ref/wrapper/framework.hpp
rogard/assign_v2
8735f57177dbee57514b4e80c498dd4b89f845e5
[ "BSL-1.0" ]
null
null
null
boost/assign/v2/ref/wrapper/framework.hpp
rogard/assign_v2
8735f57177dbee57514b4e80c498dd4b89f845e5
[ "BSL-1.0" ]
null
null
null
////////////////////////////////////////////////////////////////////////////// // Boost.Assign v2 // // // // Copyright (C) 2003-2004 Thorsten Ottosen // // ...
25.640449
78
0.599912
rogard
9901e5d075ebf8df1d7cc599e4fc85142c48f3a8
5,207
cpp
C++
src/Graphics/Sprite.cpp
UltimaBGD/Ngine
f672c52ca391b32fd0f808166c8728cf4597a077
[ "Apache-2.0" ]
null
null
null
src/Graphics/Sprite.cpp
UltimaBGD/Ngine
f672c52ca391b32fd0f808166c8728cf4597a077
[ "Apache-2.0" ]
null
null
null
src/Graphics/Sprite.cpp
UltimaBGD/Ngine
f672c52ca391b32fd0f808166c8728cf4597a077
[ "Apache-2.0" ]
null
null
null
/********************************************************************************************** * * Ngine - A (mainly) 2D game engine. * * Copyright (C) 2019 NerdThings * * LICENSE: Apache License 2.0 * View: https://github.com/NerdThings/Ngine/blob/master/LICENSE * *********************************************...
30.450292
190
0.507586
UltimaBGD
99044b017e71ead8e60459362316c9c1e16d6c3a
471
cpp
C++
Leetcode/997.cpp
prameetu/CP_codes
41f8cfc188d2e08a8091bc5134247d05ba8a78f5
[ "MIT" ]
null
null
null
Leetcode/997.cpp
prameetu/CP_codes
41f8cfc188d2e08a8091bc5134247d05ba8a78f5
[ "MIT" ]
null
null
null
Leetcode/997.cpp
prameetu/CP_codes
41f8cfc188d2e08a8091bc5134247d05ba8a78f5
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; class Solution { public: int findJudge(int n, vector<vector<int>>& trust) { int judge(-1); map <int,int> mp; vector <int> v(n+1,0); for(auto x:trust) { v[x[0]]++; mp[x[1]]++; } ...
16.241379
54
0.373673
prameetu
990ff1265e7f04923792b82bbddb9ca8374574fb
3,086
cpp
C++
Source/bindings/core/v8/custom/V8HTMLCanvasElementCustom.cpp
primiano/blink-gitcs
0b5424070e3006102e0036deea1e2e263b871eaa
[ "BSD-3-Clause" ]
1
2017-08-25T05:15:52.000Z
2017-08-25T05:15:52.000Z
Source/bindings/core/v8/custom/V8HTMLCanvasElementCustom.cpp
primiano/blink-gitcs
0b5424070e3006102e0036deea1e2e263b871eaa
[ "BSD-3-Clause" ]
null
null
null
Source/bindings/core/v8/custom/V8HTMLCanvasElementCustom.cpp
primiano/blink-gitcs
0b5424070e3006102e0036deea1e2e263b871eaa
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (C) 2007-2009 Google Inc. All rights reserved. * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. 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...
44.085714
136
0.757939
primiano
99128280a791d59bfafbcd69bff76e377b5476df
1,011
cpp
C++
src/User/Command/Channel/PART.cpp
hallainea/ft_irc
389ff7c1c93e72739e373c74b69ec826535216e4
[ "Apache-2.0" ]
6
2021-12-10T18:35:26.000Z
2022-03-23T21:46:14.000Z
src/User/Command/Channel/PART.cpp
Assxios/ft_irc
389ff7c1c93e72739e373c74b69ec826535216e4
[ "Apache-2.0" ]
null
null
null
src/User/Command/Channel/PART.cpp
Assxios/ft_irc
389ff7c1c93e72739e373c74b69ec826535216e4
[ "Apache-2.0" ]
3
2021-12-19T18:11:13.000Z
2022-02-02T13:29:31.000Z
#include "../Command.hpp" #include "../../../Utils/Utils.hpp" #include "../../../Server/Server.hpp" #include "../../User.hpp" void PART(irc::Command *command) { if (command->getParameters().size() == 0) { command->reply(461, "PART"); return; } std::vector<std::string> channels = irc::split(command->getParamete...
28.083333
126
0.613254
hallainea
991adeea4419452a5a0fbf4a501e4388d985348d
871
hpp
C++
cpp-projects/tous-les-prenoms-app/widgets/list_names_m.hpp
FlorianLance/TousLesPrenoms
57e2b6b39efac924e10066f97f9a718bd069f9d6
[ "MIT" ]
null
null
null
cpp-projects/tous-les-prenoms-app/widgets/list_names_m.hpp
FlorianLance/TousLesPrenoms
57e2b6b39efac924e10066f97f9a718bd069f9d6
[ "MIT" ]
null
null
null
cpp-projects/tous-les-prenoms-app/widgets/list_names_m.hpp
FlorianLance/TousLesPrenoms
57e2b6b39efac924e10066f97f9a718bd069f9d6
[ "MIT" ]
null
null
null
#pragma once // Qt #include <QAbstractListModel> #include <QSortFilterProxyModel> // local #include "data/data.hpp" #include "data/settings.hpp" namespace tool::ui { enum class Mode { Filtered,Saved,Removed }; class ListNamesM : public QAbstractListModel{ Q_OBJECT public: ListNamesM(Mode mode); int r...
18.145833
102
0.699196
FlorianLance
991e0568a4c06ddf4755672ecd465e6485733a51
643
cpp
C++
p1478.cpp
joe1166/noi
be2e9fcd8306ff4f20a4306e219656346a396013
[ "Apache-2.0" ]
null
null
null
p1478.cpp
joe1166/noi
be2e9fcd8306ff4f20a4306e219656346a396013
[ "Apache-2.0" ]
null
null
null
p1478.cpp
joe1166/noi
be2e9fcd8306ff4f20a4306e219656346a396013
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> using namespace std; int n, s; int a, b, c; vector<int> z; int counta = 0; int main(int argc, char const *argv[]) { cin >> n >> s; int x[n], y[n]; cin >> a >> b; c = a + b; for (int i = 0; i < n; i++) { cin >> x[i] >> y[i]; ...
14.953488
38
0.390358
joe1166
991e249b45daf85440942197c94af7869971ce15
6,136
cpp
C++
examples/cpp/tcam_view/tcam_view.cpp
xiaotiansf/tiscamera
8451449788f7429621240e2bbce065d65c5ac10e
[ "Apache-2.0" ]
null
null
null
examples/cpp/tcam_view/tcam_view.cpp
xiaotiansf/tiscamera
8451449788f7429621240e2bbce065d65c5ac10e
[ "Apache-2.0" ]
null
null
null
examples/cpp/tcam_view/tcam_view.cpp
xiaotiansf/tiscamera
8451449788f7429621240e2bbce065d65c5ac10e
[ "Apache-2.0" ]
null
null
null
#include "tcam_view.h" #include "property_box.h" #include <iostream> #include <set> #include <memory> TcamView::TcamView() { builder_ = Gtk::Builder::create_from_file("tcam_view.glade"); Gtk::ApplicationWindow *window = nullptr; builder_->get_widget("MainWindow", window); Gtk::ComboBox *format_combo...
30.989899
90
0.645046
xiaotiansf
991f111953f6188c3c052b7beba8115a7724d60b
2,235
cpp
C++
Homeworks/homework009.cpp
JcsnP/My-Playground
683600bd32ee7050bbe2cfca8eaf96eb1cdf039c
[ "Unlicense" ]
2
2020-12-31T09:30:57.000Z
2021-03-15T05:04:18.000Z
Homeworks/homework009.cpp
JcsnP/My-Playground
683600bd32ee7050bbe2cfca8eaf96eb1cdf039c
[ "Unlicense" ]
null
null
null
Homeworks/homework009.cpp
JcsnP/My-Playground
683600bd32ee7050bbe2cfca8eaf96eb1cdf039c
[ "Unlicense" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef long int ll; void input(); void deposit(); void withdraw(); void show(); struct Account{ long long int accountID; int accountType; ll money = 0; ll limit = 0; }; struct Person{ int personID; char firstName[100]; char lastName[100]; struct Account account...
24.293478
77
0.612081
JcsnP
992501051e97fd41becd60a3a251b5de6cddf8eb
2,602
hpp
C++
src/RandomizedCollection.hpp
znso4/LeetCodeAnswers
232f5b2c4a66b461d336e80998e2ce4ac069f467
[ "Apache-2.0" ]
1
2020-08-24T15:47:18.000Z
2020-08-24T15:47:18.000Z
src/RandomizedCollection.hpp
znso4/LeetCodeAnswers
232f5b2c4a66b461d336e80998e2ce4ac069f467
[ "Apache-2.0" ]
null
null
null
src/RandomizedCollection.hpp
znso4/LeetCodeAnswers
232f5b2c4a66b461d336e80998e2ce4ac069f467
[ "Apache-2.0" ]
null
null
null
#include "pch.h" #pragma once using std::cout; using std::endl; template<typename ValueType = int, typename IndexType = size_t> class RandomizedCollection { std::vector<ValueType> values; std::unordered_map<ValueType, std::unordered_set<IndexType>> indices; std::mt19937 rIndex; public: /** Initialize ...
31.349398
123
0.532283
znso4
9925b4f8c0a423bf76a0ac93e97560159e81bb32
19,060
cc
C++
minisat/core/Solver.cc
mmaroti/minisat-stripped
b596823164759f401faa30244b97051e80d15816
[ "MIT" ]
null
null
null
minisat/core/Solver.cc
mmaroti/minisat-stripped
b596823164759f401faa30244b97051e80d15816
[ "MIT" ]
null
null
null
minisat/core/Solver.cc
mmaroti/minisat-stripped
b596823164759f401faa30244b97051e80d15816
[ "MIT" ]
null
null
null
/***************************************************************************************[Solver.cc] Copyright (c) 2003-2006, Niklas Een, Niklas Sorensson Copyright (c) 2007-2010, Niklas Sorensson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
32.195946
121
0.580063
mmaroti
992897b2e656c0a418b851fb3d29a3a461ad74bb
4,914
hpp
C++
include/convolution.hpp
infinitesnow/InceptionCL
e3d3a6218e551d42dfcead4f121cec294d50d85c
[ "Unlicense" ]
2
2017-10-05T13:13:41.000Z
2019-05-15T19:20:49.000Z
include/convolution.hpp
infinitesnow/InceptionCL
e3d3a6218e551d42dfcead4f121cec294d50d85c
[ "Unlicense" ]
null
null
null
include/convolution.hpp
infinitesnow/InceptionCL
e3d3a6218e551d42dfcead4f121cec294d50d85c
[ "Unlicense" ]
null
null
null
#ifndef CONVOLUTION_H #define CONVOLUTION_H #include <misc.hpp> class filter{ public: filter(); filter(Volume weights_volume, short stride, float bias) : weights_volume{weights_volume}, stride{stride}, bias{bias} { size = weights_volume.get_range().get(0); depth = weights_volume.get_ran...
31.5
104
0.640822
infinitesnow
992d3966629c3cc6f6a9d52228310ab79f85956c
15,237
cpp
C++
source/SimplexNoise.cpp
nhaflinger/Vesuvius
93db82977dae0080a7705fe2532258be54500860
[ "MIT" ]
null
null
null
source/SimplexNoise.cpp
nhaflinger/Vesuvius
93db82977dae0080a7705fe2532258be54500860
[ "MIT" ]
null
null
null
source/SimplexNoise.cpp
nhaflinger/Vesuvius
93db82977dae0080a7705fe2532258be54500860
[ "MIT" ]
null
null
null
// // SimplexNoise.cpp // // code attribution: Stefan Gustavson (from original Perlin noise by Ken Perlin) // #include "SimplexNoise.h" #include <iostream> using namespace Utilities; unsigned char perm2[] = { 151,160,137,91,90,15, 131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21...
36.021277
108
0.571504
nhaflinger
992f537c9e4a8a4c1852c34cd3cac384f0b205fa
33,733
hpp
C++
src/video/defaultfont.hpp
yocto-8/yocto-8
4911a82f399776731d3030234c731c15593f1910
[ "MIT" ]
22
2021-06-20T21:23:29.000Z
2022-03-26T01:46:10.000Z
src/video/defaultfont.hpp
yocto-8/yocto-8
4911a82f399776731d3030234c731c15593f1910
[ "MIT" ]
2
2021-09-06T12:08:32.000Z
2021-09-06T12:23:55.000Z
src/video/defaultfont.hpp
yocto-8/yocto-8
4911a82f399776731d3030234c731c15593f1910
[ "MIT" ]
1
2021-11-26T08:34:59.000Z
2021-11-26T08:34:59.000Z
#pragma once // generated with scripts/generate_font_array.py #include <array> #include <cstdint> namespace video { static constexpr std::array<std::uint8_t, 2048> pico8_builtin_font = { // glyph 0 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, // ...
13.100194
70
0.672872
yocto-8
9933502f0f7fc49e49778412dc563fe0d8b63df3
112
hh
C++
viewer/window.hh
jpanikulam/experiments
be36319a89f8baee54d7fa7618b885edb7025478
[ "MIT" ]
1
2019-04-14T11:40:28.000Z
2019-04-14T11:40:28.000Z
viewer/window.hh
IJDykeman/experiments-1
22badf166b2ea441e953939463f751020b8c251b
[ "MIT" ]
5
2018-04-18T13:54:29.000Z
2019-08-22T20:04:17.000Z
viewer/window.hh
IJDykeman/experiments-1
22badf166b2ea441e953939463f751020b8c251b
[ "MIT" ]
1
2018-12-24T03:45:47.000Z
2018-12-24T03:45:47.000Z
#pragma once #include "viewer/window_2d.hh" #include "viewer/window_3d.hh" #include "viewer/window_manager.hh"
18.666667
35
0.776786
jpanikulam
99347ce92b704738640cf9d469aa7960fe4a0206
179
hpp
C++
src/source/math/group_c/inverse_table_c.hpp
mvpwizard/DLA
5ead2574e61e619ca3a93f1e771e3988fc144928
[ "MIT" ]
1
2019-03-24T12:07:46.000Z
2019-03-24T12:07:46.000Z
src/source/math/group_c/inverse_table_c.hpp
nepitdev/DLA
5ead2574e61e619ca3a93f1e771e3988fc144928
[ "MIT" ]
10
2019-03-06T20:27:39.000Z
2019-11-27T08:28:12.000Z
src/source/math/group_c/inverse_table_c.hpp
openepit/DLA
5ead2574e61e619ca3a93f1e771e3988fc144928
[ "MIT" ]
null
null
null
#pragma once #include <cstdint> namespace dla { class inverse_table_c { private: inverse_table_c() {} public: static const uint16_t L[]; }; }
12.785714
34
0.581006
mvpwizard
9937d9d160e68e30228e1073a8082f3dc446ce0e
328
hh
C++
payload/game/ui/SectionId.hh
stblr/mkw-sp
0505b427ace12cd8258776930e4f2576d38a7b1f
[ "MIT" ]
24
2022-01-31T00:35:29.000Z
2022-03-20T17:03:04.000Z
payload/game/ui/SectionId.hh
stblr/mkw-sp
0505b427ace12cd8258776930e4f2576d38a7b1f
[ "MIT" ]
135
2022-01-31T09:24:26.000Z
2022-03-31T19:49:07.000Z
payload/game/ui/SectionId.hh
stblr/mkw-sp
0505b427ace12cd8258776930e4f2576d38a7b1f
[ "MIT" ]
13
2022-01-31T04:10:22.000Z
2022-03-26T10:06:41.000Z
#pragma once namespace UI { enum class SectionId { TimeAttack = 0x1f, GhostReplay = 0x34, TitleFromMenu = 0x41, TitleFromOptions = 0x43, MiiSelectCreate = 0x45, MiiSelectChange = 0x46, ChangeCourse = 0x4a, ChangeGhostData = 0x4d, Channel = 0x7a, Max = 0x95, }; } // names...
13.12
28
0.631098
stblr
993842e17248f74f51012f74af006d613e9d884c
288
hpp
C++
include/spmdfy/Pass/Passes/PrintCFGPass.hpp
schwarzschild-radius/spmdfy
9b5543e3446347277f15b9fe2aee3c7f8311bc78
[ "MIT" ]
6
2019-07-26T12:37:32.000Z
2021-03-13T06:18:07.000Z
include/spmdfy/Pass/Passes/PrintCFGPass.hpp
schwarzschild-radius/spmdfy
9b5543e3446347277f15b9fe2aee3c7f8311bc78
[ "MIT" ]
6
2019-06-19T06:04:01.000Z
2019-08-23T11:12:31.000Z
include/spmdfy/Pass/Passes/PrintCFGPass.hpp
schwarzschild-radius/spmdfy
9b5543e3446347277f15b9fe2aee3c7f8311bc78
[ "MIT" ]
1
2020-05-28T06:43:12.000Z
2020-05-28T06:43:12.000Z
#ifndef PRINT_CFG_PASS_HPP #define PRINT_CFG_PASS_HPP #include <spmdfy/Pass/PassHandler.hpp> namespace spmdfy { namespace pass { bool print_cfg_pass(SpmdTUTy&, clang::ASTContext&, Workspace&); PASS(print_cfg_pass, print_cfg_pass_t); } // namespace pass } // namespace spmdfy #endif
16.941176
63
0.777778
schwarzschild-radius
993b088992a94744f696eb60dbca870d98ddf590
1,249
hpp
C++
fc_malloc/mmap_alloc.hpp
r-lyeh/malloc-survey
6da5aca6aa2720d64bff709c111a5d8a5fa7a1be
[ "Zlib" ]
16
2015-06-26T20:58:23.000Z
2017-11-05T09:46:45.000Z
fc_malloc/mmap_alloc.hpp
r-lyeh/test-allocators
6da5aca6aa2720d64bff709c111a5d8a5fa7a1be
[ "Zlib" ]
1
2015-07-22T22:48:56.000Z
2015-07-22T22:48:56.000Z
fc_malloc/mmap_alloc.hpp
r-lyeh/test-allocators
6da5aca6aa2720d64bff709c111a5d8a5fa7a1be
[ "Zlib" ]
2
2015-09-26T17:40:20.000Z
2016-06-23T17:15:23.000Z
#pragma once #include <algorithm> extern "C" { #ifdef _WIN32 #include <io.h> #include "sys/mman.h" #else #include <unistd.h> #include <sys/mman.h> #endif #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <math.h> } size_t pagesize() { return ::getpagesize(); } size_t page_count( size_t s ) { ...
24.98
105
0.634107
r-lyeh
993c869fe3bee712821f8dcb3b9083235a31d009
12,512
cpp
C++
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/bluetooth/le/ScanRecord.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/bluetooth/le/ScanRecord.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/bluetooth/le/ScanRecord.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
35.344633
142
0.630115
jingcao80
993cb04616cf0637d4347b9ddc8378b59c7c5652
5,358
cpp
C++
Source/Beezer/Dialogs/InputAlert.cpp
Teknomancer/beezer
37dc9029aff5bd42bd38d01c7059ccbea4bb95a7
[ "BSD-3-Clause" ]
3
2020-08-20T18:57:52.000Z
2021-12-13T03:11:19.000Z
Source/Beezer/Dialogs/InputAlert.cpp
Teknomancer/beezer
37dc9029aff5bd42bd38d01c7059ccbea4bb95a7
[ "BSD-3-Clause" ]
22
2020-02-24T21:40:44.000Z
2021-04-18T15:07:15.000Z
Source/Beezer/Dialogs/InputAlert.cpp
Teknomancer/beezer
37dc9029aff5bd42bd38d01c7059ccbea4bb95a7
[ "BSD-3-Clause" ]
null
null
null
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2002 Ramshankar (aka Teknomancer). // Copyright (c) 2011 Chris Roberts. // All rights reserved. #include "InputAlert.h" #include "UIConstants.h" #include <Button.h> #include <TextControl.h> #include <Layout.h> #include <GroupLayout.h> #include <cassert> stat...
31.892857
121
0.650056
Teknomancer
993ce6410599fc6dacc7227753a196f9d7f7ff5a
923
cpp
C++
2056/2056.cpp
isac322/BOJ
35959dd1a63d75ebca9ed606051f7a649d5c0c7b
[ "MIT" ]
14
2017-05-02T02:00:42.000Z
2021-11-16T07:25:29.000Z
2056/2056.cpp
isac322/BOJ
35959dd1a63d75ebca9ed606051f7a649d5c0c7b
[ "MIT" ]
1
2017-12-25T14:18:14.000Z
2018-02-07T06:49:44.000Z
2056/2056.cpp
isac322/BOJ
35959dd1a63d75ebca9ed606051f7a649d5c0c7b
[ "MIT" ]
9
2016-03-03T22:06:52.000Z
2020-04-30T22:06:24.000Z
#include <stdio.h> using namespace std; bool *check; short **arr; short *last; short *times; int *nums; int n, max, tmp; int calc(int start) { int max = 0, num; check[start - 1] = true; for (int i = 0; i < last[start - 1]; i++) { check[arr[start - 1][i] - 1] = true; num = nums[arr[start - 1][i] - 1] ? nums[arr...
21.97619
92
0.503792
isac322
993e6cd8c3966620002465af09ac3c529e6664bd
3,483
cxx
C++
vtkm/filter/image_processing/ImageMedian.cxx
Kitware/vtk-m
b24a878f72b288d69c9da8c7ac33f08db6d39ba9
[ "BSD-3-Clause" ]
null
null
null
vtkm/filter/image_processing/ImageMedian.cxx
Kitware/vtk-m
b24a878f72b288d69c9da8c7ac33f08db6d39ba9
[ "BSD-3-Clause" ]
null
null
null
vtkm/filter/image_processing/ImageMedian.cxx
Kitware/vtk-m
b24a878f72b288d69c9da8c7ac33f08db6d39ba9
[ "BSD-3-Clause" ]
null
null
null
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
28.317073
93
0.6236
Kitware
993e81847162937bbdeb31644b7db843a87d977e
1,692
cpp
C++
gameboy/test/src/bit_set_reset_test.cpp
ffdd270/study_emu
985ce70e260a3a7dd5e238376a2303017f3355d9
[ "MIT" ]
9
2020-05-22T09:42:42.000Z
2022-01-06T00:51:15.000Z
gameboy/test/src/bit_set_reset_test.cpp
ffdd270/study_emu
985ce70e260a3a7dd5e238376a2303017f3355d9
[ "MIT" ]
1
2021-04-18T06:56:03.000Z
2021-04-18T06:56:03.000Z
gameboy/test/src/bit_set_reset_test.cpp
ffdd270/study_emu
985ce70e260a3a7dd5e238376a2303017f3355d9
[ "MIT" ]
3
2020-05-17T15:31:14.000Z
2022-01-06T12:18:03.000Z
#include <catch.hpp> #include "GameboyCPU.h" #include "util.h" TEST_CASE( "BIT SET RESET TEST", "[BIT SET RESET TEST]" ) { std::shared_ptr<GameboyCPU> ptr_cpu = GameboyCPU::Create(); GameboyCPU & cpu = *(ptr_cpu);; cpu.TestReset(); SECTION("BIT B, R") { SECTION("BIT 0~7, A") { callSetRegister8(cpu, Regi...
23.830986
86
0.625296
ffdd270
9945bf2de6b793670ab510518ae4e634ad41c7db
803
cpp
C++
migration/test.object.cpp
skulluglify/orion.CM
4377977df517f6e52bea3ef04b380effcc75988d
[ "BSD-3-Clause" ]
null
null
null
migration/test.object.cpp
skulluglify/orion.CM
4377977df517f6e52bea3ef04b380effcc75988d
[ "BSD-3-Clause" ]
null
null
null
migration/test.object.cpp
skulluglify/orion.CM
4377977df517f6e52bea3ef04b380effcc75988d
[ "BSD-3-Clause" ]
null
null
null
#include<iostream> #include"include/orion/core.h" int main(const int argc, const char** argv) noexcept { (void)argc; (void)argv; typedef Ex::Dict<std::string> Dict; Dict obj; LOG((obj["name"])) obj["name"] = "ahmad asy syafiq"; LOG((obj["name"])) obj["name"] = "udin"; LOG((o...
16.387755
54
0.495641
skulluglify
9945e6a3d231067235252f98ffb3155157778de3
3,181
cpp
C++
ace/tao/tao_idl/be/be_visitor_operation/inv_arglist.cpp
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
1b0172cdb78757fd17898503aaf6ce03d940ef28
[ "Apache-1.1" ]
46
2015-12-04T17:12:58.000Z
2022-03-11T04:30:49.000Z
ace/tao/tao_idl/be/be_visitor_operation/inv_arglist.cpp
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
1b0172cdb78757fd17898503aaf6ce03d940ef28
[ "Apache-1.1" ]
null
null
null
ace/tao/tao_idl/be/be_visitor_operation/inv_arglist.cpp
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
1b0172cdb78757fd17898503aaf6ce03d940ef28
[ "Apache-1.1" ]
23
2016-10-24T09:18:14.000Z
2022-02-25T02:11:35.000Z
// inv_arglist.cpp,v 1.1 2000/11/20 02:15:05 corsaro Exp #include "idl.h" #include "idl_extern.h" #include "be.h" #include "be_visitor_operation.h" ACE_RCSID(be_visitor_operation, inv_arglist, "inv_arglist.cpp,v 1.1 2000/11/20 02:15:05 corsaro Exp") be_visitor_operation_inv_arglist:...
30.586538
102
0.563659
tharindusathis
994769ae6dcf1e3635b8561c4511a6fa202374c0
2,501
cpp
C++
JotaZ80/instructions/exchange.cpp
jotacoder/JotaMasterSystem
96985770969ec5971da2999513679fdb43cd01b7
[ "MIT" ]
1
2018-05-12T11:58:22.000Z
2018-05-12T11:58:22.000Z
JotaZ80/instructions/exchange.cpp
jotacoder/JotaMasterSystem
96985770969ec5971da2999513679fdb43cd01b7
[ "MIT" ]
null
null
null
JotaZ80/instructions/exchange.cpp
jotacoder/JotaMasterSystem
96985770969ec5971da2999513679fdb43cd01b7
[ "MIT" ]
3
2017-10-13T02:41:20.000Z
2019-02-07T20:21:26.000Z
/** JotaMasterSystem: A Master System Emulator * Copyright (c) Juan José Chica <jotacoder@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including with...
26.606383
80
0.703319
jotacoder
99483076009e5bb0f85eaedcbee7e59638d8be20
6,420
cpp
C++
src/optick_capi.cpp
Honeybunch/optick
98679acad976fba57f4d4231cabd4800d4e1caa5
[ "MIT" ]
2
2020-07-21T13:22:30.000Z
2020-07-21T21:14:42.000Z
src/optick_capi.cpp
Honeybunch/optick
98679acad976fba57f4d4231cabd4800d4e1caa5
[ "MIT" ]
null
null
null
src/optick_capi.cpp
Honeybunch/optick
98679acad976fba57f4d4231cabd4800d4e1caa5
[ "MIT" ]
null
null
null
// The MIT License(MIT) // // Copyright(c) 2019 Vadim Slyusarev // // 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 ...
36.067416
208
0.773209
Honeybunch
9950ded20e6a5a8f707b06287373001fe907a982
2,685
cpp
C++
gameplay/src/ProgressBar.cpp
reven86/GamePlay
7e543734b86d42a40d36ffc95e4a4b5fed678056
[ "Apache-2.0" ]
7
2017-02-08T20:17:19.000Z
2020-12-26T03:11:37.000Z
gameplay/src/ProgressBar.cpp
reven86/GamePlay
7e543734b86d42a40d36ffc95e4a4b5fed678056
[ "Apache-2.0" ]
null
null
null
gameplay/src/ProgressBar.cpp
reven86/GamePlay
7e543734b86d42a40d36ffc95e4a4b5fed678056
[ "Apache-2.0" ]
2
2016-01-25T17:58:44.000Z
2016-08-30T15:37:34.000Z
#include "ProgressBar.h" namespace gameplay { ProgressBar::ProgressBar() : _value(0.0f), _trackImage(NULL), _orientation( ORIENTATION_HORIZONTAL ) { } ProgressBar::~ProgressBar() { } ProgressBar* ProgressBar::create(const char* id, Theme::Style* style) { GP_ASSERT(style); ProgressBar* progressBar = new Pro...
25.817308
145
0.685289
reven86
9951df34f41f35f5ea2baf508f947688c193389f
28,729
cpp
C++
DateTime.cpp
malord/prime
f0e8be99b7dcd482708b9c928322bc07a3128506
[ "MIT" ]
null
null
null
DateTime.cpp
malord/prime
f0e8be99b7dcd482708b9c928322bc07a3128506
[ "MIT" ]
null
null
null
DateTime.cpp
malord/prime
f0e8be99b7dcd482708b9c928322bc07a3128506
[ "MIT" ]
null
null
null
// Copyright 2000-2021 Mark H. P. Lord #include "DateTime.h" #include "Clocks.h" #include "NumberParsing.h" #include "NumberUtils.h" #include "StringUtils.h" namespace Prime { // // Date // const char* Date::shortMonthNames[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"...
25.975588
175
0.549654
malord
99538e566fe1bec1349450f3606ea07efc08ed62
289
hpp
C++
include/display.hpp
ImanolFotia/Gameboy-Emulator
09f0a7a2a487b749f231d0f90f7128ba2940ff26
[ "MIT" ]
1
2020-10-01T00:22:19.000Z
2020-10-01T00:22:19.000Z
include/display.hpp
ImanolFotia/Gameboy-Emulator
09f0a7a2a487b749f231d0f90f7128ba2940ff26
[ "MIT" ]
null
null
null
include/display.hpp
ImanolFotia/Gameboy-Emulator
09f0a7a2a487b749f231d0f90f7128ba2940ff26
[ "MIT" ]
null
null
null
#pragma once #include "types.hpp" #define TILE_SIZE 8 #define NUM_TILES 32 #define MAX_PIXELS 256 #define LCDC_TILE_DATA_TABLE_BEGIN 0x8000 #define LCDC_TILE_DATA_TABLE_END 0x8FFF #define NO_LCDC_TILE_DATA_TABLE_BEGIN 0x8800 #define NO_LCDC_TILE_DATA_TABLE_END 0x97FF class display {};
20.642857
44
0.84083
ImanolFotia
995ae1e5bd6f10f45f0788991011936c8e01578a
1,164
cpp
C++
core/ilwisobjects/domain/domainhelper.cpp
ridoo/IlwisCore
9d9837507d804a4643545a03fd40d9b4d0eaee45
[ "Apache-2.0" ]
null
null
null
core/ilwisobjects/domain/domainhelper.cpp
ridoo/IlwisCore
9d9837507d804a4643545a03fd40d9b4d0eaee45
[ "Apache-2.0" ]
null
null
null
core/ilwisobjects/domain/domainhelper.cpp
ridoo/IlwisCore
9d9837507d804a4643545a03fd40d9b4d0eaee45
[ "Apache-2.0" ]
null
null
null
#include "kernel.h" #include "ilwisdata.h" #include "range.h" #include "domain.h" #include "itemrange.h" #include "domainitem.h" #include "itemdomain.h" #include "identifieritem.h" #include "thematicitem.h" #include "numericdomain.h" #include "numericrange.h" #include "juliantime.h" #include "domainhelper.h" using nam...
24.25
102
0.713058
ridoo
995b1d9463e114cac4b378503ff63f05015032f2
2,281
cc
C++
chrome/browser/signin/screenlock_bridge.cc
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-01-25T10:18:18.000Z
2021-01-23T15:29:56.000Z
chrome/browser/signin/screenlock_bridge.cc
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
chrome/browser/signin/screenlock_bridge.cc
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:13.000Z
2020-11-04T07:24:13.000Z
// Copyright 2014 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 "chrome/browser/signin/screenlock_bridge.h" #include "base/logging.h" #include "chrome/browser/profiles/profile_window.h" #include "chrome/brows...
28.873418
75
0.781236
justremotephone
995cb819f9650390e827cf2c6d5247dccb33c0f9
2,972
cpp
C++
examples/example_3_lvgl/ssd1306_lvgl_port.cpp
vznncv/ssd1306-driver
d304710223db65af5440711e68ec42d669447fff
[ "MIT" ]
1
2022-02-17T20:24:01.000Z
2022-02-17T20:24:01.000Z
examples/example_3_lvgl/ssd1306_lvgl_port.cpp
vznncv/ssd1306-driver
d304710223db65af5440711e68ec42d669447fff
[ "MIT" ]
null
null
null
examples/example_3_lvgl/ssd1306_lvgl_port.cpp
vznncv/ssd1306-driver
d304710223db65af5440711e68ec42d669447fff
[ "MIT" ]
null
null
null
#include <cstring> #include "mbed.h" #include "ssd1306_lvgl_port.h" using ssd1306driver::SSD1306DisplayDriver; // // Common LVGL initialization functions // static bool lvgl_is_initialized = false; int app_lvgl_init() { if (lvgl_is_initialized) { return 0; } lv_init(); lvgl_is_initialized =...
23.03876
114
0.675303
vznncv
996255f03c8303877844541119c03578b7053253
5,767
hpp
C++
gucoordinates/ctests/gucoordinates_tests.hpp
mipalgu/gucoordinates
d1a6d623a63acd9f039f6274dfd2907c7368d255
[ "BSD-4-Clause" ]
null
null
null
gucoordinates/ctests/gucoordinates_tests.hpp
mipalgu/gucoordinates
d1a6d623a63acd9f039f6274dfd2907c7368d255
[ "BSD-4-Clause" ]
null
null
null
gucoordinates/ctests/gucoordinates_tests.hpp
mipalgu/gucoordinates
d1a6d623a63acd9f039f6274dfd2907c7368d255
[ "BSD-4-Clause" ]
null
null
null
/* * gucoordinates_tests.hpp * ctests * * Created by Callum McColl on 23/06/2020. * Copyright © 2020 Callum McColl. 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. Redistributi...
41.192857
163
0.708687
mipalgu
99652bc4c2065d1c715ebe2f2dd84432a4d7d23d
2,385
hpp
C++
include/codegen/include/GlobalNamespace/HTTPLeaderboardsModel_--c.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/GlobalNamespace/HTTPLeaderboardsModel_--c.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/GlobalNamespace/HTTPLeaderboardsModel_--c.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: HTTPLeaderboardsModel #include "GlobalNamespace/HTTPLea...
45
113
0.72956
Futuremappermydud
9965341215d1a466617d5fa49a1f9cc9cd8e75e7
562
cpp
C++
implementation/others/qsort.cpp
Layomiiety/Algorithmic-thinking
fc280717db051a26d19a583f3206402215d05c0a
[ "CC0-1.0" ]
null
null
null
implementation/others/qsort.cpp
Layomiiety/Algorithmic-thinking
fc280717db051a26d19a583f3206402215d05c0a
[ "CC0-1.0" ]
null
null
null
implementation/others/qsort.cpp
Layomiiety/Algorithmic-thinking
fc280717db051a26d19a583f3206402215d05c0a
[ "CC0-1.0" ]
null
null
null
#include<bits/stdc++.h> using namespace std; #define ll long long #define arr array int n,l,r,a[100010]; void qsort(int l,int r){ int mid=a[(l+r)/2]; int i=l,j=r; do{ while(a[i]<mid) i++; while(a[j]>mid) j--; if (i<=j) { swap(a[i],a[j]); i++; j--; ...
20.071429
45
0.435943
Layomiiety
9968a54a493b177695afd96d9d729a7db67ccc5b
282
cpp
C++
test/common.cpp
andrew-murray/cpp-metrics
9d126227b825c561fab5db79b01f267bd0ea9412
[ "Apache-2.0" ]
1
2018-07-31T00:49:23.000Z
2018-07-31T00:49:23.000Z
test/common.cpp
andrew-murray/cpp-metrics
9d126227b825c561fab5db79b01f267bd0ea9412
[ "Apache-2.0" ]
null
null
null
test/common.cpp
andrew-murray/cpp-metrics
9d126227b825c561fab5db79b01f267bd0ea9412
[ "Apache-2.0" ]
null
null
null
#include "common.hpp" namespace mock { static std::atomic<int> g_time; mock::clock::time_point clock::now() { return time_point(duration((int)g_time)); } void clock::set_time(const int& val) { g_time = val; } int clock::time(){ return (int)g_time; } }
15.666667
47
0.62766
andrew-murray
996b5db388a795d6ac4ca4d4754783762cdf15e9
1,292
cpp
C++
MasterSimulatorUI/src/MSIMPreferencesPageGeneral.cpp
ghorwin/MasterSim
281b71e228435ca8fa02319bf2ce86b66b8b2b45
[ "BSD-3-Clause" ]
5
2021-11-17T07:12:54.000Z
2022-03-16T15:06:39.000Z
MasterSimulatorUI/src/MSIMPreferencesPageGeneral.cpp
ghorwin/MasterSim
281b71e228435ca8fa02319bf2ce86b66b8b2b45
[ "BSD-3-Clause" ]
25
2021-09-09T07:39:13.000Z
2022-01-23T13:00:19.000Z
MasterSimulatorUI/src/MSIMPreferencesPageGeneral.cpp
ghorwin/MasterSim
281b71e228435ca8fa02319bf2ce86b66b8b2b45
[ "BSD-3-Clause" ]
null
null
null
#include "MSIMPreferencesPageGeneral.h" #include "ui_MSIMPreferencesPageGeneral.h" #include "MSIMSettings.h" MSIMPreferencesPageGeneral::MSIMPreferencesPageGeneral(QWidget *parent) : QWidget(parent), m_ui(new Ui::MSIMPreferencesPageGeneral) { m_ui->setupUi(this); #ifdef Q_OS_WIN m_ui->filepathTextEditor->setup("...
26.367347
107
0.76161
ghorwin
996d38340265617f6dfe50330ebb40fb55e61e91
678
cpp
C++
third_party/skia_m63/src/core/SkFontStyle.cpp
kniefliu/WindowsSamples
c841268ef4a0f1c6f89b8e95bf68058ea2548394
[ "MIT" ]
4
2019-10-18T05:53:30.000Z
2021-08-21T07:36:37.000Z
third_party/skia_m63/src/core/SkFontStyle.cpp
kniefliu/WindowsSamples
c841268ef4a0f1c6f89b8e95bf68058ea2548394
[ "MIT" ]
2
2019-03-14T10:26:45.000Z
2021-08-06T01:24:06.000Z
third_party/skia_m63/src/core/SkFontStyle.cpp
kniefliu/WindowsSamples
c841268ef4a0f1c6f89b8e95bf68058ea2548394
[ "MIT" ]
4
2018-10-14T00:17:11.000Z
2020-07-01T04:01:25.000Z
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkFontStyle.h" #include "SkTypeface.h" #include "SkTypes.h" /*static*/SkFontStyle SkFontStyle::FromOldStyle(unsigned oldStyle) { return SkFontStyle((oldStyle & ...
35.684211
87
0.579646
kniefliu
99752e42c7d604d633fc229f0237347974c4984e
47
hpp
C++
src/boost_math_tools_polynomial_gcd.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_math_tools_polynomial_gcd.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_math_tools_polynomial_gcd.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/math/tools/polynomial_gcd.hpp>
23.5
46
0.808511
miathedev
9976f87e901f7327ffdbfb72a3a22cd7c02b616d
2,150
cpp
C++
WarbandLib/network_server.cpp
Swyter/wse
3ad901f1a463139b320c30ea08bdc343358ea6b6
[ "WTFPL" ]
null
null
null
WarbandLib/network_server.cpp
Swyter/wse
3ad901f1a463139b320c30ea08bdc343358ea6b6
[ "WTFPL" ]
null
null
null
WarbandLib/network_server.cpp
Swyter/wse
3ad901f1a463139b320c30ea08bdc343358ea6b6
[ "WTFPL" ]
null
null
null
#include "network_server.h" #include "warband.h" using namespace wb; void network_server::broadcast_event(const multiplayer_event &evt) { wb::network_player *players = warband->multiplayer_data.players; for (int i = 1; i < NUM_NETWORK_PLAYERS; ++i) { players[i].send_event(evt); } } void netwo...
37.719298
174
0.72186
Swyter
99798a22dc2f17454df6cd21be710eae8e151ed9
4,429
cpp
C++
src/analysis/processing/qgsalgorithmdifference.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
src/analysis/processing/qgsalgorithmdifference.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
src/analysis/processing/qgsalgorithmdifference.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
/*************************************************************************** qgsalgorithmdifference.cpp --------------------- Date : April 2018 Copyright : (C) 2018 by Martin Dobias Email : wonder dot sk at gmail dot com **********************************************...
39.544643
168
0.648228
dyna-mis
9979e4f09cf7b3e90e287d719b6b3af7ec937e9f
24,053
cpp
C++
Source/RobCoG/Utilities/HandInformationParser.cpp
yukilikespie/RobCoG_FleX-4.16
a6d1e8c0abb8ac1e36c5967cb886de8c154b2948
[ "BSD-3-Clause" ]
null
null
null
Source/RobCoG/Utilities/HandInformationParser.cpp
yukilikespie/RobCoG_FleX-4.16
a6d1e8c0abb8ac1e36c5967cb886de8c154b2948
[ "BSD-3-Clause" ]
null
null
null
Source/RobCoG/Utilities/HandInformationParser.cpp
yukilikespie/RobCoG_FleX-4.16
a6d1e8c0abb8ac1e36c5967cb886de8c154b2948
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2017, Institute for Artificial Intelligence - University of Bremen #include "HandInformationParser.h" #include "Paths.h" #include "ConfigCacheIni.h" HandInformationParser::HandInformationParser() { ConfigFileHandler = MakeShareable(new FConfigCacheIni(EConfigCacheType::DiskBacked)); } HandInformationPa...
94.32549
216
0.85374
yukilikespie
997b1c96d92b354ce0da6b7010c16a170937ab6d
1,664
cpp
C++
Arrays Questions/20 Array questions.cpp
Benson1198/CPP
b12494becadc9431303cfdb51c5134dc68c679c3
[ "MIT" ]
null
null
null
Arrays Questions/20 Array questions.cpp
Benson1198/CPP
b12494becadc9431303cfdb51c5134dc68c679c3
[ "MIT" ]
null
null
null
Arrays Questions/20 Array questions.cpp
Benson1198/CPP
b12494becadc9431303cfdb51c5134dc68c679c3
[ "MIT" ]
1
2020-10-06T09:17:33.000Z
2020-10-06T09:17:33.000Z
// How do you find the missing number in a given integer array of 1 to 100? (solution) // How do you find the duplicate number on a given integer array? (solution) // How do you find the largest and smallest number in an unsorted integer array? (solution) // How do you find all pairs of an integer array whose sum is...
42.666667
145
0.748798
Benson1198
997d423ab9efb82afaaae0ef779bebfb4cdbd0ae
547
cpp
C++
Mathematical Algorithms/Extended Euclidean Algorithm.cpp
praharshjain/Algorithms
ea63a2654453f129076ee7d0041f6af3046e4dfc
[ "MIT" ]
null
null
null
Mathematical Algorithms/Extended Euclidean Algorithm.cpp
praharshjain/Algorithms
ea63a2654453f129076ee7d0041f6af3046e4dfc
[ "MIT" ]
null
null
null
Mathematical Algorithms/Extended Euclidean Algorithm.cpp
praharshjain/Algorithms
ea63a2654453f129076ee7d0041f6af3046e4dfc
[ "MIT" ]
2
2020-11-28T05:59:16.000Z
2021-03-26T14:10:58.000Z
#include <iostream> using namespace std; //Extended Euclidean Algorithm long long gcdExtended(long long a, long long b, long long *x, long long *y) { // Base Case if (a == 0) { *x = 0; *y = 1; return b; } long long x1, y1, gcd = gcdExtended(b % a, a, &x1, &y1); *x = y1 - ...
23.782609
86
0.453382
praharshjain
5f5304849b74db15b5b91796be5900e4447932f0
658
cpp
C++
acmicpc/1431.cpp
juseongkr/BOJ
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
7
2020-02-03T10:00:19.000Z
2021-11-16T11:03:57.000Z
acmicpc/1431.cpp
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2021-01-03T06:58:24.000Z
2021-01-03T06:58:24.000Z
acmicpc/1431.cpp
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2020-01-22T14:34:03.000Z
2020-01-22T14:34:03.000Z
#include <iostream> #include <algorithm> #include <vector> using namespace std; bool func(string a, string b) { if (a.length() != b.length()) { return a.length() < b.length(); } else { int s1 = 0, s2 = 0; for (int i=0; i<a.length(); ++i) { if (1 <= a[i]-'0' && a[i]-'0' <= 9) s1 += (a[i]-'0'); if (1 <...
15.302326
38
0.475684
juseongkr
5f57ef1620d375b04f7aebd6ce4aed7d9f7e9125
1,231
cpp
C++
DSU/src/main.cpp
IKholopov/StudyingStuff
8e5d9b98431fcc439d246d499963c33c729d5474
[ "MIT" ]
null
null
null
DSU/src/main.cpp
IKholopov/StudyingStuff
8e5d9b98431fcc439d246d499963c33c729d5474
[ "MIT" ]
null
null
null
DSU/src/main.cpp
IKholopov/StudyingStuff
8e5d9b98431fcc439d246d499963c33c729d5474
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <stdlib.h> #include "DSU.h" void TestAll() { std::cout << "Test started" << std::endl; int amount = 100000; int tests = 100000; DSU d(amount); for(int i = 0; i < tests; ++i) { if(rand() % 2 == 0) d.Merge(rand() % (i + 1), rand(...
19.854839
80
0.392364
IKholopov
5f58e49027b4e2d3bd8514243b9c1f0865b6ea63
1,080
cpp
C++
src/auto.cpp
Discobots-1104A/2021-2022-branch-sample
0941e1e52d4d129fe0c91c8fe376589e03289e00
[ "MIT" ]
1
2021-09-25T23:51:15.000Z
2021-09-25T23:51:15.000Z
src/auto.cpp
Discobots-1104A/2021-2022-branch-sample
0941e1e52d4d129fe0c91c8fe376589e03289e00
[ "MIT" ]
4
2021-11-13T23:49:49.000Z
2022-01-22T21:26:28.000Z
src/auto.cpp
Discobots-1104A/2021-2022-kidney-failure
0941e1e52d4d129fe0c91c8fe376589e03289e00
[ "MIT" ]
null
null
null
//* auto code //* headers #include "autos/autonomous.h" #include "gui/guiGlobals.h" #include "main.h" namespace Autonomous { e_autonomousSelection autonomousSelection = e_autonomousSelection::E_NONE; int autonomousSelectionConfirmation = 0; } // namespace Autonomous //* auto callback void autonomous() { GUI::auton...
30
80
0.734259
Discobots-1104A
5f58f6319f9f91408aff850f04a7c1d7b4791231
320
cc
C++
uvpp/src/check.cc
Qard/river.js
62cebbfa61cef96d241487e8c35d46211d0a68b8
[ "MIT" ]
3
2018-04-06T08:58:55.000Z
2018-04-15T20:48:43.000Z
uvpp/src/check.cc
Qard/river.js
62cebbfa61cef96d241487e8c35d46211d0a68b8
[ "MIT" ]
6
2018-04-13T04:50:08.000Z
2018-04-13T05:06:22.000Z
uvpp/src/check.cc
Qard/river.js
62cebbfa61cef96d241487e8c35d46211d0a68b8
[ "MIT" ]
null
null
null
#include "check.hh" Check::Check(uv_loop_t* loop) { uv_check_init(loop, this); } Check::~Check() { if (!this->is_closing()) { this->close([](uv_handle_t* handle){}); } } int Check::start(uv_check_cb callback) { return uv_check_start(this, callback); } int Check::stop() { return uv_check_stop(this); }
16
43
0.653125
Qard
5f5a15fcbeb04302fd820478cdb9cac9f4d5b45f
320
cpp
C++
competitive_programming/programming_contests/uri/our_days_are_never_coming_back.cpp
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
205
2018-12-01T17:49:49.000Z
2021-12-22T07:02:27.000Z
competitive_programming/programming_contests/uri/our_days_are_never_coming_back.cpp
LeandroTk/Algorithms
569ed68eba3eeff902f8078992099c28ce4d7cd6
[ "MIT" ]
2
2020-01-01T16:34:29.000Z
2020-04-26T19:11:13.000Z
competitive_programming/programming_contests/uri/our_days_are_never_coming_back.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/1864 #include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; string text = "LIFE IS NOT A PROBLEM TO BE SOLVED"; string final = ""; for (int i = 0; i < n; i++) final += text[i]; cout << final << endl; return 0; }
15.238095
64
0.621875
LeandroTk
5f6274eec54512c22e45e3814eb428855068dbd3
2,392
hpp
C++
include/Agate/Util/ModelData.hpp
dfnzhc/CGT
eab79c203c8ce24bfa738c593bd2665bed387d63
[ "MIT" ]
null
null
null
include/Agate/Util/ModelData.hpp
dfnzhc/CGT
eab79c203c8ce24bfa738c593bd2665bed387d63
[ "MIT" ]
null
null
null
include/Agate/Util/ModelData.hpp
dfnzhc/CGT
eab79c203c8ce24bfa738c593bd2665bed387d63
[ "MIT" ]
null
null
null
// // Created by 秋鱼 on 2022/4/28. // #pragma once #include <Agate/Shader/Matrix.h> #include <Agate/Shader/CudaBufferView.hpp> #include <optix_types.h> #include <Agate/Shader/Material.hpp> #include "AABB.hpp" #include "Camera.hpp" namespace Agate { struct MeshData { std::string name; Matrix4x4 transform; ...
27.813953
100
0.701087
dfnzhc
5f666bcdf274820fb1d811c3a886823e9d2d224c
1,082
cpp
C++
Binary Trees/height-of-binary-tree.cpp
ComputerScientist-01/100-Days-Of-DSA
28942615a88c12382ca0b1580f5da393f957d584
[ "MIT" ]
4
2021-06-22T15:24:54.000Z
2021-08-05T02:53:34.000Z
Binary Trees/height-of-binary-tree.cpp
AdityaPrakash-26/100-Days-Of-DSA
821a26b128db3f9b555d87fab6d89d76fae22119
[ "MIT" ]
null
null
null
Binary Trees/height-of-binary-tree.cpp
AdityaPrakash-26/100-Days-Of-DSA
821a26b128db3f9b555d87fab6d89d76fae22119
[ "MIT" ]
1
2021-07-11T09:42:03.000Z
2021-07-11T09:42:03.000Z
#include "bits/stdc++.h" using namespace std; struct Node { int data; struct Node *left; struct Node *right; Node(int val) { data = val; left = NULL; right = NULL; } }; int sumNodes(Node *root) { if (root == NULL) { return 0; } return sumNodes(...
17.737705
75
0.547135
ComputerScientist-01
5f66afb90590009dceed6d48193a54849256c70b
7,461
hpp
C++
zeccup/zeccup/military/woodland/fuel.hpp
LISTINGS09/ZECCUP
e0ad1fae580dde6e5d90903b1295fecc41684f63
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2016-08-29T09:23:49.000Z
2019-06-13T20:29:28.000Z
zeccup/zeccup/military/woodland/fuel.hpp
LISTINGS09/ZECCUP
e0ad1fae580dde6e5d90903b1295fecc41684f63
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
zeccup/zeccup/military/woodland/fuel.hpp
LISTINGS09/ZECCUP
e0ad1fae580dde6e5d90903b1295fecc41684f63
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
class FuelLarge { name = $STR_ZECCUP_FuelLarge; }; class FuelMedium { name = $STR_ZECCUP_FuelMedium; // EAST class FuelDump_CUP_O_RU { name = $STR_ZECCUP_MilitaryWoodland_FuelMedium_FuelDump_CUP_O_RU; // Credit: 2600K icon = "\ca\data\flag_rus_co.paa"; side = 8; class O...
86.755814
129
0.615869
LISTINGS09
5f67e6b8df33f644ed36fb18f42f8f54488ad3db
1,033
cpp
C++
Engine/Lang/AST/Nodes/ASTNodeScope.cpp
GabyForceQ/PolluxEngine
2dbc84ed1d434f1b6d794f775f315758f0e8cc49
[ "BSD-3-Clause" ]
3
2020-05-19T20:24:28.000Z
2020-09-27T11:28:42.000Z
Engine/Lang/AST/Nodes/ASTNodeScope.cpp
GabyForceQ/PolluxEngine
2dbc84ed1d434f1b6d794f775f315758f0e8cc49
[ "BSD-3-Clause" ]
31
2020-05-27T11:01:27.000Z
2020-08-08T15:53:23.000Z
Engine/Lang/AST/Nodes/ASTNodeScope.cpp
GabyForceQ/PolluxEngine
2dbc84ed1d434f1b6d794f775f315758f0e8cc49
[ "BSD-3-Clause" ]
null
null
null
/***************************************************************************************************************************** * Copyright 2020 Gabriel Gheorghe. All rights reserved. * This code is licensed under the BSD 3-Clause "New" or "Revised" License * License url: https://github.com/GabyForceQ/PolluxEngine/bl...
30.382353
127
0.56728
GabyForceQ
5f681577402a52968a8b8c4c300a738780f0a272
10,717
cpp
C++
media_softlet/agnostic/common/codec/hal/codechal_oca_debug.cpp
LhGu/media-driver
e73c1d9a6cb8ff0c619766174cf618863520bf46
[ "Intel", "BSD-3-Clause", "MIT" ]
null
null
null
media_softlet/agnostic/common/codec/hal/codechal_oca_debug.cpp
LhGu/media-driver
e73c1d9a6cb8ff0c619766174cf618863520bf46
[ "Intel", "BSD-3-Clause", "MIT" ]
null
null
null
media_softlet/agnostic/common/codec/hal/codechal_oca_debug.cpp
LhGu/media-driver
e73c1d9a6cb8ff0c619766174cf618863520bf46
[ "Intel", "BSD-3-Clause", "MIT" ]
null
null
null
/* * Copyright (c) 2022, Intel Corporation * * 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, publis...
49.615741
183
0.678082
LhGu
5f692d1d70c81335bb7770cc0f571bda435fa130
213
cpp
C++
tutorials/learncpp.com#1.0#1/cpp_basics/comments/source10.cpp
officialrafsan/CppDroid
5fb2cc7750fea53b1ea6ff47b5094da6e95e9224
[ "MIT" ]
null
null
null
tutorials/learncpp.com#1.0#1/cpp_basics/comments/source10.cpp
officialrafsan/CppDroid
5fb2cc7750fea53b1ea6ff47b5094da6e95e9224
[ "MIT" ]
null
null
null
tutorials/learncpp.com#1.0#1/cpp_basics/comments/source10.cpp
officialrafsan/CppDroid
5fb2cc7750fea53b1ea6ff47b5094da6e95e9224
[ "MIT" ]
null
null
null
/* To calculate the final grade, we sum all the weighted midterm and homework scores and then divide by the number of scores to assign a percentage. This percentage is used to calculate a letter grade. */
71
87
0.755869
officialrafsan
5f69d4ccb72cd1bb147e4f1b64a009f97aa89104
4,707
cpp
C++
firmware/examples/RGBLED-Draw/RGBStrip.cpp
brunolewin/virtual-shields-spark
fc5c8fa9cc3a1135229db707b566b0da5f345f0d
[ "MIT" ]
98
2015-05-01T16:57:54.000Z
2021-02-22T17:19:11.000Z
firmware/examples/RGBLED-Draw/RGBStrip.cpp
brunolewin/virtual-shields-spark
fc5c8fa9cc3a1135229db707b566b0da5f345f0d
[ "MIT" ]
30
2015-05-18T09:58:39.000Z
2018-09-13T17:42:23.000Z
firmware/examples/RGBLED-Draw/RGBStrip.cpp
brunolewin/virtual-shields-spark
fc5c8fa9cc3a1135229db707b566b0da5f345f0d
[ "MIT" ]
64
2015-04-30T22:56:14.000Z
2021-04-18T08:43:15.000Z
/* Copyright(c) Microsoft Open Technologies, Inc. All rights reserved. The MIT License(MIT) 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 witho...
23.30198
81
0.616741
brunolewin
5f6c278429834b5710f6b20bb4c11eaff3e9453b
5,425
cpp
C++
book/Convertor/src/TagTest.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
8
2017-12-21T07:00:16.000Z
2020-04-02T09:05:55.000Z
book/Convertor/src/TagTest.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
null
null
null
book/Convertor/src/TagTest.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
1
2020-03-30T09:54:18.000Z
2020-03-30T09:54:18.000Z
/* TagTest.cpp */ //---------------------------------------------------------------------------------------- // // Project: Book Convertor 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) 2018 ...
15.544413
90
0.627097
SergeyStrukov
5f6fe22fb0174d8e6dc13e32c7f883b09dac7155
3,352
cpp
C++
powerberry-dsp/src/adc/adc_dummy.cpp
Steckdoose4711/powerberry
15c722ff66f0db5c00ddfb71ccc2c75d69b78d39
[ "MIT" ]
null
null
null
powerberry-dsp/src/adc/adc_dummy.cpp
Steckdoose4711/powerberry
15c722ff66f0db5c00ddfb71ccc2c75d69b78d39
[ "MIT" ]
20
2022-03-11T19:44:31.000Z
2022-03-21T19:13:46.000Z
powerberry-dsp/src/adc/adc_dummy.cpp
Steckdoose4711/powerberry
15c722ff66f0db5c00ddfb71ccc2c75d69b78d39
[ "MIT" ]
null
null
null
/** * @file adc_dummy.h * @author Florian Atzenhofer * @date 30.20.2021 * @brief Module to generate ADC Dummy Values [Implementation] * * This module generates an ideal sinewave and returns it's values */ #include "adc_dummy.h" #include <math.h> #include <iostream> #include <stdlib.h> static size_t nr_samp...
32.543689
111
0.680788
Steckdoose4711
5f703b06ecacf331251ed1c38548bd2eeb9d1322
2,126
cpp
C++
src/http_router.cpp
jonathonl/IPSuite
76dfd7913388851c6714645252b2caa3c5596dcc
[ "MIT" ]
1
2016-03-01T15:23:13.000Z
2016-03-01T15:23:13.000Z
src/http_router.cpp
jonathonl/IPSuite
76dfd7913388851c6714645252b2caa3c5596dcc
[ "MIT" ]
null
null
null
src/http_router.cpp
jonathonl/IPSuite
76dfd7913388851c6714645252b2caa3c5596dcc
[ "MIT" ]
null
null
null
#include "http_router.hpp" #include "uniform_resource_identifier.hpp" namespace manifold { namespace http { //----------------------------------------------------------------// void router::register_handler(const std::regex& expression, const std::function<void(server::request&& req, server::response&& r...
32.707692
201
0.464722
jonathonl
5f725d0a36aff6561df4849f43821d2f0e9e55b7
575
cc
C++
uva/chapter_5/12036.cc
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
1
2019-05-12T23:41:00.000Z
2019-05-12T23:41:00.000Z
uva/chapter_5/12036.cc
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
null
null
null
uva/chapter_5/12036.cc
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; using vi = vector<int>; using ii = pair<int,int>; using ll = long long; using llu = unsigned long long; const int INF = numeric_limits<int>::max(); const int MAX = 101; int main() { int tcc; cin >> tcc; for (int tc = 1; tc <= tcc; tc++) { int n; cin >> n; ...
20.535714
53
0.493913
metaflow
5f75389ca5bc4d804cb793e732dd678139133fb9
2,392
cpp
C++
codechef/practice/SORTING.cpp
Shahraaz/CP_S5
2cfb5467841d660c1e47cb8338ea692f10ca6e60
[ "MIT" ]
3
2020-02-08T10:34:16.000Z
2020-02-09T10:23:19.000Z
codechef/practice/SORTING.cpp
Shahraaz/CP_S5
2cfb5467841d660c1e47cb8338ea692f10ca6e60
[ "MIT" ]
null
null
null
codechef/practice/SORTING.cpp
Shahraaz/CP_S5
2cfb5467841d660c1e47cb8338ea692f10ca6e60
[ "MIT" ]
2
2020-10-02T19:05:32.000Z
2021-09-08T07:01:49.000Z
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "/debug.h" #else #define db(...) #endif #define all(v) v.begin(), v.end() #define pb push_back using ll = long long; const int NAX = 2e5 + 5, MOD = 1000000007; struct node { int count; node *left, *right; node(int _count, node *_left, n...
19.768595
108
0.467391
Shahraaz
5f772c4d043577d632b48c18f21bf8ddd16f6074
1,317
cpp
C++
source/ir/index_manager/index/MultiTermDocs.cpp
izenecloud/izenelib
9d5958100e2ce763fc75f27217adf982d7c9d902
[ "Apache-2.0" ]
31
2015-03-03T19:13:42.000Z
2020-09-03T08:11:56.000Z
source/ir/index_manager/index/MultiTermDocs.cpp
izenecloud/izenelib
9d5958100e2ce763fc75f27217adf982d7c9d902
[ "Apache-2.0" ]
1
2016-12-24T00:12:11.000Z
2016-12-24T00:12:11.000Z
source/ir/index_manager/index/MultiTermDocs.cpp
izenecloud/izenelib
9d5958100e2ce763fc75f27217adf982d7c9d902
[ "Apache-2.0" ]
8
2015-09-06T01:55:21.000Z
2021-12-20T02:16:13.000Z
#include <ir/index_manager/index/MultiTermDocs.h> #include <ir/index_manager/index/TermDocFreqs.h> using namespace izenelib::ir::indexmanager; MultiTermDocs::MultiTermDocs() { current_ = NULL; pTermDocsQueue_ = NULL; } MultiTermDocs::~MultiTermDocs() { close(); } void MultiTermDocs::close() { std::...
24.388889
78
0.668945
izenecloud
5f7d3ab0b42ed0669e03db9199a4c914b09ca11c
26,304
cpp
C++
dbswdbe/WdbeMMachine.cpp
mpsitech/wdbe-WhizniumDBE
27360ce6569dc55098a248b8a0a4b7e3913a6ce6
[ "MIT" ]
4
2020-10-27T14:33:25.000Z
2021-08-07T20:55:42.000Z
dbswdbe/WdbeMMachine.cpp
mpsitech/wdbe-WhizniumDBE
27360ce6569dc55098a248b8a0a4b7e3913a6ce6
[ "MIT" ]
null
null
null
dbswdbe/WdbeMMachine.cpp
mpsitech/wdbe-WhizniumDBE
27360ce6569dc55098a248b8a0a4b7e3913a6ce6
[ "MIT" ]
null
null
null
/** * \file WdbeMMachine.cpp * database access for table TblWdbeMMachine (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 5 Dec 2020 */ // IP header --- ABOVE #include "WdbeMMachine.h" using namespace std; using namespace Sbe...
24.862004
207
0.65549
mpsitech
5f7e1fb5223265351033218ccb30a01db993c27b
4,286
cpp
C++
srcAmiga/rsi/sphere.cpp
privatosan/RayStorm
17e27259a8a1d6b2fcfa16886c6e4cdd81be8cfa
[ "MIT" ]
2
2016-04-03T23:57:54.000Z
2019-12-05T17:50:37.000Z
srcAmiga/rsi/sphere.cpp
privatosan/RayStorm
17e27259a8a1d6b2fcfa16886c6e4cdd81be8cfa
[ "MIT" ]
null
null
null
srcAmiga/rsi/sphere.cpp
privatosan/RayStorm
17e27259a8a1d6b2fcfa16886c6e4cdd81be8cfa
[ "MIT" ]
2
2015-06-20T19:22:47.000Z
2021-11-15T15:22:14.000Z
/*************** * MODUL: sphere * NAME: sphere.cpp * DESCRIPTION: Functions for sphere object class * AUTHORS: Andreas Heumann, Mike Hesser * HISTORY: * DATE NAME COMMENT * 11.02.95 ah initial release * 13.03.95 ah added Update() * 27.08.95 ah added animation...
20.216981
87
0.570929
privatosan
5f7f2714f458d9d651ae0925f34f3c092dda8f0f
6,496
cc
C++
extensions/third_party/perfetto/protos/perfetto/trace/perfetto/perfetto_metatrace.gen.cc
blockspacer/chromium_base_conan
b4749433cf34f54d2edff52e2f0465fec8cb9bad
[ "Apache-2.0", "BSD-3-Clause" ]
6
2020-12-22T05:48:31.000Z
2022-02-08T19:49:49.000Z
extensions/third_party/perfetto/protos/perfetto/trace/perfetto/perfetto_metatrace.gen.cc
blockspacer/chromium_base_conan
b4749433cf34f54d2edff52e2f0465fec8cb9bad
[ "Apache-2.0", "BSD-3-Clause" ]
4
2020-05-22T18:36:43.000Z
2021-05-19T10:20:23.000Z
extensions/third_party/perfetto/protos/perfetto/trace/perfetto/perfetto_metatrace.gen.cc
blockspacer/chromium_base_conan
b4749433cf34f54d2edff52e2f0465fec8cb9bad
[ "Apache-2.0", "BSD-3-Clause" ]
2
2019-12-06T11:48:16.000Z
2021-09-16T04:44:47.000Z
#include "perfetto/protozero/message.h" #include "perfetto/protozero/packed_repeated_fields.h" #include "perfetto/protozero/proto_decoder.h" #include "perfetto/protozero/scattered_heap_buffer.h" // DO NOT EDIT. Autogenerated by Perfetto cppgen_plugin #if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic pu...
29.935484
100
0.688732
blockspacer
5f7fb0954457191eed552bc6c6b99e7cf546e013
30,846
cpp
C++
CodeGenere/photogram/cEqAppui_PTInc_M2CFraser_PPaEqPPs.cpp
kikislater/micmac
3009dbdad62b3ad906ec882b74b85a3db86ca755
[ "CECILL-B" ]
451
2016-11-25T09:40:28.000Z
2022-03-30T04:20:42.000Z
CodeGenere/photogram/cEqAppui_PTInc_M2CFraser_PPaEqPPs.cpp
kikislater/micmac
3009dbdad62b3ad906ec882b74b85a3db86ca755
[ "CECILL-B" ]
143
2016-11-25T20:35:57.000Z
2022-03-01T11:58:02.000Z
CodeGenere/photogram/cEqAppui_PTInc_M2CFraser_PPaEqPPs.cpp
kikislater/micmac
3009dbdad62b3ad906ec882b74b85a3db86ca755
[ "CECILL-B" ]
139
2016-12-02T10:26:21.000Z
2022-03-10T19:40:29.000Z
// File Automatically generated by eLiSe #include "StdAfx.h" #include "cEqAppui_PTInc_M2CFraser_PPaEqPPs.h" cEqAppui_PTInc_M2CFraser_PPaEqPPs::cEqAppui_PTInc_M2CFraser_PPaEqPPs(): cElCompiledFonc(2) { AddIntRef (cIncIntervale("Intr",0,12)); AddIntRef (cIncIntervale("Orient",12,18)); AddIntRef (cIncInterv...
41.128
191
0.654153
kikislater
5f8035b8a8b69fa7695f29d65a0bb23752b64a6c
4,342
cpp
C++
svn_cvs_maps.cpp
BRL-CAD/repowork
d5180d99f1086614301cf4c3db44a2b2dd57ebb3
[ "CC0-1.0" ]
null
null
null
svn_cvs_maps.cpp
BRL-CAD/repowork
d5180d99f1086614301cf4c3db44a2b2dd57ebb3
[ "CC0-1.0" ]
null
null
null
svn_cvs_maps.cpp
BRL-CAD/repowork
d5180d99f1086614301cf4c3db44a2b2dd57ebb3
[ "CC0-1.0" ]
null
null
null
/* S V N _ C V S _ M A P S . C P P * BRL-CAD * * Published in 2020 by the United States Government. * This work is in the public domain. * */ /** @file svn_cvs_maps.cpp * * Utility functions * */ #include <iostream> #include <sstream> #include <locale> #include "repowork.h" int git_map_svn_comm...
28.379085
138
0.582681
BRL-CAD
5f8a1dd8a2bfd70114e5bb5620c13364dde77cfd
18,912
cpp
C++
apx/test/test_parser.cpp
cogu/cpp-apx
d4f0307115b10a24aa48139bb410d1869fcb161c
[ "MIT" ]
null
null
null
apx/test/test_parser.cpp
cogu/cpp-apx
d4f0307115b10a24aa48139bb410d1869fcb161c
[ "MIT" ]
null
null
null
apx/test/test_parser.cpp
cogu/cpp-apx
d4f0307115b10a24aa48139bb410d1869fcb161c
[ "MIT" ]
null
null
null
#include "pch.h" #include "cpp-apx/parser.h" #include <sstream> #include <string> using namespace std::string_literals; namespace apx_test { TEST(Parser, ParseEmptyString) { const char* apx_text = ""; apx::Parser parser; std::stringstream ss; ss.str(apx_text); EXPECT...
38.283401
104
0.620558
cogu
5f8e5a76f67f0493a38a6eda07be9a4417d63d20
111
cpp
C++
S3DAPI/HookAPI.cpp
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
27
2020-11-12T19:24:54.000Z
2022-03-27T23:10:45.000Z
S3DAPI/HookAPI.cpp
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
2
2020-11-02T06:30:39.000Z
2022-02-23T18:39:55.000Z
S3DAPI/HookAPI.cpp
bo3b/iZ3D
ced8b3a4b0a152d0177f2e94008918efc76935d5
[ "MIT" ]
3
2021-08-16T00:21:08.000Z
2022-02-23T19:19:36.000Z
#include <stdafx.h> #include "HookApi.h" abstract_hook::module_counter_map abstract_hook::moduleHookCounters;
22.2
68
0.81982
bo3b
5f8f0a6ef481c05470115b850e2406005e645df3
4,335
cpp
C++
src/enclave/outside/attestation/attestation.cpp
lsds/Faasm
7327c1df1cd7141ae41ae764cbea6155f4e68640
[ "Apache-2.0" ]
254
2018-10-12T10:09:43.000Z
2020-06-02T17:42:04.000Z
src/enclave/outside/attestation/attestation.cpp
lsds/Faasm
7327c1df1cd7141ae41ae764cbea6155f4e68640
[ "Apache-2.0" ]
49
2019-11-18T17:33:01.000Z
2020-05-23T13:15:23.000Z
src/enclave/outside/attestation/attestation.cpp
lsds/Faasm
7327c1df1cd7141ae41ae764cbea6155f4e68640
[ "Apache-2.0" ]
22
2019-11-05T15:01:54.000Z
2020-06-02T17:42:05.000Z
#include <conf/FaasmConfig.h> #include <enclave/outside/attestation/AzureAttestationServiceClient.h> #include <enclave/outside/attestation/attestation.h> #include <enclave/outside/ecalls.h> #include <faabric/util/logging.h> #ifdef FAASM_SGX_HARDWARE_MODE #include <dlfcn.h> #include <openssl/sha.h> #include <sgx_dcap_q...
37.695652
78
0.68812
lsds
5f90a5d0bae7347086c89d5224405696f3c08cc5
1,890
cpp
C++
OOP/3-Examen2-EditorDeTexto_MFC/cascaronMFC_Clases.cpp
NestorJavier/Programacion_avanzada-Visual-
1ccb8d41988d860689a6f8ef74bdd53da62c5214
[ "MIT" ]
null
null
null
OOP/3-Examen2-EditorDeTexto_MFC/cascaronMFC_Clases.cpp
NestorJavier/Programacion_avanzada-Visual-
1ccb8d41988d860689a6f8ef74bdd53da62c5214
[ "MIT" ]
null
null
null
OOP/3-Examen2-EditorDeTexto_MFC/cascaronMFC_Clases.cpp
NestorJavier/Programacion_avanzada-Visual-
1ccb8d41988d860689a6f8ef74bdd53da62c5214
[ "MIT" ]
null
null
null
#include <afxwin.h> int x = 88, y = 100, iEsp_x = 8;//La variable iEsp_x es el espacio que existe entre caracteres RECT rWrk; BOOL band = FALSE; class CCascaron_Frame: public CFrameWnd { afx_msg void OnPaint(); afx_msg void OnLButtonDown(UINT, CPoint); afx_msg void OnChar(UINT); void Txt(); DECLARE_MESSAGE_...
15.75
95
0.609524
NestorJavier
5f9771aec9cd438c59166fed0605f56a15800597
345
cpp
C++
Part1/Chapter4/L4-10.cpp
flics04/SSQCbook-Base-Luogu
c7ddbcfec58d6cc8f6396309daa8b511b6c8673d
[ "MIT" ]
null
null
null
Part1/Chapter4/L4-10.cpp
flics04/SSQCbook-Base-Luogu
c7ddbcfec58d6cc8f6396309daa8b511b6c8673d
[ "MIT" ]
null
null
null
Part1/Chapter4/L4-10.cpp
flics04/SSQCbook-Base-Luogu
c7ddbcfec58d6cc8f6396309daa8b511b6c8673d
[ "MIT" ]
null
null
null
#include <cstdio> using namespace std; int main() { int k, coin = 0, day = 0; scanf("%d", &k); for (int i = 1; ; i++) for (int j = 1; j <= i; j++) { coin += i; day++; if (day == k) { printf("%d\n", coin); return 0; } ...
18.157895
38
0.33913
flics04
5f9a5e72814144fcef9c26ddd06b1cfcae133bba
323
hpp
C++
src/reir/exec/parser.hpp
large-scale-oltp-team/reir
427db5f24e15f22cd2a4f4a716caf9392dae1d9b
[ "Apache-2.0" ]
1
2020-03-04T10:57:14.000Z
2020-03-04T10:57:14.000Z
src/reir/exec/parser.hpp
large-scale-oltp-team/reir
427db5f24e15f22cd2a4f4a716caf9392dae1d9b
[ "Apache-2.0" ]
3
2018-11-02T07:47:26.000Z
2018-11-05T09:06:54.000Z
src/reir/exec/parser.hpp
large-scale-oltp-team/reir
427db5f24e15f22cd2a4f4a716caf9392dae1d9b
[ "Apache-2.0" ]
null
null
null
#ifndef REIR_PARSER_HPP_ #define REIR_PARSER_HPP_ #include <cstdint> #include <functional> #include "ast_node.hpp" namespace reir { namespace node { struct Statement; } class TokenStream; void parse(const std::string& code, const std::function<void(node::Node*)>& fun); } // namespace reir #endif // REIR_PARSER_HP...
17.944444
81
0.749226
large-scale-oltp-team
5f9c7aa09666019c6d800fdb2a7a0290926625ec
479
cpp
C++
ex7/3/main.cpp
genshen/CplusplusExercise
97ab1e446f3bf3bcabae83fb4c74442ba0331fb5
[ "MIT" ]
null
null
null
ex7/3/main.cpp
genshen/CplusplusExercise
97ab1e446f3bf3bcabae83fb4c74442ba0331fb5
[ "MIT" ]
null
null
null
ex7/3/main.cpp
genshen/CplusplusExercise
97ab1e446f3bf3bcabae83fb4c74442ba0331fb5
[ "MIT" ]
null
null
null
// // Created by gensh on 2016/12/16. // #include <iostream> using namespace std; int main() { // XYZ+YZZ=532 for (int x = 0; x <= 5; x++) { for (int y = 0; y <= 5; y++) { for (int z = 0; z <= 9; z++) { if (100 * x + 10 * y + z + 100 * y + 10 * z + z == 532) { ...
22.809524
74
0.331942
genshen
5f9e203d596e6853e6b15ab8f96df7e442eb99d4
672
cpp
C++
Maximum Erasure Value.cpp
chaitanyks/fuzzy-disco
bc52f779c68da3f259f116cc1f41c464db290fbf
[ "MIT" ]
1
2021-12-12T05:55:44.000Z
2021-12-12T05:55:44.000Z
Maximum Erasure Value.cpp
chaitanyks/fuzzy-disco
bc52f779c68da3f259f116cc1f41c464db290fbf
[ "MIT" ]
null
null
null
Maximum Erasure Value.cpp
chaitanyks/fuzzy-disco
bc52f779c68da3f259f116cc1f41c464db290fbf
[ "MIT" ]
null
null
null
// https://leetcode.com/problems/maximum-erasure-value/submissions/ // 1695. Maximum Erasure Value class Solution { public: int maximumUniqueSubarray(vector<int>& nums) { map<int,int> mp; int n = nums.size(); int sum = 0; int ans = 0; int start = 0; for(int ...
22.4
67
0.397321
chaitanyks
5fa649938d8a96a259e807b92ad86adcff9d724a
5,333
hpp
C++
OcularCore/include/Graphics/Mesh/MeshLoaders/OBJ/ResourceLoader_OBJ.hpp
ssell/OcularEngine
c80cc4fcdb7dd7ce48d3af330bd33d05312076b1
[ "Apache-2.0" ]
8
2017-01-27T01:06:06.000Z
2020-11-05T20:23:19.000Z
OcularCore/include/Graphics/Mesh/MeshLoaders/OBJ/ResourceLoader_OBJ.hpp
ssell/OcularEngine
c80cc4fcdb7dd7ce48d3af330bd33d05312076b1
[ "Apache-2.0" ]
39
2016-06-03T02:00:36.000Z
2017-03-19T17:47:39.000Z
OcularCore/include/Graphics/Mesh/MeshLoaders/OBJ/ResourceLoader_OBJ.hpp
ssell/OcularEngine
c80cc4fcdb7dd7ce48d3af330bd33d05312076b1
[ "Apache-2.0" ]
4
2019-05-22T09:13:36.000Z
2020-12-01T03:17:45.000Z
/** * Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.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 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
37.556338
151
0.558785
ssell
5fa9dc24e222d9159975121ff0818a93c7e5bc50
1,125
hpp
C++
SW/_Tests/main.hpp
DF4IAH/DL0WH_BiTuner_Firmware
1b5600dde4d955d3d7a422a4d98bc9bbbd231e82
[ "MIT" ]
3
2019-06-17T05:50:05.000Z
2022-01-24T09:55:12.000Z
SW/_Tests/main.hpp
DF4IAH/DL0WH_BiTuner
1b5600dde4d955d3d7a422a4d98bc9bbbd231e82
[ "MIT" ]
null
null
null
SW/_Tests/main.hpp
DF4IAH/DL0WH_BiTuner
1b5600dde4d955d3d7a422a4d98bc9bbbd231e82
[ "MIT" ]
null
null
null
#ifndef _MAIN_H #define _MAIN_H #include <stdint.h> #ifndef true # define true 1U #endif #ifndef false # define false 0U #endif typedef enum RtosMsgDefaultCmds_ENUM { MsgDefault__InitDo = 0x01U, MsgDefault__InitDone, MsgDefault__SetVar01_IOs ...
21.634615
91
0.695111
DF4IAH
5faa8d44896b2aa7aadcedefe5c2636d8f24d9ba
1,035
cpp
C++
tools/Retrace/fzl/Retracer/TraceReader.cpp
thebabush/fuzzilly
0adb3c5df8a21cb9d984585d7e011a07f5d4a68f
[ "MIT" ]
15
2020-02-23T10:35:19.000Z
2021-03-02T04:16:00.000Z
tools/Retrace/fzl/Retracer/TraceReader.cpp
thebabush/fuzzilly
0adb3c5df8a21cb9d984585d7e011a07f5d4a68f
[ "MIT" ]
null
null
null
tools/Retrace/fzl/Retracer/TraceReader.cpp
thebabush/fuzzilly
0adb3c5df8a21cb9d984585d7e011a07f5d4a68f
[ "MIT" ]
4
2020-02-26T00:30:08.000Z
2020-11-21T07:07:40.000Z
#include <cassert> #include "TraceReader.h" namespace fzl { namespace Retracer { TraceReader::TraceReader(const char *FileName) { TraceStream.open(FileName, std::ios::in | std::ios::binary); } std::optional<fzl::TraceEvent> TraceReader::getNext() { TraceEvent Event; // Read the structure tag if (!TraceStr...
19.528302
85
0.652174
thebabush
5fabbb09a718e911e854122360fbce0469cb0ed0
33,407
cpp
C++
Engine2D/BattleEngine.cpp
MarkusPfundstein/OpenGL-2D-RPG-Engine-iPhone
b9643e6a6243952f8e17f216a860e58b197e2247
[ "Unlicense" ]
2
2015-11-05T21:25:18.000Z
2016-02-15T08:55:44.000Z
Engine2D/BattleEngine.cpp
MarkusPfundstein/OpenGL-2D-RPG-Engine-iPhone
b9643e6a6243952f8e17f216a860e58b197e2247
[ "Unlicense" ]
null
null
null
Engine2D/BattleEngine.cpp
MarkusPfundstein/OpenGL-2D-RPG-Engine-iPhone
b9643e6a6243952f8e17f216a860e58b197e2247
[ "Unlicense" ]
null
null
null
// // BattleEngine.cpp // Engine2D // // Created by Markus Pfundstein on 10/15/11. // Copyright 2011 The Saints. All rights reserved. // #include <iostream> #include <math.h> #include <fstream> using namespace std; #include "BattleEngine.h" #include "Gui.h" #include "Texture2D.h" #include "AnimatedSprite.h" #inclu...
33.847011
375
0.510612
MarkusPfundstein
5fb4518236edb66bdd16f90fec2d3393598043ee
478
cpp
C++
src/test/BFCombinationFinderTest.cpp
simophin/game-matcher-qt
706c94010216fb0d7d76e2428e5e907b4dd78372
[ "MIT" ]
null
null
null
src/test/BFCombinationFinderTest.cpp
simophin/game-matcher-qt
706c94010216fb0d7d76e2428e5e907b4dd78372
[ "MIT" ]
null
null
null
src/test/BFCombinationFinderTest.cpp
simophin/game-matcher-qt
706c94010216fb0d7d76e2428e5e907b4dd78372
[ "MIT" ]
null
null
null
// // Created by Fanchao Liu on 21/08/20. // #include <catch2/catch.hpp> #include "BFCombinationFinder.h" #include "MockGameStats.h" TEST_CASE("BFCombinationFinder") { SECTION("Should match levels when other factors are the same") { MockGameStats gameStats; gameStats.scorer = [] (auto) { return...
21.727273
68
0.619247
simophin
5fbb97b02e314224a87840d1cf8f08d6f9f449aa
374
hpp
C++
src/host/color.hpp
danieldeankon/hypertrace
d58a6ea28af45b875c477df4065667e9b4b88a49
[ "MIT" ]
null
null
null
src/host/color.hpp
danieldeankon/hypertrace
d58a6ea28af45b875c477df4065667e9b4b88a49
[ "MIT" ]
null
null
null
src/host/color.hpp
danieldeankon/hypertrace
d58a6ea28af45b875c477df4065667e9b4b88a49
[ "MIT" ]
null
null
null
#pragma once #include <cstdint> #include <vec.hpp> typedef vec<float, 3> color3; color3 make_color(color3 c, float g=2.2f) { return c.map([g](float x) { return pow(x, g); }); } color3 make_color(uint32_t c, float g=2.2f) { return make_color(color3( float((c>>16)&0xFF)/0xFF, float((c>>8)&0xF...
18.7
53
0.593583
danieldeankon
5fc5f8e85a4976555d4d24a5f68a7823b9350165
3,846
cpp
C++
flume/planner/common/session_analysis.cpp
advancedxy/bigflow_python
8a244b483404fde7afc42eee98bc964da8ae03e2
[ "Apache-2.0" ]
1
2021-02-18T20:13:34.000Z
2021-02-18T20:13:34.000Z
flume/planner/common/session_analysis.cpp
advancedxy/bigflow_python
8a244b483404fde7afc42eee98bc964da8ae03e2
[ "Apache-2.0" ]
null
null
null
flume/planner/common/session_analysis.cpp
advancedxy/bigflow_python
8a244b483404fde7afc42eee98bc964da8ae03e2
[ "Apache-2.0" ]
null
null
null
/*************************************************************************** * * Copyright (c) 2014 Baidu, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
32.319328
79
0.628185
advancedxy