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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e41c82a22deb36b5636288ed2d49dfd80694a9bb | 3,246 | cpp | C++ | Magic_Pinball/ModuleWinScreen.cpp | Nadine044/PinballGame | 51a1638504a7a539f72e207059398742f4fbb5b0 | [
"MIT"
] | null | null | null | Magic_Pinball/ModuleWinScreen.cpp | Nadine044/PinballGame | 51a1638504a7a539f72e207059398742f4fbb5b0 | [
"MIT"
] | null | null | null | Magic_Pinball/ModuleWinScreen.cpp | Nadine044/PinballGame | 51a1638504a7a539f72e207059398742f4fbb5b0 | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModuleRender.h"
#include "ModuleSceneIntro.h"
#include "ModuleInput.h"
#include "ModuleTextures.h"
#include "ModuleAudio.h"
#include "ModulePhysics.h"
#include "ModuleFonts.h"
#include "ModuleWinScreen.h"
ModuleWinScreen::ModuleWinScreen(Application* app, bool st... | 27.982759 | 99 | 0.731362 | Nadine044 |
e41d2e0fc8fd096b2389dbb91cb6a1ac522929cf | 4,166 | cpp | C++ | LinkedList/main.cpp | rsghotra/InterviewQuestions | 41dadd4c523bc267e4ec4b238e6a98749f655915 | [
"Apache-2.0"
] | null | null | null | LinkedList/main.cpp | rsghotra/InterviewQuestions | 41dadd4c523bc267e4ec4b238e6a98749f655915 | [
"Apache-2.0"
] | null | null | null | LinkedList/main.cpp | rsghotra/InterviewQuestions | 41dadd4c523bc267e4ec4b238e6a98749f655915 | [
"Apache-2.0"
] | 1 | 2020-12-08T23:52:00.000Z | 2020-12-08T23:52:00.000Z | #include<iostream>
#include<stack>
using namespace std;
struct Node {
int data;
Node* next;
};
void Display(Node* root) {
if(root == 0) return;
cout << root->data << " ";
Display(root->next);
}
void Display_Reverse(Node* ptr) {
if(ptr == 0) return;
Display_Reverse(ptr->next);
cout << ... | 19.933014 | 71 | 0.460634 | rsghotra |
e41d59456a9a06f7fb0bd118be260f7e6672dcfb | 5,846 | cpp | C++ | spt/features/vag_searcher.cpp | tmob03/SourcePauseTool | 5bc27b63c74a2392803c0471067d2af138c43efd | [
"RSA-MD"
] | 1 | 2021-11-13T05:42:45.000Z | 2021-11-13T05:42:45.000Z | spt/features/vag_searcher.cpp | lipsanen/SourcePauseTool | 5bc27b63c74a2392803c0471067d2af138c43efd | [
"RSA-MD"
] | null | null | null | spt/features/vag_searcher.cpp | lipsanen/SourcePauseTool | 5bc27b63c74a2392803c0471067d2af138c43efd | [
"RSA-MD"
] | null | null | null | #include "stdafx.h"
#if defined(SSDK2007) || defined(SSDK2013)
#include "vag_searcher.hpp"
#include "interfaces.hpp"
#include "property_getter.hpp"
#include "ent_utils.hpp"
#include "..\utils\game_detection.hpp"
#include "playerio.hpp"
#include "signals.hpp"
#include "..\sptlib-wrapper.hpp"
#include "..\cvars.hpp"
Va... | 24.563025 | 130 | 0.703558 | tmob03 |
e4306caacd464c373eed496cc400eb031069e85c | 2,480 | cc | C++ | TrkEnv/KalContext.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkEnv/KalContext.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkEnv/KalContext.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// File and Version Information:
// $Id: KalContext.cc 103 2010-01-15 12:12:27Z stroili $
//
// Description:
// class KalContext
//
// Environment:
// Software developed for the BaBar Detector at the SLAC B-Factory.
//
// Copyri... | 36.470588 | 101 | 0.683468 | brownd1978 |
e431373d95390ab0acacdb53fea607098f0f35f0 | 110 | cpp | C++ | utils/string.cpp | KieQ/kies-code-backend | 01013cbbd0e27f62e3f01f6e8cad6ef34ebf9116 | [
"MIT"
] | null | null | null | utils/string.cpp | KieQ/kies-code-backend | 01013cbbd0e27f62e3f01f6e8cad6ef34ebf9116 | [
"MIT"
] | null | null | null | utils/string.cpp | KieQ/kies-code-backend | 01013cbbd0e27f62e3f01f6e8cad6ef34ebf9116 | [
"MIT"
] | null | null | null | #include "string.hpp"
#include <sstream>
#include <spdlog/spdlog.h>
namespace utils
{
} // namespace utils
| 11 | 26 | 0.709091 | KieQ |
e43c378d0da5154e6d5bb7737c84395c481c8b8c | 529 | hpp | C++ | src/scanner-setup.hpp | hvellyr/sairy | 3b7b797c71384222d58b67bded24ee5b5cc6aa2a | [
"BSD-3-Clause"
] | null | null | null | src/scanner-setup.hpp | hvellyr/sairy | 3b7b797c71384222d58b67bded24ee5b5cc6aa2a | [
"BSD-3-Clause"
] | null | null | null | src/scanner-setup.hpp | hvellyr/sairy | 3b7b797c71384222d58b67bded24ee5b5cc6aa2a | [
"BSD-3-Clause"
] | 1 | 2018-01-29T10:57:09.000Z | 2018-01-29T10:57:09.000Z | // Copyright (c) 2015 Gregor Klinke
// All rights reserved.
#pragma once
#include "cxxopts.hpp"
#include "fspp/filesystem.hpp"
#include <memory>
#include <string>
#include <vector>
namespace eyestep {
class IScanner;
class ToolSetup;
std::vector<std::string> all_scanners();
void add_scanner_options(cxxopts::Opt... | 18.892857 | 75 | 0.725898 | hvellyr |
e43e7f4cda0505e48ea34f65a39979fe0d4a5b08 | 2,216 | cpp | C++ | src/PL_gen.cpp | ogoodwin505/BdNMC | 3090857257104cffdc3c03f2c6c0c93a9850bfb3 | [
"MIT"
] | null | null | null | src/PL_gen.cpp | ogoodwin505/BdNMC | 3090857257104cffdc3c03f2c6c0c93a9850bfb3 | [
"MIT"
] | null | null | null | src/PL_gen.cpp | ogoodwin505/BdNMC | 3090857257104cffdc3c03f2c6c0c93a9850bfb3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <memory>
#include "Kinematics.h"
#include "Distribution.h"
#include "Particle_List.h"
#include "sanfordwang.h"
#include "BMPT_dist.h"
#include "Parameter.h"
using std::cout;
using std::endl;
int main(int argc, char* argv[]){
if(argc==2)
parameter_file = argv[1... | 28.050633 | 137 | 0.570397 | ogoodwin505 |
e441694e9b76e45731f288e94065a3bc96cd5532 | 4,100 | cpp | C++ | src/ScoreKeeperShared.cpp | MidflightDigital/stepmania | dbce5016978e5ab51aaa6a4fb21ef2c7ce68e52e | [
"MIT"
] | 7 | 2019-01-06T01:09:55.000Z | 2021-01-21T00:00:19.000Z | src/ScoreKeeperShared.cpp | MidflightDigital/stepmania | dbce5016978e5ab51aaa6a4fb21ef2c7ce68e52e | [
"MIT"
] | 6 | 2020-07-29T17:45:36.000Z | 2020-07-29T18:48:03.000Z | src/ScoreKeeperShared.cpp | MidflightDigital/stepmania | dbce5016978e5ab51aaa6a4fb21ef2c7ce68e52e | [
"MIT"
] | 5 | 2019-01-06T01:48:34.000Z | 2021-11-25T21:19:07.000Z | #include "global.h"
#include "ScoreKeeperShared.h"
#include "RageLog.h"
#include "GameState.h"
#include "PlayerState.h"
using std::vector;
/* In Routine, we have two Players, but the master one handles all of the scoring. The other
* one will just receive misses for everything, and shouldn't do anything. */
ScoreKe... | 35.964912 | 135 | 0.775366 | MidflightDigital |
e44191808ac9f90480ba55a60c661cb48517c757 | 1,181 | cpp | C++ | Game/SceneEdit/src/Handler.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/SceneEdit/src/Handler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/SceneEdit/src/Handler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "Handler.h"
#include "SceneManipulator.h"
namespace WX {
OperatorManager* Handler::getOperatorManager(void) const { return getSceneManipulator()->getOperatorManager(); }
Ogre::Root* Handler::getRoot(void) const { return getSceneManipulator()->getRoot(); }
Ogre::RenderWindow* Handler::get... | 59.05 | 130 | 0.718882 | hackerlank |
e4421de37b4667746430734e99e72dad4272f78a | 1,015 | hpp | C++ | industry/enum/options/scope.hpp | MaulingMonkey/libindustry | 575c61caaa6a43822b7a74a95345563e8da20201 | [
"BSL-1.0"
] | null | null | null | industry/enum/options/scope.hpp | MaulingMonkey/libindustry | 575c61caaa6a43822b7a74a95345563e8da20201 | [
"BSL-1.0"
] | null | null | null | industry/enum/options/scope.hpp | MaulingMonkey/libindustry | 575c61caaa6a43822b7a74a95345563e8da20201 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2008 Michael B. Edwin Rickert
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// $LastChangedBy$ - $LastChangedDate$
#ifndef IG_INDUSTRY_ENUM_OPTIONS_SCOPE
#define IG_INDUSTRY_ENUM_OPTIONS... | 44.130435 | 88 | 0.534975 | MaulingMonkey |
e44a44da6527b9a594929aa354df1abb187528e6 | 12,149 | cpp | C++ | tests/CppUTest/SimpleStringCacheTest.cpp | geerjasaumya/cpputest | a72afe8e24f31ff2389098ba195aa85b6786802d | [
"BSD-3-Clause"
] | 2 | 2016-02-04T16:34:01.000Z | 2021-05-27T17:48:15.000Z | tests/CppUTest/SimpleStringCacheTest.cpp | geerjasaumya/cpputest | a72afe8e24f31ff2389098ba195aa85b6786802d | [
"BSD-3-Clause"
] | null | null | null | tests/CppUTest/SimpleStringCacheTest.cpp | geerjasaumya/cpputest | a72afe8e24f31ff2389098ba195aa85b6786802d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright... | 31.151282 | 138 | 0.734134 | geerjasaumya |
e44e60d03a5d08cf73cdccf9044fc73b4e316ef0 | 823 | hpp | C++ | src/util/log.hpp | larsrh/associative | 5e8a6c5d03e4726e85c8835df5d7458dff00f95a | [
"Apache-2.0"
] | null | null | null | src/util/log.hpp | larsrh/associative | 5e8a6c5d03e4726e85c8835df5d7458dff00f95a | [
"Apache-2.0"
] | null | null | null | src/util/log.hpp | larsrh/associative | 5e8a6c5d03e4726e85c8835df5d7458dff00f95a | [
"Apache-2.0"
] | null | null | null | #ifndef ASSOCIATIVE_LOG_HPP
#define ASSOCIATIVE_LOG_HPP
#include <log4cpp/Appender.hh>
#include <log4cpp/Layout.hh>
#include <log4cpp/Category.hh>
#include <log4cpp/Priority.hh>
#include "util.hpp"
#define TRACE(LOGGER, MSG) \
LOGGER->debug() << __FILE__ << ":" << __LINE__ << " " << (MSG);
namespace associative
{
... | 20.073171 | 64 | 0.712029 | larsrh |
e44e76a926519fea50faada456f32996b911b0e5 | 13,065 | cpp | C++ | running_process.cpp | karagenit/task-manager | 4d503370d1e3712b59389f13be53b5e23c1f5459 | [
"MIT"
] | null | null | null | running_process.cpp | karagenit/task-manager | 4d503370d1e3712b59389f13be53b5e23c1f5459 | [
"MIT"
] | null | null | null | running_process.cpp | karagenit/task-manager | 4d503370d1e3712b59389f13be53b5e23c1f5459 | [
"MIT"
] | null | null | null | #include "running_process.h"
#include <dirent.h>
#include <unistd.h>
#include <sstream>
#include <fstream>
#include <cstring>
#include <iostream>
#include <iomanip>
#include "helper_functions.h"
RunningProcess::RunningProcess(int pid) {
// set pid
this->parent_ = NULL;
this->pid = pid;
parent_pid_ = 0;
... | 25.567515 | 78 | 0.641255 | karagenit |
e4551d9dce1886aeb2f7f4ea70480f8f2a67d441 | 3,859 | cpp | C++ | CC/marLong/wireless-electricity/checker_public.cpp | saurav-07/CompetitiveProgramming | 40956567e077fe0785cd0904d1969e02a1eff7ee | [
"MIT"
] | 3 | 2020-10-09T11:25:19.000Z | 2021-02-15T10:40:08.000Z | CC/marLong/wireless-electricity/checker_public.cpp | saurav-07/CompetitiveProgramming | 40956567e077fe0785cd0904d1969e02a1eff7ee | [
"MIT"
] | null | null | null | CC/marLong/wireless-electricity/checker_public.cpp | saurav-07/CompetitiveProgramming | 40956567e077fe0785cd0904d1969e02a1eff7ee | [
"MIT"
] | 3 | 2021-02-10T16:29:04.000Z | 2021-02-21T16:33:01.000Z | #include<bits/stdc++.h>
#define PIN "secret/0.in"
#define POUT "secret/0.bad"
#define TOUT "secret/0.bad"
#define SCORE "secret/0.scr"
FILE *spoj_p_in, *spoj_p_out, *spoj_t_out, *spoj_score;
void spoj_init(){
spoj_p_in=fopen(PIN, "r");
spoj_p_out=fopen(POUT, "r");
spoj_t_out=fopen(TOUT, "r");
spoj_score=fopen(... | 25.222222 | 83 | 0.506349 | saurav-07 |
e4557e8f7952c017983a3226542915a2be371ee0 | 277 | cpp | C++ | Modbus Poll/CVcRect.cpp | DHSERVICE56/T3000_Building_Automation_System | 77bd47a356211b1c8ad09fb8d785e9f880d3cd26 | [
"MIT"
] | 1 | 2019-12-11T05:14:08.000Z | 2019-12-11T05:14:08.000Z | Modbus Poll/CVcRect.cpp | DHSERVICE56/T3000_Building_Automation_System | 77bd47a356211b1c8ad09fb8d785e9f880d3cd26 | [
"MIT"
] | null | null | null | Modbus Poll/CVcRect.cpp | DHSERVICE56/T3000_Building_Automation_System | 77bd47a356211b1c8ad09fb8d785e9f880d3cd26 | [
"MIT"
] | 1 | 2021-05-31T18:56:31.000Z | 2021-05-31T18:56:31.000Z | // CVcRect.cpp : Definition of ActiveX Control wrapper class(es) created by Microsoft Visual C++
#include "stdafx.h"
#include "CVcRect.h"
/////////////////////////////////////////////////////////////////////////////
// CVcRect
// CVcRect properties
// CVcRect operations
| 21.307692 | 97 | 0.523466 | DHSERVICE56 |
e45665d4872f17e648ed56e01d4d0d2393778336 | 5,087 | cpp | C++ | test/integration/binary/binaries_test.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1,467 | 2016-10-25T12:27:19.000Z | 2022-03-28T04:32:05.000Z | test/integration/binary/binaries_test.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 2,366 | 2016-10-25T10:07:57.000Z | 2022-03-31T22:03:24.000Z | test/integration/binary/binaries_test.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 662 | 2016-10-26T04:41:22.000Z | 2022-03-31T04:15:02.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "integration/binary/binaries_test_fixture.hpp"
using namespace shared_model::interface;
using BinaryTestTypes = ::testing::Types<
binary_test::PythonLauncher>; //, binary_test::JavaLauncher>;
TYPED_TES... | 23.660465 | 70 | 0.760566 | akshatkarani |
e456ccc9132091147b373efe0d451bbb9e27b9d3 | 663 | cpp | C++ | common/src/keypad.cpp | joaquinbf/TPFinalPortal | 27eed2d1c52297b810a4ad30a54f3267083b9c42 | [
"Apache-2.0"
] | null | null | null | common/src/keypad.cpp | joaquinbf/TPFinalPortal | 27eed2d1c52297b810a4ad30a54f3267083b9c42 | [
"Apache-2.0"
] | null | null | null | common/src/keypad.cpp | joaquinbf/TPFinalPortal | 27eed2d1c52297b810a4ad30a54f3267083b9c42 | [
"Apache-2.0"
] | null | null | null | #include "../../common/include/keypad.h"
#include "../../common/include/key.h"
Keypad::Keypad() {
keys[KEY::LEFT_KEY] = Key();
keys[KEY::RIGHT_KEY] = Key();
keys[KEY::UP_KEY] = Key();
keys[KEY::DOWN_KEY] = Key();
keys[KEY::FIRE_KEY] = Key();
keys[KEY::GRAB_KEY] = Key();
}
void Keypad::press(KE... | 20.71875 | 51 | 0.615385 | joaquinbf |
e45a1a1a26d55113e306b496091bf65ac7bebf82 | 6,329 | cpp | C++ | linux_usr/gui/palacios/vnc_module/remoteview.cpp | PeterDinda/palacios | b8836aa7353bf563bf26fdbc6ef3344eb108181c | [
"BSD-3-Clause"
] | 2 | 2019-01-09T00:01:42.000Z | 2019-09-14T00:11:42.000Z | linux_usr/gui/palacios/vnc_module/remoteview.cpp | PrescienceLab/palacios | b8836aa7353bf563bf26fdbc6ef3344eb108181c | [
"BSD-3-Clause"
] | 1 | 2019-09-14T00:49:35.000Z | 2019-09-14T00:49:35.000Z | linux_usr/gui/palacios/vnc_module/remoteview.cpp | PrescienceLab/palacios | b8836aa7353bf563bf26fdbc6ef3344eb108181c | [
"BSD-3-Clause"
] | 1 | 2020-04-28T16:25:05.000Z | 2020-04-28T16:25:05.000Z | /****************************************************************************
**
** Copyright (C) 2002-2003 Tim Jansen <tim@tjansen.de>
** Copyright (C) 2007-2008 Urs Wolfer <uwolfer @ kde.org>
**
** This file is part of KDE.
**
** This program is free software; you can redistribute it and/or modify
** it under the ter... | 22.285211 | 114 | 0.610523 | PeterDinda |
e45c006881be0bef6f4954337264fac94ac6acef | 18,696 | hpp | C++ | src/atm/substrings_from_longest.hpp | yuttie/atm | b481620088e26153e5554ae6f6732efae4852eda | [
"MIT"
] | null | null | null | src/atm/substrings_from_longest.hpp | yuttie/atm | b481620088e26153e5554ae6f6732efae4852eda | [
"MIT"
] | null | null | null | src/atm/substrings_from_longest.hpp | yuttie/atm | b481620088e26153e5554ae6f6732efae4852eda | [
"MIT"
] | null | null | null | #ifndef ATM_SUBSTRINGS_FROM_LONGEST_HPP
#define ATM_SUBSTRINGS_FROM_LONGEST_HPP
#include <cmath>
#include <map>
#include <vector>
#include <boost/iterator/iterator_facade.hpp>
#include <boost/range/algorithm/find.hpp>
#include <boost/range/begin.hpp>
#include <boost/range/iterator.hpp>
#include <boost/range/iterator_r... | 36.373541 | 116 | 0.527172 | yuttie |
e460d4775d0cd47bfb8315f4243499de6b3f4929 | 1,402 | cpp | C++ | AirFloat/Settings.cpp | davhelm/AirFloat | 460a97d57f9adf3372093e1e62a38b726ab08737 | [
"Unlicense"
] | 2 | 2015-07-20T17:09:11.000Z | 2017-02-05T11:08:34.000Z | AirFloat/Settings.cpp | davhelm/AirFloat | 460a97d57f9adf3372093e1e62a38b726ab08737 | [
"Unlicense"
] | null | null | null | AirFloat/Settings.cpp | davhelm/AirFloat | 460a97d57f9adf3372093e1e62a38b726ab08737 | [
"Unlicense"
] | null | null | null | //
// Settings.cpp
// AirFloat
//
// Created by Kristian Trenskow on 3/22/12.
// Copyright (c) 2012 The Famous Software Company. All rights reserved.
//
#include <CoreFoundation/CoreFoundation.h>
#include "Settings.h"
bool Settings::isAuthenticationEnabled() {
return _boolValueForKey("kAirFloatUserDefaul... | 23.762712 | 144 | 0.678317 | davhelm |
e467956aadf940665743e28eba2cbb1af8da3b5a | 490 | cpp | C++ | tests/2016/04.cpp | voivoid/advent-of-code | efc02f558ad7718d02dfc205fadeba6b857ce4ae | [
"MIT"
] | 6 | 2019-03-01T14:15:38.000Z | 2021-12-10T21:39:23.000Z | tests/2016/04.cpp | voivoid/advent-of-code | efc02f558ad7718d02dfc205fadeba6b857ce4ae | [
"MIT"
] | 3 | 2018-10-22T09:42:26.000Z | 2018-10-22T11:45:06.000Z | tests/2016/04.cpp | voivoid/advent-of-code | efc02f558ad7718d02dfc205fadeba6b857ce4ae | [
"MIT"
] | null | null | null | #include "boost/test/unit_test.hpp"
#include "aoc_fixture.h"
#include "AoC/2016/problem_04.h"
using namespace AoC_2016::problem_04;
BOOST_FIXTURE_TEST_CASE( problem2016_04_1, AocFixture )
{
BOOST_CHECK_EQUAL( 1514, run( &solve_1, R"(aaaaa-bbb-z-y-x-123[abxyz]
a-b-c-d-e-... | 30.625 | 79 | 0.536735 | voivoid |
e470b6278602f738e428333c30cd82351cfd6e5e | 1,132 | cpp | C++ | luogu.1939.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | luogu.1939.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | luogu.1939.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
const int N = 110;
const int mod = 1e9 + 7;
int T, n;
struct matrix {
int a[N][N];
matrix(int now = 0) {
memset(a, 0, sizeof(a));
if(now) {
for(int i = 0; i < N; i++)
a[i][i] = now;
}
}
int* operator[] (int now) { return a[now]; }
matrix operator* (matrix b) {
... | 17.6875 | 85 | 0.44523 | woshiluo |
e472b0a1d42a546d705f31ca05a8974f1287f514 | 8,653 | cpp | C++ | benchmarks/sorting/stest.cpp | lammich/isabelle_llvm | 8b739d4db67c291866db9a6847605cd74bdff79e | [
"BSD-3-Clause"
] | 21 | 2019-09-10T15:07:28.000Z | 2022-03-30T06:16:15.000Z | benchmarks/sorting/stest.cpp | lammich/isabelle_llvm | 8b739d4db67c291866db9a6847605cd74bdff79e | [
"BSD-3-Clause"
] | null | null | null | benchmarks/sorting/stest.cpp | lammich/isabelle_llvm | 8b739d4db67c291866db9a6847605cd74bdff79e | [
"BSD-3-Clause"
] | 1 | 2019-09-12T04:36:02.000Z | 2019-09-12T04:36:02.000Z | #include <algorithm>
#include <iostream>
#include <vector>
#include <boost/sort/common/time_measure.hpp>
uint64_t llcnt_partitionings=0;
uint64_t llcnt_partitions=0;
extern "C" {
#include "introsort.h"
}
size_t NELEM = 32;
namespace bsc = boost::sort::common;
using bsc::time_point;
using bsc::now;
using bsc:... | 22.952255 | 107 | 0.654802 | lammich |
e4771535d2eae89c9e41efc93b0685e06213738e | 13,113 | cpp | C++ | source/octf/cli/Executor.cpp | mmkayPL/open-cas-telemetry-framework | 8acfff375948375dee212170257870c681a49604 | [
"BSD-3-Clause-Clear"
] | null | null | null | source/octf/cli/Executor.cpp | mmkayPL/open-cas-telemetry-framework | 8acfff375948375dee212170257870c681a49604 | [
"BSD-3-Clause-Clear"
] | null | null | null | source/octf/cli/Executor.cpp | mmkayPL/open-cas-telemetry-framework | 8acfff375948375dee212170257870c681a49604 | [
"BSD-3-Clause-Clear"
] | null | null | null | /*
* Copyright(c) 2012-2018 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
#include <octf/cli/Executor.h>
#include <google/protobuf/dynamic_message.h>
#include <octf/cli/internal/CLIList.h>
#include <octf/cli/internal/CLIUtils.h>
#include <octf/cli/internal/CommandSet.h>
#include <octf/cli/inte... | 30.926887 | 80 | 0.61603 | mmkayPL |
e47719025c8074fc5d08855add24147519171cc4 | 26,791 | cpp | C++ | llvm/3.4.2/llvm-3.4.2.src/lib/DebugInfo/DWARFContext.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | 36 | 2015-01-13T19:34:04.000Z | 2022-03-07T22:22:15.000Z | llvm/3.4.2/llvm-3.4.2.src/lib/DebugInfo/DWARFContext.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | 7 | 2015-10-20T19:05:01.000Z | 2021-11-13T14:55:47.000Z | llvm/3.4.2/llvm-3.4.2.src/lib/DebugInfo/DWARFContext.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | 18 | 2015-04-23T20:59:52.000Z | 2021-11-18T20:06:39.000Z | //===-- DWARFContext.cpp --------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 37.209722 | 100 | 0.63749 | tangyibin |
e479f6871982ba99f2e5f2870784992cfcd39dcb | 639 | cpp | C++ | tiny-lib/TxOut.cpp | aizuon/tiny-coin | cfe1ae680bc95db855e554a12ffc3adf948b6f8b | [
"MIT"
] | 1 | 2021-05-07T03:21:50.000Z | 2021-05-07T03:21:50.000Z | tiny-lib/TxOut.cpp | aizuon/tiny-coin | cfe1ae680bc95db855e554a12ffc3adf948b6f8b | [
"MIT"
] | null | null | null | tiny-lib/TxOut.cpp | aizuon/tiny-coin | cfe1ae680bc95db855e554a12ffc3adf948b6f8b | [
"MIT"
] | null | null | null | #include "pch.hpp"
#include "TxOut.hpp"
TxOut::TxOut(uint64_t value, const std::string& toAddress)
: Value(value), ToAddress(toAddress)
{
}
BinaryBuffer TxOut::Serialize() const
{
BinaryBuffer buffer;
buffer.Write(Value);
buffer.Write(ToAddress);
return buffer;
}
bool TxOut::Deserialize(BinaryBuffer& buffer)
... | 13.3125 | 58 | 0.657277 | aizuon |
e47e1aa3d061f564477a1cd12a81bf4e85834af7 | 2,235 | cpp | C++ | tcpselect.cpp | GSIO01/gsnet | 3f073c82c41f3a5832d34ab5edfdbb935e844c05 | [
"MIT"
] | null | null | null | tcpselect.cpp | GSIO01/gsnet | 3f073c82c41f3a5832d34ab5edfdbb935e844c05 | [
"MIT"
] | null | null | null | tcpselect.cpp | GSIO01/gsnet | 3f073c82c41f3a5832d34ab5edfdbb935e844c05 | [
"MIT"
] | null | null | null | /*
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Walter Julius Hennecke
*
* 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 righ... | 31.928571 | 163 | 0.702908 | GSIO01 |
e47fa4a6e46cb6d37b4466ef8d11b7f7352cecf1 | 909 | cpp | C++ | src/misctools.cpp | LadySerenaKitty/klaculate | ff1f4a9316deda6980808fad6a0203f6892a8a2f | [
"BSD-2-Clause"
] | null | null | null | src/misctools.cpp | LadySerenaKitty/klaculate | ff1f4a9316deda6980808fad6a0203f6892a8a2f | [
"BSD-2-Clause"
] | 1 | 2021-08-23T05:32:21.000Z | 2021-08-23T05:47:14.000Z | src/misctools.cpp | LadySerenaKitty/klaculate | ff1f4a9316deda6980808fad6a0203f6892a8a2f | [
"BSD-2-Clause"
] | null | null | null | #include "klaculate.h"
#include <chrono>
#include <fstream>
#include <iostream>
#include <cstdio>
#include <sstream>
#include <regex>
// from: https://thispointer.com/find-and-replace-all-occurrences-of-a-sub-string-in-c/
void findAndReplaceAll(std::string& data, std::string toSearch, std::string replaceStr) {
// G... | 29.322581 | 89 | 0.70187 | LadySerenaKitty |
6b0312d95c3cae9b4484c473828d7adacf9ebf4e | 1,432 | cpp | C++ | src/ConsoleReader.cpp | mjiricka/gongfu-tea-timer | f4bec066d7c5955a7338603ecf10079ccf5a661e | [
"MIT"
] | null | null | null | src/ConsoleReader.cpp | mjiricka/gongfu-tea-timer | f4bec066d7c5955a7338603ecf10079ccf5a661e | [
"MIT"
] | null | null | null | src/ConsoleReader.cpp | mjiricka/gongfu-tea-timer | f4bec066d7c5955a7338603ecf10079ccf5a661e | [
"MIT"
] | null | null | null | #include "ConsoleReader.h"
#include <termios.h>
#include <unistd.h>
#include <stdio.h>
#include <cassert>
// Inspiration: https://gist.github.com/whyrusleeping/3983293
static void setKeyboardNonBlock(termios *initialSettings)
{
struct termios new_settings;
tcgetattr(STDIN_FILENO, initialSettings);
new... | 20.753623 | 61 | 0.689246 | mjiricka |
6b0d4383dc087121d4af509aa193fd016c3fdb6f | 4,023 | cpp | C++ | lib/src/image/tg_image_load.cpp | Timohan/prj-tg-ui-lib | e32c2f974bde1c613b5a18372088e2612d5ddfbc | [
"MIT"
] | null | null | null | lib/src/image/tg_image_load.cpp | Timohan/prj-tg-ui-lib | e32c2f974bde1c613b5a18372088e2612d5ddfbc | [
"MIT"
] | null | null | null | lib/src/image/tg_image_load.cpp | Timohan/prj-tg-ui-lib | e32c2f974bde1c613b5a18372088e2612d5ddfbc | [
"MIT"
] | null | null | null | /*!
* \file
* \brief file tg_image_load.cpp
*
* it loads image
*
* Copyright of Timo Hannukkala. All rights reserved.
*
* \author Timo Hannukkala <timohannukkala@hotmail.com>
*/
#include "tg_image_load.h"
#include <png.h>
#include <cstring>
#include "../global/tg_global_log.h"
/*!
* \brief TgImageLoad::load... | 27.744828 | 113 | 0.601293 | Timohan |
6b1138fbe807ff9b7cfbdddd0eea231c97539897 | 10,203 | hpp | C++ | hpx/runtime/parcelset/policies/mpi/receiver.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | hpx/runtime/parcelset/policies/mpi/receiver.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | hpx/runtime/parcelset/policies/mpi/receiver.hpp | Titzi90/hpx | 150fb0de1cfe40c26a722918097199147957b45c | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2013 Hartmut Kaiser
// Copyright (c) 2014 Thomas Heller
//
// Parts of this code were taken from the Boost.Asio library
// Copyright (c) 2003-2007 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LI... | 29.318966 | 107 | 0.50887 | Titzi90 |
6b11a934493d8c05e51dcadbd9114339133688de | 2,054 | cpp | C++ | cocos2d-x-2.2/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomImageTest/CustomImageTest.cpp | centrallydecentralized/ufo | 29e8f9ce4ce92635ed22f8a051c917cfe6e0313d | [
"BSD-3-Clause"
] | 58 | 2015-01-05T04:40:48.000Z | 2021-12-17T06:01:28.000Z | cocos2d-x-2.2/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomImageTest/CustomImageTest.cpp | centrallydecentralized/ufo | 29e8f9ce4ce92635ed22f8a051c917cfe6e0313d | [
"BSD-3-Clause"
] | null | null | null | cocos2d-x-2.2/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioGUITest/CustomTest/CustomImageTest/CustomImageTest.cpp | centrallydecentralized/ufo | 29e8f9ce4ce92635ed22f8a051c917cfe6e0313d | [
"BSD-3-Clause"
] | 46 | 2015-01-03T06:20:54.000Z | 2020-04-18T13:32:52.000Z |
#include "CustomImageTest.h"
#include "../../CustomGUIScene.h"
#include "../../CustomWidget/CustomImageView.h"
#include "../../CustomWidget/CustomImageViewReader.h"
#include "../../CustomWidget/CustomReader.h"
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
#pragma mark -
#prag... | 30.205882 | 117 | 0.645083 | centrallydecentralized |
6b11b599f33ba89373c83a76fabe37450717225f | 652 | hpp | C++ | Planets/Simulate.hpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | Planets/Simulate.hpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | Planets/Simulate.hpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | #ifndef SIMULATE_H
#define SIMULATE_H
#include <vector>
#include <string>
#include "Planet.hpp"
// Header file for Simulate.cpp
void graphSystem(std::vector<vec3D> paths[], int maxP, int asts, int base, double scale, std::string fname);
void graphLogLog(std::vector<double> lSMA, std::vector<double> lPeriod);
double g... | 40.75 | 108 | 0.751534 | GEslinger |
6b13ca25fa56ef81a633c86d7fbe126ec10bed75 | 9,258 | cpp | C++ | Visual Mercutio/zModelBP/PSS_ProcessPropertiesBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zModelBP/PSS_ProcessPropertiesBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zModelBP/PSS_ProcessPropertiesBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_ProcessPropertiesBP ---------------------------------------------*
****************************************************************************
* Description : Provides the process properties for banking process *
* Devel... | 32.829787 | 111 | 0.470512 | Jeanmilost |
6b151f7b1c283d2b484851cd494bce47a9d60f50 | 1,257 | cpp | C++ | cpp/backup/Thread/Thread.cpp | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | cpp/backup/Thread/Thread.cpp | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | cpp/backup/Thread/Thread.cpp | cheukw/sample | 602d5d055c3e11e1e0ba385128e64b9c0aa81305 | [
"MIT"
] | null | null | null | #include "Thread.h"
Thread::Thread(bool detached, std::shared_ptr<Runnable>& runnable)
: state_(STATE::UNINITIALIZED)
, detached_(detached)
{
this->runnable(runnable);
}
Thread::~Thread()
{
if (!detached_)
{
try
{
join();
}
catch (...)
{
//...
}
}
}
void Thread::start(... | 14.964286 | 79 | 0.614956 | cheukw |
6b1e498da5ffb15fc6de4625e40eb6764fb68411 | 1,951 | hpp | C++ | src/SignalProvider.hpp | 9elements/pwrseqd | fa435d8fed2de2c7948cbc1f0e55f9257786c907 | [
"Apache-2.0"
] | null | null | null | src/SignalProvider.hpp | 9elements/pwrseqd | fa435d8fed2de2c7948cbc1f0e55f9257786c907 | [
"Apache-2.0"
] | null | null | null | src/SignalProvider.hpp | 9elements/pwrseqd | fa435d8fed2de2c7948cbc1f0e55f9257786c907 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <fstream>
#include <functional>
#include <map>
#include <vector>
using namespace std;
class SignalDriver;
class Signal;
struct Config;
// The SignalProvider class owns all signals
class SignalProvider
{
public:
// Find returns a signal by name. nullptr if not found.
Signal* Find(stri... | 26.364865 | 79 | 0.708355 | 9elements |
6b2094acfc3f0a529dd24b243b0fe5d97db6a649 | 11,838 | cpp | C++ | src/client_main/engine/game.cpp | snowmeltarcade/projectfarm | 6a35330f63bff06465c4ee1a0fbc5277c0d22982 | [
"MIT"
] | null | null | null | src/client_main/engine/game.cpp | snowmeltarcade/projectfarm | 6a35330f63bff06465c4ee1a0fbc5277c0d22982 | [
"MIT"
] | 7 | 2021-05-30T21:52:39.000Z | 2021-06-25T22:35:28.000Z | src/client_main/engine/game.cpp | snowmeltarcade/projectfarm | 6a35330f63bff06465c4ee1a0fbc5277c0d22982 | [
"MIT"
] | null | null | null | #include <SDL.h>
#include "game.h"
#include "device_capabilities.h"
#include "scenes/implemented_scenes/authenticate_scene.h"
#include "api/logging/logging.h"
namespace projectfarm::engine
{
void Game::Run(int argc, char* argv[])
{
shared::api::logging::Log("Starting game...");
if (!this->Initialize(argc, argv... | 28.185714 | 120 | 0.55136 | snowmeltarcade |
6b21539a1fe74470df3e31865367020328cdf737 | 2,272 | hpp | C++ | src/axom/klee/Shape.hpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 86 | 2019-04-12T20:39:37.000Z | 2022-01-28T17:06:08.000Z | src/axom/klee/Shape.hpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 597 | 2019-04-25T22:36:16.000Z | 2022-03-31T20:21:54.000Z | src/axom/klee/Shape.hpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 21 | 2019-06-27T15:53:08.000Z | 2021-09-30T20:17:41.000Z | // Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#ifndef AXOM_KLEE_SHAPE_HPP
#define AXOM_KLEE_SHAPE_HPP
#include <string>
#include <vector>
#include "axom/klee/Geome... | 27.047619 | 79 | 0.698504 | bmhan12 |
6b24ac0daa88cc5c3e770d48d964092fe67e77fb | 172 | hpp | C++ | opencv/build/modules/core/matmul.simd_declarations.hpp | soyyuz/opencv-contrib-ARM64 | 25386df773f88a071532ec69ff541c31e62ec8f2 | [
"Apache-2.0"
] | null | null | null | opencv/build/modules/core/matmul.simd_declarations.hpp | soyyuz/opencv-contrib-ARM64 | 25386df773f88a071532ec69ff541c31e62ec8f2 | [
"Apache-2.0"
] | null | null | null | opencv/build/modules/core/matmul.simd_declarations.hpp | soyyuz/opencv-contrib-ARM64 | 25386df773f88a071532ec69ff541c31e62ec8f2 | [
"Apache-2.0"
] | 1 | 2022-03-27T03:35:07.000Z | 2022-03-27T03:35:07.000Z | #define CV_CPU_SIMD_FILENAME "/home/epasholl/opencv/opencv-master/modules/core/src/matmul.simd.hpp"
#define CV_CPU_DISPATCH_MODES_ALL BASELINE
#undef CV_CPU_SIMD_FILENAME
| 34.4 | 99 | 0.854651 | soyyuz |
6b24dc995099e1205b1a062969566ee56719c9bd | 6,469 | cpp | C++ | CO2-Ampel/rtc.cpp | lrswss/co2ampel | 0b100135be16b2deed420f5e8bc618478783c075 | [
"Apache-2.0"
] | 2 | 2021-01-08T13:21:58.000Z | 2021-01-08T18:38:58.000Z | CO2-Ampel/rtc.cpp | lrswss/co2ampel | 0b100135be16b2deed420f5e8bc618478783c075 | [
"Apache-2.0"
] | null | null | null | CO2-Ampel/rtc.cpp | lrswss/co2ampel | 0b100135be16b2deed420f5e8bc618478783c075 | [
"Apache-2.0"
] | 1 | 2021-03-20T14:54:35.000Z | 2021-03-20T14:54:35.000Z | /***************************************************************************
Copyright (c) 2020-2021 Lars Wessels
This file a part of the "CO2-Ampel" source code.
https://github.com/lrswss/co2ampel
Published under Apache License 2.0
***************************************************************************/... | 28.248908 | 115 | 0.671356 | lrswss |
6b272e6f60f4efc097347384b4404328c34c8b5a | 1,052 | cpp | C++ | codeforces/17-A.cpp | theexplorist/competitive-programming-1 | b9d5c1f7ebd2cf9987ce66a42e0fe39ec0193a75 | [
"MIT"
] | 1 | 2020-11-29T14:11:23.000Z | 2020-11-29T14:11:23.000Z | codeforces/17-A.cpp | theexplorist/competitive-programming-1 | b9d5c1f7ebd2cf9987ce66a42e0fe39ec0193a75 | [
"MIT"
] | null | null | null | codeforces/17-A.cpp | theexplorist/competitive-programming-1 | b9d5c1f7ebd2cf9987ce66a42e0fe39ec0193a75 | [
"MIT"
] | null | null | null | /*
math > number theory > prime numbers > sieve of eratosthenes
difficulty: none
date: none
by: @brnpapa
*/
#include <cstring>
#include <iostream>
using namespace std;
#define MAX 1001
bool isPrime[MAX];
bool isSum[MAX];
void sieve() {
memset(isPrime, true, sizeof(isPrime));
isPrime[0] = isPrime[1]... | 19.849057 | 63 | 0.506654 | theexplorist |
6b31b6e3ebd489cf17e8db6383626320c92a04fe | 2,950 | cc | C++ | cartographer/internal/mapping/test_helpers.cc | SirVer/cartographer | 655bd65abcb5a44b9a2a2b6a84b620bbc3ad6824 | [
"Apache-2.0"
] | null | null | null | cartographer/internal/mapping/test_helpers.cc | SirVer/cartographer | 655bd65abcb5a44b9a2a2b6a84b620bbc3ad6824 | [
"Apache-2.0"
] | null | null | null | cartographer/internal/mapping/test_helpers.cc | SirVer/cartographer | 655bd65abcb5a44b9a2a2b6a84b620bbc3ad6824 | [
"Apache-2.0"
] | 1 | 2022-02-27T11:48:05.000Z | 2022-02-27T11:48:05.000Z | /*
* Copyright 2017 The Cartographer 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... | 41.549296 | 80 | 0.714576 | SirVer |
6b354b006c206027db31635ab2ac563956e59a7c | 200,738 | inl | C++ | 2d_samples/pmj02_199.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | 1 | 2021-12-10T23:35:04.000Z | 2021-12-10T23:35:04.000Z | 2d_samples/pmj02_199.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | 2d_samples/pmj02_199.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | {std::array<float,2>{0.221284091f, 0.736038148f},
std::array<float,2>{0.977100372f, 0.256078482f},
std::array<float,2>{0.517553031f, 0.79838407f},
std::array<float,2>{0.357994139f, 0.0852644145f},
std::array<float,2>{0.429426074f, 0.997617424f},
std::array<float,2>{0.637269735f, 0.150700539f},
std::array<float,2>{0.825... | 49.008301 | 52 | 0.734739 | st-ario |
6b38663877134302c8b537a6a2b652e9191853bc | 39,432 | cc | C++ | src/chain/chain-supervision.cc | gaoyouyadan/kaldi | b4711ada5417c08390636d9a6b139bf6fe9880c5 | [
"Apache-2.0"
] | null | null | null | src/chain/chain-supervision.cc | gaoyouyadan/kaldi | b4711ada5417c08390636d9a6b139bf6fe9880c5 | [
"Apache-2.0"
] | null | null | null | src/chain/chain-supervision.cc | gaoyouyadan/kaldi | b4711ada5417c08390636d9a6b139bf6fe9880c5 | [
"Apache-2.0"
] | null | null | null | // chain/chain-supervision.cc
// Copyright 2015 Johns Hopkins University (author: Daniel Povey)
// See ../../COPYING for clarification regarding multiple 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 ... | 41.376705 | 87 | 0.660352 | gaoyouyadan |
6b3f6b15e1b6dd6f1c366c67f44d69c38f25b459 | 410 | hpp | C++ | source/platform/windows/input_impl_win.hpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/platform/windows/input_impl_win.hpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/platform/windows/input_impl_win.hpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2021-2022 Konstanty Misiak
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "platform/input.hpp"
namespace k2d {
class InputImpl
{
public:
InputImpl() = default;
bool isKeyPressed(Key::KeyCode key) const;
bool isMouseButtonPressed(Mouse::MouseC... | 17.826087 | 65 | 0.636585 | Kostu96 |
6b4b7d91b1648fe1b7e2c5d1f9222ffb22b257e0 | 2,282 | cpp | C++ | inference_backend/pre_proc/opencv/opencv_pre_proc.cpp | WilliamWright-JCI/dlstreamer_gst | 702d8e43ea9813e96373a0272b23874baf7cc402 | [
"MIT"
] | null | null | null | inference_backend/pre_proc/opencv/opencv_pre_proc.cpp | WilliamWright-JCI/dlstreamer_gst | 702d8e43ea9813e96373a0272b23874baf7cc402 | [
"MIT"
] | null | null | null | inference_backend/pre_proc/opencv/opencv_pre_proc.cpp | WilliamWright-JCI/dlstreamer_gst | 702d8e43ea9813e96373a0272b23874baf7cc402 | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#include "opencv_pre_proc.h"
#include "inference_backend/logger.h"
#include ... | 31.260274 | 119 | 0.608238 | WilliamWright-JCI |
6b4dd4494b3d566a7fcd973ebe91f3bc9e13c8b2 | 10,992 | cpp | C++ | Template_Sequence/sequenceTest.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | Template_Sequence/sequenceTest.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | Template_Sequence/sequenceTest.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | // FILE: sequenceTest.cpp
// An interactive test program for the sequence class
#include <cctype> // provides toupper
#include <iostream> // provides cout and cin
#include <cstdlib> // provides EXIT_SUCCESS
#include "sequence.h" // provides the sequence template class
namespace seq = CS3358_SP16_A04_seque... | 29.002639 | 70 | 0.456241 | awagsta |
6b511aaada1e2d4c8fc382d2099faaa3910491e6 | 5,004 | hpp | C++ | source/evaluate/static/EvalAagos.hpp | mitchelljohnson3/MABE2 | 08a615a8b1affb25021045ed8113720431709028 | [
"MIT"
] | null | null | null | source/evaluate/static/EvalAagos.hpp | mitchelljohnson3/MABE2 | 08a615a8b1affb25021045ed8113720431709028 | [
"MIT"
] | null | null | null | source/evaluate/static/EvalAagos.hpp | mitchelljohnson3/MABE2 | 08a615a8b1affb25021045ed8113720431709028 | [
"MIT"
] | null | null | null | /**
* @note This file is part of MABE, https://github.com/mercere99/MABE2
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2019-2021.
*
* @file EvalCountBits.hpp
* @brief MABE Evaluation module for counting the number of ones (or zeros) in an output.
*/... | 36.525547 | 130 | 0.63729 | mitchelljohnson3 |
6b533f7763d442967d447ec8886c2d1c1c80d272 | 1,813 | cpp | C++ | tests/test_calculator.cpp | ximenpo/simple-cpp | 0779674dbea5cd8f4081140cad90edeaa31da7c8 | [
"MIT"
] | 2 | 2015-04-10T04:07:24.000Z | 2015-10-21T07:13:11.000Z | tests/test_calculator.cpp | ximenpo/simple_cpp | 0779674dbea5cd8f4081140cad90edeaa31da7c8 | [
"MIT"
] | 1 | 2015-04-18T02:31:22.000Z | 2015-04-21T20:21:02.000Z | tests/test_calculator.cpp | ximenpo/simple_cpp | 0779674dbea5cd8f4081140cad90edeaa31da7c8 | [
"MIT"
] | null | null | null | #include "simple/igloo.h"
using namespace igloo;
#include <cmath>
#include <cstring>
#include "simple/calculator.h"
class MyCalculator : public calculator {
protected:
virtual variable do_find_variable(const char* buf, int& move) {
if(strncmp(buf, "x1", 2) == 0 && is_delimiter(buf[2])) {
move ... | 30.216667 | 72 | 0.587976 | ximenpo |
6b58496f6b7e3bacc6bbdad4968e8b2ec3134587 | 1,433 | cpp | C++ | log_thrift/nonblock_client.cpp | opensource000/cnblogs | 31eaee01e150072f26ac50d43a740143016588ea | [
"Apache-2.0"
] | 3 | 2017-08-30T07:12:28.000Z | 2017-08-30T07:12:33.000Z | log_thrift/nonblock_client.cpp | opensource000/cnblogs | 31eaee01e150072f26ac50d43a740143016588ea | [
"Apache-2.0"
] | null | null | null | log_thrift/nonblock_client.cpp | opensource000/cnblogs | 31eaee01e150072f26ac50d43a740143016588ea | [
"Apache-2.0"
] | 1 | 2019-04-18T02:37:20.000Z | 2019-04-18T02:37:20.000Z | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <string>
#include "gen-cpp/log_constants.h"
#include "gen-cpp/log_types.h"
#include "gen-cpp/LogSender.h"
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TBufferTransports.h>
#include <thrift/protocol/TBinaryProtoc... | 30.489362 | 111 | 0.672715 | opensource000 |
6b592a668621cd8c0c4f5e21b13301ac506111b6 | 2,230 | cpp | C++ | ws/http_request.cpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 19 | 2019-07-21T15:38:12.000Z | 2022-01-06T05:24:48.000Z | ws/http_request.cpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 6 | 2019-12-07T22:12:37.000Z | 2022-01-10T22:31:48.000Z | ws/http_request.cpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 1 | 2019-08-15T14:49:00.000Z | 2019-08-15T14:49:00.000Z | // -*- C++ -*-
// Copyright (C) 2021 Dmitry Igrishin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// i... | 28.227848 | 77 | 0.720628 | dmitigr |
6b59669250bd112b781243119737d3165c16eea3 | 218 | hpp | C++ | include/opengm/opengm_version_patch.hpp | DerThorsten/opengm3 | 23af324a0fde1357eb9745d69798686f0476e1f1 | [
"MIT"
] | null | null | null | include/opengm/opengm_version_patch.hpp | DerThorsten/opengm3 | 23af324a0fde1357eb9745d69798686f0476e1f1 | [
"MIT"
] | null | null | null | include/opengm/opengm_version_patch.hpp | DerThorsten/opengm3 | 23af324a0fde1357eb9745d69798686f0476e1f1 | [
"MIT"
] | null | null | null | #pragma once
#ifndef OPENGM_OPENGM_VERSION_PATCH_HPP
#define OPENGM_OPENGM_VERSION_PATCH_HPP
#define OPENGM_VERSION_PATCH 0
namespace opengm {
} // end namespace opengm
#endif // OPENGM_OPENGM_VERSION_PATCH_HPP | 14.533333 | 41 | 0.825688 | DerThorsten |
6b631bbeb3e9c809bfa1ff58c3a1bfba1170a8a1 | 1,017 | cpp | C++ | UT_MOS_6502_Emulator/BusTest.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | UT_MOS_6502_Emulator/BusTest.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | UT_MOS_6502_Emulator/BusTest.cpp | yu830425/MOS-6502-Simulator | b08495e1225b65df51ba2ad561f27b048a506c31 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "MockDevice.h"
#include "../MOS_6502_Emulator/Bus.h"
using ::testing::_;
using ::testing::Return;
TEST(BusTest, Write_UseAddress0x4000_WriteAtDevice2)
{
std::vector<BYTE> data{ 33,44,55 };
auto device1 = std::make_shared<MockDevice>();
auto device2 = std::make_shared<MockDevice>(... | 22.6 | 63 | 0.706981 | yu830425 |
6b675464114bf535783173571ce91c5f7d5bcc85 | 1,699 | cpp | C++ | PackageManager/L3dPackageInstaller/PackageSearch.cpp | Loksim3D/loksim3d-source | f36ca426522326fe1befcf5dab932157b1d2d191 | [
"MIT"
] | 2 | 2018-02-03T16:06:54.000Z | 2019-07-12T09:04:12.000Z | PackageManager/L3dPackageInstaller/PackageSearch.cpp | Loksim3D/loksim3d-source | f36ca426522326fe1befcf5dab932157b1d2d191 | [
"MIT"
] | null | null | null | PackageManager/L3dPackageInstaller/PackageSearch.cpp | Loksim3D/loksim3d-source | f36ca426522326fe1befcf5dab932157b1d2d191 | [
"MIT"
] | 2 | 2019-04-30T21:06:24.000Z | 2019-12-06T09:38:04.000Z | #include "StdAfx.h"
#include "PackageSearch.h"
#include <KompexSQLiteException.h>
#include "DBHelper.h"
namespace l3d
{
namespace packageinstaller
{
namespace db
{
using namespace std;
using namespace Kompex;
PackageSearch::PackageSearch(void) : db(DBHelper::instance().GetOwnDbConnection())
{
dbStmt.reset(new SQLi... | 22.064935 | 105 | 0.727487 | Loksim3D |
6b68883d08e2c80c783d8a26d025f15a5ad75fdf | 2,209 | hpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/gui/include/gui/customcontrols_screen/VerticalSlideMenu.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/gui/include/gui/customcontrols_screen/VerticalSlideMenu.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/gui/include/gui/customcontrols_screen/VerticalSlideMenu.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | /**
******************************************************************************
* This file is part of the TouchGFX 4.10.0 distribution.
*
* @attention
*
* Copyright (c) 2018 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
... | 25.988235 | 98 | 0.66727 | ramkumarkoppu |
6b6acee7bda2b020c623104e3735f13cd0c18a18 | 6,206 | cpp | C++ | impl/erl_any.cpp | fire-archive/tinch_pp | d1028df2216a135a6f9ee5a0a9198f18171329ba | [
"BSD-2-Clause"
] | null | null | null | impl/erl_any.cpp | fire-archive/tinch_pp | d1028df2216a135a6f9ee5a0a9198f18171329ba | [
"BSD-2-Clause"
] | null | null | null | impl/erl_any.cpp | fire-archive/tinch_pp | d1028df2216a135a6f9ee5a0a9198f18171329ba | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2010, Adam Petersen <adam@adampetersen.se>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this... | 45.29927 | 183 | 0.686271 | fire-archive |
6b6af11a5342ab53b1e556c2c7111e9894b00dcf | 369 | cpp | C++ | DearPyGui/src/ui/AppItems/misc/mvSpacer.cpp | geekbozu/DearPyGui | bc7e7ca98e9b047a6fde727608f1e109b49b3ee2 | [
"MIT"
] | null | null | null | DearPyGui/src/ui/AppItems/misc/mvSpacer.cpp | geekbozu/DearPyGui | bc7e7ca98e9b047a6fde727608f1e109b49b3ee2 | [
"MIT"
] | null | null | null | DearPyGui/src/ui/AppItems/misc/mvSpacer.cpp | geekbozu/DearPyGui | bc7e7ca98e9b047a6fde727608f1e109b49b3ee2 | [
"MIT"
] | null | null | null | #include "mvSpacer.h"
#include "mvItemRegistry.h"
namespace Marvel {
mvSpacer::mvSpacer(mvUUID uuid)
: mvAppItem(uuid)
{
}
void mvSpacer::draw(ImDrawList* drawlist, float x, float y)
{
if(_width == 0 && _height == 0)
ImGui::Spacing();
else
ImGui::Du... | 18.45 | 63 | 0.552846 | geekbozu |
6b72a9b99d3857c5cda1dcd3dedacb47257ef34d | 10,741 | cpp | C++ | src/Kargatum-lib/LibKargatumLoadSystem.cpp | Irome/kargatum-system | c62d04cf527e6c0e54eb00dd3742e291c655cb63 | [
"MIT"
] | 14 | 2019-03-25T17:22:03.000Z | 2021-12-14T08:38:01.000Z | src/Kargatum-lib/LibKargatumLoadSystem.cpp | Irome/kargatum-system | c62d04cf527e6c0e54eb00dd3742e291c655cb63 | [
"MIT"
] | 11 | 2019-04-08T16:48:37.000Z | 2020-01-22T19:58:49.000Z | src/Kargatum-lib/LibKargatumLoadSystem.cpp | Irome/kargatum-system | c62d04cf527e6c0e54eb00dd3742e291c655cb63 | [
"MIT"
] | 17 | 2019-03-23T12:57:57.000Z | 2022-02-22T04:46:24.000Z | /*
* Copyright (С) since 2019 Andrei Guluaev (Winfidonarleyan/Kargatum) https://github.com/Winfidonarleyan
* Licence MIT https://opensource.org/MIT
*/
#ifndef KARGATUMCORE
#include "../Kargatum-lib/LibKargatumLoadSystem.h"
#include "../Kargatum-lib/LibKargatumConfig.h"
#include "Log.h"
#include "World.h"
#include ... | 29.836111 | 248 | 0.653291 | Irome |
6b739de0fe904032a9a3c5c36a4b5a5f03cdd8cf | 8,087 | cpp | C++ | src/equiv.cpp | paines/ypsilon | 821cf2744efa881478f83093e44cd3a3d4e6c629 | [
"BSD-3-Clause"
] | 25 | 2017-12-17T11:45:51.000Z | 2022-03-28T13:49:35.000Z | src/equiv.cpp | paines/ypsilon | 821cf2744efa881478f83093e44cd3a3d4e6c629 | [
"BSD-3-Clause"
] | 3 | 2019-04-30T18:28:18.000Z | 2022-03-07T07:22:36.000Z | src/equiv.cpp | paines/ypsilon | 821cf2744efa881478f83093e44cd3a3d4e6c629 | [
"BSD-3-Clause"
] | 8 | 2015-04-25T13:05:39.000Z | 2020-07-08T18:17:33.000Z | /*
Ypsilon Scheme System
Copyright (c) 2004-2009 Y.FUJITA / LittleWing Company Limited.
See license.txt for terms and conditions of use
*/
#include "core.h"
#include "hash.h"
#include "heap.h"
#include "list.h"
#include "utf8.h"
#include "arith.h"
#include "equiv.h"
#define USE_R5RS_EQUAL 0
bool
eqv_pre... | 33.143443 | 106 | 0.47904 | paines |
6b74537ed5fa93badd2a39bffb276fd4e6214907 | 12,246 | cpp | C++ | Source/ThreadEntities.cpp | Progame03/DiscordCoreAPI | 1cb78284b525e1353fc0e868d6f818e5cf4dbc0e | [
"Apache-2.0"
] | null | null | null | Source/ThreadEntities.cpp | Progame03/DiscordCoreAPI | 1cb78284b525e1353fc0e868d6f818e5cf4dbc0e | [
"Apache-2.0"
] | null | null | null | Source/ThreadEntities.cpp | Progame03/DiscordCoreAPI | 1cb78284b525e1353fc0e868d6f818e5cf4dbc0e | [
"Apache-2.0"
] | null | null | null | /// ThreadEntities.cpp - Source file for the thread-related stuff.
/// Nov 29, 2021
/// Chris M.
/// https://github.com/RealTimeChris
#include <ThreadEntities.hpp>
#include <Http.hpp>
#include <JSONIfier.hpp>
namespace DiscordCoreAPI {
Thread::Thread(ChannelData dataNew) {
this->permissionOverwrites = dataNew.per... | 44.857143 | 128 | 0.764086 | Progame03 |
6b7697545ee1b3d438df7e5ecdc50b901b6f8ecb | 302 | hh | C++ | src/proto/core/util/Pair.hh | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | src/proto/core/util/Pair.hh | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | src/proto/core/util/Pair.hh | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | #pragma once
namespace proto {
template<typename Fst, typename Snd>
struct Pair {
Fst first;
Snd second;
};
// should RVO
//template<typename Fst, typename Snd>
//inline Pair<Fst, Snd> make_pair(Fst& first, Snd& second) {
// return Pair<Fst, Snd>(first,second);
//}
} // namespace proto
| 17.764706 | 60 | 0.672185 | kcpikkt |
6b7f5bcf26edfe471062376301c84c5687e2de9b | 6,159 | cpp | C++ | utility/SignalProbe.cpp | willcode/PothosComms | 6c6ae8ccb6a9c996a67e2ca646aff79c74bb83fa | [
"BSL-1.0"
] | 14 | 2017-10-28T08:40:08.000Z | 2022-03-19T06:08:55.000Z | utility/SignalProbe.cpp | BelmY/PothosComms | 9aa48b827b3813b3ba2b98773f3359b30ebce346 | [
"BSL-1.0"
] | 22 | 2015-08-25T21:18:13.000Z | 2016-12-31T02:23:47.000Z | utility/SignalProbe.cpp | pothosware/pothos-comms | cff998cca2c9610d3e7e5480fd4fc692c13d3066 | [
"BSL-1.0"
] | 13 | 2018-01-03T15:29:44.000Z | 2022-03-19T06:09:00.000Z | // Copyright (c) 2014-2019 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#include <Pothos/Framework.hpp>
#include <Pothos/Util/QFormat.hpp>
#include <cstdint>
#include <complex>
#include <iostream>
#include <algorithm> //min/max
#include <chrono>
/**********************************************************************... | 31.584615 | 131 | 0.610813 | willcode |
6b802d42ad107907efc506aedf456eeb84a95231 | 885 | cpp | C++ | AtCoder/ABC/ABC-124/SolveD.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | AtCoder/ABC/ABC-124/SolveD.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | AtCoder/ABC/ABC-124/SolveD.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
const int MAX = (int)(1e5 + 5);
const ll INF = (ll)(1e10 + 5);
const int MAX_N = (int)(1e5 + 5);
int n, k;
string s;
int acc[MAX_N];
int ans;
int main(void) {
// Here your code !
scanf("%d %d", &n, &k);
cin >> s;
if (s[0] == '0') {
... | 14.75 | 69 | 0.430508 | MonadicDavidHuang |
6b835a122a0967a5e1cd7dbd478792b6be303509 | 946 | cpp | C++ | DataOrientedDesign/BoatsTestCase/ood_boat.cpp | SpowNzz/HellocplusplusBlog | 492dee9dcce85e3a85fbe3d7fe23fb4d83b4f37b | [
"MIT"
] | null | null | null | DataOrientedDesign/BoatsTestCase/ood_boat.cpp | SpowNzz/HellocplusplusBlog | 492dee9dcce85e3a85fbe3d7fe23fb4d83b4f37b | [
"MIT"
] | null | null | null | DataOrientedDesign/BoatsTestCase/ood_boat.cpp | SpowNzz/HellocplusplusBlog | 492dee9dcce85e3a85fbe3d7fe23fb4d83b4f37b | [
"MIT"
] | null | null | null | #include "ood_boat.h"
BoatMonthlyRentalInfo::BoatMonthlyRentalInfo(const string& inName,
unsigned int inNrOfRents,
float inMaintenanceCostPerRent,
float inEarningsPerRent)
: m_EstimatedReturnOnInvestment(0.0f)
, m_BoatName(inName)
, m_NrOfRents(inNrOfRents)
, m_MaintenanceCost... | 27.028571 | 79 | 0.785412 | SpowNzz |
6b8785d9d32f8019b3ae9c92b0a726555cb796a9 | 1,207 | cpp | C++ | src/Session.cpp | metiscus/tarrasch-chess-gui | 5bb37ad1279aa107f927a4e783f89624d89c74a7 | [
"MIT"
] | 75 | 2015-01-03T22:46:04.000Z | 2022-03-01T20:34:24.000Z | src/Session.cpp | metiscus/tarrasch-chess-gui | 5bb37ad1279aa107f927a4e783f89624d89c74a7 | [
"MIT"
] | 31 | 2016-01-01T15:07:35.000Z | 2022-01-15T01:57:31.000Z | src/Session.cpp | metiscus/tarrasch-chess-gui | 5bb37ad1279aa107f927a4e783f89624d89c74a7 | [
"MIT"
] | 20 | 2015-04-03T14:18:13.000Z | 2022-01-21T02:37:56.000Z | /****************************************************************************
* Keep a record of all games in a session
* Author: Bill Forster
* License: MIT license. Full text of license is in associated file LICENSE
* Copyright 2010-2014, Bill Forster <billforsternz at gmail dot com>
*******************... | 28.069767 | 79 | 0.492958 | metiscus |
6b8865427382604b9f3067e204ca9859a64c9fc5 | 1,154 | cpp | C++ | Nov2020/15Nov/GridAndPhrase.cpp | shivanisbp/6monthsOfCoding | 26dc53e3160c7b313dff974b957c81350bf9f1a1 | [
"MIT"
] | null | null | null | Nov2020/15Nov/GridAndPhrase.cpp | shivanisbp/6monthsOfCoding | 26dc53e3160c7b313dff974b957c81350bf9f1a1 | [
"MIT"
] | null | null | null | Nov2020/15Nov/GridAndPhrase.cpp | shivanisbp/6monthsOfCoding | 26dc53e3160c7b313dff974b957c81350bf9f1a1 | [
"MIT"
] | null | null | null | /*
Problem Name: Grid and phrase
Problem Link: https://www.hackerearth.com/practice/data-structures/arrays/multi-dimensional/practice-problems/algorithm/jadvaliioo-62280ff6/
*/
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int n,m;
cin>>n... | 28.146341 | 140 | 0.366551 | shivanisbp |
6b8ae10ba121da8d911033b32eb2706f21781582 | 6,787 | cpp | C++ | src/TestSymmetry.cpp | morpheus-org/hpcg | 62501f64b83831ee01601bc9873f1ab0605199f5 | [
"BSD-3-Clause"
] | null | null | null | src/TestSymmetry.cpp | morpheus-org/hpcg | 62501f64b83831ee01601bc9873f1ab0605199f5 | [
"BSD-3-Clause"
] | null | null | null | src/TestSymmetry.cpp | morpheus-org/hpcg | 62501f64b83831ee01601bc9873f1ab0605199f5 | [
"BSD-3-Clause"
] | null | null | null | //@HEADER
// ***************************************************
//
// HPCG: High Performance Conjugate Gradient Benchmark
//
// Contact:
// Michael A. Heroux ( maherou@sandia.gov)
// Jack Dongarra (dongarra@eecs.utk.edu)
// Piotr Luszczek (luszczek@eecs.utk.edu)
//
// *******************************************... | 34.627551 | 80 | 0.652866 | morpheus-org |
6b8b9ef747f884344a175eb41b3044e3f30c4904 | 623 | hh | C++ | test/test-support.hh | ashandore/utl | 1e4ab3fdb0d504a3f6bcb74b941093a8569d050d | [
"Apache-2.0"
] | null | null | null | test/test-support.hh | ashandore/utl | 1e4ab3fdb0d504a3f6bcb74b941093a8569d050d | [
"Apache-2.0"
] | null | null | null | test/test-support.hh | ashandore/utl | 1e4ab3fdb0d504a3f6bcb74b941093a8569d050d | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 George Harris
//
// All portions of UTL (github.com/goshdarnharris/utl) are licensed
// under the Apache License, Version 2.0 (the "License").
//
// http://www.apache.org/licenses/LICENSE-2.0
#pragma once
#include <CppUTest/TestHarness.h>
#include <CppUTest/SimpleString.h>
#include "packages... | 23.074074 | 67 | 0.70626 | ashandore |
6b8bdbeeac25296cc049a954dc2fa8e444d8efe0 | 6,363 | cpp | C++ | src/framework/options.cpp | qingnia/Pebbble | 8f8ea5f24565f3e6c5e488597131eba9bdbf7d31 | [
"BSD-2-Clause"
] | 841 | 2016-11-11T21:44:15.000Z | 2022-03-13T09:00:56.000Z | src/framework/options.cpp | qingnia/Pebbble | 8f8ea5f24565f3e6c5e488597131eba9bdbf7d31 | [
"BSD-2-Clause"
] | 21 | 2016-11-17T04:24:06.000Z | 2019-04-11T09:36:52.000Z | src/framework/options.cpp | qingnia/Pebbble | 8f8ea5f24565f3e6c5e488597131eba9bdbf7d31 | [
"BSD-2-Clause"
] | 343 | 2016-11-11T11:06:19.000Z | 2022-03-21T09:07:45.000Z | /*
* Tencent is pleased to support the open source community by making Pebble available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the Lic... | 40.528662 | 100 | 0.55807 | qingnia |
6b8ce51ec6765b86a1de79e3281f5c9050a02a90 | 2,666 | cpp | C++ | MPAGSCipher/PlayfairCipher.cpp | MPAGS-CPP-2019/mpags-day-4-PSwallow1 | 825de603565b384d1a760b667d7117e2a9fbe004 | [
"MIT"
] | null | null | null | MPAGSCipher/PlayfairCipher.cpp | MPAGS-CPP-2019/mpags-day-4-PSwallow1 | 825de603565b384d1a760b667d7117e2a9fbe004 | [
"MIT"
] | null | null | null | MPAGSCipher/PlayfairCipher.cpp | MPAGS-CPP-2019/mpags-day-4-PSwallow1 | 825de603565b384d1a760b667d7117e2a9fbe004 | [
"MIT"
] | null | null | null |
// Standard library includes
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
// Out project headers
#include "PlayfairCipher.hpp"
PlayfairCipher::PlayfairCipher(const std::string& key){
setKey(key);
}
void PlayfairCipher::setKey(const std::string& key){
// store the original... | 28.666667 | 105 | 0.597899 | MPAGS-CPP-2019 |
6b91d3b458296408f2b6946698f82a455a8c2f09 | 108 | hpp | C++ | http_service/include/print.hpp | nchalkley2/ImgboardServer | 6ee1fa06ef20442aef11c98b3e9588c116a1ef79 | [
"MIT"
] | null | null | null | http_service/include/print.hpp | nchalkley2/ImgboardServer | 6ee1fa06ef20442aef11c98b3e9588c116a1ef79 | [
"MIT"
] | null | null | null | http_service/include/print.hpp | nchalkley2/ImgboardServer | 6ee1fa06ef20442aef11c98b3e9588c116a1ef79 | [
"MIT"
] | null | null | null | #include <iostream>
template<typename... Args>
void
print(Args&&... args)
{
(std::cout << ... << args);
}
| 12 | 28 | 0.583333 | nchalkley2 |
6b990c2d2f67dd9c31533fd995ad061cf13653b9 | 2,393 | cpp | C++ | bones/lua_web_view.cpp | bonescreater/bones | 618ced87a9a2061b0a7879be32b2fea263880f1b | [
"MIT"
] | 16 | 2015-09-02T17:47:53.000Z | 2022-03-01T19:12:53.000Z | bones/lua_web_view.cpp | bonescreater/bones | 618ced87a9a2061b0a7879be32b2fea263880f1b | [
"MIT"
] | null | null | null | bones/lua_web_view.cpp | bonescreater/bones | 618ced87a9a2061b0a7879be32b2fea263880f1b | [
"MIT"
] | 6 | 2015-11-11T13:22:59.000Z | 2022-03-01T19:13:02.000Z | #include "lua_web_view.h"
#include "core/encoding.h"
#include "utils.h"
namespace bones
{
static const char * kMetaTableWebView = "__mt_webview";
static int Open(lua_State * l)
{
lua_settop(l, 1);
lua_pushnil(l);
lua_pushnil(l);
lua_copy(l, 1, -1);
LuaWebView * bob = static_cast<LuaWebView *>(
... | 21.558559 | 69 | 0.604262 | bonescreater |
6b9a25b9335450230f69c7c3f68520c451866782 | 2,293 | cpp | C++ | cpp/godot-cpp/src/gen/PackedDataContainer.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | 1 | 2021-03-16T09:51:00.000Z | 2021-03-16T09:51:00.000Z | cpp/godot-cpp/src/gen/PackedDataContainer.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | cpp/godot-cpp/src/gen/PackedDataContainer.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | #include "PackedDataContainer.hpp"
#include <core/GodotGlobal.hpp>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include <core/Godot.hpp>
#include "__icalls.hpp"
namespace godot {
PackedDataContainer::___method_bindings PackedDataContainer::___mb = {};
void PackedDataContainer::___init_method_binding... | 37.590164 | 219 | 0.798081 | GDNative-Gradle |
6b9d4c2f65fa924bb08e76cc3283e63fe619961a | 14,643 | cpp | C++ | src/UIManager.cpp | ericwolter/position-based-fluids | 30e92ead037b397573a0b7fb9fbac3770093793a | [
"MIT"
] | 2 | 2018-01-03T01:26:54.000Z | 2022-01-01T08:43:04.000Z | src/UIManager.cpp | ericwolter/position-based-fluids | 30e92ead037b397573a0b7fb9fbac3770093793a | [
"MIT"
] | null | null | null | src/UIManager.cpp | ericwolter/position-based-fluids | 30e92ead037b397573a0b7fb9fbac3770093793a | [
"MIT"
] | null | null | null | #include "limits.h"
#include "UIManager.h"
#include "ParamUtils.hpp"
#include "ZPR.h"
#include "OGL_RenderStageInspector.h"
#include <AntTweakBar.h>
#include "../../lib/AntTweakBar/src/TwPrecomp.h"
#include "../../lib/AntTweakBar/src/TwMgr.h"
#include "../../lib/AntTweakBar/src/TwOpenGLCore.h"
CTwGraphOpenGLCore tw;... | 33.739631 | 154 | 0.648774 | ericwolter |
6ba60ee3d9a5d9bc1b2552f60d200fd1a9f70b88 | 1,718 | cpp | C++ | Leetcode Daily Challenge/August-2021/02. Two Sum.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 5 | 2021-08-10T18:47:49.000Z | 2021-08-21T15:42:58.000Z | Leetcode Daily Challenge/August-2021/02. Two Sum.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 2 | 2022-02-25T13:36:46.000Z | 2022-02-25T14:06:44.000Z | Leetcode Daily Challenge/August-2021/02. Two Sum.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 1 | 2021-08-11T06:36:42.000Z | 2021-08-11T06:36:42.000Z | /*
Two Sum
=======
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
You can return the answer in any order.
Example 1:
Input: nums = [2... | 26.84375 | 262 | 0.681607 | Akshad7829 |
6ba808c27a75aa1c31c3ec1cd53409e05edaf503 | 13,690 | hpp | C++ | core/src/HIP/Kokkos_HIP_Parallel_Range.hpp | ORNL-CEES/kokkos | 70d113838b7dade09218a46c1e8aae44b6dbd321 | [
"BSD-3-Clause"
] | 1 | 2019-10-15T19:26:22.000Z | 2019-10-15T19:26:22.000Z | core/src/HIP/Kokkos_HIP_Parallel_Range.hpp | ORNL-CEES/kokkos | 70d113838b7dade09218a46c1e8aae44b6dbd321 | [
"BSD-3-Clause"
] | 16 | 2019-04-15T20:52:05.000Z | 2020-01-24T05:13:25.000Z | core/src/HIP/Kokkos_HIP_Parallel_Range.hpp | ORNL-CEES/kokkos | 70d113838b7dade09218a46c1e8aae44b6dbd321 | [
"BSD-3-Clause"
] | 1 | 2019-11-25T14:06:26.000Z | 2019-11-25T14:06:26.000Z | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softw... | 37.60989 | 80 | 0.637984 | ORNL-CEES |
6bac64b7eefbb8d75d32c3eaf0ee5d22d7353a08 | 666 | hxx | C++ | include/usagi/environment_special_support/windows.hxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 2 | 2016-11-20T04:59:17.000Z | 2017-02-13T01:44:37.000Z | include/usagi/environment_special_support/windows.hxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 3 | 2015-09-28T12:00:02.000Z | 2015-09-28T12:03:21.000Z | include/usagi/environment_special_support/windows.hxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 3 | 2017-07-02T06:09:47.000Z | 2018-07-09T01:00:57.000Z | /// @file
/// @brief windows
#pragma once
#ifndef USAGI_ENVIRONMENT_SPECIAL_SUPPORT_NO_WINDOWS
#ifdef _WIN32
#if !defined(NOMINMAX) && !defined(USAGI_ENVIRONMENT_SPECIAL_SUPPORT_NO_NOMINMAX)
#define NOMINMAX
#endif
#if !defined(WIN32_LEAN_AND_MEAN) && !defined(USAGI_ENVIRONMENT_SPECIAL_SUPPORT_NO_WIN32_LEAN... | 27.75 | 105 | 0.794294 | usagi |
6bb20d8a36f90c74d1ec38d67e33724249ac90a0 | 294 | cpp | C++ | McEngine/src/App/UIFrameworkTest/UIFrameworkTestScreen.cpp | musikowskipawel/McEngine | fcd96ecf1d04a6b44545ea06b7531e8816e61368 | [
"MIT"
] | 73 | 2016-09-12T09:55:53.000Z | 2022-03-26T22:18:35.000Z | McEngine/src/App/UIFrameworkTest/UIFrameworkTestScreen.cpp | musikowskipawel/McEngine | fcd96ecf1d04a6b44545ea06b7531e8816e61368 | [
"MIT"
] | 31 | 2016-08-08T18:05:33.000Z | 2022-03-10T09:27:33.000Z | McEngine/src/App/UIFrameworkTest/UIFrameworkTestScreen.cpp | musikowskipawel/McEngine | fcd96ecf1d04a6b44545ea06b7531e8816e61368 | [
"MIT"
] | 17 | 2016-11-19T15:15:11.000Z | 2022-02-24T11:07:22.000Z | /*
* UIFrameworkTestScreen.cpp
*
* Created on: May 29, 2017
* Author: Psy
*/
#include "UIFrameworkTestScreen.h"
#include "UIFrameworkTest.h"
UIFrameworkTestScreen::UIFrameworkTestScreen(UIFrameworkTest *app)
{
m_app = app;
}
UIFrameworkTestScreen::~UIFrameworkTestScreen()
{
}
| 14 | 66 | 0.72449 | musikowskipawel |
6bb3a3744808a00050b5ce826499c44ec27a3934 | 1,014 | hpp | C++ | original_periodic/src/timer.hpp | four-spins/dissertation | 6a61b6d5b133c8839b7aa740784472c2beb5912e | [
"MIT"
] | null | null | null | original_periodic/src/timer.hpp | four-spins/dissertation | 6a61b6d5b133c8839b7aa740784472c2beb5912e | [
"MIT"
] | null | null | null | original_periodic/src/timer.hpp | four-spins/dissertation | 6a61b6d5b133c8839b7aa740784472c2beb5912e | [
"MIT"
] | null | null | null | /******************************************************************************
*
* @file: timer.hpp
*
* @date: 09/22/2012 01:18:09 PM (CEST)
*
* @author: Marco Müller <muelma@gmail.com>
*
******************************************************************************/
# ifndef TIMER_HPP
# define TIMER_HPP
# i... | 28.971429 | 98 | 0.510848 | four-spins |
6bb4aeda99c7fec27b4249bf499c00d840a95ebe | 6,617 | cpp | C++ | Source/QuadTree.cpp | baransrc/Strawhat_Engine | 1069fd12e72d4d437c611e01e9570c2f74e8e489 | [
"MIT"
] | 10 | 2021-11-11T21:53:55.000Z | 2022-02-16T20:13:34.000Z | Source/QuadTree.cpp | baransrc/Strawhat_Engine | 1069fd12e72d4d437c611e01e9570c2f74e8e489 | [
"MIT"
] | 3 | 2021-12-08T13:19:57.000Z | 2022-01-20T19:14:11.000Z | Source/QuadTree.cpp | baransrc/Strawhat_Engine | 1069fd12e72d4d437c611e01e9570c2f74e8e489 | [
"MIT"
] | null | null | null | #include "QuadTree.h"
#include "Entity.h"
#include "ComponentMesh.h"
#include "ComponentBoundingBox.h"
namespace StrawMath
{
// NW NE
// SW SE
#define NE 0
#define SE 1
#define SW 2
#define NW 3
#define QUADTREE_MAX_ITEMS 8
#define QUADTREE_MIN_SIZE 10.0f
QuadTreeNode::QuadTreeNode()
{
parent = nullptr;
c... | 23.464539 | 93 | 0.675684 | baransrc |
6bb53c336293aa74972a670aaa678dc2a5e80d36 | 2,266 | cpp | C++ | src/test/quadtree_highly_adaptive_mesh.cpp | tbellotti/SimpleQuadTree | 227b0ed368ca71849f9cdc0a58788d5b0dcfd2a0 | [
"MIT"
] | null | null | null | src/test/quadtree_highly_adaptive_mesh.cpp | tbellotti/SimpleQuadTree | 227b0ed368ca71849f9cdc0a58788d5b0dcfd2a0 | [
"MIT"
] | null | null | null | src/test/quadtree_highly_adaptive_mesh.cpp | tbellotti/SimpleQuadTree | 227b0ed368ca71849f9cdc0a58788d5b0dcfd2a0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <functional>
#include <algorithm>
#include <cmath>
#include "../../include/quadtree.h"
template <typename T>
class LevelSet : public LipschitzFunction<T>
{
public:
LevelSet() : LipschitzFunction<T>() {}
LevelSet(T lipschitz) : LipschitzFunction<... | 31.915493 | 145 | 0.634598 | tbellotti |
6bb5f0aff6e6590eca1af75027ffe58f28fce30c | 845 | cc | C++ | code/Modules/Gfx/TextureLoaderBase.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 1,707 | 2015-01-01T14:56:08.000Z | 2022-03-28T06:44:09.000Z | code/Modules/Gfx/TextureLoaderBase.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 256 | 2015-01-03T14:55:53.000Z | 2020-09-09T10:43:46.000Z | code/Modules/Gfx/TextureLoaderBase.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 222 | 2015-01-05T00:20:54.000Z | 2022-02-06T01:41:37.000Z | //------------------------------------------------------------------------------
// TextureLoaderBase.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "TextureLoaderBase.h"
namespace Oryol {
//---------------------------------------------------------------... | 29.137931 | 89 | 0.390533 | infancy |
6bb730d738dd9db703d9d2c46dd2523545231941 | 4,816 | hpp | C++ | include/intent/intent_service/IntentMatcher.hpp | open-intent-io/open-intent | 57d8c4fc89c038f51138d51e776880e728152194 | [
"MIT"
] | 47 | 2016-07-05T15:20:33.000Z | 2021-08-06T05:38:33.000Z | include/intent/intent_service/IntentMatcher.hpp | open-intent-io/open-intent | 57d8c4fc89c038f51138d51e776880e728152194 | [
"MIT"
] | 30 | 2016-07-03T22:42:11.000Z | 2017-11-17T15:58:10.000Z | include/intent/intent_service/IntentMatcher.hpp | open-intent-io/open-intent | 57d8c4fc89c038f51138d51e776880e728152194 | [
"MIT"
] | 8 | 2016-07-22T20:07:58.000Z | 2017-11-05T10:40:29.000Z | /*
|---------------------------------------------------------|
| ___ ___ _ _ |
| / _ \ _ __ ___ _ __ |_ _|_ __ | |_ ___ _ __ | |_ |
| | | | | '_ \ / _ \ '_ \ | || '_ \| __/ _ \ '_ \| __| |
| | |_| | |_) | __/ | | || || | | | || __/ | | | |_ |
| \___/| .__/ \... | 34.898551 | 80 | 0.577243 | open-intent-io |
6bba933be4599632066b60a0f04ae930ddc364c8 | 393 | hpp | C++ | include/json.hpp | BryanFlynt/json | 997da8c6d6421bff5059476bcda77f38c811312d | [
"Apache-2.0"
] | null | null | null | include/json.hpp | BryanFlynt/json | 997da8c6d6421bff5059476bcda77f38c811312d | [
"Apache-2.0"
] | null | null | null | include/json.hpp | BryanFlynt/json | 997da8c6d6421bff5059476bcda77f38c811312d | [
"Apache-2.0"
] | null | null | null | /*
* json.hpp
*
* Created on: Aug 13, 2020
* Author: bflynt
*/
#ifndef JSON_HPP_
#define JSON_HPP_
#include "json.tab.hpp" // parser
#include "json_types.hpp" // JSON syntax tree
#include "get.hpp" // JSON syntax tree
namespace json {
Value parse_file(const char* filename);
Value parse_strin... | 16.375 | 46 | 0.648855 | BryanFlynt |
6bbbcfd17e62aa876fd53535fa4ef63752b27450 | 9,689 | cc | C++ | core/src/compression/stream.cc | joe4568/centreon-broker | daf454371520989573c810be1f6dfca40979a75d | [
"Apache-2.0"
] | null | null | null | core/src/compression/stream.cc | joe4568/centreon-broker | daf454371520989573c810be1f6dfca40979a75d | [
"Apache-2.0"
] | null | null | null | core/src/compression/stream.cc | joe4568/centreon-broker | daf454371520989573c810be1f6dfca40979a75d | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2011-2017 Centreon
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed t... | 27.841954 | 83 | 0.569409 | joe4568 |
6bbbeacd8bb5b039793cc6ab8ed1d552488b5465 | 7,047 | cpp | C++ | inou/lef/inou_lef.cpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | inou/lef/inou_lef.cpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | inou/lef/inou_lef.cpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | // This file is distributed under the BSD 3-Clause License. See LICENSE for details.
//
// Created by birdeclipse on 3/22/18.
//
#include "tech_library.hpp"
#include "inou_lef.hpp"
void Inou_lef_options::set(const std::string &key, const std::string &value) {
try {
if ( is_opt(key,"lef_file") ) {
lef_f... | 29.609244 | 100 | 0.656024 | tamim-asif |
6bc35285a7d3ab299e3fd418823b2257ff70ca45 | 11,161 | cpp | C++ | ssolar/Object.cpp | Pedejeca135/GRAFICACION_UASLP | 51674129cc3a853450509acc7e8c579bb167da11 | [
"MIT"
] | null | null | null | ssolar/Object.cpp | Pedejeca135/GRAFICACION_UASLP | 51674129cc3a853450509acc7e8c579bb167da11 | [
"MIT"
] | null | null | null | ssolar/Object.cpp | Pedejeca135/GRAFICACION_UASLP | 51674129cc3a853450509acc7e8c579bb167da11 | [
"MIT"
] | null | null | null | #include <Object.hpp>
using namespace std;
/*****************************************************************
*
* |||||||||||||||||| Constructors of Object ||||||||||||||||||||
*
* ***************************************************************/
Object :: Object()
{
}
Object :: Object(std::string _name){
... | 28.327411 | 134 | 0.416988 | Pedejeca135 |
6bc9f6bcaa14690cbdca54bd7b60409178eccce9 | 16,188 | cpp | C++ | opencl/test/unit_test/helpers/timestamp_packet_2_tests.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/helpers/timestamp_packet_2_tests.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/helpers/timestamp_packet_2_tests.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/array_count.h"
#include "shared/test/common/cmd_parse/hw_parse.h"
#include "shared/test/common/mocks/mock_command_stream_receiver.h"
#include "shared/test/common/mocks/mock_timestamp_container.h"
#... | 47.05814 | 186 | 0.780331 | againull |
6bcaa89fcde7b9e899ebbec3a07d7cead2dcb47b | 6,981 | cpp | C++ | Engine/Core/Storage.cpp | resul4e/Runtime-Recompiled-CPP | ef0c8918782b67a431cf7dc0e9a2f2770f8bed67 | [
"Apache-2.0"
] | 1 | 2020-05-28T07:56:58.000Z | 2020-05-28T07:56:58.000Z | Engine/Core/Storage.cpp | resul4e/Runtime-Recompiled-CPP | ef0c8918782b67a431cf7dc0e9a2f2770f8bed67 | [
"Apache-2.0"
] | null | null | null | Engine/Core/Storage.cpp | resul4e/Runtime-Recompiled-CPP | ef0c8918782b67a431cf7dc0e9a2f2770f8bed67 | [
"Apache-2.0"
] | null | null | null | #include "Storage.h"
#include <cstdarg>
using namespace std;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//SAVING
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
void Storage::Save(const Re... | 32.170507 | 160 | 0.706059 | resul4e |
6bcbe1f1035307d925e872e6458d5fd9faa5034f | 114 | cpp | C++ | win/code/Utility/TwmList.cpp | tangyiwan/tsf | 88b4acd3967597bd683c46bb5c998bfd56444587 | [
"MIT"
] | null | null | null | win/code/Utility/TwmList.cpp | tangyiwan/tsf | 88b4acd3967597bd683c46bb5c998bfd56444587 | [
"MIT"
] | null | null | null | win/code/Utility/TwmList.cpp | tangyiwan/tsf | 88b4acd3967597bd683c46bb5c998bfd56444587 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include ".\twmlist.h"
CTwmList::CTwmList(void)
{
}
CTwmList::~CTwmList(void)
{
}
| 10.363636 | 26 | 0.605263 | tangyiwan |
6bcf8e584a897458322fdfdc9aaa77006cf00065 | 640 | hpp | C++ | kernel/lib/assert.hpp | mauryafunez/panix | befb877a9a7090069633022f5a1295cd0c980b6a | [
"MIT"
] | null | null | null | kernel/lib/assert.hpp | mauryafunez/panix | befb877a9a7090069633022f5a1295cd0c980b6a | [
"MIT"
] | null | null | null | kernel/lib/assert.hpp | mauryafunez/panix | befb877a9a7090069633022f5a1295cd0c980b6a | [
"MIT"
] | 1 | 2021-07-26T21:51:38.000Z | 2021-07-26T21:51:38.000Z | /**
* @file assert.hpp
* @author Keeton Feavel (keetonfeavel@cedarville.edu)
* @brief
* @version 0.3
* @date 2020-07-14
*
* @copyright Copyright the Panix Contributors (c) 2020
*
*/
#pragma once
/**
* @brief Creates an assertion which must be held to be true.
* If the assertion passes, nothing happens an... | 27.826087 | 65 | 0.6875 | mauryafunez |
6bcfb0fa2d7a1a0c3a55dc0db03b292dcadc9c4f | 2,474 | cpp | C++ | SPHINXsys/src/for_3D_build/particles/solid_particles_supplementary.cpp | liboyang0112/SPHinXsys | d2d93540b84069a6d806ff4fe849d02d4095d54a | [
"Apache-2.0"
] | 92 | 2019-05-29T10:20:47.000Z | 2022-03-28T20:51:32.000Z | SPHINXsys/src/for_3D_build/particles/solid_particles_supplementary.cpp | liboyang0112/SPHinXsys | d2d93540b84069a6d806ff4fe849d02d4095d54a | [
"Apache-2.0"
] | 47 | 2019-07-18T09:37:11.000Z | 2022-03-30T12:10:53.000Z | SPHINXsys/src/for_3D_build/particles/solid_particles_supplementary.cpp | liboyang0112/SPHinXsys | d2d93540b84069a6d806ff4fe849d02d4095d54a | [
"Apache-2.0"
] | 50 | 2019-05-29T10:20:57.000Z | 2022-03-28T03:46:13.000Z | #include "solid_particles.h"
#include "base_body.h"
#include <iterator>
namespace SPH {
//=============================================================================================//
void SolidParticles::ParticleTranslationAndRotation(Transformd& transform)
{
std::cout << "\n Error: the function ParticleTra... | 38.061538 | 145 | 0.505255 | liboyang0112 |
6bcfe84818425657195edd93edb6a39aa96ef809 | 8,690 | cpp | C++ | Sources Age of Enigma/Scene_Inca_Stairs.cpp | calidrelle/Gamecodeur | 4449ea1dce02b8f08e39d258d864546fcc9b2fc6 | [
"CC0-1.0"
] | 29 | 2016-05-04T08:22:46.000Z | 2022-01-27T10:20:55.000Z | Sources Age of Enigma/Scene_Inca_Stairs.cpp | calidrelle/Gamecodeur | 4449ea1dce02b8f08e39d258d864546fcc9b2fc6 | [
"CC0-1.0"
] | 1 | 2018-11-25T14:12:39.000Z | 2018-11-25T14:12:39.000Z | Sources Age of Enigma/Scene_Inca_Stairs.cpp | calidrelle/Gamecodeur | 4449ea1dce02b8f08e39d258d864546fcc9b2fc6 | [
"CC0-1.0"
] | 49 | 2016-04-29T19:43:42.000Z | 2022-02-19T16:13:35.000Z | /*
* Scene_Inca_Stairs.cpp
* enigma
*
* Created by Rockford on 04/11/10.
* Copyright 2010 Casual Games France. All rights reserved.
*
*/
#include "EScene.h"
#include "Scene_Inca_Stairs.h"
#include "ESceneDirector.h"
#include "GlobalBank.h"
#include "EMiniJeuMissingParts.h"
/* Constructeur */
Scene_Inca_Sta... | 33.945313 | 166 | 0.679171 | calidrelle |
6bcff6e7310a7d6064c044a6713ea75aa29e8d46 | 1,398 | cpp | C++ | Src/Controller/CV/WallCVGenerator.cpp | sh4869/Culverton | 14ba42b29c38ec8bcb8c385c17b93a45e02b37ed | [
"MIT"
] | 1 | 2017-10-24T03:16:53.000Z | 2017-10-24T03:16:53.000Z | Src/Controller/CV/WallCVGenerator.cpp | sh4869/Culverton | 14ba42b29c38ec8bcb8c385c17b93a45e02b37ed | [
"MIT"
] | 3 | 2017-11-11T19:27:16.000Z | 2017-11-15T02:30:14.000Z | Src/Controller/CV/WallCVGenerator.cpp | sh4869/Culverton | 14ba42b29c38ec8bcb8c385c17b93a45e02b37ed | [
"MIT"
] | null | null | null | #include "WallCVGenerator.h"
WallCVGenerator::WallCVGenerator(PIDParams _params)
: pidController(std::unique_ptr<PIDController>(new PIDController(_params))),
sensorController(SensorController::GetInstance()) {}
// 右の値が大きいほど(つまり壁に近いほど)大きな値が返るようになっている
float WallCVGenerator::Update() {
switch (GetStatus())... | 38.833333 | 96 | 0.600858 | sh4869 |
6bd6fd9481cc1655e1d762e7d39a6d75a6bc5042 | 1,334 | cpp | C++ | Source/CelestialBody.cpp | mgemperl/SpaceSim | cbd9eed0c5930be01485e504cd9cbf95db5a41d5 | [
"CC-BY-3.0"
] | null | null | null | Source/CelestialBody.cpp | mgemperl/SpaceSim | cbd9eed0c5930be01485e504cd9cbf95db5a41d5 | [
"CC-BY-3.0"
] | null | null | null | Source/CelestialBody.cpp | mgemperl/SpaceSim | cbd9eed0c5930be01485e504cd9cbf95db5a41d5 | [
"CC-BY-3.0"
] | null | null | null | #include "CelestialBody.h"
#include "System.h"
#include "Vector2D.h"
#include <cmath>
#define ORBIT_RATE 0.01
namespace SpaceSimNS
{
CelestialBody::CelestialBody(double bodyRadius,
System* pSystem,
double orbitRadius,
double initTheta) :
Entity(Space::Point2D<double>(0, 0))
{
m_pSystem = pSystem;
m_pSystem->A... | 21.868852 | 118 | 0.754123 | mgemperl |
6bd7bb859980ed2bcf63b00d05134e5efa0c4ae9 | 3,943 | hpp | C++ | updated/include/graph.hpp | gml4gtk/demekgraph | 2f7873e7f216ba73deb27bd0fe015d8443c8ef35 | [
"BSD-3-Clause"
] | 5 | 2021-07-26T10:42:24.000Z | 2022-03-30T21:41:44.000Z | updated/include/graph.hpp | gml4gtk/demekgraph | 2f7873e7f216ba73deb27bd0fe015d8443c8ef35 | [
"BSD-3-Clause"
] | null | null | null | updated/include/graph.hpp | gml4gtk/demekgraph | 2f7873e7f216ba73deb27bd0fe015d8443c8ef35 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <vector>
#include <iostream>
#include <ostream>
#include <algorithm>
#include "utils.hpp"
#include "types.hpp"
/**
* Basic clas for representing a directed graph.
*/
class graph {
public:
/**
* Add a new vertex to the graph.
*
* @return the identifier of the vertex
... | 27.767606 | 127 | 0.602333 | gml4gtk |
6bda0510f5b5531d81ffb7d4abd013139ca5e193 | 5,114 | c++ | C++ | src/extern/inventor/apps/tools/ivnorm/FindNormals.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/extern/inventor/apps/tools/ivnorm/FindNormals.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/extern/inventor/apps/tools/ivnorm/FindNormals.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... | 26.091837 | 77 | 0.693977 | OpenXIP |
6be4e6dc587773d40d4e5da3223de77483001c3d | 5,315 | cpp | C++ | test/test_file_locks.cpp | IvarJonsson89/RealmDatabase | 820484533370254e9b91f191e4940766d2dc6722 | [
"Apache-2.0"
] | null | null | null | test/test_file_locks.cpp | IvarJonsson89/RealmDatabase | 820484533370254e9b91f191e4940766d2dc6722 | [
"Apache-2.0"
] | null | null | null | test/test_file_locks.cpp | IvarJonsson89/RealmDatabase | 820484533370254e9b91f191e4940766d2dc6722 | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
*
* Copyright 2016 Realm 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/lice... | 30.028249 | 76 | 0.558608 | IvarJonsson89 |
6be78730d1527a5a375e24af53c1e51c650cdd95 | 1,483 | cpp | C++ | cpp/source/example/AsioUdpClient.cpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | 1 | 2018-06-06T20:33:28.000Z | 2018-06-06T20:33:28.000Z | cpp/source/example/AsioUdpClient.cpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | null | null | null | cpp/source/example/AsioUdpClient.cpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | 1 | 2020-07-31T03:39:15.000Z | 2020-07-31T03:39:15.000Z | #include "example/AsioUdpClient.hpp"
#include <iostream>
using namespace sl::example;
AsioUdpClient::AsioUdpClient(sl::ICommInterface::Listener* _listener, asio::io_context& _ioContext):
sl::ICommInterface(_listener),
ioContext(_ioContext),
socket(ioContext)
{
}
void AsioUdpClient::connect(const std::st... | 25.568966 | 100 | 0.600135 | skydiveuas |
6be7a520442701d543335cd1666379a82f745a13 | 6,665 | cc | C++ | test/sandbox/sandbox.cc | bl0b/x2c | 19b4bbe4b85528308a697b0bffea688f40d31145 | [
"BSL-1.0"
] | 1 | 2016-12-02T09:55:39.000Z | 2016-12-02T09:55:39.000Z | test/sandbox/sandbox.cc | bl0b/x2c | 19b4bbe4b85528308a697b0bffea688f40d31145 | [
"BSL-1.0"
] | null | null | null | test/sandbox/sandbox.cc | bl0b/x2c | 19b4bbe4b85528308a697b0bffea688f40d31145 | [
"BSL-1.0"
] | null | null | null | /*#include "structure.h"*/
#include <x2c.h>
/*#include <tuple>*/
#include <iostream>
#include <sstream>
#include <typeinfo>
template <typename... Inner>
struct test_unpack;
template <typename... Tuples>
struct test_unpack<std::tuple<Tuples>...> {};
typedef test_unpack<std::tuple<int, int>, std::tuple<double, int... | 31.438679 | 127 | 0.500375 | bl0b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.