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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
be27fe93d77b6389d9ad019f2b1fda05c4348c84 | 277 | cpp | C++ | LearnC++ForProgramingDevelopement/Part_I_ProgramacionProcedural/Chapter06/TheIfStatement.cpp | Gabroide/TextAdvenure | d2fc9b2ef21d66a17b9b716975087093c592abbc | [
"MIT"
] | null | null | null | LearnC++ForProgramingDevelopement/Part_I_ProgramacionProcedural/Chapter06/TheIfStatement.cpp | Gabroide/TextAdvenure | d2fc9b2ef21d66a17b9b716975087093c592abbc | [
"MIT"
] | null | null | null | LearnC++ForProgramingDevelopement/Part_I_ProgramacionProcedural/Chapter06/TheIfStatement.cpp | Gabroide/TextAdvenure | d2fc9b2ef21d66a17b9b716975087093c592abbc | [
"MIT"
] | null | null | null | #include <iostream>
int main(int argc, char** argv[])
{
if (true)
{
std::cout << "Print This!" << std::endl;
}
std::cout << std::endl;
std::cout << std::endl;
std::cout << "Enter a 0 to finish the program" << std::endl;
int number;
std::cin >> number;
return 0;
} | 16.294118 | 61 | 0.581227 | Gabroide |
be2bdfa47de831bcc65f7d59d91ed114576d0441 | 594 | cpp | C++ | ITP2/ITP2_9_D.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | ITP2/ITP2_9_D.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | ITP2/ITP2_9_D.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | // ITP2_9_D
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(n);
for(int i = 0; i < n; i++){
cin >> a[i];
}
int m;
cin >> m;
vector<int> ... | 15.631579 | 93 | 0.538721 | felixny |
be2d3ee6ae6cf6ff3465d3636ffa7fe6d5463a99 | 15,152 | inl | C++ | src/fonts/stb_font_arial_bold_11_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_arial_bold_11_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_arial_bold_11_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_arial_bold_11_usasc... | 56.118519 | 127 | 0.716473 | stetre |
be2fc81cea460806903605b49557b1c34b4f1610 | 610 | hpp | C++ | include/RED4ext/Types/generated/CMaterialParameterHairParameters.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/CMaterialParameterHairParameters.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/CMaterialParameterHairParameters.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/SimpleTypes.hpp>
#include <RED4ext/Types/generated/CMaterialParameter.hpp>
namespace RED4ext
{
struct CHairProfile;
struct CMaterialParameter... | 25.416667 | 75 | 0.786885 | Cyberpunk-Extended-Development-Team |
be3471da2d0d6fcd161b03f087c27d73fff0a7bb | 698 | cpp | C++ | SpaceBomber/Linux/graph/MyEventReceiver.cpp | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 40 | 2018-01-28T14:23:27.000Z | 2022-03-05T15:57:47.000Z | SpaceBomber/Linux/graph/MyEventReceiver.cpp | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 1 | 2021-10-05T09:03:51.000Z | 2021-10-05T09:03:51.000Z | SpaceBomber/Linux/graph/MyEventReceiver.cpp | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 73 | 2019-01-07T18:47:00.000Z | 2022-03-31T08:48:38.000Z | #include "MyEventReceiver.hpp"
#include <iostream>
MyEventReceiver::MyEventReceiver() {
for (irr::u32 i=0; i<irr::KEY_KEY_CODES_COUNT; ++i)
KeyIsDown[i] = false;
}
MyEventReceiver& MyEventReceiver::operator=(const MyEventReceiver&) {
return *this;
}
bool MyEventReceiver::IsKeyDown(irr::EKEY_CODE keyCode) co... | 25.851852 | 69 | 0.72063 | 667MARTIN |
be39ac2f62d4f7ba6242103dc37ce23beade3f44 | 1,310 | cpp | C++ | codeforces/contests/round/601-div2/d.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/contests/round/601-div2/d.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/contests/round/601-div2/d.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
int32_t main(){
desync();
int t;
cin >> t;
while(t--){
int n, m, k;
cin >> n >> m >> k;
int acc = 0;
vector<string> ans(n);
for(string &s:ans){
cin >> s;
for(char c:s)
acc += (c == 'R');
... | 26.734694 | 116 | 0.276336 | tysm |
be3c374db0c2ae1e2ebec5ee0a71cf325b97320a | 6,069 | cpp | C++ | src/vns/tb2localsearch.cpp | Pierre-Mont/toulbar2 | 623b92d593eab2dc1e21df9f853c28cc84626ed6 | [
"MIT"
] | null | null | null | src/vns/tb2localsearch.cpp | Pierre-Mont/toulbar2 | 623b92d593eab2dc1e21df9f853c28cc84626ed6 | [
"MIT"
] | null | null | null | src/vns/tb2localsearch.cpp | Pierre-Mont/toulbar2 | 623b92d593eab2dc1e21df9f853c28cc84626ed6 | [
"MIT"
] | null | null | null | /*
* tb2localsearch.cpp
*
* Created on: 3 mars 2015
* Author: Abdelkader Ouali
* Phd. Student : LITIO, University of Oran. GREYC, University of Caen.
*/
#include "tb2localsearch.hpp"
#include "core/tb2wcsp.hpp"
LocalSearch::LocalSearch(Cost initUpperBound)
: Solver(initUpperBound)
, bestUb(MA... | 34.288136 | 147 | 0.593508 | Pierre-Mont |
be3e221677a67d6866b9af51ec40836e36a5b8a6 | 56 | cpp | C++ | test/autogen/smp@algorithm@adjacent_difference.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | test/autogen/smp@algorithm@adjacent_difference.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | test/autogen/smp@algorithm@adjacent_difference.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #include "jln/mp/smp/algorithm/adjacent_difference.hpp"
| 28 | 55 | 0.821429 | jonathanpoelen |
be3ee158571ba3a744909f43b7b0a59de1b5d321 | 1,501 | hpp | C++ | android-28/android/database/MergeCursor.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/database/MergeCursor.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/database/MergeCursor.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "./AbstractCursor.hpp"
class JByteArray;
class JArray;
class JArray;
namespace android::database
{
class ContentObserver;
}
namespace android::database
{
class DataSetObserver;
}
class JString;
namespace android::database
{
class MergeCursor : public android::database::AbstractCursor
{
pub... | 27.290909 | 178 | 0.752831 | YJBeetle |
be42514fd2c22eaf4d1378c2510877bf09f607ed | 1,667 | cpp | C++ | src/1.1.3/Stack.cpp | minhdangphuoc/Stack_Profix_Calculator | b9b05dabb7e77039437eac4c93846b00355acf61 | [
"MIT"
] | null | null | null | src/1.1.3/Stack.cpp | minhdangphuoc/Stack_Profix_Calculator | b9b05dabb7e77039437eac4c93846b00355acf61 | [
"MIT"
] | null | null | null | src/1.1.3/Stack.cpp | minhdangphuoc/Stack_Profix_Calculator | b9b05dabb7e77039437eac4c93846b00355acf61 | [
"MIT"
] | null | null | null | #include "Stack.hpp"
#include "iostream"
Error_code Stack::push(const Stack_entry &item)
/* Pre: None.
Post: If the Stack is not full, item is added to the top of the Stack. If the Stack is
full, an Error code of overflow is returned and the Stack is left unchanged.
*/
{
Error_code outcome = success;
if (count ... | 23.814286 | 87 | 0.643671 | minhdangphuoc |
be476c16b432110068fc6f158452c0c9d0480535 | 1,508 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/asio/resolver.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/asio/resolver.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/asio/resolver.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <msw/zzz/asio/resolver.hpp>
namespace msw
{
template <typename Protocol>
struct resolver
: noncopyable
{
typedef typename zzz::resolver<Protocol>::iterator iterator ;
typedef typename zzz::resolver<Protocol>::query query ;... | 30.16 | 126 | 0.587533 | yklishevich |
be5064e3921d036ba100e8519203df1bf50ec079 | 4,658 | hpp | C++ | Pods/Realm/include/core/realm/util/buffer_stream.hpp | Jethro87/DevSwitch | 0ff977fb0e1225b58304e2b46ddb129abc5b9fbe | [
"MIT"
] | 1,562 | 2020-08-19T00:30:37.000Z | 2022-03-31T15:15:22.000Z | Pods/Realm/include/core/realm/util/buffer_stream.hpp | Jethro87/DevSwitch | 0ff977fb0e1225b58304e2b46ddb129abc5b9fbe | [
"MIT"
] | 1,472 | 2020-12-18T07:19:53.000Z | 2022-03-31T15:34:27.000Z | Pods/Realm/include/core/realm/util/buffer_stream.hpp | Jethro87/DevSwitch | 0ff977fb0e1225b58304e2b46ddb129abc5b9fbe | [
"MIT"
] | 247 | 2020-09-06T18:34:40.000Z | 2022-03-30T09:03:50.000Z | /*************************************************************************
*
* REALM CONFIDENTIAL
* __________________
*
* [2011] - [2016] Realm Inc
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Realm Incorporated and its suppliers,
* if any. The int... | 30.644737 | 97 | 0.718549 | Jethro87 |
be516196e6880ddceaa3e9b29516ffbc6c49e479 | 4,502 | hpp | C++ | inc/lmdb-wrapper/cursor.hpp | douderg/lmdb-wrapper | b37e46b8420b023baeabc0c9688ac5e07c3a6734 | [
"MIT"
] | null | null | null | inc/lmdb-wrapper/cursor.hpp | douderg/lmdb-wrapper | b37e46b8420b023baeabc0c9688ac5e07c3a6734 | [
"MIT"
] | null | null | null | inc/lmdb-wrapper/cursor.hpp | douderg/lmdb-wrapper | b37e46b8420b023baeabc0c9688ac5e07c3a6734 | [
"MIT"
] | null | null | null | #pragma once
#include "lmdb-wrapper/value.hpp"
#include <optional>
namespace lmdb {
template <class K, class T>
class cursor {
public:
cursor(): cursor_{nullptr} {
}
cursor(MDB_txn* t, MDB_dbi d): cursor() {
if (mdb_cursor_open(t, d, &cursor_)) {
throw std::runtime_error("failed to ... | 30.214765 | 94 | 0.512217 | douderg |
be521275934a9cf69185bc331ee294ad91bd623f | 819 | hpp | C++ | src/image/RGB555-RGB565.hpp | PhysShell/SEZEII | 0c7ea7fb52d0df67437d158a81a72971e3753461 | [
"MIT"
] | null | null | null | src/image/RGB555-RGB565.hpp | PhysShell/SEZEII | 0c7ea7fb52d0df67437d158a81a72971e3753461 | [
"MIT"
] | null | null | null | src/image/RGB555-RGB565.hpp | PhysShell/SEZEII | 0c7ea7fb52d0df67437d158a81a72971e3753461 | [
"MIT"
] | null | null | null | #pragma once
#include "../utils/macro.hpp"
namespace seze {
extern const byte table5[];
extern const byte table6[];
struct RGB565 {
public:
uint16_t RGB = 0; ///< 5:6:5
RGB565(byte r=0, byte g=0, byte b=0);
RGB565(uint16_t data);
//! copy components to vals
void set_to(byte& r, byte& g, byte& b) const;
};... | 20.475 | 47 | 0.578755 | PhysShell |
be57e359793b2b3113cdfaf1955e1373ce2ddbef | 924 | cpp | C++ | TRAP/src/Graphics/API/Vulkan/Internals/Objects/VulkanSemaphore.cpp | GamesTrap/TRAP | 007de9ce70273cb8ae11066cc8488d9db78b1038 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-23T18:18:19.000Z | 2019-05-27T21:10:07.000Z | TRAP/src/Graphics/API/Vulkan/Internals/Objects/VulkanSemaphore.cpp | GamesTrap/TRAP | 007de9ce70273cb8ae11066cc8488d9db78b1038 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 88 | 2018-08-02T01:08:04.000Z | 2019-07-24T19:13:26.000Z | TRAP/src/Graphics/API/Vulkan/Internals/Objects/VulkanSemaphore.cpp | GamesTrap/TRAP | 007de9ce70273cb8ae11066cc8488d9db78b1038 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2018-08-02T01:10:40.000Z | 2020-08-14T14:05:58.000Z | #include "TRAPPCH.h"
#include "VulkanSemaphore.h"
#include "VulkanDevice.h"
#include "Graphics/API/Vulkan/Internals/VulkanInitializers.h"
TRAP::Graphics::API::Vulkan::Semaphore::Semaphore(Device* device)
: m_semaphore(), m_device(device)
{
VkSemaphoreCreateInfo semaphoreCreateInfo = Initializers::SemaphoreCreateInf... | 30.8 | 119 | 0.563853 | GamesTrap |
be5cfef1fbff2e83155a869bf0214015bb2051f7 | 102,185 | cpp | C++ | extern/glslang/SPIRV/doc.cpp | tmpvar/glslang-sys | 0cff8c5163380348f6d7e6c573b859a1e68f470b | [
"MIT"
] | 1 | 2017-08-29T14:07:31.000Z | 2017-08-29T14:07:31.000Z | extern/glslang/SPIRV/doc.cpp | tmpvar/glslang-sys | 0cff8c5163380348f6d7e6c573b859a1e68f470b | [
"MIT"
] | 1 | 2018-11-25T07:43:23.000Z | 2019-05-19T05:28:26.000Z | extern/glslang/SPIRV/doc.cpp | tmpvar/glslang-sys | 0cff8c5163380348f6d7e6c573b859a1e68f470b | [
"MIT"
] | 2 | 2018-12-22T13:48:15.000Z | 2020-01-31T20:56:46.000Z | //
//Copyright (C) 2014 LunarG, Inc.
//
//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 list... | 48.200472 | 146 | 0.745569 | tmpvar |
4154af50e799c60e9b8af8eb53642ba3d5dc51c5 | 362 | hpp | C++ | CookieEngine/include/Gameplay/AIBehavior.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/Gameplay/AIBehavior.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/Gameplay/AIBehavior.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | #ifndef _AIBEHAVIOR_HPP__
#define _AIBEHAVIOR_HPP__
#include <algorithm>
#include "Gameplay/AIStep.hpp"
namespace Cookie
{
namespace Gameplay
{
struct AIBehavior
{
std::string name {"No Name"}; //for UI and Save
std::vector<AIStep> steps;
void Clear()
{
name = "No Name";
steps.clear();
... | 14.48 | 52 | 0.651934 | qbleuse |
4157bb240e3d2cda3d23e1f4b368b41827d797b2 | 37,664 | cpp | C++ | Image/Gif.cpp | davemc0/DMcTools | 7fa65abc99330c4cc49cf4037cf629051aa516a6 | [
"CC0-1.0"
] | null | null | null | Image/Gif.cpp | davemc0/DMcTools | 7fa65abc99330c4cc49cf4037cf629051aa516a6 | [
"CC0-1.0"
] | null | null | null | Image/Gif.cpp | davemc0/DMcTools | 7fa65abc99330c4cc49cf4037cf629051aa516a6 | [
"CC0-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////
// Gif.cpp - Load and save GIF images
//
// Changes Copyright David K. McAllister, Aug. 1997.
// Taken from XV v. 3.10, which was taken from xgif and others 1987-1999.
// As I'm sure you know, the LZW compression contained herein is patented.
// You... | 32.751304 | 157 | 0.463812 | davemc0 |
41590d3bfbc2eafda2fc5badcc2fd7423609d8a5 | 22,120 | cpp | C++ | video/common/Processing/jhcDist.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | 1 | 2020-03-01T13:22:34.000Z | 2020-03-01T13:22:34.000Z | video/common/Processing/jhcDist.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | null | null | null | video/common/Processing/jhcDist.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | 1 | 2020-07-30T10:24:58.000Z | 2020-07-30T10:24:58.000Z | // jhcDist.cpp : spreading activation like space claiming
//
// Written by Jonathan H. Connell, jconnell@alum.mit.edu
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 1999-2016 IBM Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may... | 23.457052 | 82 | 0.437161 | jconnell11 |
415bf2b5c39322da8f662da730ba4f6f03cfff25 | 2,899 | cpp | C++ | 1/2/client2_async.cpp | Kot97/pus | 7d9de3269bc28b727111314ea920f6d30f68120a | [
"MIT"
] | null | null | null | 1/2/client2_async.cpp | Kot97/pus | 7d9de3269bc28b727111314ea920f6d30f68120a | [
"MIT"
] | 4 | 2019-04-10T18:32:55.000Z | 2019-04-10T18:44:44.000Z | 1/2/client2_async.cpp | Kot97/pus | 7d9de3269bc28b727111314ea920f6d30f68120a | [
"MIT"
] | null | null | null | /*
* Data: 2019-03-18
* Autor: Marcin Kurdziel
* Kompilacja: clang++ -std=c++14 -o client2_async client2_async.cpp -lpthread
* Zamiast clang++ można użyć g++, ale nie jest to zalecane
* Do skompilowaniu programu potrzebna jest bib... | 32.211111 | 129 | 0.577096 | Kot97 |
415c33583b0b8e72bb472b40374ba507dc76d455 | 2,298 | cpp | C++ | gui/Application.cpp | vitalissius/iweather | 13b6469b729a627335a2d629e5a62f6726058dc0 | [
"MIT"
] | 1 | 2021-04-16T08:36:00.000Z | 2021-04-16T08:36:00.000Z | gui/Application.cpp | vitalissius/iweather | 13b6469b729a627335a2d629e5a62f6726058dc0 | [
"MIT"
] | null | null | null | gui/Application.cpp | vitalissius/iweather | 13b6469b729a627335a2d629e5a62f6726058dc0 | [
"MIT"
] | null | null | null | #include "Application.h"
bool Application::IsAlreadyRunning()
{
HANDLE mtx = CreateMutex(NULL, FALSE, TEXT("{A393562E-EF7A-459F-A920-0286403D4A9B++}"));
if (GetLastError() == ERROR_ALREADY_EXISTS)
{
static const TCHAR* message = TEXT("Application is already running");
MessageBox(NULL, messa... | 26.413793 | 92 | 0.651001 | vitalissius |
415e6b07be4d2de9f9ece0a58b60f2719e71b34c | 169 | hpp | C++ | include/scene/scene.hpp | selcia-eremeev/cake | 855886acd7595d12780cb95a0bcb8a6fcee09ac6 | [
"MIT"
] | 1 | 2020-11-28T21:07:24.000Z | 2020-11-28T21:07:24.000Z | include/scene/scene.hpp | selcia-eremeev/chen | 96a2f4fbe444b26668983fb4c3f360d1a22cd2f7 | [
"MIT"
] | 9 | 2021-03-23T20:08:51.000Z | 2021-03-27T20:44:09.000Z | include/scene/scene.hpp | selcia-eremeev/cake | 855886acd7595d12780cb95a0bcb8a6fcee09ac6 | [
"MIT"
] | null | null | null | #pragma once
class Scene {
public:
virtual int Initialize(void) = 0;
virtual int Update(void) = 0;
virtual int Render(void) = 0;
virtual int Terminate(void) = 0;
}; | 18.777778 | 34 | 0.692308 | selcia-eremeev |
416185b85d800802d817b77d053182088c6fd7d9 | 1,600 | hpp | C++ | include/public/coherence/util/ListMuterator.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 | include/public/coherence/util/ListMuterator.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 | include/public/coherence/util/ListMuterator.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.
*/
#ifndef COH_LIST_MUTERATOR_HPP
#define COH_LIST_MUTERATOR_HPP
#include "coherence/lang.ns"
#include "coherence/util/ListIterator.hpp"
#includ... | 27.118644 | 77 | 0.6425 | chpatel3 |
4164cad41386f4202620d706df15ab3a880cc49c | 1,792 | cpp | C++ | source/Structure/custom_plugins/plugins/HIL_server/protocol.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | source/Structure/custom_plugins/plugins/HIL_server/protocol.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | source/Structure/custom_plugins/plugins/HIL_server/protocol.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | #include <iostream>
#include "protocol.hpp"
Frame receive(Serial& serial)
{
Frame frame;
u8 header = frame.header();
u8 end = frame.end();
i32 status = 0;
u8 last = 'a';
bool fim = false;
while (!fim)
{
// std::cout << "entrei" << std::endl;
std::string byte = serial.read();
u8 b[1];
b[... | 19.268817 | 60 | 0.499442 | Guiraffo |
416b26fe8e61a18d9ec0f54dbc94dfba8d727cf7 | 1,623 | cpp | C++ | engine/Engine.UI.GDI/src/ui/gdi/image/SvgDocument.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | null | null | null | engine/Engine.UI.GDI/src/ui/gdi/image/SvgDocument.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | 10 | 2018-03-20T21:32:16.000Z | 2018-04-23T19:42:59.000Z | engine/Engine.UI.GDI/src/ui/gdi/image/SvgDocument.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | null | null | null | #include "ghuigdipch.h"
#include "SvgDocument.h"
#include "core/reflection/Property.h"
#include "core/reflection/StandardTypes.h"
#include "core/reflection/TypeBuilder.h"
#include <Shlwapi.h>
#include <wrl.h>
namespace Ghurund::UI::GDI {
const Ghurund::Core::Type& SvgDocument::GET_TYPE() {
using namespac... | 30.622642 | 138 | 0.666667 | Kartikeyapan598 |
416f1798c4b310cc7f89a63f7bca3ad22bcd50c3 | 10,734 | cpp | C++ | src/network.cpp | USCCANA/lergm | e4ef1a516e4916b9097918d79bc1f7928fd358e0 | [
"MIT"
] | 7 | 2019-05-27T03:21:53.000Z | 2021-06-21T19:41:17.000Z | src/network.cpp | USCCANA/lergm | e4ef1a516e4916b9097918d79bc1f7928fd358e0 | [
"MIT"
] | 11 | 2019-05-03T16:24:59.000Z | 2020-07-16T04:59:11.000Z | src/network.cpp | USCCANA/lergm | e4ef1a516e4916b9097918d79bc1f7928fd358e0 | [
"MIT"
] | 1 | 2021-07-05T01:48:46.000Z | 2021-07-05T01:48:46.000Z | #include <Rcpp.h>
using namespace Rcpp;
// List induced_subnetwork(
// const List & net,
// const IntegerVector & v,
// bool check = true
// ) {
//
// List newnet;
//
// // Checking out the master edgelist
// if (!net.containsElementNamed("mel"))
// stop("No `mel`.");
//
// // Explic... | 26.635236 | 129 | 0.502981 | USCCANA |
4170ed5207cf7980cc08796ea432ff007b24f67e | 1,494 | cpp | C++ | aff3ct/src/Tools/Algo/Draw_generator/Random_sigma_generator/Random_sigma_generator.cpp | AdrianLundell/ldpc-investigation-master-thesis | 075f5cd10dae498e4fcda2f4aabedd0e27caf122 | [
"MIT"
] | 1 | 2022-03-07T15:52:10.000Z | 2022-03-07T15:52:10.000Z | aff3ct/src/Tools/Algo/Draw_generator/Random_sigma_generator/Random_sigma_generator.cpp | AdrianLundell/ldpc-investigation-master-thesis | 075f5cd10dae498e4fcda2f4aabedd0e27caf122 | [
"MIT"
] | 6 | 2022-03-09T10:31:25.000Z | 2022-03-09T10:50:34.000Z | aff3ct/src/Tools/Algo/Draw_generator/Random_sigma_generator/Random_sigma_generator.cpp | AdrianLundell/ldpc-investigation-master-thesis | 075f5cd10dae498e4fcda2f4aabedd0e27caf122 | [
"MIT"
] | null | null | null | #include <aff3ct.hpp>
#include <aff3ct_extension.hpp>
#include <random>
#include <cmath>
using namespace aff3ct::tools;
template <typename R>
Random_sigma_generator<R>::Random_sigma_generator(const int seed)
: Draw_generator<R>()
{
this->set_seed(seed);
}
template <typename R>
void Random_sigma_generator<R>::set_... | 30.489796 | 119 | 0.661981 | AdrianLundell |
41726c393d6126f30961d7280e8c17431716d573 | 4,158 | cpp | C++ | modules/visualneuro/src/processors/groupcontroller.cpp | scivis-exhibitions/VisualNeuro | 0770bdb72360f229ef8ff51eff9c7395adb23dfd | [
"BSD-2-Clause"
] | null | null | null | modules/visualneuro/src/processors/groupcontroller.cpp | scivis-exhibitions/VisualNeuro | 0770bdb72360f229ef8ff51eff9c7395adb23dfd | [
"BSD-2-Clause"
] | null | null | null | modules/visualneuro/src/processors/groupcontroller.cpp | scivis-exhibitions/VisualNeuro | 0770bdb72360f229ef8ff51eff9c7395adb23dfd | [
"BSD-2-Clause"
] | null | null | null | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... | 41.168317 | 100 | 0.641414 | scivis-exhibitions |
41748d3f0d9bc0d48c923c8400fdd9de9c6280f3 | 5,041 | cpp | C++ | src/network/zeromq/Context.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/network/zeromq/Context.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/network/zeromq/Context.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | // Copyright (c) 2018 The Open-Transactions developers
// 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 distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "stdafx.hpp"
#include "Context.hpp"
#include "opent... | 25.588832 | 79 | 0.72565 | nopdotcom |
41785611ea0a9ff1e7ab93cacec35f0cd6fe280e | 2,703 | cpp | C++ | Source/source/mob_categories/bridge_category.cpp | ElatedEatrs/Pikifen | 1e834d5241fc631f8dfc519c17358051e867164f | [
"MIT"
] | null | null | null | Source/source/mob_categories/bridge_category.cpp | ElatedEatrs/Pikifen | 1e834d5241fc631f8dfc519c17358051e867164f | [
"MIT"
] | null | null | null | Source/source/mob_categories/bridge_category.cpp | ElatedEatrs/Pikifen | 1e834d5241fc631f8dfc519c17358051e867164f | [
"MIT"
] | null | null | null | /*
* Copyright (c) Andre 'Espyo' Silva 2013.
* The following source file belongs to the open-source project Pikifen.
* Please read the included README and LICENSE files for more information.
* Pikmin is copyright (c) Nintendo.
*
* === FILE DESCRIPTION ===
* Bridge mob category class.
*/
#include <algorithm>
#... | 26.762376 | 79 | 0.506844 | ElatedEatrs |
417dd5e62e8ce9a897baf68e1422681921360aea | 5,160 | cpp | C++ | mod/spawn/SpawnAnalyzer.cpp | Sysca11/TrapDoor | 77008c7dd47e835e453bbf099a8d91fd0036a011 | [
"MIT"
] | null | null | null | mod/spawn/SpawnAnalyzer.cpp | Sysca11/TrapDoor | 77008c7dd47e835e453bbf099a8d91fd0036a011 | [
"MIT"
] | null | null | null | mod/spawn/SpawnAnalyzer.cpp | Sysca11/TrapDoor | 77008c7dd47e835e453bbf099a8d91fd0036a011 | [
"MIT"
] | null | null | null | //
// Created by xhy on 2021/1/1.
//
#include "SpawnAnalyzer.h"
#include "entity/Actor.h"
#include "lib/SymHook.h"
#include "lib/mod.h"
#include "tools/Message.h"
#include "TrapdoorMod.h"
#include "tools/MsgBuilder.h"
#include <map>
namespace mod {
void SpawnAnalyzer::start(trapdoor::Actor *player) {
if... | 36.083916 | 163 | 0.531395 | Sysca11 |
417ee9b0b9f619f74a9fce17193c873f568d2d3c | 586 | cpp | C++ | 281/A[ Word Capitalization ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | 281/A[ Word Capitalization ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | 281/A[ Word Capitalization ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define sd(x) scanf("%d",&x)
#define su(x) scanf("%u",&x)
#define slld(x) scanf("%lld",&x)
#define sc(x) scanf("%c",&x)
#define ss(x) scanf("%s",x)
#define sf(x) scanf("%f",&x)
#define slf(x) scanf("%lf",&x)
#define ll long long int
#define mod(x,n) (x+n)%n
char S[1007];
... | 20.206897 | 68 | 0.554608 | mejanvijay |
418359219a1340b705c38263faf21121627d4974 | 1,219 | cpp | C++ | src/likelihood.cpp | PROBIC/mSWEEP | 91b2467593b6231468fdabed1455c095ec3f532a | [
"MIT"
] | 9 | 2018-06-05T16:27:09.000Z | 2020-09-18T13:15:45.000Z | src/likelihood.cpp | PROBIC/mSWEEP | 91b2467593b6231468fdabed1455c095ec3f532a | [
"MIT"
] | 10 | 2018-08-03T11:34:44.000Z | 2021-11-11T13:33:04.000Z | src/likelihood.cpp | PROBIC/mSWEEP | 91b2467593b6231468fdabed1455c095ec3f532a | [
"MIT"
] | 1 | 2020-09-15T16:40:41.000Z | 2020-09-15T16:40:41.000Z | #include "likelihood.hpp"
#include <vector>
#include <cmath>
inline double lbeta(double x, double y) {
return(std::lgamma(x) + std::lgamma(y) - std::lgamma(x + y));
}
inline double log_bin_coeff(uint16_t n, uint16_t k) {
return (std::lgamma(n + 1) - std::lgamma(k + 1) - std::lgamma(n - k + 1));
}
inline double ... | 34.828571 | 138 | 0.652174 | PROBIC |
4184cf2806a8bca26430c4699134a75b287ef83f | 1,650 | cpp | C++ | Codeforces/Round #690 (div3)/F.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | Codeforces/Round #690 (div3)/F.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | null | null | null | Codeforces/Round #690 (div3)/F.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 2e18;
const long long ... | 20.625 | 56 | 0.557576 | python-programmer1512 |
4187378fd1a22a017292b15453fce89bed955fb7 | 232 | cpp | C++ | Tests/LibELF/Dynlib.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 19,438 | 2019-05-20T15:11:11.000Z | 2022-03-31T23:31:32.000Z | Tests/LibELF/Dynlib.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 7,882 | 2019-05-20T01:03:52.000Z | 2022-03-31T23:26:31.000Z | Tests/LibELF/Dynlib.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 2,721 | 2019-05-23T00:44:57.000Z | 2022-03-31T22:49:34.000Z | /*
* Copyright (c) 2021, Rodrigo Tobar <rtobarc@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibLine/Span.h>
extern "C" {
int FUNCTION();
int FUNCTION()
{
return (int)Line::Span(0, 0).beginning();
}
}
| 14.5 | 56 | 0.637931 | r00ster91 |
4187faee5ce7f90f29fa96c33890aa8efbc79847 | 30,178 | cpp | C++ | src/gameworld/gameworld/config/activityconfig/questionconfig.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/gameworld/gameworld/config/activityconfig/questionconfig.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/gameworld/gameworld/config/activityconfig/questionconfig.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #include "questionconfig.hpp"
#include "servercommon/configcommon.h"
#include "checkresourcecenter.hpp"
#include"item/itempool.h"
QuestionConfig::QuestionConfig()
{
}
QuestionConfig::~QuestionConfig()
{
}
bool QuestionConfig::Init(const std::string &path, std::string *err)
{
PugiXmlDocument document;
PUGI_XML_LO... | 27.534672 | 157 | 0.685499 | mage-game |
4190e58ec84187168e965aa62b83e93614d989cd | 4,234 | hpp | C++ | cfft.hpp | pkeir/ctfft | c9ffd0cc5d83836df787f034f108822cbc586b26 | [
"BSL-1.0"
] | 15 | 2015-05-29T22:11:04.000Z | 2021-08-10T02:11:33.000Z | cfft.hpp | pkeir/ctfft | c9ffd0cc5d83836df787f034f108822cbc586b26 | [
"BSL-1.0"
] | null | null | null | cfft.hpp | pkeir/ctfft | c9ffd0cc5d83836df787f034f108822cbc586b26 | [
"BSL-1.0"
] | 3 | 2015-07-22T05:17:54.000Z | 2016-09-10T06:49:23.000Z | #ifndef _CONSTFFT_HPP_
#define _CONSTFFT_HPP_
/*
Header providing FFT implementation using C++11 tuples.
Copyright Paul Keir 2012-2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file license.txt or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef SZ
#error Please #define SZ ... | 25.353293 | 80 | 0.623051 | pkeir |
4193a341964e17f06953f7280fd295ef959b8d0d | 2,489 | cpp | C++ | Problems/240_Search_a_2D_Matrix_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | 3 | 2019-09-21T16:25:44.000Z | 2021-08-29T20:43:57.000Z | Problems/240_Search_a_2D_Matrix_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | null | null | null | Problems/240_Search_a_2D_Matrix_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
//// Search Space Reduction
class Solution {
public:
bool searchMatrix(vector<vector<int>>& matrix, int target) {
if (matrix.size() == 0 || matrix[0].size() == 0) return false;
int pt_row = matrix.size()-1;
int pt_col = 0;
... | 30.728395 | 111 | 0.534753 | camelboat |
419a0aab494e915da7083289a2e14825469aaaf4 | 140 | cpp | C++ | Controller/CPU-related/Intel/Core/Core.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | Controller/CPU-related/Intel/Core/Core.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | Controller/CPU-related/Intel/Core/Core.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | 1 | 2021-07-16T21:01:26.000Z | 2021-07-16T21:01:26.000Z | /*
* Core.cpp
*
* Created on: 28.09.2010
* Author: sgebauer
*/
#include <stdint.h> //uint32_t
uint32_t g_dwValue1, g_dwValue2 ;
| 14 | 33 | 0.628571 | st-gb |
419cfbb44ec521a586e22a8dae862991ef30b0e4 | 2,685 | cpp | C++ | base/system_console.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | 3 | 2019-01-08T18:41:03.000Z | 2021-02-25T11:13:00.000Z | base/system_console.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | null | null | null | base/system_console.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | null | null | null | // LAF Base Library
// Copyright (c) 2001-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "base/system_console.h"
#ifdef _WIN32 // Windows needs some adjustments to the console if the... | 27.680412 | 92 | 0.681937 | clarfonthey |
419fae4e9f3affd25518ec83360040d838e314aa | 632 | cpp | C++ | src/web.cpp | HellRok/Taylor | aa9d901b4db77395a0bde896500016353adcd73b | [
"MIT"
] | 40 | 2021-05-25T04:21:49.000Z | 2022-02-19T05:05:45.000Z | src/web.cpp | HellRok/Taylor | aa9d901b4db77395a0bde896500016353adcd73b | [
"MIT"
] | 4 | 2021-09-17T06:52:35.000Z | 2021-12-29T23:07:18.000Z | src/web.cpp | HellRok/Taylor | aa9d901b4db77395a0bde896500016353adcd73b | [
"MIT"
] | 1 | 2021-12-23T00:59:27.000Z | 2021-12-23T00:59:27.000Z | #ifdef __EMSCRIPTEN__
#include "mruby.h"
#include <emscripten/emscripten.h>
mrb_state *main_loop_mrb{};
mrb_value main_loop_self{};
char *main_loop_method{};
void real_main_loop() {
mrb_funcall(main_loop_mrb, main_loop_self, main_loop_method, 0);
}
mrb_value mrb_set_main_loop(mrb_state *mrb, mrb_value self) {
mr... | 23.407407 | 98 | 0.765823 | HellRok |
41a7485c074fb927c65eb887073c4456c636a288 | 8,939 | hpp | C++ | include/TMPro/KerningTable.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/TMPro/KerningTable.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/TMPro/KerningTable.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
#include "extern/beatsaber-hook/s... | 57.301282 | 230 | 0.731066 | marksteward |
41a9fa8ef0ce7b23231d9a4810ac4aebb7d09393 | 96,719 | cpp | C++ | scripts/dp88_misc.cpp | mpforums/RenSharp | 5b3fb8bff2a1772a82a4148bcf3e1265a11aa097 | [
"Apache-2.0"
] | 1 | 2021-10-04T02:34:33.000Z | 2021-10-04T02:34:33.000Z | scripts/dp88_misc.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 9 | 2019-07-03T19:19:59.000Z | 2020-03-02T22:00:21.000Z | scripts/dp88_misc.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 2 | 2019-08-14T08:37:36.000Z | 2020-09-29T06:44:26.000Z | /* Renegade Scripts.dll
Copyright 2017 Tiberian Technologies
This file is part of the Renegade scripts.dll
The Renegade scripts.dll 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 2, or (at yo... | 33.594651 | 243 | 0.652974 | mpforums |
41abf5fe5cc98631a45e40b91d2d45a08c985d3a | 599 | cpp | C++ | reciver/main.cpp | talshadow/atto | 88e18a2968912e97d6fa20ad5e4fe8c2fa7d0a37 | [
"MIT"
] | null | null | null | reciver/main.cpp | talshadow/atto | 88e18a2968912e97d6fa20ad5e4fe8c2fa7d0a37 | [
"MIT"
] | null | null | null | reciver/main.cpp | talshadow/atto | 88e18a2968912e97d6fa20ad5e4fe8c2fa7d0a37 | [
"MIT"
] | null | null | null | #include <future>
#include <iostream>
#include <threadpool.hpp>
#include <tcpsocket.hpp>
int main() {
bclasses::TimeCalc timer;
try{
unsigned ThreadsCount = std::thread::hardware_concurrency() > 3 ? 4 : std::thread::hardware_concurrency() + 1;
auto pool = bclasses::ThreadPool::createInstance(ThreadsCount)... | 24.958333 | 115 | 0.671119 | talshadow |
41ac8e5bc3416f9b8db6eafd49e88baa91aeaab5 | 6,194 | cpp | C++ | unit_tests/src/test_logical_paths_and_special_characters.cpp | mcv21/irods | 3c793a5acbbbe25b5f20aaeeca2609417855eee6 | [
"BSD-3-Clause"
] | null | null | null | unit_tests/src/test_logical_paths_and_special_characters.cpp | mcv21/irods | 3c793a5acbbbe25b5f20aaeeca2609417855eee6 | [
"BSD-3-Clause"
] | null | null | null | unit_tests/src/test_logical_paths_and_special_characters.cpp | mcv21/irods | 3c793a5acbbbe25b5f20aaeeca2609417855eee6 | [
"BSD-3-Clause"
] | null | null | null | #include "catch.hpp"
#include "getRodsEnv.h"
#include "rodsPath.h"
#include "miscUtil.h"
#include "filesystem/path.hpp"
#include <cstring>
#include <string>
TEST_CASE("logical paths and special characters")
{
using namespace std::string_literals;
namespace fs = irods::experimental::filesystem;
rodsEnv... | 27.048035 | 73 | 0.576041 | mcv21 |
41ad2ca7c00b3e8d2c314ff8906b6972599b80aa | 1,600 | hpp | C++ | src/include/migraphx/par_dfor.hpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | 72 | 2018-12-06T18:31:17.000Z | 2022-03-30T15:01:02.000Z | src/include/migraphx/par_dfor.hpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | 1,006 | 2018-11-30T16:32:33.000Z | 2022-03-31T22:43:39.000Z | src/include/migraphx/par_dfor.hpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | 36 | 2019-05-07T10:41:46.000Z | 2022-03-28T15:59:56.000Z | #ifndef MIGRAPHX_GUARD_RTGLIB_PAR_DFOR_HPP
#define MIGRAPHX_GUARD_RTGLIB_PAR_DFOR_HPP
#include <migraphx/par_for.hpp>
#include <migraphx/functional.hpp>
#include <array>
#include <numeric>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
template <class... Ts>
auto par_dfor(Ts... xs)
{
return [=](auto ... | 30.769231 | 94 | 0.5 | aaronenyeshi |
41b61e874572aa7cdc522b06f6f2a9709f6a4fcb | 6,791 | hpp | C++ | src/flat_combining.hpp | schets/flat_combining | fb9a0db459062f4f34d359f5b4d521dd021686fe | [
"MIT"
] | 1 | 2016-06-28T14:02:18.000Z | 2016-06-28T14:02:18.000Z | src/flat_combining.hpp | schets/flat_combining | fb9a0db459062f4f34d359f5b4d521dd021686fe | [
"MIT"
] | null | null | null | src/flat_combining.hpp | schets/flat_combining | fb9a0db459062f4f34d359f5b4d521dd021686fe | [
"MIT"
] | null | null | null | #ifndef FLAT_COMBINING_HPP_
#define FLAT_COMBINING_HPP_
#include "utils.hpp"
#include <atomic>
#include <thread>
#include <iostream>
#include <algorithm>
using namespace std;
#include <type_traits>
#include <stdexcept>
#include <utility>
#include <stdint.h>
#include <stddef.h>
#include "message_alloc.hpp"
namesp... | 19.514368 | 70 | 0.64453 | schets |
41bab5e50385bfb9db7580c865fa9232ef7bb6ba | 781 | cpp | C++ | sorting/selectonSort.cpp | Kshitij993/algorithm | c88efae1e72d057d8dbbb8630ea26f4e5e9860d4 | [
"MIT"
] | null | null | null | sorting/selectonSort.cpp | Kshitij993/algorithm | c88efae1e72d057d8dbbb8630ea26f4e5e9860d4 | [
"MIT"
] | null | null | null | sorting/selectonSort.cpp | Kshitij993/algorithm | c88efae1e72d057d8dbbb8630ea26f4e5e9860d4 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
vector<int> selectionSort(vector<int> arr)
{
int i,j,small,pos,temp;
for(i=0;i<arr.size();i++)
{
small=arr.at(i);
pos=i;
for(j=i+1;j<arr.size();j++)
{
if(small>arr.at(j))
{
smal... | 16.270833 | 42 | 0.408451 | Kshitij993 |
41bc140502b6052a922be91a0472d904d77c2455 | 1,138 | cpp | C++ | src/UniSizeAllocator.cpp | mjssw/crux-net | 6dd2e2b36e9e6211b959f21cb34e3c7fb4845788 | [
"BSD-3-Clause"
] | 1 | 2016-07-04T16:07:57.000Z | 2016-07-04T16:07:57.000Z | src/UniSizeAllocator.cpp | mjssw/crux-net | 6dd2e2b36e9e6211b959f21cb34e3c7fb4845788 | [
"BSD-3-Clause"
] | null | null | null | src/UniSizeAllocator.cpp | mjssw/crux-net | 6dd2e2b36e9e6211b959f21cb34e3c7fb4845788 | [
"BSD-3-Clause"
] | null | null | null | #include "UniSizeAllocator.h"
namespace Crux
{
UniSizeAllocator::UniSizeAllocator( size_t size, int count )
{
//allocate all needed memory
m_pMemoryStart = malloc( size * count );
//link the free memory
LinkFreeElement( size, count );
}
UniSizeAllocator::~UniSizeAllocator()
{
free( m_pMemoryStart );
m_pMemory... | 20.321429 | 76 | 0.723199 | mjssw |
41bfdf2cb1ffc9fb91ecf7acedc1ffe3a8d7216a | 901 | cpp | C++ | WinNTKline/KlineUtil/test/Testcase.cpp | TsyQi/Auto-control | d0dda0752d53d28f358346ee7ab217bf05118c96 | [
"Apache-2.0"
] | 2 | 2015-03-08T01:06:39.000Z | 2015-03-14T15:33:59.000Z | WinNTKline/KlineUtil/test/Testcase.cpp | TsyQi/Auto-control | d0dda0752d53d28f358346ee7ab217bf05118c96 | [
"Apache-2.0"
] | null | null | null | WinNTKline/KlineUtil/test/Testcase.cpp | TsyQi/Auto-control | d0dda0752d53d28f358346ee7ab217bf05118c96 | [
"Apache-2.0"
] | null | null | null | #include <ios>
#include <cstring>
#define EXCEPTION_MESSAGE_MAXLEN 256
template <class TestClass>
class TestCase
{
public:
TestCase<TestClass>() { testClass = new TestClass(); };
TestCase<TestClass> getInstance();
virtual ~TestCase<TestClass>();
private:
TestCase<TestClass> instance;
TestClass* te... | 18.770833 | 69 | 0.695893 | TsyQi |
41c60c54c461e3a1ddc05413b9dd6ce60c910755 | 201 | cpp | C++ | Filesystem/Filesystem/File.cpp | mscheffauer/file-system | a9abe1130ab1a8d5ab8ed1a41ba10d049d25a7c6 | [
"Unlicense"
] | null | null | null | Filesystem/Filesystem/File.cpp | mscheffauer/file-system | a9abe1130ab1a8d5ab8ed1a41ba10d049d25a7c6 | [
"Unlicense"
] | null | null | null | Filesystem/Filesystem/File.cpp | mscheffauer/file-system | a9abe1130ab1a8d5ab8ed1a41ba10d049d25a7c6 | [
"Unlicense"
] | null | null | null | #include "File.h"
File::File(FSNode* firstChild, FSNode* nextSibling) : FSNode(nullptr,nextSibling)
{
//do nothing else
}
void File::print(std::ostream& os) const
{
FSNode::print(os);
}
| 16.75 | 82 | 0.661692 | mscheffauer |
41d154e6e462f7121e0d04f6d3df4fd0d2b51c72 | 3,732 | cpp | C++ | src/lib/io/mpp.cpp | kinglee1982/FaceRecognitionTerminalDemo | 5e197011a87403d2433f691b8390ec340432b2be | [
"Apache-2.0"
] | 2 | 2020-12-21T13:15:59.000Z | 2021-07-07T08:04:06.000Z | src/lib/io/mpp.cpp | kinglee1982/FaceRecognitionTerminalDemo | 5e197011a87403d2433f691b8390ec340432b2be | [
"Apache-2.0"
] | null | null | null | src/lib/io/mpp.cpp | kinglee1982/FaceRecognitionTerminalDemo | 5e197011a87403d2433f691b8390ec340432b2be | [
"Apache-2.0"
] | 1 | 2022-03-24T01:08:42.000Z | 2022-03-24T01:08:42.000Z | #include "mpp.h"
#include <assert.h>
#include "lib/logger.h"
#include "mpi_sys.h"
#include "mpi_vb.h"
Mpp *Mpp::getInstance() {
static Mpp self;
return &self;
}
Mpp::Mpp() { HI_MPI_SYS_Exit(); }
bool Mpp::init(const VB_CONFIG_S *pVbConf) {
HI_MPI_VB_Exit();
HI_U32 s32Ret = HI_MPI_VB_SetConfig(pVbConf);
i... | 24.392157 | 76 | 0.695874 | kinglee1982 |
41d1a49c8263952116cd3f09b91e62d35d15759d | 663 | hpp | C++ | src/Utils/unreachable.hpp | Kerndog73/STELA | 11449b4bb440494f3ec4b1172b2688b5ec1bcd0a | [
"MIT"
] | 10 | 2018-06-20T05:12:59.000Z | 2021-11-23T02:56:04.000Z | src/Utils/unreachable.hpp | Kerndog73/STELA | 11449b4bb440494f3ec4b1172b2688b5ec1bcd0a | [
"MIT"
] | null | null | null | src/Utils/unreachable.hpp | Kerndog73/STELA | 11449b4bb440494f3ec4b1172b2688b5ec1bcd0a | [
"MIT"
] | null | null | null | //
// unreachable.hpp
// STELA
//
// Created by Indi Kernick on 29/11/18.
// Copyright © 2018 Indi Kernick. All rights reserved.
//
#ifndef stela_unreachable_hpp
#define stela_unreachable_hpp
#if defined(TEST_COVERAGE)
#pragma message "Doing nothing in unreachable contexts"
#define UNREACHABLE() void("LCOV_EXCL_... | 21.387097 | 71 | 0.761689 | Kerndog73 |
41d3db405a8176ffda7c992ff48a1602927050c5 | 2,154 | cpp | C++ | android-31/android/location/LocationProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/location/LocationProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/location/LocationProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "./Criteria.hpp"
#include "../../JString.hpp"
#include "./LocationProvider.hpp"
namespace android::location
{
// Fields
jint LocationProvider::AVAILABLE()
{
return getStaticField<jint>(
"android.location.LocationProvider",
"AVAILABLE"
);
}
jint LocationProvider::OUT_OF_SERVICE()
{
return get... | 18.568966 | 81 | 0.68663 | YJBeetle |
41d9344fbd8e01046ba4fb3141fa7a2df5576717 | 2,002 | cpp | C++ | src/analysis/event_definition.cpp | maximaximal/Distrac | 9c6b457247206a743ac0b140d0a03a419983c7bf | [
"MIT"
] | null | null | null | src/analysis/event_definition.cpp | maximaximal/Distrac | 9c6b457247206a743ac0b140d0a03a419983c7bf | [
"MIT"
] | null | null | null | src/analysis/event_definition.cpp | maximaximal/Distrac | 9c6b457247206a743ac0b140d0a03a419983c7bf | [
"MIT"
] | null | null | null | #include "distrac/headers.h"
#include "distrac/types.h"
#include <distrac/analysis/event_definition.hpp>
#include <distrac/analysis/property_definition.hpp>
namespace distrac {
event_definition::event_definition(std::string name,
uint8_t id,
std::st... | 29.441176 | 75 | 0.691309 | maximaximal |
41e1ae28a545f19e0ba1b5f020f609cbac5e3ef1 | 1,850 | cpp | C++ | Basic Calculator.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | Basic Calculator.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | Basic Calculator.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | #include<iostream>
#include<cmath>
using namespace std;
int input(int &a,int &b)
{
a=0;
b=0;
cout<<"Enter Value Of First Number"<<endl;
cin>>a;
cout<<"Enter Value Of Second Number"<<endl;
cin>>b;
return a;
return b;
}
int add(int a,int b)
{
int c=a+b;
return c;
}
int subs(int a,int b)
{
... | 15.04065 | 84 | 0.511351 | Faiquekhan15 |
41e75173008d39d67c39e3840c8c3da72372e865 | 3,901 | cpp | C++ | Source/Messages/Message.cpp | CG-SS/Urho3D-Empty-Project | e8991c5ac57d2f3636169f37168c1f0606e8d58e | [
"MIT"
] | null | null | null | Source/Messages/Message.cpp | CG-SS/Urho3D-Empty-Project | e8991c5ac57d2f3636169f37168c1f0606e8d58e | [
"MIT"
] | null | null | null | Source/Messages/Message.cpp | CG-SS/Urho3D-Empty-Project | e8991c5ac57d2f3636169f37168c1f0606e8d58e | [
"MIT"
] | null | null | null | #include <Urho3D/Urho3DAll.h>
#include "Message.h"
#include "../Audio/AudioManagerDefs.h"
#include "../MyEvents.h"
#include "../UI/NuklearUI.h"
static struct nk_rect _outerRect;
static struct nk_rect _innerRect;
/// Construct.
Message::Message(Context* context) :
Object(context),
_messageTime(0)
{
Init();... | 36.12037 | 425 | 0.651115 | CG-SS |
41e9741be8f41f7fa5089578de004098bd1ab28d | 4,472 | hpp | C++ | glfw3_app/common/utils/handle_set.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 9 | 2015-09-22T21:36:57.000Z | 2021-04-01T09:16:53.000Z | glfw3_app/common/utils/handle_set.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | null | null | null | glfw3_app/common/utils/handle_set.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 2 | 2019-02-21T04:22:13.000Z | 2021-03-02T17:24:32.000Z | #pragma once
//=====================================================================//
/*! @file
@brief ハンドルによるリソース管理
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include <set>
#include <vector>
#include <boost/optional.hpp>
namespace utils {
//++++... | 24.98324 | 78 | 0.400939 | hirakuni45 |
41eeb5acce45e72baaa3fa58bb876f381ce364ad | 15,960 | hpp | C++ | framework/api/sys/common/ByteBuffer.hpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 6 | 2022-03-24T15:40:03.000Z | 2022-03-30T09:40:20.000Z | framework/api/sys/common/ByteBuffer.hpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 7 | 2022-03-24T18:53:52.000Z | 2022-03-30T10:15:50.000Z | framework/api/sys/common/ByteBuffer.hpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 1 | 2022-03-20T21:22:09.000Z | 2022-03-20T21:22:09.000Z | #pragma once
#include <string>
#include <vector>
#include <queue>
#include <deque>
#include <list>
#include <set>
#include <map>
#include <optional>
#include <type_traits>
namespace carpc {
#define __INTEGRAL_TYPE__( TYPE ) std::is_integral_v< TYPE >
#define __FLOATING_POINT_TYPE__( TYPE ) std::i... | 30.810811 | 136 | 0.557456 | dterletskiy |
41f8dad6223bc2c14bb2e44348b039e684d60288 | 2,271 | cpp | C++ | Tests/Unit/TestBadMemory.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | 17 | 2018-03-29T15:24:40.000Z | 2022-01-10T05:01:09.000Z | Tests/Unit/TestBadMemory.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | null | null | null | Tests/Unit/TestBadMemory.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | 3 | 2018-04-07T06:02:05.000Z | 2019-01-21T00:37:18.000Z | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "SceneTrackStatic.h"
#include "TestCommon.h"
#include "TestCRC.h"
extern "C" {
ST_PUBLIC int stInternal_SetMallocMaxSizeMb(int megaBytes);
}
bool MaybeRange(int x, int y, int n)
{
return... | 26.717647 | 162 | 0.667988 | EDFilms |
41ffcf0434ec01fa7066425ec09ebc319d2884ed | 2,393 | hpp | C++ | Engine/Code/Engine/Services/IConsoleService.hpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | null | null | null | Engine/Code/Engine/Services/IConsoleService.hpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | 20 | 2021-11-29T14:09:33.000Z | 2022-03-26T20:12:44.000Z | Engine/Code/Engine/Services/IConsoleService.hpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/Services/IService.hpp"
#include <filesystem>
#include <string>
struct ConsoleCommand { virtual ~ConsoleCommand() noexcept = default; };
struct ConsoleCommandList { virtual ~ConsoleCommandList() noexcept = default; };
class IConsoleService : public IService {
public:
virtual ~IConso... | 45.150943 | 98 | 0.7313 | cugone |
eede03fe3b9b3784d28016e3977bcf63b4408ebc | 1,448 | cpp | C++ | project/source/game/net/PlayerInfo.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | null | null | null | project/source/game/net/PlayerInfo.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | null | null | null | project/source/game/net/PlayerInfo.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | null | null | null | #include "Pch.h"
#include "GameCore.h"
#include "PlayerInfo.h"
#include "SaveState.h"
#include "NetChangePlayer.h"
#include "Net.h"
//=================================================================================================
PlayerInfo::PlayerInfo() : pc(nullptr), u(nullptr), clas(Class::INVALID), left(LEFT_NO)... | 22.276923 | 149 | 0.450967 | ntnt |
eee8cd824197fc13d546c76d907e9d7020521990 | 4,050 | cpp | C++ | apps/coprobber/dscrsimulation/OptimalUnit.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 5 | 2020-08-03T09:43:26.000Z | 2022-01-11T08:28:30.000Z | apps/coprobber/dscrsimulation/OptimalUnit.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | null | null | null | apps/coprobber/dscrsimulation/OptimalUnit.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 7 | 2017-07-31T13:01:28.000Z | 2021-05-16T10:15:49.000Z | #include "OptimalUnit.h"
#include "GLUtil.h"
/*------------------------------------------------------------------------------
| Implementation
------------------------------------------------------------------------------*/
OptimalUnit::OptimalUnit( AbstractionGraphEnvironment *env, graphState initial_state, unsigned ... | 33.196721 | 195 | 0.708642 | AaronTrip |
eeed2d7786df5bc0e33ac5019e7fe8dc200bcb72 | 938 | cpp | C++ | mcrouter/lib/AuxiliaryCPUThreadPool.cpp | Ngo-The-Trung/mcrouter | 277e5be62529e9961c24ca70a172c153491521b8 | [
"BSD-3-Clause"
] | null | null | null | mcrouter/lib/AuxiliaryCPUThreadPool.cpp | Ngo-The-Trung/mcrouter | 277e5be62529e9961c24ca70a172c153491521b8 | [
"BSD-3-Clause"
] | null | null | null | mcrouter/lib/AuxiliaryCPUThreadPool.cpp | Ngo-The-Trung/mcrouter | 277e5be62529e9961c24ca70a172c153491521b8 | [
"BSD-3-Clause"
] | 1 | 2021-03-16T04:36:39.000Z | 2021-03-16T04:36:39.000Z | /*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include "Au... | 26.055556 | 79 | 0.729211 | Ngo-The-Trung |
eeed8e9e036351e0cb78c590c47e4a95bdc7b64a | 2,180 | hpp | C++ | ui/include/ui/bordered.hpp | dobson156/irc_client | 9afc098087a64c88f599e3dae956b7be1407bb96 | [
"BSL-1.0"
] | 1 | 2019-07-13T18:43:38.000Z | 2019-07-13T18:43:38.000Z | ui/include/ui/bordered.hpp | dobson156/irc_client | 9afc098087a64c88f599e3dae956b7be1407bb96 | [
"BSL-1.0"
] | null | null | null | ui/include/ui/bordered.hpp | dobson156/irc_client | 9afc098087a64c88f599e3dae956b7be1407bb96 | [
"BSL-1.0"
] | null | null | null |
// Copyright Joseph Dobson 2014
// 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)
#ifndef BOARDERED_HPP
#define BOARDERED_HPP
#include "util.hpp"
#include "window.hpp"
#include <utility> //... | 27.594937 | 61 | 0.668807 | dobson156 |
eef62976daacda72254ac6c0b8dddbf301a56545 | 30,140 | cc | C++ | tools/cddl/parse.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | 1 | 2020-09-22T05:59:36.000Z | 2020-09-22T05:59:36.000Z | tools/cddl/parse.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | null | null | null | tools/cddl/parse.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | 1 | 2022-02-03T11:05:44.000Z | 2022-02-03T11:05:44.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tools/cddl/parse.h"
#include <unistd.h>
#include <algorithm>
#include <iostream>
#include <memory>
#include <sstream>
#include <vector>
#incl... | 27.055655 | 80 | 0.594758 | gtalis |
eef6b8619dfa29eef8ca4341b43f7ed480f3349f | 8,563 | hpp | C++ | src/model/FuelFactors.hpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 354 | 2015-01-10T17:46:11.000Z | 2022-03-29T10:00:00.000Z | src/model/FuelFactors.hpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 3,243 | 2015-01-02T04:54:45.000Z | 2022-03-31T17:22:22.000Z | src/model/FuelFactors.hpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 157 | 2015-01-07T15:59:55.000Z | 2022-03-30T07:46:09.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 32.934615 | 125 | 0.745183 | muehleisen |
eef83394a8eae91eea5d49a63d9e11772aa01260 | 348,659 | cpp | C++ | libraries/Talkie/src/Vocab_US_Large.cpp | kgranat/nookduino-arduino | ac98c43cd7cba1485e9992f6b972b6a1683c975d | [
"CC0-1.0"
] | null | null | null | libraries/Talkie/src/Vocab_US_Large.cpp | kgranat/nookduino-arduino | ac98c43cd7cba1485e9992f6b972b6a1683c975d | [
"CC0-1.0"
] | null | null | null | libraries/Talkie/src/Vocab_US_Large.cpp | kgranat/nookduino-arduino | ac98c43cd7cba1485e9992f6b972b6a1683c975d | [
"CC0-1.0"
] | 1 | 2021-09-06T06:20:07.000Z | 2021-09-06T06:20:07.000Z | // Talkie library
// Copyright 2011 Peter Knight
// This code is released under GPLv2 license.
//
// Armin Joachimsmeyer 11/2018 converted to .c and .h files and made them unique.
//
// The following phrases are derived from VM61002/3/4/5 ROMs
//
// A male voice with a US accent.
//
// These phrases have a very militar... | 549.935331 | 1,499 | 0.795141 | kgranat |
eef8a10b3f041d31bff8c79ba1c89ce3f4ee9c0e | 12,533 | cpp | C++ | src/ui_dialog.cpp | libtcod/treeburner | ace0eab18d55db77475f509f1bcd8b647cc46c3b | [
"MIT"
] | null | null | null | src/ui_dialog.cpp | libtcod/treeburner | ace0eab18d55db77475f509f1bcd8b647cc46c3b | [
"MIT"
] | null | null | null | src/ui_dialog.cpp | libtcod/treeburner | ace0eab18d55db77475f509f1bcd8b647cc46c3b | [
"MIT"
] | null | null | null |
/*
* Copyright (c) 2010 Jice
* 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 list of conditions... | 34.149864 | 125 | 0.659698 | libtcod |
eeff81085e8dcd68914fa29ef6614c43b9f15b25 | 970 | cpp | C++ | src/Bus.cpp | ecrandz/IoTManager | 5d0eb71cfccccf9020b28be8c9fa5837988fb6ba | [
"MIT"
] | 37 | 2020-08-17T10:39:06.000Z | 2022-02-17T16:18:47.000Z | src/Bus.cpp | ecrandz/IoTManager | 5d0eb71cfccccf9020b28be8c9fa5837988fb6ba | [
"MIT"
] | 11 | 2020-10-20T14:48:07.000Z | 2022-02-04T07:05:05.000Z | src/Bus.cpp | ecrandz/IoTManager | 5d0eb71cfccccf9020b28be8c9fa5837988fb6ba | [
"MIT"
] | 43 | 2020-06-19T22:40:14.000Z | 2022-03-05T05:29:07.000Z | #include "Bus.h"
#include "Class/NotAsync.h"
#include "Global.h"
void busInit() {
myNotAsyncActions->add(
do_BUSSCAN, [&](void*) {
String tmp = i2c_scan();
if (tmp == "error") {
tmp = i2c_scan();
Serial.println(tmp);
jsonWriteStr(confi... | 23.658537 | 66 | 0.442268 | ecrandz |
e100bd2ea767e4333201cc64650afd07cd801c88 | 1,204 | cpp | C++ | src/engine/ui/src/ui/widgets/ui_paged_pane.cpp | lye/halley | 16b6c9783e4b21377f902a9d02366c1f19450a21 | [
"Apache-2.0"
] | 1 | 2019-11-27T20:23:45.000Z | 2019-11-27T20:23:45.000Z | src/engine/ui/src/ui/widgets/ui_paged_pane.cpp | lye/halley | 16b6c9783e4b21377f902a9d02366c1f19450a21 | [
"Apache-2.0"
] | null | null | null | src/engine/ui/src/ui/widgets/ui_paged_pane.cpp | lye/halley | 16b6c9783e4b21377f902a9d02366c1f19450a21 | [
"Apache-2.0"
] | null | null | null | #include <halley/ui/widgets/ui_paged_pane.h>
using namespace Halley;
UIPagedPane::UIPagedPane(String id, int nPages, Vector2f minSize)
: UIWidget(id, minSize, UISizer())
{
pages.reserve(nPages);
for (int i = 0; i < nPages; ++i) {
addPage();
}
setPage(0);
}
void UIPagedPane::addPage()
{
pages.push_back(std::m... | 21.122807 | 107 | 0.686877 | lye |
e1022e833de59ed3edbaa717553130aea9605bf2 | 3,181 | hpp | C++ | Include/FishEngine/GameObject.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-12-20T02:38:44.000Z | 2018-12-20T02:38:44.000Z | Include/FishEngine/GameObject.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | null | null | null | Include/FishEngine/GameObject.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-10-25T19:40:22.000Z | 2018-10-25T19:40:22.000Z | #pragma once
#include "FishEngine.hpp"
#include "Object.hpp"
#include "Component.hpp"
#include "Transform.hpp"
#include <list>
#include <vector>
#include <type_traits>
#include <typeinfo>
namespace FishEngine
{
class Component;
class Transform;
class RectTransform;
class Scene;
class Prefab;
enum class GameO... | 22.401408 | 130 | 0.674002 | yushroom |
e1031ef31be38de1c9e4f031142efcef594e8310 | 1,246 | cpp | C++ | plugins/x11input/src/focus/looked_up_string.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/x11input/src/focus/looked_up_string.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/x11input/src/focus/looked_up_string.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 <sge/input/key/code.hpp>
#include <sge/x11input/focus/char_vector.hpp>
#include <sge/x11in... | 34.611111 | 100 | 0.752006 | cpreh |
e1055f1be42413fee23c4b05d61a057c8cc3481d | 3,171 | hpp | C++ | core/futex.hpp | luluxing/LiveGraph | eea5a40ce6ee443f901e44323c1119f59113eaf3 | [
"Apache-2.0"
] | 17 | 2021-02-25T03:21:47.000Z | 2022-03-14T10:14:51.000Z | core/futex.hpp | luluxing/LiveGraph | eea5a40ce6ee443f901e44323c1119f59113eaf3 | [
"Apache-2.0"
] | 1 | 2021-04-05T02:44:01.000Z | 2021-04-05T14:37:41.000Z | core/futex.hpp | luluxing/LiveGraph | eea5a40ce6ee443f901e44323c1119f59113eaf3 | [
"Apache-2.0"
] | 5 | 2021-03-10T22:39:54.000Z | 2021-08-16T03:22:32.000Z | /* Copyright 2020 Guanyu Feng, Tsinghua University
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 33.378947 | 120 | 0.534216 | luluxing |
e10c26a08ce13e087fe240989db7e3acd6449885 | 2,559 | cpp | C++ | tests/poker/hand.test.cpp | chevtek/poker | 66a1c4274508e055c4b987ab8271fa3e95238fba | [
"MIT"
] | null | null | null | tests/poker/hand.test.cpp | chevtek/poker | 66a1c4274508e055c4b987ab8271fa3e95238fba | [
"MIT"
] | null | null | null | tests/poker/hand.test.cpp | chevtek/poker | 66a1c4274508e055c4b987ab8271fa3e95238fba | [
"MIT"
] | 3 | 2020-08-27T19:12:56.000Z | 2022-03-09T11:13:46.000Z | #include <doctest/doctest.h>
#include <iostream>
#include <poker/hand.hpp>
#include <poker/debug/card.hpp>
#include <poker/debug/hand.hpp>
TEST_CASE("high/low hand evaluation") {
// TODO: test .cards() and .strength()
std::array<poker::card, 7> all_cards[] = {
poker::debug::make_cards<7>("Ac Ac Ac Ac ... | 39.369231 | 60 | 0.619383 | chevtek |
e10e37cf375694158d00e2fbfb92448f6d45f770 | 1,356 | hpp | C++ | Sources/Models/Shapes/ModelRectangle.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Models/Shapes/ModelRectangle.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Models/Shapes/ModelRectangle.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | #pragma once
#include "Models/Model.hpp"
namespace acid
{
/**
* @brief Resource that represents a rectangle model.
*/
class ACID_EXPORT ModelRectangle :
public Model
{
public:
/**
* Creates a new rectangle model, or finds one with the same values.
* @param metadata The metadata to decode values from.
* @ret... | 28.25 | 119 | 0.724926 | liuping1997 |
e1112baf41ec4b8cc2b0a8e137c092d5342b50a5 | 1,266 | cpp | C++ | Level 3/Tableaux avances/Carre magique/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 31 | 2018-10-30T09:54:23.000Z | 2022-03-02T21:45:51.000Z | Level 3/Tableaux avances/Carre magique/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 2 | 2016-12-24T23:39:20.000Z | 2017-07-02T22:51:28.000Z | Level 3/Tableaux avances/Carre magique/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 30 | 2018-10-25T12:28:36.000Z | 2022-01-31T14:31:02.000Z | #include <bits/stdc++.h>
#define N 100
using namespace std;
int tab[N][N];
int v[100000]={0};
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
int n;
cin>>n;
for(int i=0;i<n;++i)
for(int j=0;j<n;++j)
cin>>tab[i][j];
int sum=0;
for(int i=0;i<n;++i)
for(int j=0;j<... | 16.441558 | 43 | 0.375197 | Wurlosh |
e11636f0f73d467d88bd28836a94f291a44e3766 | 28,577 | hpp | C++ | boost/lib/include/boost/geometry/index/detail/rtree/rstar/insert.hpp | mamil/demo | 32240d95b80175549e6a1904699363ce672a1591 | [
"MIT"
] | 101 | 2019-02-12T12:53:18.000Z | 2022-03-14T14:14:38.000Z | boost/lib/include/boost/geometry/index/detail/rtree/rstar/insert.hpp | mamil/demo | 32240d95b80175549e6a1904699363ce672a1591 | [
"MIT"
] | 157 | 2019-02-06T05:04:20.000Z | 2022-03-31T21:50:28.000Z | boost/lib/include/boost/geometry/index/detail/rtree/rstar/insert.hpp | mamil/demo | 32240d95b80175549e6a1904699363ce672a1591 | [
"MIT"
] | 15 | 2019-05-11T04:03:35.000Z | 2022-02-12T18:53:47.000Z | // Boost.Geometry Index
//
// R-tree R*-tree insert algorithm implementation
//
// Copyright (c) 2011-2015 Adam Wulkiewicz, Lodz, Poland.
//
// This file was modified by Oracle on 2019.
// Modifications copyright (c) 2019 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Orac... | 42.148968 | 154 | 0.608461 | mamil |
e116df43d7092dad93ba55cf5d14982f0b41c639 | 871 | hpp | C++ | src/include/guinsoodb/main/relation/subquery_relation.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/include/guinsoodb/main/relation/subquery_relation.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/include/guinsoodb/main/relation/subquery_relation.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | //===----------------------------------------------------------------------===//
// GuinsooDB
//
// guinsoodb/main/relation/subquery_relation.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "guinsoodb/main/relation.hpp"
namespac... | 22.333333 | 80 | 0.595867 | GuinsooLab |
e124a838926bcb7405d64bc38b090f66d0243763 | 355 | cpp | C++ | 867-transpose-matrix/867-transpose-matrix.cpp | phaneesh707/LeetCode_Problems | e17db0454b21993aec734bbc5dd3a862c0229acb | [
"MIT"
] | null | null | null | 867-transpose-matrix/867-transpose-matrix.cpp | phaneesh707/LeetCode_Problems | e17db0454b21993aec734bbc5dd3a862c0229acb | [
"MIT"
] | null | null | null | 867-transpose-matrix/867-transpose-matrix.cpp | phaneesh707/LeetCode_Problems | e17db0454b21993aec734bbc5dd3a862c0229acb | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> transpose(vector<vector<int>>& matrix) {
int m = matrix.size(),n=matrix[0].size();
vector<vector<int>> a(n,vector<int> (m,0));
for(int i=0;i<m;i++){
for(int j=0;j<n;j++){
a[j][i] = matrix[i][j];
}
}
... | 25.357143 | 64 | 0.44507 | phaneesh707 |
e125391549ed93e6a9314f6875e8d8600f000907 | 4,662 | hpp | C++ | include/codegen/include/System/Reflection/PropertyAttributes.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Reflection/PropertyAttributes.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Reflection/PropertyAttributes.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:43 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.Enum
#include "System/Enum.hpp"
#include "utils/il2cpp-utils.hpp"
// Completed in... | 62.16 | 106 | 0.775633 | Futuremappermydud |
e128842e9679a7a9f120e9cc06a7996beb353e27 | 1,175 | hh | C++ | config/example/GenerateEmissionProfiles/WCSimEmissionProfileGenerator.hh | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | config/example/GenerateEmissionProfiles/WCSimEmissionProfileGenerator.hh | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | config/example/GenerateEmissionProfiles/WCSimEmissionProfileGenerator.hh | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | /*
* WCSimEmissionProfileGenerator.hh
*
* Created on: 28 Mar 2014
* Author: andy
*/
#ifndef WCSIMEMISSIONPROFILEGENERATOR_HH_
#define WCSIMEMISSIONPROFILEGENERATOR_HH_
#include "TChain.h"
#include "TString.h"
#include <map>
class WCSimEmissionProfileGenerator
{
public:
WCSimEmissionProfileGenerator( ... | 21.759259 | 79 | 0.710638 | chipsneutrino |
e130a89fd7897cf1688ff2e25323d8d3dee58d20 | 37,499 | cpp | C++ | ROBIT_vision2/src/vision.cpp | zang09/turtlebot3_autorace_ROBIT2_src | adc7225b7e0e5f822e62746beba16cd5a0b20214 | [
"Apache-2.0"
] | null | null | null | ROBIT_vision2/src/vision.cpp | zang09/turtlebot3_autorace_ROBIT2_src | adc7225b7e0e5f822e62746beba16cd5a0b20214 | [
"Apache-2.0"
] | null | null | null | ROBIT_vision2/src/vision.cpp | zang09/turtlebot3_autorace_ROBIT2_src | adc7225b7e0e5f822e62746beba16cd5a0b20214 | [
"Apache-2.0"
] | null | null | null | #include "../include/ROBIT_vision2/vision.hpp"
using namespace cv;
using namespace std;
using namespace cv::xfeatures2d;
int sign_state;
string sign_value;
int vision_line::r_line_xpos = 0;
int vision_line::l_line_xpos = 0;
bool vision_line::r_line_detect = false;
bool vision_line::l_line_detect = false;
bool visio... | 35.343073 | 164 | 0.537694 | zang09 |
e1330234abe6a638ba2cd7650bd6a42b47176f81 | 1,478 | cpp | C++ | Library/Sources/Stroika/Foundation/Time/Realtime.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Library/Sources/Stroika/Foundation/Time/Realtime.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Library/Sources/Stroika/Foundation/Time/Realtime.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../Debug/Assertions.h"
#include "Realtime.h"
using namespace Stroika;
using namespace Stroika::Foundation;
using namespace Stroika::Foundation::Time;
namespace {
template <class Clock, class D... | 38.894737 | 155 | 0.609608 | SophistSolutions |
e137ffb45f24d9ae917b0deee733482d3830e316 | 3,121 | cpp | C++ | project/race3d/src/WorldLoader/CStatic.cpp | maximbilan/cpp_marmalade_sdk_the_pursuit_3d | b0e42bae7ba5c47c5bf2f9db22d973f3319cdb06 | [
"MIT"
] | 5 | 2015-01-05T17:03:00.000Z | 2016-04-07T07:43:32.000Z | project/race3d/src/WorldLoader/CStatic.cpp | maximbilan/cpp_marmalade_sdk_the_pursuit_3d | b0e42bae7ba5c47c5bf2f9db22d973f3319cdb06 | [
"MIT"
] | null | null | null | project/race3d/src/WorldLoader/CStatic.cpp | maximbilan/cpp_marmalade_sdk_the_pursuit_3d | b0e42bae7ba5c47c5bf2f9db22d973f3319cdb06 | [
"MIT"
] | null | null | null | #include "CStatic.h"
#include "WorldLoader.h"
#include "IwSerialise.h"
#include "IwTextParserITX.h"
//----------------------------------------------------------------------------------------------
IW_MANAGED_IMPLEMENT_FACTORY( CStatic );
//----------------------------------------------------------------------------... | 24.007692 | 96 | 0.533483 | maximbilan |
e13b96f6a90ddd763b9221f52f19a1dbdf8ff558 | 7,141 | cpp | C++ | cpp/open3d/ml/tensorflow/misc/InvertNeighborsListOps.cpp | zhengminxu/Open3D | e17648468030018155de1e225a86dbb56fed1dec | [
"MIT"
] | 1 | 2021-08-06T06:16:08.000Z | 2021-08-06T06:16:08.000Z | cpp/open3d/ml/tensorflow/misc/InvertNeighborsListOps.cpp | zhengminxu/Open3D | e17648468030018155de1e225a86dbb56fed1dec | [
"MIT"
] | null | null | null | cpp/open3d/ml/tensorflow/misc/InvertNeighborsListOps.cpp | zhengminxu/Open3D | e17648468030018155de1e225a86dbb56fed1dec | [
"MIT"
] | 1 | 2021-08-05T13:51:10.000Z | 2021-08-05T13:51:10.000Z | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... | 45.775641 | 88 | 0.631984 | zhengminxu |
e13e00709b3260668c2d30ae071b6bc79fc39bbc | 234 | cpp | C++ | test/algos/is_valid_parentheses.cpp | paulpan05/algodts-cpp | db02a8d18668afb004bc63a1814fcc6fe32729ef | [
"Apache-2.0"
] | null | null | null | test/algos/is_valid_parentheses.cpp | paulpan05/algodts-cpp | db02a8d18668afb004bc63a1814fcc6fe32729ef | [
"Apache-2.0"
] | null | null | null | test/algos/is_valid_parentheses.cpp | paulpan05/algodts-cpp | db02a8d18668afb004bc63a1814fcc6fe32729ef | [
"Apache-2.0"
] | null | null | null | #include <algodts/algos/is_valid_parentheses.hpp>
#include <testing/catch.hh>
using namespace std;
TEST_CASE("Testing parentheses validity", "[parentheses]") {
string input = "{}[]]";
REQUIRE_FALSE(isValidParentheses(input));
}
| 23.4 | 60 | 0.739316 | paulpan05 |
e1410dac1ae4ebe9b007f4433f27dfab64cf3582 | 283 | hpp | C++ | MainGUI.hpp | erurami/connect4-game | e6e1a695e92acc1aa074573e302a1f4324882bfd | [
"MIT"
] | null | null | null | MainGUI.hpp | erurami/connect4-game | e6e1a695e92acc1aa074573e302a1f4324882bfd | [
"MIT"
] | null | null | null | MainGUI.hpp | erurami/connect4-game | e6e1a695e92acc1aa074573e302a1f4324882bfd | [
"MIT"
] | null | null | null |
#pragma once
// (C)onnect(4) (G)UI (W)indow (M)essage
#define _C4GWM_REDRAW (WM_APP + 1)
#define CONNECT4_CELL_GAP (cell_width / 15)
#define CONNECT4_CELL_ROUNDNESS (cell_width / 10)
int _Connect4GuiRegisterMainGuiWndClass(LPTSTR strWndClassName);
#include "MainGUI.ipp"
| 20.214286 | 64 | 0.749117 | erurami |
e141e6945513770a9978fc6411ff503e774761ee | 787 | cpp | C++ | Operators.Test/DomainBinaryOperatorTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Operators.Test/DomainBinaryOperatorTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Operators.Test/DomainBinaryOperatorTests.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 <gtest/gtest.h>
#include "Operators\BinaryOperators.h"
#include "TestDomain.h"
using namespace DNVS::MoFa::Operators;
T... | 37.47619 | 74 | 0.749682 | dnv-opensource |
e1439f9a06f47e3a8cc6c01075d92a708525107f | 9,705 | cpp | C++ | src/veil/proofofstake/stakeinput.cpp | jskitty-repos/veil | 075f51693a5ac39e4c8bf22a9f12cd851fb29a1c | [
"MIT"
] | 1 | 2020-07-08T18:01:12.000Z | 2020-07-08T18:01:12.000Z | src/veil/proofofstake/stakeinput.cpp | MatWaller/veil | 072cc3a63bda5f0c47c09cdc74635ee3bc68e160 | [
"MIT"
] | 1 | 2019-09-25T12:58:45.000Z | 2019-09-25T12:58:45.000Z | src/veil/proofofstake/stakeinput.cpp | MatWaller/veil | 072cc3a63bda5f0c47c09cdc74635ee3bc68e160 | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2019 The PIVX developers
// Copyright (c) 2019 The Veil developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <tinyformat.h>
#include "veil/zerocoin/accumulators.h"
#include "veil/zerocoin/min... | 33.350515 | 130 | 0.691705 | jskitty-repos |
e14d22ace951c3fdd281459a7eb1c8bf9af37ed7 | 4,719 | cpp | C++ | Source/Beezer/CommentWindow.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | 3 | 2020-08-20T18:57:52.000Z | 2021-12-13T03:11:19.000Z | Source/Beezer/CommentWindow.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | 22 | 2020-02-24T21:40:44.000Z | 2021-04-18T15:07:15.000Z | Source/Beezer/CommentWindow.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2002 Ramshankar (aka Teknomancer).
// Copyright (c) 2011 Chris Roberts.
// All rights reserved.
#include "CommentWindow.h"
#include "BitmapPool.h"
#include "CommonStrings.h"
#include "MsgConstants.h"
#include "Preferences.h"
#include "PrefsFields.h"
#include "S... | 31.671141 | 133 | 0.661369 | Teknomancer |
e14fd80d0b948e439e79726700ab30ccc69c46ba | 4,823 | cpp | C++ | datastore/common/objects/Interface.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 27 | 2017-11-04T23:58:54.000Z | 2022-03-28T14:21:50.000Z | datastore/common/objects/Interface.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 64 | 2020-03-16T19:59:43.000Z | 2022-03-18T14:49:18.000Z | datastore/common/objects/Interface.test.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... | 28.370588 | 80 | 0.676135 | cmwill |
e155b496354b2ac8bad5b7216ef85e6567991486 | 3,776 | cpp | C++ | src/WAM/choice.cpp | ThermalSpan/russWAM | c237bb782a83f7f6e2ccfa50800a55523ca22f67 | [
"MIT"
] | null | null | null | src/WAM/choice.cpp | ThermalSpan/russWAM | c237bb782a83f7f6e2ccfa50800a55523ca22f67 | [
"MIT"
] | null | null | null | src/WAM/choice.cpp | ThermalSpan/russWAM | c237bb782a83f7f6e2ccfa50800a55523ca22f67 | [
"MIT"
] | null | null | null | //
// choice.cpp
// russWAM
//
// Created by Russell Wilhelm Bentley on 12/3/15.
// Copyright (c) 2015 Russell Wilhelm Bentley.
// Distributed under the MIT License
//
#include "WAM.h"
void WAM::try_me_else (int labelId) {
// Allocate a new choice frame
m_B = new ChoiceFrame (m_arity, m_B);
// Save ... | 22.746988 | 61 | 0.583951 | ThermalSpan |
e155c88f619ea2ec117f7c08b25e42ba57240981 | 307 | cpp | C++ | Good Bye 2018/Codeforces 1091A.cpp | Jvillegasd/Codeforces | ffdd2d5db1dabc7ff76f8f92270c79233a77b933 | [
"MIT"
] | null | null | null | Good Bye 2018/Codeforces 1091A.cpp | Jvillegasd/Codeforces | ffdd2d5db1dabc7ff76f8f92270c79233a77b933 | [
"MIT"
] | null | null | null | Good Bye 2018/Codeforces 1091A.cpp | Jvillegasd/Codeforces | ffdd2d5db1dabc7ff76f8f92270c79233a77b933 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int y, b, r, mini;
scanf("%d %d %d", &y, &b, &r);
mini = min(y, min(b, r));
if(mini == r || (mini == y && r - y == 1)) printf("%d", 3*r - 3);
else if(mini == b) printf("%d", 3*b);
else printf("%d", 3*y + 3);
return 0;
} | 23.615385 | 69 | 0.456026 | Jvillegasd |
e1578efdc91db357ddbe4f27aec066d8ded4a18c | 3,330 | hpp | C++ | src/RealTimeClock.hpp | PhilPalmer/REAL | c56b9d96f6028295556a6e8bf73a56df8975f189 | [
"MIT"
] | 2 | 2017-02-18T18:54:28.000Z | 2017-06-30T11:17:28.000Z | src/RealTimeClock.hpp | PhilPalmer/REAL | c56b9d96f6028295556a6e8bf73a56df8975f189 | [
"MIT"
] | 1 | 2018-11-23T17:17:06.000Z | 2018-11-23T19:47:20.000Z | src/RealTimeClock.hpp | PhilPalmer/REAL | c56b9d96f6028295556a6e8bf73a56df8975f189 | [
"MIT"
] | 2 | 2015-11-26T08:40:09.000Z | 2016-04-01T07:01:54.000Z | /**
REAL: An efficient REad ALigner for next generation sequencing reads.
Copyright (C) 2010 German Tischler, Solon Pissis
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either v... | 26.015625 | 73 | 0.645045 | PhilPalmer |
e1594cd3ddb25606a9a6b52147463f6e2be92738 | 1,584 | hh | C++ | graphs/SubwordGraph.hh | aalto-speech/wdecoder | 096225714558d1f97a5d3f4814408ad4efaa3788 | [
"BSD-2-Clause"
] | null | null | null | graphs/SubwordGraph.hh | aalto-speech/wdecoder | 096225714558d1f97a5d3f4814408ad4efaa3788 | [
"BSD-2-Clause"
] | null | null | null | graphs/SubwordGraph.hh | aalto-speech/wdecoder | 096225714558d1f97a5d3f4814408ad4efaa3788 | [
"BSD-2-Clause"
] | null | null | null | #ifndef SUBWORD_GRAPH_HH
#define SUBWORD_GRAPH_HH
#include <map>
#include <fstream>
#include <vector>
#include <set>
#include "defs.hh"
#include "Hmm.hh"
#include "DecoderGraph.hh"
class SubwordGraph : public DecoderGraph {
public:
SubwordGraph();
SubwordGraph(const std::set<std::string> &subwords,
... | 35.2 | 92 | 0.535354 | aalto-speech |
e15df9eca5583c72174b0326a963b1fd05dd8f3c | 693 | cpp | C++ | src/ast/VariableExpression.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | 1 | 2019-06-17T07:16:01.000Z | 2019-06-17T07:16:01.000Z | src/ast/VariableExpression.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | src/ast/VariableExpression.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | /*
* soyac - Soya Programming Language compiler
* Copyright (c) 2009 Denis Washington <dwashington@gmx.net>
*
* This file is distributed under the terms of the MIT license.
* See LICENSE.txt for details.
*/
#include <cassert>
#include "VariableExpression.hpp"
#include "Visitor.hpp"
namespace soyac {
namespace a... | 14.744681 | 63 | 0.707071 | denisw |
ff16be60f949d4fe78eaa50dd87b4357a8d38a5f | 839 | cc | C++ | 15_ImportantLibs/CmdParser/main.cc | ultrazongo/UdemyCpp | 729d7f8a1b3fbd4fe16612ecd638340cfc3847a7 | [
"MIT"
] | null | null | null | 15_ImportantLibs/CmdParser/main.cc | ultrazongo/UdemyCpp | 729d7f8a1b3fbd4fe16612ecd638340cfc3847a7 | [
"MIT"
] | null | null | null | 15_ImportantLibs/CmdParser/main.cc | ultrazongo/UdemyCpp | 729d7f8a1b3fbd4fe16612ecd638340cfc3847a7 | [
"MIT"
] | null | null | null | #include <iostream>
#include "cxxopts.hpp"
constexpr int MAJOR_VERSION = 1;
constexpr int MINOR_VERSION = 0;
constexpr int PATCH_VERSION = 0;
int main(int argc, char **argv)
{
cxxopts::Options options("Name", "Description");
options.add_options()("v,version", "Print version");
options.add_options()("h,h... | 23.971429 | 102 | 0.61025 | ultrazongo |
ff19d6bbbe62b9934664a03a3ae937786930bb72 | 2,575 | cpp | C++ | RType.Common/Sources/Components/Drawable.cpp | Mikyan0207/RType | ae3d0e4b3192577eccfb3ba55ac86bd7238e9451 | [
"MIT",
"Unlicense"
] | null | null | null | RType.Common/Sources/Components/Drawable.cpp | Mikyan0207/RType | ae3d0e4b3192577eccfb3ba55ac86bd7238e9451 | [
"MIT",
"Unlicense"
] | null | null | null | RType.Common/Sources/Components/Drawable.cpp | Mikyan0207/RType | ae3d0e4b3192577eccfb3ba55ac86bd7238e9451 | [
"MIT",
"Unlicense"
] | null | null | null | #include <Components/Drawable.hpp>
#include "Logger.hpp"
Drawable::Drawable(const DrawableType& type, const std::string& file, const sf::IntRect& spriteRect, const sf::IntRect& textureRect)
{
// TODO: Check result.
m_Texture.loadFromFile(file, textureRect);
m_SpriteRect = spriteRect;
m_Type = type;
m_Sprite.se... | 20.766129 | 132 | 0.747961 | Mikyan0207 |
ff23ce8af8fb037f7dc8ba4f270f69f985612cb1 | 280 | cpp | C++ | CodeForces/835/B - The number on the board.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-02-24T06:45:56.000Z | 2018-05-29T04:47:39.000Z | CodeForces/835/B - The number on the board.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | null | null | null | CodeForces/835/B - The number on the board.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-06-28T09:53:27.000Z | 2022-03-23T13:29:57.000Z | #include <bits/stdc++.h>
using namespace std;
int sum,k,l,ans;
char s[1123456];
int main(){
cin>>k>>s;
l=strlen(s);
for(int i=0;i<l;i++)
sum+=(s[i]-'0');
if(sum<k){
sort(s,s+l);
int i=0;
while(sum<k&&i<l)
sum+=9-(s[i++]-'0'),ans++;
}
cout<<ans<<endl;
return 0;
} | 15.555556 | 29 | 0.535714 | QAQrz |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.