hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e5ec04b569e3f43f922c6fab215e04dedd811e44 | 26,117 | cpp | C++ | src/warehouse/main_stat.cpp | jhu-lcsr/sp_segmenter | 4f6713c633ee2b1aaf48f614d05bcef1da4a9b02 | [
"BSD-2-Clause"
] | 33 | 2016-04-01T04:22:55.000Z | 2019-08-23T13:43:05.000Z | src/warehouse/main_stat.cpp | jhu-lcsr/sp_segmenter | 4f6713c633ee2b1aaf48f614d05bcef1da4a9b02 | [
"BSD-2-Clause"
] | 3 | 2017-08-14T14:09:18.000Z | 2018-09-23T20:38:57.000Z | src/warehouse/main_stat.cpp | jhu-lcsr/sp_segmenter | 4f6713c633ee2b1aaf48f614d05bcef1da4a9b02 | [
"BSD-2-Clause"
] | 26 | 2016-11-07T06:03:14.000Z | 2019-09-20T01:39:23.000Z | #include "sp_segmenter/utility/utility.h"
#include "sp_segmenter/features.h"
#include "sp_segmenter/BBDataParser.h"
#include "sp_segmenter/UWDataParser.h"
#include "sp_segmenter/JHUDataParser.h"
void mergeProbs(const std::vector<problem> &problem_set, problem &final_prob)
{
if( problem_set.empty() == true )
... | 34.776298 | 199 | 0.522112 | jhu-lcsr |
e5ee79f313ccdb27df610145a293ce1cc49f2117 | 1,939 | cpp | C++ | src/plugin/utility/src/AFCTimerModule.cpp | overtalk/ARK | 9d314e99dc13684fc672371a0c3fbaa6b9a46d97 | [
"Apache-2.0"
] | 1 | 2020-02-21T14:32:13.000Z | 2020-02-21T14:32:13.000Z | src/plugin/utility/src/AFCTimerModule.cpp | overtalk/ARK | 9d314e99dc13684fc672371a0c3fbaa6b9a46d97 | [
"Apache-2.0"
] | null | null | null | src/plugin/utility/src/AFCTimerModule.cpp | overtalk/ARK | 9d314e99dc13684fc672371a0c3fbaa6b9a46d97 | [
"Apache-2.0"
] | null | null | null | /*
* This source file is part of ARK
* For the latest info, see https://github.com/ArkNX
*
* Copyright (c) 2013-2019 ArkNX authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"),
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | 28.514706 | 115 | 0.738009 | overtalk |
e5fb27252d6476db4959f32bb2cf291ac303af6d | 2,388 | cpp | C++ | src/nakama-c/ClientFactoryC.cpp | azurepine/nakama-cpp | 132d812d994284cc4c23aaece94a0fe4ef85c666 | [
"Apache-2.0"
] | 53 | 2019-03-08T07:39:44.000Z | 2022-03-26T20:53:16.000Z | src/nakama-c/ClientFactoryC.cpp | azurepine/nakama-cpp | 132d812d994284cc4c23aaece94a0fe4ef85c666 | [
"Apache-2.0"
] | 42 | 2019-03-22T12:05:51.000Z | 2022-03-17T20:56:36.000Z | src/nakama-c/ClientFactoryC.cpp | azurepine/nakama-cpp | 132d812d994284cc4c23aaece94a0fe4ef85c666 | [
"Apache-2.0"
] | 25 | 2019-03-13T09:01:36.000Z | 2022-02-07T05:57:14.000Z | /*
* Copyright 2019 The Nakama Authors
*
* 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 agr... | 28.428571 | 147 | 0.718174 | azurepine |
f9042e830a43e089561b6f00cd22d545e5ed9e43 | 1,849 | cpp | C++ | boost.asio/boostorg/buffer/reference_counted.cpp | pvthuyet/books | bac5f754a68243e463ec7b0d93610be8807b31ac | [
"BSL-1.0"
] | null | null | null | boost.asio/boostorg/buffer/reference_counted.cpp | pvthuyet/books | bac5f754a68243e463ec7b0d93610be8807b31ac | [
"BSL-1.0"
] | null | null | null | boost.asio/boostorg/buffer/reference_counted.cpp | pvthuyet/books | bac5f754a68243e463ec7b0d93610be8807b31ac | [
"BSL-1.0"
] | null | null | null | #include <boost/asio.hpp>
#include <iostream>
#include <memory>
#include <utility>
#include <vector>
#include <ctime>
using boost::asio::ip::tcp;
class shared_const_buffer
{
public:
explicit shared_const_buffer(const std::string& data) :
data_(new std::vector<char>(data.begin(), data.end())),
buffer_(boost::asio... | 19.463158 | 70 | 0.670092 | pvthuyet |
f909dba27740cdf57c02314c4d4273c381e78196 | 2,813 | hpp | C++ | h2g_server/script_macros.hpp | Spayker/b2g-game-connector | f808fa6a67366952a483201507b955ca34b6580c | [
"MIT"
] | null | null | null | h2g_server/script_macros.hpp | Spayker/b2g-game-connector | f808fa6a67366952a483201507b955ca34b6580c | [
"MIT"
] | 24 | 2021-12-06T17:41:08.000Z | 2021-12-19T15:21:23.000Z | h2g_server/script_macros.hpp | Spayker/b2g-game-connector | f808fa6a67366952a483201507b955ca34b6580c | [
"MIT"
] | null | null | null | /*#define SYSTEM_TAG "life"
#define ITEM_TAG format["%1%2",SYSTEM_TAG,"item_"]
#define CASH life_cash
#define BANK life_atmbank
#define GANG_FUNDS group player getVariable ["gang_bank",0];*/
/*
remoteExec Section
When uncommented it enables proper testing via local testing
Otherwise leave it commented out ... | 40.768116 | 172 | 0.763242 | Spayker |
f90e720b892addd3f6f2a218e2e684facb3aeb3d | 1,741 | cpp | C++ | src/lib/storage/fixed_string_dictionary_column/fixed_string_vector_iterator.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/lib/storage/fixed_string_dictionary_column/fixed_string_vector_iterator.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/lib/storage/fixed_string_dictionary_column/fixed_string_vector_iterator.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #include "fixed_string_vector_iterator.hpp"
#include <memory>
#include <string>
#include "resolve_type.hpp"
#include "storage/fixed_string_dictionary_column.hpp"
#include "storage/vector_compression/base_compressed_vector.hpp"
#include "type_cast.hpp"
#include "utils/assert.hpp"
#include "utils/performance_warning.hp... | 38.688889 | 119 | 0.762206 | IanJamesMcKay |
f910243b67fd8c39f314d95b92c1d4cce0e5b82b | 958 | cc | C++ | src/code_jzc/quant_op.cc | achao2013/mxnet-quantify | ae77c896da6db35530390e3cf8e524d553bba112 | [
"Apache-2.0"
] | 4 | 2017-04-03T11:51:32.000Z | 2019-01-16T03:57:47.000Z | src/code_jzc/quant_op.cc | achao2013/mxnet-quantify | ae77c896da6db35530390e3cf8e524d553bba112 | [
"Apache-2.0"
] | null | null | null | src/code_jzc/quant_op.cc | achao2013/mxnet-quantify | ae77c896da6db35530390e3cf8e524d553bba112 | [
"Apache-2.0"
] | null | null | null | #include "quant_op.h"
#include <iostream>
namespace mxnet {
namespace op {
template<>
void print_check<cpu>(float * data, std::string s)
{
LOG(INFO)<<s<<": "<<data[0]<<" "<<data[1]<<" "<<data[2]<<" "<<data[3]<<" "<<data[4]<<" "<<data[5]<<" "<<data[6];
}
template<>
void print_check<cpu>(double * data, st... | 23.95 | 115 | 0.534447 | achao2013 |
f91f7e862fab44240e30477b9b7b1f532fabd138 | 362 | cpp | C++ | codeforce3/600B. Queries about less or equal elements.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce3/600B. Queries about less or equal elements.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce3/600B. Queries about less or equal elements.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
const int N = 2 * 1e5;
int arr[N] = {0};
int main() {
int n, m;
cin >> n >> m;
for(int i = 0; i < n; i++)
cin >> arr[i];
sort(arr, arr+n);
for(int i = 0; i < m; i++) {
int tmp;
cin >> tmp;
cout << upper_bound(arr, arr+n, ... | 14.48 | 54 | 0.48895 | khaled-farouk |
234e798e0a6e220464998e9d650e25c72e124050 | 9,615 | hpp | C++ | src/delegate.hpp | gittiver/libexpatpp | 269bbdd28221c8f8edb1625521d2e602aee739e6 | [
"MIT"
] | 10 | 2021-06-26T17:28:25.000Z | 2022-02-27T12:12:04.000Z | src/delegate.hpp | gittiver/libexpatpp | 269bbdd28221c8f8edb1625521d2e602aee739e6 | [
"MIT"
] | 5 | 2021-05-12T05:36:48.000Z | 2022-03-02T04:07:28.000Z | src/delegate.hpp | gittiver/libexpatpp | 269bbdd28221c8f8edb1625521d2e602aee739e6 | [
"MIT"
] | 2 | 2021-06-26T17:29:50.000Z | 2022-01-03T15:36:34.000Z | /**
* @file delegate.hpp
* @author gulliver <gulliver@traumkristalle.net>
*
* @brief contains the xml parsers delegate interface
*
* See LICENSE for copyright information.
*/
#ifndef xmlpp_delegate_hpp
#define xmlpp_delegate_hpp
#include <string>
#include "expat.h"
namespace xmlpp {
/** wrapper class typ... | 35.611111 | 106 | 0.619033 | gittiver |
2351b9c16e2cb8b2b5800e06decf38a8b679bbd2 | 2,080 | cpp | C++ | src/CandidateList.cpp | chen15959/crossme | 67c50ab100ca04ba908c8be86f9ecff45843de92 | [
"Apache-2.0"
] | null | null | null | src/CandidateList.cpp | chen15959/crossme | 67c50ab100ca04ba908c8be86f9ecff45843de92 | [
"Apache-2.0"
] | null | null | null | src/CandidateList.cpp | chen15959/crossme | 67c50ab100ca04ba908c8be86f9ecff45843de92 | [
"Apache-2.0"
] | null | null | null | #include "CandidateList.hpp"
#include "Line.hpp"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
CandidateList::CandidateList(LENGTH_T length)
{
assert(length > 0);
_length = length;
}
CandidateList::CandidateList(const CandidateList & other)
{
copy(other);
}
CandidateL... | 14.751773 | 115 | 0.657692 | chen15959 |
23529a5929d6d6750fa2dc96d28da5990dd805de | 484 | cpp | C++ | exercise/src/unitTest/unitTest.cpp | softwarekid/crayon | 72fe08eab4b4282ad729ee2719e75df2f02f1def | [
"MIT"
] | null | null | null | exercise/src/unitTest/unitTest.cpp | softwarekid/crayon | 72fe08eab4b4282ad729ee2719e75df2f02f1def | [
"MIT"
] | null | null | null | exercise/src/unitTest/unitTest.cpp | softwarekid/crayon | 72fe08eab4b4282ad729ee2719e75df2f02f1def | [
"MIT"
] | null | null | null | ////#include <cppunit/TestResult.h>
////#include <cppunit/TestResultCollector.h>
////#include <cppunit/TextOutputter.h>
////#include <cppunit/TestRunner.h>
////#include <cppunit/extensions/TestFactoryRegistry.h>
//#include <gtest/gtest.h>
//#include "MatrixGtest.h"
//#include "VectorGtest.h"
//#include "CameraG... | 32.266667 | 56 | 0.667355 | softwarekid |
23540e9faa64e70472961fbbcbf4ce1444673390 | 1,221 | cpp | C++ | HXEngine/HXCore/src/HXGDICamera.cpp | huangx916/HXEngine | b7ec36572c4444113a35c9a6c65b127279c7360f | [
"MIT"
] | 45 | 2018-07-21T12:14:44.000Z | 2022-01-26T04:22:38.000Z | HXEngine/HXCore/src/HXGDICamera.cpp | huangx916/HXEngine | b7ec36572c4444113a35c9a6c65b127279c7360f | [
"MIT"
] | 75 | 2017-08-11T03:06:03.000Z | 2019-06-13T06:20:58.000Z | HXEngine/HXCore/src/HXGDICamera.cpp | huangx916/HXEngine | b7ec36572c4444113a35c9a6c65b127279c7360f | [
"MIT"
] | 19 | 2018-11-26T08:41:56.000Z | 2022-03-21T03:29:55.000Z | #include "..\include\HXGDICamera.h"
#include "HXFrustum.h"
#include "HXMath.h"
#include "HXQuaternionS.h"
#include "HXGDITransform.h"
namespace HX3D
{
HXGDICamera::HXGDICamera():mFrustum(NULL)
{
transform = new HXGDITransform();
}
HXGDICamera::~HXGDICamera()
{
if (mFrustum)
{
delete mFrustum;
mFrustu... | 19.078125 | 98 | 0.703522 | huangx916 |
236013f141fd6e992506c0bc61dfb4023b7afbad | 937 | cc | C++ | src/ast/files.cc | lbk2kgithub1/verona | 5be07d3b71e5a4fa8da1493cf4c6248d75642f85 | [
"MIT"
] | null | null | null | src/ast/files.cc | lbk2kgithub1/verona | 5be07d3b71e5a4fa8da1493cf4c6248d75642f85 | [
"MIT"
] | null | null | null | src/ast/files.cc | lbk2kgithub1/verona | 5be07d3b71e5a4fa8da1493cf4c6248d75642f85 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "files.h"
namespace files
{
std::vector<char> slurp(const std::string& file, bool optional)
{
std::ifstream f(file.c_str(), std::ios::binary | std::ios::ate);
if (!f)
{
if (optional)
{
... | 20.369565 | 76 | 0.54429 | lbk2kgithub1 |
23659ef79928a3b08684f397c55ec0c9061fb766 | 326 | cpp | C++ | src/0_creational_patterns/abstract_factory/main.cpp | galudino/gof-designpatterns-cpp | 0a1b63898ecde9868178aabd26d9f37a79bb47ee | [
"MIT"
] | 2 | 2022-01-08T05:25:43.000Z | 2022-02-21T03:02:28.000Z | src/0_creational_patterns/abstract_factory/main.cpp | galudino/gof-designpatterns-cpp | 0a1b63898ecde9868178aabd26d9f37a79bb47ee | [
"MIT"
] | null | null | null | src/0_creational_patterns/abstract_factory/main.cpp | galudino/gof-designpatterns-cpp | 0a1b63898ecde9868178aabd26d9f37a79bb47ee | [
"MIT"
] | null | null | null | #include "maze_game.h"
#include "bombed_maze_factory.h"
#include "enchanted_maze_factory.h"
int main() {
auto game = maze_game();
auto factory_bombed = bombed_maze_factory();
auto factory_enchanted = enchanted_maze_factory();
game.create_maze(factory_bombed);
game.create_maze(factory_enchante... | 23.285714 | 54 | 0.733129 | galudino |
236b9d6b4ac98935d3a5ce71cd1dc0ae8c7d33f9 | 339,352 | hpp | C++ | libraries/belle/Source/Fonts/Joie.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 47 | 2017-09-05T02:49:22.000Z | 2022-01-20T08:11:47.000Z | libraries/belle/Source/Fonts/Joie.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 106 | 2018-05-16T14:58:52.000Z | 2022-01-12T13:57:24.000Z | libraries/belle/Source/Fonts/Joie.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 11 | 2018-05-16T06:44:51.000Z | 2021-11-10T07:04:46.000Z |
/* Auto-generated file. */
// ====================================
namespace belle {
extern const prim::byte* JoieBellefont;
#ifdef BELLE_COMPILE_INLINE
static const prim::byte JoieBellefontData[57454] =
{
2, 9, 240, 2, 48, 0, 0, 0, 0, 0,
128, 64, 0, 0, 0, 64, 0, ... | 58.833564 | 88 | 0.343652 | jogawebb |
237489d1b2b70911309245d0ce297a782cc5b9bf | 2,906 | cpp | C++ | src/anim_utils.cpp | Josh-MB/Information-Theory-Vicsek-Model | a6befb4878be5519cbb0515130d9a101ee90f5fa | [
"MIT"
] | null | null | null | src/anim_utils.cpp | Josh-MB/Information-Theory-Vicsek-Model | a6befb4878be5519cbb0515130d9a101ee90f5fa | [
"MIT"
] | null | null | null | src/anim_utils.cpp | Josh-MB/Information-Theory-Vicsek-Model | a6befb4878be5519cbb0515130d9a101ee90f5fa | [
"MIT"
] | 1 | 2020-06-26T11:32:40.000Z | 2020-06-26T11:32:40.000Z | #include "../include/anim_utils.hpp"
#include "../include/defs.hpp"
#include <fmt/format.h>
#include <algorithm>
double hue2rgb(double p, double q, double t)
{
if(t < 0) t += 1;
if(t > 1) t -= 1;
if(t < 1.0f / 6) return p + (q - p) * 6 * t;
if(t < 1.0f / 2) return q;
if(t < 2.0f / 3) return p + (q - p) * (2.0f ... | 24.627119 | 101 | 0.507226 | Josh-MB |
237a9eba56fa0947bba486919666c23bc33b116b | 43 | hpp | C++ | src/boost_mpl_multiset_aux__tag.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_multiset_aux__tag.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_multiset_aux__tag.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/multiset/aux_/tag.hpp>
| 21.5 | 42 | 0.767442 | miathedev |
237acad154fb83f327fb706301b39a56109435aa | 2,860 | hpp | C++ | src/backends/opengl/OpenglSurface.hpp | AntonHakansson/KvantEngine | f101fc771a8e9eca8ced59a084b9be0169e95649 | [
"MIT"
] | null | null | null | src/backends/opengl/OpenglSurface.hpp | AntonHakansson/KvantEngine | f101fc771a8e9eca8ced59a084b9be0169e95649 | [
"MIT"
] | 2 | 2017-04-05T01:50:13.000Z | 2017-08-10T00:58:26.000Z | src/backends/opengl/OpenglSurface.hpp | AntonHakansson/KvantEngine | f101fc771a8e9eca8ced59a084b9be0169e95649 | [
"MIT"
] | null | null | null | #ifndef OpenglSurface_HPP_INCLUDED
#define OpenglSurface_HPP_INCLUDED
#include <glm/glm.hpp>
#include "utils/Checks.hpp"
#include "utils/Logger.hpp"
namespace Kvant::graphics::opengl {
using namespace glm;
template <typename GRAPHICS>
struct OpenglSurface
: blueprints::graphics::Surface<GRAPHICS, OpenglSurface<... | 32.5 | 80 | 0.687413 | AntonHakansson |
237b415bf330948156cbbc8c9d217aa47b9ca870 | 1,453 | cpp | C++ | cp3/chp2/lds/borrowers.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | cp3/chp2/lds/borrowers.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | cp3/chp2/lds/borrowers.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | #include<iostream>
#include<utility>
#include<algorithm>
#include<vector>
#include<string>
#include<map>
using namespace std;
int main(){
string s;
vector< pair<string,string> > shelf;
map <string,int> bookorder;
while(getline(cin,s) && s !="END"){
string title,author;
size_t s_len = s.size();
size_t fou... | 20.757143 | 105 | 0.567791 | Binary-bug |
237e83babccdab463cede35ff21ba6824170fbfb | 2,348 | cpp | C++ | docs/online/2018-ICPC-Shenyang-Online/solutions/f.cpp | Dup4/TI1050 | 4534909ef9a3b925d556d341ea5e2629357f68e6 | [
"MIT"
] | null | null | null | docs/online/2018-ICPC-Shenyang-Online/solutions/f.cpp | Dup4/TI1050 | 4534909ef9a3b925d556d341ea5e2629357f68e6 | [
"MIT"
] | null | null | null | docs/online/2018-ICPC-Shenyang-Online/solutions/f.cpp | Dup4/TI1050 | 4534909ef9a3b925d556d341ea5e2629357f68e6 | [
"MIT"
] | 1 | 2022-03-03T13:33:48.000Z | 2022-03-03T13:33:48.000Z | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;
const int INF = 0x3f3f3f3f;
const int maxn = 1e4 + 10;
const ll INFLL = 0x3f3f3f3f3f3f3f3f;
struct node {
int l, r;
inline node() {}
inline node(int l, int r) : l(l), r(r) {}
} arr[maxn];
bool flag = false;
int... | 20.778761 | 62 | 0.43569 | Dup4 |
2385db98a9ba294491710b396935bb81baed023d | 2,781 | cpp | C++ | test/uri/parsers/rules/uri/character.test.cpp | ledocc/uri | 0767d923f7d1690e495ddca8a84352746b572904 | [
"BSL-1.0"
] | null | null | null | test/uri/parsers/rules/uri/character.test.cpp | ledocc/uri | 0767d923f7d1690e495ddca8a84352746b572904 | [
"BSL-1.0"
] | null | null | null | test/uri/parsers/rules/uri/character.test.cpp | ledocc/uri | 0767d923f7d1690e495ddca8a84352746b572904 | [
"BSL-1.0"
] | null | null | null | #define BOOST_TEST_MODULE uri__parsers__rules__uri__character_hpp
#include <boost/test/unit_test.hpp>
#include "../../test_parser.hpp"
#include "../make_char_map.hpp"
#include <uri/parsers/rules/uri/character.hpp>
#include <boost/range/irange.hpp>
#include <vector>
namespace uri {
namespace parsers {
namespace... | 29.585106 | 120 | 0.549083 | ledocc |
2386fbdb9f6a4d768d447ad839bc5038bb27ed5e | 440 | hpp | C++ | ODFAEG/include/odfaeg/Driver/frameBuffer.hpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 5 | 2015-06-13T13:11:59.000Z | 2020-04-17T23:10:23.000Z | ODFAEG/include/odfaeg/Driver/frameBuffer.hpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 4 | 2019-01-07T11:46:21.000Z | 2020-02-14T15:04:15.000Z | ODFAEG/include/odfaeg/Driver/frameBuffer.hpp | Cwc-Test/ODFAEG | 5e5bd13e3145764c3d0182225aad591040691481 | [
"Zlib"
] | 4 | 2016-01-05T09:54:57.000Z | 2021-01-06T18:52:26.000Z | #ifndef ODFAEG_FRAMEBUFFER_HPP
#define ODFAEG_FRAMEBUFFER_HPP
#include "../../../include/odfaeg/Core/erreur.h"
namespace odfaeg {
namespace driver {
class FrameBuffer {
public :
FrameBuffer (unsigned int width, unsigned int height);
sf::Color& operator[](unsigned int inde... | 27.5 | 66 | 0.613636 | Cwc-Test |
23890a9b45be36e67181907e7af41daec2c87cc8 | 314 | cpp | C++ | Arrays/q9.cpp | Shantanu-verma-sys/Leetcode | 13985d6b5a54f1addc5ff97d18238a0af901732c | [
"MIT"
] | null | null | null | Arrays/q9.cpp | Shantanu-verma-sys/Leetcode | 13985d6b5a54f1addc5ff97d18238a0af901732c | [
"MIT"
] | null | null | null | Arrays/q9.cpp | Shantanu-verma-sys/Leetcode | 13985d6b5a54f1addc5ff97d18238a0af901732c | [
"MIT"
] | null | null | null | //https://leetcode.com/problems/shuffle-string/
string restoreString(string s, vector<int>& indices) {
vector<char> v(s.length());
string res;
for(int i=0;i<indices.size();++i)
v[indices[i]] = s[i];
for(const auto& i:v)
res += i;
return res;
}
| 28.545455 | 56 | 0.525478 | Shantanu-verma-sys |
238bd95e29816179e03181b0feae4bb9b667a183 | 497 | hpp | C++ | Adapters/FileReader.hpp | thulefog/ImageBrowser | 16e16fd1af04215c76af8cc5c166cd58ea71bdb8 | [
"MIT"
] | null | null | null | Adapters/FileReader.hpp | thulefog/ImageBrowser | 16e16fd1af04215c76af8cc5c166cd58ea71bdb8 | [
"MIT"
] | null | null | null | Adapters/FileReader.hpp | thulefog/ImageBrowser | 16e16fd1af04215c76af8cc5c166cd58ea71bdb8 | [
"MIT"
] | null | null | null | //
// FileReader.hpp
// ImageBrowser
//
// Created by John Matthew Weston on 6/27/18.
//
#ifndef FileReader_hpp
#define FileReader_hpp
#include <stdio.h>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <string>
#import "../Adapters/dcmlite/dcmlite.h"
class FileReader
{
public:
FileReader()... | 16.566667 | 53 | 0.686117 | thulefog |
2390f5fe80598426fceff443ce167414c4babe54 | 3,572 | cpp | C++ | 3DRasterizer/Src/Vector2.cpp | QuadDeva/SoftwareRasterizer | 4c2738d9601230a146a8b724700cf0a4fb89eca2 | [
"MIT"
] | 1 | 2016-04-07T05:02:52.000Z | 2016-04-07T05:02:52.000Z | 3DRasterizer/Src/Vector2.cpp | QuadDeva/SoftwareRasterizer | 4c2738d9601230a146a8b724700cf0a4fb89eca2 | [
"MIT"
] | null | null | null | 3DRasterizer/Src/Vector2.cpp | QuadDeva/SoftwareRasterizer | 4c2738d9601230a146a8b724700cf0a4fb89eca2 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "MathUtils.h"
#include "Vector.h"
Vector2 Vector2::Zero(0.0f, 0.0f);
Vector2 Vector2::One(1.0f, 1.0f);
Vector2 Vector2::Right(1.0f, 0.0f);
Vector2 Vector2::Up(0.0f, 1.0f);
Vector2::Vector2(float InF) :
X(InF),
Y(InF)
{
}
Vector2::Vector2(float InX, float InY) :
X(InX),
Y(InY)
{
}
... | 14.639344 | 65 | 0.613102 | QuadDeva |
2393618e2ebec6698ec9435f534330cd72c8472e | 2,509 | cpp | C++ | Code/Libraries/3D/src/irradiancevolumes.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/3D/src/irradiancevolumes.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/3D/src/irradiancevolumes.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | #include "core.h"
#include "3d.h"
#include "irradiancevolumes.h"
#include "mathcore.h"
IrradianceVolumes::IrradianceVolumes()
: m_Extents(),
m_NumVolumesX(0),
m_NumVolumesY(0),
m_NumVolumesZ(0),
m_VolumeResolution(),
m_Volumes(nullptr) {}
IrradianceVolumes::~IrradianceVolumes() { Saf... | 33.905405 | 79 | 0.65564 | kas1e |
2394e17ecebf71620d1c9a59208aaa8a6e894766 | 2,386 | cpp | C++ | integration_test/driver.cpp | HongshiTan/circt | 5590855b46eac4b902cf1319347ab19a6dee8f1b | [
"Apache-2.0"
] | null | null | null | integration_test/driver.cpp | HongshiTan/circt | 5590855b46eac4b902cf1319347ab19a6dee8f1b | [
"Apache-2.0"
] | null | null | null | integration_test/driver.cpp | HongshiTan/circt | 5590855b46eac4b902cf1319347ab19a6dee8f1b | [
"Apache-2.0"
] | null | null | null | //===- driver.cpp - Verilator software driver -----------------------------===//
//
// A fairly standard, boilerplate Verilator C++ simulation driver. Assumes the
// top level exposes just two signals: 'clk' and 'rstn'.
//
//===----------------------------------------------------------------------===//
#include "Vmain... | 25.382979 | 80 | 0.604778 | HongshiTan |
2399cc17eebbe15e5ae279a5d1f195aee135b6be | 19,328 | cpp | C++ | Bison x86 Assembler Source/main.cpp | kpatel122/Bison-x86-Assembler | 34d997306a5bf483ee3633126565017d1e2a5f92 | [
"MIT"
] | null | null | null | Bison x86 Assembler Source/main.cpp | kpatel122/Bison-x86-Assembler | 34d997306a5bf483ee3633126565017d1e2a5f92 | [
"MIT"
] | null | null | null | Bison x86 Assembler Source/main.cpp | kpatel122/Bison-x86-Assembler | 34d997306a5bf483ee3633126565017d1e2a5f92 | [
"MIT"
] | null | null | null | #include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include "token.h"
#include "instructions.h"
#include "file.h"
#include "log.h"
#include "String.h"
#include "lexer.h"
#include "functions.h"
#include "symbol.h"
#include "strings.h"
#include "label.h"
#inclu... | 34.269504 | 92 | 0.505019 | kpatel122 |
239ee0fadee646b7f353de292e7792c4d1d4c681 | 2,541 | cpp | C++ | source/lennaplugins/crop/crop.cpp | FalseCAM/lenna | 5a649627a90b459ab369f1ac602f1c37b1db9c92 | [
"MIT"
] | 2 | 2021-09-21T18:38:36.000Z | 2021-09-23T23:12:28.000Z | source/lennaplugins/crop/crop.cpp | FalseCAM/lenna | 5a649627a90b459ab369f1ac602f1c37b1db9c92 | [
"MIT"
] | null | null | null | source/lennaplugins/crop/crop.cpp | FalseCAM/lenna | 5a649627a90b459ab369f1ac602f1c37b1db9c92 | [
"MIT"
] | 2 | 2016-07-04T18:27:31.000Z | 2017-05-09T02:10:35.000Z | /**
This file is part of program Lenna
Copyright (C) 2016 FalseCAM
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
... | 27.923077 | 76 | 0.689099 | FalseCAM |
23a83ed58e6a8c89f69764fc4f46ae7de84e980b | 1,540 | cpp | C++ | US3D/vtkFlRender.cpp | berardino/haptic | 8cb2bec3566e25baed903cb6159503c20663fb30 | [
"MIT"
] | null | null | null | US3D/vtkFlRender.cpp | berardino/haptic | 8cb2bec3566e25baed903cb6159503c20663fb30 | [
"MIT"
] | null | null | null | US3D/vtkFlRender.cpp | berardino/haptic | 8cb2bec3566e25baed903cb6159503c20663fb30 | [
"MIT"
] | null | null | null | // vtkFlRender.cpp: implementation of the vtkFlRender class.
//
//////////////////////////////////////////////////////////////////////
#include "vtkFlRender.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
/////////////////////////////////////////////////////... | 30.8 | 71 | 0.602597 | berardino |
23aff98f759970379069c5133903dbfdb0c21167 | 2,414 | cpp | C++ | Samples/ExtendedExecution/cpp/SampleConfiguration.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,504 | 2019-05-07T06:56:42.000Z | 2022-03-31T19:37:59.000Z | Samples/ExtendedExecution/cpp/SampleConfiguration.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 314 | 2019-05-08T16:56:30.000Z | 2022-03-21T07:13:45.000Z | Samples/ExtendedExecution/cpp/SampleConfiguration.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,219 | 2019-05-07T00:47:26.000Z | 2022-03-30T21:12:31.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 32.621622 | 110 | 0.648302 | dujianxin |
23b1e3e0bd7df011973d0f5394ab0730a1a3bc1c | 7,724 | cpp | C++ | Engine/Network/EntityHashing.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | Engine/Network/EntityHashing.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | Engine/Network/EntityHashing.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | #include "stdh.h"
#include <Engine/Entities/InternalClasses.h>
#include <Engine/Entities/EntityClass.h>
#include <Engine/Network/CNetwork.h>
#include <Engine/Network/EntityHashing.h>
#define VALUE_TYPE ULONG
#define TYPE CEntityHashItem
#define CHashTableSlot_TYPE CEntityHashTableSlot
#define CHashTable_TYPE CEnt... | 36.093458 | 146 | 0.795184 | openlastchaos |
23c01bc012a1c5185e8af4b945383b5263654313 | 1,538 | cpp | C++ | src/win32/PropertyGridListBox.cpp | NullPopPoLab/Play--Framework | ab4594f9ef548f1476c9017e122a05dfb91cc9d3 | [
"BSD-2-Clause"
] | 35 | 2015-02-19T20:11:05.000Z | 2021-11-05T12:55:07.000Z | src/win32/PropertyGridListBox.cpp | NullPopPoLab/Play--Framework | ab4594f9ef548f1476c9017e122a05dfb91cc9d3 | [
"BSD-2-Clause"
] | 24 | 2015-07-19T04:51:29.000Z | 2022-03-31T00:36:45.000Z | src/win32/PropertyGridListBox.cpp | Thunder07/Play--Framework | b0c8487656492f237f6613fccadbb8011b61bd4d | [
"BSD-2-Clause"
] | 22 | 2015-02-16T03:36:00.000Z | 2022-01-23T13:15:00.000Z | #include <windowsx.h>
#include "win32/PropertyGridListBox.h"
using namespace Framework;
using namespace Framework::Win32;
#define LISTBOX_STYLE (WS_CLIPCHILDREN | WS_CLIPSIBLINGS | LBS_NOTIFY | LBS_OWNERDRAWFIXED | LBS_NOINTEGRALHEIGHT | LBS_WANTKEYBOARDINPUT)
CPropertyGridListBox::CPropertyGridListBox(HWND ... | 24.412698 | 139 | 0.73407 | NullPopPoLab |
23c70f4de5f3c9e87e67e4e62d04da156b742db7 | 5,015 | cpp | C++ | GamePlay/Source/GameLogicTutorFractions.cpp | TaylorClark/PrimeTime | 3c62f6c53e0494146a95be1412273de3cf05bcd2 | [
"MIT"
] | null | null | null | GamePlay/Source/GameLogicTutorFractions.cpp | TaylorClark/PrimeTime | 3c62f6c53e0494146a95be1412273de3cf05bcd2 | [
"MIT"
] | null | null | null | GamePlay/Source/GameLogicTutorFractions.cpp | TaylorClark/PrimeTime | 3c62f6c53e0494146a95be1412273de3cf05bcd2 | [
"MIT"
] | null | null | null | //=================================================================================================
/*!
\file GameLogicTutorFractions.cpp
Game Play Library
Fraction Mode Tutorial Game Logic Source
\author Taylor Clark
\date January 30, 2010
This source file contains the definition for the Prime Time fraction mod... | 37.425373 | 218 | 0.605982 | TaylorClark |
23ccad84aa35300891e884edfd6c69856e3426c4 | 2,563 | hpp | C++ | modules/scene_manager/include/lifecycle_msgs/msg/transition__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/scene_manager/include/lifecycle_msgs/msg/transition__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 3 | 2019-11-14T12:20:06.000Z | 2020-08-07T13:51:10.000Z | modules/scene_manager/include/lifecycle_msgs/msg/transition__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | // generated from
// rosidl_typesupport_opensplice_cpp/resource/msg__rosidl_typesupport_opensplice_cpp.hpp.em
// generated code does not contain a copyright notice
#ifndef LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_HPP_
#define LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_... | 27.55914 | 122 | 0.849395 | Omnirobotic |
23d0c46473c07a6109fd6a96698d5be25ccf566c | 112 | cpp | C++ | libtooling/tests/lambda.cpp | abdarker/facebook-clang-plugins | 7d55695bb0cbd821ae0acc33db5a6982abd2da3a | [
"BSD-3-Clause"
] | null | null | null | libtooling/tests/lambda.cpp | abdarker/facebook-clang-plugins | 7d55695bb0cbd821ae0acc33db5a6982abd2da3a | [
"BSD-3-Clause"
] | null | null | null | libtooling/tests/lambda.cpp | abdarker/facebook-clang-plugins | 7d55695bb0cbd821ae0acc33db5a6982abd2da3a | [
"BSD-3-Clause"
] | null | null | null | int main (){
int m,n;
auto f = [](){return 1;};
auto bar = [&m, n] (int a) { return m; };
return 0;
} | 12.444444 | 45 | 0.455357 | abdarker |
23d949efe79b959a7ba9b3b3133b8b61d83ccab3 | 999 | cpp | C++ | thirdparty/source/nu/tests/error_or_example.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | thirdparty/source/nu/tests/error_or_example.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | thirdparty/source/nu/tests/error_or_example.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | using nu::error_or;
using nu::make_error_or;
// default-constructed objects contain Err(), which by default is std::error_code
error_or<int> e;
error_or<int> i(1);
// et will still contain Err()
error_or<int> et = e / [] (int i) { return i+1; };
ASSERT_EQ(et.error(), std::error_code());
// it will contain 2
error_or... | 25.615385 | 81 | 0.582583 | TomatoYoung |
23dc8ce85a9d52ad52155110a606d79522981997 | 343 | cpp | C++ | core/src/DebouncerImpuseRepeatStrategy.cpp | perimeno/LIO | 62578bdee261735afa23f7c0c8437e927425aef6 | [
"MIT"
] | 25 | 2019-08-07T02:38:39.000Z | 2022-01-14T03:13:58.000Z | core/src/DebouncerImpuseRepeatStrategy.cpp | perimeno/LIO | 62578bdee261735afa23f7c0c8437e927425aef6 | [
"MIT"
] | 6 | 2020-01-17T20:51:15.000Z | 2021-03-11T12:38:29.000Z | core/src/DebouncerImpuseRepeatStrategy.cpp | perimeno/LIO | 62578bdee261735afa23f7c0c8437e927425aef6 | [
"MIT"
] | 2 | 2019-08-24T19:02:12.000Z | 2020-06-11T06:14:34.000Z | #include "DebouncerImpuseRepeatStrategy.h"
using namespace LIO;
DebouncerImpulseRepeatStrategy::DebouncerImpulseRepeatStrategy():onCb([]{}),offCb([]{}){
}
void DebouncerImpulseRepeatStrategy::setOnCallback(std::function<void()>cb){
onCb=cb;
}
void DebouncerImpulseRepeatStrategy::setOffCallback(std::function<void(... | 26.384615 | 88 | 0.772595 | perimeno |
23ec57f327f16dbd276c7596fa06b02910ba5018 | 3,147 | cpp | C++ | Street Fighter II/ModuleParticles.cpp | mtorres5254/Arial--Comic-Sans--Dealers | 2c668e0980c80e141fa1a43726fdf6f6149f299a | [
"CC0-1.0"
] | 2 | 2019-02-28T17:43:05.000Z | 2019-06-09T17:45:17.000Z | Street Fighter II/ModuleParticles.cpp | mtorres5254/Arial--Comic-Sans--Dealers | 2c668e0980c80e141fa1a43726fdf6f6149f299a | [
"CC0-1.0"
] | 1 | 2019-05-03T07:38:50.000Z | 2019-05-03T07:38:50.000Z | Street Fighter II/ModuleParticles.cpp | mtorres5254/Arial--Comic-Sans--Dealers | 2c668e0980c80e141fa1a43726fdf6f6149f299a | [
"CC0-1.0"
] | 2 | 2019-02-28T17:43:15.000Z | 2019-12-28T17:25:42.000Z | #include <math.h>
#include "Globals.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModuleParticles.h"
#include "ModuleAudio.h"
#include "ModuleCollision.h"
#include "SDL/include/SDL_timer.h"
ModuleParticles::ModuleParticles()
{
for(uint i = 0; i < MAX_ACTIVE_PARTICLES; ++... | 19.425926 | 116 | 0.598983 | mtorres5254 |
23f173eaa9228274fdf49ff2f793994aad3693a6 | 220 | cpp | C++ | qr-state.cpp | nnm-t/m5stickc-visiting-card | 858a11ffa48c6d7e76d19c84cb9529a3ef3754da | [
"MIT"
] | 3 | 2020-03-08T07:15:04.000Z | 2020-07-20T17:28:28.000Z | qr-state.cpp | nnm-t/m5stickc-visiting-card | 858a11ffa48c6d7e76d19c84cb9529a3ef3754da | [
"MIT"
] | null | null | null | qr-state.cpp | nnm-t/m5stickc-visiting-card | 858a11ffa48c6d7e76d19c84cb9529a3ef3754da | [
"MIT"
] | null | null | null | #include "qr-state.h"
constexpr const Vector2<uint16_t> QRState::qr_pos;
void QRState::DrawQRCode()
{
LCD::DrawQRCode(url, qr_pos, 64, 2);
}
void QRState::Begin()
{
DrawQRCode();
}
void QRState::Update()
{
} | 12.222222 | 50 | 0.663636 | nnm-t |
23f6723c1cba7f49f1e0d966824f675f1093af6c | 21,403 | hpp | C++ | include/zisa/experiments/mpi_numerical_experiment.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/experiments/mpi_numerical_experiment.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/experiments/mpi_numerical_experiment.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | 1 | 2021-08-24T11:52:51.000Z | 2021-08-24T11:52:51.000Z | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval
#ifndef ZISA_MPI_NUMERICAL_EXPERIMENT_HPP
#define ZISA_MPI_NUMERICAL_EXPERIMENT_HPP
#if ZISA_HAS_MPI == 1
#include <zisa/boundary/halo_exchange_bc.hpp>
#include <zisa/cli/input_parameters.hpp>
#include <zisa/grid/grid.hpp>
#include... | 35.494196 | 80 | 0.662431 | 1uc |
23f779de6bf80b0bd611c535aff8d96fc5ba0ccd | 1,655 | cpp | C++ | Origin/src/Origin/Renderer/Primitives/Buffers.cpp | UnNabbo/OriginEngine | d4b51f8cf0e716e2b5dee739de20d49f0e24872a | [
"Apache-2.0"
] | 2 | 2022-02-04T09:26:47.000Z | 2022-02-04T20:31:12.000Z | Origin/src/Origin/Renderer/Primitives/Buffers.cpp | UnNabbo/OriginEngine | d4b51f8cf0e716e2b5dee739de20d49f0e24872a | [
"Apache-2.0"
] | null | null | null | Origin/src/Origin/Renderer/Primitives/Buffers.cpp | UnNabbo/OriginEngine | d4b51f8cf0e716e2b5dee739de20d49f0e24872a | [
"Apache-2.0"
] | null | null | null | #include "OGpch.h"
#include "Origin/Renderer/Renderer.h"
#include "Platform/Opengl/OpenGLBuffers.h"
namespace Origin {
Reference<VertexBuffer> VertexBuffer::Create(uint32_t size) {
switch (Renderer::GetAPI()) {
case RendererAPI::API::None: ORIGIN_ASSERT(false, "RendererAPI::None is currently not supported!"... | 33.77551 | 121 | 0.73716 | UnNabbo |
23f77d30cf539b491632bc61da774d0a1f7b2713 | 1,961 | cpp | C++ | DataStructures/SegTreeLazyPropagation.cpp | ThiagoGMF/Algorithms | 1c20c88a1858bcef596e652808ef61f5d20defe4 | [
"MIT"
] | null | null | null | DataStructures/SegTreeLazyPropagation.cpp | ThiagoGMF/Algorithms | 1c20c88a1858bcef596e652808ef61f5d20defe4 | [
"MIT"
] | null | null | null | DataStructures/SegTreeLazyPropagation.cpp | ThiagoGMF/Algorithms | 1c20c88a1858bcef596e652808ef61f5d20defe4 | [
"MIT"
] | null | null | null | struct SegTreeLazy{
vector<int> seg;
vector<int> lazy;
vector<int> a;
int N;
int null_val = 0;
SegTreeLazy(const vector<int> &v){
N = (int) v.size();
seg.resize(4*N,null_val);
lazy.resize(4*N,null_val);
a = v;
build(1, 0, N-1);
}
... | 25.802632 | 67 | 0.410505 | ThiagoGMF |
23f8501596cdbc5e113c7f6f47e6ce1f31f1883b | 2,265 | cc | C++ | core/globals.cc | jnschulze/foxglove | 6d5cb37b33ec4a4cfb2b7d9f13355670fdad18ab | [
"BSD-3-Clause"
] | 2 | 2022-02-01T02:27:42.000Z | 2022-02-23T15:36:57.000Z | core/globals.cc | jnschulze/foxglove | 6d5cb37b33ec4a4cfb2b7d9f13355670fdad18ab | [
"BSD-3-Clause"
] | null | null | null | core/globals.cc | jnschulze/foxglove | 6d5cb37b33ec4a4cfb2b7d9f13355670fdad18ab | [
"BSD-3-Clause"
] | 1 | 2022-02-23T15:36:58.000Z | 2022-02-23T15:36:58.000Z | #include "globals.h"
#include "player_environment.h"
#include "vlc/vlc_environment.h"
namespace foxglove {
EnvironmentRegistry::EnvironmentRegistry() {}
std::shared_ptr<PlayerEnvironment> EnvironmentRegistry::CreateEnvironment(
std::vector<std::string> args) {
auto environment = std::make_shared<VlcEnvironmen... | 25.738636 | 80 | 0.691832 | jnschulze |
67111a15d413ce720e81b345ecb82f5a07252c49 | 3,519 | cpp | C++ | rclcpp/src/rclcpp/executors/single_threaded_executor.cpp | Micrified/rclcpp | 8006ed21e5d93aa215cbb96080cc5a429fecc49f | [
"Apache-2.0"
] | 1 | 2021-07-19T09:22:12.000Z | 2021-07-19T09:22:12.000Z | rclcpp/src/rclcpp/executors/single_threaded_executor.cpp | Micrified/rclcpp | 8006ed21e5d93aa215cbb96080cc5a429fecc49f | [
"Apache-2.0"
] | null | null | null | rclcpp/src/rclcpp/executors/single_threaded_executor.cpp | Micrified/rclcpp | 8006ed21e5d93aa215cbb96080cc5a429fecc49f | [
"Apache-2.0"
] | null | null | null | // Copyright 2015 Open Source Robotics Foundation, 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 appli... | 26.066667 | 94 | 0.717533 | Micrified |
6715e92c6edb8abb9394bd40c724aca490bbe345 | 1,409 | cpp | C++ | e_removedup.cpp | skyera/myleetcode | c3524e73b320afb863d0c04d40b1b660ff9fec8c | [
"MIT"
] | null | null | null | e_removedup.cpp | skyera/myleetcode | c3524e73b320afb863d0c04d40b1b660ff9fec8c | [
"MIT"
] | null | null | null | e_removedup.cpp | skyera/myleetcode | c3524e73b320afb863d0c04d40b1b660ff9fec8c | [
"MIT"
] | null | null | null | // 8.30.2017
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <cassert>
using namespace std;
int removedup(vector<int> &nums)
{
if (nums.empty()) return 0;
int index = 0;
for (int i = 1; i < nums.size(); i++)
if (nums[i] != nums[index])
nums[++ind... | 20.128571 | 88 | 0.53868 | skyera |
671a425f8c0d54fec0c90762a22fd02390155cdf | 1,139 | cpp | C++ | projects/biogears/libBiogears/src/pybwrappers/cdm/scenario/requests/pybSELiquidCompartmentDataRequest.cpp | vybhavramachandran/mophy | 7271c12b85a324a4f1494e0ce15942dc25bc4931 | [
"Apache-2.0"
] | null | null | null | projects/biogears/libBiogears/src/pybwrappers/cdm/scenario/requests/pybSELiquidCompartmentDataRequest.cpp | vybhavramachandran/mophy | 7271c12b85a324a4f1494e0ce15942dc25bc4931 | [
"Apache-2.0"
] | 5 | 2020-12-23T00:19:32.000Z | 2020-12-29T20:53:58.000Z | projects/biogears/libBiogears/src/pybwrappers/cdm/scenario/requests/pybSELiquidCompartmentDataRequest.cpp | vybhavramachandran/biogears-vybhav | 7271c12b85a324a4f1494e0ce15942dc25bc4931 | [
"Apache-2.0"
] | null | null | null | #include <biogears/cdm/scenario/requests/SELiquidCompartmentDataRequest.h>
#include <biogears/schema/cdm/Compartment.hxx>
#include <biogears/cdm/substance/SESubstance.h>
#include <biogears/cdm/substance/SESubstanceManager.h>
#include <biogears/cdm/scenario/requests/SEDataRequestManager.h>
#include <biogears/cdm/scenari... | 33.5 | 137 | 0.784899 | vybhavramachandran |
671c881a042cd9409c8cfddec684afcd5e7ea593 | 6,949 | cpp | C++ | Sources/Tools/EPI/GUI/GuiDocumentManager.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | 2 | 2015-04-16T01:05:53.000Z | 2019-08-26T07:38:43.000Z | Sources/Tools/EPI/GUI/GuiDocumentManager.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | Sources/Tools/EPI/GUI/GuiDocumentManager.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* 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 ... | 36.005181 | 160 | 0.580515 | benkaraban |
671d13c9822cfa26de1831c9c1b436872fd23de0 | 1,184 | hpp | C++ | include/hash.hpp | dashasheveleva/lab_06-multithreads | 0377238b9024da7927e5345a4811ec1e33d57d04 | [
"MIT"
] | null | null | null | include/hash.hpp | dashasheveleva/lab_06-multithreads | 0377238b9024da7927e5345a4811ec1e33d57d04 | [
"MIT"
] | null | null | null | include/hash.hpp | dashasheveleva/lab_06-multithreads | 0377238b9024da7927e5345a4811ec1e33d57d04 | [
"MIT"
] | null | null | null | // Copyright 2022 Shevelyova Darya photodoshfy@gmail.com
#ifndef INCLUDE_HASH_HPP_
#define INCLUDE_HASH_HPP_
#include <boost/log/expressions.hpp>
#include <boost/log/sinks.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/utility/setup.hpp>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <mute... | 29.6 | 75 | 0.726351 | dashasheveleva |
671e5886239831c0c7c51bf98947cd252a5e762e | 2,348 | cpp | C++ | Round-Robin/UI.cpp | MichelDequick/mbed-round-robin | dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1 | [
"Apache-2.0"
] | null | null | null | Round-Robin/UI.cpp | MichelDequick/mbed-round-robin | dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1 | [
"Apache-2.0"
] | null | null | null | Round-Robin/UI.cpp | MichelDequick/mbed-round-robin | dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1 | [
"Apache-2.0"
] | null | null | null | #include "UI.h"
#include "mbed.h"
#include "C12832.h"
#include "joystick.h"
UI::UI(C12832 * lcd)
{
this->lcd = lcd;
dark_theme = false;
}
UI::~UI(void)
{
}
void UI::darkTheme(bool dark)
{
this->dark_theme = dark;
lcd->invert(dark);
}
void UI::background()
{
lcd->cls();
lcd->rect(1,1,126,30... | 21.541284 | 123 | 0.495315 | MichelDequick |
6722087d0e5f9f496aab36920650cbb4c7ceab6a | 3,881 | cpp | C++ | src/file_linux.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | 1 | 2020-07-04T01:11:38.000Z | 2020-07-04T01:11:38.000Z | src/file_linux.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | null | null | null | src/file_linux.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | null | null | null | #include "netlib/file.h"
#include "netlib_linux.h"
#include <iostream>
#include <fcntl.h>
#include <unistd.h>
namespace netlib
{
//
// file_internal
//
struct file_internal: public ref_counted
{
int handle;
off_t position;
aio_struct aio;
file_internal(int _hdl=-1)
{
handle = _hdl;
position = 0;... | 15.971193 | 61 | 0.595723 | ricky26 |
6724b5b5ebb610afb9123e097d1958977ed6149c | 1,761 | cpp | C++ | src/renderer/direct12/mxgpuarray.cpp | goulart81/mewa | 3211ebd966e18e6bec4a3469e9cc41ed2b31244e | [
"MIT"
] | 5 | 2021-04-21T20:38:30.000Z | 2022-03-20T06:55:30.000Z | src/renderer/direct12/mxgpuarray.cpp | goulart81/mewa | 3211ebd966e18e6bec4a3469e9cc41ed2b31244e | [
"MIT"
] | 3 | 2021-12-27T01:20:22.000Z | 2022-02-25T15:24:41.000Z | src/renderer/direct12/mxgpuarray.cpp | goulart81/mewa | 3211ebd966e18e6bec4a3469e9cc41ed2b31244e | [
"MIT"
] | 3 | 2021-04-22T23:27:21.000Z | 2022-01-09T12:45:33.000Z | /****************************************************************************
** Copyright (C) 2020-2021 Mewatools <hugo@mewatools.com>
** SPDX-License-Identifier: MIT License
****************************************************************************/
#include "mxgpuarray.h"
#include "mxdebug.h"
MxGpuArray::MxGpuAr... | 22.291139 | 77 | 0.670074 | goulart81 |
6724e68797dc9d8718ffefb157e242b9bcb73029 | 5,766 | cc | C++ | lib/util/util.cc | MUCZ/Starfish | 4960b7f6001264731c1aea0b8171d187f5ec8ed8 | [
"Apache-2.0"
] | 8 | 2021-02-22T01:10:06.000Z | 2022-02-28T13:30:26.000Z | lib/util/util.cc | MUCZ/Starfish | 4960b7f6001264731c1aea0b8171d187f5ec8ed8 | [
"Apache-2.0"
] | 2 | 2021-12-20T04:29:06.000Z | 2022-03-21T01:00:19.000Z | lib/util/util.cc | MUCZ/Starfish | 4960b7f6001264731c1aea0b8171d187f5ec8ed8 | [
"Apache-2.0"
] | 7 | 2021-02-22T01:10:16.000Z | 2022-02-18T11:49:15.000Z | #include "util.hh"
#include <array>
#include <cctype>
#include <chrono>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <sys/socket.h>
using namespace std;
//! \returns the number of milliseconds since the program started
uint64_t timestamp_ms() {
using time_point = std::chrono::steady_clock::... | 39.765517 | 110 | 0.651925 | MUCZ |
672555ffe725650cf18a34188c5fdd51ccabcc31 | 22,241 | hpp | C++ | include/util_automated_driving_msgs/util_automated_driving_msgs.hpp | coincar-sim/util_automated_driving_msgs | c10c90392a1aebcbaf74f6a93a18022298583b1e | [
"BSD-3-Clause"
] | null | null | null | include/util_automated_driving_msgs/util_automated_driving_msgs.hpp | coincar-sim/util_automated_driving_msgs | c10c90392a1aebcbaf74f6a93a18022298583b1e | [
"BSD-3-Clause"
] | null | null | null | include/util_automated_driving_msgs/util_automated_driving_msgs.hpp | coincar-sim/util_automated_driving_msgs | c10c90392a1aebcbaf74f6a93a18022298583b1e | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017
* FZI Forschungszentrum Informatik, Karlsruhe, Germany (www.fzi.de)
* KIT, Institute of Measurement and Control, Karlsruhe, Germany (www.mrt.kit.edu)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... | 51.964953 | 118 | 0.725867 | coincar-sim |
672c241ab6b127f406a6d59aed97859c84118141 | 988 | cpp | C++ | Library/OldOSs/LibWin2K/ToString.cpp | rrvt/ICS-214a | 939d63466aa9dc6d71fb78765ff37aff0b667ea9 | [
"MIT"
] | null | null | null | Library/OldOSs/LibWin2K/ToString.cpp | rrvt/ICS-214a | 939d63466aa9dc6d71fb78765ff37aff0b667ea9 | [
"MIT"
] | null | null | null | Library/OldOSs/LibWin2K/ToString.cpp | rrvt/ICS-214a | 939d63466aa9dc6d71fb78765ff37aff0b667ea9 | [
"MIT"
] | null | null | null | // Win2000 to_string replacement
// BobK6RWY
#include "stdafx.h"
#include "ToString.h"
static char buf[25];
string to_string(int Val) {sprintf_s(buf, sizeof(buf), "%i", Val); return buf;}
string to_string(unsigned int Val) {sprintf_s(buf, sizeof(buf), "%u", Val); return buf;}
string to_st... | 44.909091 | 96 | 0.639676 | rrvt |
6731868520392c3b4be84833566cca6359fb7679 | 6,261 | hh | C++ | src/xmlcsp/ExpressionParser.hh | kad15/SandBoxToulbar2 | 31430ec5e6c6cec1eabe6f5d04bfb8134777821c | [
"MIT"
] | 33 | 2018-08-16T18:14:35.000Z | 2022-03-14T10:26:18.000Z | src/xmlcsp/ExpressionParser.hh | kad15/SandBoxToulbar2 | 31430ec5e6c6cec1eabe6f5d04bfb8134777821c | [
"MIT"
] | 13 | 2018-08-09T06:53:08.000Z | 2022-03-28T10:26:24.000Z | src/xmlcsp/ExpressionParser.hh | kad15/SandBoxToulbar2 | 31430ec5e6c6cec1eabe6f5d04bfb8134777821c | [
"MIT"
] | 12 | 2018-06-06T15:19:46.000Z | 2022-02-11T17:09:27.000Z | /*=============================================================================
* parser for CSP instances represented in XML format
*
* Copyright (c) 2008 Olivier ROUSSEL (olivier.roussel <at> cril.univ-artois.fr)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softwa... | 31.305 | 90 | 0.569877 | kad15 |
6732f6687343a2981c66eb1746a2cd6cd542d654 | 234 | hpp | C++ | include/Shader/ShaderLoader.hpp | olesgedz/Cube | 12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6 | [
"Apache-2.0"
] | 2 | 2020-12-21T18:31:02.000Z | 2020-12-27T14:36:03.000Z | include/Shader/ShaderLoader.hpp | olesgedz/Cube | 12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6 | [
"Apache-2.0"
] | 1 | 2021-01-08T20:49:43.000Z | 2021-01-08T20:49:43.000Z | include/Shader/ShaderLoader.hpp | olesgedz/Cube | 12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6 | [
"Apache-2.0"
] | 1 | 2021-01-08T20:45:19.000Z | 2021-01-08T20:45:19.000Z | #ifndef SHADERLOADER_HPP
#define SHADERLOADER_HPP
#include "vox.hpp"
#include <string>
namespace Shader
{
GLuint loadShader(const std::string& vertexShaderFile,
const std::string& fragmentShaderFile);
}
#endif | 21.272727 | 59 | 0.717949 | olesgedz |
673647cd0505bf0d215dc6360a41ccc6bd099cb6 | 5,045 | cpp | C++ | Sources/Core/cpp/SemanticAnalyzer/LexemType.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | 2 | 2021-07-07T19:39:11.000Z | 2021-12-02T15:54:15.000Z | Sources/Core/cpp/SemanticAnalyzer/LexemType.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | null | null | null | Sources/Core/cpp/SemanticAnalyzer/LexemType.cpp | elzin/SentimentAnalysisService | 41fba2ef49746473535196e89a5e49250439fd83 | [
"MIT"
] | 1 | 2021-12-01T17:48:20.000Z | 2021-12-01T17:48:20.000Z | #include "StdAfx.h"
#include ".\lexemtype.h"
#include "..\ASSInterface\TDictionaryNames.h"
namespace SS
{
namespace Semantic
{
CLexemType::CLexemType(void) : m_ppCurentUnit(NULL)
{
}
CLexemType::~CLexemType(void)
{
}
bool CLexemType::WordEqualsTo(const TCharType pcWord,SS::Interface::Core::BlackBox::IUnit* pUnit)... | 26.835106 | 99 | 0.693558 | elzin |
6736e5688df99821436f76cdb6b1318fe423a0ea | 1,994 | cpp | C++ | src/GBuffer.cpp | Hyiker/OGLab | 7fef68c1996398aaf7a0434e5e821e788d3a4ee1 | [
"MIT"
] | null | null | null | src/GBuffer.cpp | Hyiker/OGLab | 7fef68c1996398aaf7a0434e5e821e788d3a4ee1 | [
"MIT"
] | null | null | null | src/GBuffer.cpp | Hyiker/OGLab | 7fef68c1996398aaf7a0434e5e821e788d3a4ee1 | [
"MIT"
] | null | null | null | #include "GBuffer.hpp"
#include <glError.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <iostream>
using namespace std;
void GBuffer::init() {
m_framebuffer.init();
m_depth.init();
m_depth.setup(m_width, m_height, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT,
GL_FLOAT, 0);
m_depth.... | 33.233333 | 78 | 0.712136 | Hyiker |
674570149410fd445b2f91347c113821bfcbcca9 | 1,521 | hxx | C++ | include/moneta/traits/is_container.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 2 | 2015-10-09T12:11:54.000Z | 2016-01-20T15:34:33.000Z | include/moneta/traits/is_container.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 5 | 2015-07-04T20:31:32.000Z | 2015-07-04T20:44:58.000Z | include/moneta/traits/is_container.hxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | null | null | null | // [===========================================================================]
// [ M o n e t a ]
// [---------------------------------------------------------------------------]
// [ ... | 37.097561 | 96 | 0.391847 | madera |
6746e82c20a93d1fe859d8c92991ab3d6a3976ca | 6,055 | hpp | C++ | src/json.hpp | ysakasin/yslang | 199e7dbbb960adcb09e33445e74ef8349aa2f795 | [
"MIT"
] | 1 | 2019-05-28T14:58:09.000Z | 2019-05-28T14:58:09.000Z | src/json.hpp | ysakasin/yslang | 199e7dbbb960adcb09e33445e74ef8349aa2f795 | [
"MIT"
] | null | null | null | src/json.hpp | ysakasin/yslang | 199e7dbbb960adcb09e33445e74ef8349aa2f795 | [
"MIT"
] | null | null | null | #pragma once
#include <cassert>
#include <sstream>
#include <string>
#include <vector>
namespace yslang {
class json_array;
class json_object;
class json {
public:
static json array() {
return json(new json_array());
}
public:
using json_array = std::vector<json>;
using json_object = std::vector<std::p... | 19.595469 | 68 | 0.545665 | ysakasin |
674ab7c49337d6e867bceac7311a8d1fde676897 | 3,551 | cc | C++ | src/code/modulo.cc | robin92/jftt2014-compiler | 65c7c23e272ce082a6bfb5de81ac1c075489bb74 | [
"MIT"
] | null | null | null | src/code/modulo.cc | robin92/jftt2014-compiler | 65c7c23e272ce082a6bfb5de81ac1c075489bb74 | [
"MIT"
] | 3 | 2015-01-05T11:00:56.000Z | 2015-09-05T06:29:52.000Z | src/code/modulo.cc | robin92/jftt2014-compiler | 65c7c23e272ce082a6bfb5de81ac1c075489bb74 | [
"MIT"
] | null | null | null | /*
* Copyright 2014 Rafał Bolanowski
* All rights reserved.
*
* For licensing information please see the LICENSE file.
*/
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <gmpxx.h>
#include "config.hh"
#include "code.hh"
static inline
std::string
get_modulo_code(std::uin... | 29.106557 | 105 | 0.424387 | robin92 |
674ad5f328e075ae7e2a07e332e371f6baab27b5 | 111 | cpp | C++ | docs/mfc/codesnippet/CPP/gray-and-dithered-bitmap-functions_2.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/mfc/codesnippet/CPP/gray-and-dithered-bitmap-functions_2.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/mfc/codesnippet/CPP/gray-and-dithered-bitmap-functions_2.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | CBitmap bm;
bm.LoadBitmap(IDB_BITMAP1);
CBitmap bmGray;
AfxGetGrayBitmap(bm, &bmGray, GetSysColor(COLOR_MENU)); | 27.75 | 55 | 0.810811 | bobbrow |
674b2fca55e1d7322960e0a16430f7164a2383d0 | 2,481 | cpp | C++ | Practica5/main.cpp | Adry2317/Estructuras-de-datos-Universidad-de-Ja-n-2020-2021 | 86ff92b54ca39689e2e6e9057246d91b34e09b47 | [
"Apache-2.0"
] | null | null | null | Practica5/main.cpp | Adry2317/Estructuras-de-datos-Universidad-de-Ja-n-2020-2021 | 86ff92b54ca39689e2e6e9057246d91b34e09b47 | [
"Apache-2.0"
] | null | null | null | Practica5/main.cpp | Adry2317/Estructuras-de-datos-Universidad-de-Ja-n-2020-2021 | 86ff92b54ca39689e2e6e9057246d91b34e09b47 | [
"Apache-2.0"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: main.cpp
* Author: Adrian
*
* Created on 15 de noviembre de 2020, 13:52
*/
#include <cstdlib>
#include "Documento... | 25.57732 | 102 | 0.582426 | Adry2317 |
674b8c97e8f531a4515d22037f97960af8b7d26c | 1,311 | cpp | C++ | source/chord.cpp | atg/kenny | 0082e2fe5e6693de0d749f95a18cdb3e4733c78f | [
"WTFPL"
] | 1 | 2017-02-20T13:30:36.000Z | 2017-02-20T13:30:36.000Z | source/chord.cpp | atg/kenny | 0082e2fe5e6693de0d749f95a18cdb3e4733c78f | [
"WTFPL"
] | null | null | null | source/chord.cpp | atg/kenny | 0082e2fe5e6693de0d749f95a18cdb3e4733c78f | [
"WTFPL"
] | null | null | null | #import "chord.hpp"
Chord Chord::build(Scale scale, Qualities q) {
Chord ch;
ch.scale = scale;
#define add_note(n, k) do { \
int t = int(scale.tones[n - 1].pitch); \
if (q . k == Quality::Flat) t -= 1; \
else if (q . k == Quality::Sharp) t += 1; \
else if (q . k == Qual... | 20.809524 | 58 | 0.504195 | atg |
6753cd060383cad6870de4cb25f5bab09cd22e46 | 33,152 | cpp | C++ | source/emulator/src/Graphics/Tile.cpp | InoriRus/Kyty | 1aa7cf72ce598ee4ca31edc63f5b9708d629c69d | [
"MIT"
] | 76 | 2021-11-13T13:07:59.000Z | 2022-03-22T11:35:29.000Z | source/emulator/src/Graphics/Tile.cpp | InoriRus/Kyty | 1aa7cf72ce598ee4ca31edc63f5b9708d629c69d | [
"MIT"
] | 7 | 2021-12-01T18:45:13.000Z | 2022-03-26T18:34:33.000Z | source/emulator/src/Graphics/Tile.cpp | InoriRus/Kyty | 1aa7cf72ce598ee4ca31edc63f5b9708d629c69d | [
"MIT"
] | 9 | 2021-11-24T08:38:13.000Z | 2022-03-24T13:25:04.000Z | #include "Emulator/Graphics/Tile.h"
#include "Kyty/Core/DbgAssert.h"
#include "Kyty/Core/String.h"
#include "Kyty/Core/Threads.h"
#include "Emulator/Graphics/AsyncJob.h"
#include "Emulator/Profiler.h"
#if KYTY_COMPILER != KYTY_COMPILER_CLANG
#include <intrin.h>
#endif
#include <algorithm>
#include <iterator>
#ifde... | 32.823762 | 140 | 0.569136 | InoriRus |
67553c5056626f21c0e8ecae013cbdbebcaa9581 | 8,999 | cpp | C++ | thread_pool.cpp | sakky016/ThreadPool | f8c3410c9fa3a57a08eaf906ff2011d2af79488c | [
"Apache-2.0"
] | 1 | 2019-03-19T06:20:26.000Z | 2019-03-19T06:20:26.000Z | thread_pool.cpp | sakky016/ThreadPool | f8c3410c9fa3a57a08eaf906ff2011d2af79488c | [
"Apache-2.0"
] | null | null | null | thread_pool.cpp | sakky016/ThreadPool | f8c3410c9fa3a57a08eaf906ff2011d2af79488c | [
"Apache-2.0"
] | null | null | null | #include "thread_pool.h"
#include "job.h"
#include <Windows.h>
//******************************************************************************************
// @name : staticEntryPoint
//
// @description : This is the static thread entry point. This is used as a wrapper
// ... | 40.35426 | 125 | 0.495277 | sakky016 |
67596fbd2bdb4ad39e776ab7575d298f5a97f3fa | 552 | cpp | C++ | ARRAY/subarray_with_given_Sum.cpp | geeky01adarsh/DSA-Self-Paced-Course | e13902f47df0cb10b90e26d285aa97a9c6c03d97 | [
"MIT"
] | null | null | null | ARRAY/subarray_with_given_Sum.cpp | geeky01adarsh/DSA-Self-Paced-Course | e13902f47df0cb10b90e26d285aa97a9c6c03d97 | [
"MIT"
] | null | null | null | ARRAY/subarray_with_given_Sum.cpp | geeky01adarsh/DSA-Self-Paced-Course | e13902f47df0cb10b90e26d285aa97a9c6c03d97 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n, x;
cin >> n >> x;
int arr[n];
for (int i = 0; i < n; i++)
cin >> arr[i];
int k = 0, sum = 0;
for (int i = 0; i < n; i++)
{
sum += arr[i];
if (sum == x)
{
cout << k << " " << i << e... | 17.25 | 42 | 0.315217 | geeky01adarsh |
675d9aafab7fc5cd4f9f01340a86760cbf122b54 | 10,717 | cpp | C++ | LabProject07/Player.cpp | GameForPeople/KPU_3DGP_DirectX12 | f2a8320d9b796a531aebc40d23b660f889e86033 | [
"Apache-2.0"
] | null | null | null | LabProject07/Player.cpp | GameForPeople/KPU_3DGP_DirectX12 | f2a8320d9b796a531aebc40d23b660f889e86033 | [
"Apache-2.0"
] | null | null | null | LabProject07/Player.cpp | GameForPeople/KPU_3DGP_DirectX12 | f2a8320d9b796a531aebc40d23b660f889e86033 | [
"Apache-2.0"
] | null | null | null | //-----------------------------------------------------------------------------
// File: CPlayer.cpp
//-----------------------------------------------------------------------------
#include "stdafx.h"
#include "Player.h"
#include "Shader.h"
/////////////////////////////////////////////////////////////////////////////... | 34.130573 | 150 | 0.712979 | GameForPeople |
67694745465d727862e3e4932699eabb98dabe59 | 4,376 | cpp | C++ | BaseLib/StringTools.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | null | null | null | BaseLib/StringTools.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | 25 | 2015-02-04T20:34:21.000Z | 2018-12-10T20:19:57.000Z | BaseLib/StringTools.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | null | null | null | /**
* \file
* \author Thomas Fischer
* \date 2010-06-16
* \brief Implementation of string helper functions.
*
* \copyright
* Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
*... | 27.012346 | 97 | 0.58021 | norihiro-w |
676d1993049f84d0cf9e4ef3d4a2a1ba6dc99650 | 1,659 | cpp | C++ | Medium/211_Design_Add_And_Search_Words_Data_Structure.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | 1 | 2021-03-15T10:02:10.000Z | 2021-03-15T10:02:10.000Z | Medium/211_Design_Add_And_Search_Words_Data_Structure.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | Medium/211_Design_Add_And_Search_Words_Data_Structure.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | class WordDictionary {
private:
struct TrieNode {
TrieNode* children[26];
bool IsEnd;
TrieNode() : IsEnd(false) {
for(int i = 0; i < 26; i++)
children[i] = nullptr;
}
};
TrieNode* root;
public:
/** Initialize your data structure here. */
Wo... | 31.301887 | 128 | 0.522604 | ShehabMMohamed |
6775c63674c6685892670e6aba5e868bf2eb156d | 13,313 | cpp | C++ | src/simu/environment.cpp | dubkois/ReusWorld | 15ccf4dbde20d6b600b6e5dc706435d6dd4eb620 | [
"MIT"
] | null | null | null | src/simu/environment.cpp | dubkois/ReusWorld | 15ccf4dbde20d6b600b6e5dc706435d6dd4eb620 | [
"MIT"
] | null | null | null | src/simu/environment.cpp | dubkois/ReusWorld | 15ccf4dbde20d6b600b6e5dc706435d6dd4eb620 | [
"MIT"
] | null | null | null | #include "environment.h"
#include "tiniestphysicsengine.h"
#include "../config/simuconfig.h"
namespace simu {
static constexpr int debugEnvCTRL = 0;
static constexpr auto DURATION_FORMAT = "Format is [+|=]<years>";
using UL_EU = EnumUtils<UndergroundLayers>;
// ====================================================... | 27.677755 | 93 | 0.605348 | dubkois |
6777266e243f05122f09c8b35b705971e000a75e | 2,524 | cpp | C++ | digitanks/src/digitanks/units/scout.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | 5 | 2015-07-03T18:42:32.000Z | 2017-08-25T10:28:12.000Z | digitanks/src/digitanks/units/scout.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | null | null | null | digitanks/src/digitanks/units/scout.cpp | BSVino/Digitanks | 1bd1ed115493bce22001ae6684b70b8fcf135db0 | [
"BSD-4-Clause"
] | null | null | null | #include "scout.h"
#include <network/network.h>
#include <mtrand.h>
#include "ui/digitankswindow.h"
#include "ui/hud.h"
#include <digitanksgame.h>
#include <weapons/projectile.h>
REGISTER_ENTITY(CScout);
NETVAR_TABLE_BEGIN(CScout);
NETVAR_TABLE_END();
SAVEDATA_TABLE_BEGIN(CScout);
SAVEDATA_TABLE_END();
INPUTS_TAB... | 18.558824 | 80 | 0.719889 | BSVino |
6777d8a28ffd0337900c17c557e676065f0d140a | 351 | cpp | C++ | CodeForces/Colorful Stones (Simplified).cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | CodeForces/Colorful Stones (Simplified).cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | CodeForces/Colorful Stones (Simplified).cpp | abdelrahman0123/Problem-Solving | 9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define init ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
using namespace std;
int main() {
init;
// Code
string s, t;
cin >> s >> t;
int i = 0, j = 0;
while (i < s.size())
{
if (j >= t.size())
break;
else if (s[i] == t[j])
i++;
j++;
}
cout... | 15.954545 | 67 | 0.532764 | abdelrahman0123 |
67789ecd3da09edae784391943e6f9cf6ec9e161 | 149 | cpp | C++ | source/mc_touch.cpp | PaulSlocum/magic-carpet | 7bcbfffc11caa4fd4d4aaccd9031f3c138b4744b | [
"MIT"
] | 2 | 2020-01-10T01:31:51.000Z | 2021-01-24T23:30:57.000Z | source/mc_touch.cpp | PaulSlocum/magic-carpet | 7bcbfffc11caa4fd4d4aaccd9031f3c138b4744b | [
"MIT"
] | null | null | null | source/mc_touch.cpp | PaulSlocum/magic-carpet | 7bcbfffc11caa4fd4d4aaccd9031f3c138b4744b | [
"MIT"
] | null | null | null | // mc_touch.cpp
///////////////////////////////////////////////////////////////////////////////////////
#include <math.h>
#include "mc_touch.hpp"
| 18.625 | 87 | 0.275168 | PaulSlocum |
6779b7a064b3d93da6dc4628e7933b2610df4a60 | 916 | hpp | C++ | engine/lib/base-utils/include/noob/bitpack/bitpack.hpp | ColinGilbert/noobwerkz-engine | f5670e98ca0dada8865be9ab82d25d3acf549ebe | [
"Apache-2.0"
] | 23 | 2015-03-02T10:56:40.000Z | 2021-01-27T03:32:49.000Z | engine/lib/base-utils/include/noob/bitpack/bitpack.hpp | ColinGilbert/noobwerkz-engine-borked | f5670e98ca0dada8865be9ab82d25d3acf549ebe | [
"Apache-2.0"
] | 73 | 2015-04-14T09:39:05.000Z | 2020-11-11T21:49:10.000Z | engine/lib/base-utils/include/noob/bitpack/bitpack.hpp | ColinGilbert/noobwerkz-engine-borked | f5670e98ca0dada8865be9ab82d25d3acf549ebe | [
"Apache-2.0"
] | 3 | 2016-02-22T01:29:32.000Z | 2018-01-02T06:07:12.000Z | #pragma once
#include <tuple>
#include <cstdint>
namespace noob
{
// TODO:
// static uint32_t pack_8_to_32(uint8_t a, uint8_t b, uint8_t c, uint8_t d)
// {
// }
static uint64_t pack_32_to_64(uint32_t x, uint32_t y) noexcept(true)
{
return static_cast<uint64_t>(x) << 32 | y;
}
static std::tuple<uint32_t, u... | 22.341463 | 126 | 0.655022 | ColinGilbert |
677af183ebc9345c275b46648127644ff7e279d5 | 8,037 | cpp | C++ | test/TestDoublyLinkedList.cpp | Jon-edge/esp-rgb-led-matrix | 0eec32d71996096318bc8e529bda7f5f41612146 | [
"MIT"
] | null | null | null | test/TestDoublyLinkedList.cpp | Jon-edge/esp-rgb-led-matrix | 0eec32d71996096318bc8e529bda7f5f41612146 | [
"MIT"
] | null | null | null | test/TestDoublyLinkedList.cpp | Jon-edge/esp-rgb-led-matrix | 0eec32d71996096318bc8e529bda7f5f41612146 | [
"MIT"
] | null | null | null | /* MIT License
*
* Copyright (c) 2019 - 2022 Andreas Merkle <web@blue-andi.de>
*
* 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 ri... | 33.911392 | 81 | 0.480403 | Jon-edge |
677da7efc2c9325a7587bed1e3b10205a01088fe | 1,588 | cpp | C++ | cs256/project2/tthurlow-proj2.cpp | taylorthurlow/school-code | c801c2c5cbff0c8b6743b9cdefc6802382d3549f | [
"WTFPL"
] | null | null | null | cs256/project2/tthurlow-proj2.cpp | taylorthurlow/school-code | c801c2c5cbff0c8b6743b9cdefc6802382d3549f | [
"WTFPL"
] | null | null | null | cs256/project2/tthurlow-proj2.cpp | taylorthurlow/school-code | c801c2c5cbff0c8b6743b9cdefc6802382d3549f | [
"WTFPL"
] | null | null | null | //
// Name: Thurlow, Taylor
// Project: 2
// Due: 10/26/2016
// Course: cs25602
//
// Description:
// A guessing game. Generates a random number between 1 and 100, and asks the user
// to guess the right value. It will tell you higher or lower. To quit, give the
// number 0. After 8 incorrect ... | 28.872727 | 103 | 0.606423 | taylorthurlow |
67806769f92107dd5b5a24684ca88f20c3f99247 | 571 | hpp | C++ | include/sliding_window/search/load_ibf.hpp | eaasna/sliding-window | ffd69e361dbf639ba5fa0154785b6f9e53fa5db5 | [
"BSD-3-Clause"
] | null | null | null | include/sliding_window/search/load_ibf.hpp | eaasna/sliding-window | ffd69e361dbf639ba5fa0154785b6f9e53fa5db5 | [
"BSD-3-Clause"
] | 27 | 2021-08-13T14:56:21.000Z | 2022-01-28T12:13:47.000Z | include/sliding_window/search/load_ibf.hpp | eaasna/new-sliding-window | 921405288ecb163d451798f9eaa4553ba22e8d65 | [
"BSD-3-Clause"
] | 1 | 2021-11-01T14:22:21.000Z | 2021-11-01T14:22:21.000Z | #pragma once
#include <seqan3/std/filesystem>
#include <seqan3/search/dream_index/interleaved_bloom_filter.hpp>
namespace sliding_window
{
template <seqan3::data_layout ibf_data_layout>
void load_ibf(seqan3::interleaved_bloom_filter<ibf_data_layout> & ibf, std::filesystem::path const & ibf_file)
{
static uint8_... | 22.84 | 110 | 0.753065 | eaasna |
6782bcfd748a8957eca554e0bb8c8c5bd2bd4d9c | 3,149 | cpp | C++ | src/emulator/ops/cb/ops_6x.cpp | rizTaak/dmg-emulator | 9e91f1db98b3c7d7ee028a270e0454745c915019 | [
"Apache-2.0"
] | 1 | 2020-07-10T17:56:00.000Z | 2020-07-10T17:56:00.000Z | src/emulator/ops/cb/ops_6x.cpp | rizTaak/dmg-emulator | 9e91f1db98b3c7d7ee028a270e0454745c915019 | [
"Apache-2.0"
] | null | null | null | src/emulator/ops/cb/ops_6x.cpp | rizTaak/dmg-emulator | 9e91f1db98b3c7d7ee028a270e0454745c915019 | [
"Apache-2.0"
] | null | null | null | #include <emulator/cpu.h>
#include <spdlog/fmt/fmt.h>
#include <emulator/ops/common.h>
namespace emulator {
void Cpu::add_cb6x() {
add_bc_op(0x60, +[](Cpu &cpu) -> clock_t {
//BIT 4,B
//2 8
//Z 0 1 -
bit_4(cpu, cpu.m_b);
return 8;
});
... | 25.811475 | 53 | 0.33979 | rizTaak |
6786838e529c9f9d83ff393067f36a2708812a8b | 579 | cpp | C++ | Source/BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.cpp | homeguatlla/BattleRoyale | 9d68a4a902c9b0052788769ae6b963d65ef060a4 | [
"Unlicense"
] | 2 | 2022-02-11T07:25:49.000Z | 2022-03-14T23:00:28.000Z | Source/BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.cpp | homeguatlla/BattleRoyale | 9d68a4a902c9b0052788769ae6b963d65ef060a4 | [
"Unlicense"
] | null | null | null | Source/BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.cpp | homeguatlla/BattleRoyale | 9d68a4a902c9b0052788769ae6b963d65ef060a4 | [
"Unlicense"
] | null | null | null | #include "BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.h"
#include "BattleRoyale/BattleRoyale.h"
#include "BattleRoyale/core/GameMode/BattleRoyale/FSM/BattleRoyaleContext.h"
namespace BRModeFSM
{
Synchronize::Synchronize()
{
}
void Synchronize::OnEnter(float deltaTime)
{
UE_LOG(LogFSM, Log, T... | 27.571429 | 121 | 0.766839 | homeguatlla |
6789afa2abadf860a7c0000c49675417812afb11 | 13,092 | cpp | C++ | lib/src/Hotel.cpp | glbwsk/oop | 7856a909bfdd197dc13c0f6945ef9c6e00aaa889 | [
"MIT"
] | 1 | 2020-07-02T17:16:29.000Z | 2020-07-02T17:16:29.000Z | lib/src/Hotel.cpp | glbwsk/oop | 7856a909bfdd197dc13c0f6945ef9c6e00aaa889 | [
"MIT"
] | null | null | null | lib/src/Hotel.cpp | glbwsk/oop | 7856a909bfdd197dc13c0f6945ef9c6e00aaa889 | [
"MIT"
] | 1 | 2021-05-28T13:13:19.000Z | 2021-05-28T13:13:19.000Z | #include "Hotel.hpp"
#include "Address.hpp"
#include "Equipment.hpp"
#define MANAGER 1
#define RECEPTIONIST 2
#define CLEANER 3
#define CUSTOMER 4
Hotel::Hotel( IHotel* iHotel )
{
this->iHotel = iHotel;
Manager defaultManager( Employee( Person( "Jan", "Janowicz", "abc@hotel.com", "555-555-100",
... | 22.227504 | 128 | 0.463947 | glbwsk |
678ee36699488310d4b174fa07f5660ddaaf9c92 | 1,355 | cc | C++ | passes/brisc/autosynth.cc | nblei/yosys | de68e13c36f098d615177d03dfc97818fe947d24 | [
"ISC"
] | 1 | 2020-03-08T20:57:53.000Z | 2020-03-08T20:57:53.000Z | passes/brisc/autosynth.cc | nblei/yosys | de68e13c36f098d615177d03dfc97818fe947d24 | [
"ISC"
] | null | null | null | passes/brisc/autosynth.cc | nblei/yosys | de68e13c36f098d615177d03dfc97818fe947d24 | [
"ISC"
] | null | null | null | #include "kernel/yosys.h"
USING_YOSYS_NAMESPACE
PRIVATE_NAMESPACE_BEGIN
struct AutoSynthPass : public ScriptPass
{
AutoSynthPass()
: ScriptPass("auto_synth", "Synthesize verilog to logical gates") {}
std::string verilog_path;
void help() YS_OVERRIDE
{
log("\n");
log(" auto... | 20.223881 | 76 | 0.518081 | nblei |
09689818067a6410997734d10f4ffc79c7f88c48 | 861 | cpp | C++ | Capitulo03/Exercicios/GradeBookModificado/GradeBookModificado01.cpp | pedro-filho-81/C_Mais_Mais | d55105f62c626de3245697095532281c8254a9bd | [
"MIT"
] | null | null | null | Capitulo03/Exercicios/GradeBookModificado/GradeBookModificado01.cpp | pedro-filho-81/C_Mais_Mais | d55105f62c626de3245697095532281c8254a9bd | [
"MIT"
] | null | null | null | Capitulo03/Exercicios/GradeBookModificado/GradeBookModificado01.cpp | pedro-filho-81/C_Mais_Mais | d55105f62c626de3245697095532281c8254a9bd | [
"MIT"
] | null | null | null | #include <string>
#include "GradeBookModificado01.h"
GradeBookModificado01::GradeBookModificado01(string cursoNome, string professorNome )
{
setNomeDoCurso( cursoNome );
setNomeDoProfessor( professorNome );
} // fim construtor
void GradeBookModificado01::setNomeDoCurso( string nome )
{
nomeDoCurso = nome;... | 24.6 | 85 | 0.745645 | pedro-filho-81 |
096b3878e1ba93c0b3657cfdccda73587ce5fb49 | 46,819 | cpp | C++ | tests/strtrie/strtrie.cpp | gknowles/dimapp | daadd9afe5fb1a6f716c431411e20c48ca180f9f | [
"BSL-1.0"
] | 1 | 2016-07-20T18:43:34.000Z | 2016-07-20T18:43:34.000Z | tests/strtrie/strtrie.cpp | gknowles/dimapp | daadd9afe5fb1a6f716c431411e20c48ca180f9f | [
"BSL-1.0"
] | 4 | 2016-08-30T05:29:18.000Z | 2016-11-07T04:02:15.000Z | tests/strtrie/strtrie.cpp | gknowles/dimapp | daadd9afe5fb1a6f716c431411e20c48ca180f9f | [
"BSL-1.0"
] | 1 | 2017-10-20T22:31:17.000Z | 2017-10-20T22:31:17.000Z | // Copyright Glen Knowles 2019 - 2021.
// Distributed under the Boost Software License, Version 1.0.
//
// Uses the page height minimization algorithm for trees described in
// "Clustering Techniques for Minimizing External Path Length"
// https://tinyurl.com/y52mkc22
//
// strtrie.cpp - dim core
#include "pch.h"
#prag... | 29.445912 | 79 | 0.455755 | gknowles |
096b9d70fcad92e5c144141688f96f86c1e74089 | 275 | cpp | C++ | Floor Of Array.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 2 | 2021-10-01T04:20:04.000Z | 2021-10-01T04:20:06.000Z | Floor Of Array.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 1 | 2021-10-01T18:00:09.000Z | 2021-10-01T18:00:09.000Z | Floor Of Array.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 8 | 2021-10-01T04:20:38.000Z | 2022-03-19T17:05:05.000Z | int findFloor(vector<long long> v, long long n, long long x){
int in=-1;
int min=INT_MAX;
for(int i=0;i<n;i++){
if(x>=v[i]&&abs(x-v[i])<min){
in=i;
min=x-v[i];
}
}
return in;
}
| 22.916667 | 61 | 0.385455 | Subhash3 |
096d504acf71c97e7600ed86b5ea9e811bd54a00 | 1,559 | hpp | C++ | components/rgbd-sources/src/sources/stereovideo/pylon.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 4 | 2020-12-28T15:29:15.000Z | 2021-06-27T12:37:15.000Z | components/rgbd-sources/src/sources/stereovideo/pylon.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | null | null | null | components/rgbd-sources/src/sources/stereovideo/pylon.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 2 | 2021-01-13T05:28:39.000Z | 2021-05-04T03:37:11.000Z | #pragma once
#ifndef _FTL_RGBD_PYLONDEVICE_HPP_
#define _FTL_RGBD_PYLONDEVICE_HPP_
#include "device.hpp"
#include <string>
namespace Pylon {
class CBaslerUniversalInstantCamera;
class CGrabResultPtr;
}
namespace ftl {
namespace rgbd {
namespace detail {
class PylonDevice : public ftl::rgbd::detail::Device {
public... | 22.594203 | 96 | 0.760103 | knicos |
096dcb72e99251322d92755ff23eb35b927ceb12 | 1,367 | cpp | C++ | src/CwApplication.cpp | asanoic/catwalk | 8ce002278c03915a98477a111737f70c6a5e519d | [
"OLDAP-2.3"
] | 1 | 2020-11-13T20:24:12.000Z | 2020-11-13T20:24:12.000Z | src/CwApplication.cpp | asanoic/catwalk | 8ce002278c03915a98477a111737f70c6a5e519d | [
"OLDAP-2.3"
] | null | null | null | src/CwApplication.cpp | asanoic/catwalk | 8ce002278c03915a98477a111737f70c6a5e519d | [
"OLDAP-2.3"
] | null | null | null | #include "CwApplication.h"
#include "CwApplicationData.h"
#include <iostream>
#include <memory>
#include <thread>
using namespace std;
#include "engine/listener.h"
#include "engine/utils.h"
void __attribute__((constructor)) initForOpenFileLimited() {
#ifdef __MINGW64__
_setmaxstdio(2048);
#endif
}... | 25.314815 | 109 | 0.650329 | asanoic |
0979afe0a6e6a95dfbfc910549edb8459ba846c1 | 915 | cpp | C++ | test/algorithms/math/test_valid_perfect_square.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | test/algorithms/math/test_valid_perfect_square.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | test/algorithms/math/test_valid_perfect_square.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #include <boost/test/unit_test.hpp>
#include "algorithms/math/valid_perfect_square.hpp"
BOOST_AUTO_TEST_SUITE(TestValidPerfectSquare)
BOOST_AUTO_TEST_CASE(test_vps_check)
{
ValidPerfectSquare::Solution solution;
BOOST_CHECK(false == solution.isPerfectSquare(0));
BOOST_CHECK(true == solution.isPerfectSquar... | 38.125 | 59 | 0.75847 | iamantony |
097a5ac722d9f049e8413f4010025840d121e6da | 532 | hpp | C++ | include/mnps.hpp | owlas/magpy | 45c1332209154ef6be863e4797054a0b642493ec | [
"BSD-3-Clause"
] | 5 | 2017-11-13T21:55:45.000Z | 2020-12-29T10:42:41.000Z | include/mnps.hpp | owlas/magpy | 45c1332209154ef6be863e4797054a0b642493ec | [
"BSD-3-Clause"
] | 9 | 2017-10-06T09:30:08.000Z | 2018-02-17T17:17:38.000Z | include/mnps.hpp | owlas/magpy | 45c1332209154ef6be863e4797054a0b642493ec | [
"BSD-3-Clause"
] | 2 | 2017-11-24T16:18:46.000Z | 2020-06-08T11:54:40.000Z | // mnps.hpp
//
// structs for magnetic nanoparticles
#ifndef MNP_H
#define MNP_H
#include <array>
namespace mnp
{
using axis = std::array<double,3>;
struct params {
double gamma;
double alpha;
double saturation_mag;
double diameter;
double anisotropy;
axis aniso... | 17.16129 | 38 | 0.597744 | owlas |
097a63a796b6294c81238f64ffb288d36635652d | 9,727 | cpp | C++ | interface/posix/src/posix.cpp | ArcticNature/core | bb63529a6deadc83e5adc3b772738ab6ca6ba18a | [
"BSD-3-Clause"
] | null | null | null | interface/posix/src/posix.cpp | ArcticNature/core | bb63529a6deadc83e5adc3b772738ab6ca6ba18a | [
"BSD-3-Clause"
] | null | null | null | interface/posix/src/posix.cpp | ArcticNature/core | bb63529a6deadc83e5adc3b772738ab6ca6ba18a | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 Stefano Pogliani <stefano@spogliani.net>
#include "core/interface/posix.h"
#include <fcntl.h>
#include <libgen.h>
#include <stdio.h>
#include <string.h>
#include <sys/eventfd.h>
#include <sys/signalfd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <string>
#include "co... | 21.567627 | 78 | 0.649738 | ArcticNature |
097bcabbe3c9218972341b23f292892431ee5600 | 20,444 | cpp | C++ | SOURCES/sim/digi/autopilot.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/sim/digi/autopilot.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/sim/digi/autopilot.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | #include <math.h> // MD -- 20031107: for mods to AltHold()
#include "stdhdr.h"
#include "digi.h"
#include "simveh.h"
#include "airframe.h"
#include "Aircrft.h"
#include "otwdrive.h"
#include "Graphics\Include\tmap.h"
#include "lantirn.h"
#include "cpmanager.h"
#include "cphsi.h"
#include "pilotinputs.h"
#include "flig... | 29.039773 | 178 | 0.641851 | IsraelyFlightSimulator |
097c224d63f33cfa6cd5c99980bb6d1347a0ebe9 | 8,358 | cpp | C++ | src/problem/cliquetable/cliquetable_instance.cpp | ctjandra/ddopt-bounds | aaf7407da930503a17969cee71718ffcf0c1fe96 | [
"MIT"
] | null | null | null | src/problem/cliquetable/cliquetable_instance.cpp | ctjandra/ddopt-bounds | aaf7407da930503a17969cee71718ffcf0c1fe96 | [
"MIT"
] | null | null | null | src/problem/cliquetable/cliquetable_instance.cpp | ctjandra/ddopt-bounds | aaf7407da930503a17969cee71718ffcf0c1fe96 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <vector>
#include "cliquetable_instance.hpp"
#include "cliquetable_cons_id.hpp"
#include "../bp/cons_id.hpp"
using namespace std;
CliqueTableInstance::CliqueTableInstance(SCIP* scip, bool include_ct_rows, bool mask_transitive)
{
// Assume SCIP is mid-solve
assert(SC... | 26.449367 | 124 | 0.648241 | ctjandra |
097ede797a108bf3f4532ac0e043b0db462d367c | 388 | cpp | C++ | Entrenamiento/Temas/Sorting/MergeSort.cpp | snat-s/competitiva | a743f323e1bedec4709416ef684a0c6a15e42e00 | [
"MIT"
] | null | null | null | Entrenamiento/Temas/Sorting/MergeSort.cpp | snat-s/competitiva | a743f323e1bedec4709416ef684a0c6a15e42e00 | [
"MIT"
] | null | null | null | Entrenamiento/Temas/Sorting/MergeSort.cpp | snat-s/competitiva | a743f323e1bedec4709416ef684a0c6a15e42e00 | [
"MIT"
] | null | null | null | #include <cmath>
#include <vector>
std::vector<int> mergeSort(std::vector<int> data, int right, int left) {
if(left < right) {
int middle = floor(right+left)/2;
mergeSort(data, left, middle);
mergeSort(data, middle+1, right);
merge(data, right, left, middle);
}
return data;
}
std::vector<int> m... | 24.25 | 80 | 0.646907 | snat-s |
0985c71e6aeac7f61cd1b8e09839e9dae858ce7c | 1,040 | cpp | C++ | Ejercicios/Ejercicio4-todas-las-variables/todas-las-variables.cpp | Maldanar201/LenguajeProgramacion1 | 5a53c51077c0e41deff8daf40dbe6f0778b41f9c | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio4-todas-las-variables/todas-las-variables.cpp | Maldanar201/LenguajeProgramacion1 | 5a53c51077c0e41deff8daf40dbe6f0778b41f9c | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio4-todas-las-variables/todas-las-variables.cpp | Maldanar201/LenguajeProgramacion1 | 5a53c51077c0e41deff8daf40dbe6f0778b41f9c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
cout << " TIPOS DE VARIABLES "<< endl;
cout << "\n variables numericas "<< endl;
cout << " 'int' entero "<< endl;
cout << " 'float' numero flotante con digitos decimales"<< endl;
cout << " 'double' incleye todos los realeas con n... | 30.588235 | 74 | 0.620192 | Maldanar201 |
0986174a6911768f7ff35059ee4aa71526ab4924 | 598 | hpp | C++ | libs/TDEBUG/tdebug.hpp | ei0/TUGUI | d7a1dc976b907eeac871dba1bc2e5cdbc88d6a0a | [
"MIT"
] | null | null | null | libs/TDEBUG/tdebug.hpp | ei0/TUGUI | d7a1dc976b907eeac871dba1bc2e5cdbc88d6a0a | [
"MIT"
] | null | null | null | libs/TDEBUG/tdebug.hpp | ei0/TUGUI | d7a1dc976b907eeac871dba1bc2e5cdbc88d6a0a | [
"MIT"
] | null | null | null | /*
* @Author: SPeak Shen
* @Date: 2021-11-13 23:12:38
* @Last Modified by: SPeak Shen
* @Last Modified time: 2021-11-17 00:25:41
*/
#ifndef __TDEBUG_HPP__
#define __TDEBUG_HPP__
namespace TDEBUG {
enum class RT {
ERROR = -1,
SUCCESS = 0
};
inline static void
crash() {
*((char *)0) = 'E';
}
// ... | 18.6875 | 71 | 0.496656 | ei0 |
0986ae8c5afdf81b8bfa099b06e3a7b2438a234b | 41 | hpp | C++ | src/Headers/SFML_Tools.hpp | nerdtronik/SonoGUI | 11cb69b94bf906234ee4c147261e9ef0ebcce509 | [
"MIT"
] | null | null | null | src/Headers/SFML_Tools.hpp | nerdtronik/SonoGUI | 11cb69b94bf906234ee4c147261e9ef0ebcce509 | [
"MIT"
] | null | null | null | src/Headers/SFML_Tools.hpp | nerdtronik/SonoGUI | 11cb69b94bf906234ee4c147261e9ef0ebcce509 | [
"MIT"
] | null | null | null | #pragma once
#include "OpenGL_Tools.hpp"
| 13.666667 | 27 | 0.780488 | nerdtronik |
098c7fc2fb356fecf65505597cb0e4a8dd12052c | 1,615 | cpp | C++ | dijkstry.cpp | lukaszplk/dijkstry | d018263200c3e662639153b8ac5ba04ad75b643c | [
"MIT"
] | null | null | null | dijkstry.cpp | lukaszplk/dijkstry | d018263200c3e662639153b8ac5ba04ad75b643c | [
"MIT"
] | null | null | null | dijkstry.cpp | lukaszplk/dijkstry | d018263200c3e662639153b8ac5ba04ad75b643c | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
struct lista{
lista *next;
int v, w;
};
const int infinity = 1000;
int main(){
int i, j, m, n, u, w, v, x, y, *d, *p, *Stos, tmp;
bool *QS;
lista **graf;
lista *a, *b;
cin >> v >> n >> m; //start, l wierzcholkow, l krawedzi;
d ... | 19.457831 | 61 | 0.347988 | lukaszplk |
098feead4d54c23d2b37bc0b9a3ec13f091a860a | 1,134 | hpp | C++ | include/ConsoleParser.hpp | michalloska/SOLID_time_and_zone_converter | 0da9d740290f650bbb9611c4660d7d542f6a2605 | [
"MIT"
] | null | null | null | include/ConsoleParser.hpp | michalloska/SOLID_time_and_zone_converter | 0da9d740290f650bbb9611c4660d7d542f6a2605 | [
"MIT"
] | null | null | null | include/ConsoleParser.hpp | michalloska/SOLID_time_and_zone_converter | 0da9d740290f650bbb9611c4660d7d542f6a2605 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <tuple>
#include <map>
class Time;
class TimeZone;
namespace ConsoleParsers
{
using TimeConversionConsoleArguments = std::tuple<Time, TimeZone, TimeZone>;
using TimeConversionRawConsoleArguments = std::map<std::string, std::string>;
class TimeConversio... | 35.4375 | 104 | 0.733686 | michalloska |
09944f2675bcd96b3ec7e607a764e523d8da085d | 866 | cpp | C++ | Algorithm - BOJ/boj_18870.cpp | kangjunseo/C- | eafdf57a22b3a794d09cab045d6d60c2842ba347 | [
"MIT"
] | 2 | 2021-08-30T12:37:57.000Z | 2021-11-29T05:42:05.000Z | Algorithm - BOJ/boj_18870.cpp | kangjunseo/C- | eafdf57a22b3a794d09cab045d6d60c2842ba347 | [
"MIT"
] | null | null | null | Algorithm - BOJ/boj_18870.cpp | kangjunseo/C- | eafdf57a22b3a794d09cab045d6d60c2842ba347 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <cstdlib>
using namespace std;
bool comp(pair<double,int> a, pair<double,int> b){
return a.first < b.first;
}
bool comp2(pair<double,int> a, pair<double,int> b){
return a.second < b.second;
}
int main() {
int N;
cin>>N;
vector <pair<double... | 20.619048 | 61 | 0.58545 | kangjunseo |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.