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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f03be3c7eaf9067e985527576118ff9679d8bc00 | 1,134 | cpp | C++ | Leetcode Daily Challenge/February-2021/16. Letter Case Permutation.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 5 | 2021-08-10T18:47:49.000Z | 2021-08-21T15:42:58.000Z | Leetcode Daily Challenge/February-2021/16. Letter Case Permutation.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 2 | 2022-02-25T13:36:46.000Z | 2022-02-25T14:06:44.000Z | Leetcode Daily Challenge/February-2021/16. Letter Case Permutation.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 1 | 2022-01-23T22:00:48.000Z | 2022-01-23T22:00:48.000Z | /*
Letter Case Permutation
=======================
Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string.
Return a list of all possible strings we could create. You can return the output in any order.
Example 1:
Input: S = "a1b2"
Output: ["a1b2","a1B2","A1... | 18.290323 | 115 | 0.59612 | Akshad7829 |
f0444a3db1939bff1aea6b5127f4a76c4b1f3da3 | 5,669 | cpp | C++ | vs/pe_hedera/monitor_handlers.cpp | mauronz/pe_hedera | eab3131a38a06481d54ad6844cf9fd7a3651b1bb | [
"BSD-2-Clause"
] | 1 | 2021-04-03T22:35:24.000Z | 2021-04-03T22:35:24.000Z | vs/pe_hedera/monitor_handlers.cpp | mauronz/pe_hedera | eab3131a38a06481d54ad6844cf9fd7a3651b1bb | [
"BSD-2-Clause"
] | null | null | null | vs/pe_hedera/monitor_handlers.cpp | mauronz/pe_hedera | eab3131a38a06481d54ad6844cf9fd7a3651b1bb | [
"BSD-2-Clause"
] | null | null | null | #include "global.h"
#include "monitor_handlers.h"
#include "communication.h"
#include "monitor.h"
#include <stdio.h>
typedef struct _MESSAGE_LIST_ENTRY {
LIST_ENTRY List;
HEDERA_MESSAGE* Message;
} MESSAGE_LIST_ENTRY;
HEDERA_MESSAGE* HandleMessage(HEDERA_MESSAGE* pMsg);
extern HANDLE hCmdPipe;
extern... | 28.064356 | 122 | 0.716176 | mauronz |
f0479a4661fd9f68fa76f16a80cd47b85a1104a1 | 5,354 | cpp | C++ | src/osx/slot.cpp | PeculiarVentures/pvpkcs11 | 474cf3b2a958c83ccfebf3165e45e7f46d649c81 | [
"MIT"
] | 30 | 2017-05-25T08:54:25.000Z | 2021-12-21T13:42:35.000Z | src/osx/slot.cpp | PeculiarVentures/pvpkcs11 | 474cf3b2a958c83ccfebf3165e45e7f46d649c81 | [
"MIT"
] | 37 | 2017-05-24T21:47:36.000Z | 2021-06-02T09:23:54.000Z | src/osx/slot.cpp | PeculiarVentures/pvpkcs11 | 474cf3b2a958c83ccfebf3165e45e7f46d649c81 | [
"MIT"
] | 7 | 2017-07-22T09:50:13.000Z | 2019-08-18T23:42:52.000Z | #include "slot.h"
#include "session.h"
using namespace osx;
#define OSX_SLOT_NAME "MacOS Crypto"
#define MANUFACTURER_ID "Peculiar Ventures"
osx::Slot::Slot() :
core::Slot()
{
LOGGER_FUNCTION_BEGIN;
try {
SET_STRING(this->manufacturerID, MANUFACTURER_ID, 32);
SET_STRING(this->descrip... | 53.009901 | 135 | 0.677811 | PeculiarVentures |
f04b21725d0f6f3a34e94e266dc152483aa87a5b | 1,303 | cpp | C++ | Raytracer/src/Shape/sphere.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | Raytracer/src/Shape/sphere.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | Raytracer/src/Shape/sphere.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | #include <algorithm>
#include "../../header/Shape/sphere.h"
Sphere::Sphere(IlluminationModel* illumination, const glm::vec3& position, const double radius) : Shape(illumination) {
this->center = position;
this->radius = radius;
}
void Sphere::transformToCameraSpace(const glm::mat4& cameraMatrix) {
center = camera... | 25.54902 | 119 | 0.672295 | rickyguerin |
f053ea487d8df5292b5e7b7c17674ae368ba8fd4 | 856 | cpp | C++ | src/backend/interpreter/executor.cpp | realjf/compilers-and-interpreters | 3c63fb863d6893a1797a846d8776339a12eb220a | [
"Apache-2.0"
] | null | null | null | src/backend/interpreter/executor.cpp | realjf/compilers-and-interpreters | 3c63fb863d6893a1797a846d8776339a12eb220a | [
"Apache-2.0"
] | null | null | null | src/backend/interpreter/executor.cpp | realjf/compilers-and-interpreters | 3c63fb863d6893a1797a846d8776339a12eb220a | [
"Apache-2.0"
] | null | null | null | #include "executor.hpp"
namespace ci
{
namespace backend
{
namespace interpreter
{
void Executor::process(ci::intermediate::ICode *iCode, ci::intermediate::SymTab *symTab) throw()
{
auto startTime = chrono::steady_clock::now();
auto elapse... | 35.666667 | 145 | 0.584112 | realjf |
f055c6fcf2d473bd7f11ec03b813888a4110a860 | 2,439 | cpp | C++ | modules/task_3/kutuev_r_moore_algorithm/main.cpp | NickitaKraev/pp_2021_autumn | dac9c0aa556ef15823af16bfae0044e282c5f7cb | [
"BSD-3-Clause"
] | 1 | 2021-12-09T17:20:25.000Z | 2021-12-09T17:20:25.000Z | modules/task_3/kutuev_r_moore_algorithm/main.cpp | NickitaKraev/pp_2021_autumn | dac9c0aa556ef15823af16bfae0044e282c5f7cb | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/kutuev_r_moore_algorithm/main.cpp | NickitaKraev/pp_2021_autumn | dac9c0aa556ef15823af16bfae0044e282c5f7cb | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 Kutuev Roman
#include <gtest/gtest.h>
#include <gtest-mpi-listener.hpp>
#include "../../../modules/task_3/kutuev_r_moore_algorithm/moore.h"
TEST(Moore_algorithm, Create_random) { ASSERT_NO_THROW(random(100)); }
TEST(Moore_algorithm, Moore_algorithm_ok) {
int ProcRank;
int vertex = 5;
MPI_Com... | 28.360465 | 76 | 0.687167 | NickitaKraev |
f056a50b5a50c5f4f3e82d2c0a522357800b7c76 | 6,096 | cpp | C++ | b+tree-dpct-h/kernel/kernel_wrapper.cpp | jchlanda/oneAPI-DirectProgramming | 82a1be635f89b4b2a83e36965a60b19fd71e46b2 | [
"BSD-3-Clause"
] | null | null | null | b+tree-dpct-h/kernel/kernel_wrapper.cpp | jchlanda/oneAPI-DirectProgramming | 82a1be635f89b4b2a83e36965a60b19fd71e46b2 | [
"BSD-3-Clause"
] | null | null | null | b+tree-dpct-h/kernel/kernel_wrapper.cpp | jchlanda/oneAPI-DirectProgramming | 82a1be635f89b4b2a83e36965a60b19fd71e46b2 | [
"BSD-3-Clause"
] | null | null | null | #define DPCT_USM_LEVEL_NONE
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include "../common.h"
#include "../util/timer/timer.h"
#include "./kernel.cpp"
#include "./kernel_wrapper.h" // (in current directory)
void
kernel_wrapper(record *records,
long records_mem,
knode *knodes,
long knodes_elem,... | 33.679558 | 157 | 0.448327 | jchlanda |
f057df20549d1eba5324b8186ea5b0b8717d87c6 | 1,361 | cpp | C++ | game/scripts/SceneInfoQuerier.cpp | Khuongnb1997/game-aladdin | 74b13ffcd623de0d6f799b0669c7e8917eef3b14 | [
"MIT"
] | 2 | 2017-11-08T16:27:25.000Z | 2018-08-10T09:08:35.000Z | game/scripts/SceneInfoQuerier.cpp | Khuongnb1997/game-aladdin | 74b13ffcd623de0d6f799b0669c7e8917eef3b14 | [
"MIT"
] | null | null | null | game/scripts/SceneInfoQuerier.cpp | Khuongnb1997/game-aladdin | 74b13ffcd623de0d6f799b0669c7e8917eef3b14 | [
"MIT"
] | 4 | 2017-11-08T16:25:30.000Z | 2021-05-23T06:14:59.000Z | #include "SceneInfoQuerier.h"
#include "../Define.h"
USING_NAMESPACE_ALA;
ALA_CLASS_SOURCE_1(SceneInfoQuerier, ala::GameObjectComponent)
SceneInfoQuerier::SceneInfoQuerier( ala::GameObject* gameObject, const std::string& name )
: GameObjectComponent( gameObject, name ), _cameraTransform( NULL ) {}
std::vector<ala... | 34.897436 | 94 | 0.742836 | Khuongnb1997 |
f058ae03b5a00e0547a7abe99902166a6c8d79cf | 1,808 | inl | C++ | WildMagic4/LibFoundation/Meshes/Wm4BasicMesh.inl | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 23 | 2015-08-13T07:36:00.000Z | 2022-01-24T19:00:04.000Z | WildMagic4/LibFoundation/Meshes/Wm4BasicMesh.inl | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | null | null | null | WildMagic4/LibFoundation/Meshes/Wm4BasicMesh.inl | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 6 | 2015-07-06T21:37:31.000Z | 2020-07-01T04:07:50.000Z | // Geometric Tools, LLC
// Copyright (c) 1998-2010
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 4.10.0 (2009/11/18)
//-----------------------------------------------------... | 32.872727 | 79 | 0.384956 | rms80 |
f05adbf8da146b13ec16bc7423807c922a08f6ce | 2,743 | cc | C++ | KalmanTrack/KalPairSite.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | KalmanTrack/KalPairSite.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | KalmanTrack/KalPairSite.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | // ------------------------------------------------------------------------------
// File and Version Information:
// $Id: KalPairSite.cc,v 1.19 2004/08/06 06:12:48 bartoldu Exp $
//
// class KalPairSite.
//
// Copyright Information:
// Copyright (C) 1998 Lawrence Berkeley Laboratory
//
// Authors: Dave Brow... | 29.180851 | 81 | 0.664601 | brownd1978 |
f0697d8823679f7ef75756024b7bdc31c5204e31 | 2,704 | cpp | C++ | test/crasher.cpp | AndyBrown91/ooopsi | 0dcbfa4f65302402f1e0b87c5da15cf9b54437db | [
"MIT"
] | 9 | 2018-11-12T10:14:05.000Z | 2021-08-05T04:01:29.000Z | test/crasher.cpp | AndyBrown91/ooopsi | 0dcbfa4f65302402f1e0b87c5da15cf9b54437db | [
"MIT"
] | 12 | 2018-11-13T20:39:16.000Z | 2020-05-24T15:34:12.000Z | test/crasher.cpp | AndyBrown91/ooopsi | 0dcbfa4f65302402f1e0b87c5da15cf9b54437db | [
"MIT"
] | 2 | 2018-11-11T14:07:02.000Z | 2021-03-08T15:23:04.000Z | /**
* @file crasher.cpp
* @brief Crashes in various ways...
*/
#ifdef USE_OOOPSI
#include "ooopsi.hpp"
#endif // USE_OOOPSI
#include "test_helper.hpp"
#include <functional>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
class Action
{
public:
std::string name;
std::string ... | 31.811765 | 99 | 0.534393 | AndyBrown91 |
f06cc8980a768569a37fe3f1f7174fbbcf5883d3 | 629 | cpp | C++ | src/0557.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | src/0557.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | src/0557.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <hash_map>
#include <map>
#include <sstream>
using namespace std;
class Solution {
public:
string reverseWords(string s) {
int i = 0, j = 0;
while (j < s.size()) {
while (i < s.size() && s[i] == ' ') j = ++i;
if (i... | 19.65625 | 80 | 0.508744 | killf |
f06eb9e220e6e874614319d77d5e8203fcc71990 | 1,521 | hpp | C++ | Jackal/Source/RenderDevice/Public/RenderDevice/Shader.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | Jackal/Source/RenderDevice/Public/RenderDevice/Shader.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | Jackal/Source/RenderDevice/Public/RenderDevice/Shader.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 Jackal Engine, MIT License.
#pragma once
#include "Core/Platform/JTypes.hpp"
#include "Core/Platform/Platform.hpp"
#include "Core/Structure/JString.hpp"
#include <vector>
namespace jackal {
// Shader configuration. Abstract Shader. Used overall throughout the
// implmentation of the Rendering... | 23.765625 | 103 | 0.708744 | CheezBoiger |
7eb6c7fea6a73af8671bc57c81e68d6c78514ad2 | 91 | cpp | C++ | src/navi.cpp | llthelinkll/navi_vision | e3963da6c122e16632985d75f2364e625c913c3d | [
"MIT"
] | 1 | 2017-07-13T17:14:37.000Z | 2017-07-13T17:14:37.000Z | src/navi.cpp | llthelinkll/navi_vision | e3963da6c122e16632985d75f2364e625c913c3d | [
"MIT"
] | 2 | 2017-07-13T17:01:40.000Z | 2017-07-13T17:01:45.000Z | src/navi.cpp | llthelinkll/navi_vision | e3963da6c122e16632985d75f2364e625c913c3d | [
"MIT"
] | null | null | null | #include "navi.hpp"
void
navi::testFunction()
{
std::cout << "/* message */" << '\n';
}
| 11.375 | 39 | 0.538462 | llthelinkll |
7ebd159da7718de59d0b784c6457da74deefb4c7 | 106 | cpp | C++ | Engine/Modules/Core/Private/Colors.cpp | zerotri/WynterStorm | ff9b5b06a71141259840c600d2010e4b42ba3a16 | [
"MIT"
] | 1 | 2021-04-07T08:09:05.000Z | 2021-04-07T08:09:05.000Z | Engine/Modules/Core/Private/Colors.cpp | zerotri/WynterStorm | ff9b5b06a71141259840c600d2010e4b42ba3a16 | [
"MIT"
] | null | null | null | Engine/Modules/Core/Private/Colors.cpp | zerotri/WynterStorm | ff9b5b06a71141259840c600d2010e4b42ba3a16 | [
"MIT"
] | null | null | null | #include <WynterStorm.h>
ws_color_t ws_color_pink = { 231.0f/255.0f, 98.0f/255.0f, 120.0f/255.0f, 1.0f }; | 35.333333 | 80 | 0.698113 | zerotri |
7ebe0c1e12e2e4364950efbc02ada7fb8166ed47 | 1,119 | cpp | C++ | SimpleRoguelike/Game/Entities/Creature.cpp | DmitryFrolov/roguelikeKD | e55944039415e557a804c11093bf9f7de9775b16 | [
"MIT"
] | 1 | 2017-09-05T11:07:03.000Z | 2017-09-05T11:07:03.000Z | SimpleRoguelike/Game/Entities/Creature.cpp | DmitryFrolov/roguelikeKD | e55944039415e557a804c11093bf9f7de9775b16 | [
"MIT"
] | null | null | null | SimpleRoguelike/Game/Entities/Creature.cpp | DmitryFrolov/roguelikeKD | e55944039415e557a804c11093bf9f7de9775b16 | [
"MIT"
] | 1 | 2019-04-14T18:44:32.000Z | 2019-04-14T18:44:32.000Z | #include <Core/GlobalDefines.h>
#include "Creature.h"
Creature::Creature(
const Vec2Tile & _position,
const std::string & _name,
int _sightRadius,
int _experience,
int _defense,
int _attack,
int _hits)
: positionTile(_position)
, name(_name)
, sightRadius(_sightRadius)
, experience(_experience)
, defense(... | 15.541667 | 51 | 0.69437 | DmitryFrolov |
7ec37330a05ed57bbb2b7159f1782abd4296055a | 9,316 | cpp | C++ | ProjectX/getdxver.cpp | ForsakenW/forsaken | f06e2b9031e96a9fd219ab1326ad4eacbab37d44 | [
"MIT"
] | 7 | 2015-06-21T13:01:03.000Z | 2020-08-09T19:53:26.000Z | ProjectX/getdxver.cpp | ForsakenW/forsaken | f06e2b9031e96a9fd219ab1326ad4eacbab37d44 | [
"MIT"
] | 3 | 2015-06-26T01:35:18.000Z | 2016-05-11T22:50:48.000Z | ProjectX/getdxver.cpp | ForsakenW/forsaken | f06e2b9031e96a9fd219ab1326ad4eacbab37d44 | [
"MIT"
] | null | null | null | /**************************************************************************
GetDXVer.cpp
Demonstrates how applications can detect what version of DirectX
is installed.
**************************************************************************/
/***********************************************************... | 27.4 | 93 | 0.53392 | ForsakenW |
7ec54f84cacda0379af49d7392cf198762313373 | 945 | hpp | C++ | include/CASM/utility/windows_utilities.hpp | Liastre/CASM | 4f978664ac4812e8cfcd76025ac2429a46543582 | [
"MIT"
] | 1 | 2021-08-06T07:55:21.000Z | 2021-08-06T07:55:21.000Z | include/CASM/utility/windows_utilities.hpp | Liastre/CASM | 4f978664ac4812e8cfcd76025ac2429a46543582 | [
"MIT"
] | 1 | 2021-08-05T09:33:13.000Z | 2021-08-05T09:33:13.000Z | include/CASM/utility/windows_utilities.hpp | Liastre/CASM | 4f978664ac4812e8cfcd76025ac2429a46543582 | [
"MIT"
] | null | null | null | /// @file windows_utilities.hpp
/// @brief class for basic Windows methods
#pragma once
#include <string>
namespace CASM {
namespace Util {
namespace String {
std::string wideToUtf8(wchar_t* lpwstr);
std::wstring utf8ToWide(char const* narrowString);
std::wstring utf8ToWide(char const* narrowString... | 23.625 | 70 | 0.726984 | Liastre |
7ec5f182470c79bb1bbf06928c28c27b3a48b3a3 | 592 | cpp | C++ | test/test1.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | test/test1.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | 3 | 2020-05-08T18:02:51.000Z | 2020-05-09T08:37:35.000Z | test/test1.cpp | UltraProton/PlacementPrep | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
struct p{
int data;
int *ptr;
//constructor special function
p(int val):data(val),ptr(NULL){}
};
void fun(struct p *var);
int bar(struct p *m, int y);
int main(){
struct p *var = new struct p(3);
cout<<var->data<<endl;
fun(var);
bar(... | 16 | 38 | 0.513514 | UltraProton |
7ec74497ac2c0498a58d7fbc497d65e4c57d2d3e | 21,934 | cc | C++ | paxos_instance.cc | dengoswei/cpaxos | bccad547e7ea80d953fa495199f15680b1c555a6 | [
"Apache-2.0"
] | 6 | 2015-09-09T15:30:17.000Z | 2021-03-29T20:11:54.000Z | paxos_instance.cc | dengoswei/cpaxos | bccad547e7ea80d953fa495199f15680b1c555a6 | [
"Apache-2.0"
] | null | null | null | paxos_instance.cc | dengoswei/cpaxos | bccad547e7ea80d953fa495199f15680b1c555a6 | [
"Apache-2.0"
] | null | null | null | #include "paxos_instance.h"
#include "mem_utils.h"
#include "log_utils.h"
#include "hassert.h"
using namespace std;
#define PROP_TIMEOUT_TICK 100 // 100ms ?
namespace {
std::chrono::milliseconds ACTIVE_TIME_OUT = std::chrono::milliseconds{100};
void set_accepted_value(
const paxos::Entry& value, paxos::Mes... | 30.253793 | 97 | 0.590544 | dengoswei |
7ec76dd9b97aaf3d044e028875f43141fd0ccff6 | 2,452 | cpp | C++ | official sample codes/GenIRanger/private/ConfigReader.cpp | novitec/ranger3 | 5ba831c2ddd500685f5e3940ab725c005c975c1c | [
"MIT"
] | null | null | null | official sample codes/GenIRanger/private/ConfigReader.cpp | novitec/ranger3 | 5ba831c2ddd500685f5e3940ab725c005c975c1c | [
"MIT"
] | null | null | null | official sample codes/GenIRanger/private/ConfigReader.cpp | novitec/ranger3 | 5ba831c2ddd500685f5e3940ab725c005c975c1c | [
"MIT"
] | 1 | 2020-03-25T04:49:40.000Z | 2020-03-25T04:49:40.000Z | // Copyright 2016-2018 SICK AG. All rights reserved.
#include "ConfigReader.h"
#include "Exceptions.h"
#include "GenIUtil.h"
#include <algorithm>
#include <iostream>
#include <sstream>
namespace GenIRanger
{
const int VERSION = 1;
void GetKeyValue(std::string line, std::string& key, std::string& value)
{
std::st... | 20.779661 | 84 | 0.627651 | novitec |
7ec9ac7a45f3bf89c1a227c47c2a641d958f729f | 3,716 | cpp | C++ | src/procgen/interpret/typeregister.cpp | Romop5/procgen | 35d6e8e81b6fa0597b8a79863c1552edaa0219a0 | [
"MIT"
] | 5 | 2018-02-19T21:25:15.000Z | 2018-05-11T19:06:51.000Z | src/procgen/interpret/typeregister.cpp | Romop5/procgen | 35d6e8e81b6fa0597b8a79863c1552edaa0219a0 | [
"MIT"
] | null | null | null | src/procgen/interpret/typeregister.cpp | Romop5/procgen | 35d6e8e81b6fa0597b8a79863c1552edaa0219a0 | [
"MIT"
] | null | null | null | /**
* @file 'interpret/typeregister.cpp'
* @brief Class definition
* @copyright The MIT license
*/
#include "typeregister.h"
namespace ProcGen {
bool TypeRegister::addAlias(const std::string& alias, const std::string& aliased)
{
// if aliased type exists and alias doesn't
if (names.find(aliased) != names.... | 34.728972 | 108 | 0.600377 | Romop5 |
7eca37f6f3b381840ae2b9eabfa206ced16d9760 | 823,854 | cpp | C++ | APP/Il2CppOutputProject/Source/il2cppOutput/Il2CppGenericMethodPointerTable.cpp | GONBEEEproject/NicoTou_Navigation | e606728210e51e71198e96ab6699960ef7380a42 | [
"MIT"
] | null | null | null | APP/Il2CppOutputProject/Source/il2cppOutput/Il2CppGenericMethodPointerTable.cpp | GONBEEEproject/NicoTou_Navigation | e606728210e51e71198e96ab6699960ef7380a42 | [
"MIT"
] | null | null | null | APP/Il2CppOutputProject/Source/il2cppOutput/Il2CppGenericMethodPointerTable.cpp | GONBEEEproject/NicoTou_Navigation | e606728210e51e71198e96ab6699960ef7380a42 | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
extern "C" void Enume... | 121.49447 | 287 | 0.913859 | GONBEEEproject |
7ece00fe2c790edcf8ca9063a7865f2502ef7d36 | 233 | cpp | C++ | contest/AtCoder/abc140/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AtCoder/abc140/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AtCoder/abc140/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "vector.hpp"
int main() {
int n(in);
Vector<int64_t> a(n), b(n - 1, in);
a[0] = b[0];
a[n - 1] = b[n - 2];
for (int i = 1; i < n - 1; ++i) {
a[i] = min(b[i - 1], b[i]);
}
cout << a.accumulate() << endl;
}
| 17.923077 | 37 | 0.429185 | not522 |
7ed6158853643a4dbcdac35566abe70a7cace8e9 | 610 | cpp | C++ | code/engine/xrGame/script_object_action.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 58 | 2016-11-20T19:14:35.000Z | 2021-12-27T21:03:35.000Z | code/engine/xrGame/script_object_action.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 59 | 2016-09-10T10:44:20.000Z | 2018-09-03T19:07:30.000Z | code/engine/xrGame/script_object_action.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 39 | 2017-02-05T13:35:37.000Z | 2022-03-14T11:00:12.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : script_object_action.h
// Created : 30.09.2003
// Modified : 29.06.2004
// Author : Dmitriy Iassenev
// Description : Script object action class
////////////////////////////////////////////////////////////////////////////
#i... | 32.105263 | 76 | 0.557377 | InNoHurryToCode |
7ed6b2b374d591ef34b4bb58bb8a9732d8ebe491 | 2,319 | cpp | C++ | SDK/ARKSurvivalEvolved_C4Charge_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_C4Charge_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_C4Charge_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_C4Charge_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-------------------------------------------------------------------------... | 27.607143 | 134 | 0.66796 | 2bite |
7ee348e13d043ab82ce502f8216e3af7eaa05472 | 3,458 | cpp | C++ | src/samples/Cubo/Cubo.cpp | GustavoMarks/cg-study | 19da1516024218753f6c8f03195804ab94628063 | [
"MIT"
] | 1 | 2022-02-17T14:38:47.000Z | 2022-02-17T14:38:47.000Z | src/samples/Cubo/Cubo.cpp | GustavoMarks/cg-study | 19da1516024218753f6c8f03195804ab94628063 | [
"MIT"
] | null | null | null | src/samples/Cubo/Cubo.cpp | GustavoMarks/cg-study | 19da1516024218753f6c8f03195804ab94628063 | [
"MIT"
] | null | null | null | #include "../samples.hpp"
using namespace std;
Cubo::Cubo(int id, float width, float height, float depth)
: Objeto(id)
{
// Montando um cubo na origem do sistema
Ponto p1{{0, 0, 0}};
Ponto p2{{width, 0, 0}};
Ponto p3{{width, 0, depth}};
Ponto p4{{0, 0, depth}};
Ponto p5{{0, height, 0}};
... | 23.208054 | 98 | 0.567669 | GustavoMarks |
7ee51af122e5c00e016e79562c3aa4d22e2bcd40 | 5,673 | hpp | C++ | inc/lak/opengl/mesh.hpp | LAK132/lak | cb7fbc8925d526bbd4f9318ccf572b395cdd01e3 | [
"MIT",
"Unlicense"
] | 3 | 2021-07-12T02:32:50.000Z | 2022-01-30T03:39:53.000Z | inc/lak/opengl/mesh.hpp | LAK132/lak | cb7fbc8925d526bbd4f9318ccf572b395cdd01e3 | [
"MIT",
"Unlicense"
] | 1 | 2020-11-03T08:57:04.000Z | 2020-11-03T09:04:41.000Z | inc/lak/opengl/mesh.hpp | LAK132/lak | cb7fbc8925d526bbd4f9318ccf572b395cdd01e3 | [
"MIT",
"Unlicense"
] | null | null | null | #ifndef LAK_MESH_HPP
#define LAK_MESH_HPP
#include "lak/opengl/shader.hpp"
#include "lak/opengl/texture.hpp"
#include "lak/span.hpp"
#include "lak/string.hpp"
#include <memory>
#include <tuple>
#include <unordered_map>
#include <vector>
namespace lak
{
namespace opengl
{
// Buffers are effectively blocks of dat... | 29.393782 | 77 | 0.70721 | LAK132 |
7ee7c7ee68a6f0fa0b477752f839dc611980d13e | 311 | cpp | C++ | Questions Level-Wise/Easy/mean-of-array-after-removing-some-elements.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | 2 | 2021-03-05T22:32:23.000Z | 2021-03-05T22:32:29.000Z | Questions Level-Wise/Easy/mean-of-array-after-removing-some-elements.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | Questions Level-Wise/Easy/mean-of-array-after-removing-some-elements.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | class Solution {
public:
double trimMean(vector<int>& arr)
{
double x;
int sum=0,size=(arr.size()*5)/100;
sort(arr.begin(),arr.end());
for(int i=size;i<arr.size()-size;i++)
sum+=arr[i];
x=sum/(((arr.size()-(2*size)))*1.0);
return x;
}
};
| 22.214286 | 45 | 0.475884 | PrakharPipersania |
7ef6e5001b976b849fb158d63790ae61d72d90b0 | 4,394 | cpp | C++ | gtsam/geometry/tests/testCal3DS2.cpp | coestreich/gtsam | fc171877f03b70236c5cc59537d5f34f1eb88c86 | [
"BSD-3-Clause"
] | 1,402 | 2017-03-28T00:18:11.000Z | 2022-03-30T10:28:32.000Z | gtsam/geometry/tests/testCal3DS2.cpp | coestreich/gtsam | fc171877f03b70236c5cc59537d5f34f1eb88c86 | [
"BSD-3-Clause"
] | 851 | 2017-11-27T15:09:56.000Z | 2022-03-31T22:26:38.000Z | gtsam/geometry/tests/testCal3DS2.cpp | coestreich/gtsam | fc171877f03b70236c5cc59537d5f34f1eb88c86 | [
"BSD-3-Clause"
] | 565 | 2017-11-30T16:15:59.000Z | 2022-03-31T02:53:04.000Z | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... | 34.328125 | 80 | 0.499545 | coestreich |
7ef82378a665b8ec8f69047b09ec633a72d42d4b | 10,390 | cc | C++ | exerciceP10/Qt_GL/glwidget.cc | Nebulean/projet-BA2 | df86436539b19becf1c806e9f3ce2c7cbb3e4161 | [
"MIT"
] | null | null | null | exerciceP10/Qt_GL/glwidget.cc | Nebulean/projet-BA2 | df86436539b19becf1c806e9f3ce2c7cbb3e4161 | [
"MIT"
] | null | null | null | exerciceP10/Qt_GL/glwidget.cc | Nebulean/projet-BA2 | df86436539b19becf1c806e9f3ce2c7cbb3e4161 | [
"MIT"
] | null | null | null | #include <QKeyEvent>
#include <QTimerEvent>
#include <QMatrix4x4>
#include <cmath>
#include "glwidget.h"
#include "integrateur.h"
#include "eulercromer.h"
#include "rungekutta.h"
#include "newmark.h"
using namespace std;
/*!
* Cette méthode initialise le système, et tous les éléments qui le compose.
*
* C'est ici q... | 27.780749 | 142 | 0.631954 | Nebulean |
7ef8f9c0791d718b8c341d8a99c8f0692adecbf7 | 1,290 | cc | C++ | arrays1.cc | kristenmasada/cs2400 | b4f24bbc717705a609ede34a9a4534c15a36931a | [
"MIT"
] | null | null | null | arrays1.cc | kristenmasada/cs2400 | b4f24bbc717705a609ede34a9a4534c15a36931a | [
"MIT"
] | null | null | null | arrays1.cc | kristenmasada/cs2400 | b4f24bbc717705a609ede34a9a4534c15a36931a | [
"MIT"
] | null | null | null | /**
* @file: arrays.cc
* @author: Nasseef Abukamail
* @date: October 18, 2019
* @brief: Add Description
*/
#include <cstdlib>
#include <iomanip>
#include <iostream>
using namespace std;
/// function prototypes
void add2(int &n);
void printArray(const int numbers[], int count);
void loadArray(int numbers[], ... | 21.5 | 68 | 0.531783 | kristenmasada |
7efa9bdedef893851abc4c3b359d194b7aa25a61 | 1,042 | cpp | C++ | nd-coursework/books/cpp/C++20Recipes/Chapter12/Recipe12_04/Listing12_04.cpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/C++20Recipes/Chapter12/Recipe12_04/Listing12_04.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/C++20Recipes/Chapter12/Recipe12_04/Listing12_04.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2020 J. Burton Browning and Bruce Sutherland. Some rights reserved.
// Licensed under the Freeware License. See the LICENSE file in the project root for more information.
//
// Name: Listing12_04.cpp
// Author: crdrisko
// Date: 10/12/2020-10:25:23
// Description: Wrapping Winsock
#include <iostream>
... | 18.280702 | 102 | 0.637236 | crdrisko |
7efd1901e6c385f38abfbce4b26a132ca00101f7 | 1,573 | cpp | C++ | CodeJam/2014/Repeater/main.cpp | chaking/study | a394f100155fa4eb1032c09cdc85816b7104804b | [
"MIT"
] | null | null | null | CodeJam/2014/Repeater/main.cpp | chaking/study | a394f100155fa4eb1032c09cdc85816b7104804b | [
"MIT"
] | null | null | null | CodeJam/2014/Repeater/main.cpp | chaking/study | a394f100155fa4eb1032c09cdc85816b7104804b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int input();
int process();
int printResult();
int result;
int resultCase;
enum ResultCase{
FEGLA_WIN,
OMAR_WIN
};
char array[100][101];
int position[100];
int N;
int main ( void ){
int i;
int count;
cin >> count;
for( i = 0; i < count; i++ ){
... | 16.734043 | 72 | 0.412587 | chaking |
7d0301199a7a42416b547d4ba36b483993c0b014 | 6,546 | hpp | C++ | cpp-projects/base/camera/frame_uncompressor.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | null | null | null | cpp-projects/base/camera/frame_uncompressor.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | null | null | null | cpp-projects/base/camera/frame_uncompressor.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | 1 | 2021-07-06T14:47:41.000Z | 2021-07-06T14:47:41.000Z |
/*******************************************************************************
** Toolbox-base **
** MIT License **
** Copyright (c) [2018] [Florian Lance] ... | 40.658385 | 109 | 0.628475 | FlorianLance |
7d14a95df988f50e48b35b0bb288136f080c15bc | 220 | cpp | C++ | Timus/1219.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | Timus/1219.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | Timus/1219.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | # include <iostream>
# include <cstdlib>
# include <ctime>
using namespace std;
int main()
{
int k;
srand((unsigned)time(NULL));
for (int i=0 ; i<1000000 ; i++)
{
k=rand()%26+97;
cout<<char(k);
}
return 0;
}
| 12.222222 | 32 | 0.6 | s9v |
7d18039ff2d52e6895b3dd126973b01f61a54521 | 85 | cpp | C++ | source/dummy-header-includes/io/monospaced_bullet_block.include.cpp | alf-p-steinbach/cppx-core | 114838a02b092c16825748bfe255ef854f45ac32 | [
"MIT"
] | 5 | 2019-02-19T07:06:38.000Z | 2021-11-21T18:54:41.000Z | source/dummy-header-includes/io/monospaced_bullet_block.include.cpp | alf-p-steinbach/cppx-core | 114838a02b092c16825748bfe255ef854f45ac32 | [
"MIT"
] | null | null | null | source/dummy-header-includes/io/monospaced_bullet_block.include.cpp | alf-p-steinbach/cppx-core | 114838a02b092c16825748bfe255ef854f45ac32 | [
"MIT"
] | null | null | null | #include <cppx-core/io/monospaced_bullet_block.hpp>
namespace{ int satisfy_linker; }
| 28.333333 | 51 | 0.811765 | alf-p-steinbach |
7d189ea29e1c62097692d7817c451d721e95f21e | 7,055 | cpp | C++ | include/ibeosdk/devices/sutp/IbeoSutpSendInterface.cpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | 1 | 2020-07-04T15:23:05.000Z | 2020-07-04T15:23:05.000Z | include/ibeosdk/devices/sutp/IbeoSutpSendInterface.cpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | include/ibeosdk/devices/sutp/IbeoSutpSendInterface.cpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | //======================================================================
/*! \file IbeoSutpSendInterface.cpp
*
* \copydoc Copyright
* \author Jan Christian Dittmer (jcd)
* \date May 3, 2017
*///-------------------------------------------------------------------
//==================================================... | 38.551913 | 131 | 0.629624 | chouer19 |
7d19ff7be0342c41346ef92243075bf0ba708e10 | 296 | cpp | C++ | src/MemoryUsage.cpp | psakievich/exawind-driver | 9bc1c8c9e96c9cc319ee6fd78f5c8576159a0a42 | [
"Apache-2.0"
] | null | null | null | src/MemoryUsage.cpp | psakievich/exawind-driver | 9bc1c8c9e96c9cc319ee6fd78f5c8576159a0a42 | [
"Apache-2.0"
] | 7 | 2021-07-07T19:51:46.000Z | 2022-03-30T16:18:13.000Z | src/MemoryUsage.cpp | psakievich/exawind-driver | 9bc1c8c9e96c9cc319ee6fd78f5c8576159a0a42 | [
"Apache-2.0"
] | 4 | 2021-07-02T17:28:18.000Z | 2022-02-09T18:42:36.000Z | #include "MemoryUsage.h"
namespace exawind {
#ifdef __linux__
long memory_usage()
{
struct rusage usage;
getrusage(RUSAGE_SELF, &usage);
// convert to MB
return (long)((double)usage.ru_maxrss) / 1024.0;
}
#else
long memory_usage() { return -1; }
#endif
} // namespace exawind
| 15.578947 | 52 | 0.679054 | psakievich |
7d21b0e610ad348d9cc7633262f549cea936645f | 4,990 | cpp | C++ | source/results/impl/result_state.cpp | Ladence/concurrencpp | c9ae7d09acd6d046b8025d3ea035898acc3f7f87 | [
"MIT"
] | 1 | 2021-08-11T00:41:56.000Z | 2021-08-11T00:41:56.000Z | source/results/impl/result_state.cpp | linjinzhu/concurrencpp | c9ae7d09acd6d046b8025d3ea035898acc3f7f87 | [
"MIT"
] | null | null | null | source/results/impl/result_state.cpp | linjinzhu/concurrencpp | c9ae7d09acd6d046b8025d3ea035898acc3f7f87 | [
"MIT"
] | null | null | null | #include "concurrencpp/results/impl/result_state.h"
#include "concurrencpp/results/impl/shared_result_state.h"
using concurrencpp::details::await_via_context;
using concurrencpp::details::result_state_base;
void result_state_base::assert_done() const noexcept {
assert(m_pc_state.load(std::memory_order_relaxed) ==... | 32.193548 | 129 | 0.711824 | Ladence |
7d288206351820408f4a9824176845db66f84860 | 5,639 | cpp | C++ | Common/CommandParams.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 67 | 2018-03-02T10:50:02.000Z | 2022-03-23T18:20:29.000Z | Common/CommandParams.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | null | null | null | Common/CommandParams.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 9 | 2018-03-01T16:38:28.000Z | 2021-03-02T16:17:09.000Z | //
// (c) Reliable Software 1997 -- 2002
//
#include "precompiled.h"
#include "CommandParams.h"
#include "IpcExchange.h"
#include <StringOp.h>
#include <Xml/Scanner.h>
#include <Xml/XmlParser.h>
#include <locale>
#include <sstream>
using namespace CmdLine;
SwitchMap SwitchMap::_switchChars [LastSwitch] =
{
{ After... | 23.301653 | 97 | 0.557014 | BartoszMilewski |
7d2ccbe28b7a4264de5d2908efd46a31e1b73d62 | 4,713 | cpp | C++ | trace_server/widgets/quickstringwidget.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | trace_server/widgets/quickstringwidget.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | trace_server/widgets/quickstringwidget.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | #include "quickstringwidget.h"
#include "ui_quickstringwidget.h"
#include <utils/utils_history.h>
#include <utils/utils_widgets.h>
#include "quickstringconfig.h"
#include "mainwindow.h"
#include <QComboBox>
#include <QLineEdit>
#include <QTimer>
void QuickStringWidget::init ()
{
m_ui->setupUi(this);
QStyle const * ... | 23.923858 | 144 | 0.716953 | mojmir-svoboda |
7d37fccc4ea79c398eb1873de313b878f062723a | 25 | cpp | C++ | src/engine/screens/menu/MenuScreen.cpp | fms6/zombie-game | 74321cedb389c4aafac032b847a687241636e512 | [
"MIT"
] | null | null | null | src/engine/screens/menu/MenuScreen.cpp | fms6/zombie-game | 74321cedb389c4aafac032b847a687241636e512 | [
"MIT"
] | null | null | null | src/engine/screens/menu/MenuScreen.cpp | fms6/zombie-game | 74321cedb389c4aafac032b847a687241636e512 | [
"MIT"
] | null | null | null | #include "MenuScreen.hpp" | 25 | 25 | 0.8 | fms6 |
7d3e4eb5e03128be0b1a51ad6bd670cb91322f83 | 276 | hpp | C++ | Behavioral/Visitor/include/DogImage.hpp | craviee/design-patterns-modern-cpp | 39896c8a2491c5599f79afa65a07deda2e4e7dd7 | [
"Unlicense"
] | 3 | 2019-11-15T01:38:31.000Z | 2020-04-21T13:04:19.000Z | Behavioral/Visitor/include/DogImage.hpp | craviee/design-patterns-modern-cpp | 39896c8a2491c5599f79afa65a07deda2e4e7dd7 | [
"Unlicense"
] | 23 | 2019-11-29T09:13:42.000Z | 2020-02-05T14:53:03.000Z | Behavioral/Visitor/include/DogImage.hpp | craviee/design-patterns-modern-cpp | 39896c8a2491c5599f79afa65a07deda2e4e7dd7 | [
"Unlicense"
] | null | null | null | #pragma once
#include "AnimalImage.hpp"
class DogImage : public AnimalImage
{
public:
DogImage() : AnimalImage() { std::cout << "Au Au Au" << std::endl; };
~DogImage(){};
void saveVisitor(ImageVisitor* visitor) override {visitor->save(this);};
}; | 25.090909 | 80 | 0.619565 | craviee |
7d46e90ab4bbed46e55ba5da0d8a059e213285f8 | 11,283 | hpp | C++ | third_party/boost/sandbox/boost/property_tree/ptree.hpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | third_party/boost/sandbox/boost/property_tree/ptree.hpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | third_party/boost/sandbox/boost/property_tree/ptree.hpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------
// Copyright (C) 2002-2006 Marcin Kalicinski
//
// 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)
//
// For more information,... | 34.610429 | 172 | 0.560666 | gbucknell |
7d4b6a6428b0298ef54f69f2e0384775f6e3f69c | 23,259 | cpp | C++ | src/CodingSkill/CPPCoding/TestProjectEulerTo13.cpp | SungwooNam/ProgrammingStudy | 3c2fe6096fea29547f05ff29bbde14a48c4afa9b | [
"MIT"
] | 1 | 2019-07-22T04:58:15.000Z | 2019-07-22T04:58:15.000Z | src/CodingSkill/CPPCoding/TestProjectEulerTo13.cpp | SungwooNam/ProgrammingStudy | 3c2fe6096fea29547f05ff29bbde14a48c4afa9b | [
"MIT"
] | 1 | 2017-02-21T16:02:41.000Z | 2017-02-21T16:02:41.000Z | src/CodingSkill/CPPCoding/TestProjectEulerTo13.cpp | SungwooNam/ProgrammingStudy | 3c2fe6096fea29547f05ff29bbde14a48c4afa9b | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include <vector>
#include <numeric>
#include <limits>
#include <list>
#include <set>
#include <map>
#include <math.h>
using namespace std;
int findSumOfTwoMod( int ubound, int m1, int m2 )
{
int n1 = ubound / m1;
int n2 = ubound / m2;
int nc = ubound / ( m1*m2);
return (m1*n1*... | 24.849359 | 89 | 0.584247 | SungwooNam |
7d4c11918ec8c8940e4a90511126c64b7740b4b0 | 938 | cpp | C++ | c++/leetcode/1120-Maximum_Average_Subtree-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | 1 | 2020-03-02T10:56:22.000Z | 2020-03-02T10:56:22.000Z | c++/leetcode/1120-Maximum_Average_Subtree-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | c++/leetcode/1120-Maximum_Average_Subtree-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | // 1120 Maximum Average Subtree
// https://leetcode.com/problems/maximum-average-subtree
// version: 1; create time: 2020-01-19 22:13:57;
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL... | 26.055556 | 59 | 0.586354 | levendlee |
7d5a5cb0877c45278b1005e3c648f782f502e947 | 1,338 | cpp | C++ | src/EncrypterMain.cpp | bgmello/huffman-compressor | a2030919560098eb7259522dfc4deec6666bb287 | [
"MIT"
] | null | null | null | src/EncrypterMain.cpp | bgmello/huffman-compressor | a2030919560098eb7259522dfc4deec6666bb287 | [
"MIT"
] | null | null | null | src/EncrypterMain.cpp | bgmello/huffman-compressor | a2030919560098eb7259522dfc4deec6666bb287 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include "Encrypter.h"
bool file_exists(char *name) {
std::ifstream f(name);
return f.good() and !(f.peek() == std::ifstream::traits_type::eof());
}
bool errorHandler(int argc, char *a... | 18.328767 | 71 | 0.586697 | bgmello |
7d5eaa8ce4b854f1a29ea5684a4e0a5264f5ddfe | 3,330 | hh | C++ | include/kmtrace.hh | Anton-Cao/sv6 | f525c4d588d3cfe750867990902b882cd4a21fad | [
"MIT-0"
] | 147 | 2015-01-13T08:56:18.000Z | 2022-03-10T06:49:25.000Z | include/kmtrace.hh | Anton-Cao/sv6 | f525c4d588d3cfe750867990902b882cd4a21fad | [
"MIT-0"
] | 1 | 2018-05-12T11:46:14.000Z | 2018-05-12T11:46:14.000Z | include/kmtrace.hh | Anton-Cao/sv6 | f525c4d588d3cfe750867990902b882cd4a21fad | [
"MIT-0"
] | 34 | 2015-01-06T12:36:58.000Z | 2021-09-23T17:56:22.000Z | #pragma once
#include "mtrace.h"
#if MTRACE
// Tell mtrace about switching threads
struct kstack_tag {
int val __mpalign__;
};
extern struct kstack_tag kstack_tag[NCPU];
// Tell mtrace about switching threads/processes
template<typename Ret, typename... Args>
static inline void mtstart(Ret (*ip)(Args...), struct p... | 20.943396 | 78 | 0.641141 | Anton-Cao |
7d5f68aa3b170735f8191c20ef0567fa4d6776a6 | 689 | hpp | C++ | include/student.hpp | petrovaKI/Lab1 | dc8ea5e4cf2bacc288d1cdac5dcc51f95bfd1eb9 | [
"MIT"
] | null | null | null | include/student.hpp | petrovaKI/Lab1 | dc8ea5e4cf2bacc288d1cdac5dcc51f95bfd1eb9 | [
"MIT"
] | null | null | null | include/student.hpp | petrovaKI/Lab1 | dc8ea5e4cf2bacc288d1cdac5dcc51f95bfd1eb9 | [
"MIT"
] | null | null | null | // Copyright 2021 Petrova Kseniya <ksyushki5@yandex.ru>
#ifndef INCLUDE_STUDENT_HPP_
#define INCLUDE_STUDENT_HPP_
#include <fstream>
#include <iostream>
#include <string>
#include <any>
#include <vector>
#include <stdexcept>
#include <nlohmann/json.hpp>
#include <iomanip>
using nlohmann::json;
struct Student
{
std... | 22.966667 | 61 | 0.740203 | petrovaKI |
7d65a9457a690ce264fbdf6c591ddf408cad3890 | 2,004 | cpp | C++ | src/experimental/phaselockLooptest.cpp | synkarae/Perturb-SDR | 6d601b02cf3784370000438d547e9b73830c27f7 | [
"Apache-2.0"
] | null | null | null | src/experimental/phaselockLooptest.cpp | synkarae/Perturb-SDR | 6d601b02cf3784370000438d547e9b73830c27f7 | [
"Apache-2.0"
] | null | null | null | src/experimental/phaselockLooptest.cpp | synkarae/Perturb-SDR | 6d601b02cf3784370000438d547e9b73830c27f7 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <complex>
#include <math.h>
std::complex<double> genWave()
{
static double pi = 0;
static double acc = 2.85599;
// acc += 10E-3;
pi += acc;
if(pi > 6.283185)
{
pi -= 6.283185;
}
if(pi < 0)
pi += 6.283185;
//std::cout << pi << std::endl;
std::complex<double> ret(c... | 15.534884 | 70 | 0.498503 | synkarae |
7d6708c5c7f452b4d377ac40ff2cd514602f6de4 | 7,169 | cpp | C++ | examples/pingpair_ack.cpp | zzuummaa/Arduino_rf24 | f4c27f311b9756eba44feef7ed1bbe3940fd823a | [
"BSD-3-Clause"
] | null | null | null | examples/pingpair_ack.cpp | zzuummaa/Arduino_rf24 | f4c27f311b9756eba44feef7ed1bbe3940fd823a | [
"BSD-3-Clause"
] | null | null | null | examples/pingpair_ack.cpp | zzuummaa/Arduino_rf24 | f4c27f311b9756eba44feef7ed1bbe3940fd823a | [
"BSD-3-Clause"
] | null | null | null | /*
// March 2014 - TMRh20 - Updated along with High Speed RF24 Library fork
// Parts derived from examples by J. Coliz <maniacbug@ymail.com>
*/
/**
* Example for efficient call-response using ack-payloads
*
* This example continues to make use of all the normal functionality of the radios including
* the auto-... | 36.576531 | 150 | 0.579858 | zzuummaa |
de0806725248f3590496729fbcc3307f1b8da4b9 | 4,411 | cpp | C++ | test_package/tests/unit/capi/GEOSRelateBoundaryNodeRuleTest.cpp | insaneFactory/conan-geos | 2d682cf59eafe8567e8e5c87897f051355dbb1ca | [
"MIT"
] | null | null | null | test_package/tests/unit/capi/GEOSRelateBoundaryNodeRuleTest.cpp | insaneFactory/conan-geos | 2d682cf59eafe8567e8e5c87897f051355dbb1ca | [
"MIT"
] | null | null | null | test_package/tests/unit/capi/GEOSRelateBoundaryNodeRuleTest.cpp | insaneFactory/conan-geos | 2d682cf59eafe8567e8e5c87897f051355dbb1ca | [
"MIT"
] | null | null | null | //
// Test Suite for C-API GEOSRelateBoundaryNodeRule
#include <tut/tut.hpp>
// geos
#include <geos_c.h>
// std
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
namespace tut {
//
// Test Group
//
// Common data used in test cases.
struct test_capigeosrelateboundarynoderule_data {
GEOSGeometry* geom1_;
... | 26.413174 | 84 | 0.656087 | insaneFactory |
de0ceb75bc3d049eced3ad7f9feefe2bcb34d33b | 46,576 | cpp | C++ | Tests/Maths Tests/Algorithm_Test.cpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | Tests/Maths Tests/Algorithm_Test.cpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | Tests/Maths Tests/Algorithm_Test.cpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | #include "pch.hpp"
#include "Algorithm_Test.hpp"
#include "../../Source/Maths/kAlgorithms.hpp"
#include "../../Source/Maths/Vectors/PredefinedVectors.hpp"
#include "../../Source/Maths/Matrices/PredefinedMatrices.hpp"
#include <algorithm>
#include <numeric>
#include <string>
#ifdef TESTING_ENABLED
namespace kTest::ma... | 24.987124 | 109 | 0.657334 | KingKiller100 |
de1122e0c51aaea51e75819ca2d79b3b5e6f3102 | 4,665 | cpp | C++ | AtUnitTest/AutMarkdown.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 4 | 2019-11-10T21:56:40.000Z | 2021-12-11T20:10:55.000Z | AtUnitTest/AutMarkdown.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | null | null | null | AtUnitTest/AutMarkdown.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 1 | 2019-11-11T08:38:59.000Z | 2019-11-11T08:38:59.000Z | #include "AutIncludes.h"
#include "AutMain.h"
void MarkdownTest(Seq srcText)
{
Console::Out(Str("\r\n"
"----- Markdown -----\r\n")
.Add(srcText).Add("\r\n"));
Markdown::Transform xform { srcText };
xform.Tree().RecordBestToStack();
if (!xform.Parse())
{
Console::Out(Str("----- Parsing ... | 26.355932 | 94 | 0.518328 | denisbider |
de18594015e59f34d793f0abde051a8711816fc4 | 605 | cpp | C++ | src/rover/rocs_dummy.cpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 1 | 2018-10-16T02:32:49.000Z | 2018-10-16T02:32:49.000Z | src/subsystems_computer/rocs_dummy.cpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 13 | 2018-10-23T20:35:10.000Z | 2018-11-23T22:44:32.000Z | src/subsystems_computer/rocs_dummy.cpp | 2535Rover/RoverSystem | 300dd4d754bac2e4caff25ed1da244c109d289be | [
"Apache-2.0"
] | 1 | 2018-10-16T03:11:39.000Z | 2018-10-16T03:11:39.000Z | #include "../rocs/rocs.hpp"
namespace rocs {
Error init(const char* device) {
return Error::OK;
}
Error read_from_register(uint8_t slave_addr, uint8_t reg, uint8_t* out_value) {
*out_value = 0x45;
return Error::OK;
}
Error write_to_register(uint8_t slave_addr, uint8_t reg, uint8_t value) {
return Er... | 17.794118 | 79 | 0.687603 | 2535Rover |
de1ad8c2213f380af1745f54744ab084ff460d81 | 1,021 | hpp | C++ | test/typeclass/test_method_dispatch.hpp | ldionne/mpl11 | 927d4339edc0c0cc41fb65ced2bf19d26bcd4a08 | [
"BSL-1.0"
] | 80 | 2015-03-09T03:19:12.000Z | 2022-03-04T06:44:12.000Z | test/typeclass/test_method_dispatch.hpp | rbock/mpl11 | 7923ad2bdc0d8ddaa6a6254ebf5be2b5c6f5a277 | [
"BSL-1.0"
] | 1 | 2021-07-27T22:37:43.000Z | 2021-08-06T17:42:07.000Z | test/typeclass/test_method_dispatch.hpp | rbock/mpl11 | 7923ad2bdc0d8ddaa6a6254ebf5be2b5c6f5a277 | [
"BSL-1.0"
] | 8 | 2015-01-28T00:18:57.000Z | 2021-08-06T03:00:49.000Z | /*!
* @file
* Defines utilities to ease the testing of typeclass method dispatching.
*/
#ifndef BOOST_MPL11_TEST_TEST_METHOD_DISPATCH_HPP
#define BOOST_MPL11_TEST_TEST_METHOD_DISPATCH_HPP
#include <boost/mpl11/core.hpp>
#include <boost/mpl11/detail/std_is_same.hpp>
template <unsigned level = 0>
struct Archetype;... | 24.309524 | 73 | 0.699314 | ldionne |
de1fc8781f81c4c336f7b7ffddeca29dbc0443e5 | 11,789 | hpp | C++ | vertex/test/TestCellCompetitionParameters.hpp | ThomasPak/cell-competition | bb058d67e297d95c4c8ff2a0aea5b1fe5a82be09 | [
"BSD-3-Clause"
] | null | null | null | vertex/test/TestCellCompetitionParameters.hpp | ThomasPak/cell-competition | bb058d67e297d95c4c8ff2a0aea5b1fe5a82be09 | [
"BSD-3-Clause"
] | null | null | null | vertex/test/TestCellCompetitionParameters.hpp | ThomasPak/cell-competition | bb058d67e297d95c4c8ff2a0aea5b1fe5a82be09 | [
"BSD-3-Clause"
] | null | null | null | #ifndef TESTCELLCOMPETITIONPARAMETERS_HPP_
#define TESTCELLCOMPETITIONPARAMETERS_HPP_
#include <cxxtest/TestSuite.h>
#include "CellCompetitionParameters.hpp"
class TestCellCompetitionParameters : public CxxTest::TestSuite
{
public:
void TestCellCompetitionParametersDefault()
{
CellCo... | 31.948509 | 91 | 0.635762 | ThomasPak |
de257d09f1b52ae52f7e41e5af8d2e99692d6d64 | 1,712 | hpp | C++ | viennacl/ocl/utils.hpp | bollig/viennacl | 6dac70e558ed42abe63d8c5bfd08465aafeda859 | [
"MIT"
] | 1 | 2020-09-21T08:33:10.000Z | 2020-09-21T08:33:10.000Z | viennacl/ocl/utils.hpp | bollig/viennacl | 6dac70e558ed42abe63d8c5bfd08465aafeda859 | [
"MIT"
] | null | null | null | viennacl/ocl/utils.hpp | bollig/viennacl | 6dac70e558ed42abe63d8c5bfd08465aafeda859 | [
"MIT"
] | null | null | null | #ifndef VIENNACL_OCL_UTILS_HPP_
#define VIENNACL_OCL_UTILS_HPP_
/* =========================================================================
Copyright (c) 2010-2012, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
P... | 30.035088 | 229 | 0.555491 | bollig |
de27371fd64f12721a486cfd604ae095003a6150 | 3,441 | hpp | C++ | include/matrix_tuner/sys/device.hpp | Jacobfaib/matrix_tuner | ac164c91511eb15b27fc678ee5d9daa46636f85f | [
"MIT"
] | null | null | null | include/matrix_tuner/sys/device.hpp | Jacobfaib/matrix_tuner | ac164c91511eb15b27fc678ee5d9daa46636f85f | [
"MIT"
] | null | null | null | include/matrix_tuner/sys/device.hpp | Jacobfaib/matrix_tuner | ac164c91511eb15b27fc678ee5d9daa46636f85f | [
"MIT"
] | null | null | null | #ifndef MT_SYS_DEVICE_HPP
#define MT_SYS_DEVICE_HPP
#include <matrix_tuner/sys/sys.hpp>
#ifdef MT_HAVE_DEVICE
# include <cuda_runtime.h>
# include <cublas_v2.h>
#else
enum cudaError_t
{
cudaSuccess
};
struct opaque_stream { };
using cudaStream_t = opaque_stream*;
static inline cudaError_t cudaStreamCreate(cudaStr... | 31.568807 | 110 | 0.740773 | Jacobfaib |
de2ef2927dd190e5ae1ed5f46079d1482d4e9179 | 611 | cpp | C++ | solutions/187.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | solutions/187.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | solutions/187.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | #include <string>
#include <unordered_set>
#include <vector>
class Solution {
public:
std::vector<std::string> findRepeatedDnaSequences(std::string ss) {
std::string_view s = ss;
std::unordered_set<std::string_view> result;
std::unordered_set<std::string_view> cand;
for (size_t k = 0; k + 10 <= s.si... | 25.458333 | 69 | 0.599018 | tdakhran |
de3338e15fb8ba18621362679d7a2ac2a2c5b591 | 114 | cpp | C++ | test/lrutest.cpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | test/lrutest.cpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | test/lrutest.cpp | brucexia1/DesignPattern | 09dab7aaa4e3d72b64467efe3906e4e504e220c4 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "lru.h"
TEST(lrutest, a)
{
LRU lru;
EXPECT_EQ(2, lru.Foo());
}
| 12.666667 | 29 | 0.552632 | brucexia1 |
de3d7749ae66a90c426cfec52a5d9398a37de0e1 | 1,373 | hpp | C++ | Ch9_AdvancedThreadManagement/function_wrapper.hpp | jamcodes/Cpp-Concurrency-In-Action-2nd-ed | 80f629c28941f0f0eba5752f990b5e4d4df58e9e | [
"Unlicense"
] | 1 | 2019-12-27T02:35:42.000Z | 2019-12-27T02:35:42.000Z | Ch9_AdvancedThreadManagement/function_wrapper.hpp | jamcodes/Cpp-Concurrency-In-Action-2nd-ed | 80f629c28941f0f0eba5752f990b5e4d4df58e9e | [
"Unlicense"
] | null | null | null | Ch9_AdvancedThreadManagement/function_wrapper.hpp | jamcodes/Cpp-Concurrency-In-Action-2nd-ed | 80f629c28941f0f0eba5752f990b5e4d4df58e9e | [
"Unlicense"
] | 1 | 2020-04-16T01:20:19.000Z | 2020-04-16T01:20:19.000Z | #pragma once
#include <memory>
#include <utility>
class function_wrapper {
struct impl_base {
constexpr impl_base() noexcept = default;
impl_base(impl_base const&) = delete;
impl_base(impl_base&&) = delete;
impl_base& operator=(impl_base const&) = delete;
impl_base& operato... | 29.212766 | 92 | 0.643117 | jamcodes |
de3fd35ba149076eb6caa86896c503c2697f2798 | 885 | cc | C++ | c++/en/todos/fix_this/strtok_simple.cc | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | c++/en/todos/fix_this/strtok_simple.cc | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | c++/en/todos/fix_this/strtok_simple.cc | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | // strtok_simple.cc
// Caution: strtok is thread-unsafe. Use it with this in mind. https://jybaek.tistory.com/593
//#include "pch.h" // Uncomment this in Visual Studio
#include <cstdio>
#include <cstring>
int main()
{
char str[] = "This,is,a,sample,string,";
char* ptr; // pointer
printf("Before: '%s''\n", str... | 24.583333 | 115 | 0.637288 | aimldl |
de4049ef992b87036df4549f7c834b3316b42a78 | 983 | cpp | C++ | examples/Switch.System/ArrayList2/ArrayList2.cpp | victor-timoshin/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 4 | 2020-02-11T13:22:58.000Z | 2022-02-24T00:37:43.000Z | examples/Switch.System/ArrayList2/ArrayList2.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | null | null | null | examples/Switch.System/ArrayList2/ArrayList2.cpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 2 | 2020-02-01T02:19:01.000Z | 2021-12-30T06:44:00.000Z | #include <Switch/Switch>
using namespace System;
using namespace System::Collections;
namespace Examples {
class Program {
public:
static void Main() {
ArrayList arrayList = {42, "This is a string", DayOfWeek::Wednesday, "Another string", Uri("https://www.gammasoft71.wixsite.com/switch"), 4.2f, TimeSpan... | 26.567568 | 171 | 0.636826 | victor-timoshin |
de40b18a39616615caa41697369b7ed67206f854 | 12,520 | hpp | C++ | CaWE/MapEditor/MapElement.hpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | CaWE/MapEditor/MapElement.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | CaWE/MapEditor/MapElement.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#ifndef CAFU_MAP_ELEMENT_HPP_INCLUDED
#define CAFU_MAP_ELEMENT_HPP_INCLUDED
#include "Math3D/Angles.hpp"
#include "Math3D/BoundingBox.hpp"
#include "Templates/Array.h... | 53.733906 | 184 | 0.716773 | dns |
de5285eedbadbc5f1450db4fcda64849d020d3f1 | 8,581 | cpp | C++ | modules/pw_vulkan_graphics/contexts/pw_RenderContext.cpp | parawave/vulkan-cpp-library | 59a24b43a494c8b99251d4daea650e0f57912eca | [
"ISC"
] | 14 | 2021-05-12T17:48:44.000Z | 2022-03-11T07:10:03.000Z | modules/pw_vulkan_graphics/contexts/pw_RenderContext.cpp | parawave/vulkan-cpp-library | 59a24b43a494c8b99251d4daea650e0f57912eca | [
"ISC"
] | null | null | null | modules/pw_vulkan_graphics/contexts/pw_RenderContext.cpp | parawave/vulkan-cpp-library | 59a24b43a494c8b99251d4daea650e0f57912eca | [
"ISC"
] | null | null | null | /*
==============================================================================
This file is part of the Parawave Vulkan C++ library.
The code included in this file is provided under the terms of the ISC license
https://opensource.org/licenses/ISC.
Copyright (c) 2021 - Parawave Audio (https://parawav... | 35.605809 | 131 | 0.556112 | parawave |
de5467d16b06ccf412c78fe2cb82f17d70b1a0c7 | 3,208 | cpp | C++ | src/cpp/2017-09-befor/temp-10-31.cpp | spurscoder/forTest | 2ab069d6740f9d7636c6988a5a0bd3825518335d | [
"MIT"
] | null | null | null | src/cpp/2017-09-befor/temp-10-31.cpp | spurscoder/forTest | 2ab069d6740f9d7636c6988a5a0bd3825518335d | [
"MIT"
] | 1 | 2018-10-24T05:48:27.000Z | 2018-10-24T05:52:14.000Z | src/cpp/2017-09-befor/temp-10-31.cpp | spurscoder/forTest | 2ab069d6740f9d7636c6988a5a0bd3825518335d | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <algorithm>
using namespace std;
class Solution {
public:
bool canPartitionKSubsets(vector<int>& nums, int k) {
unordered_map<int, int> map;
int sum = 0;
for (auto num : nums) {
++map[num];
sum += num;
... | 25.870968 | 155 | 0.510599 | spurscoder |
de57cb7c217b7d70ded40898ccd19af61c0b35b8 | 3,413 | cpp | C++ | source/mouse1.cpp | odanek/mouse1 | 9c36d6c6a7a37fd8fb00b402a5742dab523a220b | [
"BSD-3-Clause"
] | null | null | null | source/mouse1.cpp | odanek/mouse1 | 9c36d6c6a7a37fd8fb00b402a5742dab523a220b | [
"BSD-3-Clause"
] | null | null | null | source/mouse1.cpp | odanek/mouse1 | 9c36d6c6a7a37fd8fb00b402a5742dab523a220b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2006, Ondrej Danek (www.ondrej-danek.net)
* 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, ... | 28.206612 | 81 | 0.624963 | odanek |
de658c7f18cd6701c578ed95e7a390675d2fad3a | 5,280 | cpp | C++ | src/Scena.cpp | KPO-2020-2021/zad5_2-OLiwerFig-1 | b446f0a8be72eadfe926ec3c498c475260188c80 | [
"Unlicense"
] | null | null | null | src/Scena.cpp | KPO-2020-2021/zad5_2-OLiwerFig-1 | b446f0a8be72eadfe926ec3c498c475260188c80 | [
"Unlicense"
] | null | null | null | src/Scena.cpp | KPO-2020-2021/zad5_2-OLiwerFig-1 | b446f0a8be72eadfe926ec3c498c475260188c80 | [
"Unlicense"
] | null | null | null | #include "Scena.hh"
using std :: cout;
using std :: endl;
Scena::Scena()
{
Lacze.ZmienTrybRys(PzG::TR_3D);
nr_elem = 0;
nr_drona=0;
Lacze.UstawZakresY(-300, 300);
Lacze.UstawZakresX(-300, 300);
Lacze.UstawZakresZ(-300, 300);
double tab_wym[3] = {600, 600, 0};
Wektor3D wym_dna(tab_wym);
dno = new P... | 25.631068 | 120 | 0.448295 | KPO-2020-2021 |
de6a89eefc87b0fbd5acf5125fb53a4ee54ef658 | 4,553 | cpp | C++ | exercises/2&4/Data Structures/HashTables/Practice/GraphRepresentations.cpp | VGeorgiev1/SDP20-21 | 23e11b6041d35cec779cefbcc219ca9b76a6ff3f | [
"CC0-1.0"
] | 7 | 2020-10-05T09:32:28.000Z | 2022-03-25T07:58:12.000Z | exercises/2&4/Data Structures/HashTables/Practice/GraphRepresentations.cpp | VGeorgiev1/SDP20-21 | 23e11b6041d35cec779cefbcc219ca9b76a6ff3f | [
"CC0-1.0"
] | 2 | 2020-11-16T20:41:04.000Z | 2020-12-15T11:10:20.000Z | exercises/2&4/Data Structures/HashTables/Practice/GraphRepresentations.cpp | peshe/SDP20-21 | af298e723c2934036048b26b168f8f8607fcec40 | [
"CC0-1.0"
] | 6 | 2020-10-09T15:46:55.000Z | 2021-01-12T17:47:11.000Z | #include <vector>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include <map>
#include <iostream>
/// vertices are characters
typedef char vertex;
/// weights are numbers
typedef int weight;
/// each edge is a tuple s_vertex : d_vertex : weight
using edge = std::tuple<vertex, vertex, weight>;
s... | 24.089947 | 100 | 0.495278 | VGeorgiev1 |
de6b0dfc5f9f94372723c63367399dfb06ebc863 | 10,353 | cpp | C++ | Sources/SDK/eventproc/fpgadatareader.cpp | CelePixel/CeleX-SDK_2_2 | a5257da619455eaee0fef47c803f9c73f6b9122a | [
"Apache-2.0"
] | 6 | 2020-01-04T16:34:23.000Z | 2020-06-16T08:54:56.000Z | Sources/SDK/eventproc/fpgadatareader.cpp | CelePixel/CeleX-SDK_2_2 | a5257da619455eaee0fef47c803f9c73f6b9122a | [
"Apache-2.0"
] | 4 | 2019-11-26T12:11:11.000Z | 2020-06-12T01:03:31.000Z | Sources/SDK/eventproc/fpgadatareader.cpp | CelePixel/CeleX-SDK_2_2 | a5257da619455eaee0fef47c803f9c73f6b9122a | [
"Apache-2.0"
] | 3 | 2019-10-05T04:44:05.000Z | 2020-01-13T10:36:16.000Z | /*
* Copyright (c) 2017-2018 CelePixel Technology Co. Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 34.741611 | 126 | 0.661644 | CelePixel |
de6b95bc1ec6728b0d89f810cc8ea82746c8dadc | 1,107 | cpp | C++ | cpp_module_01/ex00/main.cpp | AbderrSfa/cpp_modules | 2465e31853af87f9bf9faba57ac0470b43918607 | [
"Apache-2.0"
] | 1 | 2021-11-05T13:46:36.000Z | 2021-11-05T13:46:36.000Z | cpp_module_01/ex00/main.cpp | AbderrSfa/cpp_modules | 2465e31853af87f9bf9faba57ac0470b43918607 | [
"Apache-2.0"
] | null | null | null | cpp_module_01/ex00/main.cpp | AbderrSfa/cpp_modules | 2465e31853af87f9bf9faba57ac0470b43918607 | [
"Apache-2.0"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... | 48.130435 | 80 | 0.226739 | AbderrSfa |
de6dc7c94e7c4dcf971ffee46f473b20eb68289a | 4,229 | cpp | C++ | tsonar.cpp | wimblerobotics/teensy_monitor | 5327a0e7b5e4e1bf8a0098790b7e10fead5ef66a | [
"MIT"
] | null | null | null | tsonar.cpp | wimblerobotics/teensy_monitor | 5327a0e7b5e4e1bf8a0098790b7e10fead5ef66a | [
"MIT"
] | null | null | null | tsonar.cpp | wimblerobotics/teensy_monitor | 5327a0e7b5e4e1bf8a0098790b7e10fead5ef66a | [
"MIT"
] | null | null | null | #include "tsonar.h"
#include <stdint.h>
#include "Arduino.h"
#include "TimerOne.h"
#include "Wire.h"
#include "talert.h"
void TSonar::echo0InterruptHandler() {
static long endTime = 0;
static long startTime = 0;
switch (digitalRead(PIN_ECHO0)) {
case HIGH:
endTime = 0;
startTime = micros();
... | 24.165714 | 99 | 0.640104 | wimblerobotics |
de6e845cef9e061d6ab9b4cce9d72edc3bfacc5b | 3,401 | cpp | C++ | HelperFunctions/createVkDebugUtilsLabelEXT.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/createVkDebugUtilsLabelEXT.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | HelperFunctions/createVkDebugUtilsLabelEXT.cpp | dkaip/jvulkan-natives-Linux-x86_64 | ea7932f74e828953c712feea11e0b01751f9dc9b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2020 Douglas Kaip
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 32.701923 | 114 | 0.620406 | dkaip |
de6ef045eff48d48b1cb51771c7244b6f2a3f3b8 | 618 | cpp | C++ | Source/Ability/Private/GASAssetManager.cpp | Tylrin/Ability | 6cfecdfcdb2f1bcef3146dbd54063b26ff65d56e | [
"MIT"
] | 3 | 2021-12-11T12:52:00.000Z | 2022-02-02T05:06:00.000Z | Source/Ability/Private/GASAssetManager.cpp | Tylrin/Ability | 6cfecdfcdb2f1bcef3146dbd54063b26ff65d56e | [
"MIT"
] | null | null | null | Source/Ability/Private/GASAssetManager.cpp | Tylrin/Ability | 6cfecdfcdb2f1bcef3146dbd54063b26ff65d56e | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "GASAssetManager.h"
#include "AbilitySystemGlobals.h"
UGASAssetManager& UGASAssetManager::Get()
{
UGASAssetManager* Singleton = Cast<UGASAssetManager>(GEngine->AssetManager);
if (Singleton)
{
return *Singleton;
}
else
{
... | 22.888889 | 101 | 0.757282 | Tylrin |
de72aaaffa033c4f4ac1864d52e838c0a201da12 | 2,649 | cpp | C++ | EZOJ/Contests/1042/B.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/Contests/1042/B.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1042/B.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool flag=c=='-';
flag?(c=getchar()):0;
... | 20.376923 | 72 | 0.553416 | sshockwave |
de73c5d83367ce0d15119e5919c9fd1e9919b217 | 2,754 | cpp | C++ | src/codemodel/dummymodel.cpp | Groterik/qtcreator-dlangeditor | 58cfd1b93ffc9f09be48160a8cc3dedb0e356ff4 | [
"MIT"
] | 22 | 2015-04-08T20:43:05.000Z | 2022-01-09T07:40:39.000Z | src/codemodel/dummymodel.cpp | Groterik/qtcreator-dlangeditor | 58cfd1b93ffc9f09be48160a8cc3dedb0e356ff4 | [
"MIT"
] | 18 | 2015-01-18T18:10:06.000Z | 2017-04-05T09:43:26.000Z | src/codemodel/dummymodel.cpp | Groterik/qtcreator-dlangeditor | 58cfd1b93ffc9f09be48160a8cc3dedb0e356ff4 | [
"MIT"
] | 10 | 2015-01-27T08:09:54.000Z | 2021-11-19T22:44:31.000Z | #include "dummymodel.h"
#include "codemodel/dmodel.h"
#include "codemodel/dmodeloptions.h"
#include <QLabel>
#include <QVBoxLayout>
using namespace DCodeModel;
DummyModel::DummyModel(QObject *parent) : QObject(parent)
{
}
DCodeModel::ModelId DCodeModel::DummyModel::id() const
{
return DUMMY_MODEL;
}
void DCo... | 29.612903 | 90 | 0.561728 | Groterik |
de76a8ef34e9aedc48b530f2a97e895b5501c6a6 | 1,385 | cpp | C++ | src/view/And.cpp | JerrySievert/SynthKit | 0d4aba35a9a3b0988c3e66172ddfa964ada3dbbe | [
"CC0-1.0"
] | 32 | 2018-01-06T09:48:04.000Z | 2019-11-19T17:10:50.000Z | src/view/And.cpp | JerrySievert/SynthKit | 0d4aba35a9a3b0988c3e66172ddfa964ada3dbbe | [
"CC0-1.0"
] | 17 | 2018-01-11T00:14:24.000Z | 2019-12-28T18:10:37.000Z | src/view/And.cpp | JerrySievert/SynthKit | 0d4aba35a9a3b0988c3e66172ddfa964ada3dbbe | [
"CC0-1.0"
] | 4 | 2018-02-22T01:06:20.000Z | 2018-05-12T10:26:44.000Z | #include "../controller/And.hpp"
#include "../../deps/rack-components/jacks.hpp"
#include "../../deps/rack-components/screws.hpp"
struct AndWidget : ModuleWidget {
AndWidget(AndModule *module);
};
AndWidget::AndWidget(AndModule *module) {
setModule(module);
box.size = Vec(3 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT);... | 37.432432 | 79 | 0.605776 | JerrySievert |
de7a435a6653244ea41f074840d0902eac237981 | 1,617 | cpp | C++ | VS/CSHARP/intrinsics-dude-vsix/Resources/example.cpp | HJLebbink/intrinsics-dude | 116421e8b7a0874b9881f1b67de50624b1d297ec | [
"MIT"
] | 53 | 2016-10-12T07:51:26.000Z | 2022-03-23T03:31:20.000Z | VS/CSHARP/intrinsics-dude-vsix/Resources/example.cpp | HJLebbink/intrinsics-dude | 116421e8b7a0874b9881f1b67de50624b1d297ec | [
"MIT"
] | 9 | 2017-01-02T09:09:22.000Z | 2021-12-08T19:16:45.000Z | VS/CSHARP/intrinsics-dude-vsix/Resources/example.cpp | HJLebbink/intrinsics-dude | 116421e8b7a0874b9881f1b67de50624b1d297ec | [
"MIT"
] | 3 | 2017-06-26T03:59:24.000Z | 2022-01-31T01:39:58.000Z | //Intrinsics Dude Example
#include <vector>
//#inlcude "intrin.h" // declarations/definitions for platform specific intrinsic functions.
//#include "mmintrin.h" // mmx
//#include "emmintrin.h" // sse
//#include "pmmintrin.h" // sse3
//#include "tmmintrin.h" // ssse3
//#include "smmintrin.h" // sse4.1
//#include... | 30.509434 | 93 | 0.653061 | HJLebbink |
de7c76952c84ec1e4c21bc216c6104422fac738d | 1,469 | cpp | C++ | src/camera.cpp | cagries/simple-cpp-raytracer | e6fa93e9d5fa073bfeff0201d1c9f868371acd4b | [
"MIT"
] | 1 | 2019-10-13T20:53:58.000Z | 2019-10-13T20:53:58.000Z | src/camera.cpp | cagries/simple-cpp-raytracer | e6fa93e9d5fa073bfeff0201d1c9f868371acd4b | [
"MIT"
] | 6 | 2018-11-13T14:02:06.000Z | 2018-12-11T19:22:25.000Z | src/camera.cpp | cagries/simple-cpp-raytracer | e6fa93e9d5fa073bfeff0201d1c9f868371acd4b | [
"MIT"
] | null | null | null | #include "camera.h"
#include "geometry.h"
#include <vector>
#include <string>
namespace rt {
/**
* @brief ImagePlane constructor.
*
* @param plane Vec4f containing {l, r, b, t} values
* @param width Plane width
* @param height Plane height
* @param name Name of the image plane
* @param distanc... | 24.898305 | 93 | 0.633764 | cagries |
de7cc2233d94ac70939a61934f5c80ea7a81beeb | 7,473 | cpp | C++ | lib/guide/guideuischeme.cpp | frank-lesser/gambit | 21601d3fd939405523d18e7a9f51eae9780de964 | [
"Apache-2.0"
] | 41 | 2015-12-19T12:03:08.000Z | 2021-10-05T16:15:51.000Z | lib/guide/guideuischeme.cpp | frank-lesser/gambit | 21601d3fd939405523d18e7a9f51eae9780de964 | [
"Apache-2.0"
] | 133 | 2015-12-21T08:28:00.000Z | 2017-11-24T03:48:05.000Z | lib/guide/guideuischeme.cpp | udem-dlteam/gambit | 776ccd958acc36b86397767c159c6ac526f14319 | [
"Apache-2.0"
] | 4 | 2017-10-07T01:22:11.000Z | 2021-01-24T10:21:54.000Z | /* File: "guideuischeme.cpp", Time-stamp: <2005-04-29 00:04:28 feeley> */
/* Copyright (C) 1994-2005 by Marc Feeley, All Rights Reserved. */
/*---------------------------------------------------------------------------*/
#include "guideuischeme.h"
#include <qvariant.h>
#include <qsplitter.h>
#include <qlayout.h>
#i... | 25.768966 | 143 | 0.646728 | frank-lesser |
de8274ee79d92c27013a69b956f118110fd73427 | 16,505 | cpp | C++ | Source/wali/lib/wfa/WFA-path_summary.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | Source/wali/lib/wfa/WFA-path_summary.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | Source/wali/lib/wfa/WFA-path_summary.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #include "wali/Common.hpp"
#include "wali/DefaultWorklist.hpp"
#include "wali/wfa/WFA.hpp"
#include "wali/wfa/State.hpp"
#include "wali/wfa/TransFunctor.hpp"
#include "wali/wfa/Trans.hpp"
#include "wali/wfa/WeightMaker.hpp"
#include "wali/regex/AllRegex.hpp"
#include "wali/wpds/GenKeySource.hpp"
#include "wali/wfa/Dete... | 31.082863 | 102 | 0.597152 | jusito |
de8a7a5d033a4b5b98056b1c814ed1d6dc12fd36 | 2,315 | cpp | C++ | TanksIP/Camera.cpp | cristian-ig/Proiect_IP_Tanks | 15b419ad3f408e7d343f8a9e1a88816209209085 | [
"Apache-2.0"
] | null | null | null | TanksIP/Camera.cpp | cristian-ig/Proiect_IP_Tanks | 15b419ad3f408e7d343f8a9e1a88816209209085 | [
"Apache-2.0"
] | null | null | null | TanksIP/Camera.cpp | cristian-ig/Proiect_IP_Tanks | 15b419ad3f408e7d343f8a9e1a88816209209085 | [
"Apache-2.0"
] | null | null | null | #include "Camera.h"
#include "Defines.h"
namespace Engine {
Camera::Camera() :
_cameraMatrix(1.0f),
_orthoMatrix(1.0f),
_scale(1.0f),
_screenWidth(SCREEN_WIDTH),
_screenHeight(SCREEN_HEIGHT),
_position(0, 0),
_update(true)
{
}
Camera::~Camera()
{
}
void Camera::init(int ... | 25.43956 | 99 | 0.668251 | cristian-ig |
de8eeaf5388971754e760d3da79a7a53b2f9830b | 2,028 | cpp | C++ | warp_to_limit.cpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | warp_to_limit.cpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | warp_to_limit.cpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | #include "warp_to_limit.hpp"
#include <cstdio>
#include "doubles.hpp"
#include "comm.hpp"
#include "loop.hpp"
#include "mesh.hpp"
#include "quality.hpp"
#include "tag.hpp"
namespace omega_h {
static unsigned exceeds_limit(
unsigned elem_dim,
unsigned nelems,
unsigned const* verts_of_elems,
double co... | 24.142857 | 64 | 0.66075 | ibaned |
de9af95543195b979a8f324535a18b70ee4f8822 | 503 | cpp | C++ | AtCoder/abc169/d/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc169/d/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc169/d/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
using namespace std;
int main() {
long long int n; cin >> n;
map<long long int, int> Map;
for (int i = 2; i <= sqrt(n); i++) while (n % i == 0) Map[i]++, n /= i;
if (n > 1) Map[n]++;
long long int ans = 0;
... | 23.952381 | 75 | 0.485089 | H-Tatsuhiro |
dea144df8c3c717ae2f05dcc2c4bc16044cf7cfb | 2,295 | cpp | C++ | test6/main.cpp | denghe/xxlib_simple_cpp | 6aa72124c08e85ff1771bf717b1ea4e4b319c16e | [
"MIT"
] | 4 | 2020-06-05T03:02:09.000Z | 2020-11-09T05:25:33.000Z | test6/main.cpp | denghe/xxlib_simple_cpp | 6aa72124c08e85ff1771bf717b1ea4e4b319c16e | [
"MIT"
] | null | null | null | test6/main.cpp | denghe/xxlib_simple_cpp | 6aa72124c08e85ff1771bf717b1ea4e4b319c16e | [
"MIT"
] | 4 | 2020-06-18T02:01:49.000Z | 2020-10-28T07:27:16.000Z | #include "xx_epoll_kcp.h"
#include <thread>
#include <atomic>
namespace EP = xx::Epoll;
sockaddr_in6 addr{};
int numThreads = 0;
int numUdps = 0;
std::atomic<uint64_t> counter = 0;
char const* dataForSend = nullptr;
size_t dataLenForSend = 0;
struct Peer : EP::UdpPeer {
explicit Peer(std::shared_ptr<EP::Context... | 25.786517 | 86 | 0.560349 | denghe |
dea915087fc96d7787a739812f3568b443694128 | 5,413 | cpp | C++ | src/fast_terrain_map.cpp | jcnorby/global-body-planner | ec50d69f67a51867a5045ab29acc34d769da6a2b | [
"MIT"
] | 11 | 2020-10-29T02:07:43.000Z | 2021-12-26T11:20:51.000Z | src/fast_terrain_map.cpp | jcnorby/global_body_planner | ec50d69f67a51867a5045ab29acc34d769da6a2b | [
"MIT"
] | null | null | null | src/fast_terrain_map.cpp | jcnorby/global_body_planner | ec50d69f67a51867a5045ab29acc34d769da6a2b | [
"MIT"
] | null | null | null | #include "global_body_planner/fast_terrain_map.h"
#include <grid_map_core/grid_map_core.hpp>
#include <chrono>
#include <iostream>
FastTerrainMap::FastTerrainMap(){
}
void FastTerrainMap::loadData(int x_size,
int y_size,
std::vector<double> x_data,
std::vector<double> y_data,
std::vector<std::vector<double>... | 28.046632 | 137 | 0.589876 | jcnorby |
deb3308d28b45f16c18afd4e2a1f87314afc1377 | 1,509 | cpp | C++ | src/Input.cpp | haya3218/cse2-tweaks | 48bccbd58240942ed5f5b288a90ef092820698c0 | [
"MIT"
] | 12 | 2020-12-14T19:10:55.000Z | 2022-03-16T12:45:56.000Z | src/Input.cpp | haya3218/cse2-tweaks | 48bccbd58240942ed5f5b288a90ef092820698c0 | [
"MIT"
] | null | null | null | src/Input.cpp | haya3218/cse2-tweaks | 48bccbd58240942ed5f5b288a90ef092820698c0 | [
"MIT"
] | 6 | 2020-12-13T03:05:24.000Z | 2021-11-23T14:16:49.000Z | // THIS IS DECOMPILED PROPRIETARY CODE - USE AT YOUR OWN RISK.
//
// The original code belongs to Daisuke "Pixel" Amaya.
//
// Modifications and custom code are under the MIT licence.
// See LICENCE.txt for details.
#include "Input.h"
#include <stddef.h>
#include "Backends/Controller.h"
#include "WindowsWrapper.h"
... | 19.855263 | 87 | 0.732273 | haya3218 |
deb37431a8ead63bcb0b6de6b25b4635bc22328d | 1,661 | cpp | C++ | 025-reverse-nodes-in-k-group/reverse-nodes-in-k-group.cpp | TJUSsr/leetcodesolution | 8244de2d76c9e8e5b9d98dd1e8efed4d680d44ee | [
"MIT"
] | null | null | null | 025-reverse-nodes-in-k-group/reverse-nodes-in-k-group.cpp | TJUSsr/leetcodesolution | 8244de2d76c9e8e5b9d98dd1e8efed4d680d44ee | [
"MIT"
] | 2 | 2021-03-31T19:10:41.000Z | 2021-12-13T19:58:15.000Z | 025-reverse-nodes-in-k-group/reverse-nodes-in-k-group.cpp | TJUSsr/leetcodesolution | 8244de2d76c9e8e5b9d98dd1e8efed4d680d44ee | [
"MIT"
] | null | null | null | // Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
//
// k is a positive integer and is less than or equal to the length of the linked list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is.
//
//
//
//
// Example:
/... | 24.072464 | 188 | 0.53221 | TJUSsr |
deb4919d3187654786244d4277373eea776c3bf0 | 10,928 | hpp | C++ | include/NAOS/basicAstro.hpp | agrawalabhishek/NAOS | 25ae383d2c3f9a52ecd2e06f34661e52e239478b | [
"MIT"
] | null | null | null | include/NAOS/basicAstro.hpp | agrawalabhishek/NAOS | 25ae383d2c3f9a52ecd2e06f34661e52e239478b | [
"MIT"
] | null | null | null | include/NAOS/basicAstro.hpp | agrawalabhishek/NAOS | 25ae383d2c3f9a52ecd2e06f34661e52e239478b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 Abhishek Agrawal (abhishek.agrawal@protonmail.com)
* Distributed under the MIT License.
* See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT
*/
#ifndef BASIC_ASTRO_HPP
#define BASIC_ASTRO_HPP
#include <cmath>
#include <limits>
#include <iostream>
#include "NAOS... | 43.365079 | 101 | 0.607705 | agrawalabhishek |
630ec721ec836a6a56c12558c18a576f16f0f6c3 | 120 | hxx | C++ | src/Providers/UNIXProviders/PhysicalMedia/UNIX_PhysicalMedia_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/PhysicalMedia/UNIX_PhysicalMedia_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/PhysicalMedia/UNIX_PhysicalMedia_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_ZOS
#ifndef __UNIX_PHYSICALMEDIA_PRIVATE_H
#define __UNIX_PHYSICALMEDIA_PRIVATE_H
#endif
#endif
| 10 | 38 | 0.841667 | brunolauze |
631079805df56314b377047d6858aa9a26214442 | 132 | cxx | C++ | msgs/msglib/msglib.cxx | javedulu/msgs-fastrtps | fba1860f5eca7fa3f7815cfd083f5730d598f212 | [
"MIT"
] | null | null | null | msgs/msglib/msglib.cxx | javedulu/msgs-fastrtps | fba1860f5eca7fa3f7815cfd083f5730d598f212 | [
"MIT"
] | null | null | null | msgs/msglib/msglib.cxx | javedulu/msgs-fastrtps | fba1860f5eca7fa3f7815cfd083f5730d598f212 | [
"MIT"
] | null | null | null | #include "demangle.hxx"
#include "messagetype.h"
#include "receive.h"
#include "transmit.h"
#include "enum.h"
#include "msgconfig.h" | 22 | 24 | 0.734848 | javedulu |
631aae7a297a2d7719115aca44c0a3beaaa1339e | 511 | cpp | C++ | code/TweeZcodeCompiler/main/test/MainTest.cpp | manuelpolzhofer/twee_zcode_compiler | 4932fd07d5aadc5ea38afcdc4019586bbb9fa696 | [
"MIT"
] | 5 | 2015-07-09T15:18:34.000Z | 2019-04-20T18:11:52.000Z | code/TweeZcodeCompiler/main/test/MainTest.cpp | manuelpolzhofer/twee_zcode_compiler | 4932fd07d5aadc5ea38afcdc4019586bbb9fa696 | [
"MIT"
] | 26 | 2015-07-09T15:43:50.000Z | 2015-07-17T02:14:19.000Z | code/TweeZcodeCompiler/main/test/MainTest.cpp | manuelpolzhofer/twee_zcode_compiler | 4932fd07d5aadc5ea38afcdc4019586bbb9fa696 | [
"MIT"
] | null | null | null | //
// Created by Manuel Polzhofer on 07.05.15.
//
#include "BinaryFileWriterTest.h"
#include "ZCodeHeaderTest.h"
#include "RoutineGeneratorTest.h"
int main() {
//Add tests to Testframework
Test::addTest("BinaryFileWriter", new BinaryFileWriterTest());
Test::addTest("RoutineGenerator", new RoutineGeneratorT... | 26.894737 | 66 | 0.702544 | manuelpolzhofer |
631f393c6d36ff90f85e0cc642a30df37c2b7b9d | 1,634 | cpp | C++ | Tests/MeshLib/TestNodeSearch.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | null | null | null | Tests/MeshLib/TestNodeSearch.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | 25 | 2015-02-04T20:34:21.000Z | 2018-12-10T20:19:57.000Z | Tests/MeshLib/TestNodeSearch.cpp | norihiro-w/ogs | ac990b1aa06a583dba3e32efa3009ef0c6f46ae4 | [
"BSD-4-Clause"
] | null | null | null | /**
* @copyright
* Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/LICENSE.txt
*/
#include "gtest/gtest.h"
#include <memory>
#include "Me... | 33.346939 | 134 | 0.677479 | norihiro-w |
632461bc788546440761c2d5a858e7bedd510c7f | 4,651 | cpp | C++ | src/algorithms.cpp | zjurelinac/LCP-BWT | eb73822999d6c742b29cd0ed537769f1b38a50e4 | [
"MIT"
] | 1 | 2017-10-20T09:57:36.000Z | 2017-10-20T09:57:36.000Z | src/algorithms.cpp | zjurelinac/LCP-BWT | eb73822999d6c742b29cd0ed537769f1b38a50e4 | [
"MIT"
] | null | null | null | src/algorithms.cpp | zjurelinac/LCP-BWT | eb73822999d6c742b29cd0ed537769f1b38a50e4 | [
"MIT"
] | null | null | null | // -----------------------------------------------------------------------------
// *****************************************************************************
//
// Implementation of algorithms to compute LCP with BWT transform.
// © 2017 All rights reserved.
//
// **********************************************... | 30.598684 | 104 | 0.532574 | zjurelinac |
6328438c95e940b83a35250c18e431e8305005ed | 3,266 | cpp | C++ | src/qt/reptiloidscoinbreadcrumb.cpp | mraksoll4/reptiloids | 839f8e115caf0351a34a65743b0bfab7c17f271f | [
"MIT"
] | null | null | null | src/qt/reptiloidscoinbreadcrumb.cpp | mraksoll4/reptiloids | 839f8e115caf0351a34a65743b0bfab7c17f271f | [
"MIT"
] | null | null | null | src/qt/reptiloidscoinbreadcrumb.cpp | mraksoll4/reptiloids | 839f8e115caf0351a34a65743b0bfab7c17f271f | [
"MIT"
] | null | null | null | // Copyright (c) 2018-2019 The Blocknet developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/reptiloidscoinbreadcrumb.h>
#include <qt/reptiloidscoinguiutil.h>
#include <QPainter>
#include <QPushButton>
#incl... | 31.403846 | 134 | 0.657685 | mraksoll4 |
632b950b496f6873e6e82d10ab7839e5057d5913 | 17,923 | cpp | C++ | src/qt/sellspage.cpp | slingcoin/sling | 953961d5302b2a895ce115f118e0b99455e4fa3a | [
"MIT"
] | null | null | null | src/qt/sellspage.cpp | slingcoin/sling | 953961d5302b2a895ce115f118e0b99455e4fa3a | [
"MIT"
] | null | null | null | src/qt/sellspage.cpp | slingcoin/sling | 953961d5302b2a895ce115f118e0b99455e4fa3a | [
"MIT"
] | null | null | null | #include "sellspage.h"
#include "ui_sellspage.h"
#include "ui_interface.h"
#include "createmarketlistingdialog.h"
#include "market.h"
#include "base58.h"
#include "init.h"
#include <QClipboard>
#include <QMessageBox>
#include <QDebug>
SellsPage::SellsPage(QWidget *parent) :
QWidget(parent),
ui(new Ui::SellsPa... | 35.351085 | 271 | 0.698097 | slingcoin |
632d8e43acfafc1b2f3563f518b7eec62b80f92f | 3,177 | cpp | C++ | train.cpp | Joeization/Othello | e61a19b0d8ea4a2967f6021ca6c7ac4cc346640e | [
"MIT"
] | null | null | null | train.cpp | Joeization/Othello | e61a19b0d8ea4a2967f6021ca6c7ac4cc346640e | [
"MIT"
] | null | null | null | train.cpp | Joeization/Othello | e61a19b0d8ea4a2967f6021ca6c7ac4cc346640e | [
"MIT"
] | null | null | null | #include "train.h"
train::train(){
for(int i=0;i<GrpSize;i++){
grp[i] = new ai(1);
tmp[i] = new ai(0);
}
board = new game();
}
train::~train(){
}
void train::mate(ai *a, ai *b, int id){
tmp[id] = new ai(0);
int m = rand()%acc;
for(int l=0;l<Layer-1;l++){
for(int fi=0;f... | 27.387931 | 69 | 0.35757 | Joeization |
6330634389420b3dc61ac6612616cb90d1c993a6 | 2,318 | cc | C++ | api/driver_options_helper.cc | ghollingworth/libedgetpu | d37e668cd9ef0e657b9e4e413df53f370532e87e | [
"Apache-2.0"
] | 99 | 2020-06-09T05:52:44.000Z | 2022-03-08T06:06:55.000Z | api/driver_options_helper.cc | ghollingworth/libedgetpu | d37e668cd9ef0e657b9e4e413df53f370532e87e | [
"Apache-2.0"
] | 35 | 2020-06-09T15:00:26.000Z | 2022-03-15T10:22:32.000Z | api/driver_options_helper.cc | ghollingworth/libedgetpu | d37e668cd9ef0e657b9e4e413df53f370532e87e | [
"Apache-2.0"
] | 23 | 2020-06-09T14:50:54.000Z | 2022-03-15T11:18:16.000Z | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 34.088235 | 78 | 0.70233 | ghollingworth |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.