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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82640d879a292ea2667f442bbb25ee11cde076ce | 28,251 | cpp | C++ | bulletgba/generator/data/code/otakutwo/self-1011.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/otakutwo/self-1011.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/otakutwo/self-1011.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | // XXX uniqID XXX d71264b76755bf6859ed2e8003714e02 XXX
#include <gba_types.h>
#include "bullet.hpp"
#include "fixed.hpp"
#include "otakutwo/self-1011.hpp"
extern const BulletStepFunc bullet_c5653fc1f3d44172edd1c912fbf88785_d71264b76755bf6859ed2e8003714e02[] = {
stepfunc_d63f935eaeadb4a3f83557ae10cc6a28_d71264b76... | 70.6275 | 364 | 0.876925 | pqrs-org |
8264f8b049e0fae7aa612395cd07b330e680fc98 | 420 | cpp | C++ | cpp/tests/parsing/test_StructParser.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 26 | 2016-12-04T04:45:12.000Z | 2022-03-24T09:39:28.000Z | cpp/tests/parsing/test_StructParser.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | null | null | null | cpp/tests/parsing/test_StructParser.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 2 | 2019-02-09T12:31:06.000Z | 2019-04-28T02:24:50.000Z |
#include "StructParser.h"
#include "binarySwitch.h"
#include "testUtils.h"
#include <cstring>
using namespace parsing;
StructParser parser;
char * test_str = "Name1{ x1; x2; x3; Name2{ x3; x4; }; Name3{ x5; x6; }; };";
int main(){
printf( " %s\n", test_str );
printf( " ==== \n" );
parser.parseSt... | 16.8 | 80 | 0.607143 | ProkopHapala |
826583e5303f5d05b318262f7889cc39a16520c7 | 4,355 | cc | C++ | lib/ui/gfx/util/event_timestamper.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | lib/ui/gfx/util/event_timestamper.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | lib/ui/gfx/util/event_timestamper.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "garnet/lib/ui/gfx/util/event_timestamper.h"
#include <lib/async/default.h>
#include <lib/async/time.h>
namespace scenic_impl {
namespace gfx {
... | 31.557971 | 80 | 0.662687 | PowerOlive |
82659669a8281128038dd9174e12a2f9b354ecad | 3,566 | cpp | C++ | HW1/part1/vectorOP.cpp | banne2266/PP-NCTU-2021 | 7ae7b82349c51d4237aeff1ff2993d5c99e57a42 | [
"MIT"
] | null | null | null | HW1/part1/vectorOP.cpp | banne2266/PP-NCTU-2021 | 7ae7b82349c51d4237aeff1ff2993d5c99e57a42 | [
"MIT"
] | null | null | null | HW1/part1/vectorOP.cpp | banne2266/PP-NCTU-2021 | 7ae7b82349c51d4237aeff1ff2993d5c99e57a42 | [
"MIT"
] | null | null | null | #include "PPintrin.h"
// implementation of absSerial(), but it is vectorized using PP intrinsics
void absVector(float *values, float *output, int N)
{
__pp_vec_float x;
__pp_vec_float result;
__pp_vec_float zero = _pp_vset_float(0.f);
__pp_mask maskAll, maskIsNegative, maskIsNotNegative;
// Note: Take a ca... | 29.471074 | 81 | 0.664891 | banne2266 |
826669c4de8d44392b5b24d7242d65ff718f4959 | 1,574 | cpp | C++ | engine/src/Timer.cpp | irishpatrick/sdl-game | 23ff8330fe2aaa765119df40d62e50570f606f07 | [
"MIT-0",
"MIT"
] | null | null | null | engine/src/Timer.cpp | irishpatrick/sdl-game | 23ff8330fe2aaa765119df40d62e50570f606f07 | [
"MIT-0",
"MIT"
] | null | null | null | engine/src/Timer.cpp | irishpatrick/sdl-game | 23ff8330fe2aaa765119df40d62e50570f606f07 | [
"MIT-0",
"MIT"
] | null | null | null | #include "Timer.hpp"
//auto then = std::chrono::high_resolution_clock::now();
//auto now = std::chrono::high_resolution_clock::now();
namespace engine
{
long Timer::getNanoTime()
{
auto n = std::chrono::high_resolution_clock::now();
auto duration = n.time_since_epoch();
return (long)std::chrono::... | 18.738095 | 95 | 0.594028 | irishpatrick |
826688c5c8830649bacaea1883a3bc16f693d7fd | 533 | cpp | C++ | BOJ_CPP/2238.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/2238.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/2238.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
using namespace std;
int main() {
fastio;
int U, N;
cin >> U >> N;
map<int, vector<string>> mp;
for (int i = 0; i < N; ++i) {
string s;
int v;
cin >> s >> v;
mp[v].push_back(s);... | 20.5 | 63 | 0.435272 | tnsgh9603 |
8266eeb98d4ff136d11e60bc666ad74e7c1866c9 | 1,069 | hh | C++ | KalmanTrack/KalCodes.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | KalmanTrack/KalCodes.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | KalmanTrack/KalCodes.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | // File and Version Information:
// $Id: KalCodes.hh,v 1.7 2005/09/08 19:07:43 brownd Exp $
//
// Description:
// define codes used in KalRep fitting
//
// Environment:
// Software developed for the BaBar Detector at the SLAC B-Factory.
//
// Copyright Information:
// Copyright (C) 1997 Lawrence Berkeley... | 33.40625 | 76 | 0.682881 | brownd1978 |
8267b549783c76a61d196991838495325ae2d3b4 | 695,994 | cpp | C++ | src/main_600.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | src/main_600.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | src/main_600.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: OVRMessenger/BroadcastException
#include "GlobalNamespace/OVRMessenger_BroadcastException.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.h... | 75.462865 | 452 | 0.78189 | RedBrumbler |
8269a7fd53c3ca0623d8cd1de02c8fd29db19750 | 12,190 | hpp | C++ | libbitcoin/include/bitcoin/network/channel.hpp | mousewu/bcclient | 64ee1f6f8337103d40a4a0c3dfb73cabcd09a04c | [
"MIT"
] | 8 | 2019-05-31T01:37:08.000Z | 2021-10-19T05:52:45.000Z | libbitcoin/include/bitcoin/network/channel.hpp | mousewu/bcclient | 64ee1f6f8337103d40a4a0c3dfb73cabcd09a04c | [
"MIT"
] | 3 | 2017-12-18T17:27:09.000Z | 2018-01-15T16:50:05.000Z | libbitcoin/include/bitcoin/network/channel.hpp | mousewu/bcclient | 64ee1f6f8337103d40a4a0c3dfb73cabcd09a04c | [
"MIT"
] | 5 | 2018-01-09T15:05:55.000Z | 2020-12-17T13:27:25.000Z | /*
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free Software
* Fou... | 35.333333 | 76 | 0.728138 | mousewu |
826a140428a06ce38b8bc2d79e3c9a8420e2d928 | 2,473 | cpp | C++ | stack_queues/properly_nested.cpp | rcolomina/math_puzzles | 74cd1cff01cf1cf06e7d38575ac7b0f2807036e7 | [
"MIT"
] | null | null | null | stack_queues/properly_nested.cpp | rcolomina/math_puzzles | 74cd1cff01cf1cf06e7d38575ac7b0f2807036e7 | [
"MIT"
] | null | null | null | stack_queues/properly_nested.cpp | rcolomina/math_puzzles | 74cd1cff01cf1cf06e7d38575ac7b0f2807036e7 | [
"MIT"
] | null | null | null | // you can use includes, for example:
// #include <algorithm>
#include <stack>
// you can write to stdout for debugging purposes, e.g.
// cout << "this is a debug message" << endl;
#include <string>
#include <iostream>
using namespace std;
int iter_solution(string &S) {
// write your code in C++14 (g++ 6.2.0)
... | 23.552381 | 114 | 0.47594 | rcolomina |
826b219df29c09ea0b3cf5fba7e0df1950d86c37 | 4,344 | cc | C++ | release/src/router/aria2/test/BtBitfieldMessageTest.cc | Clarkmania/ripetomato | 5eda5521468cb9cb7156ae6750cf8229b776d10e | [
"FSFAP"
] | 3 | 2019-01-13T09:19:57.000Z | 2022-01-15T12:16:14.000Z | release/src/router/aria2/test/BtBitfieldMessageTest.cc | Clarkmania/ripetomato | 5eda5521468cb9cb7156ae6750cf8229b776d10e | [
"FSFAP"
] | 1 | 2020-07-28T08:22:45.000Z | 2020-07-28T08:22:45.000Z | release/src/router/aria2/test/BtBitfieldMessageTest.cc | Clarkmania/ripetomato | 5eda5521468cb9cb7156ae6750cf8229b776d10e | [
"FSFAP"
] | 1 | 2020-03-06T21:17:24.000Z | 2020-03-06T21:17:24.000Z | #include "BtBitfieldMessage.h"
#include <cstring>
#include <cppunit/extensions/HelperMacros.h>
#include "bittorrent_helper.h"
#include "util.h"
#include "Peer.h"
#include "MockPieceStorage.h"
#include "DlAbortEx.h"
#include "FileEntry.h"
namespace aria2 {
class BtBitfieldMessageTest:public CppUnit::TestFixture {
... | 30.166667 | 84 | 0.715239 | Clarkmania |
826c72304da612bbbf802b6c33b1bbb45f90fd24 | 1,794 | cpp | C++ | src/Rcpp_s2point.cpp | odvratnozgodan/s2 | e5293d0944e5053e0300d61823914728032c16c9 | [
"Apache-2.0"
] | 33 | 2016-08-10T09:13:43.000Z | 2021-06-22T22:52:04.000Z | src/Rcpp_s2point.cpp | odvratnozgodan/s2 | e5293d0944e5053e0300d61823914728032c16c9 | [
"Apache-2.0"
] | 9 | 2016-12-12T17:28:20.000Z | 2020-08-11T14:41:19.000Z | src/Rcpp_s2point.cpp | odvratnozgodan/s2 | e5293d0944e5053e0300d61823914728032c16c9 | [
"Apache-2.0"
] | 10 | 2016-12-12T17:19:40.000Z | 2021-12-03T17:44:29.000Z | #include "Rcpp_datatypes.h"
#include "s2/s2.h"
#include "s2/s2polyline.h"
#include <Rcpp.h>
using namespace Rcpp;
// Find break points to split polyline with vertices `points` in n pieces of
// equal length (incl. start and end vertex). Only used with two points in our
// code.
std::vector<S2Point> s2point_interpolat... | 35.88 | 82 | 0.714604 | odvratnozgodan |
826cb955ffe133752ad8ceeed36036f56026a965 | 3,524 | cpp | C++ | lib/Target/Syntax.cpp | bilaleluneis/qpu | 4e6fbe8426c9747aa672217c47802abd08ac723b | [
"MIT"
] | null | null | null | lib/Target/Syntax.cpp | bilaleluneis/qpu | 4e6fbe8426c9747aa672217c47802abd08ac723b | [
"MIT"
] | null | null | null | lib/Target/Syntax.cpp | bilaleluneis/qpu | 4e6fbe8426c9747aa672217c47802abd08ac723b | [
"MIT"
] | null | null | null | #include <assert.h>
#include "../Source/Syntax.h"
#include "Syntax.h"
// =======
// Globals
// =======
// Used for fresh label generation
static int globalLabelId = 0;
// ======================
// Handy syntax functions
// ======================
// Determine if instruction is a conditional assignment
bool isCondAss... | 19.909605 | 65 | 0.588536 | bilaleluneis |
826e473c8d456a6f3bdeedfd87fd2dbd9e1195e1 | 4,008 | cpp | C++ | src/expression_evaluator/evaluator.cpp | vadikrobot/asio-calc | aab5b6aed7369483186df7174fb5665985f0876b | [
"MIT"
] | null | null | null | src/expression_evaluator/evaluator.cpp | vadikrobot/asio-calc | aab5b6aed7369483186df7174fb5665985f0876b | [
"MIT"
] | null | null | null | src/expression_evaluator/evaluator.cpp | vadikrobot/asio-calc | aab5b6aed7369483186df7174fb5665985f0876b | [
"MIT"
] | null | null | null | #include "evaluator.hpp"
#include <string>
#include <sstream>
#include <iterator>
#include <limits>
#include <spdlog/spdlog.h>
namespace AsioCalc {
template<class T, typename std::enable_if<std::is_integral<T>::value, int>::type = 0>
T ParseInteger(const std::string &s) {
return std::stoi(s);
}
template<class In... | 26.899329 | 105 | 0.574601 | vadikrobot |
826ec84bec20d5c53ba293ffb9f566f8c63a33eb | 4,062 | hpp | C++ | vlc_linux/vlc-3.0.16/modules/gui/skins2/commands/cmd_playlist.hpp | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | vlc_linux/vlc-3.0.16/modules/gui/skins2/commands/cmd_playlist.hpp | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | vlc_linux/vlc-3.0.16/modules/gui/skins2/commands/cmd_playlist.hpp | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | /*****************************************************************************
* cmd_playlist.hpp
*****************************************************************************
* Copyright (C) 2003 the VideoLAN team
* $Id: bbbde615bd0656baa2df9ec6ef98b139be889e93 $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
... | 28.605634 | 79 | 0.643525 | Brook1711 |
826ed5ffe4a5ecb5a88e6ff6cf7fdf2334d9e4a6 | 2,506 | cpp | C++ | source/tools/finite/opt-internal/krylov_solution.cpp | DavidAce/DMRG | e465fd903eade1bf6aa74daacd8e2cf02e9e9332 | [
"MIT"
] | 9 | 2017-10-31T22:50:28.000Z | 2022-03-10T15:45:27.000Z | source/tools/finite/opt-internal/krylov_solution.cpp | DavidAce/DMRG | e465fd903eade1bf6aa74daacd8e2cf02e9e9332 | [
"MIT"
] | null | null | null | source/tools/finite/opt-internal/krylov_solution.cpp | DavidAce/DMRG | e465fd903eade1bf6aa74daacd8e2cf02e9e9332 | [
"MIT"
] | 1 | 2019-07-16T00:27:56.000Z | 2019-07-16T00:27:56.000Z | //
// Created by david on 2021-04-17.
//
#include <tools/finite/opt-internal/opt-internal.h>
#include <math/eig/solver.h>
#include <math/eig/view.h>
#include <tools/finite/opt_mps.h>
#include <general/nmspc_tensor_extra.h>
#include <tools/finite/measure.h>
#include <tensors/class_tensors_finite.h>
void tools::finite::... | 59.666667 | 156 | 0.659218 | DavidAce |
826f50faf103f47713ac6981e44453d84c9fda16 | 50 | hpp | C++ | src/boost_statechart_in_state_reaction.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_statechart_in_state_reaction.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_statechart_in_state_reaction.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/statechart/in_state_reaction.hpp>
| 25 | 49 | 0.84 | miathedev |
8270f7db0cfd5621980fc2f4f3ea43be86e3868d | 1,659 | cpp | C++ | src/AWEngine/PacketClient_StatusRequest.cpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | src/AWEngine/PacketClient_StatusRequest.cpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | src/AWEngine/PacketClient_StatusRequest.cpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | #include "PacketClient.hpp"
#include <AWEngine/Packet/PacketWrapper.hpp>
#include <AWEngine/Packet/ToServer/Login/Init.hpp>
#include <AWEngine/Packet/ToClient/Login/ServerInfo.hpp>
namespace AWEngine
{
::AWEngine::Packet::ToClient::Login::ServerInfo PacketClient::GetServerStatus(const std::string& host, uint16_t... | 36.065217 | 170 | 0.625075 | graymadness |
8271b7fd23b86dc823cd96e075dbb605a1b58377 | 3,957 | cpp | C++ | gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/DMS.cpp | karamach/gtsam | 35f9b710163a1d14d8dc4fcf50b8dce6e0bf7e5b | [
"BSD-3-Clause"
] | 105 | 2017-12-02T14:39:49.000Z | 2022-02-19T18:20:25.000Z | trunk/gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/DMS.cpp | shaolinbit/PPP-BayesTree | 6f469775277a1a33447bf4c19603c796c2c63c75 | [
"MIT"
] | 5 | 2018-09-04T15:15:59.000Z | 2020-09-08T08:51:02.000Z | trunk/gtsam/3rdparty/GeographicLib/dotnet/NETGeographicLib/DMS.cpp | shaolinbit/PPP-BayesTree | 6f469775277a1a33447bf4c19603c796c2c63c75 | [
"MIT"
] | 66 | 2015-06-01T11:22:38.000Z | 2022-02-18T11:03:57.000Z | /**
* \file NETGeographicLib/DMS.cpp
* \brief Implementation for NETGeographicLib::DMS class
*
* NETGeographicLib is copyright (c) Scott Heiman (2013)
* GeographicLib is Copyright (c) Charles Karney (2010-2012)
* <charles@karney.com> and licensed under the MIT/X11 License.
* For more information, see
* http://g... | 30.206107 | 97 | 0.500379 | karamach |
8272a40fd799f5de7c76eb537d89e82d48f00d4c | 738 | cpp | C++ | python/bindings/define_environments.cpp | juloberno/mamcts | 6bbc33ddc95ce2b55a67a4d4b037f996e343eefc | [
"MIT"
] | 3 | 2019-11-06T20:36:12.000Z | 2021-11-24T13:55:07.000Z | python/bindings/define_environments.cpp | juloberno/mamcts | 6bbc33ddc95ce2b55a67a4d4b037f996e343eefc | [
"MIT"
] | null | null | null | python/bindings/define_environments.cpp | juloberno/mamcts | 6bbc33ddc95ce2b55a67a4d4b037f996e343eefc | [
"MIT"
] | 5 | 2019-09-18T20:30:01.000Z | 2021-11-24T13:55:17.000Z | // Copyright (c) 2019 Julian Bernhard
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
// ========================================================
#include "python/bindings/define_environments.hpp"
#include "python/bindings/define_crossing_state... | 29.52 | 60 | 0.617886 | juloberno |
82746743153d74dd26bdbda4c855d826c3282ff3 | 3,475 | cpp | C++ | ThirdParty/poco/Net/src/ICMPPacket.cpp | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | 39 | 2015-01-23T10:01:31.000Z | 2021-06-10T03:01:18.000Z | Windows/PocoNet/src/ICMPPacket.cpp | luckypen/WiEngine | 7e80641fe15a77a2fc43db90f15dad6aa2c2860a | [
"MIT"
] | 1 | 2015-04-15T08:07:47.000Z | 2015-04-15T08:07:47.000Z | Windows/PocoNet/src/ICMPPacket.cpp | luckypen/WiEngine | 7e80641fe15a77a2fc43db90f15dad6aa2c2860a | [
"MIT"
] | 20 | 2015-01-20T07:36:10.000Z | 2019-09-15T01:02:19.000Z | //
// ICMPPacket.cpp
//
// $Id: //poco/1.4/Net/src/ICMPPacket.cpp#2 $
//
// Library: Net
// Package: ICMP
// Module: ICMPPacket
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any person or organization
//... | 26.12782 | 100 | 0.723165 | gregmedlock |
82747f4bed03f1ada5fbdc88414e87fdf93f9110 | 660 | cpp | C++ | LeetCode/5178.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | 7 | 2019-02-25T13:15:00.000Z | 2021-12-21T22:08:39.000Z | LeetCode/5178.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | null | null | null | LeetCode/5178.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | 1 | 2019-04-03T06:12:46.000Z | 2019-04-03T06:12:46.000Z | class Solution {
private:
int sum = 0;// 顺便求和
bool factorIs4(int n) {
if(n<2)
return false;
int cnt = 0;
int p = sqrt(n);
// 对于一个平方数不可能是4因数
if(p*p==n)
return false;
sum = 1+n;
for(int i=2;i<=p;i++) {
if(n%i==0) {
... | 20.625 | 41 | 0.369697 | LauZyHou |
8276b81f6c3301a136880c591480ec207f54257b | 780 | cpp | C++ | ballfactory.cpp | andinsbing/BrickBreaker | cc93db7f4e294419c8884ca3f75bb239bbbf0edd | [
"MIT"
] | null | null | null | ballfactory.cpp | andinsbing/BrickBreaker | cc93db7f4e294419c8884ca3f75bb239bbbf0edd | [
"MIT"
] | null | null | null | ballfactory.cpp | andinsbing/BrickBreaker | cc93db7f4e294419c8884ca3f75bb239bbbf0edd | [
"MIT"
] | null | null | null | #include "ballfactory.h"
#include"normalball.h"
#include"fastball.h"
#include"slowball.h"
#include"bigball.h"
#include"smallball.h"
#include"superball.h"
AbstractBall* BallFactory::constructNormalBall(QGraphicsItem* parent)
{
return new NormalBall(parent);
}
AbstractBall* BallFactory::constructFastBall(QGraphicsIte... | 20.526316 | 69 | 0.789744 | andinsbing |
827deab044e9c282d4b2ac0fcac70f1c8a832ca7 | 783 | cpp | C++ | 2nd/125_valid_palindrome.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/125_valid_palindrome.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/125_valid_palindrome.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <string>
#include <cctype>
#include <cassert>
using namespace std;
class Solution {
public:
bool isPalindrome(string s) {
for (string::iterator i = s.begin(), j = s.end(); i < j; ) {
if (!isalnum(*i)) {
++i;
continue;
}
... | 23.029412 | 115 | 0.478927 | buptlxb |
827e343f8c03deb50ddc62da12dc10b1245055d4 | 2,514 | cpp | C++ | src/tests/kits/app/bmessage/MessageDestructTest.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/tests/kits/app/bmessage/MessageDestructTest.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/tests/kits/app/bmessage/MessageDestructTest.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | //------------------------------------------------------------------------------
// MessageDestructTest.cpp
//
//------------------------------------------------------------------------------
// Standard Includes -----------------------------------------------------------
// System Includes --------------------------... | 24.891089 | 80 | 0.447892 | Kirishikesan |
827f777f5e31139c27fa6736cf31c1cdc2ae0c06 | 4,448 | hpp | C++ | common/StateEnum.hpp | pree/collabora-online | 9f7fe7cb54a29d0894c2d4d960b737e1fda89dc6 | [
"BSD-2-Clause"
] | null | null | null | common/StateEnum.hpp | pree/collabora-online | 9f7fe7cb54a29d0894c2d4d960b737e1fda89dc6 | [
"BSD-2-Clause"
] | null | null | null | common/StateEnum.hpp | pree/collabora-online | 9f7fe7cb54a29d0894c2d4d960b737e1fda89dc6 | [
"BSD-2-Clause"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <iosfwd... | 58.526316 | 116 | 0.54429 | pree |
82801a1c321161b83a821836a9061f6801fbdb29 | 3,634 | cpp | C++ | Borland/CBuilder5/Source/MFC/dlgclr.cpp | TrevorDArcyEvans/DivingMagpieSoftware | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | 1 | 2021-05-27T10:27:25.000Z | 2021-05-27T10:27:25.000Z | Borland/CBuilder5/Source/MFC/dlgclr.cpp | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | Borland/CBuilder5/Source/MFC/dlgclr.cpp | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | // This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1998 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See t... | 24.389262 | 77 | 0.6918 | TrevorDArcyEvans |
82819dcf2d376631ed1516b6d9d69c02ba8e71e6 | 4,799 | cpp | C++ | bbs/bbsovl3.cpp | k5jat/wwiv | b390e476c75f68e0f4f28c66d4a2eecd74753b7c | [
"Apache-2.0"
] | null | null | null | bbs/bbsovl3.cpp | k5jat/wwiv | b390e476c75f68e0f4f28c66d4a2eecd74753b7c | [
"Apache-2.0"
] | null | null | null | bbs/bbsovl3.cpp | k5jat/wwiv | b390e476c75f68e0f4f28c66d4a2eecd74753b7c | [
"Apache-2.0"
] | null | null | null | /**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2017, WWIV Software Services */
/* ... | 28.39645 | 101 | 0.567618 | k5jat |
8282d4c4db6081ac3ac6867261d931c13819bf34 | 3,392 | cc | C++ | IntegrationWithMacSim/src/memreq_info.cc | uwuser/MCsim | df0033e73aa7669fd89bc669ff25a659dbb253f6 | [
"MIT"
] | 1 | 2021-11-25T20:09:08.000Z | 2021-11-25T20:09:08.000Z | IntegrationWithMacSim/src/memreq_info.cc | uwuser/MCsim | df0033e73aa7669fd89bc669ff25a659dbb253f6 | [
"MIT"
] | 1 | 2021-11-03T21:15:53.000Z | 2021-11-04T15:53:20.000Z | IntegrationWithMacSim/src/memreq_info.cc | uwuser/MCsim | df0033e73aa7669fd89bc669ff25a659dbb253f6 | [
"MIT"
] | 1 | 2020-11-25T14:09:30.000Z | 2020-11-25T14:09:30.000Z | /*
Copyright (c) <2012>, <Georgia Institute of Technology> 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... | 30.285714 | 95 | 0.634434 | uwuser |
8282ffc688bf4fc37c1270dbb8bcea6f20d6bb02 | 7,916 | cpp | C++ | src/e131_receiver.cpp | shenghaoyang/e131_blinkt | 79db8d2cde6b5ba39316b16fb809384790e86b4d | [
"MIT"
] | null | null | null | src/e131_receiver.cpp | shenghaoyang/e131_blinkt | 79db8d2cde6b5ba39316b16fb809384790e86b4d | [
"MIT"
] | null | null | null | src/e131_receiver.cpp | shenghaoyang/e131_blinkt | 79db8d2cde6b5ba39316b16fb809384790e86b4d | [
"MIT"
] | null | null | null | /**
* \file e131_receiver.cpp
*
* \copyright Shenghao Yang, 2018
*
* See LICENSE for details
*/
#include <e131_receiver.hpp>
namespace e131_receiver
{
std::string
cid_str(const cid& uuid)
{
std::string s;
static constexpr std::array<char, 16> hex_lut{'0', '1', '2', '3', '4', '5',
... | 25.371795 | 80 | 0.637696 | shenghaoyang |
82860f338280150e082386907a277869f1a12a47 | 76,437 | cpp | C++ | libdqmc/cx_dqmc_greens_general_renyi.cpp | pebroecker/DQMC | c4a96cb20347ef722b6ae68c415233d464c89e93 | [
"BSD-3-Clause"
] | null | null | null | libdqmc/cx_dqmc_greens_general_renyi.cpp | pebroecker/DQMC | c4a96cb20347ef722b6ae68c415233d464c89e93 | [
"BSD-3-Clause"
] | null | null | null | libdqmc/cx_dqmc_greens_general_renyi.cpp | pebroecker/DQMC | c4a96cb20347ef722b6ae68c415233d464c89e93 | [
"BSD-3-Clause"
] | null | null | null | #include "cx_dqmc_greens_general_renyi.hpp"
using namespace std;
void cx_dqmc::greens_general_renyi::initialize() {
vol = p->n_A + 2 * p->n_B;
sites = ws->sites;
if (p->update_type == p->CX_SPINFUL_UPDATE) {
delayed_buffer_size = min(200, sites/2);
}
else if (p->update_type == p->CX_SPIN... | 33.732127 | 103 | 0.61673 | pebroecker |
82871ae8f6feb8f16a665dd816f7fbd2330b61fe | 2,596 | cpp | C++ | NOLF/ClientShellDLL/PlayerSoundFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 65 | 2015-02-28T03:35:14.000Z | 2021-09-23T05:43:33.000Z | NOLF/ClientShellDLL/PlayerSoundFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | null | null | null | NOLF/ClientShellDLL/PlayerSoundFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 27 | 2015-02-28T07:42:01.000Z | 2022-02-11T01:35:20.000Z | // ----------------------------------------------------------------------- //
//
// MODULE : PlayerSoundFX.cpp
//
// PURPOSE : Player sound special FX - Implementation
//
// CREATED : 7/28/98 (was WeaponSoundFX)
//
// (c) 1998-2000 Monolith Productions, Inc. All Rights Reserved
//
// -----------------------... | 26.762887 | 98 | 0.545455 | rastrup |
828979a264b2981b35a5f3161dc6bcc7b496cbd7 | 230 | cpp | C++ | code/mapgenerator/src/SurfaceProperties.cpp | Estevo-Aleixo/dynamicstructures | 89992427e2d2029c1a3b83c0c2a1d97b6f1ea86b | [
"ClArtistic"
] | null | null | null | code/mapgenerator/src/SurfaceProperties.cpp | Estevo-Aleixo/dynamicstructures | 89992427e2d2029c1a3b83c0c2a1d97b6f1ea86b | [
"ClArtistic"
] | null | null | null | code/mapgenerator/src/SurfaceProperties.cpp | Estevo-Aleixo/dynamicstructures | 89992427e2d2029c1a3b83c0c2a1d97b6f1ea86b | [
"ClArtistic"
] | null | null | null | #include "SurfaceProperties.h"
SurfaceProperties::SurfaceProperties(void)
{
mCellSize= 10.0;
mType= CELLTYPE::HEXAGON;
this->mCellProperties= CellProperties();
}
SurfaceProperties::~SurfaceProperties(void)
{
}
| 17.692308 | 44 | 0.721739 | Estevo-Aleixo |
828c6a2dc1a6a60d10aeaf6b973a67d500c1a099 | 250 | hpp | C++ | src/common/pixel.hpp | quentinguidee/lib-image-cxx | 44f4d2d7fdeeb7ed21f6d66760456f5f4fc16157 | [
"MIT"
] | 5 | 2022-01-20T17:46:06.000Z | 2022-01-21T16:59:39.000Z | src/common/pixel.hpp | quentinguidee/lib-image-cxx | 44f4d2d7fdeeb7ed21f6d66760456f5f4fc16157 | [
"MIT"
] | 2 | 2022-01-26T09:46:10.000Z | 2022-02-24T10:55:37.000Z | src/common/pixel.hpp | quentinguidee/lib-image-cxx | 44f4d2d7fdeeb7ed21f6d66760456f5f4fc16157 | [
"MIT"
] | 1 | 2022-01-23T10:51:19.000Z | 2022-01-23T10:51:19.000Z | #pragma once
#include <cstdint>
#include <vector>
struct Pixel
{
uint8_t r, g, b, a;
Pixel(uint8_t r = 0, uint8_t g = 0, uint8_t b = 0, uint8_t a = 255);
bool operator==(const Pixel& rhs) const;
};
typedef std::vector<Pixel> Pixels;
| 15.625 | 72 | 0.636 | quentinguidee |
828ea09d631aab739bc56fd01df70a4db7a8d59d | 16,311 | cc | C++ | PhysicsTools/NanoAOD/plugins/BJetEnergyRegressionVarProducer.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | PhysicsTools/NanoAOD/plugins/BJetEnergyRegressionVarProducer.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | PhysicsTools/NanoAOD/plugins/BJetEnergyRegressionVarProducer.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | // -*- C++ -*-
//
// Package: PhysicsTools/NanoAOD
// Class: BJetEnergyRegressionVarProducer
//
/**\class BJetEnergyRegressionVarProducer BJetEnergyRegressionVarProducer.cc PhysicsTools/NanoAOD/plugins/BJetEnergyRegressionVarProducer.cc
Description: [one line class summary]
Implementation:
[Notes on i... | 37.844548 | 140 | 0.67807 | nistefan |
8290e8fb4796d2edb97191a3752487fca81bbf2d | 1,268 | cpp | C++ | src/platform/gba/checkROM.cpp | httpsgithu/OpenLara | 380d1373a346fdbfa97ce475b26f6ddcf0a7f79e | [
"BSD-2-Clause"
] | 11 | 2021-12-31T04:43:29.000Z | 2022-03-03T19:27:34.000Z | src/platform/gba/checkROM.cpp | httpsgithu/OpenLara | 380d1373a346fdbfa97ce475b26f6ddcf0a7f79e | [
"BSD-2-Clause"
] | 1 | 2022-01-16T20:50:14.000Z | 2022-01-18T02:23:25.000Z | src/platform/gba/checkROM.cpp | httpsgithu/OpenLara | 380d1373a346fdbfa97ce475b26f6ddcf0a7f79e | [
"BSD-2-Clause"
] | 1 | 2022-02-12T14:52:12.000Z | 2022-02-12T14:52:12.000Z | #include <tonc.h>
#define MEM_CHECK_MAGIC 14021968
#define MEM_CHECK_SIZE 16
const int ROM_MAGIC[MEM_CHECK_SIZE] = {
MEM_CHECK_MAGIC + 0,
MEM_CHECK_MAGIC + 1,
MEM_CHECK_MAGIC + 2,
MEM_CHECK_MAGIC + 3,
MEM_CHECK_MAGIC + 4,
MEM_CHECK_MAGIC + 5,
MEM_CHECK_MAGIC + 6,
MEM_CHECK_MAGIC + 7,
... | 24.384615 | 73 | 0.600158 | httpsgithu |
82935cb840ce28539f4ad2d5854a7736f6ea5816 | 620 | cc | C++ | hackt_docker/hackt/test/chpsim/installtest/hello.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/test/chpsim/installtest/hello.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/test/chpsim/installtest/hello.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | #include <iostream>
#include <sim/chpsim/chpsim_dlfunction.hh>
using std::cout;
using std::endl;
USING_CHPSIM_DLFUNCTION_PROLOGUE
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
static
void
hello(void) {
cout << "Hello, world!" << endl;
}
CHP_DLFUNCTION_LOAD_DEFAULT("hello", hello)
... | 21.37931 | 79 | 0.462903 | broken-wheel |
8299303688cf17846ef183fd32ba010c19d7f781 | 744 | cpp | C++ | Object Oriented Algo Design in C++/practice/vector.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | Object Oriented Algo Design in C++/practice/vector.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | Object Oriented Algo Design in C++/practice/vector.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
int main()
{
vector<int>vec;//creating a vector to store integers
int i,n,value;
cout<<"vector size="<<vec.size()<<endl;
cout<<"enter the number of elements to be inserted in the vector:";
cin>>n;
cout<<"\nenter the elements:";
for(i=1;i<=n;i++)//we have... | 24.8 | 132 | 0.649194 | aishwaryamallampati |
8299484a496014f2b59568cf3d40e850aaa5f300 | 5,529 | hpp | C++ | Bevprog/cpp/graphics_src/graphics.hpp | varpeti/Suli | f0309306ed65454f70fbd67c8084aa2c2e085296 | [
"Unlicense"
] | 1 | 2020-10-21T09:54:22.000Z | 2020-10-21T09:54:22.000Z | Bevprog/cpp/graphics_src/graphics.hpp | varpeti/Suli2 | 6cd0c98e5d725846116aa29936314e113ae7923e | [
"Unlicense"
] | null | null | null | Bevprog/cpp/graphics_src/graphics.hpp | varpeti/Suli2 | 6cd0c98e5d725846116aa29936314e113ae7923e | [
"Unlicense"
] | null | null | null | #ifndef GRAPHICS_HPP_INCLUDED
#define GRAPHICS_HPP_INCLUDED
#include <string>
struct SDL_Surface;
struct _TTF_Font;
namespace genv
{
/*********** Graphical output device definition ***********/
class canvas {
public:
canvas();
virtual ~canvas();
canvas(int w, int h);
bool open(unsigned width, unsi... | 22.941909 | 86 | 0.630855 | varpeti |
82995b9fdd4d855da25fc767e70e9f1a3124346e | 135,732 | cpp | C++ | texture.cpp | graphitemaster/neothyne | 101dd7f96e5c62e32e797105d9fb23f975986626 | [
"MIT"
] | 77 | 2015-02-07T09:08:35.000Z | 2022-03-29T11:36:25.000Z | texture.cpp | graphitemaster/neothyne | 101dd7f96e5c62e32e797105d9fb23f975986626 | [
"MIT"
] | 45 | 2015-02-23T07:24:27.000Z | 2017-01-05T13:39:34.000Z | texture.cpp | graphitemaster/neothyne | 101dd7f96e5c62e32e797105d9fb23f975986626 | [
"MIT"
] | 20 | 2015-01-03T16:46:25.000Z | 2021-09-16T02:44:56.000Z | #include "engine.h"
#include "texture.h"
#include "c_variable.h"
#include "u_zlib.h"
#include "u_file.h"
#include "u_algorithm.h"
#include "u_misc.h"
#include "u_traits.h"
#include "u_log.h"
#include "m_const.h"
#include "m_trig.h"
#include "m_vec.h"
// To render text into textures we use an 8x8 bitmap font
static c... | 37.966993 | 172 | 0.496677 | graphitemaster |
829f476a47dd2f732f9e9132495e0318a970c9ee | 953 | cpp | C++ | Progs/Ch03/Adswitch.cpp | singhnir/C-Plus-Plus-Robert-Lafore | 7ce3c92d15958e157484fc989632b879360103aa | [
"MIT"
] | 4 | 2021-02-24T06:53:51.000Z | 2022-02-18T11:15:19.000Z | Progs/Ch03/Adswitch.cpp | singhnir/C-Plus-Plus-Robert-Lafore | 7ce3c92d15958e157484fc989632b879360103aa | [
"MIT"
] | null | null | null | Progs/Ch03/Adswitch.cpp | singhnir/C-Plus-Plus-Robert-Lafore | 7ce3c92d15958e157484fc989632b879360103aa | [
"MIT"
] | 4 | 2021-02-24T07:05:43.000Z | 2022-03-09T17:45:32.000Z | // adswitch.cpp
// demonstrates SWITCH with adventure program
#include <iostream>
using namespace std;
#include <conio.h> //for getche()
int main()
{
char dir='a';
int x=10, y=10;
while( dir != '\r' )
{
cout << "\nYour location is " << x << ", " << y;
... | 34.035714 | 64 | 0.400839 | singhnir |
82a29786e70119e4ed693818209842505d1aaf20 | 13,068 | cpp | C++ | eden/fs/inodes/InodeBase.cpp | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | eden/fs/inodes/InodeBase.cpp | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | eden/fs/inodes/InodeBase.cpp | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | 33.59383 | 80 | 0.666743 | jmswen |
82a2d7a7827f7d58ab7f185debbb4e37ea2afcfc | 11,092 | cc | C++ | ui/views/test/ui_controls_factory_desktop_aurax11.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ui/views/test/ui_controls_factory_desktop_aurax11.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ui/views/test/ui_controls_factory_desktop_aurax11.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/views/test/ui_controls_factory_desktop_aurax11.h"
#include <utility>
#include <vector>
#include "base/bind.h"
#include "base/location.h"
#i... | 37.986301 | 80 | 0.63397 | sarang-apps |
82a4046dfca6f406ee9a8f7402e346bbe7977621 | 8,387 | cpp | C++ | src/main/report.cpp | jack-running/mmbot | f9015d88ac00524736545119ee1d073546bc2caa | [
"MIT"
] | null | null | null | src/main/report.cpp | jack-running/mmbot | f9015d88ac00524736545119ee1d073546bc2caa | [
"MIT"
] | null | null | null | src/main/report.cpp | jack-running/mmbot | f9015d88ac00524736545119ee1d073546bc2caa | [
"MIT"
] | null | null | null | /*
* report.cpp
*
* Created on: 17. 5. 2019
* Author: ondra
*/
#include "report.h"
#include <imtjson/value.h>
#include <imtjson/object.h>
#include <imtjson/array.h>
#include <chrono>
#include <numeric>
#include "../shared/linear_map.h"
#include "../shared/logOutput.h"
#include "../shared/range.h"
#include... | 24.380814 | 102 | 0.665435 | jack-running |
82a7211cfeb7b0ee1fdb5f38a7bec1f68d8340c2 | 499 | cpp | C++ | data/main.cpp | noahleft/serialization | 731ebcee68339960308a86b25cf3c11ba815043e | [
"MIT"
] | null | null | null | data/main.cpp | noahleft/serialization | 731ebcee68339960308a86b25cf3c11ba815043e | [
"MIT"
] | null | null | null | data/main.cpp | noahleft/serialization | 731ebcee68339960308a86b25cf3c11ba815043e | [
"MIT"
] | null | null | null | #include <iostream>
#include "data.hpp"
int main() {
std::string buf;
auto root = get_serializable_object();
#if defined(SERIALIZE)
buf = serialize(root);
auto des = deserialize(buf);
std::cout << "Is serialize/deserialize result equivalent:" << is_equal(root, des) << std::endl;
std::cout << "... | 26.263158 | 103 | 0.645291 | noahleft |
82a7324db2494fe3d7f0c8135387fad99d77db4f | 9,132 | cc | C++ | chrome/browser/ui/webui/settings/chromeos/change_picture_handler_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/ui/webui/settings/chromeos/change_picture_handler_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/ui/webui/settings/chromeos/change_picture_handler_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/settings/chromeos/change_picture_handler.h"
#include <memory>
#include "base/files/file_path.h"
#include "base/test/me... | 35.952756 | 82 | 0.74551 | zealoussnow |
82a8eed98bae4851825deb19e8e41177bd1d339f | 4,918 | cc | C++ | chrome/browser/ash/system_extensions/system_extensions_browsertest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/ash/system_extensions/system_extensions_browsertest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/ash/system_extensions/system_extensions_browsertest.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/constants/ash_features.h"
#include "ash/constants/ash_switches.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#inclu... | 37.830769 | 84 | 0.756202 | chromium |
82a940641f8d61754e09d6f0ff19ab3dd922b25c | 1,400 | cpp | C++ | game/src/BigAlan.cpp | unbgames/DigAlanDig | 0e78ee6ef2d253c2d32db0835b24503a38850057 | [
"Zlib"
] | null | null | null | game/src/BigAlan.cpp | unbgames/DigAlanDig | 0e78ee6ef2d253c2d32db0835b24503a38850057 | [
"Zlib"
] | null | null | null | game/src/BigAlan.cpp | unbgames/DigAlanDig | 0e78ee6ef2d253c2d32db0835b24503a38850057 | [
"Zlib"
] | 5 | 2018-08-28T01:50:25.000Z | 2018-09-10T13:03:45.000Z | #include "BigAlan.h"
#include "Game.h"
#include "AlanAnimation.h"
#include "InputManager.h"
#include "GridControl.h"
void BigAlan::Update(float dt) {
int combo = Game::GetInstance()->combo;
int diffCombo = std::abs(combo - oldCombo);
oldCombo = combo;
if(Game::GetInstance()->GetGridControl()->GetAlan... | 29.166667 | 146 | 0.576429 | unbgames |
82aa78a853863a3a7701cdb8390608c965671a52 | 10,104 | hpp | C++ | Runtime/MP1/World/CThardus.hpp | jackoalan/urde | 413483a996805a870f002324ee46cfc123f4df06 | [
"MIT"
] | null | null | null | Runtime/MP1/World/CThardus.hpp | jackoalan/urde | 413483a996805a870f002324ee46cfc123f4df06 | [
"MIT"
] | null | null | null | Runtime/MP1/World/CThardus.hpp | jackoalan/urde | 413483a996805a870f002324ee46cfc123f4df06 | [
"MIT"
] | null | null | null | #pragma once
#include <Collision/CJointCollisionDescription.hpp>
#include "Runtime/World/CPatterned.hpp"
#include "Runtime/World/CPathFindSearch.hpp"
namespace urde {
class CCollisionActorManager;
namespace MP1 {
class CThardus : public CPatterned {
enum class EUpdateMaterialMode { Add, Remove };
class CThardus... | 43.74026 | 119 | 0.745051 | jackoalan |
82aae7812f8222a456908f2d0906b5b17f7d3276 | 1,929 | cpp | C++ | higan/processor/arm/arm.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 3 | 2016-03-23T01:17:36.000Z | 2019-10-25T06:41:09.000Z | higan/processor/arm/arm.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | higan/processor/arm/arm.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | #include <processor/processor.hpp>
#include "arm.hpp"
namespace Processor {
#include "registers.cpp"
#include "algorithms.cpp"
#include "instructions-arm.cpp"
#include "instructions-thumb.cpp"
#include "step.cpp"
#include "disassembler.cpp"
#include "serialization.cpp"
auto ARM::power() -> void {
processor.power()... | 21.197802 | 74 | 0.622602 | ameer-bauer |
82acadd7d3cb5c0245dc70cc1ce0c57ad163287b | 142 | cpp | C++ | obi-problems/problem011/main.cpp | Davi-Argemiro/Algorithms-and-Data-Structures | 4cbf083fbe00da793c1147c4b9e3493d96ac50a1 | [
"MIT"
] | 1 | 2022-03-01T15:47:08.000Z | 2022-03-01T15:47:08.000Z | obi-problems/problem011/main.cpp | Davi-Argemiro/Algorithms-and-Data-Structures | 4cbf083fbe00da793c1147c4b9e3493d96ac50a1 | [
"MIT"
] | 1 | 2022-03-21T20:01:08.000Z | 2022-03-21T20:01:08.000Z | obi-problems/problem011/main.cpp | Davi-Argemiro/Algorithms-and-Data-Structures | 4cbf083fbe00da793c1147c4b9e3493d96ac50a1 | [
"MIT"
] | 1 | 2022-03-21T17:53:34.000Z | 2022-03-21T17:53:34.000Z | #include <iostream>
using namespace std;
int main() {
int a1, a2, r;
cin >> a1 >> a2;
r = a2-a1;
cout << a2+r << endl;
return 0;
} | 9.466667 | 22 | 0.542254 | Davi-Argemiro |
82af3632e4d16adcbd7e4520df3148509afb5138 | 448,398 | cpp | C++ | test/OpenMP/target_parallel_if_codegen.cpp | tkolar23/llvm-clang | 73c44a584ba4ff5e186d0c05a2b29b2dbed98148 | [
"Apache-2.0"
] | null | null | null | test/OpenMP/target_parallel_if_codegen.cpp | tkolar23/llvm-clang | 73c44a584ba4ff5e186d0c05a2b29b2dbed98148 | [
"Apache-2.0"
] | null | null | null | test/OpenMP/target_parallel_if_codegen.cpp | tkolar23/llvm-clang | 73c44a584ba4ff5e186d0c05a2b29b2dbed98148 | [
"Apache-2.0"
] | null | null | null | // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]" "pl_cond[.].+[.|,]" --prefix-filecheck-ir-name _
// Test host codegen.
// RUN: %clang_cc1 -verify -... | 70.636106 | 442 | 0.598504 | tkolar23 |
82b02dc70a212e54874c124174f86e9dfd850d41 | 527 | hpp | C++ | StrSTUN-synthesizer/strstunlib0/include/ComponentIfThenElse.hpp | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | 1 | 2021-06-23T05:10:36.000Z | 2021-06-23T05:10:36.000Z | StrSTUN-synthesizer/strstunlib0/include/ComponentIfThenElse.hpp | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | null | null | null | StrSTUN-synthesizer/strstunlib0/include/ComponentIfThenElse.hpp | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | null | null | null | #ifndef COMPONENT_IFTHENELSE
#define COMPONENT_IFTHENELSE
#include "componentbase.hpp"
class ComponentIfThenElse : public ComponentBase {
public:
ComponentIfThenElse(ValType valType);
ValBase* evaluate(std::vector<ValBase*> inputValues, int exampleIndex) override;
static std::vector<std::string> component... | 31 | 84 | 0.760911 | HALOCORE |
a11206ce895cc0bf10bb78f76e154888f6213ff7 | 3,884 | inl | C++ | ivp/havana/havok/hk_base/array/array.inl | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | ivp/havana/havok/hk_base/array/array.inl | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | ivp/havana/havok/hk_base/array/array.inl | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | hk_Array_Base::hk_Array_Base()
{
}
template <class T>
hk_Array<T>::hk_Array( int initial_size )
{
m_n_elems = 0;
if ( initial_size) {
m_memsize = initial_size;
m_elems = (char *)hk_allocate(T, initial_size, HK_MEMORY_CLASS_ARRAY );
}else{
m_memsize = 0;
m_elems = HK_NULL;
}
}
template... | 17.654545 | 80 | 0.620494 | DannyParker0001 |
a113e41347e4de24ac55be5477b2399c32d64c75 | 553 | cpp | C++ | Material/RobertLafore_Book/Book_SourceCode/Progs/Ch05/Convert.cpp | hpaucar/OOP-C-plus-plus-repo | e1fedd376029996a53d70d452b7738d9c43173c0 | [
"MIT"
] | 4 | 2020-12-26T03:17:45.000Z | 2022-01-11T05:54:40.000Z | Material/RobertLafore_Book/Book_SourceCode/Progs/Ch05/Convert.cpp | hpaucar/OOP-C-plus-plus-repo | e1fedd376029996a53d70d452b7738d9c43173c0 | [
"MIT"
] | null | null | null | Material/RobertLafore_Book/Book_SourceCode/Progs/Ch05/Convert.cpp | hpaucar/OOP-C-plus-plus-repo | e1fedd376029996a53d70d452b7738d9c43173c0 | [
"MIT"
] | null | null | null | // convert.cpp
// demonstrates return values, converts pounds to kg
#include <iostream>
using namespace std;
float lbstokg(float); //declaration
int main()
{
float lbs, kgs;
cout << "\nEnter your weight in pounds: ";
cin >> lbs;
kgs = lbstokg(lbs);
cout << "Your weight in kilograms is " << kgs << ... | 23.041667 | 64 | 0.56962 | hpaucar |
a113fdc69355cad6cff59b6c9a086956e7dbd639 | 2,459 | cpp | C++ | src/server/http/Reply.cpp | CabooseLang/BoxCar | 80bca1a2bfcd05dbdf3c5a39bfd2023818d4536d | [
"MIT"
] | null | null | null | src/server/http/Reply.cpp | CabooseLang/BoxCar | 80bca1a2bfcd05dbdf3c5a39bfd2023818d4536d | [
"MIT"
] | null | null | null | src/server/http/Reply.cpp | CabooseLang/BoxCar | 80bca1a2bfcd05dbdf3c5a39bfd2023818d4536d | [
"MIT"
] | null | null | null | #include "Reply.hpp"
#include <string>
#include <numeric>
namespace BoxCar {
namespace Http {
StatusData statusDataSet[] = {
{ "200", "OK" },
{ "201", "Created" },
{ "202", "Accepted" },
{ "204", "No Content" },
{ "300", "Multiple Choices" },
{ "301", "Moved Permanently" },
{ "302", "Moved Temporarily" ... | 29.987805 | 87 | 0.610411 | CabooseLang |
a1145f188a73dd9ca6d253218c9e6a67dbcbef6a | 527 | cpp | C++ | 001_GFG/Data-Structures-And-Algorithms-Self-Paced/0010_Linked_List/Practice/To_be_done_0018_Pairwise_swap_of_nodes_in_LinkeList.cpp | Sahil1515/coding | 2bd2a2257c8cac5a5c00b37e79bbb68a24e186d4 | [
"RSA-MD"
] | null | null | null | 001_GFG/Data-Structures-And-Algorithms-Self-Paced/0010_Linked_List/Practice/To_be_done_0018_Pairwise_swap_of_nodes_in_LinkeList.cpp | Sahil1515/coding | 2bd2a2257c8cac5a5c00b37e79bbb68a24e186d4 | [
"RSA-MD"
] | null | null | null | 001_GFG/Data-Structures-And-Algorithms-Self-Paced/0010_Linked_List/Practice/To_be_done_0018_Pairwise_swap_of_nodes_in_LinkeList.cpp | Sahil1515/coding | 2bd2a2257c8cac5a5c00b37e79bbb68a24e186d4 | [
"RSA-MD"
] | null | null | null |
// Approch 1
// Simply swapping the data of the nodes
struct Node* pairwise_swap(struct Node* head)
{
// your code here
Node * returnHead=head;
if(head==NULL || head->next==NULL)
return head;
while(head!=NULL && head->next!=NULL)
{
int temp=head->data;
head->data=head... | 16.46875 | 45 | 0.607211 | Sahil1515 |
a117c15ab541033157d6635b709c369958b3bef4 | 288 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/RemotingConfiguration_GetRegisteredActivatedServer_Client/CPP/RemotingConfiguration_GetRegisteredActivatedService_shared.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 3,294 | 2016-10-30T05:27:20.000Z | 2022-03-31T15:59:30.000Z | samples/snippets/cpp/VS_Snippets_Remoting/RemotingConfiguration_GetRegisteredActivatedServer_Client/CPP/RemotingConfiguration_GetRegisteredActivatedService_shared.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 16,739 | 2016-10-28T19:41:29.000Z | 2022-03-31T22:38:48.000Z | samples/snippets/cpp/VS_Snippets_Remoting/RemotingConfiguration_GetRegisteredActivatedServer_Client/CPP/RemotingConfiguration_GetRegisteredActivatedService_shared.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 6,701 | 2016-10-29T20:56:11.000Z | 2022-03-31T12:32:26.000Z |
using namespace System;
public ref class MyServerImpl: public MarshalByRefObject
{
public:
MyServerImpl()
{
Console::WriteLine( "Server Activated..." );
}
String^ MyMethod( String^ name )
{
return String::Format( "The client requests to {0}", name );
}
};
| 18 | 66 | 0.642361 | BaruaSourav |
a11af696a8fa3058933df242b304c9ecf0c0d293 | 5,204 | cpp | C++ | test/pipo-scale-test.cpp | Ircam-RnD/pipo | 30ff8e501fdc07220bb06bf66a58c55b2df1a61f | [
"Unlicense",
"BSD-3-Clause"
] | 14 | 2017-08-10T15:45:05.000Z | 2021-04-10T09:48:54.000Z | test/pipo-scale-test.cpp | ircam-ismm/pipo | 30ff8e501fdc07220bb06bf66a58c55b2df1a61f | [
"Unlicense",
"BSD-3-Clause"
] | 9 | 2017-07-21T14:58:44.000Z | 2019-07-26T12:05:09.000Z | test/pipo-scale-test.cpp | ircam-ismm/pipo | 30ff8e501fdc07220bb06bf66a58c55b2df1a61f | [
"Unlicense",
"BSD-3-Clause"
] | 2 | 2019-03-27T16:05:09.000Z | 2021-01-17T18:40:51.000Z | #include <sstream>
#include <string>
#include <cstddef>
#include <vector>
#include <algorithm>
#include "catch.hpp"
#include "PiPoScale.h"
#include "PiPoTestHost.h"
TEST_CASE ("PiPoScale")
{
PiPoTestHost host;
host.setGraph("scale");
std::vector<PiPoValue> inputFrame;
int check;
PiPoStreamAttributes sa;... | 30.97619 | 81 | 0.444658 | Ircam-RnD |
a11d1a1c850120786c80f9c4e2238718bc6c7a99 | 1,356 | hpp | C++ | ViewReportDlg.hpp | chrisoldwood/TaskTracker | 9477a275d46436d14950dea97864136f8bdbf73c | [
"MIT"
] | 1 | 2021-02-05T12:19:27.000Z | 2021-02-05T12:19:27.000Z | ViewReportDlg.hpp | chrisoldwood/TaskTracker | 9477a275d46436d14950dea97864136f8bdbf73c | [
"MIT"
] | null | null | null | ViewReportDlg.hpp | chrisoldwood/TaskTracker | 9477a275d46436d14950dea97864136f8bdbf73c | [
"MIT"
] | null | null | null | /******************************************************************************
** (C) Chris Oldwood
**
** MODULE: VIEWREPORTDLG.HPP
** COMPONENT: The Application.
** DESCRIPTION: The CViewReportDlg class declaration.
**
*******************************************************************************
*/
// Check for p... | 20.238806 | 79 | 0.455752 | chrisoldwood |
a11e6efad663b0a99243bc6a27fdb20bebdd9267 | 9,695 | cpp | C++ | examples/Collision/Internal/Bullet2CollisionSdk.cpp | romance-ii/bullet2 | 18cbc1a62db057de74effb1dfc107bbf421e55d9 | [
"Zlib"
] | 36 | 2016-06-30T19:12:10.000Z | 2022-01-10T17:23:22.000Z | examples/Collision/Internal/Bullet2CollisionSdk.cpp | Acidburn0zzz/bullet3 | 346308120ab66c418d73640721d7e216d6b57915 | [
"Zlib"
] | 2 | 2015-06-23T04:36:59.000Z | 2016-01-31T19:36:28.000Z | examples/Collision/Internal/Bullet2CollisionSdk.cpp | Acidburn0zzz/bullet3 | 346308120ab66c418d73640721d7e216d6b57915 | [
"Zlib"
] | 21 | 2016-09-28T02:53:57.000Z | 2022-02-13T11:47:17.000Z | #include "Bullet2CollisionSdk.h"
#include "btBulletCollisionCommon.h"
struct Bullet2CollisionSdkInternalData
{
btCollisionConfiguration* m_collisionConfig;
btCollisionDispatcher* m_dispatcher;
btBroadphaseInterface* m_aabbBroadphase;
btCollisionWorld* m_collisionWorld;
Bullet2CollisionSdkInternalData()
:m_aa... | 34.749104 | 200 | 0.762455 | romance-ii |
a11fcd87525c416af287fa9cfe3907a9e2eea812 | 9,421 | cc | C++ | device/bluetooth/bluez/bluetooth_remote_gatt_service_bluez.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | device/bluetooth/bluez/bluetooth_remote_gatt_service_bluez.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | device/bluetooth/bluez/bluetooth_remote_gatt_service_bluez.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <iterator>
#include "base/logging.h"
#include "dbus/property.h"
#include "device/bluetooth/bluez/bluetooth_adapter_bluez.h"
#include "device/blu... | 36.515504 | 79 | 0.743127 | metux |
a120ed14eb39645597b2791717aa9e34747a3b9a | 4,866 | hpp | C++ | inc/cheby2.hpp | gcant/pairwise-comparison-BP | f995d99440fd37b2850442413672a8e20b9f5b99 | [
"Apache-2.0"
] | 2 | 2021-10-04T09:48:50.000Z | 2022-01-13T21:24:43.000Z | inc/cheby2.hpp | gcant/pairwise-comparison-BP | f995d99440fd37b2850442413672a8e20b9f5b99 | [
"Apache-2.0"
] | null | null | null | inc/cheby2.hpp | gcant/pairwise-comparison-BP | f995d99440fd37b2850442413672a8e20b9f5b99 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <valarray>
#include "r2r.hpp"
#define _USE_MATH_DEFINES
#include <cmath>
const int INIT_BY_COEFS = 0;
const int INIT_BY_VALUES = 1;
namespace cheby {
typedef std::valarray<floatT> ArrayXd;
// discrete cosine transform function
r2r::r2r dct2(FFTW_REDFT10);
r2r::r2r dct3(FFTW_REDFT01)... | 23.736585 | 77 | 0.581587 | gcant |
a1220eecb2b2e7348828cef033077f7451fd5e4b | 4,592 | cpp | C++ | tasks/FrameSampler.cpp | PhischDotOrg/stm32f4-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | 1 | 2022-01-31T01:59:52.000Z | 2022-01-31T01:59:52.000Z | tasks/FrameSampler.cpp | PhischDotOrg/stm32-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | 5 | 2020-04-13T21:55:12.000Z | 2020-06-27T17:44:44.000Z | tasks/FrameSampler.cpp | PhischDotOrg/stm32f4-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | null | null | null | /*-
* $Copyright$
-*/
#include "tasks/FrameSampler.hpp"
#ifndef _FRAMESAMPLER_CPP_aa6ac2c3_3489_4a38_8642_30cdd3943a2a
#define _FRAMESAMPLER_CPP_aa6ac2c3_3489_4a38_8642_30cdd3943a2a
#if defined(__cplusplus)
extern "C" {
#endif /* defined(__cplusplus) */
#include "FreeRTOS/FreeRTOS.h"
#include "FreeRTOS/task.h"
#inc... | 38.588235 | 122 | 0.581664 | PhischDotOrg |
a123ca6891a64c4a038b934c836d94c815b37648 | 10,156 | cpp | C++ | libraries/utils/spectra.cpp | ChunmingGu/mne-cpp-master | 36f21b3ab0c65a133027da83fa8e2a652acd1485 | [
"BSD-3-Clause"
] | null | null | null | libraries/utils/spectra.cpp | ChunmingGu/mne-cpp-master | 36f21b3ab0c65a133027da83fa8e2a652acd1485 | [
"BSD-3-Clause"
] | null | null | null | libraries/utils/spectra.cpp | ChunmingGu/mne-cpp-master | 36f21b3ab0c65a133027da83fa8e2a652acd1485 | [
"BSD-3-Clause"
] | null | null | null | //=============================================================================================================
/**
* @file spectra.h
* @author Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de>;
* Lorenz Esch <lorenz.esch@tu-ilmenau.de>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @versio... | 42.316667 | 167 | 0.553564 | ChunmingGu |
a1241e1c98e56dbb93a647909133edf55e965941 | 2,588 | hpp | C++ | hull/reflection.hpp | loic-yvonnet/convex-hull- | 9dcb17abea8a0f5de0f3fe114c612b10f96ab422 | [
"MIT"
] | 1 | 2018-01-25T07:45:08.000Z | 2018-01-25T07:45:08.000Z | hull/reflection.hpp | loic-yvonnet/convex-hull- | 9dcb17abea8a0f5de0f3fe114c612b10f96ab422 | [
"MIT"
] | null | null | null | hull/reflection.hpp | loic-yvonnet/convex-hull- | 9dcb17abea8a0f5de0f3fe114c612b10f96ab422 | [
"MIT"
] | 1 | 2020-10-01T18:42:59.000Z | 2020-10-01T18:42:59.000Z | /**
* Basic reflection facilities
* Reflection is not part of C++14/17. However, C++11/14 introduced decltype
* and auto facilities. These facilities simplify and tidy up the SFINAE-based
* techniques to query and introspect a type at compile-time.
* The following implementation benefits from these facilities.
* ... | 36.450704 | 118 | 0.690108 | loic-yvonnet |
a126533a1db605f4344eb2d49b433ea075aac254 | 445 | cc | C++ | src/core/ecs/Component.cc | ilariom/wildcat | 814f054e0cf3ef0def1f6481005ffd3f0ac42d1b | [
"MIT"
] | 11 | 2018-11-07T08:54:21.000Z | 2022-02-20T22:40:47.000Z | src/core/ecs/Component.cc | ilariom/wildcat | 814f054e0cf3ef0def1f6481005ffd3f0ac42d1b | [
"MIT"
] | null | null | null | src/core/ecs/Component.cc | ilariom/wildcat | 814f054e0cf3ef0def1f6481005ffd3f0ac42d1b | [
"MIT"
] | 1 | 2020-07-24T09:18:48.000Z | 2020-07-24T09:18:48.000Z | #include "Component.h"
namespace wkt {
namespace ecs
{
namespace {
Component::ComponentUniqueID uid = 0;
}
Component::Component() : id(uid++)
{ }
Component::Component(const Component& comp)
{
this->id = uid++;
this->entity = comp.entity;
}
Component& Component::operator=(const Component& comp)
{
t... | 13.90625 | 54 | 0.640449 | ilariom |
a128a0b7972cd980600f56c7756dbe78a5821637 | 2,434 | cpp | C++ | src/day17.cpp | maxnoe/adventofcode2020 | eb2a3ea03af02bf951f145f214da6a9221d8fe4f | [
"MIT"
] | null | null | null | src/day17.cpp | maxnoe/adventofcode2020 | eb2a3ea03af02bf951f145f214da6a9221d8fe4f | [
"MIT"
] | null | null | null | src/day17.cpp | maxnoe/adventofcode2020 | eb2a3ea03af02bf951f145f214da6a9221d8fe4f | [
"MIT"
] | null | null | null | #include <aocmaxnoe2020/aocmaxnoe2020.h>
#include <aocmaxnoe2020/day17.h>
namespace aocmaxnoe2020 { namespace day17 {
bool operator== (const Point3D& lhs, const Point3D& rhs) {
return (lhs.x == rhs.x) && (lhs.y == rhs.y) && (lhs.z == rhs.z);
}
bool operator== (const Point4D& lhs, const Point4D& rhs) {
retur... | 22.962264 | 88 | 0.561216 | maxnoe |
a128d049e083d1e0c9b0114bca94b15e7bb5cd96 | 24,474 | cpp | C++ | apps/lite_dbproxy/main.cpp | cxxjava/CxxDBC | 01bee98aa407c9e762cf75f63a2c21942968cf0a | [
"Apache-2.0"
] | 20 | 2017-09-01T08:56:25.000Z | 2021-03-18T11:07:38.000Z | apps/lite_dbproxy/main.cpp | foolishantcat/CxxDBC | f0f9e95baad72318e7fe53231aeca2ffa4a8b574 | [
"Apache-2.0"
] | null | null | null | apps/lite_dbproxy/main.cpp | foolishantcat/CxxDBC | f0f9e95baad72318e7fe53231aeca2ffa4a8b574 | [
"Apache-2.0"
] | 14 | 2017-09-01T12:23:36.000Z | 2021-09-02T01:06:27.000Z | /*
* main.cpp
*
* Created on: 2017-7-17
* Author: cxxjava@163.com
*/
#include "es_main.h"
#include "ENaf.hh"
#include "EUtils.hh"
#include "../../interface/EDBInterface.h"
#include "../../dblib/inc/EDatabase.hh"
using namespace efc::edb;
#define PROXY_VERSION "version 0.2.0"
#define PID_FILE "./DBPROXY.p... | 25.101538 | 133 | 0.63737 | cxxjava |
a12a634cd3878fd141c3010b2f9d56fefb5f0c27 | 15,793 | cpp | C++ | osquery/filesystem/filesystem.cpp | Akhilpakanati/osquery | 81d8a4aa687f8e9a6c09a0dbcef3722fdc01aa8a | [
"BSD-3-Clause"
] | null | null | null | osquery/filesystem/filesystem.cpp | Akhilpakanati/osquery | 81d8a4aa687f8e9a6c09a0dbcef3722fdc01aa8a | [
"BSD-3-Clause"
] | null | null | null | osquery/filesystem/filesystem.cpp | Akhilpakanati/osquery | 81d8a4aa687f8e9a6c09a0dbcef3722fdc01aa8a | [
"BSD-3-Clause"
] | 1 | 2016-09-03T18:08:49.000Z | 2016-09-03T18:08:49.000Z | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... | 30.725681 | 80 | 0.594567 | Akhilpakanati |
a12c4f90644d22ae5b0d7103605acc08d30292e0 | 7,518 | hpp | C++ | include/eagine/byteset.hpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | 1 | 2022-01-25T10:31:51.000Z | 2022-01-25T10:31:51.000Z | include/eagine/byteset.hpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | null | null | null | include/eagine/byteset.hpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | null | null | null | /// @file
///
/// Copyright Matus Chochlik.
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE_1_0.txt or copy at
/// http://www.boost.org/LICENSE_1_0.txt
///
#ifndef EAGINE_BYTESET_HPP
#define EAGINE_BYTESET_HPP
#include "memory/block.hpp"
#include "types.hpp"
#include ... | 29.252918 | 90 | 0.608939 | matus-chochlik |
a12fb1ad2cb4bfcd06950869f8688408715ac076 | 748 | cpp | C++ | test/main.cpp | Ratstail91/colliders | 27d64767a9c9ebc4f8520624d3a292941815ac7c | [
"Zlib"
] | 1 | 2021-06-22T11:00:04.000Z | 2021-06-22T11:00:04.000Z | test/main.cpp | Ratstail91/colliders | 27d64767a9c9ebc4f8520624d3a292941815ac7c | [
"Zlib"
] | null | null | null | test/main.cpp | Ratstail91/colliders | 27d64767a9c9ebc4f8520624d3a292941815ac7c | [
"Zlib"
] | null | null | null | //test headers
#include "test_compiles.hpp"
#include "test_lines.hpp"
#include "test_circles.hpp"
#include "test_boxes.hpp"
#include "test_points.hpp"
#include "common.hpp"
#include <functional>
#include <iostream>
#include <vector>
const std::vector<std::function<TestResult()>> testVector = {
testCompiles,
testLi... | 20.216216 | 92 | 0.685829 | Ratstail91 |
a12fba24ad6e31e8c2a6e31baca11f1608c4ccfe | 6,230 | cpp | C++ | src/config.cpp | vargdidnothingwrong/csgo-horker | aae6e1094b84ce99fb36e0f4f033172a19cebc1d | [
"Apache-2.0"
] | null | null | null | src/config.cpp | vargdidnothingwrong/csgo-horker | aae6e1094b84ce99fb36e0f4f033172a19cebc1d | [
"Apache-2.0"
] | null | null | null | src/config.cpp | vargdidnothingwrong/csgo-horker | aae6e1094b84ce99fb36e0f4f033172a19cebc1d | [
"Apache-2.0"
] | null | null | null | #include "config.h"
#include <fstream>
#include <iostream>
#include "external/inih/INIReader.h"
constexpr char defConfigFile[] = "config.ini";
bool Config::Glow::Enabled = true;
bool Config::Glow::Radar = true;
bool Config::Glow::LegitGlow = false;
bool Config::Glow::GlowAllies = true;
bool Config::Glow:... | 33.858696 | 108 | 0.647191 | vargdidnothingwrong |
a132bbfba3f852de2a07fc4fd8b2aa542635333c | 34,532 | cpp | C++ | export/windows/cpp/obj/src/AssetPaths.cpp | TinyPlanetStudios/Project-Crash-Land | 365f196be4212602d32251566f26b53fb70693f6 | [
"MIT"
] | null | null | null | export/windows/cpp/obj/src/AssetPaths.cpp | TinyPlanetStudios/Project-Crash-Land | 365f196be4212602d32251566f26b53fb70693f6 | [
"MIT"
] | null | null | null | export/windows/cpp/obj/src/AssetPaths.cpp | TinyPlanetStudios/Project-Crash-Land | 365f196be4212602d32251566f26b53fb70693f6 | [
"MIT"
] | null | null | null | // Generated by Haxe 3.3.0
#include <hxcpp.h>
#ifndef INCLUDED_AssetPaths
#include <AssetPaths.h>
#endif
void AssetPaths_obj::__construct() { }
Dynamic AssetPaths_obj::__CreateEmpty() { return new AssetPaths_obj; }
hx::ObjectPtr< AssetPaths_obj > AssetPaths_obj::__new()
{
hx::ObjectPtr< AssetPaths_obj > _hx_resul... | 54.381102 | 153 | 0.72721 | TinyPlanetStudios |
a13315eaa4e230848762b0e0b9067678749b24b7 | 187 | cc | C++ | codelab/cplusplus/keyword/static.cc | LIZHICHAOUNICORN/Toolkits | db45dac4de14402a21be0c40ba8e87b4faeda1b6 | [
"Apache-2.0"
] | null | null | null | codelab/cplusplus/keyword/static.cc | LIZHICHAOUNICORN/Toolkits | db45dac4de14402a21be0c40ba8e87b4faeda1b6 | [
"Apache-2.0"
] | null | null | null | codelab/cplusplus/keyword/static.cc | LIZHICHAOUNICORN/Toolkits | db45dac4de14402a21be0c40ba8e87b4faeda1b6 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int* fun(int tmp) {
static int var = 10;
var *= tmp;
return &var;
}
int main() {
cout << *fun(5) << endl;
return 0;
}
/*
运行结果:
50
*/
| 9.842105 | 26 | 0.561497 | LIZHICHAOUNICORN |
a1351821ca5b25d5cb69a289f71a7dfafdc1ff9c | 3,879 | cpp | C++ | src/util/network/peer.cpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 652 | 2022-02-03T19:31:04.000Z | 2022-03-31T17:45:29.000Z | src/util/network/peer.cpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 50 | 2022-02-03T23:16:36.000Z | 2022-03-31T19:50:19.000Z | src/util/network/peer.cpp | EnrikoChavez/opencbdc-tx | 3f4ebe9fa8296542158ff505b47fd8f277e313dd | [
"MIT"
] | 116 | 2022-02-03T19:57:26.000Z | 2022-03-20T17:23:47.000Z | // Copyright (c) 2021 MIT Digital Currency Initiative,
// Federal Reserve Bank of Boston
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "peer.hpp"
#include <utility>
namespace cbdc::network {
p... | 28.522059 | 79 | 0.433617 | EnrikoChavez |
a13647035578bcf7d2416dc123347de77e3582be | 762 | cpp | C++ | chap09/Exer09_04.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 50 | 2016-01-08T14:28:53.000Z | 2022-01-21T12:55:00.000Z | chap09/Exer09_04.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 2 | 2017-06-05T16:45:20.000Z | 2021-04-17T13:39:24.000Z | chap09/Exer09_04.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 18 | 2016-08-17T15:23:51.000Z | 2022-03-26T18:08:43.000Z | #include <iostream>
#include <vector>
using std::cin;
using std::cout;
using std::endl;
using std::vector;
bool findElement(vector<int>::iterator beg, vector<int>::iterator end, int key);
int main()
{
vector<int> v;
int i, key;
cout << "Input a key:" << endl;
cin >> key;
cout << "Input some integer... | 20.052632 | 80 | 0.545932 | sjbarigye |
a136930474a93f4bbffcaab201c34ef64792a575 | 882 | hpp | C++ | SDK/ARKSurvivalEvolved_PrimalItemStructure_CropPlot_Tek_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_PrimalItemStructure_CropPlot_Tek_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_PrimalItemStructure_CropPlot_Tek_classes.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_PrimalItemStructure_CropPlot_Tek_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//----------------------------------------... | 22.615385 | 134 | 0.672336 | 2bite |
a13c841f70b3d7fbf8a86d0fc9f7a8d34a1d9948 | 4,683 | cpp | C++ | plugin/serializer/src/minko/data/HalfEdgeCollection.cpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | 478 | 2015-01-04T16:59:53.000Z | 2022-03-07T20:28:07.000Z | plugin/serializer/src/minko/data/HalfEdgeCollection.cpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | 83 | 2015-01-15T21:45:06.000Z | 2021-11-08T11:01:48.000Z | plugin/serializer/src/minko/data/HalfEdgeCollection.cpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | 175 | 2015-01-04T03:30:39.000Z | 2020-01-27T17:08:14.000Z | /*
Copyright (c) 2014 Aerys
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, distribute,
sublicens... | 36.023077 | 136 | 0.602178 | undeadinu |
a13ce1e26ae6d6dda59297a021c79415ab518874 | 31,253 | cpp | C++ | src/mqtt/qmqttclient.cpp | aron566/libmqttclient | 86e249bad6e2b0c27b710878a6f8ec95f6f7146f | [
"Apache-2.0"
] | 1 | 2020-09-07T15:45:48.000Z | 2020-09-07T15:45:48.000Z | src/mqtt/qmqttclient.cpp | aron566/libmqttclient | 86e249bad6e2b0c27b710878a6f8ec95f6f7146f | [
"Apache-2.0"
] | null | null | null | src/mqtt/qmqttclient.cpp | aron566/libmqttclient | 86e249bad6e2b0c27b710878a6f8ec95f6f7146f | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtMqtt module.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses m... | 28.619963 | 131 | 0.707356 | aron566 |
a13d4b97270d1c1ebc09498c33e9183a3c08be1e | 6,125 | cpp | C++ | WatorMap.cpp | Mikescher/SharkSim | 66417f8d859379c4d7febfe20de24ca5b40c2350 | [
"Unlicense"
] | null | null | null | WatorMap.cpp | Mikescher/SharkSim | 66417f8d859379c4d7febfe20de24ca5b40c2350 | [
"Unlicense"
] | null | null | null | WatorMap.cpp | Mikescher/SharkSim | 66417f8d859379c4d7febfe20de24ca5b40c2350 | [
"Unlicense"
] | null | null | null | #include "stdafx.h"
#include "WatorMap.h"
WatorMap::WatorMap(int width, int height, int fbt, int sbt, int sst, int threadcount)
{
srand((unsigned int) time(NULL));
m_width = width;
m_height = height;
m_fishBreedTime = fbt;
m_sharkBreedTime = sbt;
m_sharkStarveTime = sst;
m_currZyklus = 0;
createMap();
m_g... | 22.435897 | 99 | 0.624816 | Mikescher |
a13fca996aad9eade185b247dcbf4950737d3ed7 | 18,242 | cpp | C++ | src/modules/graphics/gles2/Context.cpp | binji/love-nacl | 827aa23556fe1c4876e37d24aab40795871b8d81 | [
"Zlib"
] | 15 | 2015-02-26T07:38:58.000Z | 2021-05-29T15:58:38.000Z | src/modules/graphics/gles2/Context.cpp | mcanthony/love-nacl | 827aa23556fe1c4876e37d24aab40795871b8d81 | [
"Zlib"
] | 3 | 2015-04-20T18:14:30.000Z | 2019-08-13T22:32:27.000Z | src/modules/graphics/gles2/Context.cpp | mcanthony/love-nacl | 827aa23556fe1c4876e37d24aab40795871b8d81 | [
"Zlib"
] | 7 | 2015-10-09T20:36:26.000Z | 2017-09-20T01:49:47.000Z | /**
* Copyright (c) 2006-2013 LOVE Development Team
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* ... | 24.819048 | 137 | 0.737474 | binji |
a140b31ec4a2c81f4898956fed47dec9b9e90ffc | 186 | cc | C++ | source/InterceptRoutingPlugin/DynamicBinaryInstrument/helper-arch/helper-x64.cc | hyl946/Dobby | 277de270f93736b22934e591625a0f9cb532415d | [
"Apache-2.0"
] | 1 | 2020-07-10T03:31:55.000Z | 2020-07-10T03:31:55.000Z | source/InterceptRoutingPlugin/DynamicBinaryInstrument/helper-arch/helper-x64.cc | hyl946/Dobby | 277de270f93736b22934e591625a0f9cb532415d | [
"Apache-2.0"
] | 1 | 2021-02-03T09:29:51.000Z | 2021-02-03T09:29:51.000Z | source/InterceptRoutingPlugin/DynamicBinaryInstrument/helper-arch/helper-x64.cc | hyl946/Dobby | 277de270f93736b22934e591625a0f9cb532415d | [
"Apache-2.0"
] | 6 | 2020-06-05T16:56:45.000Z | 2021-01-19T07:41:45.000Z | #include "dobby_internal.h"
void set_routing_bridge_next_hop(RegisterContext *reg_ctx, void *address) {
}
void get_routing_bridge_next_hop(RegisterContext *reg_ctx, void *address) {
}
| 23.25 | 75 | 0.806452 | hyl946 |
a1440562cbd743f34203d4d5b620adfddc7bcc10 | 1,860 | cpp | C++ | libcxx/test/libcxx/containers/unord/non_const_comparator.verify.cpp | ingve/llvm-project | 13a467c8d169fc8caf142240382e9fce82a20e5e | [
"Apache-2.0"
] | 1 | 2021-07-07T08:58:09.000Z | 2021-07-07T08:58:09.000Z | libcxx/test/libcxx/containers/unord/non_const_comparator.verify.cpp | ingve/llvm-project | 13a467c8d169fc8caf142240382e9fce82a20e5e | [
"Apache-2.0"
] | null | null | null | libcxx/test/libcxx/containers/unord/non_const_comparator.verify.cpp | ingve/llvm-project | 13a467c8d169fc8caf142240382e9fce82a20e5e | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 31 | 119 | 0.626882 | ingve |
a14480cb95ee5ec9c5fafb8efc7cc125f7792d87 | 10,258 | hpp | C++ | openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/boost/1.69.0-r0/boost_1_69_0/boost/multi_index/detail/index_base.hpp | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/boost/1.69.0-r0/boost_1_69_0/boost/multi_index/detail/index_base.hpp | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/boost/1.69.0-r0/boost_1_69_0/boost/multi_index/detail/index_base.hpp | sotaoverride/backup | ca53a10b72295387ef4948a9289cb78ab70bc449 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2003-2017 Joaquin M Lopez Munoz.
* 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)
*
* See http://www.boost.org/libs/multi_index for library home page.
*/
#ifndef BOOST_MULTI_INDEX_DETAIL_INDEX_BAS... | 26.235294 | 80 | 0.634822 | sotaoverride |
a145bbb4e20d301cee6b19f1100a28ea4ee495bc | 1,183 | cpp | C++ | codeforces/1408A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1408A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1408A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | // A. Circle Coloring
#include <iostream>
#include <vector>
using namespace std;
int main(){
int t;
cin >> t;
while (t--){
int n;
cin >> n;
vector<vector<int>> v(3);
int tmp;
for (int i=0; i<3; ++i){
for (int j=0; j<n; ++j){
cin >> ... | 21.125 | 65 | 0.277261 | sgrade |
a146e895466fe67bf0f271bce618c1daeee587c7 | 498 | cpp | C++ | uva/10550.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | uva/10550.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | uva/10550.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
int main(){
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
int i, a, b, c, temp, d;
while(scanf("%d %d %d %d", &i, &a, &b, &c) != EOF && (i || a || b || c)){
d = 1080;
temp = i - a;
if(temp < 0) temp += 40;
d += (temp * 9);... | 22.636364 | 75 | 0.435743 | cosmicray001 |
a147e9e27bbc4f8700d6b25d6103549d03d18e1b | 2,644 | hpp | C++ | libs/boost_1_72_0/boost/fusion/algorithm/query/detail/segmented_find_if.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/fusion/algorithm/query/detail/segmented_find_if.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/fusion/algorithm/query/detail/segmented_find_if.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | /*=============================================================================
Copyright (c) 2011 Eric Niebler
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)
================================================... | 36.722222 | 80 | 0.672466 | henrywarhurst |
a148c19d55c4e894123929098ab4e12e1e5cec34 | 3,273 | cpp | C++ | codeforces/1286f.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | 1 | 2020-04-04T14:56:12.000Z | 2020-04-04T14:56:12.000Z | codeforces/1286f.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | codeforces/1286f.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
// O(n 2^n) Yates
#define __loop(f) \
for (int i = 0, n = 31-__builtin_clz((int)f.size()), MSK = 1<<n; i < n; i++)\
for (int msk = 0; msk < MSK; msk++)\
if (msk>>i&1)
// F=Z(f). F[X] := sum_{S sub X} f[S]
template <typename T>
i... | 30.877358 | 81 | 0.425909 | sogapalag |
a149d26df848627757114316e4aee48387deaa37 | 3,421 | cc | C++ | src/entities/filters/particle_emitter_filter.cc | SkyVault/SkyVault | e8bd51049ca94f30bb2da77bd572ef11107bb5c1 | [
"MIT"
] | 1 | 2019-12-19T12:20:52.000Z | 2019-12-19T12:20:52.000Z | src/entities/filters/particle_emitter_filter.cc | SkyVault/SkyVault | e8bd51049ca94f30bb2da77bd572ef11107bb5c1 | [
"MIT"
] | 2 | 2019-01-23T21:18:11.000Z | 2019-01-28T17:44:34.000Z | src/entities/filters/particle_emitter_filter.cc | SkyVault/SkyVault | e8bd51049ca94f30bb2da77bd572ef11107bb5c1 | [
"MIT"
] | null | null | null | #include "particle_emitter_filter.h"
using namespace Interpolation;
void ParticleEmitterFilter::Update(const SkyTime& time, Entity* entity) {
auto emitter = entity->Get<ParticleEmitter>();
auto body = entity->Get<Body>();
emitter->VelocityBounds = sf::FloatRect(-10, 10, -5, -30);
emitter->Radius = 4... | 31.971963 | 95 | 0.559193 | SkyVault |
a14dd253d6f6c1ac77b0acf30583ff9183246b32 | 2,064 | cpp | C++ | test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/compare.pass.cpp | K-Wu/libcxx.doc | c3c0421b2a9cc003146e847d0b8dd3a37100f39a | [
"Apache-2.0"
] | null | null | null | test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/compare.pass.cpp | K-Wu/libcxx.doc | c3c0421b2a9cc003146e847d0b8dd3a37100f39a | [
"Apache-2.0"
] | null | null | null | test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/compare.pass.cpp | K-Wu/libcxx.doc | c3c0421b2a9cc003146e847d0b8dd3a37100f39a | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 34.983051 | 80 | 0.566376 | K-Wu |
a14e67ef5005d804ac67c3d7ce1395abce4c20cc | 25,287 | hpp | C++ | src/libshell/EnergyHelper_Parametric.hpp | mvlab/growth_SM2018 | 3ad411c4f7082e7bffc2ed3ea9bc96b9a51da73a | [
"BSD-3-Clause"
] | 8 | 2019-09-05T16:05:59.000Z | 2021-12-01T10:30:15.000Z | src/libshell/EnergyHelper_Parametric.hpp | mvlab/growth_SM2018 | 3ad411c4f7082e7bffc2ed3ea9bc96b9a51da73a | [
"BSD-3-Clause"
] | 1 | 2021-01-08T17:13:39.000Z | 2021-01-15T17:11:53.000Z | src/libshell/EnergyHelper_Parametric.hpp | mvlab/growth_SM2018 | 3ad411c4f7082e7bffc2ed3ea9bc96b9a51da73a | [
"BSD-3-Clause"
] | 4 | 2020-04-13T13:01:04.000Z | 2021-01-09T17:03:02.000Z | //
// EnergyHelper_Parametric.hpp
// Elasticity
//
// Created by Wim van Rees on 04/06/16.
// Copyright © 2016 Wim van Rees. All rights reserved.
//
#ifndef EnergyHelper_Parametric_hpp
#define EnergyHelper_Parametric_hpp
#include "common.hpp"
#include "ExtendedTriangleInfo.hpp"
#include "QuadraticForms.hpp"
#inc... | 46.827778 | 296 | 0.727647 | mvlab |
a150a6de8e1eb24267244aa6a6ea9d2b30b48315 | 10,007 | cpp | C++ | tests/BinTest.cpp | prozum/SPPL | 77de5db600a89b84bc8e6e851c9a766cd5203ce2 | [
"MIT"
] | 4 | 2016-03-17T19:38:51.000Z | 2016-10-30T18:54:17.000Z | tests/BinTest.cpp | prozum/sppl | 77de5db600a89b84bc8e6e851c9a766cd5203ce2 | [
"MIT"
] | null | null | null | tests/BinTest.cpp | prozum/sppl | 77de5db600a89b84bc8e6e851c9a766cd5203ce2 | [
"MIT"
] | null | null | null | #include "Test.h"
void Test::binEqualTrueTrue() {
bool compStatus = compileChecker("bin/binEqualTrueTrue.sppl");
CPPUNIT_ASSERT_MESSAGE(compMsgFail, compStatus);
bool execStatus = executeChecker("True");
CPPUNIT_ASSERT_MESSAGE(execMsg, execStatus);
}
void Test::binEqualTrueFalse() {
bool compSta... | 33.922034 | 71 | 0.753972 | prozum |
a151cd4bf7dc957ea7f0a677fc9ee700e1ecceaf | 1,380 | cpp | C++ | scratch/projects/graphics/xMotionBlur.cpp | tingelst/versor | c831231e5011cfd1f62da8948cff7956d2f6670b | [
"BSD-3-Clause"
] | null | null | null | scratch/projects/graphics/xMotionBlur.cpp | tingelst/versor | c831231e5011cfd1f62da8948cff7956d2f6670b | [
"BSD-3-Clause"
] | null | null | null | scratch/projects/graphics/xMotionBlur.cpp | tingelst/versor | c831231e5011cfd1f62da8948cff7956d2f6670b | [
"BSD-3-Clause"
] | null | null | null | /*
* =====================================================================================
*
* Filename: xMotionBlur.cpp
*
* Description: trace of motion using GFX Renderer
*
* Version: 1.0
* Created: 03/07/2014 15:35:55
* Revision: none
* Compiler: gcc
*
* A... | 17.037037 | 88 | 0.438406 | tingelst |
a155914d3f9bd24f5c15e46cd2e8b78e132f4736 | 74,068 | cpp | C++ | src/mame/drivers/mcr3.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/drivers/mcr3.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/drivers/mcr3.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Aaron Giles
/***************************************************************************
Midway MCR-3 system
driver by Christopher Kirmse, Aaron Giles
Games supported:
* Demolition Derby (Monoboard version) (Turbo Cheap Squeak)
* Sarge (Turbo C... | 43.905157 | 204 | 0.705419 | Robbbert |
a156c922e7ddebfea139b08235fbcfbc22aedd5a | 3,999 | cpp | C++ | datastore/common/objects/Port.cpp | mire-all-rashly/netmeld | d3ffd0b3d1332654e9c8df871bc7bf0b8cb46fed | [
"MIT"
] | null | null | null | datastore/common/objects/Port.cpp | mire-all-rashly/netmeld | d3ffd0b3d1332654e9c8df871bc7bf0b8cb46fed | [
"MIT"
] | null | null | null | datastore/common/objects/Port.cpp | mire-all-rashly/netmeld | d3ffd0b3d1332654e9c8df871bc7bf0b8cb46fed | [
"MIT"
] | null | null | null | // =============================================================================
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Permission is hereby grante... | 24.99375 | 80 | 0.593648 | mire-all-rashly |
a1578f671e32775d55370b773634562d71f84f70 | 32,222 | cpp | C++ | native/libs/gui/tests/SurfaceTextureClient_test.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | native/libs/gui/tests/SurfaceTextureClient_test.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | native/libs/gui/tests/SurfaceTextureClient_test.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | /*
* Copyright (C) 2011 The Android Open Source Project
*
* 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 app... | 39.731196 | 94 | 0.684563 | Keneral |
a159a2a771f260fd9acf089aaef537386abfbc21 | 830 | cc | C++ | leetcode/cpp/copy_random_list.cc | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | leetcode/cpp/copy_random_list.cc | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | leetcode/cpp/copy_random_list.cc | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
RandomListNode* copyRandomList(RandomListNode *head) {
if (!head) return 0;
unordered_map<RandomListNode*, RandomListNode*> table;
RandomListNode *ret = new RandomListNode(head->label);
table[head] = ret;
RandomListNode *p = head, *q = ret;
while (p && q) {
if (p->next) {
if... | 23.055556 | 56 | 0.556627 | haonancool |
a160359e8a80ef2b49f19807a1cea0e106d9ae27 | 4,114 | cpp | C++ | indra/llimage/llimagepng.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/llimage/llimagepng.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/llimage/llimagepng.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | /*
* @file llimagepng.cpp
* @brief LLImageFormatted glue to encode / decode PNG files.
*
* $LicenseInfo:firstyear=2007&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms ... | 27.426667 | 84 | 0.691055 | humbletim |
a1640cb53b73f2475a43e74512bd14cc875dc32d | 11,937 | cpp | C++ | Source/Source/Common/SO3World/Test/TestProject/KMathTest/KMathStressTest/KMathStressTest.cpp | uvbs/FullSource | 07601c5f18d243fb478735b7bdcb8955598b9a90 | [
"MIT"
] | 2 | 2018-07-26T07:58:14.000Z | 2019-05-31T14:32:18.000Z | Jx3Full/Source/Source/Common/SO3World/Test/TestProject/KMathTest/KMathStressTest/KMathStressTest.cpp | RivenZoo/FullSource | cfd7fd7ad422fd2dae5d657a18839c91ff9521fd | [
"MIT"
] | null | null | null | Jx3Full/Source/Source/Common/SO3World/Test/TestProject/KMathTest/KMathStressTest/KMathStressTest.cpp | RivenZoo/FullSource | cfd7fd7ad422fd2dae5d657a18839c91ff9521fd | [
"MIT"
] | 5 | 2021-02-03T10:25:39.000Z | 2022-02-23T07:08:37.000Z | ///////////////////////////////////////////////////////////////
// Copyright(c) Kingsoft
//
// FileName : KMathStressTest
// Creator : ChenShiCai
// Date : 2008-10-27
// Comment :
//
///////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "KMathStressTest.h"
#in... | 29.114634 | 167 | 0.650582 | uvbs |