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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dec07522838bb529579d678c2d24200377ab029c | 604 | cpp | C++ | example/asyncdeamon.cpp | apppur/canna | bdcce4f16be56da40445fec79959b6bc90003573 | [
"MIT"
] | null | null | null | example/asyncdeamon.cpp | apppur/canna | bdcce4f16be56da40445fec79959b6bc90003573 | [
"MIT"
] | null | null | null | example/asyncdeamon.cpp | apppur/canna | bdcce4f16be56da40445fec79959b6bc90003573 | [
"MIT"
] | null | null | null | #include <thread>
#include <functional>
#include <stdio.h>
#include <memory>
#include "asyncclient.h"
#include "asyncserver.h"
int main(int argc, char** argv)
{
asyncclient async1;
asyncclient async2;
asyncclient async3;
asyncserver server;
std::thread t1(std::bind(&asyncclient::start, &async1));... | 20.133333 | 60 | 0.642384 | apppur |
dec60f7023fc0c5f3a3f7e986d258647535c871b | 499 | cc | C++ | leetcode/src/balaced_binary_tree.cc | plusplus7/solutions | 31233c13ee2bd0da6a907a24adbaf5b49ebf843c | [
"CC0-1.0"
] | 5 | 2016-04-29T07:14:23.000Z | 2020-01-07T04:56:11.000Z | leetcode/src/balaced_binary_tree.cc | plusplus7/solutions | 31233c13ee2bd0da6a907a24adbaf5b49ebf843c | [
"CC0-1.0"
] | null | null | null | leetcode/src/balaced_binary_tree.cc | plusplus7/solutions | 31233c13ee2bd0da6a907a24adbaf5b49ebf843c | [
"CC0-1.0"
] | 1 | 2016-04-29T07:14:32.000Z | 2016-04-29T07:14:32.000Z | #include <iostream>
using namespace std;
class Solution {
public:
int dfs(TreeNode *node) {
if (node == NULL)
return 0;
return max(dfs(node->left, dep+1), dfs(node->right, dep+1))+1;
}
bool isBalanced(TreeNode *root) {
if (root == NULL)
return true;
if... | 26.263158 | 85 | 0.537074 | plusplus7 |
ded00ab6f7ed575fdcb08faaef40996cf6db9fbf | 7,069 | cpp | C++ | libs/dev/Math/MathEngineTest/Matrix_Constructor.cpp | Norseman055/immaterial-engine | 6aca0fad64f5b2b9fe6eb351528a79a39dc94625 | [
"MIT"
] | null | null | null | libs/dev/Math/MathEngineTest/Matrix_Constructor.cpp | Norseman055/immaterial-engine | 6aca0fad64f5b2b9fe6eb351528a79a39dc94625 | [
"MIT"
] | null | null | null | libs/dev/Math/MathEngineTest/Matrix_Constructor.cpp | Norseman055/immaterial-engine | 6aca0fad64f5b2b9fe6eb351528a79a39dc94625 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
// HEADER FILES:
//---------------------------------------------------------------------------
#include "UnitTest.h"
#include "MathEngine.h"
#define eq Util::isEqual
#define MATH_TOLERANCE 0.0001f
//----------------------------------------... | 26.776515 | 77 | 0.530485 | Norseman055 |
ded12ff193fedcafbc3acfc7a1a1a355ddaec06d | 1,170 | cpp | C++ | nodes/DataLoggerNode/DataLoggerProcess.cpp | dgitz/eROS | 0ff4b5dda5f3d445784d43745597bb5c31d1997c | [
"MIT"
] | 2 | 2016-11-28T13:01:12.000Z | 2021-03-26T22:02:02.000Z | nodes/DataLoggerNode/DataLoggerProcess.cpp | dgitz/eROS | 0ff4b5dda5f3d445784d43745597bb5c31d1997c | [
"MIT"
] | 46 | 2016-10-24T13:34:48.000Z | 2019-11-14T23:47:22.000Z | nodes/DataLoggerNode/DataLoggerProcess.cpp | dgitz/eros | 0ff4b5dda5f3d445784d43745597bb5c31d1997c | [
"MIT"
] | 2 | 2021-07-20T10:11:45.000Z | 2021-08-10T11:31:41.000Z | #include <eros/DataLogger/DataLoggerProcess.h>
using namespace eros;
using namespace eros_nodes;
DataLoggerProcess::DataLoggerProcess()
: log_directory(""),
log_directory_available(false),
logfile_duration(-1.0),
logging_enabled(false),
snapshot_mode(true) {
}
DataLoggerProcess::~DataLogger... | 33.428571 | 100 | 0.761538 | dgitz |
ded97349fac892fd74f4c924f410dd860981d4da | 19,721 | inl | C++ | ivp/havana/havok/hk_math/vector_fpu/vector_fpu.inl | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | ivp/havana/havok/hk_math/vector_fpu/vector_fpu.inl | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | ivp/havana/havok/hk_math/vector_fpu/vector_fpu.inl | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z |
inline void hk_VecFPU::fpu_add_multiple_row(hk_real *target_adress,hk_real *source_adress,hk_real factor,int size,hk_bool adress_aligned) {
if(adress_aligned==HK_FALSE) {
//we have to calculate the block size and shift adresses to lower aligned adresses
long result_adress = long(source_adress) & hk_VecFPU_ME... | 32.923205 | 146 | 0.66092 | DannyParker0001 |
dedc9bea22e4d12bc1c587ec698d2444e590a3be | 4,793 | cpp | C++ | SimSpark/rcssserver3d/plugin/soccer/gamestateperceptor/gamestateperceptor.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/rcssserver3d/plugin/soccer/gamestateperceptor/gamestateperceptor.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/rcssserver3d/plugin/soccer/gamestateperceptor/gamestateperceptor.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
this file is part of rcssserver3D
Fri May 9 2003
Copyright (C) 2002,2003 Koblenz University
Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group
$Id$
This program is free software; you can redistribute it and/or modify
it und... | 28.194118 | 84 | 0.685583 | IllyasvielEin |
dee02e61c6026421062ff37899f6387291f3d3c8 | 325 | cpp | C++ | mutations_aliens/main.cpp | aymeebonvarlet/projet_mutation_aliens | a1885d77d9ef197395c7f9545d96105fdac47018 | [
"Apache-2.0"
] | null | null | null | mutations_aliens/main.cpp | aymeebonvarlet/projet_mutation_aliens | a1885d77d9ef197395c7f9545d96105fdac47018 | [
"Apache-2.0"
] | null | null | null | mutations_aliens/main.cpp | aymeebonvarlet/projet_mutation_aliens | a1885d77d9ef197395c7f9545d96105fdac47018 | [
"Apache-2.0"
] | null | null | null | #include "mainwindow.h"
#include "qstd.h"
using namespace qstd;
#include <QApplication>
#include "evolutionnary_process.h"
int main(int argc, char *argv[])
{
Evolutionnary_process evo;
evo.init();
cout<<evo.toString()<<endl;
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec(... | 19.117647 | 34 | 0.664615 | aymeebonvarlet |
dee0c4a6231b74e6f1b2d9129bdf422fd8e12380 | 616 | cpp | C++ | 08_pass-by-reference/src/main.cpp | JuliusDiestra/cpp-sandbox | 6fa3bcb2a284e58136168e1952a8a54621232621 | [
"MIT"
] | null | null | null | 08_pass-by-reference/src/main.cpp | JuliusDiestra/cpp-sandbox | 6fa3bcb2a284e58136168e1952a8a54621232621 | [
"MIT"
] | null | null | null | 08_pass-by-reference/src/main.cpp | JuliusDiestra/cpp-sandbox | 6fa3bcb2a284e58136168e1952a8a54621232621 | [
"MIT"
] | null | null | null | #include "vehicle.hpp"
#include "controller.hpp"
int main(int argc, char *argv[]) {
// Create vehicle object
Vehicle vehicle;
vehicle.SetVelocity(20);
vehicle.SetAcceleration(30);
std::cout << "### Vehicle Object ###" << std::endl;
std::cout << "velocity:" << vehicle.GetVelocity() << std::endl... | 32.421053 | 75 | 0.625 | JuliusDiestra |
dee0f6e51b0bf08f7f3b1b3f4ce0dede9913d9f2 | 2,898 | cpp | C++ | Source/Extensions/PGUI/PGUI.Screen.cpp | wipe2238/foc | 87f083e4d12178244953857ee89da488b31d0a9b | [
"MIT"
] | 2 | 2018-12-14T23:06:21.000Z | 2021-07-29T03:10:38.000Z | Source/Extensions/PGUI/PGUI.Screen.cpp | wipe2238/foc | 87f083e4d12178244953857ee89da488b31d0a9b | [
"MIT"
] | 1 | 2020-08-25T10:38:00.000Z | 2020-08-25T10:38:00.000Z | Source/Extensions/PGUI/PGUI.Screen.cpp | wipe2238/foc | 87f083e4d12178244953857ee89da488b31d0a9b | [
"MIT"
] | null | null | null | #include <App.h>
#include <Defines.Public.h>
#include <GameOptions.h>
#include <Ini.h>
#include "PGUI.Core.h"
#include "PGUI.Screen.h"
PGUI::Screen::Screen( PGUI::Core* gui, uint width /* = 0 */, uint height /* = 0 */, int left /* = 0 */, int top /* = 0 */ ) : PGUI::Element( gui, width, height, left, top ),
// public... | 22.640625 | 173 | 0.515528 | wipe2238 |
dee18f7be43af0742ef1a141d1cc2b540d142fa3 | 9,745 | hh | C++ | nodecursor.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | 1 | 2021-05-06T04:41:37.000Z | 2021-05-06T04:41:37.000Z | nodecursor.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | null | null | null | nodecursor.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | 1 | 2021-05-06T04:41:39.000Z | 2021-05-06T04:41:39.000Z | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <tack@gecode.org>
*
* Copyright:
* Guido Tack, 2006
*
* Last modified:
* $Date$ by $Author$
* $Revision$
*
* This file is part of Gecode, the generic constraint
* development environment:
... | 28.328488 | 80 | 0.677783 | cp-profiler |
dee63efa3f0c22e5bb79cef4e943cfc3e049ed24 | 2,316 | hpp | C++ | src/Modules/ModuleBuilder.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | 1 | 2021-03-12T13:39:17.000Z | 2021-03-12T13:39:17.000Z | src/Modules/ModuleBuilder.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | null | null | null | src/Modules/ModuleBuilder.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | null | null | null | //
// Created by caedus on 30.01.2021.
//
#pragma once
#include "Modules/Module.hpp"
#include "Runtime/Interface/IEvaluatorFactory.hpp"
#include "Modules/Interface/IModuleBuilder.hpp"
#include <algorithm>
namespace nastya::modules {
template<typename EvaluatorFactory, typename... OtherFactories>
class ModuleBuilde... | 33.085714 | 89 | 0.756045 | pawel-jarosz |
dee7db73453cfe5478fcf165793c973eaba126fc | 2,150 | cpp | C++ | src/DescentGame/src/Main.cpp | poseidn/KungFoo | 35fa33bd5a9abb40ecf485db2fc038ca52c48a2d | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | 7 | 2016-01-28T14:28:10.000Z | 2021-09-03T17:33:37.000Z | src/DescentGame/src/Main.cpp | poseidn/KungFoo | 35fa33bd5a9abb40ecf485db2fc038ca52c48a2d | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | 1 | 2016-03-19T11:34:36.000Z | 2016-03-24T21:35:06.000Z | src/DescentGame/src/Main.cpp | poseidn/KungFoo | 35fa33bd5a9abb40ecf485db2fc038ca52c48a2d | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | 3 | 2016-03-10T14:23:40.000Z | 2019-03-17T16:21:21.000Z | /*
Copyright (C) 2016 Thomas Hauth. All Rights Reserved.
* Written by Thomas Hauth (Thomas.Hauth@web.de)
This file is part of Kung Foo Barracuda.
Kung Foo Barracuda 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... | 26.54321 | 100 | 0.751628 | poseidn |
dee83e605a1f575e4a2d710a5a6cb28e33523456 | 5,810 | cpp | C++ | patch/specific/drawbars.cpp | Tonyx97/TombMP | 7eb2d265df2fe7312b7ed07dd5943736340b921c | [
"MIT"
] | 3 | 2021-10-10T11:12:03.000Z | 2021-11-04T16:46:57.000Z | patch/specific/drawbars.cpp | Tonyx97/TombMP | 7eb2d265df2fe7312b7ed07dd5943736340b921c | [
"MIT"
] | null | null | null | patch/specific/drawbars.cpp | Tonyx97/TombMP | 7eb2d265df2fe7312b7ed07dd5943736340b921c | [
"MIT"
] | null | null | null | #include "standard.h"
#include "directx.h"
#include "global.h"
#include "hwrender.h"
#include "output.h"
#include <main.h>
#include <game/inventry.h>
#include <3dsystem/hwinsert.h>
#define HealthBarX 8
#define HealthBarY 6
#define HealthBarW 100
#define AirBarX (game_setup.dump_width-110)
#define AirBarY 6
#define A... | 30.904255 | 89 | 0.58537 | Tonyx97 |
deeb50bf2737a13113f6383e8c965541b118890b | 7,337 | hpp | C++ | Extensions/Gameplay/IndexedHalfEdgeMesh.hpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 1 | 2022-03-26T21:08:19.000Z | 2022-03-26T21:08:19.000Z | Extensions/Gameplay/IndexedHalfEdgeMesh.hpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | Extensions/Gameplay/IndexedHalfEdgeMesh.hpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Joshua Davis
/// Copyright 2017, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#pragma once
namespace Zero
{
template <typename ArrayTyp... | 29.704453 | 119 | 0.654355 | jodavis42 |
deeff73bf44115b9aa19e662852a661458027b77 | 221 | cpp | C++ | C++/170923/170923/Item_4_Heal.cpp | ChoiChangYong/Game_Programing | 6c290e31eaac526b0dbdfc59731e6479126e95bc | [
"MIT"
] | null | null | null | C++/170923/170923/Item_4_Heal.cpp | ChoiChangYong/Game_Programing | 6c290e31eaac526b0dbdfc59731e6479126e95bc | [
"MIT"
] | null | null | null | C++/170923/170923/Item_4_Heal.cpp | ChoiChangYong/Game_Programing | 6c290e31eaac526b0dbdfc59731e6479126e95bc | [
"MIT"
] | 1 | 2020-04-27T12:41:20.000Z | 2020-04-27T12:41:20.000Z | #include "Item_4_Heal.h"
#include "Game.h"
#include <iostream>
using namespace std;
void Item_4_Heal::onCheck(Game* pGame)
{
pGame->Use_Item_4_Heal();
}
Item_4_Heal::Item_4_Heal()
{
}
Item_4_Heal::~Item_4_Heal()
{
}
| 11.631579 | 38 | 0.714932 | ChoiChangYong |
def119c406c8eaa5a601880b39120d51f9266eec | 2,917 | cpp | C++ | bitsafe/window_effective.cpp | codereba/bittrace | 6826559565aaafc9412d20427d21b73e23febcfe | [
"Unlicense"
] | 10 | 2018-11-09T01:08:15.000Z | 2020-06-21T05:39:54.000Z | bitsafe/window_effective.cpp | codereba/bittrace | 6826559565aaafc9412d20427d21b73e23febcfe | [
"Unlicense"
] | null | null | null | bitsafe/window_effective.cpp | codereba/bittrace | 6826559565aaafc9412d20427d21b73e23febcfe | [
"Unlicense"
] | 4 | 2018-11-09T03:29:52.000Z | 2021-07-23T03:30:03.000Z | /*
*
* Copyright 2010 JiJie Shi(weixin:AIChangeLife)
*
* This file is part of bittrace.
*
* bittrace 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
* (at ... | 21.768657 | 147 | 0.629071 | codereba |
def25db62073c18ceca30494b8ac3956e4a26189 | 1,169 | cpp | C++ | Old Code/SM64FM/src/main.cpp | sonich2401/SM64_Save_File_Converter | bd6876d66cbc3177b634540c7a2241e0ae8c759c | [
"MIT-0"
] | 6 | 2020-07-27T19:07:37.000Z | 2021-08-29T19:16:07.000Z | Old Code/SM64FM/src/main.cpp | sonich2401/SM64_Save_File_Converter | bd6876d66cbc3177b634540c7a2241e0ae8c759c | [
"MIT-0"
] | 2 | 2021-06-09T05:49:41.000Z | 2022-01-30T04:06:40.000Z | Old Code/SM64FM/src/main.cpp | sonich2401/SM64_Save_File_Converter | bd6876d66cbc3177b634540c7a2241e0ae8c759c | [
"MIT-0"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include <typedefs.h>
#include "menu/option_decode.h"
#include "util/load_file/load_bin.h"
#include "EEPROM/EEPROM.h"
#include "menu/menu_choice.h"
#include "util/os/linux/escape_codes.h"
void exit_program(option_struct * options);
int main(int argc, cstring argv[]){
opt... | 25.977778 | 117 | 0.663815 | sonich2401 |
def94d20ef029a33c8313959adb0651a463e3480 | 4,645 | cpp | C++ | Desktop/FOSSA-GroundStationControlPanel/FOSSASatTracker/SGP4_experiments/main.cpp | FOSSASystems/FOSSA-GroundStationControlPanel | af83a09619239abe9fca09e073ab41c68bfd4822 | [
"MIT"
] | 2 | 2021-11-07T16:26:46.000Z | 2022-03-20T10:14:41.000Z | Desktop/FOSSA-GroundStationControlPanel/FOSSASatTracker/SGP4_experiments/main.cpp | FOSSASystems/FOSSA-GroundStationControlPanel | af83a09619239abe9fca09e073ab41c68bfd4822 | [
"MIT"
] | 18 | 2020-08-28T13:38:36.000Z | 2020-09-30T11:08:42.000Z | Desktop/FOSSA-GroundStationControlPanel/FOSSASatTracker/SGP4_experiments/main.cpp | FOSSASystems/FOSSA-GroundStationControlPanel | af83a09619239abe9fca09e073ab41c68bfd4822 | [
"MIT"
] | 2 | 2020-07-29T21:19:28.000Z | 2021-08-16T03:58:14.000Z | #include "sgp4io.h"
#include "sgp4unit.h"
#include <GeographicLib/Geocentric.hpp>
#include <iostream>
int main()
{
/*
INPUT is e.g.
2019
12
6
1
1
1
2020
12
6
1
1
1
*/
char fossasatTLELineA[70] = "1 44829U 19084F 20183.10006475 .00039774 00000-0 23016-3 0 9991";
char fossasatTLEL... | 27.323529 | 117 | 0.56254 | FOSSASystems |
defaa02a4762d4b70cc4f0fb2249bf63a7fccfca | 757 | cpp | C++ | alpaca/portfolio.cpp | aidanjalili/alpaca-trade-api-cpp | 0914de8ba46cea4c289ef362539d77b2bee74807 | [
"MIT"
] | 43 | 2020-04-07T03:28:22.000Z | 2022-03-30T21:34:16.000Z | alpaca/portfolio.cpp | aidanjalili/alpaca-trade-api-cpp | 0914de8ba46cea4c289ef362539d77b2bee74807 | [
"MIT"
] | 5 | 2020-04-29T03:45:36.000Z | 2021-03-31T00:59:43.000Z | alpaca/portfolio.cpp | aidanjalili/alpaca-trade-api-cpp | 0914de8ba46cea4c289ef362539d77b2bee74807 | [
"MIT"
] | 18 | 2020-04-27T18:35:18.000Z | 2022-02-05T17:13:38.000Z | #include "alpaca/portfolio.h"
#include "alpaca/json.h"
#include "rapidjson/document.h"
namespace alpaca {
Status PortfolioHistory::fromJSON(const std::string& json) {
rapidjson::Document d;
if (d.Parse(json.c_str()).HasParseError()) {
return Status(1, "Received parse error when deserializing portfolio JSON");... | 28.037037 | 81 | 0.738441 | aidanjalili |
deff9e0ef99374df542a6693b5dcc62e077471c5 | 6,456 | cpp | C++ | src/IB/IBLagrangianForceStrategySet.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | 2 | 2017-12-06T06:16:36.000Z | 2021-03-13T12:28:08.000Z | src/IB/IBLagrangianForceStrategySet.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | src/IB/IBLagrangianForceStrategySet.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | // Filename: IBLagrangianForceStrategySet.cpp
// Created on 04 April 2007 by Boyce Griffith
//
// Copyright (c) 2002-2013, Boyce Griffith
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// ... | 37.103448 | 139 | 0.670074 | MSV-Project |
72007729164461efc492cbee49cf51da6b5c9677 | 2,935 | cpp | C++ | example/sql/test_multithread.cpp | zizzzw/fflib | ba9b465347b650d86c34876fbfae48bc31194d97 | [
"MIT"
] | 1 | 2022-02-08T07:28:07.000Z | 2022-02-08T07:28:07.000Z | example/sql/test_multithread.cpp | zizzzw/fflib | ba9b465347b650d86c34876fbfae48bc31194d97 | [
"MIT"
] | null | null | null | example/sql/test_multithread.cpp | zizzzw/fflib | ba9b465347b650d86c34876fbfae48bc31194d97 | [
"MIT"
] | 2 | 2022-01-06T02:16:09.000Z | 2022-01-19T12:49:54.000Z | /***********************************************
The MIT License (MIT)
Copyright (c) 2012 Athrun Arthur <athrunarthur@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without ... | 37.151899 | 79 | 0.612947 | zizzzw |
7200cb8c29aa54b386846e16aac4f09b5848effa | 9,142 | cpp | C++ | Code/Core/CoreTest/Tests/TestSmallBlockAllocator.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 30 | 2020-07-15T06:16:55.000Z | 2022-02-10T21:37:52.000Z | Code/Core/CoreTest/Tests/TestSmallBlockAllocator.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 1 | 2020-11-23T13:35:00.000Z | 2020-11-23T13:35:00.000Z | Code/Core/CoreTest/Tests/TestSmallBlockAllocator.cpp | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 12 | 2020-09-16T17:39:34.000Z | 2021-08-17T11:32:37.000Z | // TestSmallBlockAllocator.cpp
//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------
#include "TestFramework/UnitTest.h"
#include "Core/Containers/Array.h"
#include "Core/Math/Random.h"
#include "Co... | 35.710938 | 198 | 0.556005 | qq573011406 |
7202f264bd57851ca7f5b279dd6700bd6f5d9dd6 | 556 | cc | C++ | examples/toy/andor.cc | paulhjkelly/taskgraph-metaprogramming | 54c4e2806a97bec555a90784ab4cf0880660bf89 | [
"BSD-3-Clause"
] | 5 | 2020-04-11T21:30:19.000Z | 2021-12-04T16:16:09.000Z | examples/toy/andor.cc | paulhjkelly/taskgraph-metaprogramming | 54c4e2806a97bec555a90784ab4cf0880660bf89 | [
"BSD-3-Clause"
] | null | null | null | examples/toy/andor.cc | paulhjkelly/taskgraph-metaprogramming | 54c4e2806a97bec555a90784ab4cf0880660bf89 | [
"BSD-3-Clause"
] | null | null | null | #include <TaskGraph>
using namespace tg;
typedef TaskGraph<void,int> andor_TaskGraph;
int main( int argc, char *argv[] ) {
andor_TaskGraph T;
taskgraph( andor_TaskGraph, T, tuple1(a) ) {
tVar(int, b);
b = ((a < 12) + (a > 42));
b = ((a > 6) - (a < 9));
b = ((a < 12) * (a > 42));
b = ((a > 6) ... | 22.24 | 46 | 0.393885 | paulhjkelly |
7208b1a74f7a044ea3b92c8d2697cdd2dffbc33f | 437 | hpp | C++ | include/imgui.hpp | richard-vock/graphene | 1a721894a9972c8865a1ad0861d500cef8436932 | [
"Unlicense"
] | null | null | null | include/imgui.hpp | richard-vock/graphene | 1a721894a9972c8865a1ad0861d500cef8436932 | [
"Unlicense"
] | null | null | null | include/imgui.hpp | richard-vock/graphene | 1a721894a9972c8865a1ad0861d500cef8436932 | [
"Unlicense"
] | null | null | null | #pragma once
#include <string>
#include <imgui.h>
#include "common.hpp"
#include "events.hpp"
struct GLFWwindow;
namespace graphene::imgui {
IMGUI_IMPL_API bool init_application(GLFWwindow* window, const std::string& font_path, float font_size, std::shared_ptr<event_manager> events);
IMGUI_IMPL_API void shutdown_a... | 20.809524 | 143 | 0.78032 | richard-vock |
720c50dc8d59b9d1cfb7c087510ca8fb74d2d718 | 7,580 | cpp | C++ | level1/p11_linkedList/linkedList.cpp | shui12jiao/c2021 | 0a21392fe0c35cbebc04335d43e134410e17d89c | [
"MIT"
] | null | null | null | level1/p11_linkedList/linkedList.cpp | shui12jiao/c2021 | 0a21392fe0c35cbebc04335d43e134410e17d89c | [
"MIT"
] | null | null | null | level1/p11_linkedList/linkedList.cpp | shui12jiao/c2021 | 0a21392fe0c35cbebc04335d43e134410e17d89c | [
"MIT"
] | null | null | null | #include <sstream>
#include "illegalParameter.h"
#include "linearList.h"
#include "linkedNode.h"
template <typename T>
class linkedList : public linearList<T> { //链表
public:
linkedList();
linkedList(const linkedList<T>&);
~linkedList();
bool empty() const { return listSize == 0; }
int size() ... | 26.784452 | 107 | 0.581003 | shui12jiao |
720e527a45f234e6add1ca37bbf847a70b75d5fc | 1,617 | cpp | C++ | src/lib/Mutex.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | src/lib/Mutex.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | src/lib/Mutex.cpp | romoadri21/boi | deef8e7148b50fbb36886ba4ff491a6c0e18ad67 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2010, Piet Hein Schouten. All rights reserved.
* This code is licensed under a BSD-style license that can be
* found in the LICENSE file. The license can also be found at:
* http://www.boi-project.org/license
*/
#include <QMutex>
#include <QWaitCondition>
#include "ThreadLockData.h"
#include "Mute... | 18.586207 | 65 | 0.520717 | romoadri21 |
72127937d14cdbfedbe5d1c95ae94d20942522bf | 664 | hpp | C++ | include/simple_math/vec.hpp | signekatt/simple_math | aa17f449330a2dd38a10222074c1139fdbdeeb75 | [
"MIT"
] | null | null | null | include/simple_math/vec.hpp | signekatt/simple_math | aa17f449330a2dd38a10222074c1139fdbdeeb75 | [
"MIT"
] | null | null | null | include/simple_math/vec.hpp | signekatt/simple_math | aa17f449330a2dd38a10222074c1139fdbdeeb75 | [
"MIT"
] | null | null | null | // Copyright(c) 2019-present, Anton Lilja.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once
#include "vec2.hpp"
#include "vec3.hpp"
#include "vec4.hpp"
namespace sm {
// Other op funcs
template <typename V>
inline V inverse(const V& v) {
return v.inverse();
... | 21.419355 | 73 | 0.626506 | signekatt |
721c2de3ada7099eceea094e17c91fb0912c52f8 | 4,875 | cpp | C++ | modules/dasClangBind/src/dasClangBind.func_3.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 421 | 2019-08-15T15:40:04.000Z | 2022-03-29T06:59:06.000Z | modules/dasClangBind/src/dasClangBind.func_3.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 55 | 2019-08-17T13:50:53.000Z | 2022-03-25T17:58:38.000Z | modules/dasClangBind/src/dasClangBind.func_3.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 58 | 2019-08-22T17:04:13.000Z | 2022-03-25T17:43:28.000Z | // this file is generated via daScript automatic C++ binder
// all user modifications will be lost after this file is re-generated
#include "daScript/misc/platform.h"
#include "daScript/ast/ast.h"
#include "daScript/ast/ast_interop.h"
#include "daScript/ast/ast_handle.h"
#include "daScript/ast/ast_typefactory_bind.h"
... | 87.053571 | 284 | 0.791179 | profelis |
722310472f4f466485792343c31670010863c197 | 11,228 | hpp | C++ | tcob/include/tcob/core/Automation.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | 2 | 2021-08-18T19:14:35.000Z | 2021-12-01T14:14:49.000Z | tcob/include/tcob/core/Automation.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | tcob/include/tcob/core/Automation.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Tobias Bohnen
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include <tcob/tcob_config.hpp>
#include <concepts>
#include <queue>
#include <vector>
#include <tcob/core/Random.hpp>
#include <tcob/core/Signal.hpp>
#include <tcob/core/Upd... | 24.408696 | 125 | 0.546491 | TobiasBohnen |
722453a47a24987fd1452538469992a1e5025906 | 1,288 | cpp | C++ | ewk/unittest/utc_blink_ewk_context_proxy_uri_set_func.cpp | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | 9 | 2015-04-09T20:22:08.000Z | 2021-03-17T08:34:56.000Z | ewk/unittest/utc_blink_ewk_context_proxy_uri_set_func.cpp | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | 2 | 2015-02-04T13:41:12.000Z | 2015-05-25T14:00:40.000Z | ewk/unittest/utc_blink_ewk_context_proxy_uri_set_func.cpp | isabella232/chromium-efl | db2d09aba6498fb09bbea1f8440d071c4b0fde78 | [
"BSD-3-Clause"
] | 14 | 2015-02-12T16:20:47.000Z | 2022-01-20T10:36:26.000Z | // Copyright 2014 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "utc_blink_ewk_base.h"
class utc_blink_ewk_context_proxy_uri_set : public utc_blink_ewk_base
{
protected:
static const char*const url;
};
cons... | 30.666667 | 82 | 0.776398 | Jabawack |
7229d3675fd07fda77dd0738036f04243218b3cb | 1,625 | cpp | C++ | concept_tests/drivers/freertos_driver.cpp | jedrzejboczar/ubik-micromouse | 6470368de0c3207fc278bcfa604d1fdd74aaeb8f | [
"MIT"
] | 3 | 2019-10-30T07:37:47.000Z | 2021-01-21T11:50:20.000Z | concept_tests/drivers/freertos_driver.cpp | jedrzejboczar/ubik-micromouse | 6470368de0c3207fc278bcfa604d1fdd74aaeb8f | [
"MIT"
] | null | null | null | concept_tests/drivers/freertos_driver.cpp | jedrzejboczar/ubik-micromouse | 6470368de0c3207fc278bcfa604d1fdd74aaeb8f | [
"MIT"
] | null | null | null | #include "freertos_driver.h"
// void FreeRTOSDriverTask::task() {
// run();
// }
FreeRTOSDriverTask::FreeRTOSDriverTask(
const char * name, int priority, int stack_depth,
size_t request_queue_length, TickType_t timeout):
FreeRTOSTask(name, priority, stack_depth),
request_queue_length(requ... | 31.25 | 95 | 0.729231 | jedrzejboczar |
722e215ab9d583c68b4b931841d7e1501fc8ff49 | 1,453 | cpp | C++ | algorithms/KthSmallestElementinaBST/tree.cpp | PikachuPikachuHAHA/leetcode-2 | 4cf8d30509f4b994b1845765807380eeffb95c73 | [
"MIT"
] | 93 | 2016-04-27T23:25:27.000Z | 2021-07-13T20:32:25.000Z | algorithms/KthSmallestElementinaBST/tree.cpp | shangan/leetcode | db05338f8057ad440cb5dd6cfe0151aafb7a8d56 | [
"MIT"
] | null | null | null | algorithms/KthSmallestElementinaBST/tree.cpp | shangan/leetcode | db05338f8057ad440cb5dd6cfe0151aafb7a8d56 | [
"MIT"
] | 43 | 2016-05-31T15:46:50.000Z | 2021-04-09T04:07:39.000Z | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdio>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(nullptr), right(nullptr){}
};
class Solution {
public:
int kthSmallest(TreeNode *root, int k) {
int result... | 19.90411 | 78 | 0.644184 | PikachuPikachuHAHA |
7236a5e16e768f9e870eab43fe93378f499bac48 | 985 | cpp | C++ | System/GroundMissionControl.cpp | MatthewGotte/214_project_Derived | 48a74a10bc4fd5b01d11d1f89a7203a5b070b9bd | [
"MIT"
] | null | null | null | System/GroundMissionControl.cpp | MatthewGotte/214_project_Derived | 48a74a10bc4fd5b01d11d1f89a7203a5b070b9bd | [
"MIT"
] | null | null | null | System/GroundMissionControl.cpp | MatthewGotte/214_project_Derived | 48a74a10bc4fd5b01d11d1f89a7203a5b070b9bd | [
"MIT"
] | null | null | null | #include "GroundMissionControl.h"
#include "Satellite.h"
GroundMissionControl::GroundMissionControl() {
}
void GroundMissionControl::attach(Satellite* addSatellite) {
this->satelliteList.push_back(addSatellite);
}
void GroundMissionControl::detach(Satellite* removeSatellite) {
vector<Sate... | 24.625 | 84 | 0.603046 | MatthewGotte |
5cfb300c5618be540e9dab1268bc36675010d39a | 2,624 | cpp | C++ | homomorphic_evaluation/ntl-11.3.2/src/Poly3TimeTest.cpp | dklee0501/PLDI_20_242_artifact_publication | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | 160 | 2016-05-11T09:45:56.000Z | 2022-03-06T09:32:19.000Z | homomorphic_evaluation/ntl-11.3.2/src/Poly3TimeTest.cpp | dklee0501/Lobster | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | 57 | 2016-12-26T07:02:12.000Z | 2022-03-06T16:34:31.000Z | homomorphic_evaluation/ntl-11.3.2/src/Poly3TimeTest.cpp | dklee0501/Lobster | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | 67 | 2016-10-10T17:56:22.000Z | 2022-03-15T22:56:39.000Z |
#include <NTL/ZZ_pX.h>
#include <cstdio>
NTL_CLIENT
double clean_data(double *t)
{
double x, y, z;
long i, ix, iy, n;
x = t[0]; ix = 0;
y = t[0]; iy = 0;
for (i = 1; i < 5; i++) {
if (t[i] < x) {
x = t[i];
ix = i;
}
if (t[i] > y) {
y = t[i];
iy... | 15.255814 | 62 | 0.470655 | dklee0501 |
cf03086f029e45cfbb3b2a27e454049c615950a8 | 2,462 | cpp | C++ | Dory/Sensores.cpp | project-neon/Dory | 7a84ee5556b681f1b4d2a03db14f170734dd74ed | [
"MIT"
] | 1 | 2021-11-08T20:17:21.000Z | 2021-11-08T20:17:21.000Z | Dory/Sensores.cpp | project-neon/Dory | 7a84ee5556b681f1b4d2a03db14f170734dd74ed | [
"MIT"
] | null | null | null | Dory/Sensores.cpp | project-neon/Dory | 7a84ee5556b681f1b4d2a03db14f170734dd74ed | [
"MIT"
] | 1 | 2021-11-08T19:57:53.000Z | 2021-11-08T19:57:53.000Z | #include <VL53L0X.h>
#include "Sensores.h"
#include "_config.h"
#include <Wire.h>
VL53L0X Sensores::sensor1;
VL53L0X Sensores::sensor2;
void Sensores::init(){
Wire.begin();
pinMode(Xshut_1, OUTPUT);
pinMode(Xshut_2, OUTPUT);
digitalWrite(Xshut_1, LOW);
digitalWrite(Xshut_2, LOW);
delay(10)... | 26.191489 | 88 | 0.655971 | project-neon |
cf0e92dadd83905c9a73be9189544e26aab87294 | 30,067 | cpp | C++ | Source/Interface/Resources/FontResource.cpp | Noxagonal/Vulkan2DRenderer | 5110a2422dfbf0bf5cfb1d3e13c5b97d5b80243e | [
"MIT"
] | 90 | 2020-06-20T15:00:31.000Z | 2022-03-22T21:03:45.000Z | Source/Interface/Resources/FontResource.cpp | Niko40/Vulkan2DRenderer | 5110a2422dfbf0bf5cfb1d3e13c5b97d5b80243e | [
"MIT"
] | 39 | 2019-11-04T01:40:14.000Z | 2020-03-09T15:57:00.000Z | Source/Interface/Resources/FontResource.cpp | Niko40/Vulkan2DRenderer | 5110a2422dfbf0bf5cfb1d3e13c5b97d5b80243e | [
"MIT"
] | 4 | 2020-12-02T22:39:33.000Z | 2021-12-27T07:55:12.000Z |
#include "Core/SourceCommon.h"
#include "System/ThreadPrivateResources.h"
#include "Interface/InstanceImpl.h"
#include "Interface/Resources/ResourceManager.h"
#include "Interface/Resources/ResourceManagerImpl.h"
#include "Interface/Resources/FontResource.h"
#include "Interface/Resources/FontResourceImpl.h"
#inclu... | 32.364909 | 177 | 0.683241 | Noxagonal |
cf1485d6b4456ed43ad3558b0191dc7ba14f6957 | 162 | cpp | C++ | src/utils/Application.cpp | mgeorgoulopoulos/gencut | e9751c0d04816311d5460d14a88eaa1fcbe6f40d | [
"MIT"
] | null | null | null | src/utils/Application.cpp | mgeorgoulopoulos/gencut | e9751c0d04816311d5460d14a88eaa1fcbe6f40d | [
"MIT"
] | null | null | null | src/utils/Application.cpp | mgeorgoulopoulos/gencut | e9751c0d04816311d5460d14a88eaa1fcbe6f40d | [
"MIT"
] | null | null | null | #include "Application.h"
#include "GenomeModel.h"
void Application::execute() {
GenomeModel model;
model.load(arguments.genomeModelFilename, geneRegistry);
} | 18 | 57 | 0.771605 | mgeorgoulopoulos |
cf197e0fc95906c485da135c45136ca4783a1cd7 | 3,272 | cpp | C++ | src/script/scriptlistingdialog.cpp | nilsding/IrrerrC | 0ff273e96c7a2f731ae23e17c9d58b872db14ebc | [
"BSD-2-Clause"
] | 1 | 2016-06-14T14:21:27.000Z | 2016-06-14T14:21:27.000Z | src/script/scriptlistingdialog.cpp | nilsding/IrrerrC | 0ff273e96c7a2f731ae23e17c9d58b872db14ebc | [
"BSD-2-Clause"
] | null | null | null | src/script/scriptlistingdialog.cpp | nilsding/IrrerrC | 0ff273e96c7a2f731ae23e17c9d58b872db14ebc | [
"BSD-2-Clause"
] | null | null | null | #include "scriptlistingdialog.h"
#include "ui_scriptlistingdialog.h"
ScriptListingDialog::ScriptListingDialog(QWidget *parent) :
QDialog(parent),
_ui(new Ui::ScriptListingDialog),
_scriptDirModel(new QFileSystemModel), _currentScript(0)
{
_scriptDir = QFileInfo(_SETTINGS.fileName()).absolutePath() + "/... | 32.72 | 112 | 0.654951 | nilsding |
cf19d1a9499b20b8b71a2f80ec54d258e801780e | 3,505 | cpp | C++ | src/wbdl/wbdl.cpp | DAlexis/wb-display-lib | 67317051282d69904774d10553c33ed6c2dedb56 | [
"MIT"
] | null | null | null | src/wbdl/wbdl.cpp | DAlexis/wb-display-lib | 67317051282d69904774d10553c33ed6c2dedb56 | [
"MIT"
] | null | null | null | src/wbdl/wbdl.cpp | DAlexis/wb-display-lib | 67317051282d69904774d10553c33ed6c2dedb56 | [
"MIT"
] | null | null | null | #include "wbdl.hpp"
#include <algorithm>
using namespace wbdl;
//////////////////////////
// FrameBuffer
void FrameBuffer::clearDirty()
{
dirtyX0 = 0;
dirtyY0 = 0;
dirtyX1 = 0;
dirtyY1 = 0;
}
bool FrameBuffer::isDirty()
{
return dirtyX0 != dirtyX1;
}
unsigned int FrameBuffer::bufferSize()
{
return width * ... | 17.26601 | 75 | 0.580884 | DAlexis |
cf224860179885ffaa17a8ab974eef5da9fd7ae7 | 1,625 | hpp | C++ | third_party/boost/simd/detail/dispatch/property_of.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/detail/dispatch/property_of.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/detail/dispatch/property_of.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/*!
@file
Defines the property_of meta-function
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_... | 30.092593 | 100 | 0.651077 | SylvainCorlay |
cf23785fa10c5955c4187c84d5583a29b1301d3d | 577 | cpp | C++ | demos/glyph_paint/side_pane.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | demos/glyph_paint/side_pane.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | demos/glyph_paint/side_pane.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | #include "side_pane.hpp"
#include <cppurses/painter/color.hpp>
#include <cppurses/painter/glyph.hpp>
#include <cppurses/widget/widgets/text_display.hpp>
using namespace cppurses;
namespace demos {
namespace glyph_paint {
Side_pane::Side_pane() {
this->width_policy.fixed(16);
space1.wallpaper = L'─';
sp... | 22.192308 | 51 | 0.734835 | RyanDraves |
cf240458e3e47526197c6cf80111a9ad1882045f | 17,299 | hpp | C++ | bluetoe/attribute_handle.hpp | TorstenRobitzki/bluetoe | 0f04ccefa4e9ba6a89bf4dfaa0dd62b8e3a46043 | [
"MIT"
] | 138 | 2015-04-11T12:07:19.000Z | 2022-02-11T13:22:36.000Z | bluetoe/attribute_handle.hpp | TorstenRobitzki/bluetoe | 0f04ccefa4e9ba6a89bf4dfaa0dd62b8e3a46043 | [
"MIT"
] | 60 | 2015-08-29T12:32:56.000Z | 2022-03-25T07:20:21.000Z | bluetoe/attribute_handle.hpp | TorstenRobitzki/bluetoe | 0f04ccefa4e9ba6a89bf4dfaa0dd62b8e3a46043 | [
"MIT"
] | 34 | 2015-07-08T22:06:25.000Z | 2021-12-15T13:17:42.000Z | #ifndef BLUETOE_ATTRIBUTE_HANDLE_HPP
#define BLUETOE_ATTRIBUTE_HANDLE_HPP
#include <bluetoe/meta_types.hpp>
#include <bluetoe/meta_tools.hpp>
#include <cstdint>
#include <cstdlib>
#include <cassert>
#include <algorithm>
namespace bluetoe {
namespace details {
struct attribute_handle_meta_type {};
... | 45.643799 | 163 | 0.637493 | TorstenRobitzki |
cf293d85b523041d2dfca0b8c7c7fa252e3fac76 | 469 | cpp | C++ | no3.cpp | bigdaddyjeff/JeffreyCSC102 | dbdcbc50634b23ce7973c71329f4fdd2d3964927 | [
"MIT"
] | null | null | null | no3.cpp | bigdaddyjeff/JeffreyCSC102 | dbdcbc50634b23ce7973c71329f4fdd2d3964927 | [
"MIT"
] | null | null | null | no3.cpp | bigdaddyjeff/JeffreyCSC102 | dbdcbc50634b23ce7973c71329f4fdd2d3964927 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int var = 789;
int *ptr2;
int **ptr1;
ptr2 = &var;
ptr1 = &ptr2;
cout << "The value of var = "<< var << endl;
cout << "Content value of single pointer ptr2 = " << *ptr2 << endl;
cout << "address value of single pointer ptr2 = " << ptr2 << e... | 27.588235 | 71 | 0.58209 | bigdaddyjeff |
cf2a28aa2539b4286c59835f605a6abdd6eda519 | 18,747 | cpp | C++ | IP/IMap.cpp | bharat-varma/Software-Engineering | 36cdff296010e1076fb440707bfb2424110308ca | [
"Apache-2.0"
] | null | null | null | IP/IMap.cpp | bharat-varma/Software-Engineering | 36cdff296010e1076fb440707bfb2424110308ca | [
"Apache-2.0"
] | 3 | 2017-12-09T03:16:32.000Z | 2017-12-15T04:22:08.000Z | IP/IMap.cpp | bharat-varma/Software-Engineering | 36cdff296010e1076fb440707bfb2424110308ca | [
"Apache-2.0"
] | 1 | 2017-09-19T00:28:47.000Z | 2017-09-19T00:28:47.000Z | #include <map>
#include <set>
#include <vector>
#include <algorithm>
#include <cstdlib>
#include <stack>
#include <cmath>
using namespace std;
class IntMap {
public:
static const long serialVersionUID = 1L;
static const int FREE_KEY = 0;
static const int NO_VALUE = 0;
/** Keys and values */
vector<in... | 22.081272 | 134 | 0.53886 | bharat-varma |
cf2eed74523c5d43661f04cba155aa1d24e3eba1 | 45,612 | cpp | C++ | stlsoft/samples/whereis/whereis.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 86 | 2018-05-24T12:03:44.000Z | 2022-03-13T03:01:25.000Z | stlsoft/samples/whereis/whereis.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 1 | 2019-05-30T01:38:40.000Z | 2019-10-26T07:15:01.000Z | stlsoft/samples/whereis/whereis.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 14 | 2018-07-16T08:29:12.000Z | 2021-08-23T06:21:30.000Z | /* /////////////////////////////////////////////////////////////////////////////
* File: whereis.cpp
*
* Purpose: Implementation file for the Synesis Software whereis utility
*
* Created: 19th January 1996
* Updated: 16th August 2004
*
* Author: Matthew Wilson, Synesis Software P... | 31.829728 | 215 | 0.562001 | masscry |
cf33b92f91390297175f9db1e773eeda011fd2dc | 1,461 | cpp | C++ | Progs/Ch05/Referst.cpp | singhnir/C-Plus-Plus-Robert-Lafore | 7ce3c92d15958e157484fc989632b879360103aa | [
"MIT"
] | 4 | 2021-02-24T06:53:51.000Z | 2022-02-18T11:15:19.000Z | Progs/Ch05/Referst.cpp | singhnir/C-Plus-Plus-Robert-Lafore | 7ce3c92d15958e157484fc989632b879360103aa | [
"MIT"
] | null | null | null | Progs/Ch05/Referst.cpp | singhnir/C-Plus-Plus-Robert-Lafore | 7ce3c92d15958e157484fc989632b879360103aa | [
"MIT"
] | 4 | 2021-02-24T07:05:43.000Z | 2022-03-09T17:45:32.000Z | // referst.cpp
// demonstrates passing structure by reference
#include <iostream>
using namespace std;
////////////////////////////////////////////////////////////////
struct Distance //English distance
{
int feet;
float inches;
};
////////////////////////////////////////////... | 31.085106 | 65 | 0.450376 | singhnir |
cf3b5ad84e6ad780c89f9600ea72d405d86631b9 | 738 | cpp | C++ | src/QtGadgets/Validators/nRegExpValidator.cpp | Vladimir-Lin/QtGadgets | 5fcea23ca95d85088d68fa64996e16281549ec3c | [
"MIT"
] | null | null | null | src/QtGadgets/Validators/nRegExpValidator.cpp | Vladimir-Lin/QtGadgets | 5fcea23ca95d85088d68fa64996e16281549ec3c | [
"MIT"
] | null | null | null | src/QtGadgets/Validators/nRegExpValidator.cpp | Vladimir-Lin/QtGadgets | 5fcea23ca95d85088d68fa64996e16281549ec3c | [
"MIT"
] | null | null | null | #include <qtgadgets.h>
N::RegExpValidator:: RegExpValidator ( QObject * parent )
: QRegExpValidator ( parent )
, Validator ( parent )
{
}
N::RegExpValidator::~RegExpValidator (void)
{
}
int N::RegExpValidator::Type(void) const
{
return 1102 ;
}
voi... | 19.945946 | 78 | 0.658537 | Vladimir-Lin |
cf3dac6ef0e6d5ca630943ed95d601a3080002e5 | 2,746 | cpp | C++ | src/Kepler3rdLaw.cpp | wstern1234/CPP-Projects | e8712171355b7a833f8a63ce0ffa49dcca10b053 | [
"MIT"
] | null | null | null | src/Kepler3rdLaw.cpp | wstern1234/CPP-Projects | e8712171355b7a833f8a63ce0ffa49dcca10b053 | [
"MIT"
] | null | null | null | src/Kepler3rdLaw.cpp | wstern1234/CPP-Projects | e8712171355b7a833f8a63ce0ffa49dcca10b053 | [
"MIT"
] | null | null | null | // Identification comments code block
// Wills Stern
// Kepler's 3rd Law
// Editor(s) used: VS Code
// Compiler(s) used: g++
#include <iostream>
using std::cout;
using std::cin;
#include <string>
using std::string;
using std::endl;
#include <cctype> // for toupper
#include <cstdlib> // for atof
#include <cmath> //... | 22.145161 | 75 | 0.550255 | wstern1234 |
cf3e39d26b98da0c54f6d62a7faae7c489feb69d | 17,443 | hpp | C++ | tests/unit/coherence/util/CircularArrayListTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | tests/unit/coherence/util/CircularArrayListTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | tests/unit/coherence/util/CircularArrayListTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "cxxtest/TestSuite.h"
#include "coherence/lang.ns"
#include "coherence/util/CircularArrayList.hpp"
#include "private/coherence/util/l... | 32.301852 | 98 | 0.480193 | chpatel3 |
cf54ff4ccd37abfe5c66d8b83cbe74fcf6f7a80b | 24,755 | cpp | C++ | src/test_infNaN_iamax.cpp | tlapack/testBLAS | dd63ade035880783cd55a8032c13a6d8e85dc490 | [
"BSD-3-Clause"
] | null | null | null | src/test_infNaN_iamax.cpp | tlapack/testBLAS | dd63ade035880783cd55a8032c13a6d8e85dc490 | [
"BSD-3-Clause"
] | null | null | null | src/test_infNaN_iamax.cpp | tlapack/testBLAS | dd63ade035880783cd55a8032c13a6d8e85dc490 | [
"BSD-3-Clause"
] | 1 | 2021-06-28T21:13:49.000Z | 2021-06-28T21:13:49.000Z | /// @file test_infNaN_iamax.cpp
/// @brief Test cases for iamax with NaNs, Infs and the overflow threshold (OV).
//
// Copyright (c) 2021, University of Colorado Denver. All rights reserved.
//
// This file is part of testBLAS.
// testBLAS is free software: you can redistribute it and/or modify it under
// the terms of... | 32.317232 | 103 | 0.428277 | tlapack |
cf614dcba15e8f5442b2aedba5196ab8203bf185 | 2,744 | cpp | C++ | cpp/tests/tdmaMsgProcessor_UT.cpp | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | 133 | 2017-06-24T02:44:28.000Z | 2022-03-25T05:17:00.000Z | cpp/tests/tdmaMsgProcessor_UT.cpp | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | null | null | null | cpp/tests/tdmaMsgProcessor_UT.cpp | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | 33 | 2017-06-19T03:24:40.000Z | 2022-02-03T20:13:12.000Z | #include "tests/tdmaMsgProcessor_UT.hpp"
#include "comm/tdmaCmds.hpp"
#include "comm/tdmaComm.hpp"
#include "comm/cmdHeader.hpp"
#include "comm/commands.hpp"
#include "node/nodeParams.hpp"
#include "node/nodeState.hpp"
#include <gtest/gtest.h>
#include <cmath>
#include <unistd.h>
using std::vector;
namespace {
}
na... | 33.876543 | 134 | 0.673105 | MinesJA |
cf6521d38e5984acfd1d3a5a8a35309c09d30c38 | 1,545 | cc | C++ | Codeforces/BubbleCup/Problem H/H.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/BubbleCup/Problem H/H.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/BubbleCup/Problem H/H.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <map>
#include <set>
#include <vector>
#include <utility>
#include <queue>
#include <stack>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi f... | 21.458333 | 79 | 0.551456 | VastoLorde95 |
cf65bf0e6b368a9f22c998f5fe83b42b89c5c720 | 310 | hpp | C++ | systemc.hpp | dcblack/Simple-SystemC-Debug | b7997c7cb3b5ba0eed2016a2ae5ff85989216982 | [
"Apache-2.0"
] | 1 | 2021-06-20T02:26:30.000Z | 2021-06-20T02:26:30.000Z | systemc.hpp | dcblack/Simple-SystemC-Debug | b7997c7cb3b5ba0eed2016a2ae5ff85989216982 | [
"Apache-2.0"
] | null | null | null | systemc.hpp | dcblack/Simple-SystemC-Debug | b7997c7cb3b5ba0eed2016a2ae5ff85989216982 | [
"Apache-2.0"
] | 1 | 2021-03-01T14:58:27.000Z | 2021-03-01T14:58:27.000Z | #pragma once
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <systemc>
#include <sc_time_literal.hpp>
#pragma clang diagnostic pop
#pragma GCC diagnostic pop
//vim:syntax=systemc
| 28.181818 | 53 | 0.790323 | dcblack |
cf77bbe20e26934dc3acc307f4b1caa8f6b7cdfd | 391 | cpp | C++ | cpp/cpp_primer/chapter19/ex_19_03.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | 2 | 2019-12-21T00:53:47.000Z | 2020-01-01T10:36:30.000Z | cpp/cpp_primer/chapter19/ex_19_03.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | cpp/cpp_primer/chapter19/ex_19_03.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | //
// Created by kaiser on 19-3-16.
//
#include <iostream>
class A {
public:
virtual ~A() = default;
};
class B : public A {};
class C : public B {};
int main() {
{
A* pa = new C;
if (B* pb = dynamic_cast<B*>(pa); !pb) {
std::cerr << "error 1\n";
}
}
{
B* pb = new B;
if (C* pc = dy... | 13.964286 | 44 | 0.468031 | KaiserLancelot |
cf79eafceff5d8d46fae59e5aa56764304bdc8ef | 1,307 | hpp | C++ | code/adobe.poly/adobe/implementation/string_pool.hpp | andyprowl/virtual-concepts | ed3a5690c353b6998abcd3368a9b448f1bb2aa19 | [
"Unlicense"
] | 59 | 2015-04-01T12:55:36.000Z | 2021-06-22T02:46:20.000Z | adobe/implementation/string_pool.hpp | brycelelbach/asl | df0d271f6c67fbb944039a9455c4eb69ae6df141 | [
"MIT"
] | 1 | 2015-06-29T14:51:55.000Z | 2015-06-29T16:40:26.000Z | adobe/implementation/string_pool.hpp | brycelelbach/asl | df0d271f6c67fbb944039a9455c4eb69ae6df141 | [
"MIT"
] | 5 | 2016-04-19T09:21:11.000Z | 2021-12-29T09:48:09.000Z | /*
Copyright 2005-2007 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
*/
/*************************************************************************************************/
#ifndef ADOBE_STRING_POOL_H... | 26.673469 | 100 | 0.337414 | andyprowl |
cf8d4a21fc6e4946e1b77ff96f8b80daa1ee0b32 | 164 | hpp | C++ | src/semantic.hpp | amzamora/diamond | c9cad46401815461ebae8db781bbb669c11bd257 | [
"MIT"
] | 4 | 2021-02-02T19:55:23.000Z | 2021-03-26T22:54:12.000Z | src/semantic.hpp | amzamora/diamond | c9cad46401815461ebae8db781bbb669c11bd257 | [
"MIT"
] | 28 | 2021-01-31T01:04:54.000Z | 2021-12-11T13:53:49.000Z | src/semantic.hpp | amzamora/diamond | c9cad46401815461ebae8db781bbb669c11bd257 | [
"MIT"
] | null | null | null | #ifndef SEMANTIC_HPP
#define SEMANTIC_HPP
#include "types.hpp"
namespace semantic {
Result<Ok, Errors> analyze(std::shared_ptr<Ast::Program> program);
}
#endif
| 14.909091 | 67 | 0.756098 | amzamora |
cf90ef7c36bf959177421f9dd048e4f5d2ee1611 | 1,637 | cpp | C++ | src/GUI/Selection.cpp | szebest/Basic-SFML-Application-Framework | e6b979283a1aba87ea5eefb1785d6f9bf4485d4a | [
"MIT"
] | null | null | null | src/GUI/Selection.cpp | szebest/Basic-SFML-Application-Framework | e6b979283a1aba87ea5eefb1785d6f9bf4485d4a | [
"MIT"
] | null | null | null | src/GUI/Selection.cpp | szebest/Basic-SFML-Application-Framework | e6b979283a1aba87ea5eefb1785d6f9bf4485d4a | [
"MIT"
] | null | null | null | #include "Selection.h"
Selection::Selection(sf::Vector2f pos) :
m_selected(false)
{
m_outerShape.setRadius(12);
m_innerShape.setRadius(10);
m_innerShape.setFillColor(sf::Color::Blue);
setPosition(pos);
}
void Selection::handleEvents(sf::Event e, const sf::RenderWindow& window, sf::Vector2f displacement)
{
switc... | 22.736111 | 100 | 0.744655 | szebest |
cf984f3074382b3d9970476ba611f764046adf3a | 8,296 | cpp | C++ | Source/Motor2D/j1Player.cpp | Needlesslord/PaintWars_by_BrainDeadStudios | 578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf | [
"MIT"
] | 2 | 2020-03-06T11:32:40.000Z | 2020-03-20T12:17:30.000Z | Source/Motor2D/j1Player.cpp | Needlesslord/Heathen_Games | 578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf | [
"MIT"
] | 2 | 2020-03-03T09:56:57.000Z | 2020-05-02T15:50:45.000Z | Source/Motor2D/j1Player.cpp | Needlesslord/Heathen_Games | 578985b1a41ab9f0b8c5dd087ba3bc3d3ffd2edf | [
"MIT"
] | 1 | 2020-03-17T18:50:53.000Z | 2020-03-17T18:50:53.000Z | #include "p2Defs.h"
#include "j1App.h"
#include "p2Log.h"
#include "j1Textures.h"
#include "j1Input.h"
#include "j1Audio.h"
#include "j1Render.h"
#include "j1Window.h"
#include "j1Player.h"
#include "j1SceneManager.h"
#include "j1EntityManager.h"
#include "j1Window.h"
#include "j1UI_manager.h"
#include "Scene.h"
#inclu... | 22.241287 | 187 | 0.639344 | Needlesslord |
cf9d37798720db9786c9cc62bd9736ada53f15da | 3,671 | cpp | C++ | modules/tracktion_engine/plugins/internal/tracktion_VCA.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/plugins/internal/tracktion_VCA.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | modules/tracktion_engine/plugins/internal/tracktion_VCA.cpp | jbloit/tracktion_engine | b3fa7d6a3a404f64ae419abdf9c801d672cffb16 | [
"MIT",
"Unlicense"
] | null | null | null | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 27.192593 | 114 | 0.616998 | jbloit |
cf9e02d74d153181e3e897ebe551f78dd73fe3ea | 2,278 | cpp | C++ | FirstSemester(CS Project)/Plane.cpp | garretfox/C | 9c6baeffc26e1131b873c1d7aaa99b0145635526 | [
"MIT"
] | null | null | null | FirstSemester(CS Project)/Plane.cpp | garretfox/C | 9c6baeffc26e1131b873c1d7aaa99b0145635526 | [
"MIT"
] | null | null | null | FirstSemester(CS Project)/Plane.cpp | garretfox/C | 9c6baeffc26e1131b873c1d7aaa99b0145635526 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Plane.h"
#include <iostream>
using namespace std;
Plane::Plane() {
isSet = 0;
}
Plane::Plane(char *c)
{
PlaneName = c;
NumberOfParties = 0;
for (int i = 0; i < 40; i++) {
PartyArray[i].SetPartyName("NULL");
PartyArray[i].SetPartySize(0);
};
isSet = 0;
}
void Plane::SetPartyAt(... | 18.672131 | 87 | 0.644425 | garretfox |
cfa1a15555f29bc71b3ec1198ffc2ffa006c53f3 | 254 | cpp | C++ | abc/ABC161/cpp/a.cpp | yokotani92/atcoder | febaef2d13c40093a2a284c87a949cd46113801d | [
"MIT"
] | null | null | null | abc/ABC161/cpp/a.cpp | yokotani92/atcoder | febaef2d13c40093a2a284c87a949cd46113801d | [
"MIT"
] | null | null | null | abc/ABC161/cpp/a.cpp | yokotani92/atcoder | febaef2d13c40093a2a284c87a949cd46113801d | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;
const int MOD = 1E9 + 9;
const int INF = 1 << 29;
int main() {
int A;
cin >> A;
cout << A;
} | 18.142857 | 52 | 0.598425 | yokotani92 |
cfa44f9a16a58ec7ed3b6ee8a2744e12ce2704d7 | 1,985 | cpp | C++ | CSL/CSL-r/src/wmark/scanner_actions/tk_action.cpp | ZJU-ZSJ/CppTSL | 6ce7673d5f7f8de8769c6377090b845492e63aa9 | [
"BSD-2-Clause"
] | null | null | null | CSL/CSL-r/src/wmark/scanner_actions/tk_action.cpp | ZJU-ZSJ/CppTSL | 6ce7673d5f7f8de8769c6377090b845492e63aa9 | [
"BSD-2-Clause"
] | null | null | null | CSL/CSL-r/src/wmark/scanner_actions/tk_action.cpp | ZJU-ZSJ/CppTSL | 6ce7673d5f7f8de8769c6377090b845492e63aa9 | [
"BSD-2-Clause"
] | null | null | null | /*
** Xin YUAN, 2019, BSD (2)
*/
////////////////////////////////////////////////////////////////////////////////
#include "precomp.h"
#include "../WmarkScanner.h"
#include "../base/WmarkDef.h"
////////////////////////////////////////////////////////////////////////////////
////////////////////////... | 22.303371 | 81 | 0.38136 | ZJU-ZSJ |
cfa6269395b8e032be571d81ad55df8fe1d840f4 | 1,902 | cpp | C++ | test/algorithm/test_scalar_product.cpp | jan-moeller/lina | 9acaac27d7efb3e8b3c4d1ae2ad9425e79f233c8 | [
"MIT"
] | null | null | null | test/algorithm/test_scalar_product.cpp | jan-moeller/lina | 9acaac27d7efb3e8b3c4d1ae2ad9425e79f233c8 | [
"MIT"
] | null | null | null | test/algorithm/test_scalar_product.cpp | jan-moeller/lina | 9acaac27d7efb3e8b3c4d1ae2ad9425e79f233c8 | [
"MIT"
] | null | null | null | //
// MIT License
//
// Copyright (c) 2021 Jan Möller
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modif... | 35.886792 | 81 | 0.679811 | jan-moeller |
cfa71a4d6fc15a687b05d19ccf96c7684a70116f | 2,593 | cpp | C++ | src/database/core/SoXipMprActiveElement.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/database/core/SoXipMprActiveElement.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/database/core/SoXipMprActiveElement.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.... | 21.429752 | 100 | 0.712302 | OpenXIP |
bbb9f9305db3702a4b26f8b6b4ba73adab3845da | 424 | cpp | C++ | src/Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.cpp | sfulham/GameProject-1 | 83c065ac7abc4c0a098dfcb0d1cc13f9d8bf7a03 | [
"MIT"
] | null | null | null | src/Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.cpp | sfulham/GameProject-1 | 83c065ac7abc4c0a098dfcb0d1cc13f9d8bf7a03 | [
"MIT"
] | null | null | null | src/Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.cpp | sfulham/GameProject-1 | 83c065ac7abc4c0a098dfcb0d1cc13f9d8bf7a03 | [
"MIT"
] | null | null | null | //
// Created by MarcasRealAccount on 31. Oct. 2020
//
#include "Engine/Renderer/Apis/Vulkan/Shader/VulkanMaterialData.h"
#include "Engine/Renderer/Shader/Shader.h"
namespace gp1::renderer::apis::vulkan::shader
{
VulkanMaterialData::VulkanMaterialData(renderer::shader::Material* material)
: VulkanRendererData(m... | 26.5 | 77 | 0.754717 | sfulham |
bbbef5de65bc8b029ed136f8309ca4db2a319ecb | 1,879 | cpp | C++ | src/plugins/zalil/servicesmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/zalil/servicesmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/zalil/servicesmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.... | 25.053333 | 89 | 0.619478 | Maledictus |
bbc18b7e6cbf92a4660726cc386e7834f0fb3e2d | 1,773 | cpp | C++ | code/mandelbrot_tty/main.cpp | battibass/pf2021 | 7d370d26a53588c3168b57614e34e0dda70f5bbf | [
"CC-BY-4.0"
] | 7 | 2021-10-20T08:43:46.000Z | 2022-03-26T14:18:19.000Z | code/mandelbrot_tty/main.cpp | battibass/pf2021 | 7d370d26a53588c3168b57614e34e0dda70f5bbf | [
"CC-BY-4.0"
] | null | null | null | code/mandelbrot_tty/main.cpp | battibass/pf2021 | 7d370d26a53588c3168b57614e34e0dda70f5bbf | [
"CC-BY-4.0"
] | 10 | 2021-10-01T13:49:56.000Z | 2022-03-29T10:28:06.000Z | #include <iostream>
#include <string>
class Complex
{
double r_;
double i_;
public:
Complex(double r = 0., double i = 0.) : r_{r}, i_{i}
{
}
double real() const
{
return r_;
}
double imag() const
{
return i_;
}
Complex& operator+=(Complex const& o)
{
r_ += o.r_;
i_ += o.i_;
... | 17.909091 | 79 | 0.585448 | battibass |
bbc1d2621c8dd95ab7076682e99978b9f8e22d8a | 8,626 | cpp | C++ | Tests/DiligentToolsTest/src/RenderStateNotationParser/PipelineStateParserTest.cpp | SebMenozzi/DiligentTools | cf2d8b67df590a93862749051c65310535a2f3cd | [
"Apache-2.0"
] | null | null | null | Tests/DiligentToolsTest/src/RenderStateNotationParser/PipelineStateParserTest.cpp | SebMenozzi/DiligentTools | cf2d8b67df590a93862749051c65310535a2f3cd | [
"Apache-2.0"
] | null | null | null | Tests/DiligentToolsTest/src/RenderStateNotationParser/PipelineStateParserTest.cpp | SebMenozzi/DiligentTools | cf2d8b67df590a93862749051c65310535a2f3cd | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2022 Diligent Graphics LLC
*
* 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 applica... | 41.07619 | 161 | 0.761651 | SebMenozzi |
bbc21fea637e1879270776e4399ec10b782f2ba7 | 3,861 | hpp | C++ | source/Irrlicht/rtc/impl/threadpool.hpp | MagicAtom/irrlicht-ce | b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d | [
"IJG"
] | null | null | null | source/Irrlicht/rtc/impl/threadpool.hpp | MagicAtom/irrlicht-ce | b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d | [
"IJG"
] | null | null | null | source/Irrlicht/rtc/impl/threadpool.hpp | MagicAtom/irrlicht-ce | b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d | [
"IJG"
] | null | null | null | /**
* Copyright (c) 2020 Paul-Louis Ageneau
*
* 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 option) any later version.
*
* This ... | 30.642857 | 105 | 0.690236 | MagicAtom |
bbc512ed68463d935ede3a4f15d7ad35183f3eec | 310 | hxx | C++ | src/common.hxx | scuisdc/iojxd | 6ced0d5983a8075c313869791f7295b98ce3f174 | [
"BSD-2-Clause"
] | 1 | 2015-05-18T00:02:13.000Z | 2015-05-18T00:02:13.000Z | src/common.hxx | scuisdc/iojxd | 6ced0d5983a8075c313869791f7295b98ce3f174 | [
"BSD-2-Clause"
] | null | null | null | src/common.hxx | scuisdc/iojxd | 6ced0d5983a8075c313869791f7295b98ce3f174 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by secondwtq <lovejay-lovemusic@outlook.com> 2015/05/18.
// Copyright (c) 2015 SCU ISDC All rights reserved.
//
// This file is part of ISDCNext.
//
// We have always treaded the borderland.
//
#ifndef IOJXD_COMMON_HXX
#define IOJXD_COMMON_HXX
#include "context.hxx"
#endif //IOJXD_COMMON_HXX
| 19.375 | 67 | 0.735484 | scuisdc |
bbc685778822168fdfc95254155507c30e9efd6e | 6,505 | cpp | C++ | DrunkEngine/ComponentTransform.cpp | MarcFly/Fly3D-Engine | e8da09a63c7c3d991b8f25c346798ee230593e78 | [
"Unlicense"
] | null | null | null | DrunkEngine/ComponentTransform.cpp | MarcFly/Fly3D-Engine | e8da09a63c7c3d991b8f25c346798ee230593e78 | [
"Unlicense"
] | 3 | 2018-09-27T17:00:14.000Z | 2018-12-19T13:30:25.000Z | DrunkEngine/ComponentTransform.cpp | MarcFly/Fly3D-Engine | e8da09a63c7c3d991b8f25c346798ee230593e78 | [
"Unlicense"
] | null | null | null | #include "ComponentTransform.h"
#include "GameObject.h"
#include "Assimp/include/scene.h"
#include "GameObject.h"
#include "Application.h"
ComponentTransform::ComponentTransform(const aiMatrix4x4 * t, GameObject* par)
{
SetBaseVals();
SetFromMatrix(t);
parent = par;
SetLocalTransform();
}
void ComponentTransform... | 28.656388 | 119 | 0.719139 | MarcFly |
bbd3514f31648310f957b4b1fcb9c0c7b60f944c | 3,199 | hpp | C++ | src/Base/TaskProcessors/ThreadedTaskProcessor/ThreadedTaskProcessor.hpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | 1 | 2017-10-23T13:22:01.000Z | 2017-10-23T13:22:01.000Z | src/Base/TaskProcessors/ThreadedTaskProcessor/ThreadedTaskProcessor.hpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | null | null | null | src/Base/TaskProcessors/ThreadedTaskProcessor/ThreadedTaskProcessor.hpp | PhilipVinc/PincoSimulator | 562192cf3b09d0e67be7e6fee67ff9b59fbc3fd3 | [
"MIT"
] | null | null | null | //
// Created by Filippo Vicentini on 20/12/2017.
//
#ifndef SIMULATOR_THREADEDTASKPROCESSOR_HPP
#define SIMULATOR_THREADEDTASKPROCESSOR_HPP
#include "Base/TaskProcessor.hpp"
#include "Libraries/concurrentqueue.h"
#include <chrono>
#include <stdio.h>
#include <queue>
#include <vector>
#include <thread>
class Settin... | 27.577586 | 93 | 0.732416 | PhilipVinc |
bbdd1c2c1435f0fe5ac925a4c85998505813e3aa | 53 | cpp | C++ | HttpFramework/HttpCookieStorage.cpp | a1q123456/HttpFramework | debefffbb1283ae0f0277cc1b597237933bb47f7 | [
"MIT"
] | null | null | null | HttpFramework/HttpCookieStorage.cpp | a1q123456/HttpFramework | debefffbb1283ae0f0277cc1b597237933bb47f7 | [
"MIT"
] | null | null | null | HttpFramework/HttpCookieStorage.cpp | a1q123456/HttpFramework | debefffbb1283ae0f0277cc1b597237933bb47f7 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "HttpCookieStorage.h"
| 10.6 | 30 | 0.735849 | a1q123456 |
bbe130758cf8f984e00194113eb3eb9b908ba256 | 7,001 | hpp | C++ | include/CPreProcessor.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/CPreProcessor.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/CPreProcessor.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | 1 | 2019-06-11T03:41:48.000Z | 2019-06-11T03:41:48.000Z | #ifndef CPREPROCESSOR_H
#define CPREPROCESSOR_H
#if !defined(BOOST_WAVE_CUSTOM_DIRECTIVES_HOOKS_INCLUDED)
#define BOOST_WAVE_CUSTOM_DIRECTIVES_HOOKS_INCLUDED
#include <cstdio>
#include <iostream>
#include <ostream>
#include <string>
#include <algorithm>
#include <utility>
#include <unordered_map>
#include <boost/alg... | 35.180905 | 207 | 0.682474 | icebreakersentertainment |
bbe2cb86a39c0e9f769e98353c3d5a8c69a8506b | 920 | cpp | C++ | SE/Source/Maths/Vector4D.cpp | NahuCF/SE | 6b17be4bc05b114a9090da35756a587693cc00e5 | [
"WTFPL"
] | 1 | 2021-04-23T14:53:42.000Z | 2021-04-23T14:53:42.000Z | SE/Source/Maths/Vector4D.cpp | NahuCF/SE | 6b17be4bc05b114a9090da35756a587693cc00e5 | [
"WTFPL"
] | null | null | null | SE/Source/Maths/Vector4D.cpp | NahuCF/SE | 6b17be4bc05b114a9090da35756a587693cc00e5 | [
"WTFPL"
] | null | null | null | #include "pch.h"
#include "Vector4D.h"
namespace lptm {
Vector4D::Vector4D()
{
x = 0.0f;
y = 0.0f;
z = 0.0f;
w = 0.0f;
};
Vector4D::Vector4D(float x, float y, float z, float w)
{
this->x = x;
this->y = y;
this->z = z;
this->w = w;
}
Vector4D& Vector4D::Add(const Vector4D& other)
{
x += oth... | 14.83871 | 70 | 0.596739 | NahuCF |
bbe35a73de57f0577e102744972e21562c62f203 | 6,586 | cpp | C++ | cpp/src/msg_server/FileServConn.cpp | KevinHM/TTServer | c3a8dcb7e0d2dd0d3fc88ff919019ca5f0a81306 | [
"Apache-2.0"
] | 22 | 2015-05-02T11:21:32.000Z | 2022-03-04T09:58:19.000Z | cpp/src/msg_server/FileServConn.cpp | luyongfugx/TTServer | c3a8dcb7e0d2dd0d3fc88ff919019ca5f0a81306 | [
"Apache-2.0"
] | null | null | null | cpp/src/msg_server/FileServConn.cpp | luyongfugx/TTServer | c3a8dcb7e0d2dd0d3fc88ff919019ca5f0a81306 | [
"Apache-2.0"
] | 21 | 2015-01-02T01:21:04.000Z | 2021-05-12T09:52:54.000Z | //
// FileServConn.cpp
// public_TTServer
//
// Created by luoning on 14-8-19.
// Copyright (c) 2014年 luoning. All rights reserved.
//
#include "FileServConn.h"
#include "FileHandler.h"
#include "util.h"
#include "ImUser.h"
#include "AttachData.h"
#include "RouteServConn.h"
#include "MsgConn.h"
static ConnMap_t g_... | 28.387931 | 103 | 0.669602 | KevinHM |
bbeb3552b80935887cbfb333214abf80ac19950b | 21,059 | hpp | C++ | polympc/src/solvers/admm.hpp | alexandreguerradeoliveira/rocket_gnc | 164e96daca01d9edbc45bfaac0f6b55fe7324f24 | [
"MIT"
] | null | null | null | polympc/src/solvers/admm.hpp | alexandreguerradeoliveira/rocket_gnc | 164e96daca01d9edbc45bfaac0f6b55fe7324f24 | [
"MIT"
] | null | null | null | polympc/src/solvers/admm.hpp | alexandreguerradeoliveira/rocket_gnc | 164e96daca01d9edbc45bfaac0f6b55fe7324f24 | [
"MIT"
] | null | null | null | // This file is part of PolyMPC, a lightweight C++ template library
// for real-time nonlinear optimization and optimal control.
//
// Copyright (C) 2020 Listov Petr <petr.listov@epfl.ch>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distribute... | 41.373281 | 151 | 0.605632 | alexandreguerradeoliveira |
bbeee88e430aeae5c0b205f0569d88271a17eb23 | 5,730 | cpp | C++ | Remixed/CompositorBase.cpp | LukeRoss00/Revive | 09b1c59dfbff8abc06194809ec680b990b2cf21c | [
"MIT"
] | 1 | 2021-10-18T19:43:06.000Z | 2021-10-18T19:43:06.000Z | Remixed/CompositorBase.cpp | LukeRoss00/Revive | 09b1c59dfbff8abc06194809ec680b990b2cf21c | [
"MIT"
] | null | null | null | Remixed/CompositorBase.cpp | LukeRoss00/Revive | 09b1c59dfbff8abc06194809ec680b990b2cf21c | [
"MIT"
] | 1 | 2020-02-03T22:45:41.000Z | 2020-02-03T22:45:41.000Z | #include "CompositorBase.h"
#include "Session.h"
#include "FrameList.h"
#include "OVR_CAPI.h"
#include "microprofile.h"
#include <vector>
#include <algorithm>
#include <winrt/Windows.Graphics.Holographic.h>
using namespace winrt::Windows::Graphics::Holographic;
MICROPROFILE_DEFINE(WaitToBeginFrame, "Compositor", "W... | 30.478723 | 146 | 0.766492 | LukeRoss00 |
bbfc733ec98b5bbb144bd301d8aee1e9761dbbfa | 689 | cpp | C++ | ITP2/ITP2_5_D.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | ITP2/ITP2_5_D.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | ITP2/ITP2_5_D.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | // ITP2_5_D
#include <algorithm>
#include <iostream>
#include <numeric>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> v(n);
iota(v.begin(), v.end(), 1);
do {
for (int i = 0; i < n; i++) { // cout<<(i?" ":"")<<v[i];
if (i) { /... | 22.225806 | 78 | 0.489115 | felixny |
bbfc9a10011ebe085ef224beb130ea6fdfc7f0f2 | 3,204 | hpp | C++ | src/core/RegionHash.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | null | null | null | src/core/RegionHash.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | null | null | null | src/core/RegionHash.hpp | gyzhangqm/overkit-1 | 490aa77a79bd9708d7f2af0f3069b86545a2cebc | [
"MIT"
] | 1 | 2021-07-21T06:48:19.000Z | 2021-07-21T06:48:19.000Z | // Copyright (c) 2020 Matthew J. Smith and Overkit contributors
// License: MIT (http://opensource.org/licenses/MIT)
#ifndef OVK_CORE_REGION_HASH_HPP_INCLUDED
#define OVK_CORE_REGION_HASH_HPP_INCLUDED
#include <ovk/core/Array.hpp>
#include <ovk/core/ArrayView.hpp>
#include <ovk/core/Box.hpp>
#include <ovk/core/Field.... | 32.693878 | 98 | 0.762172 | gyzhangqm |
bbfee8b354473cc0810a75cd95d35b2a0f88ad3c | 169 | hpp | C++ | src/uproar/config/version.hpp | tiger-chan/lib-gradient-noise | 66eb8186b10f7507b437a81a4c6be16fcad5ccaf | [
"MIT"
] | null | null | null | src/uproar/config/version.hpp | tiger-chan/lib-gradient-noise | 66eb8186b10f7507b437a81a4c6be16fcad5ccaf | [
"MIT"
] | null | null | null | src/uproar/config/version.hpp | tiger-chan/lib-gradient-noise | 66eb8186b10f7507b437a81a4c6be16fcad5ccaf | [
"MIT"
] | null | null | null | #ifndef UPROAR_CONFIG_VERSION_HPP
#define UPROAR_CONFIG_VERSION_HPP
#define UPROAR_VERSION_MAJOR 0
#define UPROAR_VERSION_MINOR 1
#define UPROAR_VERSION_PATCH 0
#endif | 21.125 | 33 | 0.87574 | tiger-chan |
bbffb946d5ad4823637f463fcf7240bff13b2bc7 | 1,736 | cpp | C++ | src/MapEditor/Controls/ResourcePreview.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | 4 | 2019-06-17T13:44:49.000Z | 2021-01-19T10:39:48.000Z | src/MapEditor/Controls/ResourcePreview.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | null | null | null | src/MapEditor/Controls/ResourcePreview.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | 4 | 2019-06-17T16:03:20.000Z | 2020-02-15T09:14:30.000Z | // ResourcePreview.cpp : implementation file
//
#include "stdafx.h"
#include "..\MapEditor.h"
#include "ResourcePreview.h"
#include "Common\Map\Map.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//////////////////////////////////////////////////////////////////////... | 21.170732 | 85 | 0.667051 | vitek-karas |
0101e91b7672bcb40bcd0c23fffae67aab0ac75b | 1,013 | cpp | C++ | Examples/HttpRequest/HttpRequest.cpp | Rprop/RLib | bb94d51d69a2207b073a779a871336288ca733d1 | [
"Unlicense"
] | 23 | 2018-04-23T15:46:24.000Z | 2022-01-10T14:03:57.000Z | Examples/HttpRequest/HttpRequest.cpp | boyliang/RLib | bb94d51d69a2207b073a779a871336288ca733d1 | [
"Unlicense"
] | 1 | 2017-07-24T05:13:03.000Z | 2017-07-24T08:59:48.000Z | Examples/HttpRequest/HttpRequest.cpp | boyliang/RLib | bb94d51d69a2207b073a779a871336288ca733d1 | [
"Unlicense"
] | 13 | 2018-05-11T15:53:12.000Z | 2021-09-29T11:57:16.000Z | /********************************************************************
Created: 2016/07/18 19:15
Filename: HttpRequest.cpp
Author: rrrfff
Url: http://blog.csdn.net/rrrfff
*********************************************************************/
#include <RLib_Import.h>
//----------------------------------------... | 37.518519 | 89 | 0.564659 | Rprop |
010667525fb6e5965c1a1815abb558c4e033d42a | 574 | hpp | C++ | src/menu.hpp | matyalatte/2dPolyTo3d | be5ed4e871bd65c704ff12664f44e1aae5c89b24 | [
"MIT"
] | null | null | null | src/menu.hpp | matyalatte/2dPolyTo3d | be5ed4e871bd65c704ff12664f44e1aae5c89b24 | [
"MIT"
] | null | null | null | src/menu.hpp | matyalatte/2dPolyTo3d | be5ed4e871bd65c704ff12664f44e1aae5c89b24 | [
"MIT"
] | null | null | null | /*
* File: menu.hpp
* --------------------
* @author Matyalatte
* @version 2021/09/14
* - initial commit
*/
#pragma once
#include <GL/glut.h>
#include "2dpoly_to_3d/2dpoly_to_3d.hpp"
#include "2dpoly_to_3d/utils.hpp"
namespace openglHandler {
//functions for popup menu in glut
void menu(int item);
void menu... | 19.133333 | 53 | 0.698606 | matyalatte |
01069effde8f24ee53ea22b955062e516f748cc6 | 551 | hpp | C++ | libadb/include/libadb/api/rate/data/rate-limit-scope.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 1 | 2022-03-10T15:14:13.000Z | 2022-03-10T15:14:13.000Z | libadb/include/libadb/api/rate/data/rate-limit-scope.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 9 | 2022-03-07T21:00:08.000Z | 2022-03-15T23:14:52.000Z | libadb/include/libadb/api/rate/data/rate-limit-scope.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | null | null | null | #pragma once
#include <libadb/libadb.hpp>
#include <string>
namespace adb::api
{
/**
* @brief Rate Limit Scope
* @details https://discord.com/developers/docs/topics/rate-limits#header-format
*/
enum class RateLimitScope
{
/// per bot or user limit
User,
/// per bot o... | 22.958333 | 84 | 0.627949 | faserg1 |
010f361df1b18f8efcd37aec4d5169dcb9350ed1 | 5,117 | cpp | C++ | src/Snake.cpp | robifr/snake | 611c6cc0460a92cca7e033108be13510aeba6b69 | [
"MIT"
] | null | null | null | src/Snake.cpp | robifr/snake | 611c6cc0460a92cca7e033108be13510aeba6b69 | [
"MIT"
] | null | null | null | src/Snake.cpp | robifr/snake | 611c6cc0460a92cca7e033108be13510aeba6b69 | [
"MIT"
] | null | null | null | #include <cmath> //floor
#include "Snake.hpp"
#include "Game.hpp"
#include "View.hpp"
Snake::Snake(Game& game) :
game_(game) {
}
void Snake::changeDirection(int keyCode) {
int deltaX = 0, deltaY = 0;
switch (keyCode) {
case SDLK_UP:
case SDLK_w:
deltaX = 0;
deltaY... | 31.392638 | 100 | 0.555599 | robifr |
0113774bc56dbc38bad5b3751e4987a5c42fbff2 | 1,534 | hpp | C++ | src/messaging/MessageHandler.hpp | Fabi2607/MazeNet-Client | 1fcb0b3cbeeab123cb69cd18070e0bbf4907130c | [
"MIT"
] | null | null | null | src/messaging/MessageHandler.hpp | Fabi2607/MazeNet-Client | 1fcb0b3cbeeab123cb69cd18070e0bbf4907130c | [
"MIT"
] | null | null | null | src/messaging/MessageHandler.hpp | Fabi2607/MazeNet-Client | 1fcb0b3cbeeab123cb69cd18070e0bbf4907130c | [
"MIT"
] | null | null | null | #ifndef MAZENET_CLIENT_MESSAGEHANDLER_HPP
#define MAZENET_CLIENT_MESSAGEHANDLER_HPP
#include <string>
#include <player/IPlayerStrategy.hpp>
#include "../messaging/mazeCom.hxx"
#include "../player/GameSituation.hpp"
#include "../util/logging/Log.hpp"
#include "MessageDispatcher.hpp"
#pragma GCC diagnostic push
#pra... | 27.392857 | 91 | 0.789439 | Fabi2607 |
011567e9d19e6b5d02b15b496bc71cf9d07e8bf7 | 7,215 | hpp | C++ | scicpp/core/meta.hpp | tvanderbruggen/SciCpp | 09408506c8d0b49ca5dadb8cd1f3cb4db41c8c46 | [
"MIT"
] | 2 | 2021-08-02T09:03:30.000Z | 2022-02-17T11:58:05.000Z | scicpp/core/meta.hpp | tvanderbruggen/SciCpp | 09408506c8d0b49ca5dadb8cd1f3cb4db41c8c46 | [
"MIT"
] | null | null | null | scicpp/core/meta.hpp | tvanderbruggen/SciCpp | 09408506c8d0b49ca5dadb8cd1f3cb4db41c8c46 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
// Copyright (c) 2019-2021 Thomas Vanderbruggen <th.vanderbruggen@gmail.com>
#ifndef SCICPP_CORE_META
#define SCICPP_CORE_META
#include <Eigen/Dense>
#include <array>
#include <complex>
#include <ratio>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#inclu... | 30.315126 | 103 | 0.527235 | tvanderbruggen |
011928a30f96a3f6ebfb64f374f0d4bf5bebeaba | 11,070 | cpp | C++ | src/caffe/test/test_serialization_blob_codec.cpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | 1 | 2017-01-04T03:35:46.000Z | 2017-01-04T03:35:46.000Z | src/caffe/test/test_serialization_blob_codec.cpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | null | null | null | src/caffe/test/test_serialization_blob_codec.cpp | shayanshams66/caffe | 3b031d59cd6a419b433e9fe05c9fe4bfc3060f4e | [
"Intel",
"BSD-2-Clause"
] | null | null | null | #include <boost/assign.hpp>
#include <glog/logging.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <vector>
#include "caffe/internode/configuration.hpp"
#include "caffe/serialization/BlobCodec.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
namesp... | 35.594855 | 78 | 0.629901 | shayanshams66 |
0120cb3c518dc7e577506ec76c317ca23a2c125f | 412 | cpp | C++ | a/a216.cpp | mirkat1206/zerojudge_cpp | 263cd51f4eee4acec8396f6c069bba540ac15e96 | [
"BSD-2-Clause"
] | 1 | 2019-12-27T03:03:50.000Z | 2019-12-27T03:03:50.000Z | a/a216.cpp | mirkat1206/zerojudge_cpp | 263cd51f4eee4acec8396f6c069bba540ac15e96 | [
"BSD-2-Clause"
] | null | null | null | a/a216.cpp | mirkat1206/zerojudge_cpp | 263cd51f4eee4acec8396f6c069bba540ac15e96 | [
"BSD-2-Clause"
] | null | null | null | // a216 : 數數愛明明
#include <cstdio>
#define N 30010
int main()
{
// f[n] = n + f[n-1], g[n] = f[n] + g[n-1], f[1] = g[1] = 1
// f[i], g[i] is on day i !!!
long long int f[N] = { 0 , 1 , 3 }, g[N] = { 0 , 1 } ;
for( int i=3 ; i<N ; i++ )
{
f[i] = i + f[i-1] ;
g[i-1] = f[i-1] + g[i-2] ;
}
int n;... | 19.619048 | 61 | 0.393204 | mirkat1206 |
01215b320c80daaf94dc18a75469ceeffbd1cd72 | 7,317 | cc | C++ | ARM/NXP/Flash/FCB.cc | JohnAdriaan/RTX2C3 | 833cfa45ece56a1516cb743c6bafa7c916451e55 | [
"BSD-3-Clause"
] | null | null | null | ARM/NXP/Flash/FCB.cc | JohnAdriaan/RTX2C3 | 833cfa45ece56a1516cb743c6bafa7c916451e55 | [
"BSD-3-Clause"
] | null | null | null | ARM/NXP/Flash/FCB.cc | JohnAdriaan/RTX2C3 | 833cfa45ece56a1516cb743c6bafa7c916451e55 | [
"BSD-3-Clause"
] | null | null | null | // © 2019 John Adriaan. Licensed under the "3-clause BSD License"
///
/// \file ARM/NXP/Flash/FCB.cc
///
/// This file defines and instantiates the Flash Control Block at a known address.
/// The FCB is used by the i.MX RT10xx to best configure the Flash for use.
/// Note that this is completely self-contained - no ext... | 36.402985 | 129 | 0.531502 | JohnAdriaan |
0125409ff226d969876cee1c1b41b80f3bdcfc9e | 8,747 | hh | C++ | aku/FeatureModules.hh | lingsoft/AaltoASR | 40343e215a6cf1b7d5ed41a53095495567b0ab01 | [
"BSD-3-Clause"
] | 78 | 2015-01-07T14:33:47.000Z | 2022-03-15T09:01:30.000Z | aku/FeatureModules.hh | ufukhurriyetoglu/AaltoASR | 02b23d374ab9be9b0fd5d8159570b509ede066f3 | [
"BSD-3-Clause"
] | 4 | 2015-05-19T13:00:34.000Z | 2016-07-26T12:29:32.000Z | aku/FeatureModules.hh | ufukhurriyetoglu/AaltoASR | 02b23d374ab9be9b0fd5d8159570b509ede066f3 | [
"BSD-3-Clause"
] | 32 | 2015-01-16T08:16:24.000Z | 2021-04-02T21:26:22.000Z | #ifndef FEATUREMODULES_HH
#define FEATUREMODULES_HH
#include <vector>
#include "ModuleConfig.hh"
#include "FeatureModule.hh"
#include "BaseFeaModule.hh"
#include "AudioFileModule.hh"
#include "FFTModule.hh"
namespace aku {
class FeatureGenerator;
//////////////////////////////////////////////////////////////////
... | 28.584967 | 84 | 0.745627 | lingsoft |
01255311cfc3027c017846c9e92e7b40af6bc7e5 | 7,212 | cpp | C++ | Plugin_Kade/Kade_Thread.cpp | ChaseBro/MMDAgent | 779cd3035954c27016333a2186896e1870e9ee54 | [
"Libpng",
"Zlib",
"Unlicense"
] | 9 | 2017-08-17T01:01:55.000Z | 2022-02-02T09:50:09.000Z | Plugin_Kade/Kade_Thread.cpp | ChaseBro/MMDAgent | 779cd3035954c27016333a2186896e1870e9ee54 | [
"Libpng",
"Zlib",
"Unlicense"
] | null | null | null | Plugin_Kade/Kade_Thread.cpp | ChaseBro/MMDAgent | 779cd3035954c27016333a2186896e1870e9ee54 | [
"Libpng",
"Zlib",
"Unlicense"
] | 4 | 2017-08-17T01:01:57.000Z | 2021-06-28T08:30:17.000Z | /* ----------------------------------------------------------------- */
/* The Toolkit for Building Voice Interaction Systems */
/* "MMDAgent" developed by MMDAgent Project Team */
/* http://www.mmdagent.jp/ */
/* -------------------------... | 31.631579 | 120 | 0.555047 | ChaseBro |
012aaddbb70b4812f6398f41c04ebaeef57ce201 | 5,777 | cpp | C++ | ConvertTrips/Table_Process.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | ConvertTrips/Table_Process.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | ConvertTrips/Table_Process.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Table_Process.cpp - Trip Table Processing
//*********************************************************
#include "ConvertTrips.hpp"
//---------------------------------------------------------
// Table_Processing
//-------------------------------------------... | 24.070833 | 94 | 0.535053 | kravitz |
0130e07bf1f5706e74cab68b1c3d28619e46a356 | 4,250 | cpp | C++ | src/aimp_dotnet/SDK/MusicLibrary/InternalAimpDataFilterGroup.cpp | Smartoteka/aimp_dotnet | 544502b8d080c9280ba11917ef0cc3e8dec44234 | [
"Apache-2.0"
] | 52 | 2015-04-14T14:39:30.000Z | 2022-02-07T07:16:05.000Z | src/aimp_dotnet/SDK/MusicLibrary/InternalAimpDataFilterGroup.cpp | Smartoteka/aimp_dotnet | 544502b8d080c9280ba11917ef0cc3e8dec44234 | [
"Apache-2.0"
] | 11 | 2015-04-02T10:45:55.000Z | 2022-02-03T07:21:53.000Z | src/aimp_dotnet/SDK/MusicLibrary/InternalAimpDataFilterGroup.cpp | Smartoteka/aimp_dotnet | 544502b8d080c9280ba11917ef0cc3e8dec44234 | [
"Apache-2.0"
] | 9 | 2015-04-05T18:25:57.000Z | 2022-02-07T07:20:23.000Z | // ----------------------------------------------------
// AIMP DotNet SDK
// Copyright (c) 2014 - 2020 Evgeniy Bogdan
// https://github.com/martin211/aimp_dotnet
// Mail: mail4evgeniy@gmail.com
// ----------------------------------------------------
#include "Stdafx.h"
#include "InternalAimpDataFilterGroup.h"... | 33.203125 | 114 | 0.652235 | Smartoteka |
01319c06316ba1f9a9dcbb46f8fab72f5bed7355 | 540 | hpp | C++ | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_physics_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | 34 | 2017-08-16T13:58:24.000Z | 2022-03-31T11:50:25.000Z | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_physics_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | null | null | null | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_physics_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | 17 | 2017-08-18T07:42:44.000Z | 2022-01-02T02:43:06.000Z | #ifndef COCOS2DX_SCRIPT_LUA_COCOS2DX_SUPPORT_GENERATED_LUA_COCOS2DX_PHYSICS_MANUAL_H
#define COCOS2DX_SCRIPT_LUA_COCOS2DX_SUPPORT_GENERATED_LUA_COCOS2DX_PHYSICS_MANUAL_H
#if CC_USE_PHYSICS
#ifdef __cplusplus
extern "C" {
#endif
#include "tolua++.h"
#ifdef __cplusplus
}
#endif
#include "cocos2d.h"
#incl... | 24.545455 | 95 | 0.824074 | weiDDD |
0136f6b477e8ff4a69284a42a0c410dca1029e15 | 549 | cpp | C++ | SourceCode/Chapter 15/Pr15-8.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | 1 | 2019-04-09T18:29:38.000Z | 2019-04-09T18:29:38.000Z | SourceCode/Chapter 15/Pr15-8.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | SourceCode/Chapter 15/Pr15-8.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | // This program demonstrates that when a derived class function
// overrides a base class function, objects of the base class
// still call the base class version of the function.
#include <iostream>
using namespace std;
class BaseClass
{
public:
void showMessage()
{ cout << "This is the Base class.\n"; }
};
... | 18.3 | 63 | 0.675774 | aceiro |
01376e57347f54f4d6ca3209bcd2429d52c0bcdc | 17,513 | hpp | C++ | include/Avocado/backend/backend_descriptors.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | include/Avocado/backend/backend_descriptors.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | include/Avocado/backend/backend_descriptors.hpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | /*
* backend_descriptors.hpp
*
* Created on: Dec 5, 2021
* Author: Maciej Kozarzewski
*/
#ifndef AVOCADO_BACKEND_BACKEND_DESCRIPTORS_HPP_
#define AVOCADO_BACKEND_BACKEND_DESCRIPTORS_HPP_
#include "backend_defs.h"
#include <type_traits>
#include <array>
#include <vector>
#include <stack>
#include <algorithm... | 30.510453 | 141 | 0.661394 | AvocadoML |
01397d31fe431d899f2d2b93ba2b8846afc3137d | 175 | hpp | C++ | FootCommander.hpp | amit1021/wargame-b | 3b10fd404f7af5acfe1cfcc2c791f18afa36ab66 | [
"MIT"
] | null | null | null | FootCommander.hpp | amit1021/wargame-b | 3b10fd404f7af5acfe1cfcc2c791f18afa36ab66 | [
"MIT"
] | null | null | null | FootCommander.hpp | amit1021/wargame-b | 3b10fd404f7af5acfe1cfcc2c791f18afa36ab66 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Soldier.hpp"
class FootCommander : public Soldier
{
public:
FootCommander(int player) : Soldier(150,20,player){}
~FootCommander();
};
| 15.909091 | 57 | 0.697143 | amit1021 |
01413df5169b1339147ff85e257547c93c4f486f | 1,975 | cpp | C++ | Demo/MdiDemo/MdiDemoView.cpp | yanlinlin82/libffc | 6e067b0840f29958b97daea38bcd61099c2a473f | [
"MIT"
] | 9 | 2017-10-31T10:15:31.000Z | 2021-08-02T20:40:45.000Z | Demo/MdiDemo/MdiDemoView.cpp | yanlinlin82/libffc | 6e067b0840f29958b97daea38bcd61099c2a473f | [
"MIT"
] | 1 | 2019-07-21T12:13:37.000Z | 2019-07-22T14:56:18.000Z | Demo/MdiDemo/MdiDemoView.cpp | yanlinlin82/libffc | 6e067b0840f29958b97daea38bcd61099c2a473f | [
"MIT"
] | 5 | 2016-07-31T09:08:18.000Z | 2022-03-22T14:28:16.000Z | // MdiDemoView.cpp : implementation of the CMdiDemoView class
//
#include "stdafx.h"
#include "MdiDemo.h"
#include "MdiDemoDoc.h"
#include "MdiDemoView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMdiDemoView
IMPLEMENT_DYNCREATE(CMdiDemoView, CView)
BEGIN_MESSAGE_MAP(CMdiDemoView, CView)
... | 19.554455 | 78 | 0.711899 | yanlinlin82 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.