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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d3fd9bae0dd465a76388a4d0a5dd8495045b9390 | 17,319 | cc | C++ | src/bin/d2/d_controller.cc | sebschrader/debian-pkg-isc-kea | 1bdb18f90c48dd9674374fb8454d0efb846656bc | [
"Apache-2.0"
] | null | null | null | src/bin/d2/d_controller.cc | sebschrader/debian-pkg-isc-kea | 1bdb18f90c48dd9674374fb8454d0efb846656bc | [
"Apache-2.0"
] | null | null | null | src/bin/d2/d_controller.cc | sebschrader/debian-pkg-isc-kea | 1bdb18f90c48dd9674374fb8454d0efb846656bc | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2013-2016 Internet Systems Consortium, Inc. ("ISC")
//
// 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 <config.h>
#include <d2/d2_log.h>
#i... | 34.29505 | 83 | 0.61089 | sebschrader |
3101d02513905cef9e7911ef61496d20aea7f6c7 | 396 | hpp | C++ | falcon/mpl/is_same.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | falcon/mpl/is_same.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | falcon/mpl/is_same.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef FALCON_MPL_IS_SAME_HPP
#define FALCON_MPL_IS_SAME_HPP
#include <falcon/mpl/integral_c.hpp>
#include <type_traits>
namespace falcon {
namespace mpl {
template<typename T, typename U>
struct is_same
{
static const bool value = std::is_same<T, U>::value;
using type = bool_<value>;
};
template<typename T, t... | 16.5 | 54 | 0.737374 | jonathanpoelen |
3105f491c08c2ae04b29d1d42c9f6fa988346bb1 | 5,712 | cpp | C++ | synthts_et/lib/fsc/fscinit.cpp | martnoumees/synthts_et | 8845b33514edef3e54ae0b45404615704c418142 | [
"Unlicense"
] | 19 | 2015-10-27T22:21:49.000Z | 2022-02-07T11:54:35.000Z | synthts_vr/lib/fsc/fscinit.cpp | ikiissel/synthts_vr | 33f2686dc9606aa95697ac0cf7e9031668bc34e8 | [
"Unlicense"
] | 8 | 2015-10-28T08:38:08.000Z | 2021-03-25T21:26:59.000Z | synthts_vr/lib/fsc/fscinit.cpp | ikiissel/synthts_vr | 33f2686dc9606aa95697ac0cf7e9031668bc34e8 | [
"Unlicense"
] | 11 | 2016-01-03T11:47:08.000Z | 2021-03-17T18:59:54.000Z | #include "stdfsc.h"
#include "fstype.h"
#include "fsstring.h"
#include "fsmemory.h"
#include "fsfixalloc.h"
#include "fscinit.h"
void __FSTestVariables() {
STATIC_ASSERT(sizeof(INT8)==1);
STATIC_ASSERT(sizeof(INT16)==2);
STATIC_ASSERT(sizeof(INT32)==4);
STATIC_ASSERT(sizeof(INT64)==8);
STATIC_ASSERT... | 24.727273 | 114 | 0.708508 | martnoumees |
310d15414e2ca0419532fcb67c7235f91882930e | 3,918 | cpp | C++ | Engine/source/HTTP/MultithreadedNetwork.cpp | kennykwok1/PlaygroundOSS | f75916582c3044bd59e83f86db56cf2703413a85 | [
"Apache-2.0"
] | 1 | 2018-06-13T15:43:42.000Z | 2018-06-13T15:43:42.000Z | Engine/source/HTTP/MultithreadedNetwork.cpp | kennykwok1/PlaygroundOSS | f75916582c3044bd59e83f86db56cf2703413a85 | [
"Apache-2.0"
] | null | null | null | Engine/source/HTTP/MultithreadedNetwork.cpp | kennykwok1/PlaygroundOSS | f75916582c3044bd59e83f86db56cf2703413a85 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2013 KLab Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 22.388571 | 77 | 0.701378 | kennykwok1 |
310d1b13a1ea6c59c99d4e1d94766bb1c7643f30 | 5,685 | cpp | C++ | modules/task_3/makarychev_s_foxes_algorithm/foxes_algorithm.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/makarychev_s_foxes_algorithm/foxes_algorithm.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2021-02-13T03:00:05.000Z | 2021-02-13T03:00:05.000Z | modules/task_3/makarychev_s_foxes_algorithm/foxes_algorithm.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2020-10-11T09:11:57.000Z | 2020-10-11T09:11:57.000Z | // Copyright 2020 Makarychev Sergey
#include "../../../modules/task_3/makarychev_s_foxes_algorithm/foxes_algorithm.h"
#include <mpi.h>
#include <iostream>
#include <random>
#include <algorithm>
#include <vector>
#include <limits>
#include <ctime>
#include <cmath>
MPI_Comm GridComm;
MPI_Comm ColComm;
MPI_Comm RowComm;
... | 36.677419 | 120 | 0.577485 | LioBuitrago |
3113ad3a32e9dda581fbd4643d86a3bbf914001d | 20,382 | cpp | C++ | Source/DataServerBK/src/EDSprotocol.cpp | vuonglequoc/ServerSimulator | 12bd6f24fcf957c657864a81da3dfb0467b48c2b | [
"MIT"
] | 7 | 2015-06-15T18:23:38.000Z | 2019-11-24T07:54:30.000Z | Source/DataServerBK/src/EDSprotocol.cpp | vuonglequoc/ServerSimulator | 12bd6f24fcf957c657864a81da3dfb0467b48c2b | [
"MIT"
] | null | null | null | Source/DataServerBK/src/EDSprotocol.cpp | vuonglequoc/ServerSimulator | 12bd6f24fcf957c657864a81da3dfb0467b48c2b | [
"MIT"
] | 4 | 2015-06-15T18:23:41.000Z | 2019-08-12T07:54:09.000Z | // EDSprotocol.cpp: implementation of the EDSprotocol class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "EDSprotocol.h"
#include "giocp.h"
#include "LogProc.h"
#include "winutil.h"
#include "Sprotocol.h"
#include "Query.h"
CQuery g_MuOnlineExDB;
#pragma p... | 25.350746 | 131 | 0.695565 | vuonglequoc |
311cf1214744ab4ecd843fda932f6cb6085b498b | 2,264 | cpp | C++ | code/libOGLIF/tests/main.cpp | tak2004/OpenGLVM | f2d8054619e5e1ac6c5f2ac6d5cdc9b62817675a | [
"Apache-2.0"
] | null | null | null | code/libOGLIF/tests/main.cpp | tak2004/OpenGLVM | f2d8054619e5e1ac6c5f2ac6d5cdc9b62817675a | [
"Apache-2.0"
] | null | null | null | code/libOGLIF/tests/main.cpp | tak2004/OpenGLVM | f2d8054619e5e1ac6c5f2ac6d5cdc9b62817675a | [
"Apache-2.0"
] | null | null | null | #include "precompiled.hpp"
#include <RadonFramework/Radon.hpp>
#include <RadonFramework/Diagnostics/Debugging/UnitTest/UnitTest.hpp>
#include <RadonFramework/Diagnostics/Debugging/UnitTest/TestSuite.hpp>
#include <RadonFramework/Diagnostics/Debugging/UnitTest/TestResultCollector.hpp>
#include <RadonFramework/Diagnostic... | 39.719298 | 100 | 0.786661 | tak2004 |
311d1b6629b70d95d4037ff31c6246f65532bcf0 | 2,024 | hh | C++ | neb/inc/com/centreon/engine/objects/contactgroup.hh | joe4568/centreon-broker | daf454371520989573c810be1f6dfca40979a75d | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/engine/objects/contactgroup.hh | joe4568/centreon-broker | daf454371520989573c810be1f6dfca40979a75d | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/engine/objects/contactgroup.hh | joe4568/centreon-broker | daf454371520989573c810be1f6dfca40979a75d | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2011-2013 Merethis
**
** This file is part of Centreon Engine.
**
** Centreon Engine is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Engine is distributed in the hope... | 28.507042 | 72 | 0.666502 | joe4568 |
311e9c7c7084785f17325b299a59e981f36c78be | 895 | cpp | C++ | src/osc/RTOSCListener.cpp | ijc8/RTcmix | f3bb33df961fe0b21370941afa7afe428995c908 | [
"Apache-2.0"
] | 40 | 2015-01-14T20:52:42.000Z | 2022-03-09T00:50:45.000Z | src/osc/RTOSCListener.cpp | ijc8/RTcmix | f3bb33df961fe0b21370941afa7afe428995c908 | [
"Apache-2.0"
] | 20 | 2015-01-26T19:02:59.000Z | 2022-01-30T18:00:39.000Z | src/osc/RTOSCListener.cpp | ijc8/RTcmix | f3bb33df961fe0b21370941afa7afe428995c908 | [
"Apache-2.0"
] | 14 | 2015-01-14T20:52:43.000Z | 2021-09-24T02:24:32.000Z | #include <iostream>
#include <cstring>
#include "RTOSCListener.h"
#include "lo/lo.h"
int score_handler(const char *path, const char *types, lo_arg ** argv,
int argc, void *data, void *user_data){
int (*parseCallback)(const char*, int) = (int (*)(const char*, int)) user_data;
char *theScore = &argv[0... | 27.121212 | 83 | 0.658101 | ijc8 |
3121c71f1c17246d3bd234266fee045941799ee5 | 7,155 | cpp | C++ | code/filetools/pythonf.cpp | cemacrr/bisicles_gia | ee3a4c96ca492568900c31501935288c00f583f3 | [
"BSD-3-Clause-LBNL"
] | null | null | null | code/filetools/pythonf.cpp | cemacrr/bisicles_gia | ee3a4c96ca492568900c31501935288c00f583f3 | [
"BSD-3-Clause-LBNL"
] | null | null | null | code/filetools/pythonf.cpp | cemacrr/bisicles_gia | ee3a4c96ca492568900c31501935288c00f583f3 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
//===========================================================================
// p... | 24.757785 | 146 | 0.554997 | cemacrr |
31245242cec2e29bd8fbada1dd4de3912305e81c | 598 | cpp | C++ | Read/src/Main/main.cpp | blackdragonx61/M2-JSON-CONVERTER | 9e125586b698daaf32ad1e96c0bc38b6bdd2aca3 | [
"MIT"
] | 4 | 2021-09-22T21:34:04.000Z | 2022-03-04T15:47:37.000Z | Read/src/Main/main.cpp | blackdragonx61/M2-JSON-CONVERTER | 9e125586b698daaf32ad1e96c0bc38b6bdd2aca3 | [
"MIT"
] | null | null | null | Read/src/Main/main.cpp | blackdragonx61/M2-JSON-CONVERTER | 9e125586b698daaf32ad1e96c0bc38b6bdd2aca3 | [
"MIT"
] | null | null | null | /*
* Author: blackdragonx61 / Mali
* 21 Feb 2022
*/
#include <iostream>
/*CLIENT*/
#include "../Read/Client/atlasinfo/atlasinfo.hpp"
#include "../Read/Client/item_desc/item_desc.hpp"
#include "../Read/Client/item_list/item_list.hpp"
#include "../Read/Client/msm/msm.hpp"
static void Read(ReadInterface&& c)
{
c.Print... | 18.6875 | 49 | 0.665552 | blackdragonx61 |
312900aa3315f0169cd57b48d7cb2da2f50b0b0e | 257 | cpp | C++ | example/main.cpp | churuxu/xpackage | a323f3488ff39349529702dce782d9c2097e65ae | [
"MIT"
] | 1 | 2020-06-01T06:44:12.000Z | 2020-06-01T06:44:12.000Z | example/main.cpp | churuxu/xpackage | a323f3488ff39349529702dce782d9c2097e65ae | [
"MIT"
] | null | null | null | example/main.cpp | churuxu/xpackage | a323f3488ff39349529702dce782d9c2097e65ae | [
"MIT"
] | 1 | 2020-06-04T16:29:53.000Z | 2020-06-04T16:29:53.000Z | #include <stdio.h>
#include <string.h>
#include "json.h"
int main(){
const char* str = "{\"hello\":\"world\"}";
json_value* jsonobj = json_parse(str, strlen(str));
const char* val = (*jsonobj)["hello"];
printf("value:%s\n", val);
return 0;
} | 23.363636 | 53 | 0.599222 | churuxu |
312c50548df2841808f3707d3173e25b3be12020 | 43,278 | cpp | C++ | Darcy_Lights_W_ButtonsANDSOUNDPlayMem/AudioSampleBeat5.cpp | Drc3p0/InteractivePallette | d7180d43533850803a3f83d1f5f49e20e32509f5 | [
"MIT"
] | 1 | 2019-10-23T17:46:42.000Z | 2019-10-23T17:46:42.000Z | Darcy_Lights_W_ButtonsANDSOUNDPlayMem/AudioSampleBeat5.cpp | Drc3p0/InteractivePallette | d7180d43533850803a3f83d1f5f49e20e32509f5 | [
"MIT"
] | null | null | null | Darcy_Lights_W_ButtonsANDSOUNDPlayMem/AudioSampleBeat5.cpp | Drc3p0/InteractivePallette | d7180d43533850803a3f83d1f5f49e20e32509f5 | [
"MIT"
] | null | null | null | // Audio data converted from WAV file by wav2sketch
#include "AudioSampleBeat5.h"
// Converted from 06.wav, using 44100 Hz, u-law encoding
const unsigned int AudioSampleBeat5[3873] = {
0x01003C5C,0x36363531,0x282E3234,0xADA1001F,0xB0B3B5B3,0x078B9AA6,0x28251D14,0xB19A1826,
0x92B2BAB8,0x333E3C30,0xCEC9BF95,0x3D88BFCA,... | 87.78499 | 88 | 0.898216 | Drc3p0 |
3131f1ee6c9298e396c5fe912830e79ca22b4d01 | 1,799 | cpp | C++ | tests/benchmark.cpp | oplatai/libbeatnik | 44ecb17ba181caf0270747029d1bc43a7e653f49 | [
"MIT"
] | 2 | 2018-06-11T08:37:18.000Z | 2018-06-12T08:12:04.000Z | tests/benchmark.cpp | oplatai/libbeatnik | 44ecb17ba181caf0270747029d1bc43a7e653f49 | [
"MIT"
] | 1 | 2018-06-05T08:07:42.000Z | 2018-06-11T00:52:06.000Z | tests/benchmark.cpp | reBass/libbeatnik | eaa2d5f0eae4aa1293c5afce323a5d29c331c335 | [
"MIT"
] | 2 | 2017-11-05T05:55:07.000Z | 2018-06-11T07:51:12.000Z | // Copyright (c) 2016-2018 Roman Beránek. All rights reserved.
//
// Released under MIT license. See LICENSE file.
#include <array>
#include <complex>
#include <re/beatnik/decoder/decoder.hpp>
#include <benchmark/benchmark.h>
static void BM_Adaptive_Threshold(benchmark::State& state) {
std::array<float, 512> in... | 24.986111 | 84 | 0.625903 | oplatai |
3132247ad91e2d37b83f9b44feb397662bfc3651 | 962 | hpp | C++ | sources/Models/GameState.hpp | EternalRat/Bomberman | d4d0c6dea61f7de1e71c6f182a6bf27407092356 | [
"MIT"
] | 6 | 2021-05-27T13:31:37.000Z | 2021-11-21T17:35:08.000Z | sources/Models/GameState.hpp | EternalRat/Bomberman | d4d0c6dea61f7de1e71c6f182a6bf27407092356 | [
"MIT"
] | 174 | 2021-05-12T14:10:04.000Z | 2021-06-26T11:29:39.000Z | sources/Models/GameState.hpp | EternalRat/Bomberman | d4d0c6dea61f7de1e71c6f182a6bf27407092356 | [
"MIT"
] | 2 | 2021-05-27T13:28:46.000Z | 2021-06-21T12:25:27.000Z | //
// Created by Zoe Roux on 5/24/21.
//
#pragma once
#include <unordered_map>
#include <Scene/Scene.hpp>
namespace BBM
{
//! @brief A class representing the current game state. This allow one to retain information between update calls.
class GameState
{
public:
//! @brief The list of scenes available.
en... | 20.468085 | 115 | 0.704782 | EternalRat |
3132a5247016c9789fd17917d960b4a3be53c6d6 | 7,092 | cpp | C++ | hi_dsp_library/dsp_basics/chunkware_simple_dynamics/SimpleLimit.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | hi_dsp_library/dsp_basics/chunkware_simple_dynamics/SimpleLimit.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | hi_dsp_library/dsp_basics/chunkware_simple_dynamics/SimpleLimit.cpp | Matt-Dub/HISE | ae2dd1653e1c8d749a9088edcd573de6252b0b96 | [
"Intel"
] | null | null | null | /*
* Simple Limiter (source)
*
* File : SimpleLimit.cpp
* Library : SimpleSource
* Version : 1.12
* Implements : SimpleLimit
*
* � 2006, ChunkWare Music Software, OPEN-SOURCE
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation... | 34.096154 | 89 | 0.645516 | Matt-Dub |
31340f8a5d1fa2cc06e4b2afbc420126075a0c62 | 57,901 | cpp | C++ | source/SGShaderGenerator.cpp | mojocorp/ShaderGen | c8fb947112bc9126d06fbbe629c7a30fd33290a1 | [
"BSD-3-Clause"
] | 81 | 2015-02-01T03:55:35.000Z | 2022-03-17T00:16:52.000Z | source/SGShaderGenerator.cpp | mojocorp/ShaderGen | c8fb947112bc9126d06fbbe629c7a30fd33290a1 | [
"BSD-3-Clause"
] | 2 | 2018-09-02T19:28:24.000Z | 2021-02-12T13:28:24.000Z | source/SGShaderGenerator.cpp | mojocorp/ShaderGen | c8fb947112bc9126d06fbbe629c7a30fd33290a1 | [
"BSD-3-Clause"
] | 18 | 2015-05-11T04:14:51.000Z | 2019-09-27T18:45:47.000Z | /************************************************************************
* *
* Copyright (C) 2002-2005 3Dlabs Inc. Ltd. *
* *
* ... | 47.773102 | 100 | 0.370391 | mojocorp |
313532d7260bffcd7705a4ef7c0cd176a17b349a | 8,331 | cpp | C++ | Engine/Src/SFEngine/StreamDB/SFStreamDBDirectory.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | Engine/Src/SFEngine/StreamDB/SFStreamDBDirectory.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | Engine/Src/SFEngine/StreamDB/SFStreamDBDirectory.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) Kyungkun Ko
//
// Author : KyungKun Ko
//
// Description : StreamDB Directory warper
//
//
////////////////////////////////////////////////////////////////////////////////
#include "SFEnginePCH.h"
#in... | 26.616613 | 125 | 0.660305 | blue3k |
313d734341e2c17e288ed18fac313546e8060bed | 232 | cpp | C++ | Transmitters/Old Version/X_CTRL_STM32F10x/RC_CTRL_II_v4.5/USER/Handle/Handle_PowerCtrl.cpp | FASTSHIFT/X-CTRL | 683ffe3b40222e1da6ff156b6595c691cd09fec1 | [
"MIT"
] | 181 | 2019-09-20T15:49:09.000Z | 2022-03-23T01:27:29.000Z | Transmitters/Old Version/X_CTRL_STM32F10x/RC_CTRL_II_v4.5/USER/Handle/Handle_PowerCtrl.cpp | DogDod/X-CTRL | 683ffe3b40222e1da6ff156b6595c691cd09fec1 | [
"MIT"
] | null | null | null | Transmitters/Old Version/X_CTRL_STM32F10x/RC_CTRL_II_v4.5/USER/Handle/Handle_PowerCtrl.cpp | DogDod/X-CTRL | 683ffe3b40222e1da6ff156b6595c691cd09fec1 | [
"MIT"
] | 75 | 2019-10-25T02:53:27.000Z | 2022-03-23T01:25:00.000Z | #include "FileGroup.h"
bool State_PowerSaving = false;
void SysClock_Config()
{
Init_Value();
if(State_PowerSaving);
//SysClock_Init(F_CPU_72MHz);
else
SysClock_Init(F_CPU_128MHz);
Delay_Init();
}
| 15.466667 | 37 | 0.663793 | FASTSHIFT |
31490a139bd68a6451d196c70c2fafa9769074f1 | 1,451 | cpp | C++ | C 3 Assignment/firstIdea.cpp | CouldYouBeAnyNaugty/ProgFundamentals | fd46c1972f7e129f64478c960c62d6aab8bcc2e7 | [
"MIT"
] | 1 | 2021-02-16T13:40:46.000Z | 2021-02-16T13:40:46.000Z | C 3 Assignment/firstIdea.cpp | threepoint14159265359/ProgFundamentals | fd46c1972f7e129f64478c960c62d6aab8bcc2e7 | [
"MIT"
] | null | null | null | C 3 Assignment/firstIdea.cpp | threepoint14159265359/ProgFundamentals | fd46c1972f7e129f64478c960c62d6aab8bcc2e7 | [
"MIT"
] | null | null | null | #include <iostream>
///First Idea
using namespace std;
int main()
{
int N, M, K;
cerr << "N? ";
cin >> N;
cerr << "M? ";
cin >> M;
cerr << "K? ";
cin >> K;
int n = ((N+1) * (M+1));
int Data[n+2];
int matrix[N+1][M+1];
int Arraycnt = 0;
int Array[n... | 19.346667 | 46 | 0.329428 | CouldYouBeAnyNaugty |
3149cd2bab4c5587960ce8fc7198c7a8c05e68fe | 107,971 | hpp | C++ | include/strf/detail/single_byte_charsets.hpp | robhz786/strf | 72163cb10f5cc725788bbce74ce16e4024489734 | [
"BSL-1.0"
] | 49 | 2019-12-16T10:39:22.000Z | 2022-03-28T02:32:47.000Z | include/strf/detail/single_byte_charsets.hpp | ckerr/strf | 72163cb10f5cc725788bbce74ce16e4024489734 | [
"BSL-1.0"
] | 36 | 2019-12-13T00:31:22.000Z | 2022-03-13T18:22:14.000Z | include/strf/detail/single_byte_charsets.hpp | ckerr/strf | 72163cb10f5cc725788bbce74ce16e4024489734 | [
"BSL-1.0"
] | 3 | 2019-12-07T20:05:51.000Z | 2021-11-30T02:45:35.000Z | #ifndef STRF_DETAIL_SINGLE_BYTE_CHARSETS_HPP
#define STRF_DETAIL_SINGLE_BYTE_CHARSETS_HPP
// Copyright (C) (See commit logs on github.com/robhz786/strf)
// 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)
#incl... | 40.49925 | 89 | 0.586565 | robhz786 |
314e5e8e7874d0096c31cb77133d4d223b6d476a | 3,511 | cpp | C++ | FinalProject/task_sensor.cpp | jbarry510/me-405 | f7f7d011794c23d751090de37fb47121d0e1811b | [
"MIT"
] | null | null | null | FinalProject/task_sensor.cpp | jbarry510/me-405 | f7f7d011794c23d751090de37fb47121d0e1811b | [
"MIT"
] | null | null | null | FinalProject/task_sensor.cpp | jbarry510/me-405 | f7f7d011794c23d751090de37fb47121d0e1811b | [
"MIT"
] | null | null | null | //***********************************************************************************************************
/** @file task_sensor.cpp
* This file contains the header for a task class that creates an IMU sensor object and adc objects for the
* IR distance sensors. The readings are saved to a shared variables to be... | 44.443038 | 109 | 0.598405 | jbarry510 |
314eccf180330d656831b786750245e3b79779d7 | 1,519 | cc | C++ | src/initializer/parser_activation.cc | ncic-sugon/blitz | ea9a06dc78ef15d772e36d5d47ffac8d3f46034d | [
"BSD-2-Clause"
] | 149 | 2020-07-14T08:59:59.000Z | 2021-12-16T03:06:41.000Z | src/initializer/parser_activation.cc | ten1123love/blitz | ea9a06dc78ef15d772e36d5d47ffac8d3f46034d | [
"BSD-2-Clause"
] | null | null | null | src/initializer/parser_activation.cc | ten1123love/blitz | ea9a06dc78ef15d772e36d5d47ffac8d3f46034d | [
"BSD-2-Clause"
] | 130 | 2020-07-14T09:00:21.000Z | 2021-12-16T03:06:42.000Z | #include "initializer/parser.h"
#include "blitz.h"
#include "transforms/logistic.h"
#include "transforms/rectlin.h"
#include "transforms/softmax.h"
namespace blitz {
template<template <typename> class TensorType, typename DType>
shared_ptr<Activation<TensorType, DType> > Parser::SetActivation(const YAML::Node& node)... | 29.784314 | 96 | 0.675444 | ncic-sugon |
3154fb276a0bb7f8ae40be9d4d29a44e9cf18b1c | 789 | cpp | C++ | search-in-rotated-sorted-array-ii/search-in-rotated-sorted-array-ii.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | 1 | 2022-02-14T07:57:07.000Z | 2022-02-14T07:57:07.000Z | search-in-rotated-sorted-array-ii/search-in-rotated-sorted-array-ii.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | search-in-rotated-sorted-array-ii/search-in-rotated-sorted-array-ii.cpp | sharmishtha2401/leetcode | 0c7389877afb64b3ff277f075ed9c87b24cb587b | [
"MIT"
] | null | null | null | class Solution {
public:
bool search(vector<int>& nums, int target) {
int lo=0, hi=nums.size()-1, mid;
while(lo<hi)
{
mid=lo+(hi-lo)/2;
if(nums[mid]==target)
return true;
if(nums[mid]>nums[hi])
{
if(... | 25.451613 | 59 | 0.340938 | sharmishtha2401 |
31571f27b4cbe96cd6cc81a69ca4a6870cef37c1 | 4,411 | cpp | C++ | examples/music/music.cpp | Fordi/picosystem | 6b91ad198b00507a7ff780a86ce5a2be2f650a07 | [
"MIT"
] | 41 | 2021-10-06T20:29:27.000Z | 2022-03-28T10:45:46.000Z | examples/music/music.cpp | Fordi/picosystem | 6b91ad198b00507a7ff780a86ce5a2be2f650a07 | [
"MIT"
] | 21 | 2021-10-08T05:41:54.000Z | 2022-02-16T11:25:37.000Z | examples/music/music.cpp | Fordi/picosystem | 6b91ad198b00507a7ff780a86ce5a2be2f650a07 | [
"MIT"
] | 15 | 2021-10-03T13:52:31.000Z | 2022-03-13T06:30:42.000Z | #include <math.h>
#include "picosystem.hpp"
using namespace picosystem;
voice_t piano = voice(20, 200, 50, 50);
struct note_t {
uint32_t f, d;
};
std::array<note_t, 25> notes = {{
{ _, 4},
{C4, 2}, { _, 1}, {G3, 1},
{C4, 2}, { _, 1}, {G3, 1},
{C4, 1}, {G3, 1}, {C4, 1}, {E4, 1},
{G4, 4}... | 25.0625 | 88 | 0.531172 | Fordi |
315b28dbbb37e55996d60828846814e8952cd425 | 307 | hxx | C++ | Class8Online/CNetwork/class/state.hxx | GDMiao/Class8 | 3518407da4489bb083e549b5f7b893871aecdc0d | [
"MIT"
] | null | null | null | Class8Online/CNetwork/class/state.hxx | GDMiao/Class8 | 3518407da4489bb083e549b5f7b893871aecdc0d | [
"MIT"
] | null | null | null | Class8Online/CNetwork/class/state.hxx | GDMiao/Class8 | 3518407da4489bb083e549b5f7b893871aecdc0d | [
"MIT"
] | null | null | null | #ifndef __GNET_GCLIENT_STATE
#define __GNET_GCLIENT_STATE
#ifdef SERVER_SOURCE
#include "protocol.h"
#else
#include "gnproto.h"
#endif
namespace GNET
{
extern GNET::Protocol::Manager::Session::State state_GLoginClient;
//extern GNET::Protocol::Manager::Session::State state_MFSClientClient;
};
#endif
| 15.35 | 71 | 0.785016 | GDMiao |
31656fd0b0c723c5e7a1087323e717336b5deed6 | 541 | cpp | C++ | ch6/floodFill/floodFill_simple_demo.cpp | icyplayer/OpenCV3Learning | c2d107b6b8895086f499c6be16c2e15521d36799 | [
"MIT"
] | null | null | null | ch6/floodFill/floodFill_simple_demo.cpp | icyplayer/OpenCV3Learning | c2d107b6b8895086f499c6be16c2e15521d36799 | [
"MIT"
] | null | null | null | ch6/floodFill/floodFill_simple_demo.cpp | icyplayer/OpenCV3Learning | c2d107b6b8895086f499c6be16c2e15521d36799 | [
"MIT"
] | null | null | null | /*
* floodFill_simple_demo.cpp
*
* Created on: 2017年3月13日
* Author: icyplayer
*/
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main_floodFill_simple()
{
Mat image = imread("6.jpg");
namedWindow("origin");
namedWind... | 15.457143 | 63 | 0.667283 | icyplayer |
3168adf2cfcf321fde62929047c45ef2853aa0e9 | 1,253 | cpp | C++ | Code en C++ de Mage War Online/A_RobeOfTheAncientElite.cpp | Drakandes/Portfolio_NicolasPaulBonneau | c8115d5ecd6c284113766d64d0f907c074315cff | [
"MIT"
] | null | null | null | Code en C++ de Mage War Online/A_RobeOfTheAncientElite.cpp | Drakandes/Portfolio_NicolasPaulBonneau | c8115d5ecd6c284113766d64d0f907c074315cff | [
"MIT"
] | null | null | null | Code en C++ de Mage War Online/A_RobeOfTheAncientElite.cpp | Drakandes/Portfolio_NicolasPaulBonneau | c8115d5ecd6c284113766d64d0f907c074315cff | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "A_RobeOfTheAncientElite.h"
A_RobeOfTheAncientElite::A_RobeOfTheAncientElite(int current_language)
{
name_armor = current_language == English_E ? "Robe of the ancient elite" : "Robe de l'Ancien elite";
armor_level_recommanded = current_language == English_E ? "Level 21 required" ... | 20.883333 | 102 | 0.770152 | Drakandes |
3169c98d35edcf2a3096eb98b595736741bafe97 | 26,397 | cpp | C++ | Source/DrawContourLines.cpp | atanub/CivilRoadDesignUtilArx | e863ddb47aa2639cdee4f8550c724370380962d4 | [
"MIT"
] | 6 | 2019-03-17T09:52:25.000Z | 2021-08-21T03:21:22.000Z | Source/DrawContourLines.cpp | atanub/CivilRoadDesignUtilArx | e863ddb47aa2639cdee4f8550c724370380962d4 | [
"MIT"
] | null | null | null | Source/DrawContourLines.cpp | atanub/CivilRoadDesignUtilArx | e863ddb47aa2639cdee4f8550c724370380962d4 | [
"MIT"
] | 4 | 2019-10-26T16:35:44.000Z | 2021-09-04T03:10:18.000Z | //DrawContourLines.cpp
#include "StdAfx.h"
#include <Adscodes.h>
#include <math.h>
#include "DrawContourLines.h"
#include "DrawUtil.h"
#include "Util.h"
#include "DwgParamObj.h"
#include "TINData.h"
#include "ContourAnnotation.h"
#include "Line2PLine.h"
#include "ContourParamDlg.h"
//For Command Invocation
void CDrawC... | 26.85351 | 216 | 0.655226 | atanub |
316aaa35a05a08af19cd55036f2178693494acbb | 14,951 | cpp | C++ | project/assimp.cpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | 47 | 2017-07-27T11:12:05.000Z | 2021-07-02T19:45:23.000Z | project/assimp.cpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | 7 | 2018-06-07T13:59:46.000Z | 2020-10-08T12:14:58.000Z | project/assimp.cpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | 19 | 2017-09-04T10:54:24.000Z | 2020-11-03T17:55:10.000Z | #include <iostream>
#include <vector>
#include <memory>
#include <fstream>
#include "sre/Texture.hpp"
#include "sre/Renderer.hpp"
#include "sre/Material.hpp"
#include "sre/SDLRenderer.hpp"
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/euler_angles.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/tran... | 35.261792 | 153 | 0.544111 | mhooITU |
316b3315153a67274db8367034c10361fea5da6e | 20,560 | cpp | C++ | 8_Double/double.cpp | HelinaBerhane/Project | 2b5aacabba219cd39d4d4eaba21a294507c68e9f | [
"MIT"
] | null | null | null | 8_Double/double.cpp | HelinaBerhane/Project | 2b5aacabba219cd39d4d4eaba21a294507c68e9f | [
"MIT"
] | null | null | null | 8_Double/double.cpp | HelinaBerhane/Project | 2b5aacabba219cd39d4d4eaba21a294507c68e9f | [
"MIT"
] | null | null | null | #include <iostream> //cout
#include <string>
#include "double.h"
#include <gmd.h> //LaGenMatDouble
#include <laslv.h> //LUFactorizeIP, LaLUInverseIP, etc.
#include <blas3pp.h>
#include <random> //random_device, mt19937
#include <cstdlib> //rand, srand
#include <math.h>
using namespace std;
/* ----... | 34.323873 | 171 | 0.622763 | HelinaBerhane |
317348ac583fdc70f41f68f2aff2e85aaa26bd43 | 8,341 | cpp | C++ | Editor/Sources/o2Editor/AssetsWindow/FoldersTree.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 181 | 2015-12-09T08:53:36.000Z | 2022-03-26T20:48:39.000Z | Editor/Sources/o2Editor/AssetsWindow/FoldersTree.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 29 | 2016-04-22T08:24:04.000Z | 2022-03-06T07:06:28.000Z | Editor/Sources/o2Editor/AssetsWindow/FoldersTree.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 13 | 2018-04-24T17:12:04.000Z | 2021-11-12T23:49:53.000Z | #include "o2Editor/stdafx.h"
#include "FoldersTree.h"
#include "o2/Assets/Assets.h"
#include "o2/Assets/AssetsTree.h"
#include "o2/Assets/Types/FolderAsset.h"
#include "o2/Render/Sprite.h"
#include "o2/Scene/UI/UIManager.h"
#include "o2/Scene/UI/WidgetLayer.h"
#include "o2/Scene/UI/WidgetLayout.h"
#include "o2/Scene/U... | 27.989933 | 123 | 0.725093 | zenkovich |
3177de8860dcfde8377df0c1f0fc84f47b7ac416 | 63 | cpp | C++ | chapter-19/19.5.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-19/19.5.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-19/19.5.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | // When want to use dynamic type object's non-virtual members.
| 31.5 | 62 | 0.761905 | zero4drift |
317c4ef3ccfad1fbea9a95c472428d91eed0bbd9 | 5,789 | cpp | C++ | src/adc/adc_correction.cpp | Molegvas/MySERCOM | 4d2538162b5e685a5a91700a531ef91642091075 | [
"MIT"
] | null | null | null | src/adc/adc_correction.cpp | Molegvas/MySERCOM | 4d2538162b5e685a5a91700a531ef91642091075 | [
"MIT"
] | null | null | null | src/adc/adc_correction.cpp | Molegvas/MySERCOM | 4d2538162b5e685a5a91700a531ef91642091075 | [
"MIT"
] | null | null | null | /*
1) Снимите любой соединительный кабель, экран или перемычку с Вашего Arduino ZERO
2) Соедините вывод A1 с ближайшим выводом GND, используя самую короткую перемычку
3) подсоедините штифт А2 к штифту 3,3 В с помощью максимально короткой перемычки
4) Подключите Arduino ZERO к компьютеру с помощью USB-кабеля, по... | 25.390351 | 108 | 0.654517 | Molegvas |
318014080395f3e67fa928e2ce86258a6a409ad7 | 4,803 | cpp | C++ | src/plugins/fossil/optionspage.cpp | nomadbyte/qtcreator-plugin-fossil | 9cab30aa7e07d5ccd975f6f9d32fa3f5656c364a | [
"MIT"
] | 3 | 2016-11-04T02:44:41.000Z | 2018-02-05T18:59:42.000Z | src/plugins/fossil/optionspage.cpp | nomadbyte/qtcreator-plugin-fossil | 9cab30aa7e07d5ccd975f6f9d32fa3f5656c364a | [
"MIT"
] | 2 | 2016-10-29T10:52:35.000Z | 2018-07-03T21:54:33.000Z | src/plugins/fossil/optionspage.cpp | nomadbyte/qtcreator-plugin-fossil | 9cab30aa7e07d5ccd975f6f9d32fa3f5656c364a | [
"MIT"
] | 2 | 2018-03-15T19:59:05.000Z | 2021-01-28T04:41:58.000Z | /**************************************************************************
** This file is part of Fossil VCS plugin for Qt Creator
**
** Copyright (c) 2013 - 2020, Artur Shepilko, <qtc-fossil@nomadbyte.com>.
**
** Based on Bazaar VCS plugin for Qt Creator by Hugues Delorme.
**
** Permission is hereby granted, fre... | 45.742857 | 106 | 0.741412 | nomadbyte |
318ab2373a76e4ca0fc09e14d991fda2d0ab315f | 2,915 | cpp | C++ | 1943_arcadeLovers/Source/ModulePlayerIntro.cpp | FernaToty/ArcadeLovers | e46a54b826334fb269a19d15c61931bc455af076 | [
"MIT"
] | 8 | 2021-02-15T09:20:52.000Z | 2021-12-18T14:55:26.000Z | 1943_arcadeLovers/Source/ModulePlayerIntro.cpp | FernaToty/ArcadeLovers | e46a54b826334fb269a19d15c61931bc455af076 | [
"MIT"
] | null | null | null | 1943_arcadeLovers/Source/ModulePlayerIntro.cpp | FernaToty/ArcadeLovers | e46a54b826334fb269a19d15c61931bc455af076 | [
"MIT"
] | 1 | 2021-03-04T21:53:07.000Z | 2021-03-04T21:53:07.000Z | #include "ModulePlayerIntro.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "ModuleInput.h"
#include "ModuleRender.h"
#include "ModuleWindow.h"
#include "ModuleParticles.h"
#include "ModuleAudio.h"
#include "ModuleCollisions.h"
#include "ModuleFadeToBlack.h"
#include "ModuleFonts.h"
#include "Animatio... | 24.090909 | 78 | 0.681304 | FernaToty |
318eafde824240edefc0ef38ec4c5a2e98ab6575 | 4,574 | cpp | C++ | test/token/sample.cpp | itzaayush/jwt-cpp | d892ac9e6caa4ca6b7de546ccfe8a9f8764c0763 | [
"MIT"
] | 102 | 2016-09-02T03:57:05.000Z | 2022-03-22T12:23:59.000Z | test/token/sample.cpp | itzaayush/jwt-cpp | d892ac9e6caa4ca6b7de546ccfe8a9f8764c0763 | [
"MIT"
] | 41 | 2017-01-26T14:57:40.000Z | 2020-10-16T11:28:49.000Z | test/token/sample.cpp | itzaayush/jwt-cpp | d892ac9e6caa4ca6b7de546ccfe8a9f8764c0763 | [
"MIT"
] | 55 | 2017-02-11T22:27:14.000Z | 2022-03-31T08:29:22.000Z | #include <sstream>
#include <string>
#include "gtest/gtest.h"
#include "jwt/jwt_all.h"
TEST(Sample, sign) {
// Setup a signer
HS256Validator signer("secret!");
// Create the json payload that expires 01/01/2017 @ 12:00am (UTC)
::json json = {{"sub", "subject"}, {"exp", 1483228800}};
// Let's enco... | 33.144928 | 80 | 0.581329 | itzaayush |
3190ee786c5cd1d589d0c5fb5cfafcaf146648ba | 825 | cpp | C++ | #0133.clone-graph.cpp | hosomi/LeetCode | aba8fae8e37102b33dba8fd4adf1f018c395a4db | [
"MIT"
] | null | null | null | #0133.clone-graph.cpp | hosomi/LeetCode | aba8fae8e37102b33dba8fd4adf1f018c395a4db | [
"MIT"
] | null | null | null | #0133.clone-graph.cpp | hosomi/LeetCode | aba8fae8e37102b33dba8fd4adf1f018c395a4db | [
"MIT"
] | null | null | null | /*
// Definition for a Node.
class Node {
public:
int val;
vector<Node*> neighbors;
Node() {
val = 0;
neighbors = vector<Node*>();
}
Node(int _val) {
val = _val;
neighbors = vector<Node*>();
}
Node(int _val, vector<Node*> _neighbors) {
val = _val;
... | 19.186047 | 61 | 0.498182 | hosomi |
319aba8f2ecfec1e8c13ef04e5bb8da476ca43ad | 301 | cpp | C++ | source/solvers/optimal.cpp | krisvanrens/master-mind | af1efa659c4c56003318186bb18031581b79693c | [
"MIT"
] | null | null | null | source/solvers/optimal.cpp | krisvanrens/master-mind | af1efa659c4c56003318186bb18031581b79693c | [
"MIT"
] | null | null | null | source/solvers/optimal.cpp | krisvanrens/master-mind | af1efa659c4c56003318186bb18031581b79693c | [
"MIT"
] | null | null | null | #include "optimal.hpp"
#include <fmt/format.h>
#include <cmath>
#include "../helpers.hpp"
#include "../master-mind.hpp"
SolverOptimal::SolverOptimal(const MasterMind& game, bool verbose)
: Solver{game, verbose} {
}
unsigned long SolverOptimal::solve() {
// TODO
return number_of_tries_;
}
| 15.842105 | 66 | 0.704319 | krisvanrens |
319d8f426ba26fd184b852c5a77265607f1f1f7f | 21,376 | cpp | C++ | src/flight.cpp | Hugo-NF/Concurrent-ATC | 462b00aed1f9992fe30e5072a2311bd0fc92a376 | [
"MIT"
] | null | null | null | src/flight.cpp | Hugo-NF/Concurrent-ATC | 462b00aed1f9992fe30e5072a2311bd0fc92a376 | [
"MIT"
] | null | null | null | src/flight.cpp | Hugo-NF/Concurrent-ATC | 462b00aed1f9992fe30e5072a2311bd0fc92a376 | [
"MIT"
] | null | null | null | #include "../include/flight.h"
void flight::evaluate_message(flight* flight_ref, radio_message msg) {
std::size_t found = msg.sender.find_first_of("_");
if(found != std::string::npos) {
printf("[%s] %s", msg.sender.c_str(), msg.content.c_str());
}
else {
printf("[%s_TWR] %s", msg.sende... | 43.62449 | 174 | 0.501918 | Hugo-NF |
319fd79b37097887f4b6d4dd8f8b46d1f351d205 | 35,635 | cpp | C++ | src/campaign/camplib/camplist.cpp | Terebinth/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 117 | 2015-01-13T14:48:49.000Z | 2022-03-16T01:38:19.000Z | src/campaign/camplib/camplist.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 4 | 2015-05-01T13:09:53.000Z | 2017-07-22T09:11:06.000Z | src/campaign/camplib/camplist.cpp | darongE/freefalcon-central | c28d807183ab447ef6a801068aa3769527d55deb | [
"BSD-2-Clause"
] | 78 | 2015-01-13T09:27:47.000Z | 2022-03-18T14:39:09.000Z | /******************************************************************************
/*
/* CdbList managing routines
/*
/*****************************************************************************/
#include "cmpglobl.h"
#include "F4Vu.h"
#include "objectiv.h"
#include "listadt.h"
#include "CampList.h"
#include "gtmobj.h"... | 26.43546 | 122 | 0.572695 | Terebinth |
31a294dc571a88fcce5dac7ae855216bc04000ca | 13,217 | cpp | C++ | gstd/src/io_File.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null | gstd/src/io_File.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null | gstd/src/io_File.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "File.h"
#include "Printer.h"
#include "Reader.h"
#include "Timer.h"
#include "Writer.h"
#include "Dependencies.h"
namespace msii810161816
{
namespace gstd
{
namespace file
{
int fileOpenBufferReps = 1;
double fileOpenBufferDelay = 0.1;
std::string joinpa... | 28.795207 | 174 | 0.543164 | georgephilipp |
31a812fdd26cc292267e53e88de06d44cd248e53 | 7,102 | cpp | C++ | src/fdm_c172/c172_KFC325_AP.cpp | paperoga-dev/mscsim | a5bd3b88745bf8d91e85fd001b0972662ff8e410 | [
"MIT"
] | 195 | 2019-12-01T00:21:06.000Z | 2022-03-29T09:06:07.000Z | src/fdm_c172/c172_KFC325_AP.cpp | paperoga-dev/mscsim | a5bd3b88745bf8d91e85fd001b0972662ff8e410 | [
"MIT"
] | 4 | 2019-06-03T12:41:17.000Z | 2021-01-30T21:47:00.000Z | src/fdm_c172/c172_KFC325_AP.cpp | paperoga-dev/mscsim | a5bd3b88745bf8d91e85fd001b0972662ff8e410 | [
"MIT"
] | 26 | 2019-12-01T02:42:26.000Z | 2022-02-14T11:50:49.000Z | /****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, ... | 26.901515 | 107 | 0.451422 | paperoga-dev |
b3b17724c24dee1a9cf9c724612232620050e984 | 520 | cpp | C++ | 15-Static/15-Static/main.cpp | jianlong108/grammar-of-C-plus-plus | 8eda24baf6bb7c1df9af63287b6c45debf54bc6e | [
"Apache-2.0"
] | null | null | null | 15-Static/15-Static/main.cpp | jianlong108/grammar-of-C-plus-plus | 8eda24baf6bb7c1df9af63287b6c45debf54bc6e | [
"Apache-2.0"
] | null | null | null | 15-Static/15-Static/main.cpp | jianlong108/grammar-of-C-plus-plus | 8eda24baf6bb7c1df9af63287b6c45debf54bc6e | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// 15-Static
//
// Created by wangjianlong on 2018/12/24.
// Copyright © 2018 wangjianlong. All rights reserved.
//
#include <iostream>
#include "Car.hpp"
using namespace std;
int main(int argc, const char * argv[]) {
Car car = Car();
Car *p_car = new Car();
//静态成员可以通过对象指针(对象指针->静态... | 18.571429 | 55 | 0.590385 | jianlong108 |
b3b1c649d2e4a8cf9b7c5abd7f0be4ec8c63402b | 1,228 | cpp | C++ | src/modem/stream-command.cpp | ed7coyne/firebase-arduino | ce36b957cd4712398fc510af61c682708148c4d8 | [
"Apache-2.0"
] | 1 | 2019-10-30T07:06:10.000Z | 2019-10-30T07:06:10.000Z | src/modem/stream-command.cpp | ed7coyne/firebase-arduino | ce36b957cd4712398fc510af61c682708148c4d8 | [
"Apache-2.0"
] | null | null | null | src/modem/stream-command.cpp | ed7coyne/firebase-arduino | ce36b957cd4712398fc510af61c682708148c4d8 | [
"Apache-2.0"
] | 2 | 2020-10-25T09:34:38.000Z | 2021-03-11T12:58:52.000Z | #include "modem/commands.h"
namespace firebase {
namespace modem {
bool StreamCommand::execute(const String& command,
InputStream* in, OutputStream* out) {
if (in == nullptr || out == nullptr) {
return false;
}
if (command != "BEGIN_STREAM") {
return false;
}
String pat... | 23.615385 | 70 | 0.576547 | ed7coyne |
b3b2b1248dfaea4acdd48fdc4e665e65faf89ca5 | 4,469 | cpp | C++ | tests/shared_ptr_atomic.cpp | rockdreamer/throwing_ptr | cd28490ebf9be803497a9fff733de62295d8288e | [
"BSL-1.0"
] | 2 | 2020-12-11T15:46:26.000Z | 2021-02-02T05:26:11.000Z | tests/shared_ptr_atomic.cpp | rockdreamer/throwing_ptr | cd28490ebf9be803497a9fff733de62295d8288e | [
"BSL-1.0"
] | null | null | null | tests/shared_ptr_atomic.cpp | rockdreamer/throwing_ptr | cd28490ebf9be803497a9fff733de62295d8288e | [
"BSL-1.0"
] | null | null | null | // Copyright Claudio Bantaloukas 2017-2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <catch.hpp>
#include <throwing/shared_ptr.hpp>
TEST_CASE("atomic_is_lock_free std::shared_ptr co... | 34.643411 | 79 | 0.65518 | rockdreamer |
b3b3306c936a55d80d5775bd0759f1e41a131d54 | 6,413 | cpp | C++ | hamlet/lemur.cpp | delta4k/infinitelemurs | f0e09dcfdcf3b3e562775a7f6c8b979fed222038 | [
"Apache-2.0"
] | null | null | null | hamlet/lemur.cpp | delta4k/infinitelemurs | f0e09dcfdcf3b3e562775a7f6c8b979fed222038 | [
"Apache-2.0"
] | null | null | null | hamlet/lemur.cpp | delta4k/infinitelemurs | f0e09dcfdcf3b3e562775a7f6c8b979fed222038 | [
"Apache-2.0"
] | null | null | null |
/*****************************************************************************\
Copyright (c) 2011-2017
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.apach... | 31.436275 | 84 | 0.52721 | delta4k |
b3b7125232e9224279910259f9c7c4bbd9b77ac5 | 2,132 | hpp | C++ | core/actor/include/worker.hpp | masscry/badbaby | f0b2e793081491ed7598d3170725fe4b48ae1fff | [
"MIT"
] | null | null | null | core/actor/include/worker.hpp | masscry/badbaby | f0b2e793081491ed7598d3170725fe4b48ae1fff | [
"MIT"
] | null | null | null | core/actor/include/worker.hpp | masscry/badbaby | f0b2e793081491ed7598d3170725fe4b48ae1fff | [
"MIT"
] | null | null | null | /**
* @file worker.hpp
*
* Class implements thread which processes actors actions.
*
*/
#pragma once
#ifndef __BB_CORE_ACTOR_WORKER_HEADER__
#define __BB_CORE_ACTOR_WORKER_HEADER__
#include <thread>
#include <vector>
#include <mutex>
#include <condition_variable>
#include <list>
#include <atomic>
#include <deq... | 22.680851 | 75 | 0.673077 | masscry |
b3c0b77ef8717b81d3483cab334d5cc17829e7dd | 481 | cpp | C++ | Ex3_2_pi_parallel-for.cpp | DF4IAH/OpenMP | 9eb4c429d3d9da799fe0a5767d91b2c654358bdf | [
"MIT"
] | null | null | null | Ex3_2_pi_parallel-for.cpp | DF4IAH/OpenMP | 9eb4c429d3d9da799fe0a5767d91b2c654358bdf | [
"MIT"
] | null | null | null | Ex3_2_pi_parallel-for.cpp | DF4IAH/OpenMP | 9eb4c429d3d9da799fe0a5767d91b2c654358bdf | [
"MIT"
] | null | null | null | #include <stdio.h>
#include "omp.h"
static long num_steps = 160000;
static long cnt_threads = 16;
int main(void)
{
double sum = 0.0;
const double step = 1.0 / (double)num_steps;
omp_set_num_threads(cnt_threads);
#pragma omp parallel for
for (long i = 0; i < num_steps; i++)
{
double x = (i + 0.5) * step;
... | 15.03125 | 45 | 0.607069 | DF4IAH |
b3c130abcc07295800c269d720273993fe2e7768 | 268 | cpp | C++ | src/dice_combinations.cpp | SurajWarrier/cses-problem-set | 6248468f526caef10b2d56d8d6ec71059799d60e | [
"MIT"
] | null | null | null | src/dice_combinations.cpp | SurajWarrier/cses-problem-set | 6248468f526caef10b2d56d8d6ec71059799d60e | [
"MIT"
] | null | null | null | src/dice_combinations.cpp | SurajWarrier/cses-problem-set | 6248468f526caef10b2d56d8d6ec71059799d60e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
const int mxn=1e6, M=1e9+7;
int n;
ll dp[mxn+1];
int main() {
cin>>n;
dp[0]=1;
for(int i=1;i<=n;i++) {
for(int j=1;j<=min(6,i);j++) {
dp[i]=(dp[i]+dp[i-j])%M;
}
}
cout<<dp[n];
return 0;
} | 14.888889 | 32 | 0.544776 | SurajWarrier |
b3ccb8589e2073de747f640dfdd73aad00c14b83 | 9,156 | cpp | C++ | 01_Flightcontroller/Code/FlightcontrollerV1/Core/Src/ICM20689.cpp | Pluscrafter/SHARKSKY | f3d5e96c9f4cd25e4c03537f1f8d9b9756042dac | [
"MIT"
] | 3 | 2019-11-28T23:18:23.000Z | 2019-12-02T14:01:02.000Z | 01_Flightcontroller/Code/FlightcontrollerV1/Core/Src/ICM20689.cpp | Pluscrafter/SHARKSKY | f3d5e96c9f4cd25e4c03537f1f8d9b9756042dac | [
"MIT"
] | null | null | null | 01_Flightcontroller/Code/FlightcontrollerV1/Core/Src/ICM20689.cpp | Pluscrafter/SHARKSKY | f3d5e96c9f4cd25e4c03537f1f8d9b9756042dac | [
"MIT"
] | 1 | 2019-12-02T14:34:11.000Z | 2019-12-02T14:34:11.000Z | /*
* ICM20689.cpp
*
* Created on: 21.04.2019
* Author: Pluscrafter
*/
#include "ICM20689.h"
namespace Sensor {
ICM20689::ICM20689(){
}
ICM20689::~ICM20689() {
// TODO Auto-generated destructor stub
}
void ICM20689::Initalize(){
spi1.WriteRegister(PWR_MGMT_1, 0x40); // RESET IMU
HAL_Delay(100)... | 25.362881 | 129 | 0.617519 | Pluscrafter |
b3cd2853138fcc11fcdb363e00bdde867dae8908 | 189 | cpp | C++ | 07_functions/02/02.cpp | bilyanhadzhi/intro_to_programming_labs | 083bfaad1fdb423c0d8320b3e882316fa56c0bf8 | [
"MIT"
] | 3 | 2020-11-05T10:11:31.000Z | 2020-11-14T16:10:27.000Z | 07_functions/02/02.cpp | bilyanhadzhi/intro_to_programming_labs | 083bfaad1fdb423c0d8320b3e882316fa56c0bf8 | [
"MIT"
] | null | null | null | 07_functions/02/02.cpp | bilyanhadzhi/intro_to_programming_labs | 083bfaad1fdb423c0d8320b3e882316fa56c0bf8 | [
"MIT"
] | 1 | 2021-06-17T13:21:58.000Z | 2021-06-17T13:21:58.000Z | #include <iostream>
int max(int a, int b)
{
if (a >= b)
{
return a;
}
else
{
return b;
}
}
int main()
{
std::cout << max(4, 5) << std::endl;
}
| 9.947368 | 40 | 0.407407 | bilyanhadzhi |
b3d1f1abd18d92ad2da4823f2d43656a1949537b | 13,900 | cpp | C++ | dependencies/DevIL/DevIL/src-ILUT/src/ilut_directx.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 478 | 2015-01-04T16:59:53.000Z | 2022-03-07T20:28:07.000Z | dependencies/DevIL/DevIL/src-ILUT/src/ilut_directx.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 83 | 2015-01-15T21:45:06.000Z | 2021-11-08T11:01:48.000Z | dependencies/DevIL/DevIL/src-ILUT/src/ilut_directx.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 175 | 2015-01-04T03:30:39.000Z | 2020-01-27T17:08:14.000Z | //-----------------------------------------------------------------------------
//
// ImageLib Utility Toolkit Sources
// Copyright (C) 2000-2017 by Denton Woods
// Last modified: 12/25/2001
//
// Filename: src-ILUT/src/ilut_directx.c
//
// Description: DirectX 8 functions for textures
//
//----------------------------... | 25.598527 | 146 | 0.711655 | amvb |
b3d29e3618edcccac7581e4ade7a5ebcd307c1fa | 4,394 | cpp | C++ | STM32F3/libraries/roboter/eeprom.cpp | BlackBrix/Arduino_STM32_PLC | 96d4edb8b6ee1bd763bb8d796d4ef5f77c326d43 | [
"Unlicense"
] | 2 | 2017-12-15T01:37:45.000Z | 2018-01-29T01:44:20.000Z | STM32F3/libraries/roboter/eeprom.cpp | BlackBrix/Arduino_STM32_PLC | 96d4edb8b6ee1bd763bb8d796d4ef5f77c326d43 | [
"Unlicense"
] | null | null | null | STM32F3/libraries/roboter/eeprom.cpp | BlackBrix/Arduino_STM32_PLC | 96d4edb8b6ee1bd763bb8d796d4ef5f77c326d43 | [
"Unlicense"
] | 1 | 2020-07-03T07:57:06.000Z | 2020-07-03T07:57:06.000Z | #include <wirish/wirish.h>
#include <libmaple/i2c.h>
#include <string.h>
#include "eeprom.h"
#include "debug.h"
/*
Source Code fuer 24C128 EEPROM (16Kbyte)
*
__ __
A0 -| |- VCC
A1 -| |- WP --> unconnected low: write enabled
A2 -| |- SCL
VSS -|_____|- SDA
... | 25.847059 | 116 | 0.56873 | BlackBrix |
b3d4f20b091206b1c6593e32ed4285aee5f131b0 | 753 | cpp | C++ | pembroke/src/pembroke/http/request.cpp | JohnMurray/pembroke | 880545899dda12c0038936aa07f92170bd799f6a | [
"MIT"
] | null | null | null | pembroke/src/pembroke/http/request.cpp | JohnMurray/pembroke | 880545899dda12c0038936aa07f92170bd799f6a | [
"MIT"
] | 13 | 2019-09-27T02:18:37.000Z | 2020-06-21T12:55:40.000Z | pembroke/src/pembroke/http/request.cpp | JohnMurray/pembroke | 880545899dda12c0038936aa07f92170bd799f6a | [
"MIT"
] | null | null | null | #include "pembroke/http/request.hpp"
extern "C" {
#include <event2/buffer.h>
#include <event2/http.h>
}
namespace pembroke::http {
// ---
// ConstRequest Implementation
// ---
ConstRequest::ConstRequest(evhttp_request *req) noexcept
: m_req(req) {}
ConstRequest::~ConstRequest() noexcept {... | 24.290323 | 82 | 0.612218 | JohnMurray |
b3de437214e721b993b9ae0cf19cdfdcc8440975 | 3,477 | cpp | C++ | src/container.cpp | Olddies710/The-Forgotten-Client | 8b7979619ea76bc29581122440d09f241afc175d | [
"Zlib"
] | 1 | 2022-01-15T00:00:27.000Z | 2022-01-15T00:00:27.000Z | src/container.cpp | Olddies710/The-Forgotten-Client | 8b7979619ea76bc29581122440d09f241afc175d | [
"Zlib"
] | null | null | null | src/container.cpp | Olddies710/The-Forgotten-Client | 8b7979619ea76bc29581122440d09f241afc175d | [
"Zlib"
] | 3 | 2021-10-14T02:36:56.000Z | 2022-03-22T21:03:31.000Z | /*
The Forgotten Client
Copyright (C) 2020 Saiyans King
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
in... | 21.20122 | 108 | 0.708369 | Olddies710 |
b3deabcb70b7faee9c58e1d806ac003bcc6499e0 | 1,898 | cpp | C++ | tests/queue/queue_properties.cpp | AGindinson/SYCL-CTS | fe32ef47ea9c4b8b4294520b834bc1783a79c004 | [
"Apache-2.0"
] | null | null | null | tests/queue/queue_properties.cpp | AGindinson/SYCL-CTS | fe32ef47ea9c4b8b4294520b834bc1783a79c004 | [
"Apache-2.0"
] | null | null | null | tests/queue/queue_properties.cpp | AGindinson/SYCL-CTS | fe32ef47ea9c4b8b4294520b834bc1783a79c004 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
//
// SYCL 2020 Conformance Test Suite
//
// Copyright: (c) 2017 by Codeplay Software LTD. All Rights Reserved.
//
*******************************************************************************/
#include "../common/common.h"
#define T... | 27.911765 | 80 | 0.560063 | AGindinson |
b3df5164a053772607d0741b60b109cf87f53e5d | 80,237 | cpp | C++ | content/resources/listPickerJs.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | 8 | 2019-05-05T16:38:05.000Z | 2021-11-09T11:45:38.000Z | content/resources/listPickerJs.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | null | null | null | content/resources/listPickerJs.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | 4 | 2018-12-14T07:52:46.000Z | 2021-06-11T18:06:09.000Z |
namespace content {
char listPickerJs[12829] = {
0x22, 0x75, 0x73, 0x65, 0x20, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x22, 0x3B, 0x76, 0x61, 0x72,
0x20, 0x67, 0x6C, 0x6F, 0x62, 0x61, 0x6C, 0x3D, 0x7B, 0x61, 0x72, 0x67, 0x75, 0x6D, 0x65, 0x6E,
0x74, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x3A,... | 99.18047 | 99 | 0.640016 | gergul |
b3df814b7d90533ae15d1505685e00a062bb3c73 | 8,354 | cpp | C++ | src/pdfp/crypto/md5.cpp | sandym/pdfp | 7f3173acd43177599a148dc5e9be4229504f7831 | [
"MIT"
] | null | null | null | src/pdfp/crypto/md5.cpp | sandym/pdfp | 7f3173acd43177599a148dc5e9be4229504f7831 | [
"MIT"
] | null | null | null | src/pdfp/crypto/md5.cpp | sandym/pdfp | 7f3173acd43177599a148dc5e9be4229504f7831 | [
"MIT"
] | null | null | null |
#include "md5.h"
namespace {
uint8_t PADDING[64] = {
0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x... | 36.008621 | 80 | 0.438113 | sandym |
b3e0a1c88591416361879fca3db34959e6388364 | 176 | cpp | C++ | ConstexprInNamespaceScopeVSGlobalScope/Main.cpp | haxpor/cpp_st | 43d1492266c6e01e6e243c834fba26eedf1ab9f3 | [
"MIT"
] | 2 | 2021-06-10T22:05:01.000Z | 2021-09-17T08:21:20.000Z | ConstexprInNamespaceScopeVSGlobalScope/Main.cpp | haxpor/cpp_st | 43d1492266c6e01e6e243c834fba26eedf1ab9f3 | [
"MIT"
] | null | null | null | ConstexprInNamespaceScopeVSGlobalScope/Main.cpp | haxpor/cpp_st | 43d1492266c6e01e6e243c834fba26eedf1ab9f3 | [
"MIT"
] | 1 | 2020-02-25T04:26:52.000Z | 2020-02-25T04:26:52.000Z | #include "Consumer1.h"
#include "Consumer2.h"
int main()
{
Consumer1 c1;
Consumer2 c2;
c1.Consumer1_PrintMemoryAddress();
c2.Consumer2_PrintMemoryAddress();
return 0;
}
| 13.538462 | 35 | 0.738636 | haxpor |
b3e238c18fe58507b82f6ad3a8105f50879a2cb3 | 2,319 | cpp | C++ | Sources/Models/Model.cpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Models/Model.cpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Models/Model.cpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | #include "Model.hpp"
#include "Scenes/Scenes.hpp"
#include "Resources/Resources.hpp"
namespace acid
{
std::shared_ptr<Model> Model::Create(const Metadata &metadata)
{
return Scenes::Get()->GetModelRegister().Create(metadata);
}
std::shared_ptr<Model> Model::Create(const std::string &filename)
{
return Scenes::Get(... | 24.15625 | 90 | 0.724019 | liuping1997 |
b3e52e8a527ab1eb135cf84d220377e0f7d1ca33 | 897 | cc | C++ | library/src/main/cpp/opengl/parse_config.cc | TianLuluC/trinity | 309618a75782274379c5d3b77472bcc2bcf7adcb | [
"Apache-2.0"
] | 788 | 2019-09-16T03:36:49.000Z | 2022-03-23T01:26:01.000Z | library/src/main/cpp/opengl/parse_config.cc | TianLuluC/trinity | 309618a75782274379c5d3b77472bcc2bcf7adcb | [
"Apache-2.0"
] | 118 | 2019-09-27T15:27:48.000Z | 2021-12-31T16:12:17.000Z | library/src/main/cpp/opengl/parse_config.cc | TianLuluC/trinity | 309618a75782274379c5d3b77472bcc2bcf7adcb | [
"Apache-2.0"
] | 253 | 2019-09-16T08:09:24.000Z | 2022-03-20T10:11:06.000Z | //
// Created by wlanjie on 2020/7/4.
//
#include "parse_config.h"
#include <string>
#include "error_code.h"
namespace trinity {
int ParseConfig::ParseEffectConfig(char *config) {
return 0;
}
int ParseConfig::ParseExtraEffectConfig(char* config, SubExtraEffect* effect) {
auto json = cJSON_Parse(config);
... | 25.628571 | 79 | 0.662207 | TianLuluC |
b3e980b0a8da9c709c3199535a6ab0a1869213b7 | 2,560 | cpp | C++ | exodus/libpgexodus/src/callexodus_posix.cpp | rdmenezes/exodusdb | f732e366b74ff4697890ec0682bc3697b8cb0bfb | [
"MIT"
] | null | null | null | exodus/libpgexodus/src/callexodus_posix.cpp | rdmenezes/exodusdb | f732e366b74ff4697890ec0682bc3697b8cb0bfb | [
"MIT"
] | null | null | null | exodus/libpgexodus/src/callexodus_posix.cpp | rdmenezes/exodusdb | f732e366b74ff4697890ec0682bc3697b8cb0bfb | [
"MIT"
] | null | null | null | #include "mvconfig.h"
#ifdef EXODUS_IPC_POSIX
//could be .c instead of .cpp actually
//http://beej.us/guide/bgipc/output/html/multipage/unixsock.html
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <errno.h>
//for ... | 26.666667 | 145 | 0.677734 | rdmenezes |
b3ee290af353a8a060c4e3b356b646d78b1112d4 | 740 | hpp | C++ | src/crypto/library/OpenSSL_BIO.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/crypto/library/OpenSSL_BIO.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/crypto/library/OpenSSL_BIO.hpp | 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/.
#pragma once
#include "Internal.hpp"
extern "C" {
#include <... | 20 | 70 | 0.698649 | nopdotcom |
b3f1a7ca31c9bf745085fac70a1f1903d1eff80c | 808,988 | cpp | C++ | GodsEyeCollab/GodsEyeMain/App/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValuesTable.cpp | sarsiz/GodsEye | 68fc0abf6af534af87008ffa4c256f2fb0a28c58 | [
"MIT"
] | null | null | null | GodsEyeCollab/GodsEyeMain/App/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValuesTable.cpp | sarsiz/GodsEye | 68fc0abf6af534af87008ffa4c256f2fb0a28c58 | [
"MIT"
] | null | null | null | GodsEyeCollab/GodsEyeMain/App/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValuesTable.cpp | sarsiz/GodsEye | 68fc0abf6af534af87008ffa4c256f2fb0a28c58 | [
"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 const int32_t ... | 39.362982 | 81 | 0.871207 | sarsiz |
b3f28e00c94d0c5d2d76d46495601901fc929ce2 | 3,269 | cpp | C++ | 090.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | 090.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | 090.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | /*
Let A and B be the arrangements of the two cubes respectively.
For each n in 0, 1, ..., 9, we consider four cases:
1: n is in both A and B.
2: n is on only A.
3: n is in only B.
4: n is in neither A nor B.
We get a decision tree with branching factor 4 and depth 10. It ... | 28.426087 | 128 | 0.556133 | LeeYiyuan |
b3f736cce629726adc9143306586281e07411669 | 1,124 | cpp | C++ | p745/p745.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | 1 | 2019-10-07T05:00:21.000Z | 2019-10-07T05:00:21.000Z | p745/p745.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | p745/p745.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | // unfinished. Brutal force. TLE.
class WordFilter {
public:
int n = 0;
vector<string> dict;
vector<int> len;
WordFilter(vector<string> words) {
dict = words;
n = dict.size();
for (int i = 0; i < n; ++i)
len.push_back(dict[i].length());
}
int f(string prefix, string ... | 22.938776 | 68 | 0.457295 | suzyz |
b601d9233fc17a9306385ebe0a1bacde430f3c0a | 2,945 | hpp | C++ | src/common.hpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | src/common.hpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | src/common.hpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014 DataStax
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 writing, softwar... | 28.592233 | 74 | 0.820034 | Paycasso |
b6061aaaa6e02c2381b5d81e8a97167f849675f6 | 487 | cpp | C++ | tests/stl.cpp | srijanshetty/Algorithms | 6f10a3f9f2632cbf00aac68899ccfcf28c4014bc | [
"MIT"
] | 1 | 2021-07-13T03:49:31.000Z | 2021-07-13T03:49:31.000Z | tests/stl.cpp | srijanshetty/Algorithms | 6f10a3f9f2632cbf00aac68899ccfcf28c4014bc | [
"MIT"
] | null | null | null | tests/stl.cpp | srijanshetty/Algorithms | 6f10a3f9f2632cbf00aac68899ccfcf28c4014bc | [
"MIT"
] | 1 | 2018-10-24T16:53:26.000Z | 2018-10-24T16:53:26.000Z | #include <algorithm>
#include <iostream>
#include <iterator>
#include <string>
#include <functional>
#include <vector>
using namespace std;
class object {
public:
char operator() (char c) {
return tolower(c);
}
};
int main() {
int A[] = {1,2,3,4};
vector<int> list(A, A + 4);
... | 18.730769 | 79 | 0.583162 | srijanshetty |
b606638fe6fe94545cdaed003c860e2662d7bfe6 | 50,233 | cpp | C++ | Library/Private/Pegasus/Public/Pegasus/VolumetricIndex.cpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | 3 | 2021-06-02T05:06:48.000Z | 2022-01-26T09:39:44.000Z | Library/Private/Pegasus/Public/Pegasus/VolumetricIndex.cpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | null | null | null | Library/Private/Pegasus/Public/Pegasus/VolumetricIndex.cpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <cassert>
#include <Pegasus/RecordUtility.hpp>
#include <Pegasus/Storage.hpp>
#include <Pegasus/VolumetricIndex.hpp>
namespace Emergence::Pegasus
{
constexpr std::size_t GetMaxLeafCoordinateOnAxis (std::size_t _dimensions)
{
return std::size_t (1u) << (Constants::VolumetricIndex::LEV... | 37.017686 | 120 | 0.64376 | KonstantinTomashevich |
b6066856640533fcbf1aa02b7ea352c8b73bb836 | 15,838 | cpp | C++ | src/demo/Application.cpp | JKot-Coder/OpenDemo | 8b9554914f5bab08df47e032486ca668a560c97c | [
"BSD-3-Clause"
] | null | null | null | src/demo/Application.cpp | JKot-Coder/OpenDemo | 8b9554914f5bab08df47e032486ca668a560c97c | [
"BSD-3-Clause"
] | null | null | null | src/demo/Application.cpp | JKot-Coder/OpenDemo | 8b9554914f5bab08df47e032486ca668a560c97c | [
"BSD-3-Clause"
] | null | null | null | #include "Application.hpp"
#include "common/OnScopeExit.hpp"
#include "common/Time.hpp"
#include "common/debug/LeakDetector.hpp"
#include "gapi/CommandList.hpp"
#include "gapi/CommandQueue.hpp"
#include "gapi/Fence.hpp"
#include "gapi/GpuResourceViews.hpp"
#include "gapi/MemoryAllocation.hpp"
#include "gapi/SwapChain... | 39.106173 | 161 | 0.579934 | JKot-Coder |
b6072a2cdcd0aa537195c0da2cc4281dd08684e9 | 10,459 | cpp | C++ | ArcDPS Boon Table/main.cpp | Meme-sys/GW2-ArcDPS-Boon-Table | 022963f7a7475811c84fc0df4d5aacbb1190ec96 | [
"MIT"
] | null | null | null | ArcDPS Boon Table/main.cpp | Meme-sys/GW2-ArcDPS-Boon-Table | 022963f7a7475811c84fc0df4d5aacbb1190ec96 | [
"MIT"
] | null | null | null | ArcDPS Boon Table/main.cpp | Meme-sys/GW2-ArcDPS-Boon-Table | 022963f7a7475811c84fc0df4d5aacbb1190ec96 | [
"MIT"
] | null | null | null | /*
* arcdps combat api example
*/
#include <cstdint>
#include <Windows.h>
#include <string>
#include "imgui\imgui.h"
#include "simpleini\SimpleIni.h"
#include "ArcdpsDataStructures.h"
#include "Player.h"
#include "Tracker.h"
#include "AppChart.h"
#include "Helpers.h"
/* proto/globals */
arcdps_exports arc_exports;
... | 24.78436 | 159 | 0.704943 | Meme-sys |
b61ab1d332593718da256aef1894d860ff23e8b8 | 17,888 | cpp | C++ | QT428.cpp | mkotyk/qt428 | 1c8d23ecb590f8d1fe363353226d376a9d8c2df3 | [
"Apache-2.0"
] | 4 | 2018-08-01T11:12:40.000Z | 2020-09-03T08:31:03.000Z | QT428.cpp | mkotyk/qt428 | 1c8d23ecb590f8d1fe363353226d376a9d8c2df3 | [
"Apache-2.0"
] | 9 | 2017-02-06T23:33:14.000Z | 2017-02-15T21:57:37.000Z | QT428.cpp | mkotyk/qt428 | 1c8d23ecb590f8d1fe363353226d376a9d8c2df3 | [
"Apache-2.0"
] | 1 | 2019-03-06T02:09:01.000Z | 2019-03-06T02:09:01.000Z | #include "QT428.hpp"
#include <string.h>
#include <stdint.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <fstream>
#include <algorithm>
#include "Utils.hpp"
bool QT428::process(void)
{
struct timeval timeout;
fd_set readFDS;
FD_ZERO... | 41.311778 | 118 | 0.561158 | mkotyk |
b61bd80d96137c10cb87ee056c53e2f570fb75e4 | 726 | cpp | C++ | dialogthread.cpp | damien-maussion/Rotoscop | 9ce3a94ff6817c0ad7293364e31087efd3eae4ed | [
"MIT"
] | null | null | null | dialogthread.cpp | damien-maussion/Rotoscop | 9ce3a94ff6817c0ad7293364e31087efd3eae4ed | [
"MIT"
] | null | null | null | dialogthread.cpp | damien-maussion/Rotoscop | 9ce3a94ff6817c0ad7293364e31087efd3eae4ed | [
"MIT"
] | null | null | null | #include "dialogthread.h"
#include "ui_dialogthread.h"
DialogThread::DialogThread(QString title, QString text, QThread *t, QWidget *parent) :
QDialog(parent),
ui(new Ui::DialogThread),
thread(t)
{
ui->setupUi(this);
setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint);
se... | 22.6875 | 104 | 0.669421 | damien-maussion |
b621a5d502b666b53692b6ea629ad38cd5fac30e | 630 | cpp | C++ | Basil/src/Platform/OpenGL/OpenGLUniformBuffer.cpp | Tamookk/Basil | bdcdf4e6e13e64a34416b4412d366594f9d46f56 | [
"Apache-2.0"
] | null | null | null | Basil/src/Platform/OpenGL/OpenGLUniformBuffer.cpp | Tamookk/Basil | bdcdf4e6e13e64a34416b4412d366594f9d46f56 | [
"Apache-2.0"
] | null | null | null | Basil/src/Platform/OpenGL/OpenGLUniformBuffer.cpp | Tamookk/Basil | bdcdf4e6e13e64a34416b4412d366594f9d46f56 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Platform/OpenGL/OpenGLUniformBuffer.h"
#include <glad/glad.h>
namespace Basil
{
// Constructor
OpenGLUniformBuffer::OpenGLUniformBuffer(uint32_t size, uint32_t binding)
{
glCreateBuffers(1, &rendererID);
glNamedBufferData(rendererID, size, nullptr, GL_DYNAMIC_DRAW);
glBindBufferBas... | 23.333333 | 84 | 0.763492 | Tamookk |
b6292c3d0f182d49a95ce4f31ff8b46ca80ccccb | 9,515 | hpp | C++ | gears/io/fprint.hpp | Rapptz/Gears | ce65bf135057939c19710286f772a874504efeb4 | [
"MIT"
] | 16 | 2015-01-18T13:40:22.000Z | 2021-11-08T11:52:35.000Z | gears/io/fprint.hpp | Rapptz/Gears | ce65bf135057939c19710286f772a874504efeb4 | [
"MIT"
] | 3 | 2015-01-17T01:23:26.000Z | 2015-03-30T22:30:01.000Z | gears/io/fprint.hpp | Rapptz/Gears | ce65bf135057939c19710286f772a874504efeb4 | [
"MIT"
] | 3 | 2017-10-21T05:42:58.000Z | 2021-06-07T18:04:40.000Z | // The MIT License (MIT)
// Copyright (c) 2012-2014 Danny Y., Rapptz
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// us... | 36.041667 | 124 | 0.525171 | Rapptz |
b62ffaeafe632ff1d5c33765754015521ac0d886 | 1,214 | hpp | C++ | lib/tsnumber.hpp | gabb99/tsjson | 0e1493ae3ee3ba1597e49751dcf714e04c93c88a | [
"MIT"
] | null | null | null | lib/tsnumber.hpp | gabb99/tsjson | 0e1493ae3ee3ba1597e49751dcf714e04c93c88a | [
"MIT"
] | null | null | null | lib/tsnumber.hpp | gabb99/tsjson | 0e1493ae3ee3ba1597e49751dcf714e04c93c88a | [
"MIT"
] | null | null | null | //
// tsnumber.hpp
// tsjson
//
// Created by Gabriel Beauchemin on 2018-11-27.
// Copyright © 2018 Gabriel Beauchemin. All rights reserved.
//
#ifndef tsnumber_h
#define tsnumber_h
#include "tsbindings.h"
namespace tsjson
{
// Note this behave as a simple wrapper of a float(double) value
class number : publ... | 28.904762 | 105 | 0.672158 | gabb99 |
ac08a8a4b7c68492337ff05ffd5fed76914b2079 | 14,174 | hpp | C++ | gl_shims.hpp | yenhsianghuang/15-466-f18-game3 | 955e8ce7e423d9a163022da8897e9f2bce89ccc3 | [
"CC-BY-3.0"
] | null | null | null | gl_shims.hpp | yenhsianghuang/15-466-f18-game3 | 955e8ce7e423d9a163022da8897e9f2bce89ccc3 | [
"CC-BY-3.0"
] | null | null | null | gl_shims.hpp | yenhsianghuang/15-466-f18-game3 | 955e8ce7e423d9a163022da8897e9f2bce89ccc3 | [
"CC-BY-3.0"
] | null | null | null | #ifndef GL_SHIMS_HPP
#define GL_SHIMS_HPP 1
#ifndef PROTOTYPES
#define PROTOTYPES 1
#include "glcorearb.h"
void init_gl_shims(); //will throw on failure.
//Prototypes for 1.0,1.1 functionality, pretty sure that already exists:
extern "C" {
// GL_VERSION_1_0 prototypes:
GLAPI void APIENTRY glCullFace (GLenum mode);... | 38.93956 | 177 | 0.84274 | yenhsianghuang |
ac0a0f58d83a1f0316468b910e2d9b47559f1274 | 3,927 | cpp | C++ | lib/includeGP2X/Source/Dynamics/Contacts/b2Conservative.cpp | grz0zrg/ES | 2f416ad96e3f48c45f289c2b27635438de09d56f | [
"MIT"
] | null | null | null | lib/includeGP2X/Source/Dynamics/Contacts/b2Conservative.cpp | grz0zrg/ES | 2f416ad96e3f48c45f289c2b27635438de09d56f | [
"MIT"
] | null | null | null | lib/includeGP2X/Source/Dynamics/Contacts/b2Conservative.cpp | grz0zrg/ES | 2f416ad96e3f48c45f289c2b27635438de09d56f | [
"MIT"
] | 1 | 2020-11-03T22:50:03.000Z | 2020-11-03T22:50:03.000Z | /*
* Copyright (c) 2007 Erin Catto http://www.gphysics.com
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,... | 23.945122 | 91 | 0.634581 | grz0zrg |
ac0bbfc6810346289b256b3cc62a97fcc12003c4 | 3,358 | cpp | C++ | src/lib/asn1/asn1_str.cpp | shobhitps/botan | 1088c316e2b7113043c2c22151287d0416e4998e | [
"BSD-2-Clause"
] | 1 | 2021-12-02T18:12:56.000Z | 2021-12-02T18:12:56.000Z | src/lib/asn1/asn1_str.cpp | shobhitps/botan | 1088c316e2b7113043c2c22151287d0416e4998e | [
"BSD-2-Clause"
] | null | null | null | src/lib/asn1/asn1_str.cpp | shobhitps/botan | 1088c316e2b7113043c2c22151287d0416e4998e | [
"BSD-2-Clause"
] | null | null | null | /*
* Simple ASN.1 String Types
* (C) 1999-2007,2020 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/asn1_obj.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
#include <botan/internal/charset.h>
#include <botan/internal/ct_utils.h>
namespace Botan {
names... | 24.333333 | 88 | 0.618523 | shobhitps |
ac0fd793c013b63a5860cc69837cc765a456052b | 69 | cpp | C++ | WavePlugNoGUI.cpp | minexew/LostTech | 46f94409e29adc1f314585f666a10034b1b12d48 | [
"MIT"
] | null | null | null | WavePlugNoGUI.cpp | minexew/LostTech | 46f94409e29adc1f314585f666a10034b1b12d48 | [
"MIT"
] | null | null | null | WavePlugNoGUI.cpp | minexew/LostTech | 46f94409e29adc1f314585f666a10034b1b12d48 | [
"MIT"
] | null | null | null |
#ifndef WP_NO_GUI
#define WP_NO_GUI
#endif
#include "WavePlug.cpp"
| 9.857143 | 23 | 0.768116 | minexew |
ac1481db0e60093482067c22cd8f8cf7556aeca5 | 17,645 | cpp | C++ | Source/ThreadStorage.cpp | aasensio/Lightweaver | 9a261e72235f05df548148da140012f40dbd1e4b | [
"MIT"
] | 13 | 2020-01-13T14:01:23.000Z | 2022-03-11T08:36:45.000Z | Source/ThreadStorage.cpp | aasensio/Lightweaver | 9a261e72235f05df548148da140012f40dbd1e4b | [
"MIT"
] | 30 | 2020-01-17T13:00:37.000Z | 2022-03-07T12:08:37.000Z | Source/ThreadStorage.cpp | aasensio/Lightweaver | 9a261e72235f05df548148da140012f40dbd1e4b | [
"MIT"
] | 4 | 2021-07-07T11:21:07.000Z | 2021-11-23T06:52:02.000Z | #include "ThreadStorage.hpp"
#include "Lightweaver.hpp"
#include <algorithm>
namespace LwInternal
{
TransitionStorageFactory::TransitionStorageFactory(Transition* t) : trans(t)
{}
Transition* TransitionStorageFactory::copy_transition()
{
if (!trans)
return nullptr;
tStorage.emplace_back(std::make_un... | 27.02144 | 107 | 0.554265 | aasensio |
ac19b1b92d29ddeebde652a63c4b5c305644d93f | 2,312 | cpp | C++ | sockchat/threadctx.cpp | sockchat/server | 1d698daebf0d06a4d693330fdfddec0dc3a57ef8 | [
"Apache-2.0"
] | 2 | 2016-01-27T18:19:02.000Z | 2016-01-30T15:14:47.000Z | sockchat/threadctx.cpp | sockchat/server | 1d698daebf0d06a4d693330fdfddec0dc3a57ef8 | [
"Apache-2.0"
] | 3 | 2016-01-27T18:18:09.000Z | 2016-01-27T19:01:02.000Z | sockchat/threadctx.cpp | sockchat/server | 1d698daebf0d06a4d693330fdfddec0dc3a57ef8 | [
"Apache-2.0"
] | null | null | null | #include "cthread.h"
ThreadContext::Connection::Connection(sc::Socket *sock) {
this->sock = sock;
}
ThreadContext::ThreadContext(sc::Socket *sock) {
this->pendingConns.push_back(Connection(sock));
}
void ThreadContext::Finish() {
for(auto i = this->conns.begin(); i != this->conns.end(); )
i = Clo... | 24.083333 | 118 | 0.595588 | sockchat |
ac1b2fd39d5d4c436e5317ccac528ede7469dab6 | 6,145 | cpp | C++ | src/tendisplus/utils/status.cpp | EpicArena/Tendis | 07c70c643740e698cb47412e7f9decd41f4776c6 | [
"MIT"
] | 1 | 2021-05-14T01:03:31.000Z | 2021-05-14T01:03:31.000Z | src/tendisplus/utils/status.cpp | EpicArena/Tendis | 07c70c643740e698cb47412e7f9decd41f4776c6 | [
"MIT"
] | 5 | 2021-07-28T06:15:07.000Z | 2021-07-28T06:16:57.000Z | src/tendisplus/utils/status.cpp | EpicArena/Tendis | 07c70c643740e698cb47412e7f9decd41f4776c6 | [
"MIT"
] | 1 | 2021-05-14T01:03:42.000Z | 2021-05-14T01:03:42.000Z | // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
// Please refer to the license text that comes with this tendis open source
// project for additional information.
#include <utility>
#include <sstream>
#include "tendisplus/utils/status.h"
#include "tendisplus/utils/invariant.h"
namespa... | 38.892405 | 80 | 0.707404 | EpicArena |
ac1d1b60f0e7ba17694b57808f91563d6b908f69 | 603 | cpp | C++ | Codeforces/352A - Jeff and Digits.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/352A - Jeff and Digits.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/352A - Jeff and Digits.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
int n;
cin >> n;
int fives = 0, zeros = 0;
for (int i = 0; i < n; ++i) {
int inp; cin >> inp;
if (inp == 5) fives++;
else zeros++;
}
if (zeros == 0 && fives < 9) cout << -1 ... | 22.333333 | 64 | 0.444444 | naimulcsx |
ac20c6d9e79917926349e227b587d6519efc8b5b | 18,186 | cpp | C++ | arduino/opencr_arduino/opencr/libraries/OpenManipulator/src/open_manipulator/OMManager.cpp | mkhansen-intel/OpenCR | 9da4ae9fd4506df6e068c2a6d381f268a0ba371a | [
"Apache-2.0"
] | 2 | 2021-04-27T17:09:19.000Z | 2021-04-27T17:09:24.000Z | arduino/opencr_arduino/opencr/libraries/OpenManipulator/src/open_manipulator/OMManager.cpp | mkhansen-intel/OpenCR | 9da4ae9fd4506df6e068c2a6d381f268a0ba371a | [
"Apache-2.0"
] | null | null | null | arduino/opencr_arduino/opencr/libraries/OpenManipulator/src/open_manipulator/OMManager.cpp | mkhansen-intel/OpenCR | 9da4ae9fd4506df6e068c2a6d381f268a0ba371a | [
"Apache-2.0"
] | 1 | 2019-02-03T04:49:15.000Z | 2019-02-03T04:49:15.000Z | /*******************************************************************************
* Copyright 2016 ROBOTIS CO., LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 26.744118 | 102 | 0.678874 | mkhansen-intel |
ac2e158e64cb7ad38c48c73d3973ede6269b3d9a | 730 | cpp | C++ | c++/infinite stack/istack.cpp | comphonia/mini-projects | fb7e73d68adf6e18284b861de215ea61813a64f7 | [
"MIT"
] | null | null | null | c++/infinite stack/istack.cpp | comphonia/mini-projects | fb7e73d68adf6e18284b861de215ea61813a64f7 | [
"MIT"
] | null | null | null | c++/infinite stack/istack.cpp | comphonia/mini-projects | fb7e73d68adf6e18284b861de215ea61813a64f7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cassert>
using namespace std;
#include "istack.h"
istack::istack() : ptop(nullptr)
{
}
istack::~istack(){
while(!empty()){
pop();
}
}
void istack::push(int data)
{
node *new_node = new node(data);
if (ptop == nullptr)
{
ptop = new_node;
}
else
{
new_node->link = ptop;
p... | 13.272727 | 47 | 0.621918 | comphonia |
ac2f084356818963c5ae1862806231ac1bdbd07e | 7,951 | cpp | C++ | libvast/src/system/transformer.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 63 | 2016-04-22T01:50:03.000Z | 2019-07-31T15:50:36.000Z | libvast/src/system/transformer.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 216 | 2017-01-24T16:25:43.000Z | 2019-08-01T19:37:00.000Z | libvast/src/system/transformer.cpp | rdettai/vast | 0b3cf41011df5fe8a4e8430fa6a1d6f1c50a18fa | [
"BSD-3-Clause"
] | 28 | 2016-05-19T13:09:19.000Z | 2019-04-12T15:11:42.000Z | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2021 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#include "vast/system/transformer.hpp"
#include "vast/d... | 41.196891 | 81 | 0.635014 | rdettai |
ac3a9641f0af01f5a4d4afc944627b77d5cd9284 | 5,841 | hpp | C++ | include/xstd/detail/type_traits/container_checks.hpp | BryanFlynt/xstd | 4c11f614b828a93e20cb35903c179cfd52fef47e | [
"Apache-2.0"
] | null | null | null | include/xstd/detail/type_traits/container_checks.hpp | BryanFlynt/xstd | 4c11f614b828a93e20cb35903c179cfd52fef47e | [
"Apache-2.0"
] | null | null | null | include/xstd/detail/type_traits/container_checks.hpp | BryanFlynt/xstd | 4c11f614b828a93e20cb35903c179cfd52fef47e | [
"Apache-2.0"
] | null | null | null | /*
* container_checks.hpp
*
* Created on: Dec 8, 2019
* Author: bflynt
*/
#ifndef INCLUDE_XSTD_TYPE_TRAITS_CONTAINER_CHECKS_HPP_
#define INCLUDE_XSTD_TYPE_TRAITS_CONTAINER_CHECKS_HPP_
#include <type_traits>
namespace xstd {
namespace detail {
/// Instantiate the template types passed
/**
* Empty TMP t... | 23.743902 | 101 | 0.69269 | BryanFlynt |
ac3c9491dfa15cb707829f54879356bf51acdbac | 206 | hpp | C++ | code/source/physics/object_rigid.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/physics/object_rigid.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/physics/object_rigid.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #ifndef CLOVER_PHYSICS_OBJECT_RIGID_HPP
#define CLOVER_PHYSICS_OBJECT_RIGID_HPP
#include "build.hpp"
#include "object_rigid_impl.hpp"
#include "fixture_rigid.hpp"
#endif // CLOVER_PHYSICS_OBJECT_RIGID_HPP | 25.75 | 41 | 0.849515 | crafn |
ac3fddb464e9e40bed776c34ade0a20d4604d533 | 705 | cpp | C++ | generate_random_points.cpp | slmcbane/Sobol | e22917f9adbf25328024cd3ad21e9d29aa60d7eb | [
"Unlicense"
] | null | null | null | generate_random_points.cpp | slmcbane/Sobol | e22917f9adbf25328024cd3ad21e9d29aa60d7eb | [
"Unlicense"
] | null | null | null | generate_random_points.cpp | slmcbane/Sobol | e22917f9adbf25328024cd3ad21e9d29aa60d7eb | [
"Unlicense"
] | null | null | null | #include "sobol.hpp"
#include <cstdio>
int main(int argc, char *argv[])
{
if (argc != 3)
{
fprintf(
stderr, "Expects 2 command-line arguments: number of points to generate, and "
"dimensionality\n");
exit(1);
}
int n = atoi(argv[1]);
int dim = atoi(... | 19.583333 | 90 | 0.487943 | slmcbane |
ac4a71b6186377263446380b03dfd1270ea15696 | 5,168 | hpp | C++ | include/andromeda/graphics/backend/rtx.hpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 7 | 2020-04-28T11:01:55.000Z | 2022-02-22T09:59:33.000Z | include/andromeda/graphics/backend/rtx.hpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 2 | 2021-09-03T12:58:06.000Z | 2021-09-20T20:07:33.000Z | include/andromeda/graphics/backend/rtx.hpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 1 | 2021-09-03T12:56:25.000Z | 2021-09-03T12:56:25.000Z | #pragma once
#include <andromeda/graphics/backend/renderer_backend.hpp>
#include <phobos/acceleration_structure.hpp>
namespace andromeda::gfx::backend {
/**
* @class SceneAccelerationStructure
* @brief Can manage and update the acceleration structure used to trace the scene.
*/
class SceneAccelerationStructure {
... | 36.652482 | 141 | 0.696594 | NotAPenguin0 |
ac542bea7102ac891c60f0ba2852ade2dd23fcb5 | 645 | cpp | C++ | src/sasm/PreprocessorLexer/lineNumber.cpp | nanolith/SIMEX | f67a3498303db5eed45472d63b623d438a7b1cb1 | [
"MIT"
] | null | null | null | src/sasm/PreprocessorLexer/lineNumber.cpp | nanolith/SIMEX | f67a3498303db5eed45472d63b623d438a7b1cb1 | [
"MIT"
] | null | null | null | src/sasm/PreprocessorLexer/lineNumber.cpp | nanolith/SIMEX | f67a3498303db5eed45472d63b623d438a7b1cb1 | [
"MIT"
] | null | null | null | /**
* \file sasm/PreprocessorLexer/lineNumber.cpp
*
* Implementation of PreprocessorLexer::lineNumber().
*
* Copyright (C) 2016 Justin Handville - All Rights Reserved.
*
* This file is part of the SIMEX Virtual Machine which is released under the
* MIT License. See LICENSE.txt in the root of this distribution ... | 24.807692 | 77 | 0.745736 | nanolith |
ac5465dcc3da031c19f86564feb46c71fd580e40 | 34,700 | cpp | C++ | cegui/src/falagard/WidgetLookFeel.cpp | rubric4b/cegui-0.8.4-tizen | 13456d7a07d697dc276fdc8663e4ca365829aa3a | [
"MIT"
] | 5 | 2016-04-18T23:12:51.000Z | 2022-03-06T05:12:07.000Z | cegui/src/falagard/WidgetLookFeel.cpp | rubric4b/cegui-0.8.4-tizen | 13456d7a07d697dc276fdc8663e4ca365829aa3a | [
"MIT"
] | 2 | 2015-10-09T19:13:25.000Z | 2018-12-25T17:16:54.000Z | cegui/src/falagard/WidgetLookFeel.cpp | rubric4b/cegui-0.8.4-tizen | 13456d7a07d697dc276fdc8663e4ca365829aa3a | [
"MIT"
] | 15 | 2015-02-23T16:35:28.000Z | 2022-03-25T13:40:33.000Z | /***********************************************************************
created: Mon Jun 13 2005
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/***************************************************************************
* Copyrigh... | 33.68932 | 97 | 0.568156 | rubric4b |
ac569f3f063e592c4ad38a3e7ae5df8151cbe5a1 | 467 | hpp | C++ | src/ImageLib/include/ImageLib/Thread.hpp | ANDreew1987/ImageProcessing | 8af677d416ba32d2d4a07e84befbbb25abf5c602 | [
"MIT"
] | null | null | null | src/ImageLib/include/ImageLib/Thread.hpp | ANDreew1987/ImageProcessing | 8af677d416ba32d2d4a07e84befbbb25abf5c602 | [
"MIT"
] | null | null | null | src/ImageLib/include/ImageLib/Thread.hpp | ANDreew1987/ImageProcessing | 8af677d416ba32d2d4a07e84befbbb25abf5c602 | [
"MIT"
] | 1 | 2021-12-05T09:10:40.000Z | 2021-12-05T09:10:40.000Z | #pragma once
#include "ImageLib/IThread.hpp"
#include <memory>
#include <thread>
namespace ImageLib
{
class Thread:
public IThread
{
public:
explicit Thread(
IRunnable *method);
~Thread() override;
// IThread
void Start() override;
void Stop() override;
[[nodiscard]] bool IsS... | 12.972222 | 48 | 0.646681 | ANDreew1987 |
ac57b0902473e9c73d2e1806c5e81bf9f1b5f2d4 | 2,766 | cpp | C++ | Mog2d-Qt/mogentitytreewidget.cpp | mog2d/MogUIDesigner | 978e666b394d62c32387f3fc55a4693d16b2bbc2 | [
"MIT"
] | null | null | null | Mog2d-Qt/mogentitytreewidget.cpp | mog2d/MogUIDesigner | 978e666b394d62c32387f3fc55a4693d16b2bbc2 | [
"MIT"
] | null | null | null | Mog2d-Qt/mogentitytreewidget.cpp | mog2d/MogUIDesigner | 978e666b394d62c32387f3fc55a4693d16b2bbc2 | [
"MIT"
] | null | null | null | #include "mogentitytreewidget.h"
#include <QDropEvent>
MogEntityTreeWidget::MogEntityTreeWidget(QWidget *parent) : QTreeWidget(parent)
{
}
void MogEntityTreeWidget::dropEvent(QDropEvent *event)
{
auto mime = event->mimeData();
auto source = event->source();
QModelIndex dragIndex = this->selectedIndexes()... | 30.395604 | 118 | 0.663774 | mog2d |
ac580522e7240090003acbc40f9591fa3be5599b | 5,296 | cpp | C++ | src/Libs/CodecUtils/MotionVectorH263VlcEncoderImplStd.cpp | miseri/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 1 | 2021-07-14T08:15:05.000Z | 2021-07-14T08:15:05.000Z | src/Libs/CodecUtils/MotionVectorH263VlcEncoderImplStd.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | null | null | null | src/Libs/CodecUtils/MotionVectorH263VlcEncoderImplStd.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 2 | 2021-07-14T08:15:02.000Z | 2021-07-14T08:56:10.000Z | /** @file
MODULE : MotionVectorH263VlcEncoderImplStd
TAG : MVH263VEIS
FILE NAME : MotionVectorH263VlcEncoderImplStd.cpp
DESCRIPTION : The base level H.263 motion vector Vlc encoder implementation
with an IVlcEncoder Interface. As defined by Recommendation
H.263 (02... | 29.752809 | 83 | 0.450529 | miseri |
ac5c556b32632de5328eca6780ad56b92e85b332 | 3,226 | hpp | C++ | include/MosquittoClient.hpp | Rechip/mqtt-exporter | ebb7e44d066242b874cc3a602e3b32e97685fa95 | [
"MIT"
] | null | null | null | include/MosquittoClient.hpp | Rechip/mqtt-exporter | ebb7e44d066242b874cc3a602e3b32e97685fa95 | [
"MIT"
] | null | null | null | include/MosquittoClient.hpp | Rechip/mqtt-exporter | ebb7e44d066242b874cc3a602e3b32e97685fa95 | [
"MIT"
] | null | null | null | #pragma once
#ifndef ME_MOSQUITTO_CLIENT_HPP_
# define ME_MOSQUITTO_CLIENT_HPP_
# include "Exception.hpp"
# include "Signal.hpp"
# include <chrono>
# include <future>
# include <memory>
# include <rechip/logger/Channel.hpp>
# include <rechip/logger/Logger.hpp>
# include <simple-yaml/simple_yaml.hpp>
# include <thread>... | 29.063063 | 146 | 0.692188 | Rechip |
ac5d75376ee7a6c542a2a94d0b85b59e9e8cacf8 | 28,008 | cpp | C++ | gwen/src/Controls/Base.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/src/Controls/Base.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/src/Controls/Base.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | /*
* GWEN
* Copyright (c) 2010 Facepunch Studios
* See license in Gwen.h
*/
#include "Gwen/Controls/Base.h"
#include "Gwen/Controls/Label.h"
#include "Gwen/Gwen.h"
#include "Gwen/BaseRender.h"
#include "Gwen/Skin.h"
#include "Gwen/Platform.h"
#include "Gwen/DragAndDrop.h"
#include "Gwen/ToolTip.h"
#include "Gw... | 22.175772 | 98 | 0.576514 | Oipo |
ac5fde9fa4b13615f079a4a26f6ae7d9ca1f8607 | 2,766 | cpp | C++ | utility/object.cpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 4 | 2015-06-25T02:06:13.000Z | 2018-07-11T13:20:24.000Z | utility/object.cpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 14 | 2015-03-29T10:32:21.000Z | 2018-01-25T16:45:08.000Z | utility/object.cpp | 5cript/SimpleJSON | 878a6341baed91c29630447f6bd480391f563045 | [
"MIT"
] | 2 | 2017-07-16T09:43:22.000Z | 2020-08-30T09:33:40.000Z | #include "object.hpp"
namespace JSON
{
//#####################################################################################################################
ObjectBuilder::ObjectBuilder(JSON::StringificationOptions options)
: result_{}
, fresh_{true}
, options_{std::move(options)}
... | 40.086957 | 130 | 0.325018 | 5cript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.