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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8903a6d3a5b58824be728c8a4637f05a1f6499b0 | 4,101 | cpp | C++ | ConsoleApplication1/Battle.cpp | ghostinthecamera/FightClub | 034a8e5ff260f84396b55a9533f214d5ed6d9d67 | [
"BSD-2-Clause"
] | null | null | null | ConsoleApplication1/Battle.cpp | ghostinthecamera/FightClub | 034a8e5ff260f84396b55a9533f214d5ed6d9d67 | [
"BSD-2-Clause"
] | null | null | null | ConsoleApplication1/Battle.cpp | ghostinthecamera/FightClub | 034a8e5ff260f84396b55a9533f214d5ed6d9d67 | [
"BSD-2-Clause"
] | null | null | null | #include "Battle.h"
#include <stdio.h>
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>
#include "Warrior.h"
#include <windows.h>
using namespace std;
extern Warrior* userwarriors;
void Battle::chooseWarriors() {
Warrior* warrior1 = nullptr;
Warrior* warrior2 = nullptr;
if (nWarriors =... | 29.085106 | 142 | 0.576932 | ghostinthecamera |
8904b593343bb76ed4e5f303abc38ab6dfae86c5 | 1,084 | hpp | C++ | ext/src/java/util/AbstractList_Itr.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/util/AbstractList_Itr.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/util/AbstractList_Itr.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/util/fwd-POI.hpp>
#include <java/lang/Object.hpp>
#include <java/util/Iterator.hpp>
struct default_init_tag;
class java::util::Abstrac... | 22.583333 | 97 | 0.690959 | pebble2015 |
8909492f5c49573426a36eab5a744bb97f13d109 | 1,599 | cpp | C++ | Programing_Assignment/merge_list.cpp | charlie219/Nevaeh-Technology | f94d03cb5713367e59bb086b3e6411b4010f3350 | [
"MIT"
] | null | null | null | Programing_Assignment/merge_list.cpp | charlie219/Nevaeh-Technology | f94d03cb5713367e59bb086b3e6411b4010f3350 | [
"MIT"
] | null | null | null | Programing_Assignment/merge_list.cpp | charlie219/Nevaeh-Technology | f94d03cb5713367e59bb086b3e6411b4010f3350 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stdlib.h>
#include <bits/stdc++.h>
using namespace std;
class Node{
public:
int data;
Node* next;
};
void append(Node** head_ref, int new_data)
{
Node* new_node = new Node();
Node *last = *head_ref;
new_node->data = new_... | 17.193548 | 60 | 0.524703 | charlie219 |
890aa571f3086dfc46608a85a29bb8788cf243a1 | 10,819 | cpp | C++ | compiler/src/FrontEnd/AST/ASTPrettyPrint.cpp | epoll-reactor/weak_compiler | c21a641453e1d7bb1c9d631a19b204706a84b450 | [
"MIT"
] | null | null | null | compiler/src/FrontEnd/AST/ASTPrettyPrint.cpp | epoll-reactor/weak_compiler | c21a641453e1d7bb1c9d631a19b204706a84b450 | [
"MIT"
] | 5 | 2022-01-15T20:03:44.000Z | 2022-03-16T07:40:49.000Z | compiler/src/FrontEnd/AST/ASTPrettyPrint.cpp | epoll-reactor/weak_compiler | c21a641453e1d7bb1c9d631a19b204706a84b450 | [
"MIT"
] | null | null | null | /* ASTPrettyPrint.cpp - helper function to dump AST to stdout.
* Copyright (C) 2022 epoll-reactor <glibcxx.chrono@gmail.com>
*
* This file is distributed under the MIT license.
*/
#include "FrontEnd/AST/ASTPrettyPrint.hpp"
#include "FrontEnd/AST/ASTBinaryOperator.hpp"
#include "FrontEnd/AST/ASTBooleanLiteral.hpp"
... | 29.722527 | 80 | 0.614752 | epoll-reactor |
890b4fda887a0ff048bb9d79f7a5c514a6c85ae7 | 263 | cpp | C++ | 168-excel-sheet-column-title/168-excel-sheet-column-title.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | 168-excel-sheet-column-title/168-excel-sheet-column-title.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | 168-excel-sheet-column-title/168-excel-sheet-column-title.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | class Solution {
public:
string convertToTitle(int n) {
string ans="";
while(n){
n--;
int k=n%26;
ans+='A'+k;
n/=26;
}
reverse(ans.begin(),ans.end());
return ans;
}
}; | 18.785714 | 39 | 0.395437 | SouvikChan |
890bb8fbdd8ac10fc4919635de18c960ca2028ed | 458 | cpp | C++ | 2020-I/Lessons/9/code/equation.cpp | CP-UTEC/theory | bd24c10d074ae7c25104460ba164d96d66efa502 | [
"Apache-2.0"
] | 5 | 2020-04-15T05:34:37.000Z | 2020-06-03T03:51:55.000Z | 2020-I/Lessons/9/code/equation.cpp | CP-UTEC/theory | bd24c10d074ae7c25104460ba164d96d66efa502 | [
"Apache-2.0"
] | null | null | null | 2020-I/Lessons/9/code/equation.cpp | CP-UTEC/theory | bd24c10d074ae7c25104460ba164d96d66efa502 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ld = long double;
ld a, b, c, d, e;
ld f(ld x) {
return a * x * x * x + b * x * x + c * x + d;
}
ld solve() {
ld l = 0;
ld r = 100;
for (int i = 0; i <= 65; i++) {
ld m = (l + r) / 2.0;
ld y = f(m);
if (y < e) {
l = m;
}
else {
r = m;
}
}
r... | 13.085714 | 53 | 0.425764 | CP-UTEC |
890eadacee54c6587c81edf87ebab0ad21614b14 | 3,829 | hpp | C++ | waveform_system/tone_generator.hpp | kumataro4160/Sense | ac44d306cc81fb37e017c0dcf12d9f3dd5e9af4b | [
"MIT"
] | null | null | null | waveform_system/tone_generator.hpp | kumataro4160/Sense | ac44d306cc81fb37e017c0dcf12d9f3dd5e9af4b | [
"MIT"
] | null | null | null | waveform_system/tone_generator.hpp | kumataro4160/Sense | ac44d306cc81fb37e017c0dcf12d9f3dd5e9af4b | [
"MIT"
] | null | null | null | #pragma once
#include "generator.hpp"
#include "../effector/iir_filter.hpp"
#include "../../iir/oscillation.hpp"
#include "../wave_table_2d.hpp"
namespace sense
{
class ToneGenerator : public Generator
{
protected:
const float64 initialTheta;
const float64 omega;
float64 theta;
public:
ToneGenerator(fl... | 22.656805 | 196 | 0.653173 | kumataro4160 |
890f3d055a0fc90013da493321bf395686682837 | 10,047 | cc | C++ | libcef/common/request_impl.cc | phuy/cef3 | 33449af3cfa7b43e8b0f9a7190a20def32cb8f7b | [
"BSD-3-Clause"
] | 2 | 2016-01-22T03:10:02.000Z | 2021-04-21T06:32:11.000Z | libcef/common/request_impl.cc | phuy/cef3 | 33449af3cfa7b43e8b0f9a7190a20def32cb8f7b | [
"BSD-3-Clause"
] | null | null | null | libcef/common/request_impl.cc | phuy/cef3 | 33449af3cfa7b43e8b0f9a7190a20def32cb8f7b | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2008-2009 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#include <string>
#include <vector>
#include "libcef/common/http_header_utils.h"
#include "libcef/common/request_impl.h"
#in... | 27.008065 | 80 | 0.708669 | phuy |
8915c4acfffe18f6c74777d83848306afbc021ee | 88,503 | cpp | C++ | RuyiSDKCpp/Generated/LocalizationService/LocalizationService.cpp | c04x/sdk | a263b98e081a05fa4aa2d43aae4c10f4b4631998 | [
"MIT"
] | null | null | null | RuyiSDKCpp/Generated/LocalizationService/LocalizationService.cpp | c04x/sdk | a263b98e081a05fa4aa2d43aae4c10f4b4631998 | [
"MIT"
] | null | null | null | RuyiSDKCpp/Generated/LocalizationService/LocalizationService.cpp | c04x/sdk | a263b98e081a05fa4aa2d43aae4c10f4b4631998 | [
"MIT"
] | null | null | null | /**
* Autogenerated by Thrift Compiler (0.11.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "LocalizationService.h"
namespace Ruyi { namespace SDK { namespace LocalizationService {
LocalizationService_SwitchLanguage_args::~LocalizationService_SwitchLanguage_arg... | 30.783652 | 201 | 0.674463 | c04x |
891b66d6769ac9ae15c289a6f8166c902bb23658 | 7,337 | inl | C++ | win7/csmisc/addons/amxmodx/scripting/war3ft/cstrike.inl | charlike/blankr | e137584ab9790057a10a0bdb51dd2ac035e46a2d | [
"MIT"
] | 6 | 2015-01-30T22:12:14.000Z | 2020-05-01T19:46:53.000Z | win7/csmisc/addons/amxmodx/scripting/war3ft/cstrike.inl | tunnckoCore/blankr | e137584ab9790057a10a0bdb51dd2ac035e46a2d | [
"MIT"
] | 41 | 2015-01-01T20:29:53.000Z | 2017-07-24T09:38:04.000Z | win7/csmisc/addons/amxmodx/scripting/war3ft/cstrike.inl | olstenlarck/blankr | e137584ab9790057a10a0bdb51dd2ac035e46a2d | [
"MIT"
] | 1 | 2020-05-01T19:44:17.000Z | 2020-05-01T19:44:17.000Z | /*
* Counter-Strike and Condition Zero only functions
*/
public on_EndRound()
{
if ( !WC3_Check() )
{
return;
}
g_EndRound = true;
// Save XP at the end of the round?
if ( get_pcvar_num( CVAR_wc3_save_end_round ) )
{
// Threaded saves on end round!
DB_SaveAll( true );
}
retur... | 19.82973 | 172 | 0.602699 | charlike |
8923ae3c3f108f6c8e8ed62cdce7e00b945698ed | 1,638 | hpp | C++ | TMNF_Helper/Utils/Logger.hpp | haseeb-heaven/Trackmania-ImGui-Dx9-Hooking | 640626ffc88811bc151ad9e3dab81220bb0e3885 | [
"MIT"
] | 3 | 2021-12-23T22:51:07.000Z | 2022-02-27T09:33:13.000Z | TMNF_Helper/Utils/Logger.hpp | haseeb-heaven/Trackmania_Tracks_Helper | 640626ffc88811bc151ad9e3dab81220bb0e3885 | [
"MIT"
] | null | null | null | TMNF_Helper/Utils/Logger.hpp | haseeb-heaven/Trackmania_Tracks_Helper | 640626ffc88811bc151ad9e3dab81220bb0e3885 | [
"MIT"
] | 1 | 2022-02-27T09:33:40.000Z | 2022-02-27T09:33:40.000Z | #ifndef __LOGGER_H__
#define __LOGGER_H__
#define _CRT_NONSTDC_NO_DEPRECATE
#define _CRT_SECURE_NO_WARNINGS
#define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
#include "Common.hpp"
#define LOG_IMGUI g_ImGuiLogger.AddLog
#define LOG_INFO( fmt, ...) g_Log->Writ... | 30.90566 | 102 | 0.735653 | haseeb-heaven |
8926dac7c671999bffb3a115e0954f8dc998c7b0 | 503 | cpp | C++ | DAY-93/IndexExtra.cpp | varshitha1707/DailyCoding | d8a974cf5742cc1a77d638eb188012bb32f31d5f | [
"MIT"
] | 5 | 2021-02-09T08:03:25.000Z | 2021-06-27T15:29:11.000Z | Day-93/IndexExtra.cpp | okarin1511/dailyCoding | a6b55c4a45f24f125331dda5fb269dc9cecc8e9c | [
"MIT"
] | null | null | null | Day-93/IndexExtra.cpp | okarin1511/dailyCoding | a6b55c4a45f24f125331dda5fb269dc9cecc8e9c | [
"MIT"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
void FindExtra(int arr1[], int arr2[], int n){
for(int i=0; i<n; i++ )
{
if(arr1[i]!=arr2[i])
{
cout<< i<<" ";
break;
}
}
}
int main() {
int arr1[] = {2, 4, 6, 8, 9, 10, 12};
int n1 ... | 17.964286 | 46 | 0.473161 | varshitha1707 |
892752d1f93430f8cfbe2440d0e5dde4589a38d1 | 952 | cc | C++ | Atcoder/ABC/247D.cc | BuckWang0509/ACM | 8250ff7e0510576b8348e96d2619184b68d915d0 | [
"MIT"
] | null | null | null | Atcoder/ABC/247D.cc | BuckWang0509/ACM | 8250ff7e0510576b8348e96d2619184b68d915d0 | [
"MIT"
] | null | null | null | Atcoder/ABC/247D.cc | BuckWang0509/ACM | 8250ff7e0510576b8348e96d2619184b68d915d0 | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
using namespace std;
typedef long long LL;
struct Node {
LL Val, Start, End;
};
int main() {
//freopen("in.txt", "r", stdin);
ios::sync_with_stdio(false);
LL pos = 0LL, point = 0LL;
deque<Node> que;
int T;
cin >> T;
while (T--) {
int op;
LL x, c;
cin >> op;
if (o... | 21.636364 | 71 | 0.446429 | BuckWang0509 |
892f59397c770fdf3c29cd35d75492fd66c39e6e | 4,518 | hpp | C++ | packages/monte_carlo/active_region/response/src/MonteCarlo_MaterialParticleResponseFunction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/active_region/response/src/MonteCarlo_MaterialParticleResponseFunction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/active_region/response/src/MonteCarlo_MaterialParticleResponseFunction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_MaterialParticleResponseFunction.hpp
//! \author Alex Robinson
//! \brief Material particle response function class declaration
//!
//---------------------------------------------------------------------------//
... | 34.753846 | 114 | 0.673971 | bam241 |
89344fc357ac295293694209cdb8a85aec063704 | 22,759 | cpp | C++ | src/Session.cpp | g-rin/qtsnmpclient | a1732c3a575778e4db4e4a83ffe3a14a5ff8de93 | [
"MIT"
] | 14 | 2017-12-14T14:25:04.000Z | 2021-06-13T02:45:55.000Z | src/Session.cpp | g-rin/qtsnmpclient | a1732c3a575778e4db4e4a83ffe3a14a5ff8de93 | [
"MIT"
] | 2 | 2018-02-23T09:59:58.000Z | 2021-04-24T10:03:40.000Z | src/Session.cpp | g-rin/qtsnmpclient | a1732c3a575778e4db4e4a83ffe3a14a5ff8de93 | [
"MIT"
] | 8 | 2018-01-29T08:04:01.000Z | 2021-04-24T10:06:53.000Z | #include "Session.h"
#include "QtSnmpData.h"
#include "RequestValuesJob.h"
#include "RequestSubValuesJob.h"
#include "SetValueJob.h"
#include <QDateTime>
#include <QHostAddress>
#include <QThread>
#include <math.h>
namespace qtsnmpclient {
namespace {
const int default_response_timeout = 10000;
QString error... | 37.680464 | 110 | 0.54585 | g-rin |
9f13ebe7f5a447a9d6e4432ae5f4bdc802f59b69 | 9,762 | cpp | C++ | Pokopom/psemupro.cpp | KrossX/Pokopom | 2f3f6a3b3dd02d73762b1c7badd1d4cae0984103 | [
"MIT"
] | 44 | 2015-01-30T13:21:51.000Z | 2021-03-08T10:28:16.000Z | Pokopom/psemupro.cpp | KrossX/Pokopom | 2f3f6a3b3dd02d73762b1c7badd1d4cae0984103 | [
"MIT"
] | 28 | 2015-03-29T08:37:50.000Z | 2022-01-29T15:07:39.000Z | Pokopom/psemupro.cpp | KrossX/Pokopom | 2f3f6a3b3dd02d73762b1c7badd1d4cae0984103 | [
"MIT"
] | 16 | 2015-01-29T17:40:39.000Z | 2022-03-04T14:30:44.000Z | /* Copyright (c) 2012 KrossX <krossx@live.com>
* License: http://www.opensource.org/licenses/mit-license.html MIT License
*/
#include "psemupro.h"
#include "ConfigDialog.h"
#include "Input.h"
PlayStationDevice * controller[2] = {NULL, NULL};
char settingsDirectory[1024]; // for PCSX2
u32 buffer_count;
u32 curre... | 21.790179 | 101 | 0.564946 | KrossX |
9f18fa5d244cad57ed5fc3f14a0b8367e2f59787 | 1,423 | cpp | C++ | jerome/npc/detail/Ranker.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | 3 | 2018-06-11T10:48:54.000Z | 2021-05-30T07:10:15.000Z | jerome/npc/detail/Ranker.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | jerome/npc/detail/Ranker.cpp | leuski-ict/jerome | 6141a21c50903e98a04c79899164e7d0e82fe1c2 | [
"Apache-2.0"
] | null | null | null | //
// Ranker.cpp
//
// Created by Anton Leuski on 7/31/15.
// Copyright (c) 2015 Anton Leuski & ICT/USC. All rights reserved.
//
// This file is part of Jerome.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obt... | 27.901961 | 80 | 0.670415 | leuski-ict |
9f1c96c9d12e8eb42df5e5de5ed6fd3e12abc20c | 1,883 | hpp | C++ | src/Engine/Display/KeyState.hpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Engine/Display/KeyState.hpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Engine/Display/KeyState.hpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | #pragma once
#include <chrono>
#include <iostream>
class KeyState {
public:
enum eKeyState {
kNone = (1 << 0),
kDown = (1 << 1),
kPress = (1 << 2),
kUp = (1 << 3),
kMaskOn = (kDown | kPress | kUp),
kMaskOff = (kNone)
};
KeyState();
KeyState(const KeyState& value);
KeyState(eKeyState value);
void ... | 24.454545 | 68 | 0.712161 | Jino42 |
9f1ebdda3843a1ad395781d214d34fbbe81467a5 | 112 | hpp | C++ | libraries/chain/include/myeosio/chain/protocol.hpp | bithacks-tech/myeosio | 577f6830e72fa764497c20a6b9200ba02b80ab2e | [
"MIT"
] | null | null | null | libraries/chain/include/myeosio/chain/protocol.hpp | bithacks-tech/myeosio | 577f6830e72fa764497c20a6b9200ba02b80ab2e | [
"MIT"
] | null | null | null | libraries/chain/include/myeosio/chain/protocol.hpp | bithacks-tech/myeosio | 577f6830e72fa764497c20a6b9200ba02b80ab2e | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in myeosio/LICENSE.txt
*/
#pragma once
#include <myeosio/chain/block.hpp>
| 16 | 45 | 0.678571 | bithacks-tech |
9f1f69ebac008f6775f5f0a30daeb6aa16eaacd6 | 54 | hpp | C++ | src/boost_log_utility_functional_ends_with.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_log_utility_functional_ends_with.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_log_utility_functional_ends_with.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/log/utility/functional/ends_with.hpp>
| 27 | 53 | 0.814815 | miathedev |
9f222cffdd159122d0b509420de39517260ad03c | 3,564 | hpp | C++ | include/Newtonsoft/Json/Bson/BsonReader_ContainerContext.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/Newtonsoft/Json/Bson/BsonReader_ContainerContext.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/Newtonsoft/Json/Bson/BsonReader_ContainerContext.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: Newtonsoft.Json.Bson.BsonReader
#in... | 44 | 136 | 0.723345 | RedBrumbler |
9f2538cdb748533d0530dcbb0c34a86bcf68fe46 | 465 | cpp | C++ | ETICV1C09/E16.cpp | GydaRagnarsdottir/Thinking-In-Cpp-2.-Edition-Exercises-on-Visual-Studio- | 41a9ba6e90547ee8b531deeb5591fa0bf5bf7c13 | [
"MIT"
] | null | null | null | ETICV1C09/E16.cpp | GydaRagnarsdottir/Thinking-In-Cpp-2.-Edition-Exercises-on-Visual-Studio- | 41a9ba6e90547ee8b531deeb5591fa0bf5bf7c13 | [
"MIT"
] | null | null | null | ETICV1C09/E16.cpp | GydaRagnarsdottir/Thinking-In-Cpp-2.-Edition-Exercises-on-Visual-Studio- | 41a9ba6e90547ee8b531deeb5591fa0bf5bf7c13 | [
"MIT"
] | null | null | null | //Write a program that takes a string as the command - line
//argument.Write a for loop that removes one character
//from the string with each pass, and use the DEBUG()
//macro from this chapter to print the string each time.
#include <iostream>
using namespace std;
#define DEBUG(x) cout << #x " = " << x << endl
... | 29.0625 | 60 | 0.632258 | GydaRagnarsdottir |
9f2c0193cfe5878ff770873a2e608bb849b152f7 | 330 | cpp | C++ | benignware/1302.cpp | CodmingOut/SecretProjectAI | addc43117eab30a25453c18fa042739c33cc6cfb | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/1000/1302.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/1000/1302.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<map>
using namespace std;
int main()
{
int n, max=0;
map<string, int> M;
string ans = "";
scanf("%d", &n);
for (int i = 0; i < n; i++)
{
string str;
cin >> str;
M[str]++;
}
for (auto i : M)
{
if (max < i.second)
ans = i.first, max = i.second;
}
cout... | 12.222222 | 33 | 0.533333 | CodmingOut |
9f30f959aed4fc2410f821b7d0d4f6e36bb85237 | 8,178 | cc | C++ | build/ARM/python/m5/internal/param_TimingExpr.py.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_TimingExpr.py.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_TimingExpr.py.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_param_TimingExpr[] = {
120,156,189,88,109,111,227,198,17,158,37,41,218,148,173,179,
124,246,157,239,45,53,139,194,136,18,36,118,123,237,53,5,
114,56,52,233,165,72,10,212,73,168,52,190,40,73,89,154,
92,73,148,41,82,32,215,119,167,192,254... | 57.188811 | 77 | 0.666178 | Jakgn |
9f3123a7d94cba33208a3a43140dd111c441bb03 | 2,435 | cpp | C++ | exporters/FusionRobotExporter/Source/Data/BXDJ/JointSensor.cpp | HiceS/synthesis | 9dbc6812cd296a04c35d45854e821f76c5890b56 | [
"Apache-2.0"
] | 1 | 2020-09-11T19:34:39.000Z | 2020-09-11T19:34:39.000Z | exporters/FusionRobotExporter/Source/Data/BXDJ/JointSensor.cpp | HiceS/synthesis | 9dbc6812cd296a04c35d45854e821f76c5890b56 | [
"Apache-2.0"
] | null | null | null | exporters/FusionRobotExporter/Source/Data/BXDJ/JointSensor.cpp | HiceS/synthesis | 9dbc6812cd296a04c35d45854e821f76c5890b56 | [
"Apache-2.0"
] | 1 | 2020-09-11T19:49:36.000Z | 2020-09-11T19:49:36.000Z | #include "JointSensor.h"
using namespace BXDJ;
JointSensor::JointSensor(const JointSensor & sensorToCopy)
{
type = sensorToCopy.type;
portSignal = sensorToCopy.portSignal;
portA = sensorToCopy.portA;
portB = sensorToCopy.portB;
conversionFactor = sensorToCopy.conversionFactor;
}
JointSensor::JointSensor(Type ty... | 27.055556 | 157 | 0.726489 | HiceS |
9f32552c6cea76222bd5be6185efc88cb56ac987 | 623 | hpp | C++ | src/erhe/graphics/log.hpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 36 | 2021-05-03T10:47:49.000Z | 2022-03-19T12:54:03.000Z | src/erhe/graphics/log.hpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 29 | 2020-05-17T08:26:31.000Z | 2022-03-27T08:52:47.000Z | src/erhe/graphics/log.hpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 2 | 2022-01-24T09:24:37.000Z | 2022-01-31T20:45:36.000Z | #pragma once
#include "erhe/log/log.hpp"
namespace erhe::graphics
{
extern erhe::log::Category log_buffer;
extern erhe::log::Category log_configuration;
extern erhe::log::Category log_framebuffer;
extern erhe::log::Category log_fragment_outputs;
extern erhe::log::Category log_glsl;
extern erhe::log::Category log_loa... | 28.318182 | 57 | 0.797753 | tksuoran |
9f3321b9cf45bdd030744c95ca06f12eef93af55 | 39,703 | cpp | C++ | src/Information/Information.cpp | XBoter/12VLEDControllerMk4 | d1b02b36c483b62f7aa5fb17913030ba502e5d69 | [
"MIT"
] | 1 | 2021-05-04T22:07:18.000Z | 2021-05-04T22:07:18.000Z | src/Information/Information.cpp | XBoter/12VLEDControllerMk4 | d1b02b36c483b62f7aa5fb17913030ba502e5d69 | [
"MIT"
] | 6 | 2021-02-06T08:08:51.000Z | 2022-01-05T15:36:21.000Z | src/Information/Information.cpp | XBoter/12VLEDControllerMk4 | d1b02b36c483b62f7aa5fb17913030ba502e5d69 | [
"MIT"
] | 2 | 2021-05-04T22:07:19.000Z | 2021-12-16T15:43:24.000Z | #include "Information.h"
Information::Information(){
};
/**
* Sets reference to external components
*/
void Information::setReference(Network *network,
Network *memNetwork,
PirReader *pirReader,
PirReader *memPirReader)
{
... | 41.704832 | 164 | 0.660454 | XBoter |
9f39299ac3748ecaebf39b2a639ec44292b474fc | 589 | cpp | C++ | 201510_201609/1014_KUPC_2013/D.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 7 | 2019-03-24T14:06:29.000Z | 2020-09-17T21:16:36.000Z | 201510_201609/1014_KUPC_2013/D.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | null | null | null | 201510_201609/1014_KUPC_2013/D.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 1 | 2020-07-22T17:27:09.000Z | 2020-07-22T17:27:09.000Z | #include <iostream>
#include <stack>
using namespace std;
int main() {
int N;
cin >> N;
int a[200010];
int mini_c = (1 << 30);
for (auto i=0; i<N; i++) {
cin >> a[i];
if (mini_c > a[i]) mini_c = a[i];
}
stack<int> S;
int ans = 1;
S.push(mini_c);
for (auto i=0; i<N; i++) {
// cerr << "a[... | 19 | 51 | 0.415959 | kazunetakahashi |
9f39c9822baa68aa77d71143aabf30392920b8c6 | 5,612 | cpp | C++ | Game/Source/FlyEnemy.cpp | alexgesti/PlatformerGame | b3d8783a229094cc999b96c3e109e2ce5fd0e922 | [
"MIT"
] | null | null | null | Game/Source/FlyEnemy.cpp | alexgesti/PlatformerGame | b3d8783a229094cc999b96c3e109e2ce5fd0e922 | [
"MIT"
] | null | null | null | Game/Source/FlyEnemy.cpp | alexgesti/PlatformerGame | b3d8783a229094cc999b96c3e109e2ce5fd0e922 | [
"MIT"
] | null | null | null | #include "App.h"
#include "Textures.h"
#include "Input.h"
#include "Map.h"
#include "Render.h"
#include "Window.h"
#include "FlyEnemy.h"
#include "ModuleController.h"
#include "Pathfinding.h"
#include "Player.h"
#include "Audio.h"
#include "ScenePause.h"
#include "GameplayHUD.h"
#include "Defs.h"
#include "Log.h"
Fly... | 25.393665 | 132 | 0.660905 | alexgesti |
9f3ab4017bae638ab6fae4913eb4b2eb88a9e917 | 1,784 | cpp | C++ | src/client/src/EnRecognitionParser.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | src/client/src/EnRecognitionParser.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | src/client/src/EnRecognitionParser.cpp | don-reba/peoples-note | c22d6963846af833c55f4294dd0474e83344475d | [
"BSD-2-Clause"
] | null | null | null | #include "stdafx.h"
#include "EnRecognitionParser.h"
#include "RapidXML/rapidxml.hpp"
using namespace rapidxml;
using namespace std;
void EnRecognitionParser::Parse
( const wstring & xml
, RecognitionEntryList & entries
, const Guid & resource
)
{
if (xml.empty())
return;
typ... | 25.855072 | 63 | 0.605381 | don-reba |
9f3d968b300996e6ac92545bf46a7d22ed163186 | 241 | cpp | C++ | test/config/test_parse_error.cpp | galaxysoftware/galaxy | b05af4aa071e32a0b0b067bfb80a236a90c87dde | [
"MIT"
] | null | null | null | test/config/test_parse_error.cpp | galaxysoftware/galaxy | b05af4aa071e32a0b0b067bfb80a236a90c87dde | [
"MIT"
] | null | null | null | test/config/test_parse_error.cpp | galaxysoftware/galaxy | b05af4aa071e32a0b0b067bfb80a236a90c87dde | [
"MIT"
] | null | null | null | #include "config/parse_error.h"
#include <gtest/gtest.h>
using namespace gxy;
TEST(Fixture, Throw_WhatIsParseError)
{
try {
throw parse_error{};
} catch(const std::exception &e) {
ASSERT_STREQ("parse error", e.what());
}
}
| 15.0625 | 42 | 0.672199 | galaxysoftware |
9f3e9a5d0d4baa2be588eecf55379088974d2ed9 | 3,578 | cpp | C++ | src/memory/alloc/PageFrameAllocator.cpp | gwoplock/ExOS | 544949c05063506ddc26d0a2ee4a7a8c9e4f1418 | [
"MIT"
] | 17 | 2017-08-09T20:00:07.000Z | 2021-12-16T20:11:46.000Z | src/memory/alloc/PageFrameAllocator.cpp | gwoplock/ExOS | 544949c05063506ddc26d0a2ee4a7a8c9e4f1418 | [
"MIT"
] | 24 | 2017-07-12T20:13:48.000Z | 2018-08-26T22:18:43.000Z | src/memory/alloc/PageFrameAllocator.cpp | gwoplock/ExOS | 544949c05063506ddc26d0a2ee4a7a8c9e4f1418 | [
"MIT"
] | 13 | 2017-08-13T03:05:49.000Z | 2021-06-25T17:06:39.000Z | /*
* PageFrameAllocator.cpp
*
* Created on: Apr 29, 2017
* Author: garrett
*/
#include "memory/alloc/PageFrameAllocator.h"
#include "memory/Mem.h"
#include "memory/structures/PageTable.h"
PageFrameAllocator::PageFrameAllocator( ) {
// TODO Auto-generated constructor stub
}
/**
* set up the allocator.
*/... | 26.701493 | 91 | 0.627166 | gwoplock |
9f41817dbdb52187c32d09e4e84b135d2d1971a1 | 8,626 | cpp | C++ | native_raycasting/src/native_raycasting.cpp | d954mas/defold-raycasting | 426d2ccff3b5b60bfbc07db07a6354abed705fe8 | [
"MIT"
] | 3 | 2018-01-07T21:24:37.000Z | 2021-07-08T14:58:08.000Z | native_raycasting/src/native_raycasting.cpp | d954mas/defold-raycasting | 426d2ccff3b5b60bfbc07db07a6354abed705fe8 | [
"MIT"
] | null | null | null | native_raycasting/src/native_raycasting.cpp | d954mas/defold-raycasting | 426d2ccff3b5b60bfbc07db07a6354abed705fe8 | [
"MIT"
] | null | null | null | #define PI 3.14159265358979323846
#define TWO_PI 3.14159265358979323846 * 2
#define HALF_PI PI / 2.0
#define ROUNDNUM(x) (int)(x + 0.5)
#include <dmsdk/sdk.h>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include "world_structures.h"
#include "buffer.h"
#include "raycasting.h"
... | 34.094862 | 139 | 0.665778 | d954mas |
9f41ad890700d909647b3f0a768268695f4f8914 | 18,356 | cpp | C++ | automated-tests/src/dali-toolkit/utc-Dali-DragAndDropDetector.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2016-11-18T10:26:51.000Z | 2021-01-28T13:51:59.000Z | automated-tests/src/dali-toolkit/utc-Dali-DragAndDropDetector.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 13 | 2020-07-15T11:33:03.000Z | 2021-04-09T21:29:23.000Z | automated-tests/src/dali-toolkit/utc-Dali-DragAndDropDetector.cpp | dalihub/dali-toolk | 980728a7e35b8ddd28f70c090243e8076e21536e | [
"Apache-2.0",
"BSD-3-Clause"
] | 10 | 2019-05-17T07:15:09.000Z | 2021-05-24T07:28:08.000Z | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* 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... | 32.034904 | 100 | 0.769285 | dalihub |
9f481983336572ccb4db4fb088ddad16fa729889 | 2,448 | cpp | C++ | source/sqltypes.cpp | Santili/cppsqlx | 32ba861d737cb16c2e337209c1c54e10fa575d3c | [
"MIT"
] | null | null | null | source/sqltypes.cpp | Santili/cppsqlx | 32ba861d737cb16c2e337209c1c54e10fa575d3c | [
"MIT"
] | null | null | null | source/sqltypes.cpp | Santili/cppsqlx | 32ba861d737cb16c2e337209c1c54e10fa575d3c | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2016, Santili Y-HRAH KRONG
* 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 notice, this
* lis... | 30.987342 | 83 | 0.641748 | Santili |
9f487562f192764286fd1d5cc014fcb05d304c99 | 704 | cpp | C++ | 0000/40/48a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0000/40/48a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0000/40/48a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <string>
bool test(const std::string& a, const std::string& b, const std::string& c)
{
if (b != c)
return false;
return (a == "rock" && b == "scissors")
|| (a == "paper" && b == "rock")
|| (a == "scissors" && b == "paper");
}
void answer(char v)
{
std:... | 16.372093 | 76 | 0.475852 | actium |
9f54f6588a998affc62ff4eb31027862b426170b | 22,383 | cpp | C++ | DialogTools/KMeansDlg.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | DialogTools/KMeansDlg.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | DialogTools/KMeansDlg.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | /**
* GeoDa TM, Copyright (C) 2011-2015 by Luc Anselin - all rights reserved
*
* This file is part of GeoDa.
*
* GeoDa 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... | 34.541667 | 191 | 0.596837 | chenyoujie |
9f57f474f3505f6150a486b2cdfabbc1787cd8a6 | 679 | cpp | C++ | kactl/stress-tests/numerical/FastSubsetTransform.cpp | prince776/CodeBook | 874fc7f94011ad1d25a55bcd91fecd2a11eb5a9b | [
"CC0-1.0"
] | 17 | 2021-01-25T12:07:17.000Z | 2022-02-26T17:20:31.000Z | kactl/stress-tests/numerical/FastSubsetTransform.cpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | null | null | null | kactl/stress-tests/numerical/FastSubsetTransform.cpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | 4 | 2021-02-28T11:13:44.000Z | 2021-11-20T12:56:20.000Z | #include "../utilities/template.h"
#include "../../content/numerical/FastSubsetTransform.h"
int main() {
rep(k,0,10) {
vi a(1 << k), b = a, c = a, target = a;
for(auto &x: a) x = rand() % 6 - 2;
for(auto &x: b) x = rand() % 6 - 2;
rep(i,0,1 << k) rep(j,0,1 << k) target[i & j] += a[i] * b[j];
// rep(i,0,1 <... | 29.521739 | 63 | 0.46539 | prince776 |
9f586a4d227da3323907b596ec69deb37ce89502 | 909 | hpp | C++ | include/ChainNode.hpp | colorhistory/data-structure-and-algorithm | 402d1ab29e627ebd471632080e5b7194fe892a78 | [
"MIT"
] | null | null | null | include/ChainNode.hpp | colorhistory/data-structure-and-algorithm | 402d1ab29e627ebd471632080e5b7194fe892a78 | [
"MIT"
] | null | null | null | include/ChainNode.hpp | colorhistory/data-structure-and-algorithm | 402d1ab29e627ebd471632080e5b7194fe892a78 | [
"MIT"
] | null | null | null | #ifndef CHAINNODE_HPP
#define CHAINNODE_HPP
namespace DSAA {
template <typename T>
struct ChainNode {
ChainNode();
ChainNode(const T& element);
ChainNode(const T& element, ChainNode<T>* next);
T element;
ChainNode<T>* next;
};
/*!
* \brief ChainNode<T>::... | 20.2 | 67 | 0.567657 | colorhistory |
9f610cdd45dfd6838e89d614ece5ac0b28c1ee13 | 417 | cpp | C++ | 1336OS_Code/src/my_sandbox/src/MySandbox.cpp | WuShaoa/Lua-game-ai | 3ba8a64ffb056bb30d5c1ff9aa9dd8c87aaefabc | [
"MIT"
] | 2 | 2021-03-31T07:25:53.000Z | 2021-04-19T14:06:37.000Z | 1336OS_Code/src/my_sandbox/src/MySandbox.cpp | WuShaoa/Lua-game-ai | 3ba8a64ffb056bb30d5c1ff9aa9dd8c87aaefabc | [
"MIT"
] | null | null | null | 1336OS_Code/src/my_sandbox/src/MySandbox.cpp | WuShaoa/Lua-game-ai | 3ba8a64ffb056bb30d5c1ff9aa9dd8c87aaefabc | [
"MIT"
] | null | null | null | #include "my_sandbox/include/MySandBox.h"
#include "demo_framework/include/LuaScriptUtilities.h"
MySandBox::MySandBox(void) : SandboxApplication("My Sandbox")
{
}
MySandBox::~MySandBox(void)
{
}
void MySandBox::Initialize()
{
SandboxApplication::Initialize();
AddResourceLocation("../../../src/my_sandbox/script");
... | 17.375 | 61 | 0.736211 | WuShaoa |
9f65a28b49573a583c5521d03c8e6fc34b0c6f59 | 3,285 | cpp | C++ | data_structure/splay/VirtualNode.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | data_structure/splay/VirtualNode.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | data_structure/splay/VirtualNode.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | #define MAX_NODE_SPLAY (MAXM << 2)
struct SPLAY {
int c[MAX_NODE_SPLAY][2], fa[MAX_NODE_SPLAY], siz[MAX_NODE_SPLAY], tot, root;
int val[MAX_NODE_SPLAY];
map<int, int> node; //node[i] is the position of the node whose value is i
#define ls(rt) c[rt][0]
#define rs(rt) c[rt][1]
void NewVirtual(int& rt, int f, int sz,... | 20.403727 | 78 | 0.538204 | searchstar2017 |
9f65c8bae0141f56ac974d6755e0754b81e56e6f | 2,333 | cpp | C++ | phosphor-regulators/src/regsctl/main.cpp | smccarney/phosphor-power | 39ea02bc9458f3d5a7fdd317cb546ed046eaff78 | [
"Apache-2.0"
] | 7 | 2019-10-04T01:19:49.000Z | 2021-06-02T23:11:19.000Z | phosphor-regulators/src/regsctl/main.cpp | smccarney/phosphor-power | 39ea02bc9458f3d5a7fdd317cb546ed046eaff78 | [
"Apache-2.0"
] | 9 | 2019-10-23T14:22:03.000Z | 2022-03-22T20:39:05.000Z | phosphor-regulators/src/regsctl/main.cpp | smccarney/phosphor-power | 39ea02bc9458f3d5a7fdd317cb546ed046eaff78 | [
"Apache-2.0"
] | 11 | 2019-10-04T01:20:01.000Z | 2022-03-03T06:08:16.000Z | /**
* Copyright © 2020 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 30.298701 | 79 | 0.625375 | smccarney |
9f6b15c7f456ae63a58d48fb567fe7793edd20f5 | 16,237 | cpp | C++ | jlp_wxplot/jlp_wxplot_gdev/jlp_gdev_wxwid_save.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | null | null | null | jlp_wxplot/jlp_wxplot_gdev/jlp_gdev_wxwid_save.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | null | null | null | jlp_wxplot/jlp_wxplot_gdev/jlp_gdev_wxwid_save.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | 1 | 2020-07-09T00:20:49.000Z | 2020-07-09T00:20:49.000Z | /*****************************************************************************
* JLP_GDev_wxWID class: saving routines to FITS, JPEG, Postscript, etc.
*
* Part with PNG/JPEG was taken from wxwidgets tutorials: samples/image/image.cpp
* (Author: Robert Roebling ; Copyright: (c) 1998-2005 Robert Roebling)
* The orther... | 35.685714 | 94 | 0.565252 | jlprieur |
9f6b54897d796072a735ced87dbca5c34c9016c3 | 941 | cpp | C++ | code/G.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | code/G.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | code/G.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n,ans;
int vis[11];
ll make(int i,int j)
{
if(i>j)
return 0;
int t=vis[i];
while(i<j)
{
i++;
t=t*10+vis[i];
}
return t;
}
int main()
{
//cout<<6
ios::sync_with_stdio(false);cin.tie(0);
while(... | 17.109091 | 43 | 0.363443 | PIPIKAI |
9f6c73a688241170cfc524898ff4ca08d597ba99 | 45,444 | cpp | C++ | Archive/ADTS_TREAP_SKIPLIST_SPLAY_TREE_FROM-STERL-2013-06-06/CODE/ADTs/main.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/ADTS_TREAP_SKIPLIST_SPLAY_TREE_FROM-STERL-2013-06-06/CODE/ADTs/main.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/ADTS_TREAP_SKIPLIST_SPLAY_TREE_FROM-STERL-2013-06-06/CODE/ADTs/main.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | #include <cstring>
#include <algorithm>
#include <functional>
#include <iostream>
#include <string>
#include <sstream>
#include "../Shared/Headers/Config.h"
#include "../Shared/Headers/ContainerValidation.h"
#include "../Shared/Headers/HashKey.h"
#include "../Shared/Headers/TestingData.h"
#include "../Shared/Header... | 33.93876 | 181 | 0.585644 | SophistSolutions |
9f6cbdb87d5437e5a0a9dd46753afbb69678d991 | 1,065 | cpp | C++ | dataobjects/SheetSchema.cpp | Zackmon/SeventhUmbral | 25580111b361d2fdc2c15fd2cd150e4c763ca774 | [
"BSD-2-Clause"
] | 92 | 2015-01-30T01:57:18.000Z | 2022-02-14T00:05:30.000Z | dataobjects/SheetSchema.cpp | Zackmon/SeventhUmbral | 25580111b361d2fdc2c15fd2cd150e4c763ca774 | [
"BSD-2-Clause"
] | 6 | 2015-08-18T19:57:17.000Z | 2022-01-31T14:48:33.000Z | dataobjects/SheetSchema.cpp | Zackmon/SeventhUmbral | 25580111b361d2fdc2c15fd2cd150e4c763ca774 | [
"BSD-2-Clause"
] | 44 | 2015-01-03T13:01:21.000Z | 2022-01-31T14:24:40.000Z | #include <memory>
#include "SheetSchema.h"
#include "XmlFileDecoder.h"
#include "xml/Parser.h"
#include "xml/Utils.h"
#include "PtrStream.h"
CSheetSchema::CSheetSchema(Framework::CStream& inputStream)
{
Read(inputStream);
}
CSheetSchema::~CSheetSchema()
{
}
const CSheetSchema::SheetInfoArray& CShe... | 28.026316 | 122 | 0.735211 | Zackmon |
9f6f4eedd29e39c67f75bcc4ca44fdfe91997fe3 | 344 | cpp | C++ | liboh/src/SimulationFactory.cpp | ericruth/sirikata | 9b4cad53b9bef46d318d52581d489d691b6f9e58 | [
"BSD-3-Clause"
] | 1 | 2016-05-09T11:45:31.000Z | 2016-05-09T11:45:31.000Z | liboh/src/SimulationFactory.cpp | mullwaden/sirikata | bedcf22c97f733d82bffcd787f21c25b4e6710ed | [
"BSD-3-Clause"
] | null | null | null | liboh/src/SimulationFactory.cpp | mullwaden/sirikata | bedcf22c97f733d82bffcd787f21c25b4e6710ed | [
"BSD-3-Clause"
] | null | null | null | #include <util/Platform.hpp>
#include <oh/SimulationFactory.hpp>
AUTO_SINGLETON_INSTANCE(Sirikata::SimulationFactory);
namespace Sirikata {
SimulationFactory& SimulationFactory::getSingleton() {
return AutoSingleton<SimulationFactory>::getSingleton();
}
void SimulationFactory::destroy() {
AutoSingleton<SimulationF... | 28.666667 | 60 | 0.799419 | ericruth |
9f733e5374d1646a27567747f50a324208a24a93 | 4,664 | cpp | C++ | instance.cpp | dilsonguim/pace2018 | 646b86172512130c9a0cb9df99379e05ed83fd50 | [
"MIT"
] | null | null | null | instance.cpp | dilsonguim/pace2018 | 646b86172512130c9a0cb9df99379e05ed83fd50 | [
"MIT"
] | 2 | 2018-05-02T17:41:27.000Z | 2018-05-02T17:41:33.000Z | instance.cpp | dilsonguim/pace2018 | 646b86172512130c9a0cb9df99379e05ed83fd50 | [
"MIT"
] | null | null | null | #include "instance.h"
int DynamicGraph::createNode(bool terminal) {
Node node;
node.id = next_node_id++;
node.terminal = terminal;
nodes[node.id] = node;
return node.id;
}
int DynamicGraph::createEdge(int a, int b, int w) {
Edge edge;
edge.id = next_edge_id++;
edge.endpoints[0] = a;
edge.e... | 24.547368 | 81 | 0.615137 | dilsonguim |
9f7394ef6765efa0259a13ccaef949a97979f0f8 | 3,512 | cpp | C++ | plugins/G3D/VRG3D/src/VRG3DWindowToolkit.cpp | kmilo9999/MinVR | fc1a01b82610961c277b890a86cd6ecaabf41146 | [
"BSD-3-Clause"
] | 18 | 2016-08-04T16:09:52.000Z | 2022-01-17T15:43:37.000Z | plugins/G3D/VRG3D/src/VRG3DWindowToolkit.cpp | kmilo9999/MinVR | fc1a01b82610961c277b890a86cd6ecaabf41146 | [
"BSD-3-Clause"
] | 123 | 2015-01-08T17:32:39.000Z | 2021-12-22T00:55:00.000Z | plugins/G3D/VRG3D/src/VRG3DWindowToolkit.cpp | kmilo9999/MinVR | fc1a01b82610961c277b890a86cd6ecaabf41146 | [
"BSD-3-Clause"
] | 21 | 2016-11-04T18:36:29.000Z | 2022-03-01T19:44:11.000Z | #include "../include/VRG3DWindowToolkit.h"
#include <GLG3D/OSWindow.h>
#ifdef G3D_WIN32
# include <GLG3D/Win32Window.h>
#elif defined(G3D_OSX)
# include <GLG3D/CocoaWindow.h>
#else
# include <GLG3D/SDLWindow.h>
#endif
#include "../include/VRG3DInputDevice.h"
#include "../include/VRG3DGraphicsToolkit.h"
name... | 25.085714 | 136 | 0.710137 | kmilo9999 |
9f77e2603f8df2f5ad2b4b493ab78b7619807b52 | 2,141 | hpp | C++ | include/fragments/parameters/container.hpp | aristidb/fragments | 5bcf566b02a77f97d9726a0ba91425ca15a1f946 | [
"BSL-1.0"
] | 1 | 2015-11-05T04:15:42.000Z | 2015-11-05T04:15:42.000Z | include/fragments/parameters/container.hpp | aristidb/fragments | 5bcf566b02a77f97d9726a0ba91425ca15a1f946 | [
"BSL-1.0"
] | null | null | null | include/fragments/parameters/container.hpp | aristidb/fragments | 5bcf566b02a77f97d9726a0ba91425ca15a1f946 | [
"BSL-1.0"
] | null | null | null | // vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
// Copyright (c) 2007 Aristid Breitkreuz, Ruediger Sonderfeld, Christian Uhrhan
//
// Distributed under the Boost Software License, Version 1.0 and under the MIT
// License.
//
// See accompanying LICENSES.txt or
// <http://fragments.sourceforge.net/LICENSES.txt> or,... | 27.101266 | 79 | 0.730033 | aristidb |
9f785922d358eccd353a09e88ae28283f9577718 | 560 | hpp | C++ | Error/IllegalAccess/a_Macro.hpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | 2 | 2020-09-13T07:31:22.000Z | 2022-03-26T08:37:32.000Z | Error/IllegalAccess/a_Macro.hpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | null | null | null | Error/IllegalAccess/a_Macro.hpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | null | null | null | // c:/Users/user/Documents/Programming/Error/IllegalAccess/a_Macro.hpp
#pragma once
#include "../a_Macro.hpp"
#define ACCESS( ... ) Access( POSITION , ARGUMENTS( __VA_ARGS__ ) )
#ifdef DEBUG
#define UNINITIALISED( ... ) \
BREAK; \
IndicateUninitialisedAccess( POSITION , ARGUMENTS( __VA_ARGS_... | 25.454545 | 108 | 0.698214 | p-adic |
9f7eb5492f45d509f7d52932e80acf9bf141cdcf | 5,371 | cpp | C++ | src/qt/generictabledialog.cpp | biblepay/biblepay | 6af4517c623620f60cabc228cc2f63c35d1beb5b | [
"MIT"
] | 63 | 2017-07-25T21:57:21.000Z | 2022-02-05T02:58:03.000Z | src/qt/generictabledialog.cpp | biblepay/biblepay | 6af4517c623620f60cabc228cc2f63c35d1beb5b | [
"MIT"
] | 105 | 2017-09-04T00:52:17.000Z | 2021-05-22T13:58:37.000Z | src/qt/generictabledialog.cpp | biblepay/biblepay | 6af4517c623620f60cabc228cc2f63c35d1beb5b | [
"MIT"
] | 62 | 2017-08-04T19:48:40.000Z | 2021-07-07T12:21:12.000Z | #include "generictabledialog.h"
#include "bitcoinunits.h"
#include "forms/ui_generictable.h"
#include "walletmodel.h"
#include "guiutil.h"
#include "rpcpog.h"
#include <QPainter>
#include <QTableWidget>
#include <QGridLayout>
#include <QUrl>
#include <QTimer>
#include <univalue.h>
#include <boost/algorithm/string/case_... | 26.855 | 124 | 0.668404 | biblepay |
9f7ff51123f807682f38a6acedcadac74a6a6638 | 772 | cpp | C++ | c++/.leetcode/849.maximize-distance-to-closest-person.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | c++/.leetcode/849.maximize-distance-to-closest-person.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | c++/.leetcode/849.maximize-distance-to-closest-person.cpp | ming197/MyLeetCode | eba575765976b12db07be0857faad85b9c60d723 | [
"Apache-2.0"
] | null | null | null | /*
* @lc app=leetcode id=849 lang=cpp
*
* [849] Maximize Distance to Closest Person
*/
// @lc code=start
class Solution {
public:
int maxDistToClosest(vector<int>& seats) {
int n = seats.size();
vector<int> person;
int res = 1;
int i = 0;
while(seats[i] != 1){
... | 20.864865 | 46 | 0.409326 | ming197 |
9f824a34e9b0d27425e99c388cc02e8d01c78d17 | 1,949 | hpp | C++ | include/GTGE/Components/OccluderComponent.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 31 | 2015-03-19T08:44:48.000Z | 2021-12-15T20:52:31.000Z | include/GTGE/Components/OccluderComponent.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 19 | 2015-07-09T09:02:44.000Z | 2016-06-09T03:51:03.000Z | include/GTGE/Components/OccluderComponent.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 3 | 2017-10-04T23:38:18.000Z | 2022-03-07T08:27:13.000Z | // Copyright (C) 2011 - 2014 David Reid. See included LICENCE.
#ifndef GT_OccluderComponent
#define GT_OccluderComponent
#include "../Component.hpp"
#include "../Physics.hpp"
#include "../AlignedType.hpp"
namespace GT
{
/// Class representing a component for objects that act as occluders.
///
/// The eng... | 33.033898 | 158 | 0.690097 | mackron |
9f89292caa5fc8a5d855aa9947bed51a69d95980 | 744 | hpp | C++ | src/pi/improc/KalmanFilterForUserDetection.hpp | ClementGermain/FollowMe | 971cb4de3172317a5e87919820b6df98981c5068 | [
"Apache-2.0"
] | null | null | null | src/pi/improc/KalmanFilterForUserDetection.hpp | ClementGermain/FollowMe | 971cb4de3172317a5e87919820b6df98981c5068 | [
"Apache-2.0"
] | 1 | 2017-01-24T10:10:13.000Z | 2017-01-31T14:42:39.000Z | src/pi/improc/KalmanFilterForUserDetection.hpp | ClementGermain/FollowMe | 971cb4de3172317a5e87919820b6df98981c5068 | [
"Apache-2.0"
] | null | null | null | #ifndef __KALMAN_FILTER_FOR_USER_DETECTION_HPP__
#define __KALMAN_FILTER_FOR_USER_DETECTION_HPP__
#include <opencv2/opencv.hpp>
#include <vector>
#include <stdio.h>
/**
* Use of kalman filter for the circle detection in UserDetection
*/
class Kalman_Filter_User{
public:
Kalman_Filter_User() ; //constructor to i... | 27.555556 | 124 | 0.768817 | ClementGermain |
9f8a79dba2c8e872e8b1a9b85e70f3f6007a1879 | 2,016 | hpp | C++ | engine/lib/Common/MsgLog_Q.hpp | jinghaneyo/loan | f605b1a72e7ca1031c759ca24e1fe6cbc0bfd650 | [
"MIT"
] | null | null | null | engine/lib/Common/MsgLog_Q.hpp | jinghaneyo/loan | f605b1a72e7ca1031c759ca24e1fe6cbc0bfd650 | [
"MIT"
] | null | null | null | engine/lib/Common/MsgLog_Q.hpp | jinghaneyo/loan | f605b1a72e7ca1031c759ca24e1fe6cbc0bfd650 | [
"MIT"
] | null | null | null | #ifndef MSGLOG_Q_H_
#define MSGLOG_Q_H_
#include <mutex>
#include <deque>
#ifndef _WIN32
#ifndef __in
#define __in
#endif
#ifndef __inout
#define __inout
#endif
#ifndef __out
#define __out
#endif
#endif
struct _MsgLog_Data
{
bool bProtobuf;
std::string *pstrLog;
_MsgLog_Data()
{
bProtobuf = false;
... | 15.272727 | 55 | 0.674107 | jinghaneyo |
9f8fda48937aec40adcd53cd7d0eb39002e7855b | 1,574 | cpp | C++ | codeforces/H - Load Testing/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/H - Load Testing/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/H - Load Testing/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: JU_AAA: aniks2645, kzvd4729, prdx9_abir created: Sep/18/2017 20:40
* solution_verdict: Accepted language: GNU C++14
* run... | 32.122449 | 111 | 0.405972 | kzvd4729 |
9f9414a2a76d44115d5391384b5635872be61840 | 1,067 | cpp | C++ | asps/modbus/adu/sequence/state.cpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | asps/modbus/adu/sequence/state.cpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | asps/modbus/adu/sequence/state.cpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 The asps Authors. All rights reserved.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// Modbus ADU State.
#include <asps/modbus/adu/sequence/state.hpp>
#include <asps/modbus/adu/sequence/client_... | 21.77551 | 77 | 0.733833 | activesys |
7a068b239a07b1e9cd8f37b5564d08761ccc842b | 2,926 | cpp | C++ | example/misc/memory.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | 5 | 2021-08-06T10:37:50.000Z | 2022-01-23T00:27:28.000Z | example/misc/memory.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | null | null | null | example/misc/memory.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | 5 | 2021-03-22T11:06:00.000Z | 2022-02-22T02:53:19.000Z | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <vector>
#include <mango/core/memory.hpp>
using namespace mango;
void example1()
{
// allocate memory
std::vector<u8> buffer(20000);
// point to the allocated memory
M... | 38.5 | 102 | 0.718387 | ufoym |
7a08066b5baea5ef7d93e12d935b6b5180868a27 | 2,570 | hpp | C++ | src/litequarks/include/litequarks/LQEvent.hpp | valfvo/punyduck | 53bf87babef39023574881b73f141611274b2842 | [
"MIT"
] | 2 | 2020-01-23T18:16:57.000Z | 2022-03-09T15:01:49.000Z | src/litequarks/include/litequarks/LQEvent.hpp | valfvo/punyduck | 53bf87babef39023574881b73f141611274b2842 | [
"MIT"
] | null | null | null | src/litequarks/include/litequarks/LQEvent.hpp | valfvo/punyduck | 53bf87babef39023574881b73f141611274b2842 | [
"MIT"
] | 2 | 2020-01-23T14:07:13.000Z | 2020-04-01T00:48:48.000Z | #pragma once
#include <string>
#include <typeindex>
#include <vector>
#include "LQDeclaration.hpp"
#include "LQRawData.hpp"
class LQEvent {
public:
virtual ~LQEvent();
const std::type_index type;
const void* target;
protected:
LQEvent(const std::type_info& type, void* target);
};
class LQClickEven... | 19.922481 | 115 | 0.703891 | valfvo |
7a0928528e66c145fc2530c46790f8d878d0fa5b | 5,539 | cpp | C++ | firmware-usbhost/common/mdb/master/coin_changer/MdbCoin.cpp | Zzzzipper/cppprojects | e9c9b62ca1e411320c24a3d168cab259fa2590d3 | [
"MIT"
] | null | null | null | firmware-usbhost/common/mdb/master/coin_changer/MdbCoin.cpp | Zzzzipper/cppprojects | e9c9b62ca1e411320c24a3d168cab259fa2590d3 | [
"MIT"
] | 1 | 2021-09-03T13:03:20.000Z | 2021-09-03T13:03:20.000Z | firmware-usbhost/common/mdb/master/coin_changer/MdbCoin.cpp | Zzzzipper/cppprojects | e9c9b62ca1e411320c24a3d168cab259fa2590d3 | [
"MIT"
] | null | null | null | #include "MdbCoin.h"
#include "common.h"
#include "mdb/MdbProtocolCoinChanger.h"
#include "logger/include/Logger.h"
#define COIN_MAX_NUM 16
#define MDBCC_MINIMAL_CHANGE 100
MdbCoin::MdbCoin() :
nominal(0),
inTube(false),
number(0)
{
}
void MdbCoin::setNominal(uint32_t nominal) {
this->nominal = nominal;
}
void... | 22.983402 | 157 | 0.703918 | Zzzzipper |
7a0b03fd17978d02fc626b51aef298e142cc9bf9 | 763 | cpp | C++ | tests/ArgosTest/test_TextWriter.cpp | jebreimo/Argos | 4dd12531cc58b229a46c5ed8440102a7023014e3 | [
"BSD-2-Clause"
] | 39 | 2022-03-06T18:56:53.000Z | 2022-03-26T18:26:59.000Z | tests/ArgosTest/test_TextWriter.cpp | jebreimo/Argos | 4dd12531cc58b229a46c5ed8440102a7023014e3 | [
"BSD-2-Clause"
] | null | null | null | tests/ArgosTest/test_TextWriter.cpp | jebreimo/Argos | 4dd12531cc58b229a46c5ed8440102a7023014e3 | [
"BSD-2-Clause"
] | null | null | null | //****************************************************************************
// Copyright © 2020 Jan Erik Breimo. All rights reserved.
// Created by Jan Erik Breimo on 2020-02-27.
//
// This file is distributed under the BSD License.
// License text is included with the source distribution.
//************************... | 30.52 | 78 | 0.542595 | jebreimo |
7a15af0da0eab8818c7afef986b24d36a716d50d | 68,972 | cpp | C++ | src/core/hw/gfxip/gfx9/gfx9AcquireReleaseBarrier.cpp | dnovillo/pal | f924a4fb84efde321f7754031f8cfa5ab35055d3 | [
"MIT"
] | null | null | null | src/core/hw/gfxip/gfx9/gfx9AcquireReleaseBarrier.cpp | dnovillo/pal | f924a4fb84efde321f7754031f8cfa5ab35055d3 | [
"MIT"
] | null | null | null | src/core/hw/gfxip/gfx9/gfx9AcquireReleaseBarrier.cpp | dnovillo/pal | f924a4fb84efde321f7754031f8cfa5ab35055d3 | [
"MIT"
] | null | null | null | /*
***********************************************************************************************************************
*
* Copyright (c) 2018 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated ... | 43.542929 | 121 | 0.588224 | dnovillo |
7a194df914144d868c9f52688fe47c3f5b87bad2 | 3,778 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/MessagingBinaryFormatter/CPP/message_binaryformatter.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Remoting/MessagingBinaryFormatter/CPP/message_binaryformatter.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Remoting/MessagingBinaryFormatter/CPP/message_binaryformatter.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
// <Snippet1>
#using <system.dll>
#using <system.messaging.dll>
#using <system.drawing.dll>
using namespace System;
using namespace System::Messaging;
using namespace System::Drawing;
using namespace System::IO;
/// <summary>
/// Provides a container class for the example.
/// </summary>
ref class My... | 26.605634 | 92 | 0.48703 | hamarb123 |
7a1a327d3c57b6cb6b2599663a41e3edc7e0e8dc | 9,254 | cpp | C++ | src/gram.cpp | burbokop/wall_e | fae63d4c63e4e7728e62af72ede7b436d6222723 | [
"Apache-2.0"
] | 5 | 2021-01-09T18:51:26.000Z | 2022-02-06T11:46:41.000Z | src/gram.cpp | burbokop/wall_e | fae63d4c63e4e7728e62af72ede7b436d6222723 | [
"Apache-2.0"
] | null | null | null | src/gram.cpp | burbokop/wall_e | fae63d4c63e4e7728e62af72ede7b436d6222723 | [
"Apache-2.0"
] | null | null | null | #include "gram.h"
#include <iostream>
#include <string.h>
#include <cassert>
#include "color.h"
namespace wall_e {
namespace gram {
using namespace literals;
const color::color_t __err_color = color::BrightRed;
const color::color_t __header_color = color::BrightMagenta;
const color::color_t __warning_color = color... | 35.186312 | 192 | 0.604063 | burbokop |
7a24c29224f76de7d28a9a16f62802b6578064ff | 572 | cpp | C++ | c++/user_literal.cpp | adelacvg/LearnModernCpp | 7c56f435b0a8947de7e7e21184769f2b9a8ee8e2 | [
"MIT"
] | null | null | null | c++/user_literal.cpp | adelacvg/LearnModernCpp | 7c56f435b0a8947de7e7e21184769f2b9a8ee8e2 | [
"MIT"
] | null | null | null | c++/user_literal.cpp | adelacvg/LearnModernCpp | 7c56f435b0a8947de7e7e21184769f2b9a8ee8e2 | [
"MIT"
] | null | null | null | #include <iostream>
// used as conversion
constexpr long double operator"" _deg ( long double deg )
{
return deg * 3.14159265358979323846264L / 180;
}
// used with custom type
struct mytype
{
unsigned long long m;
};
constexpr mytype operator"" _mytype ( unsigned long long n )
{
return mytype{n};
}
//... | 17.875 | 60 | 0.622378 | adelacvg |
7a24cd59bd4eb11d234f954e28678a09095140bf | 1,320 | hpp | C++ | libecole/include/ecole/observation/milp-bipartite.hpp | jefferson-lam/ecole | facf66fb8cc1d447b07e665d4067c2bfb3348c52 | [
"BSD-3-Clause"
] | null | null | null | libecole/include/ecole/observation/milp-bipartite.hpp | jefferson-lam/ecole | facf66fb8cc1d447b07e665d4067c2bfb3348c52 | [
"BSD-3-Clause"
] | null | null | null | libecole/include/ecole/observation/milp-bipartite.hpp | jefferson-lam/ecole | facf66fb8cc1d447b07e665d4067c2bfb3348c52 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <optional>
#include <xtensor/xtensor.hpp>
#include "ecole/export.hpp"
#include "ecole/observation/abstract.hpp"
#include "ecole/utility/sparse-matrix.hpp"
namespace ecole::observation {
class ECOLE_EXPORT MilpBipartiteObs {
public:
using value_type = double;
static inline std::size_t const... | 25.384615 | 99 | 0.738636 | jefferson-lam |
7a276b2d98e6dfedbd9b75446e91703d52a2baae | 1,555 | cpp | C++ | 637-average-of-levels-in-binary-tree/average-of-levels-in-binary-tree.cpp | nagestx/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | 3 | 2018-12-15T14:07:12.000Z | 2020-07-19T23:18:09.000Z | 637-average-of-levels-in-binary-tree/average-of-levels-in-binary-tree.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | 637-average-of-levels-in-binary-tree/average-of-levels-in-binary-tree.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | // Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array.
//
// Example 1:
//
// Input:
// 3
// / \
// 9 20
// / \
// 15 7
// Output: [3, 14.5, 11]
// Explanation:
// The average value of nodes on level 0 is 3, on level 1 is 14.5, and o... | 22.867647 | 118 | 0.449518 | nagestx |
7a2ae5098fe9081a31454f48b1f5b50de0304f58 | 344 | cpp | C++ | mrJudge/problems/potatosalad (301)/potatosalad.cpp | object-oriented-human/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | 2 | 2021-07-27T10:46:47.000Z | 2021-07-27T10:47:57.000Z | mrJudge/problems/potatosalad (301)/potatosalad.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | mrJudge/problems/potatosalad (301)/potatosalad.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, d;
cin >> n >> d;
vector<int> v;
for (int i = 0; i < n; i++) {
int x;
cin >> x;
v.push_back(x);
}
sort(v.rbegin(), v.rend());
long long kg = 0;
for (int i = 0; i < d; i++) {
kg += v[i];
... | 14.956522 | 33 | 0.401163 | object-oriented-human |
7a2fe7b2940b5083bf8290189a914e562a8b5ef2 | 621 | cpp | C++ | C++/problem1550.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem1550.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem1550.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isOdd(int n)
{
if (n % 2 != 0)
{
return true;
}
else
{
return false;
}
}
bool threeConsecutiveOdds(vector<int>& arr) {
int tmp = 0;
for (vector<int>::iterator it = arr.begin(); it < arr... | 17.25 | 74 | 0.310789 | 1050669722 |
7a31a147096b226a1a5b89999fbe34f55335f661 | 30,928 | cc | C++ | wrappers/7.0.0/vtkBoxWidgetWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/7.0.0/vtkBoxWidgetWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/7.0.0/vtkBoxWidgetWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtk3DWidgetWrap.h"
#include "vtkBoxWidgetWrap.h"
#include "vtkObjectWrap.h"
#include "vtkPlanesWrap.h"
#include "vtkTransformWrap.h"
#include "... | 30.98998 | 105 | 0.718475 | axkibe |
7a355c29f0a2b04824cc957b9d3a75883761f64b | 1,925 | cpp | C++ | 18-networks/18-6/myIP/mainwindow.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | 18-networks/18-6/myIP/mainwindow.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | 18-networks/18-6/myIP/mainwindow.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QtNetwork>
#include <QDebug>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QString localHostName = QHostInfo::localHostName();
QHostInfo info = QHostInfo::fromNam... | 27.112676 | 77 | 0.574545 | Franklin-Qi |
7a3a14d611598e7af9140e7115bc79004d64d6e6 | 7,250 | cpp | C++ | game/shared/Angelscript/CASBaseModuleBuilder.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 83 | 2016-06-10T20:49:23.000Z | 2022-02-13T18:05:11.000Z | game/shared/Angelscript/CASBaseModuleBuilder.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 26 | 2016-06-16T22:27:24.000Z | 2019-04-30T19:25:51.000Z | game/shared/Angelscript/CASBaseModuleBuilder.cpp | HLSources/HLEnhanced | 7510a8f7049293b5094b9c6e14e0aa0869c8dba2 | [
"Unlicense"
] | 58 | 2016-06-10T23:52:33.000Z | 2021-12-30T02:30:50.000Z | #include <algorithm>
#include <cassert>
#include <experimental/filesystem>
#include <memory>
#include <string>
#include <Angelscript/add_on/scriptbuilder.h>
#include "extdll.h"
#include "util.h"
#include "CFile.h"
#include "Angelscript/Entities/CASCustomEntities.h"
#include "CASBaseModuleBuilder.h"
namespace fs =... | 26.951673 | 186 | 0.696138 | HLSources |
7a3ebce80f7b9612815e133f3a4599351fd35652 | 9,549 | cpp | C++ | core/common/utils/ProgramOptions.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 27 | 2017-11-04T23:58:54.000Z | 2022-03-28T14:21:50.000Z | core/common/utils/ProgramOptions.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 64 | 2020-03-16T19:59:43.000Z | 2022-03-18T14:49:18.000Z | core/common/utils/ProgramOptions.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 13 | 2019-12-01T21:32:33.000Z | 2022-03-28T15:40:02.000Z | // =============================================================================
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Permission is hereby grante... | 30.218354 | 80 | 0.553461 | cmwill |
7a407d4c7750121a547fdda98716f0a5e00ce76d | 7,391 | cxx | C++ | tests/comparison_test.cxx | davidbrowne/dsga | 3c12d090a60b3275d91476677ec9809516ac2276 | [
"BSL-1.0"
] | 2 | 2022-01-22T03:07:20.000Z | 2022-01-22T15:51:57.000Z | tests/comparison_test.cxx | davidbrowne/dsga | 3c12d090a60b3275d91476677ec9809516ac2276 | [
"BSL-1.0"
] | 1 | 2021-09-02T01:42:05.000Z | 2021-09-10T07:18:51.000Z | tests/comparison_test.cxx | davidbrowne/dsga | 3c12d090a60b3275d91476677ec9809516ac2276 | [
"BSL-1.0"
] | null | null | null |
// Copyright David Browne 2020-2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#include "dsga.hxx"
using namespace dsga;
#if defined(__clang__)
// clang 10.0 does not like colors on... | 26.68231 | 97 | 0.616967 | davidbrowne |
7a43a72fb430e87a68d301c2c33df0881c52a51c | 2,641 | cpp | C++ | src/red4ext/FlightController.cpp | jackhumbert/flight_control | 02938f5a26b3a299ef3d9b9e4d40e9294872a7ee | [
"MIT"
] | 1 | 2021-11-09T13:31:07.000Z | 2021-11-09T13:31:07.000Z | src/red4ext/FlightController.cpp | jackhumbert/flight_control | 02938f5a26b3a299ef3d9b9e4d40e9294872a7ee | [
"MIT"
] | null | null | null | src/red4ext/FlightController.cpp | jackhumbert/flight_control | 02938f5a26b3a299ef3d9b9e4d40e9294872a7ee | [
"MIT"
] | null | null | null | #include "FlightController.hpp"
#include "FlightModule.hpp"
#include "Utils.hpp"
#include "stdafx.hpp"
namespace FlightController {
RED4ext::TTypedClass<FlightController> cls("FlightController");
RED4ext::CClass *FlightController::GetNativeType() { return &cls; }
RED4ext::Handle<FlightController> handle;
FlightCo... | 32.604938 | 140 | 0.691405 | jackhumbert |
7a450e06b4e66573a900a9f5179da2330141e60e | 407 | hpp | C++ | pythran/pythonic/include/numpy/identity.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/identity.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/identity.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_NUMPY_IDENTITY_HPP
#define PYTHONIC_INCLUDE_NUMPY_IDENTITY_HPP
#include "pythonic/include/numpy/eye.hpp"
#include "pythonic/include/numpy/float64.hpp"
namespace pythonic
{
namespace numpy
{
template <class dtype = functor::float64>
auto identity(long n, dtype d = dtype()) -> dec... | 19.380952 | 74 | 0.734644 | xmar |
7a4562ac22c3e6b6c2fe52b126b2bb85e1bdbb42 | 1,238 | cpp | C++ | leetcode-problems/easy-811-subdomain-visit-count.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | leetcode-problems/easy-811-subdomain-visit-count.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | leetcode-problems/easy-811-subdomain-visit-count.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | //
// Created by Siddhant on 2019-09-24.
//
#include "iostream"
#include "vector"
#include "string"
#include "unordered_map"
#include "algorithm"
using namespace std;
vector<string> subdomainVisits(vector<string>& cpdomains) {
unordered_map<string, int> cpDomainMap;
for (int i = 0; i < cpdomains.size(); ++i... | 22.925926 | 105 | 0.551696 | formatkaka |
7a4ecab8a3708cad2558d96dd26c4ddbd6c53c8a | 8,019 | hpp | C++ | src/parsers/parser_gtf2.hpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | src/parsers/parser_gtf2.hpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | src/parsers/parser_gtf2.hpp | danielnavarrogomez/Anaquin | 563dbeb25aff15a55e4309432a967812cbfa0c98 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PARSER_GTF2_HPP
#define PARSER_GTF2_HPP
#include <map>
#include <cstring>
#include "data/locus.hpp"
#include "data/reader.hpp"
#include "tools/tools.hpp"
#include "data/biology.hpp"
#include "tools/errors.hpp"
namespace Anaquin
{
class ParserGTF2
{
public:
struct Data
... | 31.570866 | 101 | 0.26325 | danielnavarrogomez |
7a51b7bedfc92c60a0e04fa1e089dea4da5730d8 | 573 | cpp | C++ | core/src/Geometry/Point.cpp | alex999990009/ample | 71336c2fb69748b8c2f27a6810e7cc047cbab359 | [
"MIT"
] | 33 | 2020-03-03T11:52:16.000Z | 2022-01-12T01:47:45.000Z | core/src/Geometry/Point.cpp | alex999990009/ample | 71336c2fb69748b8c2f27a6810e7cc047cbab359 | [
"MIT"
] | 3 | 2020-04-06T10:00:04.000Z | 2021-11-07T13:02:38.000Z | core/src/Geometry/Point.cpp | alex999990009/ample | 71336c2fb69748b8c2f27a6810e7cc047cbab359 | [
"MIT"
] | 7 | 2020-01-24T22:54:26.000Z | 2020-12-07T04:50:57.000Z | #include "Point.h"
#include "JsonIO.h"
namespace ample::geometry
{
Point::Point(const graphics::Vector2d<float> &crd)
: Shape("Point"), _crd(crd) {}
bool Point::inside(const graphics::Vector2d<float> &crd)
{
return crd.x == _crd.x && crd.y == _crd.y;
}
Point::Point(const std::string &input)
: Point(filin... | 22.038462 | 78 | 0.663176 | alex999990009 |
7a5a0d40f897899a7d4eb23e233e05b613dbe572 | 1,078 | cpp | C++ | .Codeforces/CodeCraft-19 and Codeforces Round #537 (Div. 2)/B. Average Superhero Gang Power/B. Average Superhero Gang Power/B. Average Superhero Gang Power.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .Codeforces/CodeCraft-19 and Codeforces Round #537 (Div. 2)/B. Average Superhero Gang Power/B. Average Superhero Gang Power/B. Average Superhero Gang Power.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .Codeforces/CodeCraft-19 and Codeforces Round #537 (Div. 2)/B. Average Superhero Gang Power/B. Average Superhero Gang Power/B. Average Superhero Gang Power.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | #include "pch.h"
#include <iostream>
#include <algorithm>
#include <iomanip>
#define maxN 100001
#define maxK 100001
#define maxM 10000001
#define maxA 1000001
typedef long long maxn, maxa, maxm;
typedef double maxr;
maxn n, q, dec;
maxm k, m, inc[maxN];
maxa a[maxN];
maxn begin;
maxa t;
void Prepare() {
std::cin... | 14.972222 | 73 | 0.538033 | sxweetlollipop2912 |
7a5cb1a269ecf6c8ec4784fa14125fd7f29baed4 | 4,076 | cpp | C++ | neato/apps/demo/src/neato_demo.cpp | avribacki/neato-pi | dd415f0f6ab82492468fedcafc85f18277fc7c06 | [
"MIT"
] | null | null | null | neato/apps/demo/src/neato_demo.cpp | avribacki/neato-pi | dd415f0f6ab82492468fedcafc85f18277fc7c06 | [
"MIT"
] | null | null | null | neato/apps/demo/src/neato_demo.cpp | avribacki/neato-pi | dd415f0f6ab82492468fedcafc85f18277fc7c06 | [
"MIT"
] | null | null | null | #include "neato_api.h"
#include <iostream>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <chrono>
# define M_PI 3.14159265358979323846 /* pi */
void dump_laser(const neato_laser_data_t& laser_data)
{
std::cout << "X : " << laser_data.pose_taken.x
<< " Y : ... | 29.970588 | 124 | 0.457556 | avribacki |
7a607e04217737b8fe1282cc5ca7ec7f9ad624be | 591 | cpp | C++ | src/vulkan_renderer/config.cpp | lavima/GaME | f816dff62c731e0f807b00300a061d45e7ffd93b | [
"MIT"
] | null | null | null | src/vulkan_renderer/config.cpp | lavima/GaME | f816dff62c731e0f807b00300a061d45e7ffd93b | [
"MIT"
] | null | null | null | src/vulkan_renderer/config.cpp | lavima/GaME | f816dff62c731e0f807b00300a061d45e7ffd93b | [
"MIT"
] | null | null | null | #include "../game.h"
using namespace game::graphics::vulkan;
#include "config.h"
#include "mesh_component.h"
#include "renderer.h"
namespace game::vulkanrenderer {
Config::Config() {}
bool Config::Load(content::xml::XmlNode root_node) {
if (!SystemConfig::Load(root_node))
return false;
... | 19.064516 | 56 | 0.617597 | lavima |
7a62888802bbcaa872dd71e5950ee0cd9213e9de | 980 | cpp | C++ | tests/test1.cpp | jq-1886/Genetic-Algorithm | 7da446557086e7d5b258199b6ec0e2bc3dd082fd | [
"MIT"
] | null | null | null | tests/test1.cpp | jq-1886/Genetic-Algorithm | 7da446557086e7d5b258199b6ec0e2bc3dd082fd | [
"MIT"
] | null | null | null | tests/test1.cpp | jq-1886/Genetic-Algorithm | 7da446557086e7d5b258199b6ec0e2bc3dd082fd | [
"MIT"
] | null | null | null | #include <iostream>
#include "CUnit.h"
#include "CCircuit.h"
// Testing the circuit validatin function
int main(int argc, char * argv[]){
int valid[3] = {0, 1, 2};
int invalid[3] = {0, 2, 2};
int valid2[11] = {0,4,3,2,0,5,4,4,6,2,1};
int valid3[31] = {6,16,7,7,13,11,12,15,5,3,6,0,2,14,12,1,12,14,11... | 23.333333 | 98 | 0.52449 | jq-1886 |
7a631e35d57c43302e4527f6840709e275bb6e96 | 447 | cpp | C++ | server/src/Managers/UserManager.cpp | KnuckStudio/truemess | cb7105c962d4bcac2d058e2678c5ffc37b093e93 | [
"Apache-2.0"
] | null | null | null | server/src/Managers/UserManager.cpp | KnuckStudio/truemess | cb7105c962d4bcac2d058e2678c5ffc37b093e93 | [
"Apache-2.0"
] | null | null | null | server/src/Managers/UserManager.cpp | KnuckStudio/truemess | cb7105c962d4bcac2d058e2678c5ffc37b093e93 | [
"Apache-2.0"
] | null | null | null | #include "UserManager.h"
#include "DatabaseManager.h"
UserManager::UserManager(const Core& core) :
Manager(core)
{
m_databaseManager = core.get<DatabaseManager>();
}
void UserManager::init()
{
const auto& database = m_databaseManager->getDatabase();
database->execute(
"CREATE TABLE IF NOT EXISTS `users` ("
... | 19.434783 | 57 | 0.693512 | KnuckStudio |
7a63dcdde76c86e27b3af25a2cbd71537d1fd14e | 371 | cpp | C++ | c++11/understanding-cpp11/chapter3/3-2-6.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter3/3-2-6.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter3/3-2-6.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | #include <list>
#include <vector>
#include <deque>
using namespace std;
class TDConstructed {
template<class T> TDConstructed(T first, T last) :
l(first, last) {}
list<int> l;
public:
TDConstructed(vector<short> & v):
TDConstructed(v.begin(), v.end()) {}
TDConstructed(deque<int> & d)... | 21.823529 | 55 | 0.609164 | cuiwm |
7a65af750aa11ada45aa6ae96caf9b93e8967bc0 | 221 | hpp | C++ | meta/include/mgs/meta/range_value_t.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | 24 | 2020-07-01T13:45:50.000Z | 2021-11-04T19:54:47.000Z | meta/include/mgs/meta/range_value_t.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | null | null | null | meta/include/mgs/meta/range_value_t.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <type_traits>
#include <mgs/meta/iterator_t.hpp>
#include <mgs/meta/iter_value_t.hpp>
namespace mgs
{
namespace meta
{
template <typename R>
using range_value_t = iter_value_t<iterator_t<R>>;
}
}
| 13.8125 | 50 | 0.755656 | theodelrieu |
7a7338e6ad253311578909fba3de1571a08d49bd | 7,384 | cpp | C++ | test14.cpp | chenshiyang/C-Primer-5ed-solution | 54ce8670e7ad6d82bf62c18523a5be175325276d | [
"Apache-2.0"
] | null | null | null | test14.cpp | chenshiyang/C-Primer-5ed-solution | 54ce8670e7ad6d82bf62c18523a5be175325276d | [
"Apache-2.0"
] | null | null | null | test14.cpp | chenshiyang/C-Primer-5ed-solution | 54ce8670e7ad6d82bf62c18523a5be175325276d | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<string>
#include<cctype>
#include<vector>
#include<algorithm>
#include<fstream>
#include<iterator>
#include<functional>
#include<map>
#include<cmath>
#include "test14_6_Sales_data.h"
#include "test14_7_String.h"
using namespace std;
//test 14.34
class FuncObject {
public... | 26.850909 | 137 | 0.52221 | chenshiyang |
7a7882aa7176602107fbf9b8caf8a3902bef0040 | 781 | cpp | C++ | srcs/tc.common.tests/container_of.test.cpp | aoziczero/libtc | 7f5afc2324bc91bf38e53b474d80804b48b546a5 | [
"MIT"
] | null | null | null | srcs/tc.common.tests/container_of.test.cpp | aoziczero/libtc | 7f5afc2324bc91bf38e53b474d80804b48b546a5 | [
"MIT"
] | null | null | null | srcs/tc.common.tests/container_of.test.cpp | aoziczero/libtc | 7f5afc2324bc91bf38e53b474d80804b48b546a5 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "tc.common/container_of.hpp"
namespace {
struct list_entry {
list_entry* prev;
list_entry* next;
};
struct test_container_of {
void* value;
list_entry entry;
};
}
TEST(container_of, get_value) {
test_container_of tco = { nullptr, {nullptr,nullptr}};
list_entry* pentry =... | 21.108108 | 81 | 0.737516 | aoziczero |
7a7a96a63403a602194988079fe1af730016c754 | 4,147 | cpp | C++ | OpenCV/BasicFunctions/opencv.cpp | Lecrapouille/BacASable | e7de7a7b6f21ee3180dc968a47cbd1515cb82de5 | [
"Unlicense"
] | 1 | 2019-09-16T11:09:25.000Z | 2019-09-16T11:09:25.000Z | OpenCV/BasicFunctions/opencv.cpp | Lecrapouille/BacASable | e7de7a7b6f21ee3180dc968a47cbd1515cb82de5 | [
"Unlicense"
] | 1 | 2019-09-08T19:10:54.000Z | 2019-09-08T20:26:30.000Z | OpenCV/BasicFunctions/opencv.cpp | Lecrapouille/BacASable | e7de7a7b6f21ee3180dc968a47cbd1515cb82de5 | [
"Unlicense"
] | null | null | null | #include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
// OpenCV Examples shown in https://youtu.be/2FYm3GOonhk
// Step 1
static void basic_functions()
{
cv::Mat img = cv::imread("belote.jpg");
cv::imshow("Image Origin", img);
cv::Mat imgGray;
c... | 30.050725 | 103 | 0.611285 | Lecrapouille |
7a8332e53097fcff1ac2f4d0d09a1274f4a69ea0 | 2,048 | cpp | C++ | cradle/src/cradle/gui/app/interface.cpp | dotdecimal/open-cradle | f8b06f8d40b0f17ac8d2bf845a32fcd57bf5ce1d | [
"MIT"
] | null | null | null | cradle/src/cradle/gui/app/interface.cpp | dotdecimal/open-cradle | f8b06f8d40b0f17ac8d2bf845a32fcd57bf5ce1d | [
"MIT"
] | null | null | null | cradle/src/cradle/gui/app/interface.cpp | dotdecimal/open-cradle | f8b06f8d40b0f17ac8d2bf845a32fcd57bf5ce1d | [
"MIT"
] | 4 | 2018-09-28T17:12:54.000Z | 2022-03-20T14:22:29.000Z | #include <cradle/gui/app/interface.hpp>
#include <cradle/gui/app/internals.hpp>
// This file implements the interface that the app provides to lower-level
// code.
namespace cradle {
gui_task_group_state
make_initial_task_group_state(app_instance& instance,
string const& root_task_type_id)
{
gui_task_group_... | 24.674699 | 89 | 0.72168 | dotdecimal |
7a8475bd87ee246e21ede1d46212cb0d19c9d599 | 8,377 | cpp | C++ | src/environment.cpp | EliasWatson/Graphics-Project | b319ddadb8c0467c2241e3d2121cd55540d452cf | [
"MIT"
] | null | null | null | src/environment.cpp | EliasWatson/Graphics-Project | b319ddadb8c0467c2241e3d2121cd55540d452cf | [
"MIT"
] | null | null | null | src/environment.cpp | EliasWatson/Graphics-Project | b319ddadb8c0467c2241e3d2121cd55540d452cf | [
"MIT"
] | null | null | null | #include "environment.hpp"
#include <glm/gtc/matrix_transform.hpp>
#include <SOIL2.h>
#include "util.hpp"
const float skyboxVertices[] = {
-1.0f, 1.0f, -1.0f,
-1.0f, -1.0f, -1.0f,
1.0f, -1.0f, -1.0f,
1.0f, -1.0f, -1.0f,
1.0f, 1.0f, -1.0f,
-1.0f, 1.0f, -1.0f,
-1.0f, -1.0f, 1.0f,
... | 30.911439 | 94 | 0.633401 | EliasWatson |
7a8638918b98b5e951e126a4226982189aebcbc9 | 16,552 | hpp | C++ | Queue/Queue.hpp | colorhistory/data-structure-and-algorithm | 402d1ab29e627ebd471632080e5b7194fe892a78 | [
"MIT"
] | null | null | null | Queue/Queue.hpp | colorhistory/data-structure-and-algorithm | 402d1ab29e627ebd471632080e5b7194fe892a78 | [
"MIT"
] | null | null | null | Queue/Queue.hpp | colorhistory/data-structure-and-algorithm | 402d1ab29e627ebd471632080e5b7194fe892a78 | [
"MIT"
] | null | null | null | #ifndef QUEUE_HPP
#define QUEUE_HPP
#include <deque>
#include <type_traits>
using std::deque;
template <class _Tp, class _Container = deque<_Tp> >
class queue;
template <class _Tp, class _Container>
bool operator==(const queue<_Tp, _Container>& __x, const queue<_Tp, _Container>& __y);
template <class _Tp, class _... | 35.595699 | 120 | 0.68892 | colorhistory |
18531d92703358734166d80e2e761d503fb83c94 | 922 | hpp | C++ | cairowidget.hpp | GitYun/cairowidget | 8e8e222c2cb028840d0bb6132d35fee44d4092f4 | [
"Unlicense"
] | 7 | 2021-06-17T00:51:33.000Z | 2022-03-20T19:14:19.000Z | cairowidget.hpp | GitYun/cairowidget | 8e8e222c2cb028840d0bb6132d35fee44d4092f4 | [
"Unlicense"
] | 3 | 2020-10-24T02:01:04.000Z | 2021-11-05T04:42:24.000Z | cairowidget.hpp | GitYun/cairowidget | 8e8e222c2cb028840d0bb6132d35fee44d4092f4 | [
"Unlicense"
] | 2 | 2020-11-25T15:30:20.000Z | 2021-09-18T08:09:06.000Z | #ifndef CAIROWIDGET_HPP
# define CAIROWIDGET_HPP
# pragma once
#include "FL/Fl_Widget.H"
#include <functional>
struct _cairo;
class CairoWidget: public Fl_Widget
{
struct S;
_cairo* cr_{};
int w_{}, h_;
unsigned char* d_;
unsigned pixels_;
using draw_t = std::function<void(_cairo*, int, int)>;
d... | 16.175439 | 78 | 0.590022 | GitYun |
1854bad51a5303e405868b8258a89c5b838cc409 | 681 | cpp | C++ | 00172_factorial-trailing-zeroes/200221-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 6 | 2019-10-23T01:07:29.000Z | 2021-12-05T01:51:16.000Z | 00172_factorial-trailing-zeroes/200221-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | null | null | null | 00172_factorial-trailing-zeroes/200221-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 1 | 2021-12-03T06:54:57.000Z | 2021-12-03T06:54:57.000Z | // https://leetcode-cn.com/problems/factorial-trailing-zeroes/
#include <iostream>
using namespace std;
class Solution {
public:
int trailingZeroes(int n) {
int five = 0;
while (n >= 5) {
n /= 5;
five += n;
}
return five;
}
};
int main()
{
Solution s;
cout << s.trailingZeroes(3) << endl; // answer: ... | 24.321429 | 78 | 0.622614 | yanlinlin82 |
1857759ecff7313b5eb0ba91ea6d13fd4bfdf372 | 7,245 | hxx | C++ | include/cryptox/symmetric/manifest.hxx | madera/cryptox | 6afe94b09af36996f7f571ca5648060cbe8efdab | [
"Unlicense"
] | 34 | 2016-11-28T09:43:14.000Z | 2022-02-07T21:23:31.000Z | include/cryptox/symmetric/manifest.hxx | madera/cryptox | 6afe94b09af36996f7f571ca5648060cbe8efdab | [
"Unlicense"
] | 2 | 2017-08-30T03:28:06.000Z | 2021-03-08T19:39:16.000Z | include/cryptox/symmetric/manifest.hxx | madera/cryptox | 6afe94b09af36996f7f571ca5648060cbe8efdab | [
"Unlicense"
] | 7 | 2017-08-29T04:01:44.000Z | 2021-04-15T05:00:08.000Z | // [===========================================================================]
// [ C r y p t o x ]
// [---------------------------------------------------------------------------]
// [ ... | 35 | 80 | 0.551829 | madera |
185a804718cbd3227bdc0c92234ac7b6d6ca1c92 | 1,838 | cpp | C++ | Reflection/Utilities/ConstructorSelector.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Reflection/Utilities/ConstructorSelector.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Reflection/Utilities/ConstructorSelector.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2021 DNV AS
//
// 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
#include "ConstructorSelector.h"
#include "CallableConstructor.h"
#include "ConstructorsFromTypeService.h"
#include "Reflection/Ty... | 39.956522 | 215 | 0.704026 | dnv-opensource |
185dd26e9f5ee5962291afa2b8c889b412d67366 | 865 | cpp | C++ | public/similarity_plugin/input/10/13/19 13 5112100115--TUGAS1_C_5112100115_1747.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | public/similarity_plugin/input/10/13/19 13 5112100115--TUGAS1_C_5112100115_1747.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | public/similarity_plugin/input/10/13/19 13 5112100115--TUGAS1_C_5112100115_1747.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | /*
* main.cpp
*
* Created on: Sep 18, 2013
* Author: ericivander
*/
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<string>
using namespace std;
class Invoice{
public:
Invoice(){}
Invoice(string inp1,string inp2,int q,int p){
partNumber=inp1;
name=inp2;
quantity=q;
price=p;
}
... | 16.960784 | 50 | 0.609249 | laurensiusadi |
18609166270cba0cd6d55a11dde2b26cb624b8c1 | 549 | hpp | C++ | compressors/src/util.hpp | mrcaps/generic-ts-encoding | f1e74630db9f20d7877e17c9740e8cab4eee0a6c | [
"BSD-3-Clause"
] | 2 | 2016-11-08T01:12:41.000Z | 2016-11-08T01:13:09.000Z | compressors/src/util.hpp | mrcaps/generic-ts-encoding | f1e74630db9f20d7877e17c9740e8cab4eee0a6c | [
"BSD-3-Clause"
] | null | null | null | compressors/src/util.hpp | mrcaps/generic-ts-encoding | f1e74630db9f20d7877e17c9740e8cab4eee0a6c | [
"BSD-3-Clause"
] | null | null | null | /*
* util.hpp
* @brief a few global utilities
* @author ishafer
*/
#ifndef UTIL_HPP_
#define UTIL_HPP_
#undef DISALLOW_EVIL_CONSTRUCTORS
#define DISALLOW_EVIL_CONSTRUCTORS(TypeName) \
TypeName(const TypeName&); \
void operator=(const TypeName&)
#include <iostream>
using namespace std;
template <typename ... | 16.636364 | 46 | 0.63388 | mrcaps |
18610ee50e339bba2f984498ee3307545e880381 | 49 | hpp | C++ | src/boost_container_pmr_stable_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_container_pmr_stable_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_container_pmr_stable_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/container/pmr/stable_vector.hpp>
| 24.5 | 48 | 0.816327 | miathedev |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.