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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f84381986bc199b3e2b8f142d7b97c934dfd94b2 | 1,951 | cc | C++ | set_modulation_curve/main.cc | tsubasatamba/cipher_analysis | 395aa270810c12515d64cacd74cb70388ce55ada | [
"Unlicense"
] | null | null | null | set_modulation_curve/main.cc | tsubasatamba/cipher_analysis | 395aa270810c12515d64cacd74cb70388ce55ada | [
"Unlicense"
] | null | null | null | set_modulation_curve/main.cc | tsubasatamba/cipher_analysis | 395aa270810c12515d64cacd74cb70388ce55ada | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <TStyle.h>
#include <TROOT.h>
#include <TFile.h>
#include <TTree.h>
#include <TH1.h>
#include <TCanvas.h>
#include <TF1.h>
#include <TGraphErrors.h>
#include "FitModulationCurve.hh"
#include "GetAngle.hh"
#include <nlohmann/json.hpp>
... | 30.484375 | 141 | 0.660174 | tsubasatamba |
f848c06c62dadad4f9e00b4264a6df74cd2010b3 | 5,983 | cpp | C++ | CPUT/source/opengl/CPUTGPUTimerOGL.cpp | GameTechDev/ChatHeads | f83c43f7fd3537badd74c31545ce2a45340474ee | [
"Apache-2.0"
] | 13 | 2016-03-11T16:39:13.000Z | 2021-09-16T09:05:50.000Z | CPUT/source/opengl/CPUTGPUTimerOGL.cpp | GameTechDev/ChatHeads | f83c43f7fd3537badd74c31545ce2a45340474ee | [
"Apache-2.0"
] | 1 | 2016-09-14T01:57:00.000Z | 2016-09-18T19:29:06.000Z | CPUT/source/opengl/CPUTGPUTimerOGL.cpp | GameTechDev/ChatHeads | f83c43f7fd3537badd74c31545ce2a45340474ee | [
"Apache-2.0"
] | 10 | 2016-04-27T02:09:52.000Z | 2019-12-08T12:35:40.000Z |
/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ht... | 23.011538 | 111 | 0.644994 | GameTechDev |
f84d951333fd041c064a8d421406648cdf837983 | 2,015 | cpp | C++ | src/lib/AST/PType.cpp | LittleLaGi/p2llvm | 549b82c2e89c2cc1324a3d8b8d7760bb96ba0ba3 | [
"MIT"
] | null | null | null | src/lib/AST/PType.cpp | LittleLaGi/p2llvm | 549b82c2e89c2cc1324a3d8b8d7760bb96ba0ba3 | [
"MIT"
] | null | null | null | src/lib/AST/PType.cpp | LittleLaGi/p2llvm | 549b82c2e89c2cc1324a3d8b8d7760bb96ba0ba3 | [
"MIT"
] | null | null | null | #include "AST/PType.hpp"
#include <cassert>
const char *kTypeString[] = {"void", "integer", "real", "boolean", "string"};
// logical constness
const char *PType::getPTypeCString() const {
if (!m_type_string_is_valid) {
m_type_string += kTypeString[static_cast<size_t>(m_type)];
if (m_dimensions.s... | 25.833333 | 81 | 0.583623 | LittleLaGi |
f84ed5a21909008dd393c61e05f5a189c81629e6 | 627 | cpp | C++ | .emacs.d/cedet/semantic/tests/testfriends.cpp | littletwolee/emacs-configure | 6fe0f3e99cab1c40de8e32e50740ff5d0d765fa3 | [
"MIT"
] | 6 | 2019-01-06T05:55:47.000Z | 2021-05-28T09:29:58.000Z | .emacs.d/cedet/semantic/tests/testfriends.cpp | littletwolee/emacs-configure | 6fe0f3e99cab1c40de8e32e50740ff5d0d765fa3 | [
"MIT"
] | null | null | null | .emacs.d/cedet/semantic/tests/testfriends.cpp | littletwolee/emacs-configure | 6fe0f3e99cab1c40de8e32e50740ff5d0d765fa3 | [
"MIT"
] | 2 | 2015-12-09T19:06:16.000Z | 2021-12-02T14:41:31.000Z | // Test parsing of friends and how they are used in completion.
/*
>> Thanks Damien Profeta for the nice example.
>
> I paste a small example.
> It would be great if friend can be well parsed and even greater if
> class B can access to all the members of A.
*/
class Af // %2% ( ( "testfriends.cpp" ) ( "A... | 16.5 | 71 | 0.590112 | littletwolee |
f8515cb5e9bbf5ef7a813577bf3884c9c6c7ef4b | 6,122 | hpp | C++ | src/pyinterp/core/include/pyinterp/detail/math.hpp | apatlpo/pangeo-pyinterp | b5242c6869d7e601a5695b304c81992deb63367d | [
"BSD-3-Clause"
] | null | null | null | src/pyinterp/core/include/pyinterp/detail/math.hpp | apatlpo/pangeo-pyinterp | b5242c6869d7e601a5695b304c81992deb63367d | [
"BSD-3-Clause"
] | null | null | null | src/pyinterp/core/include/pyinterp/detail/math.hpp | apatlpo/pangeo-pyinterp | b5242c6869d7e601a5695b304c81992deb63367d | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019 CNES
//
// All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#pragma once
#include <cmath>
#include <tuple>
namespace pyinterp {
namespace detail {
namespace math {
/// π
template <typename T>
inline constexpr T pi() noexcep... | 26.617391 | 78 | 0.639824 | apatlpo |
f8517aaf27e3823e0bab69f02e0c7766c43c9a3f | 1,144 | cpp | C++ | niceday-1.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 264 | 2015-01-08T10:07:01.000Z | 2022-03-26T04:11:51.000Z | niceday-1.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 17 | 2016-04-15T03:38:07.000Z | 2020-10-30T00:33:57.000Z | niceday-1.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 127 | 2015-01-08T04:56:44.000Z | 2022-02-25T18:40:37.000Z | // 2008-09-01
// niceday-1.cpp uses misof's "staircase" data structure.
// See niceday-2.cpp for another approach.
#include <cstdio>
#include <algorithm>
#include <map>
using namespace std;
#define MAX(a,b) ((a)>(b)?(a):(b))
#ifdef _MSC_VER
#define GC getchar
#else
#define GC getchar_unlocked
#endif
#define SIZE 100000... | 16.342857 | 57 | 0.557692 | ohmyjons |
f859bebd724186d33d763504c385dacb0309ff7e | 4,430 | cpp | C++ | src/in_2sf/desmume/addons/slot1_retail.cpp | CyberBotX/in_xsf | 6d78469746b17bf1a9356c7a26ecd2850ba46eb3 | [
"BSD-3-Clause"
] | 15 | 2015-09-04T10:36:15.000Z | 2022-02-23T23:52:37.000Z | src/in_2sf/desmume/addons/slot1_retail.cpp | WACUP/in_xsf | 719f5b443af91e53f35f86055dd0b1b4851db2b0 | [
"BSD-3-Clause"
] | 3 | 2017-11-09T18:09:47.000Z | 2021-02-04T05:39:09.000Z | src/in_2sf/desmume/addons/slot1_retail.cpp | WACUP/in_xsf | 719f5b443af91e53f35f86055dd0b1b4851db2b0 | [
"BSD-3-Clause"
] | 9 | 2016-11-22T10:05:20.000Z | 2021-06-12T19:48:53.000Z | /* Copyright (C) 2010-2011 DeSmuME team
This file is part of DeSmuME
DeSmuME is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ve... | 26.369048 | 140 | 0.688713 | CyberBotX |
f85d695eed711dbf2fc70ef58615aa9d44d562b1 | 799 | cpp | C++ | arc060_b/Main.cpp | s-shirayama/AtCoder | 8bb777af516a6a24ce88a5b9f2c22bf4fc7cd3c8 | [
"MIT"
] | null | null | null | arc060_b/Main.cpp | s-shirayama/AtCoder | 8bb777af516a6a24ce88a5b9f2c22bf4fc7cd3c8 | [
"MIT"
] | null | null | null | arc060_b/Main.cpp | s-shirayama/AtCoder | 8bb777af516a6a24ce88a5b9f2c22bf4fc7cd3c8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define REP(i, n, s) for (LL i = (s); i < (n); i++)
#define SIZE 1
using namespace std;
typedef long long int LL;
typedef long double LD;
LL func(LL b, LL n) {
if (n < b) return n;
return func(b, floor(n/b)) + (n % b);
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
LL N, S;
cin >>... | 15.365385 | 51 | 0.459324 | s-shirayama |
f86122b64e73a12002a05e074d397c9ae9536865 | 26 | cc | C++ | examples/POSIX/json-rpc-server/jsonRpcServer.cc | PetroShevchenko/lib-coap-cpp | f99bff174925257ea63480f598f5753ece0f392d | [
"Apache-2.0"
] | null | null | null | examples/POSIX/json-rpc-server/jsonRpcServer.cc | PetroShevchenko/lib-coap-cpp | f99bff174925257ea63480f598f5753ece0f392d | [
"Apache-2.0"
] | null | null | null | examples/POSIX/json-rpc-server/jsonRpcServer.cc | PetroShevchenko/lib-coap-cpp | f99bff174925257ea63480f598f5753ece0f392d | [
"Apache-2.0"
] | null | null | null | #include "jsonRpcServer.h" | 26 | 26 | 0.807692 | PetroShevchenko |
f861ec595025bdb258c2ae0cb3f416f88b0a6742 | 1,583 | cpp | C++ | C++/Valid Sudoku.cpp | mafia1989/leetcode | f0bc9708a58602866818120556d8b8caf114811e | [
"MIT"
] | 3 | 2015-08-29T15:25:13.000Z | 2015-08-29T15:25:21.000Z | C++/Valid Sudoku.cpp | mafia1989/leetcode | f0bc9708a58602866818120556d8b8caf114811e | [
"MIT"
] | null | null | null | C++/Valid Sudoku.cpp | mafia1989/leetcode | f0bc9708a58602866818120556d8b8caf114811e | [
"MIT"
] | null | null | null | // Valid Sudoku
// Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.
// The Sudoku board could be partially filled, where empty cells are filled with the character '.'.
// A partially filled sudoku which is valid.
// Note:
// A valid Sudoku board (partially filled) is not necessarily solvab... | 25.532258 | 115 | 0.44662 | mafia1989 |
d379c1471b7caf3cdbf0d0efade3bd5a414b6754 | 1,437 | cpp | C++ | tests/TestMain.cpp | RaygenEngine/Raygen | 2e61afd35f594d06186c16397b536412ebf4298d | [
"MIT"
] | 2 | 2021-01-27T15:49:04.000Z | 2021-01-28T07:40:30.000Z | tests/TestMain.cpp | RaygenEngine/Raygen | 2e61afd35f594d06186c16397b536412ebf4298d | [
"MIT"
] | null | null | null | tests/TestMain.cpp | RaygenEngine/Raygen | 2e61afd35f594d06186c16397b536412ebf4298d | [
"MIT"
] | 1 | 2021-03-07T23:17:31.000Z | 2021-03-07T23:17:31.000Z | #include "pch.h"
#include "engine/Logger.h"
#define CATCH_CONFIG_RUNNER
#include <catch2/catch.hpp>
int main(int argc, char* argv[])
{
Catch::Session session; // There must be exactly one instance
int height = 0; // Some user variable you want to be able to set
Log.Init(LogLevel::Error);
// Build a new parser ... | 26.127273 | 82 | 0.673626 | RaygenEngine |
d37bb5937797e26b8648e5cd79d5d1c5f0f70e42 | 1,217 | cpp | C++ | src/mt-options.cpp | chrmoritz/lzma-native | 313fb09ede27bed1c4e7f189b5fc99eadfddb5c2 | [
"MIT"
] | 20 | 2019-09-02T02:14:47.000Z | 2022-02-23T23:13:50.000Z | src/mt-options.cpp | chrmoritz/lzma-native | 313fb09ede27bed1c4e7f189b5fc99eadfddb5c2 | [
"MIT"
] | 7 | 2019-09-06T08:23:55.000Z | 2021-03-19T11:59:39.000Z | node_modules/lzma-native/src/mt-options.cpp | 96vksingh/nodejs_action | 675a6bd8dfd3aa25c0863d1cec9597b71fbdac58 | [
"MIT"
] | 3 | 2019-09-22T20:57:13.000Z | 2022-01-03T16:59:03.000Z | #include "liblzma-node.hpp"
namespace lzma {
MTOptions::MTOptions() : filters_(NULL), ok_(false) { }
MTOptions::~MTOptions() {
delete filters_;
}
MTOptions::MTOptions(Local<Object> opt) : filters_(NULL), ok_(true) {
opts_.flags = 0;
opts_.filters = NULL;
opts_.block_size = Nan::To<int64_t>(Nan::Get(opt, ... | 29.682927 | 106 | 0.657354 | chrmoritz |
d37c1e9430bcf7605b43ebd233675f37195dea3d | 3,642 | cpp | C++ | src/GameOptionsManager.cpp | psobow/TicTacToeCpp | 479ba81b9fcb37be4776ef528f0e8d81bed4245c | [
"MIT"
] | null | null | null | src/GameOptionsManager.cpp | psobow/TicTacToeCpp | 479ba81b9fcb37be4776ef528f0e8d81bed4245c | [
"MIT"
] | null | null | null | src/GameOptionsManager.cpp | psobow/TicTacToeCpp | 479ba81b9fcb37be4776ef528f0e8d81bed4245c | [
"MIT"
] | null | null | null | #include "../include/GameOptionsManager.hpp"
GameOptionsManager* GameOptionsManager::instance = nullptr;
GameOptionsManager* GameOptionsManager::getInstance()
{
if(instance == nullptr)
{
instance = new GameOptionsManager();
}
return instance;
}
void GameOptionsManager::setGameStartingPlayer(c... | 24.119205 | 127 | 0.654036 | psobow |
d382b5597aee79eda902a1f3a0059f942078e317 | 975 | cpp | C++ | chapter_1/ex-35.cpp | chwit/DSAA_by_CPP | 5038de5229a098107e6861c17df088b8b85c711e | [
"BSD-2-Clause"
] | null | null | null | chapter_1/ex-35.cpp | chwit/DSAA_by_CPP | 5038de5229a098107e6861c17df088b8b85c711e | [
"BSD-2-Clause"
] | null | null | null | chapter_1/ex-35.cpp | chwit/DSAA_by_CPP | 5038de5229a098107e6861c17df088b8b85c711e | [
"BSD-2-Clause"
] | null | null | null | //
// Created by user on 2019/4/10.
// Copyright © 2019 user. All rights reserved.
//
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
//next_permutation
//只有排序之后的数组才能只用next_permutation获得全排列
int count_my = 0;
//输出范围[start,end)内的全排列
template<typename T>
void permuta... | 18.055556 | 83 | 0.610256 | chwit |
d383ec12679fb011994fb8de43f92751bf8d8534 | 1,595 | hpp | C++ | include/text_view_detail/basic_view.hpp | tahonermann/text_view | 65740356488d0dd98b65f221c71c7b7377c813de | [
"MIT"
] | 144 | 2015-10-10T10:12:53.000Z | 2021-12-31T16:07:27.000Z | include/text_view_detail/basic_view.hpp | Quuxplusone/text_view | 65740356488d0dd98b65f221c71c7b7377c813de | [
"MIT"
] | 34 | 2016-01-22T03:52:53.000Z | 2018-08-04T01:56:06.000Z | include/text_view_detail/basic_view.hpp | Quuxplusone/text_view | 65740356488d0dd98b65f221c71c7b7377c813de | [
"MIT"
] | 19 | 2016-02-10T11:29:20.000Z | 2021-06-28T11:11:36.000Z | // Copyright (c) 2016, Tom Honermann
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.
#ifndef TEXT_VIEW_BASIC_VIEW_HPP // {
#define TEXT_VIEW_BASIC_VIEW_HPP
#include <utility>
#include <ex... | 24.538462 | 78 | 0.673981 | tahonermann |
d387a96b0da99eb463484c940d8f899aec583257 | 150 | cpp | C++ | tests/std/tests/VSO_0000000_c_math_functions/cmath.cpp | oktonion/STL | e2fce45b9ca899f3887b7fa48e24de95859a7b8e | [
"Apache-2.0"
] | 2 | 2021-01-19T02:43:19.000Z | 2021-11-20T05:21:42.000Z | tests/std/tests/VSO_0000000_c_math_functions/cmath.cpp | tapaswenipathak/STL | 0d75fc5ab6684d4f6239879a6ec162aad0da860d | [
"Apache-2.0"
] | null | null | null | tests/std/tests/VSO_0000000_c_math_functions/cmath.cpp | tapaswenipathak/STL | 0d75fc5ab6684d4f6239879a6ec162aad0da860d | [
"Apache-2.0"
] | 4 | 2020-04-24T05:04:54.000Z | 2020-05-17T22:48:58.000Z | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "type_asserts.hpp"
#include <cmath>
| 25 | 59 | 0.733333 | oktonion |
d3898cc4b2eaeeb41b0bcae89c516391864463f8 | 1,553 | cpp | C++ | firmware/library/L3_HAL/test/buzzer_test.cpp | Jeremy-Chau/SJSU-Dev2 | b3c0b008f9f19a12fe70d319760459b4b2111003 | [
"Apache-2.0"
] | null | null | null | firmware/library/L3_HAL/test/buzzer_test.cpp | Jeremy-Chau/SJSU-Dev2 | b3c0b008f9f19a12fe70d319760459b4b2111003 | [
"Apache-2.0"
] | null | null | null | firmware/library/L3_HAL/test/buzzer_test.cpp | Jeremy-Chau/SJSU-Dev2 | b3c0b008f9f19a12fe70d319760459b4b2111003 | [
"Apache-2.0"
] | 2 | 2018-07-27T20:48:40.000Z | 2018-08-02T21:32:05.000Z | #include "L3_HAL/buzzer.hpp"
#include "L1_Drivers/pwm.hpp"
#include "L5_Testing/testing_frameworks.hpp"
TEST_CASE("Testing buzzer", "[buzzer]")
{
// Create mock for PWM class
Mock<PwmInterface> mock_pwm_pin;
Fake(
Method(mock_pwm_pin, Initialize),
Method(mock_pwm_pin, SetDutyCycle),
... | 27.245614 | 65 | 0.62009 | Jeremy-Chau |
d39139f5437d8357fb6ff70daededd6f8024a64f | 500 | cpp | C++ | ue5/Blink_game/Blink_game/PiDigitalOutput.cpp | michivo/osd | ccc76aa0d7fa9b62b63d012481dbb318be0f6382 | [
"MIT"
] | null | null | null | ue5/Blink_game/Blink_game/PiDigitalOutput.cpp | michivo/osd | ccc76aa0d7fa9b62b63d012481dbb318be0f6382 | [
"MIT"
] | null | null | null | ue5/Blink_game/Blink_game/PiDigitalOutput.cpp | michivo/osd | ccc76aa0d7fa9b62b63d012481dbb318be0f6382 | [
"MIT"
] | null | null | null | #include "PiDigitalOutput.h"
#include "PiIoManager.h"
namespace pi_io {
Pi_digital_output::Pi_digital_output(Pin pin) : pin_{ Pi_io_manager::instance().register_output(pin) }
{
}
void Pi_digital_output::set_state(State state)
{
Pi_io_manager::instance().digital_write(pin_, state);
}
State Pi_digital_outpu... | 18.518519 | 103 | 0.736 | michivo |
d39e2ce9546228306e6525f4563d98c23c74011a | 3,217 | cpp | C++ | MonoNative.Tests/mscorlib/System/Runtime/InteropServices/mscorlib_System_Runtime_InteropServices_UCOMIStream_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/Runtime/InteropServices/mscorlib_System_Runtime_InteropServices_UCOMIStream_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/Runtime/InteropServices/mscorlib_System_Runtime_InteropServices_UCOMIStream_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Runtime.InteropServices
// Name: UCOMIStream
// C++ Typed Name: mscorlib::System::Runtime::InteropServices::UCOMIStream
#include <gtest/gtest.h>
#include <mscorlib/System/Runtime/Intero... | 27.033613 | 178 | 0.71806 | brunolauze |
d3a15126bd4f8b80e79078193f3df6e00b0f4e7b | 763 | cpp | C++ | src/lib/reorder.cpp | xuzijian629/pace2020 | ec39d0dd193daf9fa1306ee8508a6f80fbab3c79 | [
"MIT"
] | 3 | 2020-06-12T09:17:33.000Z | 2020-09-02T19:05:50.000Z | src/lib/reorder.cpp | xuzijian629/pace2020 | ec39d0dd193daf9fa1306ee8508a6f80fbab3c79 | [
"MIT"
] | null | null | null | src/lib/reorder.cpp | xuzijian629/pace2020 | ec39d0dd193daf9fa1306ee8508a6f80fbab3c79 | [
"MIT"
] | null | null | null | #include "graph.cpp"
Graph reorder(const Graph& g, const vector<int>& to) {
Graph ret;
int n = g.n();
for (int i = 0; i < n; i++) {
assert(g.nodes.test(i));
ret.add_node(to[i]);
FOR_EACH(j, at(g.adj, i)) { ret.add_edge(to[i], to[j]); }
}
if (g.root != -1) ret.root = to[g.roo... | 25.433333 | 65 | 0.496723 | xuzijian629 |
d3a4b2fedbf139f9f34bc02019ee210dbf3eb967 | 5,781 | cpp | C++ | src/test/cases/multi_session.cpp | larsrh/associative | 5e8a6c5d03e4726e85c8835df5d7458dff00f95a | [
"Apache-2.0"
] | null | null | null | src/test/cases/multi_session.cpp | larsrh/associative | 5e8a6c5d03e4726e85c8835df5d7458dff00f95a | [
"Apache-2.0"
] | null | null | null | src/test/cases/multi_session.cpp | larsrh/associative | 5e8a6c5d03e4726e85c8835df5d7458dff00f95a | [
"Apache-2.0"
] | null | null | null | #include <sstream>
#include <boost/uuid/uuid_io.hpp>
#include "../test.hpp"
#include "../../util/io.hpp"
#include "../../util/util.hpp"
#include "../../util/exception.hpp"
#include "gen/isolevel_impls.hpp"
namespace associative { namespace test {
class Concurrent : public Test {};
TEST_F(Concurrent, IsolationUns... | 34.207101 | 107 | 0.749524 | larsrh |
d3a676ab524adbc844d2f332ab9f5ea0a3f57335 | 68,589 | cpp | C++ | tests/utils/numeric_utils_test.cpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | tests/utils/numeric_utils_test.cpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | tests/utils/numeric_utils_test.cpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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... | 35.030133 | 183 | 0.641488 | geenen124 |
d3b3c82fc2ff57d1185046fa929d554d98864cae | 8,855 | cpp | C++ | gameEngine/gameEngine/SceneDirector.cpp | ComputerScienceTrolls/simpleGameGL | 81e25f690f5825bf633685e9d7d2771a3d61f4c7 | [
"MIT"
] | null | null | null | gameEngine/gameEngine/SceneDirector.cpp | ComputerScienceTrolls/simpleGameGL | 81e25f690f5825bf633685e9d7d2771a3d61f4c7 | [
"MIT"
] | 5 | 2017-10-06T21:39:20.000Z | 2018-01-29T13:23:19.000Z | gameEngine/gameEngine/SceneDirector.cpp | ComputerScienceTrolls/simpleGameGL | 81e25f690f5825bf633685e9d7d2771a3d61f4c7 | [
"MIT"
] | null | null | null | #include "SceneDirector.h"
#include <iostream>
std::auto_ptr<SceneDirector> SceneDirector::instance;
//default width and height
int WIDTH = 800;
int HEIGHT = 600;
double lastTime = glfwGetTime();
int nbFrames = 0;
//void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode);
SceneDirector::S... | 19.809843 | 114 | 0.658724 | ComputerScienceTrolls |
d3b7e84eb305cec0b6ae45cfd9546f1a1dc425b1 | 3,515 | hpp | C++ | src/Base/Policies/DataStreamBuffer.hpp | mlaszko/DisCODe | 0042280ae6c1ace8c6e0fa25ae4d440512c113f6 | [
"MIT"
] | 1 | 2017-02-17T13:01:13.000Z | 2017-02-17T13:01:13.000Z | src/Base/Policies/DataStreamBuffer.hpp | mlaszko/DisCODe | 0042280ae6c1ace8c6e0fa25ae4d440512c113f6 | [
"MIT"
] | null | null | null | src/Base/Policies/DataStreamBuffer.hpp | mlaszko/DisCODe | 0042280ae6c1ace8c6e0fa25ae4d440512c113f6 | [
"MIT"
] | 1 | 2018-07-23T00:05:58.000Z | 2018-07-23T00:05:58.000Z | /*!
* \file DataStreamBuffer.hpp
* \brief DataStream buffering policies
*
* \author mstefanc
* \date 06-07-2010
*/
#ifndef DATASTREAMBUFFER_HPP_
#define DATASTREAMBUFFER_HPP_
#include <queue>
#include <stdexcept>
namespace Base {
/*!
* Buffering policies for DataStream.
*
* Every buffering policy should ha... | 17.84264 | 99 | 0.64239 | mlaszko |
d3b86882d6d10f4438be7e15f1ab5bc01bf2d4da | 4,636 | cpp | C++ | Source/HardTime2/Private/Missions.cpp | ThomasWilliamWallace/PrisonGame | 243ffd5d587086775c094d3dc72ff29987aa9bce | [
"MIT"
] | 1 | 2018-12-30T15:35:50.000Z | 2018-12-30T15:35:50.000Z | Source/HardTime2/Private/Missions.cpp | ThomasWilliamWallace/PrisonGame | 243ffd5d587086775c094d3dc72ff29987aa9bce | [
"MIT"
] | null | null | null | Source/HardTime2/Private/Missions.cpp | ThomasWilliamWallace/PrisonGame | 243ffd5d587086775c094d3dc72ff29987aa9bce | [
"MIT"
] | null | null | null | #include "Missions.h"
#include "PlayerData.h"
#include "SimWorld.h"
#include "Constants.h"
#include "ActorItem.h"
MissionClass::MissionClass(RandomMission r, UPlayerData* playerPtr):
MissionClass(playerPtr)
{}
MissionClass::MissionClass(UPlayerData* owner):
m_mission(GetRandomMission()),
m_owner(owner)
{
m_... | 31.972414 | 195 | 0.668464 | ThomasWilliamWallace |
d3c0eaa6d16dbbf92473213172a880fafb0628d8 | 742 | hh | C++ | restore_ios.hh | psaksa/git-junction | 55cb940704d8d8dcf773e8917809a972c078976f | [
"MIT"
] | null | null | null | restore_ios.hh | psaksa/git-junction | 55cb940704d8d8dcf773e8917809a972c078976f | [
"MIT"
] | null | null | null | restore_ios.hh | psaksa/git-junction | 55cb940704d8d8dcf773e8917809a972c078976f | [
"MIT"
] | null | null | null | /* git-junction
* Copyright (c) 2016-2017 by Pauli Saksa
*
* Licensed under The MIT License, see file LICENSE.txt in this source tree.
*/
#ifndef GIT_JUNCTION_RESTORE_IOS_HEADER
#define GIT_JUNCTION_RESTORE_IOS_HEADER
#include <ios>
class restore_ios {
std::ios &io;
std::ios::fmtflags flags;
std::io... | 18.55 | 76 | 0.59973 | psaksa |
d3c2cdd1cd9682a3a579a1692e817e5631ea6c7f | 642 | hpp | C++ | lib/hargui/include/part.hpp | Ocead/HAR | 341738dd6d513573635f4d6c51b9c7bd8abfcc2b | [
"BSD-2-Clause"
] | 2 | 2020-09-11T18:11:10.000Z | 2020-10-20T17:25:38.000Z | lib/hargui/include/part.hpp | Ocead/HAR | 341738dd6d513573635f4d6c51b9c7bd8abfcc2b | [
"BSD-2-Clause"
] | null | null | null | lib/hargui/include/part.hpp | Ocead/HAR | 341738dd6d513573635f4d6c51b9c7bd8abfcc2b | [
"BSD-2-Clause"
] | null | null | null | //
// Created by Johannes on 17.07.2020.
//
#ifndef HAR_GUI_PART_HPP
#define HAR_GUI_PART_HPP
#include <gtkmm/box.h>
#include <gtkmm/button.h>
#include <gtkmm/image.h>
#include <gtkmm/label.h>
namespace har::gui_ {
class part : public Gtk::Button {
private:
Gtk::Box _box;
Gtk:... | 18.882353 | 60 | 0.590343 | Ocead |
d3ca16f46de4c5008ef55d0175fe5df4c64b834a | 699 | hpp | C++ | CPPMetal/Headers/CPPMetal.hpp | chromy/cppmetal | 7acebf0519f119745e25a2b9eaac81889fb3a774 | [
"MIT"
] | null | null | null | CPPMetal/Headers/CPPMetal.hpp | chromy/cppmetal | 7acebf0519f119745e25a2b9eaac81889fb3a774 | [
"MIT"
] | null | null | null | CPPMetal/Headers/CPPMetal.hpp | chromy/cppmetal | 7acebf0519f119745e25a2b9eaac81889fb3a774 | [
"MIT"
] | null | null | null | /*
See LICENSE folder for this sample’s licensing information.
Abstract:
Header for C++ Metal wrapper
*/
#ifndef CPPMetal_hpp
#define CPPMetal_hpp
#include "CPPMetalBuffer.hpp"
#include "CPPMetalCommandBuffer.hpp"
#include "CPPMetalCommandQueue.hpp"
#include "CPPMetalDevice.hpp"
#include "CPPMetalDepthStencil.hpp"
#... | 24.964286 | 59 | 0.812589 | chromy |
d3ce4e217b620855f1d8e47c48be4f6c8dc802bc | 355 | cpp | C++ | ex204042016.cpp | jcvasconcelos/praticando-exercicios-simples-git-c | 24e7328ff6c6cb452acf2fad1e7a1789e2daaf42 | [
"MIT"
] | null | null | null | ex204042016.cpp | jcvasconcelos/praticando-exercicios-simples-git-c | 24e7328ff6c6cb452acf2fad1e7a1789e2daaf42 | [
"MIT"
] | null | null | null | ex204042016.cpp | jcvasconcelos/praticando-exercicios-simples-git-c | 24e7328ff6c6cb452acf2fad1e7a1789e2daaf42 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
int main()
{
int soma=10;
float money=2.21;
char letra='A';
double valor=2.01E6;
printf("Valor da soma = %d\n", soma); //Mosta na tela o conteudo da variavel
printf("Valor de Money = %f\n", money);
printf("Valor de Letra = %c\n", letra);
printf("Valor de valor = %e\n", val... | 20.882353 | 77 | 0.642254 | jcvasconcelos |
d3d20adae2446f8d8b45f2833ac954436a55d9ea | 11,970 | cc | C++ | tests/ticker.cc | hedzr/hicc | c2a33afec2ff1f79c42ed9f888ad091710e7ae60 | [
"MIT"
] | null | null | null | tests/ticker.cc | hedzr/hicc | c2a33afec2ff1f79c42ed9f888ad091710e7ae60 | [
"MIT"
] | null | null | null | tests/ticker.cc | hedzr/hicc | c2a33afec2ff1f79c42ed9f888ad091710e7ae60 | [
"MIT"
] | null | null | null | //
// Created by Hedzr Yeh on 2021/7/13.
//
// #define HICC_TEST_THREAD_POOL_DBGOUT 1
// #define HICC_ENABLE_THREAD_POOL_READY_SIGNAL 1
#include "hicc/hz-ticker.hh"
#include "hicc/hz-x-class.hh"
#include "hicc/hz-x-test.hh"
#include <chrono>
#include <iostream>
#include <thread>
hicc::debug::X x_global_var;
names... | 38.488746 | 181 | 0.578279 | hedzr |
d3d2a90e687b53ad00a51878e5c1bc5525580db2 | 2,913 | hpp | C++ | DefeatMonsterAICreateBaseProject/Skill.hpp | AinoMegumi/DefeatMonsterAICreateBaseProject | 6666f55bec2ec42fc81a0a39fcd98d93af091676 | [
"MIT"
] | null | null | null | DefeatMonsterAICreateBaseProject/Skill.hpp | AinoMegumi/DefeatMonsterAICreateBaseProject | 6666f55bec2ec42fc81a0a39fcd98d93af091676 | [
"MIT"
] | null | null | null | DefeatMonsterAICreateBaseProject/Skill.hpp | AinoMegumi/DefeatMonsterAICreateBaseProject | 6666f55bec2ec42fc81a0a39fcd98d93af091676 | [
"MIT"
] | null | null | null | #pragma once
#include "Element.hpp"
struct SkillA {
SkillA() = default;
SkillA(const std::string Name, const std::string Tag, int UseMP, const int BasePower, const std::string Description, const ElementInfo SkillElement,
const std::string EffectGraphPath, const std::string EffectSoundPath, const bool Range, cons... | 50.224138 | 186 | 0.729832 | AinoMegumi |
d3d33631652acfc324a5eef9e1cb776de3d55a76 | 4,093 | hpp | C++ | include/xtomic/impl/hash_map_node_integral_key.hpp | mashavorob/lfds | 3890472a8a9996ce35d9a28f185df4c2f219a2bd | [
"0BSD"
] | null | null | null | include/xtomic/impl/hash_map_node_integral_key.hpp | mashavorob/lfds | 3890472a8a9996ce35d9a28f185df4c2f219a2bd | [
"0BSD"
] | null | null | null | include/xtomic/impl/hash_map_node_integral_key.hpp | mashavorob/lfds | 3890472a8a9996ce35d9a28f185df4c2f219a2bd | [
"0BSD"
] | null | null | null | /*
* hash_node_integral_key.hpp
*
* Created on: Feb 7, 2015
* Author: masha
*/
#ifndef INCLUDE_HASH_MAP_NODE_INTEGRAL_KEY_HPP_
#define INCLUDE_HASH_MAP_NODE_INTEGRAL_KEY_HPP_
#include <xtomic/quantum.hpp>
#include "meta_utils.hpp"
namespace xtomic
{
// Eclipse Luna does not recognize alignas keyword rega... | 25.110429 | 89 | 0.623015 | mashavorob |
d3d576e1958a7c3ed1f9ead8e6193cec77f383b4 | 6,911 | cpp | C++ | exodus/libexodus/exodus/mvos2.cpp | exodusdb/exodus | b99dd39e826d5a56b6a807c14994ee8fc8970ff8 | [
"MIT"
] | null | null | null | exodus/libexodus/exodus/mvos2.cpp | exodusdb/exodus | b99dd39e826d5a56b6a807c14994ee8fc8970ff8 | [
"MIT"
] | null | null | null | exodus/libexodus/exodus/mvos2.cpp | exodusdb/exodus | b99dd39e826d5a56b6a807c14994ee8fc8970ff8 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2009 steve.bush@neosys.com
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, distr... | 28.916318 | 150 | 0.70178 | exodusdb |
d3d74341214e42a6c90a87797b8fbaa336f66315 | 2,951 | cpp | C++ | exampleCreate/src/ofApp.cpp | armadillu/ofxTextureAtlas | b00b510acedc1211778b0f94b5a1c0753ea780d7 | [
"MIT"
] | 14 | 2015-03-31T03:33:34.000Z | 2021-06-04T08:45:45.000Z | exampleCreate/src/ofApp.cpp | armadillu/ofxTextureAtlas | b00b510acedc1211778b0f94b5a1c0753ea780d7 | [
"MIT"
] | 1 | 2020-08-27T16:19:30.000Z | 2020-08-27T16:53:43.000Z | exampleCreate/src/ofApp.cpp | armadillu/ofxTextureAtlas | b00b510acedc1211778b0f94b5a1c0753ea780d7 | [
"MIT"
] | 6 | 2015-08-05T20:45:19.000Z | 2020-07-09T10:55:05.000Z | #include "ofApp.h"
void ofApp::setup(){
ofSetFrameRate(60);
ofSetVerticalSync(true);
ofEnableAlphaBlending();
ofBackground(22);
scale = 1.0;
// LISTENERS
ofAddListener(atlasCreator.eventAtlasCreationFinished, this, &ofApp::onAtlasCreationFinished);
vector<string> fileList;
ofDirectory d;
d.allowExt("jpg... | 21.078571 | 103 | 0.657743 | armadillu |
d3de2fad0c36ff5e1de05d695371ae10e9d0cf5e | 2,220 | cpp | C++ | test/framework/tMatcherFactory.cpp | xiaohongchen1991/clang-xform | bd0cf899760b53b24e10ca4baab3c4e281535b97 | [
"MIT"
] | 2 | 2020-02-18T18:09:45.000Z | 2020-05-10T18:38:38.000Z | test/framework/tMatcherFactory.cpp | xiaohongchen1991/clang-xform | bd0cf899760b53b24e10ca4baab3c4e281535b97 | [
"MIT"
] | null | null | null | test/framework/tMatcherFactory.cpp | xiaohongchen1991/clang-xform | bd0cf899760b53b24e10ca4baab3c4e281535b97 | [
"MIT"
] | 1 | 2020-02-18T18:09:48.000Z | 2020-02-18T18:09:48.000Z | /*
MIT License
Copyright (c) 2019 Xiaohong Chen
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, merg... | 43.529412 | 102 | 0.735135 | xiaohongchen1991 |
d3deb3e3c43d1ea4de8861e5764160d62eb9ba17 | 4,465 | cpp | C++ | test/swap.cpp | sieren/variant | 99ef8fb19f5ea5f229587da3dd425a7d24c4fd80 | [
"BSL-1.0"
] | 564 | 2015-10-07T06:23:04.000Z | 2022-03-25T17:17:49.000Z | test/swap.cpp | sieren/variant | 99ef8fb19f5ea5f229587da3dd425a7d24c4fd80 | [
"BSL-1.0"
] | 76 | 2015-10-28T10:19:02.000Z | 2021-08-17T02:28:36.000Z | test/swap.cpp | sieren/variant | 99ef8fb19f5ea5f229587da3dd425a7d24c4fd80 | [
"BSL-1.0"
] | 88 | 2015-10-23T00:26:58.000Z | 2022-03-03T09:47:27.000Z | // MPark.Variant
//
// Copyright Michael Park, 2015-2017
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <mpark/variant.hpp>
#include <string>
#include <gtest/gtest.h>
#include "util.hpp"
TEST(Swap, Same) {
... | 25.514286 | 89 | 0.610974 | sieren |
d3e1c859769c49e51a6c38d76fa289fd7bff8304 | 24,184 | cpp | C++ | src/examples/commonExamples/persistenceExample/src/TestModel.cpp | MDE4CPP/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 12 | 2017-02-17T10:33:51.000Z | 2022-03-01T02:48:10.000Z | src/examples/commonExamples/persistenceExample/src/TestModel.cpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 28 | 2017-10-17T20:23:52.000Z | 2021-03-04T16:07:13.000Z | src/examples/commonExamples/persistenceExample/src/TestModel.cpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 22 | 2017-03-24T19:03:58.000Z | 2022-03-31T12:10:07.000Z | /*
* TestModel.cpp
*
* Created on: 23.06.2017
* Author: Alexander
*/
#include "TestModel.hpp"
#include "ecore/EAnnotation.hpp"
#include "ecore/EAttribute.hpp"
#include "ecore/EClass.hpp"
#include "ecore/EEnum.hpp"
#include "ecore/EEnumLiteral.hpp"
#include "ecore/EStringToStringMapEntry.hpp"
#include "ecor... | 34.401138 | 1,069 | 0.724405 | MDE4CPP |
d3e2fdd3f504c29cb6ad9b28fd086f457d16fdb9 | 1,215 | cpp | C++ | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/crypto/bn/exp.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 529 | 2015-03-10T00:17:45.000Z | 2022-03-17T02:21:19.000Z | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/crypto/bn/exp.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 495 | 2015-03-10T22:02:46.000Z | 2019-05-16T13:05:00.000Z | DeviceCode/pal/OpenSSL/OpenSSL_1_0_0/crypto/bn/exp.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 332 | 2015-03-10T08:04:36.000Z | 2022-03-29T04:18:36.000Z | /* unused */
#include <openssl/tmdiff.h>
#include "bn_lcl.h"
#ifdef OPENSSL_SYS_WINDOWS
#include <stdio.h>
#endif
#define SIZE 256
#define NUM (8*8*8)
#define MOD (8*8*8*8*8)
main(argc,argv)
int argc;
char *argv[];
{
BN_CTX ctx;
BIGNUM a,b,c,r,rr,t,l;
int j,i,size=SIZE,num=NUM,mod=MOD;
char *... | 18.692308 | 72 | 0.566255 | PervasiveDigital |
d3e5ef0c6abd060d037184253795954185c0f745 | 269 | cpp | C++ | src/foreachprint.cpp | PeterSommerlad/CPPCourseIntroduction | 9bc9cda460d504a3cf31bb059e858f9e8d5d3bf4 | [
"MIT"
] | null | null | null | src/foreachprint.cpp | PeterSommerlad/CPPCourseIntroduction | 9bc9cda460d504a3cf31bb059e858f9e8d5d3bf4 | [
"MIT"
] | null | null | null | src/foreachprint.cpp | PeterSommerlad/CPPCourseIntroduction | 9bc9cda460d504a3cf31bb059e858f9e8d5d3bf4 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <vector>
#include <iostream>
void print(int x) {
std::cout << "print: "<< x << '\n';
}
void printReverse(std::vector<int> v) {
std::for_each(crbegin(v), crend(v), print);
}
int main(){
std::vector v{1,2,3,4,5};
printReverse(v);
} | 17.933333 | 45 | 0.613383 | PeterSommerlad |
d3e78bf353de3c32d39691300a33f6f236bb39ea | 4,738 | hpp | C++ | include/freertos_cpp_util/object_pool/Object_pool.hpp | jacobschloss/freertos_cpp_util | 8251809738922c84b1ce12db6a77000b73287a8b | [
"BSD-3-Clause"
] | 5 | 2019-03-28T22:05:50.000Z | 2022-03-29T16:20:01.000Z | include/freertos_cpp_util/object_pool/Object_pool.hpp | jacobschloss/freertos_cpp_util | 8251809738922c84b1ce12db6a77000b73287a8b | [
"BSD-3-Clause"
] | null | null | null | include/freertos_cpp_util/object_pool/Object_pool.hpp | jacobschloss/freertos_cpp_util | 8251809738922c84b1ce12db6a77000b73287a8b | [
"BSD-3-Clause"
] | 1 | 2020-06-17T04:04:26.000Z | 2020-06-17T04:04:26.000Z | /**
* @brief Object_pool
* @author Jacob Schloss <jacob@schloss.io>
* @copyright Copyright (c) 2018 Jacob Schloss. All rights reserved.
* @license Licensed under the 3-Clause BSD license. See LICENSE for details
*/
#pragma once
#include "freertos_cpp_util/Queue_static_pod.hpp"
#include "freertos_cpp_util/object_... | 22.140187 | 106 | 0.695019 | jacobschloss |
d3e93b4a64afe604470a51fc7b70e85ea86ba495 | 1,670 | hpp | C++ | Source/Cerise/CR_Text.hpp | BubbleChien/Path | 950f65b9fcd99bebf4cb5b20fecd3df085161912 | [
"MIT"
] | 1 | 2018-07-07T15:14:33.000Z | 2018-07-07T15:14:33.000Z | Source/Cerise/CR_Text.hpp | BubbleChien/Path | 950f65b9fcd99bebf4cb5b20fecd3df085161912 | [
"MIT"
] | null | null | null | Source/Cerise/CR_Text.hpp | BubbleChien/Path | 950f65b9fcd99bebf4cb5b20fecd3df085161912 | [
"MIT"
] | null | null | null |
#ifndef CR_TEXT_HPP
#define CR_TEXT_HPP
#include "./CR_Common.hpp"
#include "./CR_Error.hpp"
#include "./CR_Math.hpp"
#include "./CR_Vector.hpp"
namespace CR
{
class Text
{
CR_PRIVATE
C2D_TextBuf m_buffer = nullptr;
C2D_Text m_text;
Vector m_pos;
uint32_t m_color = 0xFFFFFFFF;
float m_size = 1... | 11.678322 | 88 | 0.636527 | BubbleChien |
d3f6b620fb3cb66b4be843d879506f938c5cf2f0 | 16,727 | cpp | C++ | src/PropBindingDialog.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null | src/PropBindingDialog.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null | src/PropBindingDialog.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null |
#include "PropBindingDialog.h"
#include <wx/dataview.h>
#include <wx/statline.h>
///////////////////////////////////////////////////////////////////////////
enum
{
ID_BIND = 100,
ID_UNBIND
};
BEGIN_EVENT_TABLE(PropBindingDialog, wxDialog)
EVT_BUTTON(ID_BIND, PropBindingDialog::OnBindButton)
... | 33.521042 | 147 | 0.609972 | tapeguy |
108cb9c126208baa6d96f4f71d32fac108adc580 | 1,440 | cpp | C++ | CF-Upsolving v001/Solutions/red_maple/A/main.cpp | gmeligio/axon_training | 657f181b732265856c71e97697bfde2062744e5a | [
"MIT"
] | null | null | null | CF-Upsolving v001/Solutions/red_maple/A/main.cpp | gmeligio/axon_training | 657f181b732265856c71e97697bfde2062744e5a | [
"MIT"
] | 5 | 2019-04-30T22:31:36.000Z | 2019-05-07T00:15:23.000Z | CF-Upsolving v001/Solutions/red_maple/A/main.cpp | gmeligio/axon_training | 657f181b732265856c71e97697bfde2062744e5a | [
"MIT"
] | 5 | 2019-05-01T05:08:43.000Z | 2019-05-07T18:13:18.000Z | /*
Date 05/12/2019
Brenda E Ramirez.
*/
/*
Statement:
*/
#include <bits/stdc++.h>
#include <limits.h>
#include <algorithm>
#include <numeric>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
#... | 19.2 | 68 | 0.465278 | gmeligio |
108ee3df534bebc0f003c1a1d476c137aca231d1 | 23,882 | cpp | C++ | UDPEchoWithBroadcast/server.cpp | henry9836/UDPChat | 8a31662236f8a223e7b73a2c5267999becc11837 | [
"MIT"
] | 1 | 2019-05-20T00:06:02.000Z | 2019-05-20T00:06:02.000Z | UDPEchoWithBroadcast/server.cpp | henry9836/UDPChat | 8a31662236f8a223e7b73a2c5267999becc11837 | [
"MIT"
] | null | null | null | UDPEchoWithBroadcast/server.cpp | henry9836/UDPChat | 8a31662236f8a223e7b73a2c5267999becc11837 | [
"MIT"
] | null | null | null | //
// (c) 2015 Media Design School
//
// File Name : server.cpp
// Description : Does server work
// Author : Henry Oliver
// Mail : henry983615@gmail.com
//
//Library Includes
#include <WS2tcpip.h>
#include <iostream>
#include <utility>
#include <thread>
#include <chrono>
#include <stdlib.h>
#inclu... | 39.15082 | 350 | 0.679549 | henry9836 |
1090a9fb484f4c10c2600fd71d0ac46dc4b445c3 | 490 | cpp | C++ | engine/src/PhysicsEngine/API/ActivationListener.cpp | nuclearkevin/Strontium | 88045e7ab50f614bbbcb8c283e2a7802fd435207 | [
"MIT"
] | null | null | null | engine/src/PhysicsEngine/API/ActivationListener.cpp | nuclearkevin/Strontium | 88045e7ab50f614bbbcb8c283e2a7802fd435207 | [
"MIT"
] | null | null | null | engine/src/PhysicsEngine/API/ActivationListener.cpp | nuclearkevin/Strontium | 88045e7ab50f614bbbcb8c283e2a7802fd435207 | [
"MIT"
] | null | null | null | #include "PhysicsEngine/API/ActivationListener.h"
// Project includes.
#include "Core/Logs.h"
// THIS MUST BE THREAD SAFE
namespace Strontium::PhysicsEngine
{
ActivationListener::ActivationListener()
{ }
ActivationListener::~ActivationListener()
{ }
void
ActivationListener::OnBodyActivated(const JP... | 22.272727 | 96 | 0.738776 | nuclearkevin |
10a5e59cbd5f17b1323edd441eb4c343b699da6e | 3,371 | cpp | C++ | utility/BoundingBox.cpp | coolzoom/namigator | 722a9f9e71ac5091acfad6ad53d203e1f1ffcf49 | [
"MIT"
] | null | null | null | utility/BoundingBox.cpp | coolzoom/namigator | 722a9f9e71ac5091acfad6ad53d203e1f1ffcf49 | [
"MIT"
] | null | null | null | utility/BoundingBox.cpp | coolzoom/namigator | 722a9f9e71ac5091acfad6ad53d203e1f1ffcf49 | [
"MIT"
] | null | null | null | #include "utility/BoundingBox.hpp"
#include <algorithm>
namespace math
{
BoundingBox::BoundingBox(const math::Vertex& min, const math::Vertex& max)
{
setCorners(min, max);
}
void BoundingBox::transform(const math::Matrix& mat)
{
float min = std::numeric_limits<float>::lowest();
float max = std::numeric_l... | 23.573427 | 78 | 0.643429 | coolzoom |
10a7f4d0f9d6cf651919cc9afaa9a60453cf2f31 | 595 | hpp | C++ | include/cvtools.hpp | Biblbrox/point-cloud-annotation-tool | 66947974914243af8e5f1bb622ffaa93c2fdb47d | [
"MIT"
] | null | null | null | include/cvtools.hpp | Biblbrox/point-cloud-annotation-tool | 66947974914243af8e5f1bb622ffaa93c2fdb47d | [
"MIT"
] | null | null | null | include/cvtools.hpp | Biblbrox/point-cloud-annotation-tool | 66947974914243af8e5f1bb622ffaa93c2fdb47d | [
"MIT"
] | null | null | null | #ifndef CVTOOLS_HPP
#define CVTOOLS_HPP
#include <opencv2/imgproc.hpp>
#include <algorithm>
namespace cvtools
{
/**
* Add border to image
* @param mat
* @param borderSize
* @return
*/
cv::Mat addBorder(const cv::Mat& mat, int borderSize);
/**
* Calculate truncation of rect i... | 19.833333 | 91 | 0.610084 | Biblbrox |
10a831ddd2342ec7a67a532f9ed465005f71bc9e | 4,561 | cpp | C++ | Source/Game/MainMenuState.cpp | Fiskmans/Old_Betsy | 6610586165250d21de9b9efb57b4e8e56e82ecdf | [
"MIT"
] | 3 | 2021-05-06T19:54:20.000Z | 2021-05-06T21:15:50.000Z | Source/Game/MainMenuState.cpp | Fiskmans/Old_Betsy | 6610586165250d21de9b9efb57b4e8e56e82ecdf | [
"MIT"
] | null | null | null | Source/Game/MainMenuState.cpp | Fiskmans/Old_Betsy | 6610586165250d21de9b9efb57b4e8e56e82ecdf | [
"MIT"
] | null | null | null | #include "pch.h"
#include "MainMenuState.h"
#include "GraphicEngine.h"
#include "DirectX11Framework.h"
#include "SpriteInstance.h"
#include <Xinput.h>
#include "AssetManager.h"
#include "GamlaBettan\Scene.h"
MainMenuState::MainMenuState(bool aShouldDeleteOnPop) :
BaseState(aShouldDeleteOnPop),
Observer(
{
Messa... | 25.338889 | 201 | 0.740627 | Fiskmans |
10a8f11069f0035c59ae3fdba72c2e7128d7aee0 | 426 | cpp | C++ | AtCoder/ABC187/C.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | AtCoder/ABC187/C.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | AtCoder/ABC187/C.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
unordered_set<string> sSet;
string s;
for(int i = 0; i < n; ++i){
cin >> s;
sSet.insert(s);
}
string answer = "satisfiable";
for(string s: sSet){
if(sSet.count("!" + s)){... | 16.384615 | 35 | 0.42723 | Tudor67 |
10aa0375a751f008a6f77356abc3511d7bcce66f | 2,125 | cpp | C++ | tests/quasiquote_tests.cpp | rosholger/Lispis | 16eaa785580b5ea2b1ff5a0e0c6e9f006af9b1bd | [
"MIT"
] | 3 | 2017-05-02T14:50:18.000Z | 2020-04-22T08:11:31.000Z | tests/quasiquote_tests.cpp | rosholger/Lispis | 16eaa785580b5ea2b1ff5a0e0c6e9f006af9b1bd | [
"MIT"
] | null | null | null | tests/quasiquote_tests.cpp | rosholger/Lispis | 16eaa785580b5ea2b1ff5a0e0c6e9f006af9b1bd | [
"MIT"
] | null | null | null | #include "tests.h"
TEST(quoteEqualQuasiquote) {
TEST_SETUP;
RUN_STR(q, s1,
"'(a b c 1 (23 + 8545 . a) (((aksf ag) asd) . (asd 923)))");
RUN_STR(qq, s2,
"(quasiquote (a b c 1 (23 + 8545 . a) (((aksf ag) asd) . (asd 923))))");
t_assert("quote equals quasiquote", deepEqual(q, qq) &... | 31.25 | 84 | 0.505412 | rosholger |
10b8f89c528690f720871e29821ceb9ba01ef0c6 | 647 | cpp | C++ | array.cpp | gptakhil/Cpp-Revision | ae2a9e9ed4eaeb66a4b00787637ae4ff3132b57b | [
"MIT"
] | null | null | null | array.cpp | gptakhil/Cpp-Revision | ae2a9e9ed4eaeb66a4b00787637ae4ff3132b57b | [
"MIT"
] | null | null | null | array.cpp | gptakhil/Cpp-Revision | ae2a9e9ed4eaeb66a4b00787637ae4ff3132b57b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int size = 5;
//Initialize array
int Roll_Number[] = {100,101,102,103,104};
//print array
for (int i = 0; i < size; i++){
//Access element at index i
cout << Roll_Number[i] << " ";
}
cout << endl;
// Update values of ... | 23.962963 | 55 | 0.553323 | gptakhil |
10bd4ffae98d8423d847bcb6d83ad774bbf2ea9f | 312 | cpp | C++ | src/StraightEnemyMove.cpp | yubeneko/Shooting_2D | 614476bd9fec654535e05e349b122d076ccd76e5 | [
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | 1 | 2022-03-18T08:16:22.000Z | 2022-03-18T08:16:22.000Z | src/StraightEnemyMove.cpp | yubeneko/Shooting_2D | 614476bd9fec654535e05e349b122d076ccd76e5 | [
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | src/StraightEnemyMove.cpp | yubeneko/Shooting_2D | 614476bd9fec654535e05e349b122d076ccd76e5 | [
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | #include "StraightEnemyMove.h"
#include "Actor.h"
StraightEnemyMove::StraightEnemyMove(Actor* owner, int updateOrder)
: Component(owner, updateOrder)
{
}
void StraightEnemyMove::Update(float deltaTime)
{
glm::vec2 pos = mOwner->GetPosition();
pos.x += mRightSpeed * deltaTime;
mOwner->SetPosition(pos);
}
| 20.8 | 67 | 0.746795 | yubeneko |
10c8eec391aeb73be4da1128f631c31763b58841 | 2,154 | cpp | C++ | Official Windows Platform Sample/Windows 8.1 desktop samples/[C++]-Windows 8.1 desktop samples/Input Method Editor (IME) sample/C++/SampleIME/DisplayAttributeProvider.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/IME/cpp/SampleIME/DisplayAttributeProvider.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | Samples/IME/cpp/SampleIME/DisplayAttributeProvider.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
#include "Private.h"
#inclu... | 26.268293 | 125 | 0.579851 | zzgchina888 |
10c9bbf2a00f59dc3739a171357a9ac3b6af25c7 | 136 | cpp | C++ | cppcode/cpp execise/day02/main.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | cppcode/cpp execise/day02/main.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | cppcode/cpp execise/day02/main.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
extern "C" int add (int, int);
int main (void) {
cout << add (123, 456) << endl;
return 0;
}
| 17 | 32 | 0.632353 | jiedou |
10cedd7e2501814e0a6470110e97c6e2f2154d6f | 547 | cpp | C++ | Example/Network/Http/Http/ConnectionMgr.cpp | chenyu2202863/iocpframework | 292fbf820af0d96b1d3be18d3616dce3e421f9c2 | [
"FSFAP"
] | 51 | 2015-01-28T08:50:43.000Z | 2022-02-28T02:31:47.000Z | Example/Network/Http/Http/ConnectionMgr.cpp | lvyong1943/iocpframework | 292fbf820af0d96b1d3be18d3616dce3e421f9c2 | [
"FSFAP"
] | 1 | 2016-09-26T06:38:44.000Z | 2016-10-16T11:42:02.000Z | Example/Network/Http/Http/ConnectionMgr.cpp | lvyong1943/iocpframework | 292fbf820af0d96b1d3be18d3616dce3e421f9c2 | [
"FSFAP"
] | 52 | 2015-01-10T08:28:52.000Z | 2021-10-30T12:10:23.000Z | #include "stdafx.h"
#include "ConnectionMgr.h"
namespace http
{
void ConnectionMgr::Start(const ConnectionPtr &c)
{
{
AutoLock lock(lock_);
connections_.insert(c);
}
c->Start();
}
void ConnectionMgr::Stop(const ConnectionPtr &c)
{
{
AutoLock lock(lock_);
connections_.erase(c);
}
c->St... | 14.394737 | 61 | 0.645338 | chenyu2202863 |
10d4060ff81c8fe4932b765600f9bb22f9bb92db | 41,288 | cpp | C++ | agent/browser/ie/pagetest/TestState.cpp | LeeLiangze/web_test | 50ce21afb153b105569e31ef08ddc098743208e5 | [
"IJG"
] | null | null | null | agent/browser/ie/pagetest/TestState.cpp | LeeLiangze/web_test | 50ce21afb153b105569e31ef08ddc098743208e5 | [
"IJG"
] | null | null | null | agent/browser/ie/pagetest/TestState.cpp | LeeLiangze/web_test | 50ce21afb153b105569e31ef08ddc098743208e5 | [
"IJG"
] | null | null | null | /*
Copyright (c) 2005-2007, AOL, LLC.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the fo... | 32.080808 | 176 | 0.582034 | LeeLiangze |
10dd4e7e6d0f6ae718e21b3a1b8397eefce814a0 | 8,859 | cpp | C++ | esp-at/UnifiedAtEvent.cpp | PowerfulCat/Works | 94b729ee2afd14a5fde03ea94f826e0b98b80dcf | [
"MIT"
] | 2 | 2020-03-05T12:59:06.000Z | 2020-03-11T02:58:53.000Z | esp-at/UnifiedAtEvent.cpp | PowerfulCat/Works | 94b729ee2afd14a5fde03ea94f826e0b98b80dcf | [
"MIT"
] | null | null | null | esp-at/UnifiedAtEvent.cpp | PowerfulCat/Works | 94b729ee2afd14a5fde03ea94f826e0b98b80dcf | [
"MIT"
] | null | null | null | #define private public
#include"Uart.h"
#include"UnifiedAtEvent.h"
#include"Utilities.h"
#include"UnifiedBackTask.h"
#define T_US 1000000.0
#define T_MS 1000.0
#define ESP_BIT_RATE 115200
#define ESP_BYTE_RATE (1.0 * ESP_BIT_RATE / 11)
#define MAX_DESIRED 50.0
#define COST(bytes) uin... | 25.604046 | 88 | 0.493397 | PowerfulCat |
10eaed4fcb6f417e0d2208c7552c84365d5f32a0 | 6,111 | hpp | C++ | extension/parquet/include/thrift_tools.hpp | hannes/duckdb | 4a24d71edecc7c0018eb3860d2e104cfe90462b6 | [
"MIT"
] | null | null | null | extension/parquet/include/thrift_tools.hpp | hannes/duckdb | 4a24d71edecc7c0018eb3860d2e104cfe90462b6 | [
"MIT"
] | null | null | null | extension/parquet/include/thrift_tools.hpp | hannes/duckdb | 4a24d71edecc7c0018eb3860d2e104cfe90462b6 | [
"MIT"
] | null | null | null | #pragma once
#include <list>
#include "thrift/protocol/TCompactProtocol.h"
#include "thrift/transport/TBufferTransports.h"
#include "duckdb.hpp"
#ifndef DUCKDB_AMALGAMATION
#include "duckdb/common/file_system.hpp"
#include "duckdb/common/allocator.hpp"
#endif
namespace duckdb {
// A ReadHead for prefetching data in ... | 29.1 | 116 | 0.727377 | hannes |
10eff848446dd52b65ad267dfb5b9e40a5bd8131 | 16,275 | hpp | C++ | packages/utility/archive/src/Utility_HDF5OArchiveImpl_def.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/utility/archive/src/Utility_HDF5OArchiveImpl_def.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/utility/archive/src/Utility_HDF5OArchiveImpl_def.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file Utility_HDF5OArchiveImpl_def.hpp
//! \author Alex Robinson
//! \brief HDF5 output archive implementation class definition
//!
//---------------------------------------------------------------------------//
#ifndef UTILITY_... | 31.97446 | 176 | 0.642949 | bam241 |
10f1a471a36c3904f10641621de29965b79e4415 | 553 | cpp | C++ | source/RTTR.cpp | xzrunner/js | 4d1387c8561884c585dd86e4e0f21885eeada1ec | [
"MIT"
] | null | null | null | source/RTTR.cpp | xzrunner/js | 4d1387c8561884c585dd86e4e0f21885eeada1ec | [
"MIT"
] | null | null | null | source/RTTR.cpp | xzrunner/js | 4d1387c8561884c585dd86e4e0f21885eeada1ec | [
"MIT"
] | null | null | null | #include "js/RTTR.h"
namespace detail
{
extern std::string rttr_to_rapidjson(rttr::instance obj, const std::string& dir_path);
extern bool rttr_from_rapidjson(const std::string& json, const std::string& dir_path, rttr::instance obj);
}
namespace js
{
std::string RTTR::ToRapidJson(rttr::instance obj, const std::str... | 23.041667 | 106 | 0.75226 | xzrunner |
10f40c81e8745dbd133d965258c2b4484ef30fc1 | 2,630 | cpp | C++ | src/tools/loop_stats/src/LoopStats_InductionVariables.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | null | null | null | src/tools/loop_stats/src/LoopStats_InductionVariables.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | null | null | null | src/tools/loop_stats/src/LoopStats_InductionVariables.cpp | SusanTan/noelle | 33c9e10a20bc59590c13bf29fb661fc406a9e687 | [
"MIT"
] | null | null | null | /*
* Copyright 2019 - 2020 Angelo Matni, Simone Campanoni
*
* 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, ... | 46.964286 | 435 | 0.759696 | SusanTan |
10f491ead11c97c3bec0a5dbf3c1c72f4db6b4bb | 763 | cpp | C++ | Source/Core/TornadoEngine/Components/Logic/ObjectInstanceEndHandlerBuilderSystem.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 27 | 2015-01-08T08:26:29.000Z | 2019-02-10T03:18:05.000Z | Source/Core/TornadoEngine/Components/Logic/ObjectInstanceEndHandlerBuilderSystem.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 1 | 2017-04-05T02:02:14.000Z | 2017-04-05T02:02:14.000Z | Source/Core/TornadoEngine/Components/Logic/ObjectInstanceEndHandlerBuilderSystem.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 17 | 2015-01-18T02:50:01.000Z | 2019-02-08T21:00:53.000Z | /*
Author: Gudakov Ramil Sergeevich a.k.a. Gauss
Гудаков Рамиль Сергеевич
Contacts: [ramil2085@mail.ru, ramil2085@gmail.com]
See for more information LICENSE.md.
*/
#include "ObjectInstanceEndHandlerBuilderSystem.h"
#include "Modules.h"
#include "LogicModule.h"
#include "HandlerCallCollector.h"
using na... | 26.310345 | 147 | 0.711664 | RamilGauss |
10f5def95557eea3f8b793b27399968598c2b537 | 5,503 | cpp | C++ | TommyGun/Plugins/CodeEditor/PaletteParser/fPaletteParserOptions.cpp | tonyt73/TommyGun | 2c2ffae3dcd5dc25fd64d68a9f4cc96d99a1cd36 | [
"BSD-3-Clause"
] | 34 | 2017-05-08T18:39:13.000Z | 2022-02-13T05:05:33.000Z | TommyGun/Plugins/CodeEditor/PaletteParser/fPaletteParserOptions.cpp | tonyt73/TommyGun | 2c2ffae3dcd5dc25fd64d68a9f4cc96d99a1cd36 | [
"BSD-3-Clause"
] | null | null | null | TommyGun/Plugins/CodeEditor/PaletteParser/fPaletteParserOptions.cpp | tonyt73/TommyGun | 2c2ffae3dcd5dc25fd64d68a9f4cc96d99a1cd36 | [
"BSD-3-Clause"
] | 6 | 2017-05-27T01:14:20.000Z | 2020-01-20T14:54:30.000Z | #pragma link "KSpinEdit"
/*---------------------------------------------------------------------------
(c) 2004 Scorpio Software
19 Wittama Drive
Glenmore Park
Sydney NSW 2745
Australia
-----------------------------------------------------------------------------
$Workfile:: ... | 39.028369 | 98 | 0.466291 | tonyt73 |
10fbc17be7c46cd179d7c469a97ba04bef88412a | 2,689 | cpp | C++ | 3rdParty/Aria/src/ArTransform.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | 3rdParty/Aria/src/ArTransform.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | 3rdParty/Aria/src/ArTransform.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | /*
Adept MobileRobots Robotics Interface for Applications (ARIA)
Copyright (C) 2004-2005 ActivMedia Robotics LLC
Copyright (C) 2006-2010 MobileRobots Inc.
Copyright (C) 2011-2015 Adept Technology, Inc.
Copyright (C) 2016 Omron Adept Technologies, Inc.
This program is free software; you can redistribute it and/or ... | 29.877778 | 78 | 0.693938 | bellonemauro |
10ff9243ff70b7edce6d99b3edda04c3ee82e67b | 1,737 | cpp | C++ | scenewidget.cpp | predmach/vtk_realsense | 4139a86b07ced908ce5b4b9f3089a4fb9fa6a532 | [
"Apache-2.0"
] | 103 | 2017-04-01T06:10:08.000Z | 2022-03-23T03:13:49.000Z | scenewidget.cpp | JoyPoint/Qt-VTK-viewer | 51ee2c4b99982c2798fd99ba89212940861768ac | [
"Apache-2.0"
] | 9 | 2018-04-04T16:14:10.000Z | 2021-01-24T15:20:58.000Z | scenewidget.cpp | JoyPoint/Qt-VTK-viewer | 51ee2c4b99982c2798fd99ba89212940861768ac | [
"Apache-2.0"
] | 35 | 2017-01-25T01:48:47.000Z | 2022-03-27T07:39:30.000Z | #include "scenewidget.h"
#include <vtkCamera.h>
#include <vtkDataSetMapper.h>
#include <vtkGenericOpenGLRenderWindow.h>
#include <vtkProperty.h>
#include <vtkRenderWindowInteractor.h>
SceneWidget::SceneWidget(QWidget* parent)
: QVTKOpenGLNativeWidget(parent)
{
vtkNew<vtkGenericOpenGLRenderWindow> w... | 27.140625 | 89 | 0.671272 | predmach |
8007346c8b0fb80fbfd2d8e50fe82ff5e8d7cf77 | 1,083 | cpp | C++ | EmerCert/MainWindow.cpp | emercoin-scratch/EmerCert | 9d17b363dd0e9d6feb07c62ee385e585d9a72dee | [
"BSD-2-Clause"
] | 2 | 2018-11-12T16:22:44.000Z | 2021-04-24T03:08:24.000Z | EmerCert/MainWindow.cpp | emercoin-scratch/EmerCert | 9d17b363dd0e9d6feb07c62ee385e585d9a72dee | [
"BSD-2-Clause"
] | 1 | 2018-07-09T22:20:45.000Z | 2021-03-20T05:00:55.000Z | EmerCert/MainWindow.cpp | emercoin-scratch/EmerCert | 9d17b363dd0e9d6feb07c62ee385e585d9a72dee | [
"BSD-2-Clause"
] | 3 | 2018-10-06T20:35:05.000Z | 2020-11-26T00:15:45.000Z | #include "pch.h"
#include "MainWindow.h"
#include "InfoCardsWidget.h"
#include "ManageSslPage.h"
#include "ManageDnsPage.h"
#include "EnumerDialog.h"
#include "DiplomaWidget.h"
#include "DpoWidget.h"
#include "AboutWidget.h"
MainWindow::MainWindow(QWidget *parent): QTabWidget(parent) {
setWindowTitle(tr("EmerCert Man... | 27.075 | 82 | 0.730379 | emercoin-scratch |
800950a892025477a88272510d8be9b29912b92c | 4,415 | cpp | C++ | qgeotiledmappingmanagerenginegooglemaps.cpp | mfbernardes/googlemaps | 7ce7124b385b2ebac0f72c38b094f436d4fe5c58 | [
"MIT"
] | 123 | 2016-07-18T07:53:34.000Z | 2022-02-21T20:30:27.000Z | qgeotiledmappingmanagerenginegooglemaps.cpp | mfbernardes/googlemaps | 7ce7124b385b2ebac0f72c38b094f436d4fe5c58 | [
"MIT"
] | 30 | 2016-07-18T07:55:30.000Z | 2022-03-06T02:03:24.000Z | qgeotiledmappingmanagerenginegooglemaps.cpp | mfbernardes/googlemaps | 7ce7124b385b2ebac0f72c38b094f436d4fe5c58 | [
"MIT"
] | 66 | 2016-09-17T12:41:41.000Z | 2021-12-28T16:39:48.000Z | #include "QtLocation/private/qgeocameracapabilities_p.h"
#include "qgeotiledmappingmanagerenginegooglemaps.h"
#include "qgeotiledmapgooglemaps.h"
#include "qgeotilefetchergooglemaps.h"
#include "QtLocation/private/qgeotilespec_p.h"
#if QT_VERSION < QT_VERSION_CHECK(5,6,0)
#include <QStandardPaths>
#include "QtLocation/... | 45.515464 | 176 | 0.752435 | mfbernardes |
800a5d7416a13180aafa1398d84598e65c192f5a | 5,508 | cpp | C++ | Src/lunaui/launcher/gfx/scrollingsurface.cpp | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | 3 | 2018-11-16T14:51:17.000Z | 2019-11-21T10:55:24.000Z | Src/lunaui/launcher/gfx/scrollingsurface.cpp | penk/luna-sysmgr | 60c7056a734cdb55a718507f3a739839c9d74edf | [
"Apache-2.0"
] | 1 | 2021-02-20T13:12:15.000Z | 2021-02-20T13:12:15.000Z | Src/lunaui/launcher/gfx/scrollingsurface.cpp | ericblade/luna-sysmgr | 82d5d7ced4ba21d3802eb2c8ae063236b6562331 | [
"Apache-2.0"
] | null | null | null | /* @@@LICENSE
*
* Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P.
*
* 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
*
* Unl... | 27.402985 | 127 | 0.741649 | ericblade |
80187f641b4aaa50fe7b57d6a3437056fcfe5292 | 3,443 | hpp | C++ | source/gameos/include/linkedlist.hpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 38 | 2015-04-10T13:31:03.000Z | 2021-09-03T22:34:05.000Z | source/gameos/include/linkedlist.hpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 1 | 2020-07-09T09:48:44.000Z | 2020-07-12T12:41:43.000Z | source/gameos/include/linkedlist.hpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 12 | 2015-06-29T08:06:57.000Z | 2021-10-13T13:11:41.000Z | #pragma once
//===========================================================================//
// File: LinkedList.hpp //
// Contents: Linked list routines //
//---------------------------------------------------------------------------//
// Copyright (C) Microsoft Corporation. All rights reserve... | 16.960591 | 79 | 0.533256 | mechasource |
801aeba9d2d56daefc70741d6ed771cfe48bdc37 | 748 | cpp | C++ | 经典算法练习题/翻转单词顺序序列.cpp | anbingxu666/WangDao-DataStructure | 70dcd76c1e26852d659a01358ecb90b8eec2e2ba | [
"Apache-2.0"
] | 382 | 2019-08-09T12:46:46.000Z | 2022-03-31T08:38:48.000Z | 经典算法练习题/翻转单词顺序序列.cpp | anbingxu666/WangDao-DataStructure | 70dcd76c1e26852d659a01358ecb90b8eec2e2ba | [
"Apache-2.0"
] | 1 | 2019-09-04T05:45:49.000Z | 2020-12-17T12:02:22.000Z | 经典算法练习题/翻转单词顺序序列.cpp | anbingxu666/WangDao-DataStructure | 70dcd76c1e26852d659a01358ecb90b8eec2e2ba | [
"Apache-2.0"
] | 86 | 2019-09-04T05:44:34.000Z | 2022-03-08T05:06:00.000Z | //
// Created by newLion on 2020-06-10.
//
#include <string>
using namespace std;
string ReverseSentence(string str) {
if (str.empty())
return str;
int i = 0, sz = str.size();
while (i < sz && str[i] == ' ') ++i;
if (i == sz)
return str;
string ret = ""; //结果数组
string tmp = ... | 19.684211 | 43 | 0.410428 | anbingxu666 |
801e695b82291b98dbf5ec53ba811eb4107efb67 | 496 | cpp | C++ | Factory/examples/src/Derivee2.cpp | PhDunski/KoalaToolbox | ca2e46f886fe254324344ab0ddb612d1daa71e81 | [
"MIT"
] | null | null | null | Factory/examples/src/Derivee2.cpp | PhDunski/KoalaToolbox | ca2e46f886fe254324344ab0ddb612d1daa71e81 | [
"MIT"
] | null | null | null | Factory/examples/src/Derivee2.cpp | PhDunski/KoalaToolbox | ca2e46f886fe254324344ab0ddb612d1daa71e81 | [
"MIT"
] | null | null | null | /** @file Derivee1.cpp
*
* Fournit la définition des fonctions membres de la classe Derivee2
*
* Ce fichier permet de tester les classes de création d'objet au départ
* de listes de paramètres à transmettre au constructeur
* @author koala01
* @version 1.0
* @date 2013/12/15
*/
#include <Deri... | 27.555556 | 74 | 0.610887 | PhDunski |
801f8b1416f4ea01aa775d1e7c0bdfa5ea0c6a27 | 39,876 | cpp | C++ | src/NetProtocol/Base/nNetConnector.cpp | Vladimir-Lin/QtNetProtocol | 907cc8b5acf96a04d89eb8e68faede77c4a2df1b | [
"MIT"
] | null | null | null | src/NetProtocol/Base/nNetConnector.cpp | Vladimir-Lin/QtNetProtocol | 907cc8b5acf96a04d89eb8e68faede77c4a2df1b | [
"MIT"
] | null | null | null | src/NetProtocol/Base/nNetConnector.cpp | Vladimir-Lin/QtNetProtocol | 907cc8b5acf96a04d89eb8e68faede77c4a2df1b | [
"MIT"
] | null | null | null | #include <netprotocol.h>
N::NetConnector:: NetConnector (void)
: NetTalk ( )
{
setParameter ( "Running" , true ) ;
setParameter ( "Stopped" , true ) ;
setParameter ( "ReadStopped" , true ) ;
setParameter ( "WriteStopped" , true ) ;
setParameter ( "Block" , false ... | 72.766423 | 78 | 0.150717 | Vladimir-Lin |
801fef50c23a6a0c2913d39e520a90f5ca9013fa | 9,340 | cpp | C++ | src/bindings/Scriptdev2/scripts/northrend/naxxramas/boss_faerlina.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | 1 | 2017-11-16T19:04:07.000Z | 2017-11-16T19:04:07.000Z | src/bindings/Scriptdev2/scripts/northrend/naxxramas/boss_faerlina.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | src/bindings/Scriptdev2/scripts/northrend/naxxramas/boss_faerlina.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2011 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... | 33.238434 | 144 | 0.611563 | mfooo |
802fbb6528162c2b00424ecf1be9bbd263fc6648 | 13,922 | cpp | C++ | examples/basic/pipelines.cpp | ChristophLGDV/Vulkan | 390023982000b0d58031383779faf83d94be13dd | [
"MIT"
] | 1 | 2017-08-17T15:28:24.000Z | 2017-08-17T15:28:24.000Z | examples/basic/pipelines.cpp | ChristophLGDV/Vulkan | 390023982000b0d58031383779faf83d94be13dd | [
"MIT"
] | null | null | null | examples/basic/pipelines.cpp | ChristophLGDV/Vulkan | 390023982000b0d58031383779faf83d94be13dd | [
"MIT"
] | null | null | null | /*
* Vulkan Example - Using different pipelines in one single renderpass
*
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#include "vulkanExampleBase.h"
// Vertex layout for this example
std::vector<vkx::Vert... | 42.445122 | 147 | 0.690777 | ChristophLGDV |
803281f2c8659764d6d54a8f9605c242e4bce664 | 8,435 | cxx | C++ | PHOS/DA/PHSGAINda.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | PHOS/DA/PHSGAINda.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | PHOS/DA/PHSGAINda.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /*
contact: Boris.Polishchuk@cern.ch
link: see comments in the $ALICE_ROOT/PHOS/AliPHOSRcuDA1.cxx
reference run: /alice/data/2009/LHC09b_PHOS/000075883/raw/09000075883017.20.root
run type: PHYSICS
DA type: MON
number of events needed: 1000
input files: Mod0RCU0.data Mod0RCU1.data Mod0RCU2.data Mod0RCU3.data Mod1RCU0.d... | 25.104167 | 299 | 0.617427 | AllaMaevskaya |
80394afa90cf9774eeef2235550b565ee8bc07fa | 2,805 | hpp | C++ | Ruken/Source/Include/Build/Config.hpp | Renondedju/Ruken | 2b2944b0c7aabf0f921f4daafc45eb01e592d825 | [
"MIT"
] | 6 | 2020-09-12T19:16:49.000Z | 2022-03-17T14:10:16.000Z | Ruken/Source/Include/Build/Config.hpp | Renondedju/Ruken | 2b2944b0c7aabf0f921f4daafc45eb01e592d825 | [
"MIT"
] | 1 | 2021-11-15T10:13:17.000Z | 2021-11-15T10:13:17.000Z | Ruken/Source/Include/Build/Config.hpp | Renondedju/Ruken | 2b2944b0c7aabf0f921f4daafc45eb01e592d825 | [
"MIT"
] | 3 | 2020-09-03T16:41:35.000Z | 2022-01-24T09:35:55.000Z | /*
* MIT License
*
* Copyright (c) 2019-2020 Basile Combet, Philippe Yi
*
* 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 rig... | 35.0625 | 108 | 0.714795 | Renondedju |
803a544d85582452b50445351d82a42e9d22c0eb | 11,855 | cpp | C++ | r_mux/source/r_muxer.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | null | null | null | r_mux/source/r_muxer.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | null | null | null | r_mux/source/r_muxer.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | null | null | null |
#include "r_mux/r_muxer.h"
#include "r_mux/r_format_utils.h"
#include "r_utils/r_string_utils.h"
#include "r_utils/r_exception.h"
#include <stdexcept>
using namespace std;
using namespace r_mux;
using namespace r_utils;
using namespace r_utils::r_std_utils;
AVCodecID r_mux::encoding_to_av_codec_id(const string& code... | 33.394366 | 132 | 0.640489 | TroyDL |
803b5ca8edd0c5610516eab4a496ee6f3a4dc479 | 356 | cpp | C++ | MonkeyDelivery/Src/Control/NextStateCommand.cpp | miggon23/TheUnnamedGame | 8b8fbf232772d5de90fb8646129afa5e8b11608e | [
"MIT"
] | 7 | 2022-02-04T08:57:33.000Z | 2022-03-06T12:54:05.000Z | MonkeyDelivery/Src/Control/NextStateCommand.cpp | miggon23/MonkeyDelivery | 8b8fbf232772d5de90fb8646129afa5e8b11608e | [
"MIT"
] | 79 | 2022-02-01T15:25:51.000Z | 2022-03-30T22:17:20.000Z | MonkeyDelivery/Src/Control/NextStateCommand.cpp | miggon23/MonkeyDelivery | 8b8fbf232772d5de90fb8646129afa5e8b11608e | [
"MIT"
] | null | null | null | #include "NextStateCommand.h"
#include "./States/State.h"
bool NextStateCommand::parse(SDL_Event& event)
{
if (event.type == SDL_KEYDOWN) {
SDL_Keycode key = event.key.keysym.sym;
if (key == SDLK_SPACE) {
return true;
}
}
return false;
}
void NextStateCommand::execute(... | 17.8 | 47 | 0.601124 | miggon23 |
d9b753fc62ef4f6f56ad748549c6d03dfbd436ef | 25 | cpp | C++ | TOD1/SoundEmitter.cpp | Michael0ne/TOD_tools | 0e55b28b7001d8b7ce7c0e0811f27682349b41c9 | [
"FSFAP"
] | 20 | 2020-01-15T22:00:23.000Z | 2022-02-07T05:32:09.000Z | TOD1/SoundEmitter.cpp | Michael0ne/TOD_tools | 0e55b28b7001d8b7ce7c0e0811f27682349b41c9 | [
"FSFAP"
] | 2 | 2021-02-26T15:13:49.000Z | 2021-11-28T17:35:05.000Z | TOD1/SoundEmitter.cpp | Michael0ne/TOD_tools | 0e55b28b7001d8b7ce7c0e0811f27682349b41c9 | [
"FSFAP"
] | 1 | 2020-05-07T18:41:50.000Z | 2020-05-07T18:41:50.000Z | #include "SoundEmitter.h" | 25 | 25 | 0.8 | Michael0ne |
d9b7937809b3d4c193c135c9dee0c3585b0d2253 | 5,655 | cpp | C++ | Plugins/CaptionMod/BaseUI.cpp | DrAbcrealone/MetaHookSv | db8306d325590a380a458758c8518519cab01891 | [
"MIT"
] | 31 | 2021-01-20T08:12:48.000Z | 2022-03-29T16:47:50.000Z | Plugins/CaptionMod/BaseUI.cpp | DrAbcrealone/MetaHookSv | db8306d325590a380a458758c8518519cab01891 | [
"MIT"
] | 118 | 2021-02-04T17:57:48.000Z | 2022-03-31T13:03:21.000Z | Plugins/CaptionMod/BaseUI.cpp | DrAbcrealone/MetaHookSv | db8306d325590a380a458758c8518519cab01891 | [
"MIT"
] | 13 | 2021-01-21T01:43:19.000Z | 2022-03-15T04:51:19.000Z | #include <metahook.h>
#include "BaseUI.h"
#include <VGUI\IScheme.h>
#include <VGUI\ILocalize.h>
#include <VGUI\ISurface.h>
#include <VGUI\IInput.h>
#include "FontTextureCache.h"
#include <IEngineSurface.h>
#include "vgui_internal.h"
#include "IKeyValuesSystem.h"
#include "exportfuncs.h"
#include "engfuncs.h"
namespace... | 33.070175 | 143 | 0.774536 | DrAbcrealone |
d9b84a0b3afa685a84f54b3760a003bfa5cc9178 | 2,398 | cc | C++ | capstone.cc | justinleona/capstone | 4a525cad12fba07a43452776a0e289148f04a12d | [
"MIT"
] | 1 | 2021-06-26T05:32:43.000Z | 2021-06-26T05:32:43.000Z | capstone.cc | justinleona/capstone | 4a525cad12fba07a43452776a0e289148f04a12d | [
"MIT"
] | 2 | 2019-10-14T06:46:43.000Z | 2019-10-18T04:34:20.000Z | capstone.cc | justinleona/capstone | 4a525cad12fba07a43452776a0e289148f04a12d | [
"MIT"
] | null | null | null | #include "capstone.h"
#include <functional>
#include <iomanip>
#include <iostream>
#include <memory>
#include <string>
using namespace std;
using namespace std::placeholders;
Capstone::Capstone(csh handle, const uint8_t* code, size_t size, uint64_t address) {
this->handle = handle;
this->code = code;
this->size... | 26.351648 | 120 | 0.675146 | justinleona |
d9bbd6d6f04f630898221d3c4142a9d7d015d8d6 | 12,223 | cc | C++ | src/xi_nub.cc | michaeljclark/xi | f8370784d8d92dad535a9ad2c30bf6b6b9eda87f | [
"ISC"
] | 3 | 2020-12-17T14:38:23.000Z | 2021-03-11T10:27:55.000Z | src/xi_nub.cc | michaeljclark/xi | f8370784d8d92dad535a9ad2c30bf6b6b9eda87f | [
"ISC"
] | null | null | null | src/xi_nub.cc | michaeljclark/xi | f8370784d8d92dad535a9ad2c30bf6b6b9eda87f | [
"ISC"
] | null | null | null | /*
* xi_nub - atomically create child process hosting static function.
*
* Copyright (c) 2020 Michael Clark <michaeljclark@mac.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permis... | 26.98234 | 94 | 0.647468 | michaeljclark |
d9bdf03336aea3a8efe4f5bcbd3197263a397a62 | 1,843 | cpp | C++ | plugins/opengl/src/sdl/context.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/src/sdl/context.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/src/sdl/context.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/opengl/backend/context.hpp>
#include <sge/opengl/backend/current.hpp>
#include <sge/o... | 38.395833 | 99 | 0.686923 | cpreh |
d9bf04ef6338d62f898bf95d48d7996a7644a4b4 | 696 | hpp | C++ | webmock/api/application.hpp | mrk21/cpp-webmock | 13a7b8362e2e84d47de45071956a43ac3005c58a | [
"MIT"
] | 1 | 2021-05-01T15:05:47.000Z | 2021-05-01T15:05:47.000Z | webmock/api/application.hpp | mrk21/cpp-webmock | 13a7b8362e2e84d47de45071956a43ac3005c58a | [
"MIT"
] | 13 | 2015-01-02T11:59:58.000Z | 2015-01-19T05:27:06.000Z | webmock/api/application.hpp | mrk21/cpp-webmock | 13a7b8362e2e84d47de45071956a43ac3005c58a | [
"MIT"
] | null | null | null | #ifndef WEBMOCK_API_APPLICATION_HPP
#define WEBMOCK_API_APPLICATION_HPP
#include <webmock/core/request.hpp>
#include <webmock/core/stub_registry.hpp>
#include <functional>
namespace webmock { namespace api {
struct application {
using stub_not_found_callback_type = std::function<void(core::request const &... | 24 | 88 | 0.632184 | mrk21 |
d9c1c68ac81d35cb9e64bcafae2a489d45d035df | 412 | cpp | C++ | Private/TB_GameMode.cpp | larsjsol/UE4_TurnBased | 547a601cbeacec5b8380ec480b2764dd1822aedb | [
"MIT"
] | 7 | 2015-02-13T23:07:00.000Z | 2022-03-04T08:01:04.000Z | Private/TB_GameMode.cpp | larsjsol/UE4_TurnBased | 547a601cbeacec5b8380ec480b2764dd1822aedb | [
"MIT"
] | null | null | null | Private/TB_GameMode.cpp | larsjsol/UE4_TurnBased | 547a601cbeacec5b8380ec480b2764dd1822aedb | [
"MIT"
] | 2 | 2019-06-25T06:38:18.000Z | 2022-03-04T04:06:35.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "UE4_TurnBased.h"
#include "TB_PlayerController.h"
#include "TB_GameState.h"
#include "TB_GameMode.h"
ATB_GameMode::ATB_GameMode(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
PlayerControllerClas... | 21.684211 | 78 | 0.791262 | larsjsol |
d9c48862fa5ed07ac1b2a037ddcfd936d469c912 | 1,130 | hpp | C++ | include/primer/result.hpp | cbeck88/lua-primer | f6b96a24f96bc3bf03896aea0f758d76ae388fb9 | [
"BSL-1.0"
] | 14 | 2016-07-27T18:14:47.000Z | 2018-06-15T19:54:10.000Z | include/primer/result.hpp | garbageslam/lua-primer | f6b96a24f96bc3bf03896aea0f758d76ae388fb9 | [
"BSL-1.0"
] | 5 | 2016-11-01T23:20:35.000Z | 2016-11-29T21:09:53.000Z | include/primer/result.hpp | cbeck88/lua-primer | f6b96a24f96bc3bf03896aea0f758d76ae388fb9 | [
"BSL-1.0"
] | 2 | 2021-02-07T03:42:22.000Z | 2021-02-10T14:12:00.000Z | // (C) Copyright 2015 - 2018 Christopher Beck
// 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
/***
* Signaling object used to indicate how to terminate a lua function call.
*/
#include <primer/base.hpp... | 20.178571 | 80 | 0.69292 | cbeck88 |
d9c7fb61a4bcddf1a828f1f705d83b9910670b6e | 188 | hpp | C++ | cracking/minmax/note2.hpp | ancientscience/ancientscience.github.io | 2c8e3c6a8017164fd86fabaaa3343257cea54405 | [
"MIT"
] | null | null | null | cracking/minmax/note2.hpp | ancientscience/ancientscience.github.io | 2c8e3c6a8017164fd86fabaaa3343257cea54405 | [
"MIT"
] | null | null | null | cracking/minmax/note2.hpp | ancientscience/ancientscience.github.io | 2c8e3c6a8017164fd86fabaaa3343257cea54405 | [
"MIT"
] | null | null | null | std::reverse_iterator(
first_min_element(v.begin(), v.end(),
std::less<int>()))
==
last_max_element(v.rbegin(), v.rend(),
std::greater<int>())
| 26.857143 | 41 | 0.515957 | ancientscience |
d9cbfc4923dbb225bdd48cd9da3b08dd90957b05 | 419 | cpp | C++ | week1/project1/b/main.cpp | Arnarish/3ViknaPizzaD-t | 65e214dfccd7932c25082206fc2f9a360d7efa07 | [
"MIT"
] | null | null | null | week1/project1/b/main.cpp | Arnarish/3ViknaPizzaD-t | 65e214dfccd7932c25082206fc2f9a360d7efa07 | [
"MIT"
] | null | null | null | week1/project1/b/main.cpp | Arnarish/3ViknaPizzaD-t | 65e214dfccd7932c25082206fc2f9a360d7efa07 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main(void)
{
string text;
ofstream fout;
fout.open("very_important_text.txt", ios::app);
while (true) {
cout << "Write whatever you wish, and it will be saved!" << endl;
getline(cin, text);
if (te... | 18.217391 | 73 | 0.539379 | Arnarish |
d9d0cd085c7da60b01c1d68ada67354e99ab1129 | 3,458 | hpp | C++ | src/tesseract/regression/LeastSquares.hpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | 3 | 2015-01-09T08:15:28.000Z | 2019-05-24T08:34:04.000Z | src/tesseract/regression/LeastSquares.hpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | null | null | null | src/tesseract/regression/LeastSquares.hpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Soumyajit De
*
* 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,... | 29.555556 | 87 | 0.707634 | lambday |
d9d0edfb4fc17c65fea6cc6e8f0bfcd9762bb869 | 5,514 | cpp | C++ | ELM_GUI_lib/ELM_GUI_lib/Device.cpp | therealddx/EagleLibraryManager | bc6dfb2f9dbbc6cf8d3145befdeb71e5c9c8e0e8 | [
"MIT"
] | null | null | null | ELM_GUI_lib/ELM_GUI_lib/Device.cpp | therealddx/EagleLibraryManager | bc6dfb2f9dbbc6cf8d3145befdeb71e5c9c8e0e8 | [
"MIT"
] | null | null | null | ELM_GUI_lib/ELM_GUI_lib/Device.cpp | therealddx/EagleLibraryManager | bc6dfb2f9dbbc6cf8d3145befdeb71e5c9c8e0e8 | [
"MIT"
] | null | null | null | #include "Stdafx.h"
#include "Device.h"
namespace ELM_GUI_lib {
Device::Device() {
p = Package();
s = Symbol();
name = "";
XMLtext = "";
}
Device::Device(std::string d_name) {
/*
<deviceset name="DUMMY">
<gates>
</gates>
<devices>
<device name="">
<technologies>
<te... | 27.989848 | 113 | 0.673377 | therealddx |
d9d2a919f762ee2e36c64e4a2f3895827fc9c5ef | 432 | hpp | C++ | src/lib/PageDownloader.hpp | alepez/bmrk | 04db2646b42662b976b4f4a1a5fb414ca73df163 | [
"MIT"
] | null | null | null | src/lib/PageDownloader.hpp | alepez/bmrk | 04db2646b42662b976b4f4a1a5fb414ca73df163 | [
"MIT"
] | null | null | null | src/lib/PageDownloader.hpp | alepez/bmrk | 04db2646b42662b976b4f4a1a5fb414ca73df163 | [
"MIT"
] | null | null | null | #ifndef PAGEDOWNLOADER_HPP_R1YIYM0U
#define PAGEDOWNLOADER_HPP_R1YIYM0U
#include "bmrk_fwd.hpp"
#include <string>
#include <future>
namespace bmrk {
/**
* Download a document from a remote url
*/
class PageDownloader {
public:
/**
* \return a future with the downloaded document
*/
virtual Future<String> ... | 18.782609 | 62 | 0.722222 | alepez |
d9d4e63d8d4b6c32e7e6c337834673972631e779 | 881 | cpp | C++ | test/training_data/plag_original_codes/arc105_a_17340899_625_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | 13 | 2021-01-20T19:53:16.000Z | 2021-11-14T16:30:32.000Z | test/training_data/plag_original_codes/arc105_a_17340899_625_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | test/training_data/plag_original_codes/arc105_a_17340899_625_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | /*
引用元:https://atcoder.jp/contests/arc105/tasks/arc105_a
A - Fourtune CookiesEditorial
Time Limit : 2 sec / Memory Limit : 1024 MB
配点 : 200 点
*/
#include <iostream>
using namespace std;
/* -------------------- ここまでテンプレ -------------------- */
int main() {
bool ans = 0;
int a, b, c, d;
cin >> a >> b >>... | 24.472222 | 60 | 0.351873 | xryuseix |
d9d8aecc63c2ce097ee4d081d7b66de84f8aa770 | 288 | cpp | C++ | lib/except.cpp | kenavolic/nforce | 34ca3ad924047f47c22c1db332b2da3885c5eed4 | [
"Apache-2.0"
] | 1 | 2019-05-01T19:13:02.000Z | 2019-05-01T19:13:02.000Z | lib/except.cpp | kenavolic/nforce | 34ca3ad924047f47c22c1db332b2da3885c5eed4 | [
"Apache-2.0"
] | null | null | null | lib/except.cpp | kenavolic/nforce | 34ca3ad924047f47c22c1db332b2da3885c5eed4 | [
"Apache-2.0"
] | null | null | null | #include "nforce/core/except.h"
namespace n4 {
//-------------------------------------
// Public
nexcept::nexcept(const std::string &str, status_type s)
: std::exception{}, m_status{s} {}
status_type nexcept::status() const noexcept { return m_status; }
} // namespace n4 | 26.181818 | 66 | 0.579861 | kenavolic |
d9d8ec9ad576d4e46bf8f3fa0027ec24fd06096c | 2,552 | cpp | C++ | backend/Sensors/Sensor.cpp | Sorong/Smarrium | dc3a6b8e0d428e01b936679a8ca221c2b610b0f6 | [
"MIT"
] | null | null | null | backend/Sensors/Sensor.cpp | Sorong/Smarrium | dc3a6b8e0d428e01b936679a8ca221c2b610b0f6 | [
"MIT"
] | null | null | null | backend/Sensors/Sensor.cpp | Sorong/Smarrium | dc3a6b8e0d428e01b936679a8ca221c2b610b0f6 | [
"MIT"
] | null | null | null | #include "./backend/Sensors/Sensor.h"
#include <QDebug>
Sensor::Sensor(int interval)
{
this->_id = QUuid::createUuid();
this->_interval = interval;
this->lastCheckedHour = -1;
start(interval);
connect(this, SIGNAL(timeout()), this, SLOT(intervallElapsed()));
//eventValueLog = {1.0f, 2.0f, 3.0f, ... | 21.445378 | 116 | 0.604232 | Sorong |
d9e3e4a0826be431fa25cbbe29a862edbe9ed409 | 3,014 | cpp | C++ | 1521/c.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1521/c.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1521/c.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <unordered_map>
#include <vector>
#include <cassert>
#include <algorithm>
#include <chrono>
#include <random>
using namespace std;
void solve() {
unsigned seed = std::chrono::system_clock::now().time_since_epoch().count();
unordered_map<int, int> mp;
int n;
cin ... | 25.982759 | 96 | 0.500664 | vladshablinsky |
d9e50470ee21ab61a147555aaf145938bc90c2df | 16,993 | cpp | C++ | shimmer/src/configuration.cpp | jasbok/libshimmer | 794b0e27ee8492f46202efebd24dab32a7c5c1da | [
"MIT"
] | null | null | null | shimmer/src/configuration.cpp | jasbok/libshimmer | 794b0e27ee8492f46202efebd24dab32a7c5c1da | [
"MIT"
] | null | null | null | shimmer/src/configuration.cpp | jasbok/libshimmer | 794b0e27ee8492f46202efebd24dab32a7c5c1da | [
"MIT"
] | null | null | null | #include "configuration.h"
#include "common/env.h"
#include "common/file.h"
#include "common/json.h"
#include <sstream>
namespace shimmer
{
const common::logger& config::logger =
common::logger::get ( "shimmer::config" );
nlohmann::json config::merge ( const nlohmann::json& a,
con... | 31.009124 | 100 | 0.496852 | jasbok |
d9e897debb36785021c3255d4f5a1bdb1e3c0111 | 3,126 | hpp | C++ | cm730controller/include/cm730controller/cm730controller.hpp | threeal/ros2_cm730 | 2f5e3a60395405c4af6dcfb5a7c5a56ede921b09 | [
"Apache-2.0"
] | 1 | 2020-09-27T04:33:53.000Z | 2020-09-27T04:33:53.000Z | cm730controller/include/cm730controller/cm730controller.hpp | threeal/ros2_cm730 | 2f5e3a60395405c4af6dcfb5a7c5a56ede921b09 | [
"Apache-2.0"
] | null | null | null | cm730controller/include/cm730controller/cm730controller.hpp | threeal/ros2_cm730 | 2f5e3a60395405c4af6dcfb5a7c5a56ede921b09 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Bold Hearts
//
// 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 ... | 30.647059 | 98 | 0.769354 | threeal |
d9ecd7a377e127ff44518c0ae390d90fed546d81 | 2,134 | cpp | C++ | SensorPi/src/ui.cpp | tfrec-kalcsits/SensorSystem | 04a66cb3c30dc7b9fbbf1e0b9cc7747fe03b6950 | [
"MIT"
] | 2 | 2018-06-30T06:05:29.000Z | 2021-08-24T22:34:19.000Z | SensorPi/src/ui.cpp | tfrec-kalcsits/SensorSystem | 04a66cb3c30dc7b9fbbf1e0b9cc7747fe03b6950 | [
"MIT"
] | 13 | 2018-07-07T00:11:08.000Z | 2018-09-05T02:49:11.000Z | SensorPi/src/ui.cpp | tfrec-kalcsits/SensorSystem | 04a66cb3c30dc7b9fbbf1e0b9cc7747fe03b6950 | [
"MIT"
] | null | null | null | #include <sensorpi/ui.h>
#include <wiringPi.h>
#include <mcp23017.h>
#include <lcd.h>
//functions taken from lcd-adafruit.c in wiringPi
namespace sensorsystem
{
static void setBacklightColour (int colour)
{
colour &= 7 ;
digitalWrite (AF_RED, !(colour & 1)) ;
digitalWrite (AF_GREEN, !(colour & 2)) ;
digit... | 22 | 84 | 0.636364 | tfrec-kalcsits |
d9ed3409b8c5e807cd7ef53aff859ba86be8cffa | 9,126 | cpp | C++ | src/bkGL/vao/VertexAttributePointer.cpp | BenKoehler/bk | 53d9ce99cf54fe01dbb3b22ff2418cd102e20ee3 | [
"MIT"
] | 4 | 2018-12-08T15:35:38.000Z | 2021-08-06T03:23:06.000Z | src/bkGL/vao/VertexAttributePointer.cpp | BenKoehler/bk | 53d9ce99cf54fe01dbb3b22ff2418cd102e20ee3 | [
"MIT"
] | null | null | null | src/bkGL/vao/VertexAttributePointer.cpp | BenKoehler/bk | 53d9ce99cf54fe01dbb3b22ff2418cd102e20ee3 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2018-2019 Benjamin Köhler
*
* 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, c... | 36.358566 | 113 | 0.623603 | BenKoehler |
d9edcbce7865b0e126ad3b005bc0448ce001ff11 | 7,233 | cpp | C++ | test/unit/type-analysis/DexTypeEnvironmentTest.cpp | agampe/redex | e49d6e26c10fedc7becf5b3ee2b76ea6f2610aae | [
"MIT"
] | null | null | null | test/unit/type-analysis/DexTypeEnvironmentTest.cpp | agampe/redex | e49d6e26c10fedc7becf5b3ee2b76ea6f2610aae | [
"MIT"
] | null | null | null | test/unit/type-analysis/DexTypeEnvironmentTest.cpp | agampe/redex | e49d6e26c10fedc7becf5b3ee2b76ea6f2610aae | [
"MIT"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "DexTypeEnvironment.h"
#include <boost/optional/optional_io.hpp>
#include "Creators.h"
#include "RedexTest.h"
struct De... | 28.932 | 66 | 0.7163 | agampe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.