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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6a91f033e7dec1af20cffbf787d0cdb2ea85194 | 74,011 | cpp | C++ | SDKs/CryCode/3.7.0/CryEngine/CryAction/TestSystem/TimeDemoRecorder.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.7.0/CryEngine/CryAction/TestSystem/TimeDemoRecorder.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.7.0/CryEngine/CryAction/TestSystem/TimeDemoRecorder.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | ////////////////////////////////////////////////////////////////////////////
//
// Crytek Engine Source File.
// Copyright (C), Crytek Studios, 2002.
// -------------------------------------------------------------------------
// File name: timedemorecorder.cpp
// Version: v1.00
// Created: 2/8/2003 by T... | 28.564647 | 217 | 0.643107 | amrhead |
b6b130856a36799e52dbbc1f39fbcb1229e90dd9 | 4,511 | cpp | C++ | services/common/test/SizedQueueTestCase.cpp | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | 9 | 2019-04-13T17:11:06.000Z | 2020-04-23T12:06:59.000Z | services/common/test/SizedQueueTestCase.cpp | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | null | null | null | services/common/test/SizedQueueTestCase.cpp | FreeYourSoul/FyS | 123ca6e76387125909d343c23e788aa033221db5 | [
"MIT"
] | 2 | 2020-04-07T06:05:11.000Z | 2020-11-07T23:26:56.000Z | // MIT License
//
// Copyright (c) 2021 Quentin Balland
// Repository : https://github.com/FreeYourSoul/FyS
//
// 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, ... | 30.687075 | 88 | 0.634892 | FreeYourSoul |
b6b5675dc96753bb6e149b78ce171e04853d3a7b | 1,500 | cpp | C++ | plugins/community/repos/BaconMusic/src/BaconPlugs.cpp | x42/VeeSeeVSTRack | 0f5576f92e026ac1480e1477e55084911eca4052 | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | plugins/community/repos/BaconMusic/src/BaconPlugs.cpp | x42/VeeSeeVSTRack | 0f5576f92e026ac1480e1477e55084911eca4052 | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | plugins/community/repos/BaconMusic/src/BaconPlugs.cpp | x42/VeeSeeVSTRack | 0f5576f92e026ac1480e1477e55084911eca4052 | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | #include "BaconPlugs.hpp"
// RACK_PLUGIN_MODEL_DECLARE(BaconMusic, HarMoNee); // crashes
RACK_PLUGIN_MODEL_DECLARE(BaconMusic, Glissinator);
RACK_PLUGIN_MODEL_DECLARE(BaconMusic, PolyGnome);
RACK_PLUGIN_MODEL_DECLARE(BaconMusic, QuantEyes);
RACK_PLUGIN_MODEL_DECLARE(BaconMusic, SampleDelay);
#ifdef BUILD_SORTACHOR... | 32.608696 | 72 | 0.821333 | x42 |
b6b7e057dc647382c3c849aa804e79b1e98b9b1b | 31,816 | hpp | C++ | pawlib-source/include/pawlib/iochannel.hpp | mousepawgames/pawlib-git | 4b7adfa98b2a863f64e3b3356cc6ee5dda41fa32 | [
"BSD-3-Clause"
] | 20 | 2017-11-03T07:22:55.000Z | 2020-05-01T20:25:18.000Z | pawlib-source/include/pawlib/iochannel.hpp | mousepawgames/pawlib-git | 4b7adfa98b2a863f64e3b3356cc6ee5dda41fa32 | [
"BSD-3-Clause"
] | null | null | null | pawlib-source/include/pawlib/iochannel.hpp | mousepawgames/pawlib-git | 4b7adfa98b2a863f64e3b3356cc6ee5dda41fa32 | [
"BSD-3-Clause"
] | 7 | 2018-05-22T21:40:22.000Z | 2019-11-04T02:35:42.000Z | /** IOChannel [PawLIB]
* Version: 2.0.0
*
* Allows managed, custom output to any console or terminal.
* See WHAT IS IOCHANNEL? below.
*
* Author: Jason C. McDonald
*/
/* LICENSE (BSD-3-Clause)
* Copyright (c) 2016-2019 MousePaw Media.
* All rights reserved.
*
* Redistribution and use in source and bi... | 32.137374 | 101 | 0.623303 | mousepawgames |
b6b9e70d6c9c02a8bfafb0c54d8abf26923ba4fd | 459 | cpp | C++ | src/Practice/CozySeeker/Runner/BlockedUrl2ResultRunner.cpp | zpublic/cozy | dde5f2bcf7482e2e5042f9e51266d9fd272e1456 | [
"WTFPL"
] | 48 | 2015-04-11T13:25:45.000Z | 2022-03-28T08:27:40.000Z | src/Practice/CozySeeker/Runner/BlockedUrl2ResultRunner.cpp | sgww/cozy | ef87e4a23b552f611ec616aaf4344e68843bec56 | [
"WTFPL"
] | 4 | 2016-04-06T09:30:57.000Z | 2022-02-26T01:21:18.000Z | src/Practice/CozySeeker/Runner/BlockedUrl2ResultRunner.cpp | sgww/cozy | ef87e4a23b552f611ec616aaf4344e68843bec56 | [
"WTFPL"
] | 33 | 2015-06-03T10:06:54.000Z | 2020-12-15T00:50:28.000Z | #include "BlockedUrl2ResultRunner.h"
NS_BEGIN
BlockedUrl2ResultRunner::BlockedUrl2ResultRunner()
{
}
BlockedUrl2ResultRunner::~BlockedUrl2ResultRunner()
{
}
void BlockedUrl2ResultRunner::OnNewUrl(StrPtr url)
{
if (m_trans != nullptr)
{
m_trans->OnNewUrl(url);
}
}
void BlockedUrl2ResultRunner:... | 12.078947 | 51 | 0.723312 | zpublic |
b6bd6eca21517cf9928a05ddd36bdd3b6d34e27c | 4,873 | hpp | C++ | NonOpt/src/NonOptSolver.hpp | frankecurtis/NonOpt | f81ff1c818dcde382cf6045a671bf8bc1d3a3467 | [
"MIT"
] | 4 | 2021-06-27T18:13:59.000Z | 2022-01-25T00:36:56.000Z | NonOpt/src/NonOptSolver.hpp | frankecurtis/NonOpt | f81ff1c818dcde382cf6045a671bf8bc1d3a3467 | [
"MIT"
] | null | null | null | NonOpt/src/NonOptSolver.hpp | frankecurtis/NonOpt | f81ff1c818dcde382cf6045a671bf8bc1d3a3467 | [
"MIT"
] | 1 | 2021-06-27T18:14:02.000Z | 2021-06-27T18:14:02.000Z | // Copyright (C) 2022 Frank E. Curtis
//
// This code is published under the MIT License.
//
// Author(s) : Frank E. Curtis
#ifndef __NONOPTSOLVER_HPP__
#define __NONOPTSOLVER_HPP__
#include <ctime>
#include <memory>
#include "NonOptEnumerations.hpp"
#include "NonOptOptions.hpp"
#include "NonOptProblem.hpp"
#include... | 23.887255 | 159 | 0.672071 | frankecurtis |
b6bdcfe2142021113b646a4b13b264d5e8068f7c | 3,487 | cpp | C++ | Blue-Flame-Engine/Core/BF/Platform/API/OpenGL/GLVertexBuffer.cpp | 21423236/Blue-Flame-Engine | cf26fbdb94d1338f04e57ba88f0bbfc8b77c969b | [
"MIT"
] | 1 | 2021-07-02T12:40:44.000Z | 2021-07-02T12:40:44.000Z | Blue-Flame-Engine/Core/BF/Platform/API/OpenGL/GLVertexBuffer.cpp | 21423236/Blue-Flame-Engine | cf26fbdb94d1338f04e57ba88f0bbfc8b77c969b | [
"MIT"
] | null | null | null | Blue-Flame-Engine/Core/BF/Platform/API/OpenGL/GLVertexBuffer.cpp | 21423236/Blue-Flame-Engine | cf26fbdb94d1338f04e57ba88f0bbfc8b77c969b | [
"MIT"
] | null | null | null | #include "GLVertexBuffer.h"
#include "BF/Platform/API/OpenGL/GLError.h"
namespace BF
{
namespace Platform
{
namespace API
{
namespace OpenGL
{
using namespace BF::Graphics::API;
GLVertexBuffer::GLVertexBuffer() :
VBO(0), VAO(0)
{
}
GLVertexBuffer::~GLVertexBuffer()
{
GLC... | 24.384615 | 191 | 0.643533 | 21423236 |
b6be94a3ae53045287b70ce3b2a04d085fc349fa | 1,675 | hpp | C++ | Wallet/GpCryptoAddress.hpp | ITBear/GpCryptoCore | c08a62f76eb25e6b43f170f3b69b79bb33f5b867 | [
"MIT"
] | null | null | null | Wallet/GpCryptoAddress.hpp | ITBear/GpCryptoCore | c08a62f76eb25e6b43f170f3b69b79bb33f5b867 | [
"MIT"
] | null | null | null | Wallet/GpCryptoAddress.hpp | ITBear/GpCryptoCore | c08a62f76eb25e6b43f170f3b69b79bb33f5b867 | [
"MIT"
] | 4 | 2020-06-09T07:03:42.000Z | 2021-05-18T04:12:07.000Z | #pragma once
#include "../Keys/GpCryptoKeys.hpp"
namespace GPlatform {
class GPCRYPTOCORE_API GpCryptoAddress
{
public:
CLASS_REMOVE_CTRS_DEFAULT_MOVE_COPY(GpCryptoAddress);
CLASS_DECLARE_DEFAULTS(GpCryptoAddress)
public:
GpCryptoAddress (const GpUUID& a... | 37.222222 | 94 | 0.521791 | ITBear |
b6bf4aa6350d5c81646e47552012696d25ee8148 | 2,838 | cpp | C++ | src/scheme_resolver.cpp | zionlang/zion | 6e5adc7529cbed47b1a1c06b56b8a1764cd44bac | [
"MIT"
] | 63 | 2016-06-04T04:04:00.000Z | 2022-03-17T08:38:49.000Z | src/scheme_resolver.cpp | zionlang/zion | 6e5adc7529cbed47b1a1c06b56b8a1764cd44bac | [
"MIT"
] | 29 | 2017-03-02T03:36:34.000Z | 2021-01-27T03:23:09.000Z | src/scheme_resolver.cpp | zionlang/zion | 6e5adc7529cbed47b1a1c06b56b8a1764cd44bac | [
"MIT"
] | 3 | 2017-12-26T20:50:38.000Z | 2020-12-23T03:20:06.000Z | #include "scheme_resolver.h"
#include "dbg.h"
#include "tld.h"
#include "unification.h"
#include "user_error.h"
namespace types {
SchemeResolver::SchemeResolver(const SchemeResolver *parent) : parent(parent) {
}
bool SchemeResolver::scheme_exists(std::string name) const {
return (state.count(name) == 1) ||
... | 28.959184 | 80 | 0.588443 | zionlang |
b6c96957e0d8bcd95bb3a3764ed18b97f4c645e4 | 6,990 | cpp | C++ | evaluation/gen_fmla.cpp | pascscha/hydra | 5c301ec9a7a91935f90497558326333afa7b179c | [
"BSD-3-Clause"
] | null | null | null | evaluation/gen_fmla.cpp | pascscha/hydra | 5c301ec9a7a91935f90497558326333afa7b179c | [
"BSD-3-Clause"
] | null | null | null | evaluation/gen_fmla.cpp | pascscha/hydra | 5c301ec9a7a91935f90497558326333afa7b179c | [
"BSD-3-Clause"
] | null | null | null | #include "constants.h"
#include "formula.h"
#include "log.h"
#include "visitors.h"
#include <algorithm>
#include <cstdlib>
#include <random>
int sz, maxr, scale, seed, aps;
int dynamic, past_only, untimed, bounded_past, no_zero;
#define BIT(x, i) (((x)>>(i))&1)
std::mt19937 gen;
interval gen_int(int future) {
... | 32.06422 | 86 | 0.508155 | pascscha |
b6cadc5d8d56fbb6829a9202f7e69ba9059e97b6 | 439 | cpp | C++ | Tree/ConstructBinaryTreeFromPreorderAndPostorderTraversal.cpp | utkarshbajpai28/LeetCode-Solutions | 58b3107f1cf3d1bf9f0686f0cb7f98684a34017a | [
"MIT"
] | 33 | 2020-06-16T14:28:50.000Z | 2021-06-21T14:35:39.000Z | Tree/ConstructBinaryTreeFromPreorderAndPostorderTraversal.cpp | utkarshbajpai28/LeetCode-Solutions | 58b3107f1cf3d1bf9f0686f0cb7f98684a34017a | [
"MIT"
] | 1 | 2020-10-01T12:18:39.000Z | 2020-10-01T12:18:39.000Z | Tree/ConstructBinaryTreeFromPreorderAndPostorderTraversal.cpp | utkarshbajpai28/LeetCode-Solutions | 58b3107f1cf3d1bf9f0686f0cb7f98684a34017a | [
"MIT"
] | 18 | 2020-06-18T16:18:55.000Z | 2021-05-19T18:41:50.000Z | class Solution {
public:
int preIndex = 0, posIndex = 0;
TreeNode* constructFromPrePost(vector<int>& pre, vector<int>& post) {
TreeNode *root = new TreeNode(pre[preIndex++]);
if(root->val != post[posIndex])
root->left = constructFromPrePost(pre, post);
if(root->val != post[p... | 31.357143 | 73 | 0.587699 | utkarshbajpai28 |
b6ceed1a3a99962dcdb5ca5b82bf2ead1798959d | 1,895 | cpp | C++ | engine/engine/core/buffers/algorithm_cpu.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2020-04-14T13:55:16.000Z | 2020-04-14T13:55:16.000Z | engine/engine/core/buffers/algorithm_cpu.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 4 | 2020-09-25T22:34:29.000Z | 2022-02-09T23:45:12.000Z | engine/engine/core/buffers/algorithm_cpu.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2022-01-28T16:37:51.000Z | 2022-01-28T16:37:51.000Z | /*
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 41.195652 | 93 | 0.727177 | ddr95070 |
b6d0a28326024af968cbaeb554e8cb6ac13e8f1c | 661 | cpp | C++ | src/math/algorithm.cpp | dprandle/Noble_Steed | 89449d890b993d7f209ad0f48449b05caf2f276c | [
"MIT"
] | null | null | null | src/math/algorithm.cpp | dprandle/Noble_Steed | 89449d890b993d7f209ad0f48449b05caf2f276c | [
"MIT"
] | null | null | null | src/math/algorithm.cpp | dprandle/Noble_Steed | 89449d890b993d7f209ad0f48449b05caf2f276c | [
"MIT"
] | null | null | null | #include <cmath>
#include "algorithm.h"
namespace noble_steed::math
{
bool fequals(float left, float right, float eps)
{
return (std::abs(left - right) < eps);
}
double round_decimal(double to_round, i8 decimal_places)
{
double mult = 1.0;
for (i8 i{0}; i < decimal_places; ++i)
mult *= 10;
to... | 19.441176 | 92 | 0.644478 | dprandle |
b6d8643a10ab93dabdcb79600052f1928efd06da | 308 | cpp | C++ | dev/test/router/express_router/main.cpp | Lord-Kamina/restinio | 00133ac4154626ec094697370d2dbe4ce01727f8 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | dev/test/router/express_router/main.cpp | Lord-Kamina/restinio | 00133ac4154626ec094697370d2dbe4ce01727f8 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | dev/test/router/express_router/main.cpp | Lord-Kamina/restinio | 00133ac4154626ec094697370d2dbe4ce01727f8 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /*
restinio
*/
/*!
Tests for express router.
*/
#define CATCH_CONFIG_MAIN
#include <catch/catch.hpp>
#include <iterator>
#include <restinio/all.hpp>
using namespace restinio;
using express_router_t = restinio::router::express_router_t<>;
using restinio::router::route_params_t;
#include "tests.inl"
| 14 | 62 | 0.743506 | Lord-Kamina |
b6dcd5bdd2819cff3c20b5ee82319e5dc5ab7e94 | 451 | cpp | C++ | URI Online Judge/Beginners/1134 - Type of Fuel.cpp | wgarcia1309/competitive-programming | a1788c8a7cbddaa753c2f468859581c1bac9e322 | [
"MIT"
] | null | null | null | URI Online Judge/Beginners/1134 - Type of Fuel.cpp | wgarcia1309/competitive-programming | a1788c8a7cbddaa753c2f468859581c1bac9e322 | [
"MIT"
] | null | null | null | URI Online Judge/Beginners/1134 - Type of Fuel.cpp | wgarcia1309/competitive-programming | a1788c8a7cbddaa753c2f468859581c1bac9e322 | [
"MIT"
] | null | null | null | //1134 - Type of Fuel
#include<iostream>
using namespace std;
int main(){
int a,b=0,c=0,d=0;
cin>>a;
while(a!=4){
switch (a) {
case 1:
b++;
break;
case 2:
c++;
break;
case 3:
d++;
break;
}
cin>>a;
}
cout<<"MUI... | 16.107143 | 33 | 0.427938 | wgarcia1309 |
b6e037c55bff233b75d82a2ec12d091bd29a49ac | 1,585 | cpp | C++ | fallen/DDLibrary/Source/net.cpp | jordandavidson/MuckyFoot-UrbanChaos | 00f7bda3f061bff9ecbb611d430f8f71bd557d14 | [
"MIT"
] | 3 | 2020-01-20T09:51:42.000Z | 2021-06-26T17:12:39.000Z | fallen/DDLibrary/Source/net.cpp | jordandavidson/MuckyFoot-UrbanChaos | 00f7bda3f061bff9ecbb611d430f8f71bd557d14 | [
"MIT"
] | 2 | 2021-06-13T05:08:58.000Z | 2022-02-20T00:24:26.000Z | fallen/DDLibrary/Source/net.cpp | jordandavidson/MuckyFoot-UrbanChaos | 00f7bda3f061bff9ecbb611d430f8f71bd557d14 | [
"MIT"
] | 2 | 2019-11-09T00:20:10.000Z | 2020-12-23T19:56:55.000Z | //
// Direct play stuff.
//
#include "DDLib.h"
#include "net.h"
//
// Error checking...
//
#ifndef VERIFY
#ifdef NDEBUG
#define VERIFY(x) {x;}
#else
#define VERIFY(x) {ASSERT(x);}
#endif
#endif
//
// TRUE if this machine is the host.
// The local player number.
//
UBYTE NET_i_am_host;
UBYTE NET_local_player;
... | 10.292208 | 87 | 0.711041 | jordandavidson |
b6e4bbd908ebda40f9a2d0d4db5f3a44d7d7eda2 | 1,061 | cpp | C++ | cpp/4BI/Random/Random4/random4.cpp | islaDevs/Coding-Homeworks | 51436a1197f08e5f07db21258a9841c216c7bbd3 | [
"MIT"
] | null | null | null | cpp/4BI/Random/Random4/random4.cpp | islaDevs/Coding-Homeworks | 51436a1197f08e5f07db21258a9841c216c7bbd3 | [
"MIT"
] | null | null | null | cpp/4BI/Random/Random4/random4.cpp | islaDevs/Coding-Homeworks | 51436a1197f08e5f07db21258a9841c216c7bbd3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <time.h>
#include <cstdlib>
using namespace std;
int main(){
const int DICE_FACES = 6;
const int DICE_SHOTS = 100;
int n, p1=0, p2=0, p3=0, p4=0, p5=0, p6=0;
float cont1=0, cont2=0, cont3=0, cont4=0, cont5=0, cont6=0;
srand(time(0));
for (int i = 0; i < DICE_SHOTS; ... | 24.674419 | 96 | 0.423186 | islaDevs |
b6e8c3a141d5919cb458fdcb44293d61c452d101 | 5,671 | cpp | C++ | c++14-opengl/scene_imageprocess.cpp | oguchi2918/ginneko | 6ba8d7380d4d135c0d7889d4b51a3f1860f4da01 | [
"MIT"
] | null | null | null | c++14-opengl/scene_imageprocess.cpp | oguchi2918/ginneko | 6ba8d7380d4d135c0d7889d4b51a3f1860f4da01 | [
"MIT"
] | null | null | null | c++14-opengl/scene_imageprocess.cpp | oguchi2918/ginneko | 6ba8d7380d4d135c0d7889d4b51a3f1860f4da01 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <vector>
#include <glad/glad.h>
#include <glm/gtc/matrix_transform.hpp>
#include "imgui/imgui.h"
#include "scene_imageprocess.hpp"
#include "defines.hpp"
#include "input.hpp"
#include "renderer.hpp"
#include "utils.hpp"
using glm::vec2;
using glm::vec3;
using glm::vec4;
using glm::mat3;
u... | 26.75 | 108 | 0.672192 | oguchi2918 |
b6f0e9990a68b3bfb3386b00575bbcfc242f2125 | 6,757 | hpp | C++ | ext/laslib/inc/lasreader.hpp | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 38 | 2019-06-19T15:10:35.000Z | 2022-02-16T03:08:24.000Z | ext/laslib/inc/lasreader.hpp | jtpils/lvr2 | b1010dfcc930d9ae0ff5cfa5c88d0810d65368ce | [
"BSD-3-Clause"
] | 9 | 2019-06-19T16:19:51.000Z | 2021-09-17T08:31:25.000Z | ext/laslib/inc/lasreader.hpp | jtpils/lvr2 | b1010dfcc930d9ae0ff5cfa5c88d0810d65368ce | [
"BSD-3-Clause"
] | 13 | 2019-04-16T11:50:32.000Z | 2020-11-26T07:47:44.000Z | /*
===============================================================================
FILE: lasreader.hpp
CONTENTS:
Interface to read LIDAR points from the LAS format versions 1.0 - 1.3 and
per on-the-fly conversion from simple ASCII files.
PROGRAMMERS:
martin.isenburg@gmail.com
COPYRIGHT:
... | 32.17619 | 118 | 0.727098 | uos |
b6f2a18a260ba290e1d3749738ff9535ea19c39c | 427 | cpp | C++ | solutions/19.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | solutions/19.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | solutions/19.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | class Solution {
public:
ListNode* removeNthFromEnd(ListNode* head, int n) {
auto back = head;
auto front = head;
for (int i = 0; i < n; ++i) {
if (!front->next) {
return head->next;
}
front = front->next;
}
while (front->next) {
back = back->next;
front = f... | 18.565217 | 53 | 0.501171 | tdakhran |
b6f31eeac8b08648423ce6fda5799d79f1a2ed6b | 1,007 | hpp | C++ | include/boost/hash2/detail/rot.hpp | pdimov/hash2 | 9e3fc2a72c6aeb4e2de7daad7ca34a3aaeaa4217 | [
"BSL-1.0"
] | 9 | 2018-01-06T18:23:15.000Z | 2021-02-03T12:30:22.000Z | include/boost/hash2/detail/rot.hpp | pdimov/hash2 | 9e3fc2a72c6aeb4e2de7daad7ca34a3aaeaa4217 | [
"BSL-1.0"
] | 1 | 2018-04-27T10:46:35.000Z | 2018-05-27T13:11:12.000Z | include/boost/hash2/detail/rot.hpp | pdimov/hash2 | 9e3fc2a72c6aeb4e2de7daad7ca34a3aaeaa4217 | [
"BSL-1.0"
] | 2 | 2018-01-06T18:23:19.000Z | 2020-04-07T17:07:06.000Z | #ifndef BOOST_HASH2_DETAIL_ROT_HPP_INCLUDED
#define BOOST_HASH2_DETAIL_ROT_HPP_INCLUDED
// Copyright 2017, 2018 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
#include <boost/hash2/byte_type.hpp>
#include <boost/cstdint.hpp>
#include <boost/config.hpp>
#include <cstring>
#include <cstdlib>... | 19 | 66 | 0.692155 | pdimov |
b6f3363ca034725cc3ee9f49b3d9f3616841681a | 18,342 | cpp | C++ | util/radixTree.cpp | liweiliv/history | 002234480c3c56555605b9e699d51a4b1836b173 | [
"Apache-2.0"
] | null | null | null | util/radixTree.cpp | liweiliv/history | 002234480c3c56555605b9e699d51a4b1836b173 | [
"Apache-2.0"
] | null | null | null | util/radixTree.cpp | liweiliv/history | 002234480c3c56555605b9e699d51a4b1836b173 | [
"Apache-2.0"
] | null | null | null | /*
* trieTree.cpp
*
* Created on: 2018年6月7日
* Author: liwei
*/
#define __cplusplus 201103L
#include <mutex>
#include <queue>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "perThread.h"
#include "db_chain.h"
using namespace std;
/*
* only support x86 platform
* */
#define RADIX_BASE 4... | 22.756824 | 161 | 0.632265 | liweiliv |
b6f41d8a63569e12ff9effc09eaa4c1de85ace2a | 753 | cpp | C++ | IdjGameEngine/src/Face.cpp | gustavohfc/IdjGameEngine | 5c495e6044311852071ec04538635af782e1e953 | [
"MIT"
] | null | null | null | IdjGameEngine/src/Face.cpp | gustavohfc/IdjGameEngine | 5c495e6044311852071ec04538635af782e1e953 | [
"MIT"
] | null | null | null | IdjGameEngine/src/Face.cpp | gustavohfc/IdjGameEngine | 5c495e6044311852071ec04538635af782e1e953 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Face.h"
#include "Sound.h"
#include "InputManager.h"
Face::Face(GameObject& associated):
Component(associated),
hitpoints(30) {}
void Face::Damage(int damage) {
hitpoints -= damage;
if (hitpoints < 0) {
associated.RequestDelete();
auto sound = associated.... | 17.928571 | 111 | 0.608234 | gustavohfc |
b6fd7338b28db7cf0f534030ad9b35cb0d20f629 | 4,747 | cpp | C++ | cpp/src/external/lisp/sexpr/io.cpp | Mosaic-DigammaDB/HandbookPragmatics | 55399bb16362f90e26626704f8563fd6d7c0a1f9 | [
"BSL-1.0"
] | 1 | 2019-04-15T08:44:13.000Z | 2019-04-15T08:44:13.000Z | cpp/src/external/lisp/sexpr/io.cpp | Mosaic-DigammaDB/HandbookPragmatics | 55399bb16362f90e26626704f8563fd6d7c0a1f9 | [
"BSL-1.0"
] | 1 | 2018-11-13T17:41:46.000Z | 2018-11-13T20:54:38.000Z | cpp/src/external/lisp/sexpr/io.cpp | Mosaic-DigammaDB/HandbookPragmatics | 55399bb16362f90e26626704f8563fd6d7c0a1f9 | [
"BSL-1.0"
] | 1 | 2018-11-13T16:43:10.000Z | 2018-11-13T16:43:10.000Z | // SExp - A S-Expression Parser for C++
// Copyright (C) 2006 Matthias Braun <matze@braunis.de>
// 2015 Ingo Ruhnke <grumbel@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Fo... | 19.697095 | 78 | 0.470192 | Mosaic-DigammaDB |
8e023b3d24673910798534171d59af461e1468d1 | 1,343 | cpp | C++ | aoc2020/aoc200902.cpp | jiayuehua/adventOfCode | fd47ddefd286fe94db204a9850110f8d1d74d15b | [
"Unlicense"
] | null | null | null | aoc2020/aoc200902.cpp | jiayuehua/adventOfCode | fd47ddefd286fe94db204a9850110f8d1d74d15b | [
"Unlicense"
] | null | null | null | aoc2020/aoc200902.cpp | jiayuehua/adventOfCode | fd47ddefd286fe94db204a9850110f8d1d74d15b | [
"Unlicense"
] | null | null | null | #include <unordered_set>
#include <utility>
#include <fstream>
#include <fmt/format.h>
#include <string>
#include <set>
#include <queue>
#include <cstdint>
#include <numeric>
using intl = std::int64_t;
struct Subset
{
static constexpr intl expected_ = 167829540;
bool push(intl n)
{
if (sum + n == expected_) {... | 18.652778 | 50 | 0.499628 | jiayuehua |
8e08690ca47cb3dd5e29b56051c5d39493782b5d | 71,462 | cpp | C++ | 3dc/win95/chunk_load.cpp | Melanikus/AvP | 9d61eb974a23538e32bf2ef1b738643a018935a0 | [
"BSD-3-Clause"
] | null | null | null | 3dc/win95/chunk_load.cpp | Melanikus/AvP | 9d61eb974a23538e32bf2ef1b738643a018935a0 | [
"BSD-3-Clause"
] | null | null | null | 3dc/win95/chunk_load.cpp | Melanikus/AvP | 9d61eb974a23538e32bf2ef1b738643a018935a0 | [
"BSD-3-Clause"
] | null | null | null | #include <stdlib.h>
#include <avp_string.hpp>
#include "list_tem.hpp"
#include "chunk_load.hpp"
#include "oechunk.h"
#include "strategy_def.h"
//#include "bh_types.h"
#include "chunk_shape.hpp"
#include "environment_chunk.hpp"
#include "chunk_object.hpp"
#include "chunk_palette.hpp"
#include "bitmap_names.hpp"
#includ... | 23.499507 | 188 | 0.6361 | Melanikus |
8e094abbd88a65403b3ed6b3ab757a656812b4a6 | 10,168 | hpp | C++ | SDK/ARKSurvivalEvolved_WeapTekPistol_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_WeapTekPistol_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_WeapTekPistol_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_WeapTekPistol_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//--------------------------------------------------------... | 40.672 | 176 | 0.58871 | 2bite |
8e16c872bf4202c609f51eeb04abbc6ecf9c5f58 | 2,423 | cpp | C++ | examples/module_fixed_point.cpp | ustcsq/nsimd | 87a671cb408e76ce331f1be88e47e4f7b231bb5a | [
"MIT"
] | 247 | 2019-04-05T15:01:12.000Z | 2022-03-20T19:19:11.000Z | examples/module_fixed_point.cpp | ustcsq/nsimd | 87a671cb408e76ce331f1be88e47e4f7b231bb5a | [
"MIT"
] | 69 | 2019-04-05T14:37:32.000Z | 2022-02-17T20:55:59.000Z | examples/module_fixed_point.cpp | ustcsq/nsimd | 87a671cb408e76ce331f1be88e47e4f7b231bb5a | [
"MIT"
] | 23 | 2019-07-07T02:19:44.000Z | 2021-11-02T09:16:59.000Z | // Copyright (c) 2019 Agenium Scale
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish,... | 39.080645 | 79 | 0.693768 | ustcsq |
8e1b2f15096d2599c2e5e732b4bdcadb18a3124c | 6,089 | hpp | C++ | hpx/util/basic_binary_oprimitive.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/util/basic_binary_oprimitive.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/util/basic_binary_oprimitive.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2012 Hartmut Kaiser
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
//
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BASIC_BINARY_OPRIMIT... | 28.189815 | 96 | 0.610445 | andreasbuhr |
8e21d5a60a757962b5efb46033046b9b44e13b51 | 3,191 | cpp | C++ | export/windows/cpp/obj/src/openfl/_legacy/display/InterpolationMethod.cpp | TinyPlanetStudios/Project-Crash-Land | 365f196be4212602d32251566f26b53fb70693f6 | [
"MIT"
] | null | null | null | export/windows/cpp/obj/src/openfl/_legacy/display/InterpolationMethod.cpp | TinyPlanetStudios/Project-Crash-Land | 365f196be4212602d32251566f26b53fb70693f6 | [
"MIT"
] | null | null | null | export/windows/cpp/obj/src/openfl/_legacy/display/InterpolationMethod.cpp | TinyPlanetStudios/Project-Crash-Land | 365f196be4212602d32251566f26b53fb70693f6 | [
"MIT"
] | null | null | null | // Generated by Haxe 3.3.0
#include <hxcpp.h>
#ifndef INCLUDED_openfl__legacy_display_InterpolationMethod
#include <openfl/_legacy/display/InterpolationMethod.h>
#endif
namespace openfl{
namespace _legacy{
namespace display{
::openfl::_legacy::display::InterpolationMethod InterpolationMethod_obj::LINEAR_RGB;
::openf... | 33.946809 | 212 | 0.775932 | TinyPlanetStudios |
8e23390eef03bbc1ba3d403372c40c912efe96f5 | 84,302 | cpp | C++ | src/UnitTests/TestMathParser/TestMathParser.cpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | 1 | 2018-09-18T07:09:36.000Z | 2018-09-18T07:09:36.000Z | src/UnitTests/TestMathParser/TestMathParser.cpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | null | null | null | src/UnitTests/TestMathParser/TestMathParser.cpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | 2 | 2020-06-18T04:45:30.000Z | 2021-07-20T02:11:54.000Z | //$Id$
//------------------------------------------------------------------------------
// TestMathParser
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Author: Linda Jun
// Created: 2006/04/24
//
/*... | 31.680571 | 171 | 0.496762 | rockstorm101 |
8e24b45af11dfe4c594d43fc74bb3bab1f6b40cf | 6,360 | hpp | C++ | Nacro/SDK/FN_Feedback_RateExperience_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_Feedback_RateExperience_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_Feedback_RateExperience_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function Feedback_Rate... | 48.181818 | 152 | 0.680818 | Milxnor |
8e2bc21aefc095794be729dea9f07985334a21f5 | 123 | cpp | C++ | event/epoll/ModCppEpoll.cpp | zkactivity/ngx_cpp_dev | a815ccfbe4ef8d7d73f207f8783803140632d355 | [
"BSD-2-Clause"
] | 3 | 2019-03-06T19:24:02.000Z | 2020-11-14T13:16:13.000Z | event/epoll/ModCppEpoll.cpp | zkactivity/ngx_cpp_dev | a815ccfbe4ef8d7d73f207f8783803140632d355 | [
"BSD-2-Clause"
] | null | null | null | event/epoll/ModCppEpoll.cpp | zkactivity/ngx_cpp_dev | a815ccfbe4ef8d7d73f207f8783803140632d355 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2015
// Author: Chrono Law
#include "CppEpollInit.hpp"
auto cpp_epoll_module = CppEpollInit::module();
| 15.375 | 47 | 0.723577 | zkactivity |
8e2bc627167712f066ab7bd350900fe232fc2db6 | 9,220 | cpp | C++ | tests/cert_server.cpp | WolleTD/varlink-cpp | 819dc34552c123c68a538a5e5df640b1c5d78fe8 | [
"MIT"
] | null | null | null | tests/cert_server.cpp | WolleTD/varlink-cpp | 819dc34552c123c68a538a5e5df640b1c5d78fe8 | [
"MIT"
] | 2 | 2021-03-26T21:11:59.000Z | 2021-03-27T17:32:10.000Z | tests/cert_server.cpp | WolleTD/varlink-cpp | 819dc34552c123c68a538a5e5df640b1c5d78fe8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <varlink/server.hpp>
#include "org.varlink.certification.varlink.hpp"
class varlink_certification {
private:
std::map<std::string, std::string> status;
size_t clients{0};
std::mutex start_mut;
const varlink::json my_object = R"json({
"object": {"method":... | 32.811388 | 80 | 0.549458 | WolleTD |
8e314c545e53b68e272d2cbfa82f08ca3e5ec916 | 6,234 | cpp | C++ | game/GameEntry.cpp | Fjellstedt/dk30 | b9fea347620fafe2d9994b4be6e20be0b2cee6f2 | [
"MIT"
] | null | null | null | game/GameEntry.cpp | Fjellstedt/dk30 | b9fea347620fafe2d9994b4be6e20be0b2cee6f2 | [
"MIT"
] | null | null | null | game/GameEntry.cpp | Fjellstedt/dk30 | b9fea347620fafe2d9994b4be6e20be0b2cee6f2 | [
"MIT"
] | null | null | null | /* ========================================================================
$Creator: Patrik Fjellstedt $
======================================================================== */
#include "g_pch.h"
#include "Platform.h"
#include "Input.h"
#include "Rendering.h"
#include "Resources.h"
#include "WorldState.h"
n... | 34.065574 | 126 | 0.696022 | Fjellstedt |
8e34e6f3c0d15606e8f6d8c7463d9f6ae67e9c2f | 4,676 | cpp | C++ | src/algos/greedy/gmh.cpp | litneet64/inf-295-tup | 1182d610a5e882f6ade82397064e469432c401af | [
"MIT"
] | null | null | null | src/algos/greedy/gmh.cpp | litneet64/inf-295-tup | 1182d610a5e882f6ade82397064e469432c401af | [
"MIT"
] | null | null | null | src/algos/greedy/gmh.cpp | litneet64/inf-295-tup | 1182d610a5e882f6ade82397064e469432c401af | [
"MIT"
] | null | null | null | #include "gmh.hpp"
using namespace std;
/*
* Class constructor
*/
GMH::GMH(p_data* pd_) {
int* tmp_ptr;
// save ptr to problem data
pd = pd_;
// set seed for random as current time
srand(time(0));
// create and init umpire assignment matrix (n_slots, n_ump) (elem is visited venue / game)
ump_assig... | 29.408805 | 127 | 0.649487 | litneet64 |
8e39539f7cef4035818e286eeae53120d9fea23b | 370 | hpp | C++ | modules/rcc/src/Aquila/rcc/external_includes/cv_stitching.hpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | modules/rcc/src/Aquila/rcc/external_includes/cv_stitching.hpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | modules/rcc/src/Aquila/rcc/external_includes/cv_stitching.hpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | #pragma once
#include "RuntimeObjectSystem/RuntimeLinkLibrary.h"
#include "cv_link_config.hpp"
#include <opencv2/stitching.hpp>
#ifdef _WIN32
#ifdef _DEBUG
RUNTIME_COMPILER_LINKLIBRARY("opencv_stitching" CV_VERSION_ "d.lib")
#else
RUNTIME_COMPILER_LINKLIBRARY("opencv_stitching" CV_VERSION_ ".lib")
#endif
#else
RUNTIME_... | 26.428571 | 68 | 0.82973 | dtmoodie |
8e42790ec3bdcca8aedd589ab4cfb9e113e17170 | 3,250 | cpp | C++ | DrumKit/Instruments/Drums/TestDrum.cpp | bigbn/libeXaDrums | 4c89a9f4464ef00533610851c482abec489959e7 | [
"BSD-3-Clause"
] | 10 | 2017-06-18T19:59:44.000Z | 2020-12-09T15:38:07.000Z | DrumKit/Instruments/Drums/TestDrum.cpp | bigbn/libeXaDrums | 4c89a9f4464ef00533610851c482abec489959e7 | [
"BSD-3-Clause"
] | 4 | 2019-11-25T22:49:01.000Z | 2022-01-08T16:53:39.000Z | DrumKit/Instruments/Drums/TestDrum.cpp | bigbn/libeXaDrums | 4c89a9f4464ef00533610851c482abec489959e7 | [
"BSD-3-Clause"
] | 5 | 2019-06-16T16:09:46.000Z | 2021-09-23T22:03:41.000Z | /*
* Drum.cpp
*
* Created on: 28 Oct 2015
* Author: jeremy
*/
#include "TestDrum.h"
#include <algorithm>
using namespace Sound;
namespace DrumKit
{
TestDrum::TestDrum(InstrumentParameters parameters, std::shared_ptr<SoundBank> soundBank): Instrument(parameters, soundBank),
drumHeadSoundId(0), drumRim... | 19.817073 | 131 | 0.712308 | bigbn |
8e4506b01ea2fe397841ea1ed7e3d54082a96afb | 5,332 | cpp | C++ | src/3rdparty/qt-components/src/mx/qmxbuttongroup.cpp | qtmediahub/qtmediahub-ruins | 844c71dbd7bcbd94a6ba76b952b7d1850e3ddc67 | [
"BSD-3-Clause"
] | null | null | null | src/3rdparty/qt-components/src/mx/qmxbuttongroup.cpp | qtmediahub/qtmediahub-ruins | 844c71dbd7bcbd94a6ba76b952b7d1850e3ddc67 | [
"BSD-3-Clause"
] | null | null | null | src/3rdparty/qt-components/src/mx/qmxbuttongroup.cpp | qtmediahub/qtmediahub-ruins | 844c71dbd7bcbd94a6ba76b952b7d1850e3ddc67 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Components project on Qt Labs.
**
** No Commercial Usage
** Th... | 32.91358 | 92 | 0.631845 | qtmediahub |
8e47da5cc91ab093e44bdfe1fb3d5caf172b1dc0 | 2,826 | cpp | C++ | test/analytic1D_MSD_test.cpp | sousaw/BTE-Barna | 029ca43ef096c4b725d3aeb2955bc0df9ca544a9 | [
"MIT",
"BSD-3-Clause"
] | 5 | 2022-02-07T03:36:38.000Z | 2022-03-25T13:11:20.000Z | test/analytic1D_MSD_test.cpp | sousaw/BTE-Barna | 029ca43ef096c4b725d3aeb2955bc0df9ca544a9 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | test/analytic1D_MSD_test.cpp | sousaw/BTE-Barna | 029ca43ef096c4b725d3aeb2955bc0df9ca544a9 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | // Copyright 2015-2020 The ALMA Project Developers
//
// 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 l... | 32.482759 | 78 | 0.65959 | sousaw |
8e47dc715c3cfc7dbf1cc6c73e06ecf21054bce8 | 594 | hpp | C++ | src/mimir/program/Convenience.hpp | sintef-ocean/mimir | c1d9671ee61e543e631f04d8b343a8f5e9229f6f | [
"Apache-2.0"
] | null | null | null | src/mimir/program/Convenience.hpp | sintef-ocean/mimir | c1d9671ee61e543e631f04d8b343a8f5e9229f6f | [
"Apache-2.0"
] | null | null | null | src/mimir/program/Convenience.hpp | sintef-ocean/mimir | c1d9671ee61e543e631f04d8b343a8f5e9229f6f | [
"Apache-2.0"
] | null | null | null | #pragma once
/**
@file Convenience.hpp
@brief Convenience variables and functions for mimir.
*/
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include "boost/log/utility/setup.hpp"
#include <boost/log/expressions.hpp>
#include <csignal>
namespace mimir {
/// Global signal for user event Ctrl-C... | 29.7 | 82 | 0.749158 | sintef-ocean |
8e4cd52780243ca04736ea91e312a7fa1c3a2079 | 13,150 | inl | C++ | ssd/dgp/PointReader.inl | csiro-workspace/pointcloudplugin | 815dd598ccf3780739b1ecae086ee78daa94ed5d | [
"BSD-3-Clause"
] | 5 | 2015-09-22T02:33:34.000Z | 2018-08-29T07:37:54.000Z | ssd/dgp/PointReader.inl | csiro-workspace/pointcloudplugin | 815dd598ccf3780739b1ecae086ee78daa94ed5d | [
"BSD-3-Clause"
] | 1 | 2018-12-12T12:08:28.000Z | 2018-12-13T06:14:54.000Z | ssd/dgp/PointReader.inl | csiro-workspace/pointcloudplugin | 815dd598ccf3780739b1ecae086ee78daa94ed5d | [
"BSD-3-Clause"
] | 4 | 2015-03-04T00:09:18.000Z | 2020-09-08T02:58:06.000Z | /*
Copyright (c) 2013, Fatih Calakli and Daniel Moreno
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of con... | 30.796253 | 129 | 0.581901 | csiro-workspace |
8e564bae40d5b933668744f6c8badaac6c8e5832 | 3,103 | hpp | C++ | include/DirectionsSampling.hpp | belcour/IntegralSH | 092bed8dc974f0f4c467f54a33d3e3e8968264ae | [
"Unlicense"
] | 48 | 2018-02-27T07:07:01.000Z | 2022-01-08T04:40:06.000Z | include/DirectionsSampling.hpp | belcour/IntegralSH | 092bed8dc974f0f4c467f54a33d3e3e8968264ae | [
"Unlicense"
] | null | null | null | include/DirectionsSampling.hpp | belcour/IntegralSH | 092bed8dc974f0f4c467f54a33d3e3e8968264ae | [
"Unlicense"
] | 5 | 2018-05-08T09:28:28.000Z | 2020-07-01T03:40:39.000Z | #pragma once
// include STL
#include <vector>
#include <random>
#include <cmath>
#include <limits>
#include <chrono>
/* Generate a uniform distribution of points on the sphere using random
* sampling with the STL uniform random number generator.
*/
template<class Vector>
inline std::vector<Vector> SamplingRandom(in... | 24.433071 | 81 | 0.600387 | belcour |
8e5a5d6bd6539d9fd5ff31489abb044d7dd23e39 | 846 | cpp | C++ | search_and_graph/shortest_paths/demo/acwing853.cpp | Fanjunmin/algorithm-template | db0d37a7c9c37ee9a167918fb74b03d1d09b6fad | [
"MIT"
] | 1 | 2021-04-26T11:03:04.000Z | 2021-04-26T11:03:04.000Z | search_and_graph/shortest_paths/demo/acwing853.cpp | Fanjunmin/algrithm-template | db0d37a7c9c37ee9a167918fb74b03d1d09b6fad | [
"MIT"
] | null | null | null | search_and_graph/shortest_paths/demo/acwing853.cpp | Fanjunmin/algrithm-template | db0d37a7c9c37ee9a167918fb74b03d1d09b6fad | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int N = 510;
const int M = 10010;
int dist[N], bk[N];
int n, m, k;
struct edge{
int a;
int b;
int w;
} edg[M];
int bellman_ford()
{
int a, b, w;
dist[1] = 0;
for (int i = 0; i < k; ++i) { //k次松弛操作
memcpy(bk, dist, sizeof(bk)); //b... | 20.634146 | 53 | 0.446809 | Fanjunmin |
8e5b8b042214d7ada389ce6975d6b9167a3c0cf1 | 4,223 | cpp | C++ | src/synchronizer.cpp | RybaPila-IT/Multiprocess-Snake-Game | 7719a2d0ffa45691eb8f1665a75e73aac09b8a2d | [
"MIT"
] | null | null | null | src/synchronizer.cpp | RybaPila-IT/Multiprocess-Snake-Game | 7719a2d0ffa45691eb8f1665a75e73aac09b8a2d | [
"MIT"
] | null | null | null | src/synchronizer.cpp | RybaPila-IT/Multiprocess-Snake-Game | 7719a2d0ffa45691eb8f1665a75e73aac09b8a2d | [
"MIT"
] | 1 | 2021-05-20T07:59:16.000Z | 2021-05-20T07:59:16.000Z | //
// Created by radoslaw on 05.05.2021.
//
#include "synchronizer.hpp"
SharedMemorySemaphoresSynchronizer::SharedMemorySemaphoresSynchronizer() : sem_our(nullptr), sem_opp(nullptr),
filename(nullptr), block(nullptr) {}
SharedMemorySemaphoresSynchronizer::SharedMemorySemaphoresSynchronizer(char_t sem_our_n, char_t se... | 32.236641 | 132 | 0.685768 | RybaPila-IT |
8e5fcad69ebeeaf7db690c71a8404230584c3067 | 1,831 | hpp | C++ | details/iaead.hpp | VlinderSoftware/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-16T01:34:06.000Z | 2020-07-16T01:34:06.000Z | details/iaead.hpp | blytkerchan/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-23T02:55:31.000Z | 2020-07-23T02:55:31.000Z | details/iaead.hpp | blytkerchan/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-03T00:06:20.000Z | 2020-07-03T00:06:20.000Z | /* Copyright 2019 Ronald Landheer-Cieslak
*
* 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 a... | 35.901961 | 189 | 0.714364 | VlinderSoftware |
8e6220100ff5493610f63e68f93762d4263b16d6 | 584 | cpp | C++ | workbench/src/windows/generic/notewindow.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | 5 | 2017-12-27T12:57:36.000Z | 2021-10-02T03:21:40.000Z | workbench/src/windows/generic/notewindow.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | 9 | 2020-09-29T22:40:49.000Z | 2020-10-17T20:05:05.000Z | workbench/src/windows/generic/notewindow.cpp | MasterQ32/cg-workbench | 3d6229b961192689e6dbd0a09ec4b61041ecb155 | [
"MIT"
] | null | null | null | #include "notewindow.hpp"
#include <windowregistry.hpp>
REGISTER_WINDOW_CLASS(NoteWindow, Menu::Tools, "note", "Note");
NoteWindow::NoteWindow() :
Window("Notes", 0)
{
}
void NoteWindow::OnUpdate()
{
ImGui::InputTextMultiline(
"##text",
this->buffer, NoteWindow::MaxLength,
ImGui::GetContentRegionAvail(),... | 18.25 | 63 | 0.69863 | MasterQ32 |
8e6238e5fe305069c86ebc3cbd4b6a03531c9396 | 640 | hpp | C++ | include/VBN/Exceptions.hpp | Derjik/VaubanEngine | 19792aeb7fe838c6b85d00270d15a2805f6fb9d5 | [
"0BSD"
] | 2 | 2018-10-09T14:31:12.000Z | 2018-10-26T08:47:59.000Z | include/VBN/Exceptions.hpp | Derjik/VaubanEngine | 19792aeb7fe838c6b85d00270d15a2805f6fb9d5 | [
"0BSD"
] | null | null | null | include/VBN/Exceptions.hpp | Derjik/VaubanEngine | 19792aeb7fe838c6b85d00270d15a2805f6fb9d5 | [
"0BSD"
] | null | null | null | #ifndef EXCEPTIONS_HPP_INCLUDED
#define EXCEPTIONS_HPP_INCLUDED
#include <stdexcept>
#include <string>
class Exception : public std::exception
{
private:
std::string _what;
public:
Exception(void);
Exception(std::string what);
Exception(char const * format, ...);
Exception(Exception const &);
Exception... | 22.068966 | 62 | 0.701563 | Derjik |
76a744f52d285d390110f1f865c67a93d6a649cd | 9,359 | cc | C++ | partition/deffrontier.cc | suiji/Arborist | 5d41b4763dc493b8875c921759271419734e1327 | [
"MIT"
] | 91 | 2015-02-15T19:13:03.000Z | 2022-03-04T18:49:10.000Z | partition/deffrontier.cc | suiji/Arborist | 5d41b4763dc493b8875c921759271419734e1327 | [
"MIT"
] | 46 | 2015-02-15T08:47:39.000Z | 2021-11-23T00:19:23.000Z | partition/deffrontier.cc | suiji/Arborist | 5d41b4763dc493b8875c921759271419734e1327 | [
"MIT"
] | 16 | 2015-04-24T18:38:25.000Z | 2017-07-07T14:49:09.000Z | // This file is part of ArboristCore.
/* 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/.
*/
/**
@file deffrontier.cc
@brief Maintains refrerences to repartione... | 25.294595 | 125 | 0.682338 | suiji |
76a82b6d5e23bdce1e71a78806ee945aab4b3dbe | 1,061 | hpp | C++ | keychain_linux/passentry_cmd/polling.hpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 29 | 2018-03-21T09:21:18.000Z | 2020-09-22T16:31:03.000Z | keychain_linux/passentry_cmd/polling.hpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 119 | 2018-03-16T14:02:04.000Z | 2019-04-16T21:16:32.000Z | keychain_linux/passentry_cmd/polling.hpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 3 | 2018-03-21T15:00:16.000Z | 2019-12-25T09:03:58.000Z | #ifndef KEYCHAIN_CMDAPP_POLLING_H
#define KEYCHAIN_CMDAPP_POLLING_H
#include <vector>
#include <string>
namespace json_parser
{
static const char LBRACE = '{';
static const char RBRACE = '}';
static const char SPACE = ' ';
static const char LF = '\n';
static const char CR = '\r';
static const ... | 24.674419 | 100 | 0.67672 | jokefor300 |
76a8fcd19cf1a7361b9f1da4e3a2171a37f02830 | 7,093 | cpp | C++ | app/commsdsl2comms/src/CommsBitfieldField.cpp | arobenko/commsdsl | e0f0bf42a455445d0a266d3540b008e0dc24cd15 | [
"Apache-2.0"
] | 4 | 2018-12-18T09:51:48.000Z | 2019-07-31T20:21:57.000Z | app/commsdsl2comms/src/CommsBitfieldField.cpp | arobenko/commsdsl | e0f0bf42a455445d0a266d3540b008e0dc24cd15 | [
"Apache-2.0"
] | 4 | 2019-08-02T06:59:58.000Z | 2020-06-01T22:10:02.000Z | app/commsdsl2comms/src/CommsBitfieldField.cpp | arobenko/commsdsl | e0f0bf42a455445d0a266d3540b008e0dc24cd15 | [
"Apache-2.0"
] | 2 | 2019-06-05T15:37:03.000Z | 2020-01-30T11:47:59.000Z | //
// Copyright 2019 - 2022 (C). Alex Robenko. 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
//
// Unless requi... | 28.716599 | 107 | 0.619343 | arobenko |
76aeae4abc37d0de68cfdd7352e9059fcaf1f059 | 223 | cpp | C++ | TimeSync/Packet.cpp | ianmott77/arduino-sync | 9c33f9511d4c8a34e58081c7de3c49d75a54bf9b | [
"MIT"
] | 1 | 2020-01-04T01:48:48.000Z | 2020-01-04T01:48:48.000Z | TimeSync/Packet.cpp | ianmott77/arduino-sync | 9c33f9511d4c8a34e58081c7de3c49d75a54bf9b | [
"MIT"
] | null | null | null | TimeSync/Packet.cpp | ianmott77/arduino-sync | 9c33f9511d4c8a34e58081c7de3c49d75a54bf9b | [
"MIT"
] | null | null | null | #include "Packet.h"
Packet::Packet(uint8_t * data, int size)
{
this->size = size;
this->data = (uint8_t*) malloc(this->size);
memcpy(this->data, data, this->size);
}
Packet::~Packet()
{
free(this->data);
} | 17.153846 | 47 | 0.605381 | ianmott77 |
76b8390234c13e4a75788315c45273117794cfb0 | 1,142 | cpp | C++ | binary_index_tree/inversion/abc190_f.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | binary_index_tree/inversion/abc190_f.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | binary_index_tree/inversion/abc190_f.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Graph = vector<vector<int>>;
// 転倒数 O(nlogn)
// B の先頭の ai を削除すると転倒数は ai 減り,
// B の末尾に ai を追加すると転倒数は N−1−ai 増える
/*
参考リンク
ABC 190 F - Shift and Inversions
htt... | 17.30303 | 57 | 0.464098 | Takumi1122 |
76bccf4489efe2ec99d3c0cb50cd763e1f328f44 | 1,070 | hpp | C++ | src/color/YCgCo/akin/rgb.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | 120 | 2015-12-31T22:30:14.000Z | 2022-03-29T15:08:01.000Z | src/color/YCgCo/akin/rgb.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | 6 | 2016-08-22T02:14:56.000Z | 2021-11-06T22:39:52.000Z | src/color/YCgCo/akin/rgb.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | 23 | 2016-02-03T01:56:26.000Z | 2021-09-28T16:36:27.000Z | #ifndef color_YCgCo_akin_rgb
#define color_YCgCo_akin_rgb
#include "../../generic/akin/YCgCo.hpp"
#include "../category.hpp"
#include "../../rgb/category.hpp"
namespace color
{
namespace akin
{
template< >struct YCgCo< ::color::category::rgb_uint8 >{ typedef ::color::category::YCgCo_uint8 a... | 42.8 | 118 | 0.680374 | 3l0w |
76c7af638d4c6506655d5661753e1b635f7c9790 | 22,848 | cpp | C++ | src/tracker/validateTransactionsAction.cpp | salarii/dims | b8008c49edd10a9ca50923b89e3b469c342d9cee | [
"MIT"
] | 1 | 2015-01-22T11:22:19.000Z | 2015-01-22T11:22:19.000Z | src/tracker/validateTransactionsAction.cpp | salivan-ratcoin-dev-team/dims | b8008c49edd10a9ca50923b89e3b469c342d9cee | [
"MIT"
] | null | null | null | src/tracker/validateTransactionsAction.cpp | salivan-ratcoin-dev-team/dims | b8008c49edd10a9ca50923b89e3b469c342d9cee | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2015 DiMS dev-team
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/statechart/custom_reaction.hpp>
#include <boost/statechart/simple_state.hpp>
#include <boost/statechart/state.hpp>
#inc... | 33.501466 | 188 | 0.736432 | salarii |
76c7e9c69a88491ec9bb235ca6b30a4299741f5d | 7,519 | cpp | C++ | src/sql.cpp | kami-/R3-Extension | fe6b96ea4f527534dc16e2ead4f508a7362dd45f | [
"MIT"
] | 4 | 2017-08-24T01:03:10.000Z | 2021-08-02T11:16:55.000Z | src/sql.cpp | kami-/R3-Extension | fe6b96ea4f527534dc16e2ead4f508a7362dd45f | [
"MIT"
] | 1 | 2018-07-11T05:45:31.000Z | 2018-07-11T05:45:31.000Z | src/sql.cpp | Raptoer/R3-Extension | fe6b96ea4f527534dc16e2ead4f508a7362dd45f | [
"MIT"
] | 5 | 2017-10-08T16:16:25.000Z | 2021-11-08T21:11:34.000Z | #include "sql.h"
#include "extension.h"
#include "log.h"
#include "Poco/Nullable.h"
#include "Poco/Data/Session.h"
#include "Poco/Data/MySQL/MySQLException.h"
#include "Poco/Data/MySQL/Connector.h"
namespace r3 {
namespace sql {
namespace {
std::string host, database, user, password;
uint32_t port;
siz... | 41.772222 | 194 | 0.5526 | kami- |
76d3e8fb4e5cb86998b701cf525c666db388e8f9 | 3,431 | cpp | C++ | IA20-AdHoc/src/ia20/net/conn/tcp/ServerBase.cpp | InvenireAude/IA20 | db12d42e66a389ecdb41efff91e7029ce1ba4425 | [
"Apache-2.0"
] | null | null | null | IA20-AdHoc/src/ia20/net/conn/tcp/ServerBase.cpp | InvenireAude/IA20 | db12d42e66a389ecdb41efff91e7029ce1ba4425 | [
"Apache-2.0"
] | null | null | null | IA20-AdHoc/src/ia20/net/conn/tcp/ServerBase.cpp | InvenireAude/IA20 | db12d42e66a389ecdb41efff91e7029ce1ba4425 | [
"Apache-2.0"
] | null | null | null | /*
* File: IA20-CommonLib/src/commonlib/net/ServerBase.cpp
*
* Copyright (C) 2015, Albert Krzymowski
*
* 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/license... | 31.477064 | 109 | 0.636841 | InvenireAude |
76d58fc47e237c18b1b9855b68a9628eafd5326c | 598 | hpp | C++ | soccer/planning/PlannerNode.hpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | soccer/planning/PlannerNode.hpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | soccer/planning/PlannerNode.hpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <Context.hpp>
#include <vector>
#include "Node.hpp"
#include "Trajectory.hpp"
#include "planner/PlanRequest.hpp"
#include "planner/Planner.hpp"
namespace Planning {
class PlannerForRobot {
public:
PlannerForRobot();
Trajectory PlanForRobot(const Planning::PlanRequest& request);
priva... | 16.611111 | 66 | 0.72408 | kasohrab |
76d77600b3838b4deec7b9a9f4e96179c2ab0d98 | 4,096 | cpp | C++ | src/main.cpp | dtrotzjr/greenhouse_data_server | ade7f71404e48759d1c9702acb3c0cca2f70cd76 | [
"MIT"
] | null | null | null | src/main.cpp | dtrotzjr/greenhouse_data_server | ade7f71404e48759d1c9702acb3c0cca2f70cd76 | [
"MIT"
] | null | null | null | src/main.cpp | dtrotzjr/greenhouse_data_server | ade7f71404e48759d1c9702acb3c0cca2f70cd76 | [
"MIT"
] | null | null | null | #include <iostream>
#include "APWeatherDataManager.h"
#include "APSimpleSQL.h"
#include "APGreenhouse.h"
#include <unistd.h>
#include <fstream>
#include <string.h>
#include <json/json.h>
#include <sstream>
#include <pthread.h>
#include "APException.h"
#include "APImageTransferAgent.h"
#include <ctime>
APImageTransferA... | 38.280374 | 144 | 0.461426 | dtrotzjr |
76d7fce4a98e3e763262c87d6e4f8d4ef4417dbb | 4,740 | cpp | C++ | src/adiar/statistics.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | src/adiar/statistics.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | src/adiar/statistics.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | #include "statistics.h"
#include <adiar/internal/pred.h>
#include <adiar/internal/levelized_priority_queue.h>
#include <adiar/internal/reduce.h>
namespace adiar
{
// Define the available function
stats_t adiar_stats()
{
return {
stats_equality,
stats_priority_queue,
stats_reduce,
};
... | 47.4 | 136 | 0.611392 | logsem |
76da6c2949693e7c5216b6a1a018e8b66bda329d | 7,625 | cpp | C++ | src/kerberos/capture/Stream.cpp | wollars/kerberos-machinery | 95c648133a7229b94b78af74283b3a8a1574922b | [
"Unlicense"
] | 1 | 2018-06-12T21:48:53.000Z | 2018-06-12T21:48:53.000Z | src/kerberos/capture/Stream.cpp | wollars/kerberos-machinery | 95c648133a7229b94b78af74283b3a8a1574922b | [
"Unlicense"
] | null | null | null | src/kerberos/capture/Stream.cpp | wollars/kerberos-machinery | 95c648133a7229b94b78af74283b3a8a1574922b | [
"Unlicense"
] | null | null | null | #include "capture/Stream.h"
#include "opencv2/objdetect/objdetect.hpp"
namespace kerberos
{
// ----------------------------------
// Configure stream thread settings
void Stream::configureStream(StringMap & settings)
{
//read port from settings
int enabled = (settings.at("streams.Mjpg... | 32.172996 | 146 | 0.458361 | wollars |
76dd1955516625388e8217802a7b8dc23f5b245c | 1,221 | cpp | C++ | concurrencpp/src/executors/task.cpp | HungMingWu/concurrencpp | eb4ed8fb6cd8510925738868cf57bed882005b4b | [
"MIT"
] | null | null | null | concurrencpp/src/executors/task.cpp | HungMingWu/concurrencpp | eb4ed8fb6cd8510925738868cf57bed882005b4b | [
"MIT"
] | null | null | null | concurrencpp/src/executors/task.cpp | HungMingWu/concurrencpp | eb4ed8fb6cd8510925738868cf57bed882005b4b | [
"MIT"
] | null | null | null | #include "task.h"
using concurrencpp::task;
using concurrencpp::details::task_context;
task_context::task_context(task_context&& rhs) noexcept : m_pointer(nullptr) {
*this = std::move(rhs);
}
task_context& task_context::operator = (task_context&& rhs) noexcept {
if (static_cast<bool>(*this)) {
clear();
}
if (... | 15.653846 | 78 | 0.649468 | HungMingWu |
76dec6edc1abaac0135edeb7aab823f44937719d | 774 | hpp | C++ | src/slave/resource_collector/gpu_collector.hpp | HICAS-ChameLeon/Chameleon | cd0666317eb4e92a4f9fe0b2955b46bc224cf862 | [
"Apache-2.0"
] | 4 | 2019-03-06T03:04:40.000Z | 2019-07-20T15:35:00.000Z | src/slave/resource_collector/gpu_collector.hpp | HICAS-ChameLeon/Chameleon | cd0666317eb4e92a4f9fe0b2955b46bc224cf862 | [
"Apache-2.0"
] | 6 | 2018-11-30T08:04:45.000Z | 2019-05-15T03:04:28.000Z | src/slave/resource_collector/gpu_collector.hpp | HICAS-ChameLeon/Chameleon | cd0666317eb4e92a4f9fe0b2955b46bc224cf862 | [
"Apache-2.0"
] | 4 | 2019-03-11T11:51:22.000Z | 2020-05-11T07:27:31.000Z | #ifndef CHAMELEON_GPUCOLLECTOR_H
#define CHAMELEON_GPUCOLLECTOR_H
#include <string>
#include <process/subprocess.hpp>
#include <process/future.hpp>
#include <process/io.hpp>
#include <hardware_resource.pb.h>
using std::string;
using std::cout;
using std::endl;
using std::vector;
using process::Subprocess;
using pro... | 20.368421 | 65 | 0.72739 | HICAS-ChameLeon |
76e2dc0a2f563983bbebb56fb64340e6409aef4b | 1,782 | cpp | C++ | luogu/3372.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | luogu/3372.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | luogu/3372.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long
using namespace std;
struct node{
int l, r;
ll val, lazy;
} a[400000];
int n, m, x, y, tot;
ll z;
queue<int> q;
void build_tree(int id, int l, int r){
a[id].l = l, a[id].r = r;
if(l == r) return;
int mid = (l + r) >> 1;
build_tree(id*2, l, mid);
build_tree(id*2+1, mi... | 24.410959 | 97 | 0.489899 | swwind |
76e2e103d4cf9962c0b3b857991a80560ab5f8fd | 1,535 | hpp | C++ | include/integratorxx/quadratures/gausscheby2.hpp | evaleev/IntegratorXX | 70339ca2d8f753e477dffb64788913c1bc12b519 | [
"BSD-3-Clause"
] | null | null | null | include/integratorxx/quadratures/gausscheby2.hpp | evaleev/IntegratorXX | 70339ca2d8f753e477dffb64788913c1bc12b519 | [
"BSD-3-Clause"
] | null | null | null | include/integratorxx/quadratures/gausscheby2.hpp | evaleev/IntegratorXX | 70339ca2d8f753e477dffb64788913c1bc12b519 | [
"BSD-3-Clause"
] | 3 | 2019-05-09T21:02:21.000Z | 2021-03-04T21:34:35.000Z | #pragma once
#include <integratorxx/quadrature.hpp>
namespace IntegratorXX {
template <typename PointType, typename WeightType>
class GaussChebyshev1 :
public Quadrature<GaussChebyshev1<PointType,WeightType>> {
using base_type = Quadrature<GaussChebyshev1<PointType,WeightType>>;
public:
using point_type ... | 23.257576 | 70 | 0.723779 | evaleev |
76e4b3eacdd7d1dbc44775bd26397c0830756524 | 1,842 | cpp | C++ | src/starter/ResourceImpl.cpp | plwai/OglSP | a30af19628636c2ccd744fa2a844f2b42d39c98e | [
"MIT"
] | null | null | null | src/starter/ResourceImpl.cpp | plwai/OglSP | a30af19628636c2ccd744fa2a844f2b42d39c98e | [
"MIT"
] | null | null | null | src/starter/ResourceImpl.cpp | plwai/OglSP | a30af19628636c2ccd744fa2a844f2b42d39c98e | [
"MIT"
] | null | null | null | #include "ResourceImpl.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
ResourceImpl::ResourceImpl() { }
Shader ResourceImpl::loadShaderFromFile(const GLchar *vShaderFile, const GLchar *fShaderFile, const GLchar *gShaderFile) {
... | 26.314286 | 122 | 0.746471 | plwai |
76f7cb5983cfa19ce95e323ef952e3f83b415ef6 | 1,899 | cpp | C++ | Applied/CCore/src/ReadConBase.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | Applied/CCore/src/ReadConBase.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | Applied/CCore/src/ReadConBase.cpp | SergeyStrukov/CCore-4-xx | 5faeadd50a24a7dbe18ffff8efe5f49212588637 | [
"BSL-1.0"
] | null | null | null | /* ReadConBase.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 4.01
//
// Tag: Applied Mini
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// ... | 15.957983 | 90 | 0.500263 | SergeyStrukov |
76fadd9111b2491fcee0d0c13f1ebf483bc55149 | 810 | cpp | C++ | MeowEngine/src/Meow/Renderer/openGL/OpenGLVertexArray.cpp | vedpatil611/MeowEngine | 2afb3f686920528fcd30447543d5888cf57627c9 | [
"MIT"
] | 7 | 2020-08-13T05:23:08.000Z | 2022-02-13T16:20:58.000Z | MeowEngine/src/Meow/Renderer/openGL/OpenGLVertexArray.cpp | vedpatil611/MeowEngine | 2afb3f686920528fcd30447543d5888cf57627c9 | [
"MIT"
] | null | null | null | MeowEngine/src/Meow/Renderer/openGL/OpenGLVertexArray.cpp | vedpatil611/MeowEngine | 2afb3f686920528fcd30447543d5888cf57627c9 | [
"MIT"
] | null | null | null | #include "MeowPCH.h"
#include <Meow/Renderer/openGL/OpenGLVertexArray.h>
#include <glad/glad.h>
Meow::OpenGLVertexArray::OpenGLVertexArray()
{
glGenVertexArrays(1, &m_ArrayId);
}
Meow::OpenGLVertexArray::~OpenGLVertexArray()
{
for (int i = 0; i < m_Buffers.size(); ++i)
delete m_Buffers[i];
glDeleteVertexArrays... | 19.756098 | 87 | 0.735802 | vedpatil611 |
76fba266ad7b5dfec6d3285343ac4c3c7f70d003 | 13,580 | cpp | C++ | components/sync_framework/dropboxsyncdriver.cpp | Backline-Automation/symphytum | 1b7cbdc969c0ad3b4ce3f40aafa5eb811a72bfc9 | [
"BSD-2-Clause"
] | 374 | 2015-01-03T17:25:16.000Z | 2022-03-04T07:58:07.000Z | components/sync_framework/dropboxsyncdriver.cpp | DatabasesWorks/symphytum-configurable-fields | 187b72e9ff758bd207a415cb3fc9e2d97889996c | [
"BSD-2-Clause"
] | 133 | 2015-01-03T17:28:29.000Z | 2020-09-22T11:44:14.000Z | components/sync_framework/dropboxsyncdriver.cpp | DatabasesWorks/symphytum-configurable-fields | 187b72e9ff758bd207a415cb3fc9e2d97889996c | [
"BSD-2-Clause"
] | 78 | 2015-01-19T13:26:07.000Z | 2022-03-21T00:02:55.000Z | /*
* Copyright (c) 2012 Giorgio Wicklein <giowckln@gmail.com>
*/
//-----------------------------------------------------------------------------
// Hearders
//-----------------------------------------------------------------------------
#include "dropboxsyncdriver.h"
#include "../settingsmanager.h"
#include "../..... | 30.933941 | 90 | 0.547423 | Backline-Automation |
0a031f9c5fcea7c3fe606571bc7b3f5096e41512 | 16,419 | cpp | C++ | src/common/test/test_merkle_trie.cpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | src/common/test/test_merkle_trie.cpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | src/common/test/test_merkle_trie.cpp | datavetaren/epilog | 7067a4cf5b62dd8eca3ab9395fbb1b85d95a9820 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <assert.h>
#include <vector>
#include <algorithm>
#include <array>
#include <common/merkle_trie.hpp>
#include <common/random.hpp>
#include <common/hex.hpp>
#include <common/utime.hpp>
using namespace epilog::common;
#define PERFORMANCE_TEST 0
#define PERFO... | 31.214829 | 155 | 0.575248 | datavetaren |
0a06281b2837a719461de1f8bc02d51e131724e1 | 246 | cpp | C++ | src/SignedVariable.cpp | andremmvgabriel/boolean_circuit_generator | 21a36e04072b4ce388b22992d3ca35643b967fc9 | [
"MIT"
] | 1 | 2021-09-03T14:03:28.000Z | 2021-09-03T14:03:28.000Z | src/SignedVariable.cpp | andremmvgabriel/boolean_circuit_generator | 21a36e04072b4ce388b22992d3ca35643b967fc9 | [
"MIT"
] | null | null | null | src/SignedVariable.cpp | andremmvgabriel/boolean_circuit_generator | 21a36e04072b4ce388b22992d3ca35643b967fc9 | [
"MIT"
] | null | null | null | #include <SignedVariable.hpp>
gabe::circuits::SignedVariable::SignedVariable() : Variable() {}
gabe::circuits::SignedVariable::SignedVariable(uint8_t number_bits) : Variable(number_bits) {}
gabe::circuits::SignedVariable::~SignedVariable() {}
| 30.75 | 94 | 0.768293 | andremmvgabriel |
0a06dfe12db520bdb37be39db76a6b25db0bc3c5 | 294 | cpp | C++ | q26/main.cpp | Niishi/C- | 395b72b9d227ab91ec27ca4b30ad7ee7d69eab4e | [
"MIT"
] | null | null | null | q26/main.cpp | Niishi/C- | 395b72b9d227ab91ec27ca4b30ad7ee7d69eab4e | [
"MIT"
] | null | null | null | q26/main.cpp | Niishi/C- | 395b72b9d227ab91ec27ca4b30ad7ee7d69eab4e | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void tansaku(){
}
int main(){
int n = 3;
int m = 2;
int parking[n][m];
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
parking[i][j] = 1;
}
}
parking[0][0] = 2;
parking[n-1][m-1] = 0;
}
| 14.7 | 35 | 0.428571 | Niishi |
0a0b84d1847769bd49fdfd05285fd91dd1ba7b7d | 15,239 | cpp | C++ | src/samples.cpp | TangoCash/RP-Soundboard | cd70a8a663f5682ecc370bb35883fb5ff340d869 | [
"MIT"
] | 90 | 2016-07-07T20:39:09.000Z | 2022-01-03T02:40:12.000Z | src/samples.cpp | Bluscream/RP-Soundboard | a7653d62fe84d71cdcddf4b614b1a0083fc2deec | [
"MIT"
] | 106 | 2015-11-19T16:27:15.000Z | 2022-03-03T14:55:27.000Z | src/samples.cpp | Bluscream/RP-Soundboard | a7653d62fe84d71cdcddf4b614b1a0083fc2deec | [
"MIT"
] | 46 | 2017-01-14T15:34:59.000Z | 2021-12-02T15:23:32.000Z | // src/samples.cpp
//----------------------------------
// RP Soundboard Source Code
// Copyright (c) 2015 Marius Graefe
// All rights reserved
// Contact: rp_soundboard@mgraefe.de
//----------------------------------
#include "common.h"
#include "inputfile.h"
#include "samples.h"
#include "SoundInfo.h"... | 28.807183 | 177 | 0.566507 | TangoCash |
0a0c50926f3ede6c51f606d5e7496b97eadedc82 | 1,363 | hpp | C++ | include/saci/tree/model/detail/get_collection.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | 1 | 2020-07-29T20:42:58.000Z | 2020-07-29T20:42:58.000Z | include/saci/tree/model/detail/get_collection.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | null | null | null | include/saci/tree/model/detail/get_collection.hpp | ricardocosme/saci | 2a6a134f63b6e69fde452e0fe9bb5acfd149a6e4 | [
"BSL-1.0"
] | null | null | null |
// Copyright Ricardo Calheiros de Miranda Cosme 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)
#pragma once
namespace saci { namespace tree { namespace detail {
template<typename LeavesImpl, typename Self>
au... | 30.977273 | 78 | 0.758621 | ricardocosme |
0a10c0fc7f6ff08fa513946a77a789b9e875168d | 4,532 | cc | C++ | codechef/sept18a/photocom.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | codechef/sept18a/photocom.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | codechef/sept18a/photocom.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://www.codechef.com/SEPT18A/problems/PHOTOCOM
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
typedef vector<ll> vi;
typedef vector<vi> vvi;
ll t, n, h1, w1, h2, w2;
string s1, s2;
vvi m;
void f() {
m = vvi(h2, vi(w2));
m[0][0] = s2[0] == '1';
for (... | 28.866242 | 81 | 0.372462 | Ashindustry007 |
0a1267d7bef855c0b608fb0ac4b4109b96070724 | 3,300 | cpp | C++ | HDUOJ/6430/segment_tree_merge_dfs.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | HDUOJ/6430/segment_tree_merge_dfs.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | HDUOJ/6430/segment_tree_merge_dfs.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#include <stack>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <bitset>
#include <functional>
#include <iterator>
using namespace std;
#defi... | 20.625 | 99 | 0.584242 | codgician |
0a16afab6d7eb3080ef0e955602e3bab1adb9246 | 520 | hpp | C++ | agent/src/controllers/main/events/SnifferStatus.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | 1 | 2018-11-12T02:48:46.000Z | 2018-11-12T02:48:46.000Z | agent/src/controllers/main/events/SnifferStatus.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | null | null | null | agent/src/controllers/main/events/SnifferStatus.hpp | mdziekon/eiti-tin-ftp-stattr | c8b8c119f6731045f90281d607b98d7a5ffb3bd2 | [
"MIT"
] | null | null | null | #ifndef TIN_CONTROLLERS_MAIN_EVENTS_SNIFFERSTATUS_HPP
#define TIN_CONTROLLERS_MAIN_EVENTS_SNIFFERSTATUS_HPP
#include "../Event.hpp"
#include "../../../utils/Packet.hpp"
namespace tin { namespace controllers { namespace main { namespace events
{
struct SnifferStatus: public tin::controllers::main::Event
{
... | 26 | 74 | 0.728846 | mdziekon |
0a17fbfec0b9f2f06283c5917ef4b979b1d92c13 | 26,513 | cpp | C++ | 55j/CClientLog.cpp | Jhobean/Source-Archive | ab24ba44ffd34c329accedb980699e94c196fceb | [
"Apache-2.0"
] | 2 | 2020-12-22T17:03:14.000Z | 2021-07-31T23:59:05.000Z | 55j/CClientLog.cpp | Jhobean/Source-Archive | ab24ba44ffd34c329accedb980699e94c196fceb | [
"Apache-2.0"
] | null | null | null | 55j/CClientLog.cpp | Jhobean/Source-Archive | ab24ba44ffd34c329accedb980699e94c196fceb | [
"Apache-2.0"
] | 4 | 2021-04-21T19:43:48.000Z | 2021-10-07T00:38:23.000Z | //
// CClientLog.cpp
// Copyright Menace Software (www.menasoft.com).
//
// Login and low level stuff for the client.
//
#include "graysvr.h" // predef header.
#include "CIRCServer.h"
BYTE CClient::sm_xCompress_Buffer[MAX_BUFFER]; // static
CCompressTree CClient::sm_xComp;
//////////////////////////////... | 28.026427 | 232 | 0.637008 | Jhobean |
0a198af24bc396d9632216a411d1da9c5735b881 | 1,200 | cpp | C++ | test/container/bitfield/is_subset_eq.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | test/container/bitfield/is_subset_eq.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | test/container/bitfield/is_subset_eq.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/catch/begin.hpp>
#include <fcppt/catch/end.hpp>
#include <fcppt/container/bitfield/... | 26.086957 | 72 | 0.725833 | freundlich |
0a21694f166824b1f9d9055e0e14f7d9478978e5 | 1,165 | cpp | C++ | example/NetworkReadPCAP/main.cpp | jef42/pcapwrapper | 6e5356fabfe2e49f96fdbd8bfbb0f8555e497969 | [
"MIT"
] | 6 | 2017-08-07T09:22:34.000Z | 2019-05-11T09:11:45.000Z | example/NetworkReadPCAP/main.cpp | jef42/pcapwrapper | 6e5356fabfe2e49f96fdbd8bfbb0f8555e497969 | [
"MIT"
] | null | null | null | example/NetworkReadPCAP/main.cpp | jef42/pcapwrapper | 6e5356fabfe2e49f96fdbd8bfbb0f8555e497969 | [
"MIT"
] | 2 | 2018-05-15T23:28:43.000Z | 2021-11-13T09:53:40.000Z | #include <iostream>
#include <memory>
#include <pcapwrapper/controller.hpp>
#include <pcapwrapper/interfaces/interfacefile.h>
#include <pcapwrapper/processors/processor.h>
#include "detecttcp.h"
int main(int argc, char *argv[]) {
if (argc != 3) {
std::cout << "1. Filename\n";
std::cout << "2. Tim... | 28.414634 | 74 | 0.615451 | jef42 |
0a2eea460f41eb496a96b5c99e180a7337087fe1 | 4,744 | tpp | C++ | v2/include/QLAgent.tpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | v2/include/QLAgent.tpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | v2/include/QLAgent.tpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | // exception messagges
template <class T, class U>
const char *QLAgent<T,U>::exception::Reason[4] = {
"validActionFun is not defined.",
"No valid actions specified for the state given.",
"Entry not found in the qlTable.",
"No action choosen since last update. Are you forgetting something?"
};
// publi... | 35.669173 | 136 | 0.67285 | cherosene |
0a3178f95dbf03f02afd8e902387aaac56902f6b | 133 | cpp | C++ | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/JavaJavah/C.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 2 | 2020-03-05T06:39:03.000Z | 2020-03-31T12:08:04.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/JavaJavah/C.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 3 | 2021-09-08T02:18:00.000Z | 2022-03-12T00:39:44.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/JavaJavah/C.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 1 | 2018-06-04T08:50:33.000Z | 2018-06-04T08:50:33.000Z |
#include <jni.h>
#include <stdio.h>
#include "C.h"
JNIEXPORT void JNICALL Java_C_printName(JNIEnv*, jobject)
{
printf("C\n");
}
| 12.090909 | 57 | 0.676692 | duonglvtnaist |
0a33f6dd561ef895a7567bc7cdc9bb38631f9423 | 4,198 | cpp | C++ | src/technique/fur_simulation/fur_glsl_program.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | 2 | 2019-04-02T14:19:01.000Z | 2021-05-27T13:42:20.000Z | src/technique/fur_simulation/fur_glsl_program.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | 4 | 2016-11-05T14:17:14.000Z | 2017-03-30T15:03:37.000Z | src/technique/fur_simulation/fur_glsl_program.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | null | null | null | #include "technique/fur_simulation/fur_glsl_program.h"
#include "cg/data/shader.h"
using namespace cg;
using cg::data::load_glsl_program_desc;
namespace fur_simulation {
// ----- Fur_pass_program -----
Fur_pass_program::Fur_pass_program()
{
auto prog_desc = load_glsl_program_desc("fur-pass", "../..... | 38.513761 | 113 | 0.795379 | ref2401 |
0a357af7456122433ca8ee8a9124c4b66965b569 | 1,603 | cpp | C++ | kits/arm/gravity_compensation.cpp | guzhaoyuan/hebi-cpp-examples | 2224794fe4e8057a8b7737d17dc9a4a0784b2934 | [
"Apache-2.0"
] | null | null | null | kits/arm/gravity_compensation.cpp | guzhaoyuan/hebi-cpp-examples | 2224794fe4e8057a8b7737d17dc9a4a0784b2934 | [
"Apache-2.0"
] | null | null | null | kits/arm/gravity_compensation.cpp | guzhaoyuan/hebi-cpp-examples | 2224794fe4e8057a8b7737d17dc9a4a0784b2934 | [
"Apache-2.0"
] | 2 | 2018-12-11T21:53:26.000Z | 2019-01-22T20:35:20.000Z | /**
* This file demonstrates gravity compensation behavior by commanding torques
* equal to the force from gravity on the links and joints of an arm.
* Note that this only approximately balances out gravity, as imperfections in
* the torque sensing and modeled system can lead to "drift". Also, the
* particular ch... | 32.714286 | 78 | 0.695571 | guzhaoyuan |
0a363de46bece5856431eff581919da2124e9750 | 3,257 | cpp | C++ | Fractals/CalculationQueue.cpp | emgre/fractals | ed85811f0751d12ac308a1032466c4139895250e | [
"MIT"
] | 1 | 2018-05-17T08:43:33.000Z | 2018-05-17T08:43:33.000Z | Fractals/CalculationQueue.cpp | emgre/fractals | ed85811f0751d12ac308a1032466c4139895250e | [
"MIT"
] | null | null | null | Fractals/CalculationQueue.cpp | emgre/fractals | ed85811f0751d12ac308a1032466c4139895250e | [
"MIT"
] | null | null | null | #include "CalculationQueue.h"
#include "Tile.h"
#include <iostream>
CalculationQueue::CalculationQueue()
{
unsigned int numThreads = std::max(MIN_NUM_THREADS, std::thread::hardware_concurrency());
threads.reserve(numThreads);
workerThreadEnabled = true;
for (unsigned int i = 0; i < numThreads; i++)
{
threads.... | 21.569536 | 136 | 0.676082 | emgre |
0a4e24a0eedb377755c4a3cf688cccaaf4c976ed | 7,808 | cpp | C++ | hw1/Login.cpp | wik46/cs162_programs | d2724cc4aff71f355da99a373f67b4c981bc06a0 | [
"MIT"
] | null | null | null | hw1/Login.cpp | wik46/cs162_programs | d2724cc4aff71f355da99a373f67b4c981bc06a0 | [
"MIT"
] | null | null | null | hw1/Login.cpp | wik46/cs162_programs | d2724cc4aff71f355da99a373f67b4c981bc06a0 | [
"MIT"
] | null | null | null | /* **************************************************************************************
* Filename: Login.cpp
* Author: Lodewyk Jansen van Rensburg.
* Student ID: 934 309 717.
* Date: October 11, 2020.
* Assignment: Program 1 - Wizard Spellbook Catalog.
* Description:
* Input: - A existing file that contains a... | 38.845771 | 99 | 0.624103 | wik46 |
0a4ea5c0e340cf2b472c4bf7f852184fbf3f1aca | 1,183 | cpp | C++ | Lux/BooleanToStringSwitchConverter.cpp | axodox/Lux | 00e8da582233ab4ecf22d773e647c9bd84eb7b32 | [
"MIT"
] | 9 | 2020-11-30T01:13:25.000Z | 2022-03-14T15:17:44.000Z | Lux/BooleanToStringSwitchConverter.cpp | axodox/Lux | 00e8da582233ab4ecf22d773e647c9bd84eb7b32 | [
"MIT"
] | 1 | 2020-11-30T15:45:27.000Z | 2021-02-17T22:11:14.000Z | Lux/BooleanToStringSwitchConverter.cpp | axodox/Lux | 00e8da582233ab4ecf22d773e647c9bd84eb7b32 | [
"MIT"
] | 1 | 2021-02-15T22:17:37.000Z | 2021-02-15T22:17:37.000Z | #include "pch.h"
#include "BooleanToStringSwitchConverter.h"
#include "BooleanToStringSwitchConverter.g.cpp"
using namespace std;
using namespace winrt;
using namespace winrt::Windows::Foundation;
using namespace winrt::Windows::UI::Xaml;
using namespace winrt::Windows::UI::Xaml::Interop;
namespace winrt::Lux::implem... | 33.8 | 185 | 0.716822 | axodox |
aeabb7a5db1a8b6edcde974ffd79a110cb6b879a | 304 | cpp | C++ | src/main/c++/java/lang/Long.cpp | javolution/javolution-cpp | 80f9a6e31e24eac0bde5aba5cf4ef13b8d6fa23a | [
"MIT"
] | 20 | 2017-02-20T23:20:07.000Z | 2021-06-27T16:10:03.000Z | src/main/c++/java/lang/Long.cpp | javolution/javolution-cpp | 80f9a6e31e24eac0bde5aba5cf4ef13b8d6fa23a | [
"MIT"
] | 2 | 2017-03-22T19:14:01.000Z | 2020-06-01T10:57:45.000Z | src/main/c++/java/lang/Long.cpp | javolution/javolution-cpp | 80f9a6e31e24eac0bde5aba5cf4ef13b8d6fa23a | [
"MIT"
] | 6 | 2017-03-22T16:38:43.000Z | 2020-06-16T11:43:37.000Z | /*
* Javolution - Java(TM) Solution for Real-Time and Embedded Systems
* Copyright (C) 2012 - Javolution (http://javolution.org/)
* All rights reserved.
*/
#include "java/lang/Long.hpp"
const Long Long::MAX_VALUE = Long(0x7FFFFFFFFFFFFFFFL);
const Long Long::MIN_VALUE = Long(0x8000000000000000L);
| 27.636364 | 68 | 0.733553 | javolution |
aeb70f5b786f0d758531e43a3b02829d0313761a | 4,744 | cpp | C++ | Documents/RacimoAire/AplicacionPrincipal_1_0/RACIMOHARDWARE_1/dataracimoaire.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | Documents/RacimoAire/AplicacionPrincipal_1_0/RACIMOHARDWARE_1/dataracimoaire.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | Documents/RacimoAire/AplicacionPrincipal_1_0/RACIMOHARDWARE_1/dataracimoaire.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | #include "dataracimoaire.h"
#include <QDebug>
DataRacimoAire::DataRacimoAire(OPCN2 *_RA_cOPC,PMS *_RA_cPMS,QWidget *parent)
{
RA_cOPC=_RA_cOPC;
RA_cPMS=_RA_cPMS;
TimeMuestreo = 10000;
TimeMuestraPromedio = new QTimer;
TimeMuestraPromedio->setInterval(420000);
QObject::connect(TimeMuestraPromedio... | 26.80226 | 126 | 0.668423 | JoseSalamancaCoy |
aebcf29d02827c759dbc7a4c75c850f2672bdf4a | 1,738 | hpp | C++ | example/DemoSources/Swarm.hpp | StefanKubsch/lwmf | 02687c23de6f09f904f29014f196e414368d2d3b | [
"Unlicense"
] | null | null | null | example/DemoSources/Swarm.hpp | StefanKubsch/lwmf | 02687c23de6f09f904f29014f196e414368d2d3b | [
"Unlicense"
] | 3 | 2019-11-03T22:56:43.000Z | 2020-09-16T08:26:50.000Z | example/DemoSources/Swarm.hpp | StefanKubsch/lwmf | 02687c23de6f09f904f29014f196e414368d2d3b | [
"Unlicense"
] | null | null | null | #pragma once
#define NOMINMAX
#include <Windows.h>
#include <cstdint>
#include <array>
#include <random>
#include <cmath>
namespace Swarm
{
inline void Draw()
{
struct ParticleStruct final
{
lwmf::FloatPointStruct Pos{};
float Speed{};
float Direction{};
ParticleStruct() { Init(); }
void Init... | 25.558824 | 234 | 0.663982 | StefanKubsch |
aebd4a51736129d71c435960578381bd3f093839 | 16,231 | cpp | C++ | orderpayframe.cpp | mobile-pos/amp | efe4eb4fda1e6f1ad2ee6113c3bf0a9a61068763 | [
"MIT"
] | 6 | 2020-09-12T08:16:46.000Z | 2020-11-19T04:05:35.000Z | orderpayframe.cpp | mobile-pos/amp | efe4eb4fda1e6f1ad2ee6113c3bf0a9a61068763 | [
"MIT"
] | null | null | null | orderpayframe.cpp | mobile-pos/amp | efe4eb4fda1e6f1ad2ee6113c3bf0a9a61068763 | [
"MIT"
] | 2 | 2020-12-11T02:27:56.000Z | 2021-11-18T02:15:01.000Z | #include "orderpayframe.h"
#include <QLabel>
#include <QLineEdit>
#include <QListWidget>
#include <QDebug>
#include <QMessageBox>
#include <QDateTime>
#include <QDateTime>
#include "datathread.h"
#include "vkeyboardex.h"
#include "mainwindow.h"
extern MainWindow* gWnd;
#define OPENCASHBOXREQ "pos:cashbox:event:req... | 32.140594 | 123 | 0.53749 | mobile-pos |
aec1262863855a575fd0348bcd5900d02dfb5ff6 | 11,032 | hh | C++ | day04/common/data.hh | ovove/aoc21 | 6abcf1e898700826290f35e40bb4514dbcd8d8ef | [
"Unlicense"
] | null | null | null | day04/common/data.hh | ovove/aoc21 | 6abcf1e898700826290f35e40bb4514dbcd8d8ef | [
"Unlicense"
] | null | null | null | day04/common/data.hh | ovove/aoc21 | 6abcf1e898700826290f35e40bb4514dbcd8d8ef | [
"Unlicense"
] | null | null | null | #pragma once
#include <array>
#include <vector>
using BingoBoard = std::array<int, 5 * 5>;
// clang-format off
const std::vector<int> numbers {
50, 68, 2, 1, 69, 32, 87, 10, 31, 21, 78, 23, 62, 98, 16, 99, 65,
35, 27, 96, 66, 26, 74, 72, 45, 52, 81, 60, 38, 57, 54, 19, 18, 77,
71, 29, 51, 41, 22, 6, 5... | 92.705882 | 104 | 0.461022 | ovove |
aec395e84936f09a2d2b864bbaa3c920bc39a9a8 | 9,712 | cpp | C++ | src/path_follower_node.cpp | Marcos-Seafloor/path_follower | 49ee64a0baae7ec913a33e6701026b0fd2957532 | [
"BSD-2-Clause"
] | null | null | null | src/path_follower_node.cpp | Marcos-Seafloor/path_follower | 49ee64a0baae7ec913a33e6701026b0fd2957532 | [
"BSD-2-Clause"
] | null | null | null | src/path_follower_node.cpp | Marcos-Seafloor/path_follower | 49ee64a0baae7ec913a33e6701026b0fd2957532 | [
"BSD-2-Clause"
] | null | null | null | #include "ros/ros.h"
#include "geographic_msgs/GeoPointStamped.h"
#include "geographic_msgs/GeoPath.h"
#include "geometry_msgs/TwistStamped.h"
#include "std_msgs/Bool.h"
#include "std_msgs/String.h"
#include "std_msgs/Float32.h"
#include "std_msgs/Float64.h"
#include "marine_msgs/NavEulerStamped.h"
#include <vector>
#i... | 34.562278 | 142 | 0.616454 | Marcos-Seafloor |
aed0edadefac2b68794ca0ff38a83e51bce26703 | 1,903 | cpp | C++ | ofApp.cpp | SJ-magic-study/study__FindFile | 8baa10b766a235d41cfc3c2a4964894e04033d03 | [
"MIT"
] | null | null | null | ofApp.cpp | SJ-magic-study/study__FindFile | 8baa10b766a235d41cfc3c2a4964894e04033d03 | [
"MIT"
] | null | null | null | ofApp.cpp | SJ-magic-study/study__FindFile | 8baa10b766a235d41cfc3c2a4964894e04033d03 | [
"MIT"
] | null | null | null | /************************************************************
************************************************************/
#include "ofApp.h"
/************************************************************
************************************************************/
//-------------------------------------------------... | 23.207317 | 64 | 0.258539 | SJ-magic-study |
aed5eff440ff2d2469cab23015028a08eaa76e05 | 8,606 | cc | C++ | wrspice/devlib/bsim1/b1temp.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | wrspice/devlib/bsim1/b1temp.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | wrspice/devlib/bsim1/b1temp.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 50.327485 | 77 | 0.491518 | wrcad |
aed62c690a5f7d03b3d1d547c2b10caafd581b5e | 544 | cpp | C++ | 0100/60/169a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0100/60/169a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0100/60/169a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <algorithm>
#include <iostream>
#include <vector>
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(size_t v)
{
std::cout << v << '\n';
}
void solve(std::vector<unsigned>& h, size_t a, size_t ... | 13.948718 | 65 | 0.53125 | actium |
aed72552664e4e29c11985ea91665152e92c6839 | 2,822 | cpp | C++ | src/Roe/compact.cpp | yuyangJin/CFD-Benchmarks | 439c11cac114a8990c880832eb60537480072c41 | [
"MIT"
] | null | null | null | src/Roe/compact.cpp | yuyangJin/CFD-Benchmarks | 439c11cac114a8990c880832eb60537480072c41 | [
"MIT"
] | null | null | null | src/Roe/compact.cpp | yuyangJin/CFD-Benchmarks | 439c11cac114a8990c880832eb60537480072c41 | [
"MIT"
] | null | null | null | #include "compact.h"
#include <cstdio>
#include "util.h"
double U[Nx + 7][Ny + 7][4], U_[Nx + 7][Ny + 7][4];
double Ut[Nx + 7][Ny + 7][4], U1[Nx + 7][Ny + 7][4], U2[Nx + 7][Ny + 7][4];
double L_[Nx + 7][Ny + 7][4][4], R_[Nx + 7][Ny + 7][4][4];
double a_[Nx + 7][Ny + 7][1], LAMDA_[Nx + 7][Ny + 7][4][4];
double G[Nx + 7... | 35.721519 | 120 | 0.525514 | yuyangJin |
aed919b7c2f1b15e23e1459cc88a831857d23b99 | 5,832 | cpp | C++ | Backend/ROS/src/asdr/src/asdr_node.cpp | IEEE-UCF/ASDR | 1ad297e5a08322431e88094c75ab2d20cf74b8d1 | [
"MIT"
] | null | null | null | Backend/ROS/src/asdr/src/asdr_node.cpp | IEEE-UCF/ASDR | 1ad297e5a08322431e88094c75ab2d20cf74b8d1 | [
"MIT"
] | null | null | null | Backend/ROS/src/asdr/src/asdr_node.cpp | IEEE-UCF/ASDR | 1ad297e5a08322431e88094c75ab2d20cf74b8d1 | [
"MIT"
] | null | null | null | /*
* Copyright 2022 Casey Sanchez
*/
#include "asdr_node.hpp"
ASDRNode::ASDRNode(ros::NodeHandle const &node_handle) :
m_node_handle { node_handle },
m_finite_state_machine { { node_handle } }
{
if (!m_node_handle.getParam("/asdr/mobile_hardware_controller/linear/x/max_velocity", m_max_linear_velocity)... | 31.524324 | 139 | 0.636317 | IEEE-UCF |
aee6e1bcda09cad499b341b31ddfd396078cad72 | 1,298 | hpp | C++ | libraries/plugins/apis/block_api/include/delta/plugins/block_api/block_api_objects.hpp | yashbhavsar007/Delta-Blockchain | 602dd5335d2cd51303e953e4c233c8f099da0b07 | [
"MIT"
] | null | null | null | libraries/plugins/apis/block_api/include/delta/plugins/block_api/block_api_objects.hpp | yashbhavsar007/Delta-Blockchain | 602dd5335d2cd51303e953e4c233c8f099da0b07 | [
"MIT"
] | null | null | null | libraries/plugins/apis/block_api/include/delta/plugins/block_api/block_api_objects.hpp | yashbhavsar007/Delta-Blockchain | 602dd5335d2cd51303e953e4c233c8f099da0b07 | [
"MIT"
] | null | null | null | #pragma once
#include <delta/chain/account_object.hpp>
#include <delta/chain/block_summary_object.hpp>
#include <delta/chain/comment_object.hpp>
#include <delta/chain/global_property_object.hpp>
#include <delta/chain/history_object.hpp>
#include <delta/chain/delta_objects.hpp>
#include <delta/chain/transaction_object.h... | 32.45 | 104 | 0.691063 | yashbhavsar007 |
aee7e32f8e94fe4c316ff8d7c2b8a29dbf2f85d0 | 505 | hpp | C++ | week2/ex1/ex1/Enemy.hpp | stefanalexandru02/CommandDefense | 03a179217c454c2faee3a2dee0d75e566b569d63 | [
"MIT"
] | null | null | null | week2/ex1/ex1/Enemy.hpp | stefanalexandru02/CommandDefense | 03a179217c454c2faee3a2dee0d75e566b569d63 | [
"MIT"
] | null | null | null | week2/ex1/ex1/Enemy.hpp | stefanalexandru02/CommandDefense | 03a179217c454c2faee3a2dee0d75e566b569d63 | [
"MIT"
] | null | null | null | //
// Enemy.hpp
// ex1
//
// Created by Stefan Alexandru on 05.03.2022.
//
#ifndef Enemy_hpp
#define Enemy_hpp
#include <stdio.h>
#include "EnemiesStructures.h"
class Enemy
{
private:
Point location;
int health;
public:
void Init(Point intitialLocation, int initialHealh);
void Move(EnemyDirection... | 17.413793 | 73 | 0.693069 | stefanalexandru02 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.