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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c0ee1c369e61032ba700744bab4cf75213db36d0 | 9,752 | cpp | C++ | sourceCode/dotNet4.6/vb/language/vbhosted/vbhosted/vbhostedcompiler.cpp | csoap/csoap.github.io | 2a8db44eb63425deff147652b65c5912f065334e | [
"Apache-2.0"
] | 5 | 2017-03-03T02:13:16.000Z | 2021-08-18T09:59:56.000Z | sourceCode/dotNet4.6/vb/language/vbhosted/vbhosted/vbhostedcompiler.cpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | null | null | null | sourceCode/dotNet4.6/vb/language/vbhosted/vbhosted/vbhostedcompiler.cpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | 4 | 2016-11-15T05:20:12.000Z | 2021-11-13T16:32:11.000Z | #include "stdafx.h"
VbHostedCompiler::VbHostedCompiler(gcroot<System::Collections::Generic::IList<System::Reflection::Assembly ^>^> referenceAssemblies)
:
m_fInit(false),
m_referenceAssemblies(gcnew System::Collections::Generic::List<System::Reflection::Assembly ^>(referenceAssemblies)),
m_ErrorTable(... | 35.591241 | 153 | 0.717904 | csoap |
c0ef5d287b39ace47f4b993c1bf516a59d9491e7 | 1,072 | cpp | C++ | test/test_large_messages.cpp | bripage/ygm | 6ef1a47b90474947ee751afe3a60eabfb20d4c0c | [
"MIT-0",
"MIT"
] | 10 | 2020-03-06T17:56:42.000Z | 2022-01-10T01:24:07.000Z | test/test_large_messages.cpp | bripage/ygm | 6ef1a47b90474947ee751afe3a60eabfb20d4c0c | [
"MIT-0",
"MIT"
] | 31 | 2021-04-13T23:08:13.000Z | 2022-03-29T21:40:21.000Z | test/test_large_messages.cpp | bripage/ygm | 6ef1a47b90474947ee751afe3a60eabfb20d4c0c | [
"MIT-0",
"MIT"
] | 10 | 2021-02-02T23:15:11.000Z | 2021-11-10T17:43:47.000Z | // Copyright 2019-2021 Lawrence Livermore National Security, LLC and other YGM
// Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: MIT
#undef NDEBUG
#include <ygm/comm.hpp>
#include <ygm/detail/ygm_ptr.hpp>
int main(int argc, char** argv) {
// Create comm for very sma... | 27.487179 | 78 | 0.600746 | bripage |
c0f144f7483c32df2ae92bd5d203fc3d3e4185ad | 1,218 | cpp | C++ | signal-slot-benchmarks/benchmark/cpp/benchmark_nod.cpp | qubka/signals | 6bd39c662ab2b1e0caafc5a4c4510a74fb9f9e1c | [
"MIT"
] | 181 | 2020-01-17T13:49:59.000Z | 2022-03-17T03:23:12.000Z | signal-slot-benchmarks/benchmark/cpp/benchmark_nod.cpp | qubka/signals | 6bd39c662ab2b1e0caafc5a4c4510a74fb9f9e1c | [
"MIT"
] | 22 | 2020-01-16T23:37:02.000Z | 2021-09-08T23:51:12.000Z | signal-slot-benchmarks/benchmark/cpp/benchmark_nod.cpp | qubka/signals | 6bd39c662ab2b1e0caafc5a4c4510a74fb9f9e1c | [
"MIT"
] | 16 | 2020-01-28T15:40:18.000Z | 2022-02-25T08:32:15.000Z | #include "../hpp/benchmark_nod.hpp"
NOINLINE(void Nod::initialize())
{
// NOOP
}
NOINLINE(void Nod::validate_assert(std::size_t N))
{
return Benchmark<Signal, Nod>::validation_assert(N);
}
NOINLINE(double Nod::construction(std::size_t N, std::size_t limit))
{
return Benchmark<Signal, Nod>::construction... | 28.325581 | 68 | 0.703612 | qubka |
c0f25d2231d5e519dc15331a1450316114c94a6b | 277 | hpp | C++ | app/raytracing/ScreenRayTracer.hpp | Yousazoe/Solar | 349c75f7a61b1727aa0c6d581cf75124b2502a57 | [
"Apache-2.0"
] | 1 | 2021-08-07T13:02:01.000Z | 2021-08-07T13:02:01.000Z | app/raytracing/ScreenRayTracer.hpp | Yousazoe/Solar | 349c75f7a61b1727aa0c6d581cf75124b2502a57 | [
"Apache-2.0"
] | null | null | null | app/raytracing/ScreenRayTracer.hpp | Yousazoe/Solar | 349c75f7a61b1727aa0c6d581cf75124b2502a57 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include<math/Math3d.hpp>
#include<render/Filter.hpp>
#include<render/Viewport.hpp>
namespace tutorial::graphics
{
class ScreenRayTracer
{
private:
ScreenRayTracer() = delete;
public:
static void draw(Viewport& viewport, ShaderVersion shader);
};
}
| 14.578947 | 61 | 0.736462 | Yousazoe |
c0f68569b69b34722569b76c4d3691968324900c | 392 | cpp | C++ | Chapter08/Exercise58/Exercise58.cpp | Archiit19/The-Cpp-Workshop | ae2f8d0c375d6bcdd7fa5ab9e34370ce83d1f501 | [
"MIT"
] | 4 | 2019-08-12T08:59:46.000Z | 2022-03-08T07:49:29.000Z | Chapter08/Exercise58/Exercise58.cpp | Archiit19/The-Cpp-Workshop | ae2f8d0c375d6bcdd7fa5ab9e34370ce83d1f501 | [
"MIT"
] | null | null | null | Chapter08/Exercise58/Exercise58.cpp | Archiit19/The-Cpp-Workshop | ae2f8d0c375d6bcdd7fa5ab9e34370ce83d1f501 | [
"MIT"
] | 5 | 2019-10-09T17:00:56.000Z | 2022-03-08T07:49:41.000Z | #include <iostream>
#include <string>
using namespace std;
class Track
{
public:
float lengthInSeconds;
string trackName;
Track ()
{
lengthInSeconds = 0.0f;
trackName = "not set";
}
};
int main()
{
Track track;
cout << "Track Name = " << track.trackName << endl;
cout... | 15.076923 | 62 | 0.581633 | Archiit19 |
c0ffe7630a0e5ac395c0e996175645ec04ba8423 | 459 | cpp | C++ | 2021/day22/main.cpp | alexandru-andronache/adventofcode | ee41d82bae8b705818fda5bd43e9962bb0686fec | [
"Apache-2.0"
] | 3 | 2021-07-01T14:31:06.000Z | 2022-03-29T20:41:21.000Z | 2021/day22/main.cpp | alexandru-andronache/adventofcode | ee41d82bae8b705818fda5bd43e9962bb0686fec | [
"Apache-2.0"
] | null | null | null | 2021/day22/main.cpp | alexandru-andronache/adventofcode | ee41d82bae8b705818fda5bd43e9962bb0686fec | [
"Apache-2.0"
] | null | null | null | #include "file.h"
#include "utilities.h"
#include <iostream>
namespace aoc2021_day22 {
int part_1(std::string_view path) {
return 0;
}
int part_2(std::string_view path) {
return 0;
}
}
#ifndef TESTING
int main() {
std::cout << "Part 1: " << aoc2021_day22::part_1("../2021/day22/inp... | 19.956522 | 92 | 0.59695 | alexandru-andronache |
8d06325146b5e2db60d6dbf217774fd60b04e894 | 1,070 | cpp | C++ | code_practice/10/1018_class/3_shared_ptr8.cpp | armkernel/armkernel.github.io | f74b8ddfc8a69dec8b5eeccb4d92c62dcc6c321a | [
"MIT"
] | 2 | 2019-08-06T13:45:02.000Z | 2019-11-06T01:15:30.000Z | code_practice/10/1018_class/3_shared_ptr8.cpp | armkernel/armkernel.github.io | f74b8ddfc8a69dec8b5eeccb4d92c62dcc6c321a | [
"MIT"
] | null | null | null | code_practice/10/1018_class/3_shared_ptr8.cpp | armkernel/armkernel.github.io | f74b8ddfc8a69dec8b5eeccb4d92c62dcc6c321a | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <memory>
using namespace std;
struct People
{
string name;
People(string n) : name(n) {}
~People() { cout << name << " 파괴" << endl; }
//shared_ptr<People> bestFriend; // 참조 계수 증가한다.
// People* bestFriend; // 참조계수가 증가하지 않는다.
weak_ptr<People> bestFriend; //... | 19.454545 | 56 | 0.536449 | armkernel |
8d0b8688a77ee3880255a9027c53e6c69e5e2619 | 9,815 | cpp | C++ | qmovstack.cpp | deepakm/deepquor | 6e7746ad7e9b359ed5b0567c580a97684a76ad12 | [
"BSD-3-Clause"
] | null | null | null | qmovstack.cpp | deepakm/deepquor | 6e7746ad7e9b359ed5b0567c580a97684a76ad12 | [
"BSD-3-Clause"
] | null | null | null | qmovstack.cpp | deepakm/deepquor | 6e7746ad7e9b359ed5b0567c580a97684a76ad12 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2005-2006
* Brent Miller and Charles Morrey. All rights reserved.
*
* See the COPYRIGHT_NOTICE file for terms.
*/
#include "qmovstack.h"
IDSTR("$Id: qmovstack.cpp,v 1.11 2006/07/31 06:25:50 bmiller Exp $");
/****/
/***********************
* class qWallMoveList *
*********************... | 25.038265 | 85 | 0.668263 | deepakm |
8d0e01232aa2658c99492909bfab42023691b260 | 4,777 | hpp | C++ | include/realm/core/system.hpp | pyrbin/realm.hpp | e34b18ce1f5c39b080a9e70f675adf740490ff83 | [
"MIT"
] | 2 | 2020-03-01T18:15:27.000Z | 2020-03-25T10:21:59.000Z | include/realm/core/system.hpp | pyrbin/realm.hpp | e34b18ce1f5c39b080a9e70f675adf740490ff83 | [
"MIT"
] | null | null | null | include/realm/core/system.hpp | pyrbin/realm.hpp | e34b18ce1f5c39b080a9e70f675adf740490ff83 | [
"MIT"
] | 1 | 2020-03-25T10:22:00.000Z | 2020-03-25T10:22:00.000Z | #pragma once
#include <cstddef>
#include <memory>
#include <stdexcept>
#include <string>
#include <utility>
#include <realm/core/archetype.hpp>
#include <realm/util/tuple_util.hpp>
namespace realm {
/**
* Forward declarations
*/
struct world;
template<typename... Ts>
struct view;
template<typename F>
constexpr ... | 27.297143 | 99 | 0.630731 | pyrbin |
8d114342a7fa4f43cd2dcf2a26c1fc14ad8d9c88 | 844 | cpp | C++ | libmetartc5/src/yangutil/buffer/YangAudioBuffer.cpp | metartc/metaRTC | 7b3125c9244632c82c55aacd628e6f0d7b151488 | [
"MIT"
] | 136 | 2021-12-17T09:17:44.000Z | 2022-03-28T09:51:51.000Z | libmetartc5/src/yangutil/buffer/YangAudioBuffer.cpp | metartc/metaRTC | 7b3125c9244632c82c55aacd628e6f0d7b151488 | [
"MIT"
] | 2 | 2021-12-24T02:00:53.000Z | 2022-03-28T02:40:12.000Z | libmetartc5/src/yangutil/buffer/YangAudioBuffer.cpp | metartc/metaRTC | 7b3125c9244632c82c55aacd628e6f0d7b151488 | [
"MIT"
] | 40 | 2021-12-17T09:17:48.000Z | 2022-03-27T14:40:25.000Z | //
// Copyright (c) 2019-2022 yanggaofeng
//
#include "yangutil/buffer/YangAudioBuffer.h"
#include <stdlib.h>
#include "stdio.h"
YangAudioBuffer::YangAudioBuffer(int32_t pcacheNum)
{
resetIndex();
m_cache_num=pcacheNum;
m_bufLen=0;
}
void YangAudioBuffer::reset(){
resetIndex();
}
YangAudio... | 15.071429 | 57 | 0.632701 | metartc |
8d1258dc0ff0b4a25312f6a3661cefc9e7e25368 | 11,376 | cpp | C++ | yoshicar_base_controller/src/MotorStateMachine.cpp | Badenhoop/yoshicar | c542e75dccf73b006a6483ced357168c15d893fe | [
"MIT"
] | null | null | null | yoshicar_base_controller/src/MotorStateMachine.cpp | Badenhoop/yoshicar | c542e75dccf73b006a6483ced357168c15d893fe | [
"MIT"
] | null | null | null | yoshicar_base_controller/src/MotorStateMachine.cpp | Badenhoop/yoshicar | c542e75dccf73b006a6483ced357168c15d893fe | [
"MIT"
] | 1 | 2020-09-11T17:54:54.000Z | 2020-09-11T17:54:54.000Z | #include "yoshicar_base_controller/MotorStateMachine.h"
namespace yoshicar
{
double varianceDecay(double t, double vStart, double vEnd, double duration)
{
double vDelta = vStart - vEnd;
return vStart - (vDelta / (1 + std::exp(-(12. / duration * t - 6.))));
}
MotorStateMachine::MotorStateMachine()
{
ros::NodeHan... | 27.61165 | 118 | 0.774701 | Badenhoop |
8d12ccf482d8cb7b41e22716dbce49e1f2cff68b | 3,381 | cc | C++ | src/scsi2sd-util6/libzipper-1.0.4/Compressor.cc | fhgwright/SCSI2SD-V6 | 29555b30d3f96257ac12a546e75891490603aee8 | [
"BSD-3-Clause"
] | 2 | 2020-11-29T01:28:03.000Z | 2021-11-07T18:23:11.000Z | src/scsi2sd-util6/libzipper-1.0.4/Compressor.cc | tweakoz/SCSI2SD-V6 | 77db5f86712213e25c9b12fa5c9fa9c54b80cb80 | [
"BSD-3-Clause"
] | null | null | null | src/scsi2sd-util6/libzipper-1.0.4/Compressor.cc | tweakoz/SCSI2SD-V6 | 77db5f86712213e25c9b12fa5c9fa9c54b80cb80 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (C) 2011 Michael McMaster <michael@codesrc.com>
//
// This file is part of libzipper.
//
// libzipper 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 3 of the License, or
// (at y... | 22.098039 | 71 | 0.722272 | fhgwright |
8d1899c71f93415feb9a58504bd0fe6f2a068d19 | 985 | hpp | C++ | include/commata/buffer_size.hpp | furfurylic/commata | 6afbc218d262d8363e8436fd943b1e13444d9f83 | [
"Unlicense"
] | null | null | null | include/commata/buffer_size.hpp | furfurylic/commata | 6afbc218d262d8363e8436fd943b1e13444d9f83 | [
"Unlicense"
] | null | null | null | include/commata/buffer_size.hpp | furfurylic/commata | 6afbc218d262d8363e8436fd943b1e13444d9f83 | [
"Unlicense"
] | null | null | null | /**
* These codes are licensed under the Unlicense.
* http://unlicense.org
*/
#ifndef COMMATA_GUARD_4E257056_FA43_4ED4_BF21_5638E8C46B14
#define COMMATA_GUARD_4E257056_FA43_4ED4_BF21_5638E8C46B14
#include <algorithm>
#include <cstddef>
#include <memory>
#include <limits>
namespace commata { namespace detail {
te... | 27.361111 | 78 | 0.73198 | furfurylic |
8d1907f99094d3d56c755e085ed46f84e01ba9bc | 1,130 | hh | C++ | src/circuit/pws_circuit.hh | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | null | null | null | src/circuit/pws_circuit.hh | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | null | null | null | src/circuit/pws_circuit.hh | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | 1 | 2020-01-16T07:49:03.000Z | 2020-01-16T07:49:03.000Z | #pragma once
#include <vector>
#include <map>
#include "pws_circuit_parser.hh"
#include "cmt_circuit.hh"
#include "cmt_circuit_builder.hh"
class PWSCircuit : public CMTCircuit
{
private:
PWSCircuitParser& parser;
public:
PWSCircuit(PWSCircuitParser& pp);
Gate getGate(const GatePosition& pos);
CircuitLa... | 25.681818 | 118 | 0.749558 | hyraxZK |
8d1b7b5c7e67cb8d38f63cbe0f613a59b08398cb | 1,786 | hpp | C++ | gk++/include/gk/gk++.hpp | rpav/GameKernel | 1f3eb863b58243f5f14aa76283b60a259d881522 | [
"MIT"
] | 11 | 2016-04-28T15:09:19.000Z | 2019-07-15T15:58:59.000Z | gk++/include/gk/gk++.hpp | rpav/GameKernel | 1f3eb863b58243f5f14aa76283b60a259d881522 | [
"MIT"
] | null | null | null | gk++/include/gk/gk++.hpp | rpav/GameKernel | 1f3eb863b58243f5f14aa76283b60a259d881522 | [
"MIT"
] | null | null | null | #pragma once
/*
This uses a slight bit of STL. You can probably replace this with
a slimmer implementation without issues.
This also abuses templates and virtuals a bit to keep code concise.
*/
#include <stdexcept>
#include <vector>
#include <rpav/ptr.hpp>
#include "gk/gk++cmd.hpp"
#include "gk/gk++list.hp... | 20.067416 | 82 | 0.613102 | rpav |
8d203b2bb42da1d3c8d32247b41c2f65a1c6d5f5 | 2,361 | cpp | C++ | src/byte_array.cpp | rnascunha/my_async | 5fbe3a46e87a2d74fc07d16252a3b3cf488b4684 | [
"MIT"
] | null | null | null | src/byte_array.cpp | rnascunha/my_async | 5fbe3a46e87a2d74fc07d16252a3b3cf488b4684 | [
"MIT"
] | null | null | null | src/byte_array.cpp | rnascunha/my_async | 5fbe3a46e87a2d74fc07d16252a3b3cf488b4684 | [
"MIT"
] | null | null | null | #include "my_async/util/byte_array.h"
#include <ostream>
#include <iomanip>
#include <sstream>
std::string Byte_Array::to_hex(bool up_case /* = true */, const char* separator /* = "" */,
unsigned int byte_space /* = 1 */) const
{
std::ostringstream ret;
for (std::string::size_type i = 0; i < size(); ++i){
ret <... | 19.195122 | 91 | 0.591275 | rnascunha |
8d25b14e89d354f8ff34834e576c4b5b9d01da5f | 568 | cpp | C++ | Olympiad Programs/M3/M3 Madrese/Afther M2 Results/Day 1/M3s/22/Day 2/1.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | 1 | 2020-12-08T11:21:34.000Z | 2020-12-08T11:21:34.000Z | Olympiad Programs/M3/M3 Madrese/Afther M2 Results/Day 1/M3s/22/Day 2/1.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | null | null | null | Olympiad Programs/M3/M3 Madrese/Afther M2 Results/Day 1/M3s/22/Day 2/1.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
using namespace std;
#define pb push_back
#define mp make_pair
#define pf push_front
#define FOR(i,s,f) for (int i=s;i<f;i++)
typedef long long LL ;
typedef pair <int ,int > PII;
typedef pair <LL , LL > PLL;
const int M... | 16.228571 | 40 | 0.603873 | mirtaba |
8d2ae03d437b155e5145b3755f7746e440dfe36e | 41,376 | cpp | C++ | src/wl_state.cpp | TobiasKarnat/Wolf4GW | a49ead44cb4a6476255e355c4c5e3e48bb7f1d55 | [
"Unlicense"
] | 8 | 2015-06-28T09:38:45.000Z | 2021-10-02T16:33:47.000Z | src/wl_state.cpp | TobiasKarnat/Wolf4GW | a49ead44cb4a6476255e355c4c5e3e48bb7f1d55 | [
"Unlicense"
] | null | null | null | src/wl_state.cpp | TobiasKarnat/Wolf4GW | a49ead44cb4a6476255e355c4c5e3e48bb7f1d55 | [
"Unlicense"
] | 2 | 2018-09-08T08:30:38.000Z | 2019-03-24T18:10:52.000Z | // WL_STATE.C
/*
=============================================================================
LOCAL CONSTANTS
=============================================================================
*/
/*
===========================================================... | 28.339726 | 101 | 0.357284 | TobiasKarnat |
8d2bd7d6a9dfa98cf123dc64d71bb01ca37b79d1 | 26,078 | cpp | C++ | editor/gui/src/renderersettingsdialog.cpp | lizardkinger/blacksun | 0119948726d2a057c13d208044c7664a8348a1ea | [
"Linux-OpenIB"
] | null | null | null | editor/gui/src/renderersettingsdialog.cpp | lizardkinger/blacksun | 0119948726d2a057c13d208044c7664a8348a1ea | [
"Linux-OpenIB"
] | null | null | null | editor/gui/src/renderersettingsdialog.cpp | lizardkinger/blacksun | 0119948726d2a057c13d208044c7664a8348a1ea | [
"Linux-OpenIB"
] | null | null | null | /***************************************************************************
* Copyright (C) 2006 by The Hunter *
* hunter@localhost *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the ter... | 44.884682 | 153 | 0.685904 | lizardkinger |
8d2d7a1a6f9488a109c822e7b22271da217db9a9 | 1,621 | cc | C++ | src/exceptions.cc | websms-com/websmscom-cpp | a9214bd7dcc02c0e058a345e353d7417597f77c9 | [
"MIT"
] | null | null | null | src/exceptions.cc | websms-com/websmscom-cpp | a9214bd7dcc02c0e058a345e353d7417597f77c9 | [
"MIT"
] | null | null | null | src/exceptions.cc | websms-com/websmscom-cpp | a9214bd7dcc02c0e058a345e353d7417597f77c9 | [
"MIT"
] | null | null | null | /**
* Copyright (C) 2012, sms.at mobile internet services gmbh
*
* @author Markus Opitz
*/
#include <websms/exceptions.h>
#include <websms/misc.h>
namespace websms {
Exception::Exception(const char* message)
: message_(Strdup(message)),
error_code_(0) {
}
Exception::Exception(const char* message, int ... | 21.051948 | 79 | 0.70512 | websms-com |
8d2f0cb539e2222afc2dc16dd34a35133ded3e76 | 787 | cpp | C++ | Core/Driver/vf_drv_clr/vf_task_clr.cpp | sartrey/vapula | 557dff9cf526eee6fe5b787f25c80a972c1451de | [
"Apache-2.0"
] | 1 | 2019-04-17T14:45:49.000Z | 2019-04-17T14:45:49.000Z | Core/Driver/vf_drv_clr/vf_task_clr.cpp | sartrey/vapula | 557dff9cf526eee6fe5b787f25c80a972c1451de | [
"Apache-2.0"
] | null | null | null | Core/Driver/vf_drv_clr/vf_task_clr.cpp | sartrey/vapula | 557dff9cf526eee6fe5b787f25c80a972c1451de | [
"Apache-2.0"
] | null | null | null | #include "vf_driver_clr.h"
#include "vf_task_clr.h"
#include "vf_library_clr.h"
#include "vf_stack.h"
TaskCLR::TaskCLR()
{
_Method = null;
}
TaskCLR::~TaskCLR()
{
}
pcstr TaskCLR::GetHandle()
{
LibraryCLR* library = (LibraryCLR*)_Method->GetLibrary();
return library->GetHandle();
}
bool TaskCLR::Bind(Method* met... | 17.108696 | 58 | 0.682338 | sartrey |
8d311bb4e267e2cbd7a1ea5b1468dbe911461477 | 769 | hpp | C++ | src/strings.hpp | Schumbi/flaschengeist | ffed5c2a858d77dd2216d2a124c2a0c5a089a924 | [
"MIT"
] | null | null | null | src/strings.hpp | Schumbi/flaschengeist | ffed5c2a858d77dd2216d2a124c2a0c5a089a924 | [
"MIT"
] | null | null | null | src/strings.hpp | Schumbi/flaschengeist | ffed5c2a858d77dd2216d2a124c2a0c5a089a924 | [
"MIT"
] | null | null | null | #ifndef MAKELIGHT_STRINGS_H
#define MAKELIGHT_STRINGS_H
#include <Arduino.h>
// ab in PROGMEM damit Todo
String Response = "";
String html_anfang = "<!DOCTYPE html>\r\n<html>\r\n\
<head>\r\n<meta content=\"text/html; charset=ISO-8859-1\" http-equiv=\"content-type\">\r\n\
<title>WebSchalter</title>\r\n<body><p>";
St... | 32.041667 | 178 | 0.668401 | Schumbi |
8d3708e500f2bf0f134fd1b9dac83abf5b42093e | 1,831 | hpp | C++ | jobin/worker.hpp | Marcos30004347/jobin | 40eec7bf9579002426320253eae6eaaea6b50d10 | [
"Apache-2.0"
] | 2 | 2020-09-30T05:12:09.000Z | 2020-10-12T23:40:32.000Z | jobin/worker.hpp | Marcos30004347/Jobin | 40eec7bf9579002426320253eae6eaaea6b50d10 | [
"Apache-2.0"
] | null | null | null | jobin/worker.hpp | Marcos30004347/Jobin | 40eec7bf9579002426320253eae6eaaea6b50d10 | [
"Apache-2.0"
] | null | null | null | #ifndef JOBIN_WORKER_H
#define JOBIN_WORKER_H
#include "job.hpp"
#include "thread.hpp"
class worker;
thread_local static worker* current_worker = nullptr;
class worker {
friend void return_to_worker();
private:
/**
* handler of the worker.
*/
void(*handler)(void*);
/**
* voidless po... | 17.776699 | 75 | 0.572911 | Marcos30004347 |
8d39d3a50cf21b640e310dc9cfb7d49ead41b4d4 | 38,613 | cpp | C++ | src/math_implementation_1.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 7 | 2017-07-12T11:15:54.000Z | 2021-10-29T18:33:33.000Z | src/math_implementation_1.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 18 | 2017-05-16T03:48:45.000Z | 2022-03-16T19:51:26.000Z | src/math_implementation_1.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 1 | 2018-08-02T09:05:08.000Z | 2018-08-02T09:05:08.000Z | // The current file is licensed under the license terms found in the main header file "calculator.h".
// For additional information refer to the file "calculator.h".
#include "math_extra_finite_groups_implementation.h"
#include "general_lists.h"
#include "math_general.h"
#include "math_extra_universal_enveloping.h"
#in... | 39.889463 | 149 | 0.696553 | tmilev |
8d3a264b07bc6b94d19707d71b211d5012035dac | 307 | cpp | C++ | tuan_5/main.cpp | thuanpham2311/thuc-hanh-nhap-mon-cau-truc-du-lieu | 04f73c98895e88b1c36b6cfc48da49cb7cec8cf4 | [
"Unlicense"
] | null | null | null | tuan_5/main.cpp | thuanpham2311/thuc-hanh-nhap-mon-cau-truc-du-lieu | 04f73c98895e88b1c36b6cfc48da49cb7cec8cf4 | [
"Unlicense"
] | 1 | 2021-11-29T04:37:17.000Z | 2021-11-29T04:37:17.000Z | tuan_5/main.cpp | thuanpham2311/thuc-hanh-nhap-mon-cau-truc-du-lieu | 04f73c98895e88b1c36b6cfc48da49cb7cec8cf4 | [
"Unlicense"
] | null | null | null | #include "header.h"
int main() {
Nodeptr danhSachSinhVien;
nhapDanhSachSinhVien(danhSachSinhVien);
xuatDanhSachSinhVien(danhSachSinhVien);
// xoaDau(danhSachSinhVien);
xoaCuoi(danhSachSinhVien);
xuatDanhSachSinhVien(danhSachSinhVien);
timSinhVienBangMa(danhSachSinhVien, s);
return 0;
}
| 19.1875 | 41 | 0.775244 | thuanpham2311 |
8d3fc7d747c76a2e2388db764fc4bbdf8f8dcc7c | 62,446 | cpp | C++ | src/skel/glfw/glfw.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | 2 | 2021-03-24T22:11:27.000Z | 2021-05-07T06:51:04.000Z | src/skel/glfw/glfw.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | src/skel/glfw/glfw.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | #if defined RW_GL3 && !defined LIBRW_SDL2
#ifdef _WIN32
#include <shlobj.h>
#include <basetsd.h>
#include <mmsystem.h>
#include <regstr.h>
#include <shellapi.h>
#include <windowsx.h>
DWORD _dwOperatingSystemVersion;
#include "resource.h"
#else
long _dwOperatingSystemVersion;
#ifndef __APPLE__
#include <sys/sysinfo.h>... | 25.058587 | 170 | 0.677081 | gameblabla |
1d2ad9a8b2c8b8d69a051d12971d181f678bf912 | 16,284 | cc | C++ | src/4txn/txn_local.cc | cflaviu/upscaledb | 2d9aec05fd5c32e12115eed37695c828faac5472 | [
"Apache-2.0"
] | 350 | 2015-11-05T00:49:19.000Z | 2022-03-23T16:27:36.000Z | src/4txn/txn_local.cc | veloman-yunkan/upscaledb | 80d01b843719d5ca4c6fdfcf474fa0d66cf877e6 | [
"Apache-2.0"
] | 71 | 2015-11-05T19:26:57.000Z | 2021-08-20T14:52:21.000Z | src/4txn/txn_local.cc | veloman-yunkan/upscaledb | 80d01b843719d5ca4c6fdfcf474fa0d66cf877e6 | [
"Apache-2.0"
] | 55 | 2015-11-04T15:09:16.000Z | 2021-12-23T20:45:24.000Z | /*
* Copyright (C) 2005-2017 Christoph Rupp (chris@crupp.de).
*
* 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 ... | 24.635401 | 80 | 0.626873 | cflaviu |
1d2d72f6e0343e754981f03119ee091631eba3cd | 269 | cpp | C++ | shared/scene.cpp | industry-advance/nin10kit | dbf81c62c0fa2f544cfd22b1f7d008a885c2b589 | [
"Apache-2.0"
] | 45 | 2015-03-26T17:14:55.000Z | 2022-03-29T20:27:32.000Z | shared/scene.cpp | industry-advance/nin10kit | dbf81c62c0fa2f544cfd22b1f7d008a885c2b589 | [
"Apache-2.0"
] | 35 | 2015-01-06T16:16:37.000Z | 2021-06-19T05:03:13.000Z | shared/scene.cpp | industry-advance/nin10kit | dbf81c62c0fa2f544cfd22b1f7d008a885c2b589 | [
"Apache-2.0"
] | 5 | 2017-03-26T04:48:02.000Z | 2020-07-10T22:55:49.000Z | #include "scene.hpp"
void Scene::WriteData(std::ostream& file) const
{
for (const auto& image : images)
image->WriteData(file);
}
void Scene::WriteExport(std::ostream& file) const
{
for (const auto& image : images)
image->WriteExport(file);
}
| 19.214286 | 49 | 0.650558 | industry-advance |
1d2f0fce6e5ff379b5038ce73c4eb0149c51bfb7 | 6,601 | cpp | C++ | tests/main.cpp | lukka/yagbe | 8f66d55f455e8a13db84cd521eabb498a1165f44 | [
"MIT"
] | 1 | 2018-06-10T14:45:53.000Z | 2018-06-10T14:45:53.000Z | tests/main.cpp | Kaosumaru/yagbe | 13a2dea9dd50ae4b548bec3704fdc88c2a48d956 | [
"MIT"
] | 1 | 2020-02-16T02:50:36.000Z | 2020-02-24T20:50:38.000Z | tests/main.cpp | lukka/yagbe | 8f66d55f455e8a13db84cd521eabb498a1165f44 | [
"MIT"
] | 1 | 2020-02-16T00:36:38.000Z | 2020-02-16T00:36:38.000Z | #include <iostream>
#include <stdexcept>
#include "vm/context.hpp"
#include "vm/instructions.hpp"
#include "vm/instructions_map.hpp"
#ifndef _MSC_VER
#define lest_FEATURE_COLOURISE 1
#endif
#include "lest.hpp"
using namespace std;
using namespace yagbe;
using namespace yagbe::instructions;
using namespace yagbe::i... | 18.542135 | 118 | 0.5787 | lukka |
1d33ff8649bbd88b5afe5b268068ceec416cece4 | 7,936 | cc | C++ | examples/external/OpenMesh/include/OpenMesh/Tools/Smoother/JacobiLaplaceSmootherT.cc | zhangxaochen/Opt | 7f1af802bfc84cc9ef1adb9facbe4957078f529a | [
"MIT"
] | 260 | 2017-03-02T19:57:51.000Z | 2022-01-21T03:52:03.000Z | examples/external/OpenMesh/include/OpenMesh/Tools/Smoother/JacobiLaplaceSmootherT.cc | zhangxaochen/Opt | 7f1af802bfc84cc9ef1adb9facbe4957078f529a | [
"MIT"
] | 102 | 2017-03-03T00:42:56.000Z | 2022-03-30T14:15:20.000Z | examples/external/OpenMesh/include/OpenMesh/Tools/Smoother/JacobiLaplaceSmootherT.cc | zhangxaochen/Opt | 7f1af802bfc84cc9ef1adb9facbe4957078f529a | [
"MIT"
] | 71 | 2017-03-02T20:22:33.000Z | 2022-01-02T03:49:04.000Z | /* ========================================================================= *
* *
* OpenMesh *
* Copyright (c) 2001-2015, RWTH-Aachen University *
* ... | 39.879397 | 121 | 0.455771 | zhangxaochen |
1d35be5672c49d86924c7d34911e267133d8ba20 | 1,327 | hpp | C++ | src/3rd party/boost/boost/preprocessor/facilities/is_empty_or_1.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 8 | 2016-01-25T20:18:51.000Z | 2019-03-06T07:00:04.000Z | src/3rd party/boost/boost/preprocessor/facilities/is_empty_or_1.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | null | null | null | src/3rd party/boost/boost/preprocessor/facilities/is_empty_or_1.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 3 | 2016-02-14T01:20:43.000Z | 2021-02-03T11:19:11.000Z | # /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2003. Permission to copy, use, *
# * modify, sell, and distribute this software is granted provided *
... | 41.46875 | 80 | 0.50942 | OLR-xray |
1d386eab0ba517deef2b5b0fc69d05e864e12f08 | 4,035 | cpp | C++ | src_ana/bdcs_effs.cpp | serjinio/thesis_ana | 633a61dee56cf2cf4dcb67997ac87338537fb578 | [
"MIT"
] | null | null | null | src_ana/bdcs_effs.cpp | serjinio/thesis_ana | 633a61dee56cf2cf4dcb67997ac87338537fb578 | [
"MIT"
] | null | null | null | src_ana/bdcs_effs.cpp | serjinio/thesis_ana | 633a61dee56cf2cf4dcb67997ac87338537fb578 | [
"MIT"
] | null | null | null |
#include <fstream>
#include "TROOT.h"
#include "cli.hpp"
#include "init_ds.hpp"
#include "consts.hpp"
#include "csalg.hpp"
#include "drawing.hpp"
#include "scattyield.hpp"
#include "treewalk.hpp"
#include "cuts_conf.hpp"
#include "rootscript.hpp"
static s13::misc::CliOptions cli_opts;
using ElaCuts = s13::ana::E... | 23.596491 | 86 | 0.626022 | serjinio |
1d3d2b5203ebfcf3410a21301102296d397ec443 | 1,014 | hpp | C++ | include/kip/xml/qname.hpp | kei10in/kip | 23d83ffa4f40431ef8bd6983e928ae889bfc3872 | [
"MIT"
] | null | null | null | include/kip/xml/qname.hpp | kei10in/kip | 23d83ffa4f40431ef8bd6983e928ae889bfc3872 | [
"MIT"
] | null | null | null | include/kip/xml/qname.hpp | kei10in/kip | 23d83ffa4f40431ef8bd6983e928ae889bfc3872 | [
"MIT"
] | null | null | null | #ifndef KIP_XML_QNAME_HPP_
#define KIP_XML_QNAME_HPP_
#include <string>
#include "kip/hash-combine.hpp"
namespace kip {
namespace xml {
struct qname {
std::string name;
std::string url;
qname() {}
qname(std::string const& name, std::string const& url)
: name(name)
, url(url)
{}
bool empty() c... | 16.095238 | 60 | 0.627219 | kei10in |
1d3e23ead9343bebdf8cf053fe8fbe0baa32ce5b | 11,725 | cpp | C++ | samples/threat_level/src/PlayerWeaponsSystem.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | samples/threat_level/src/PlayerWeaponsSystem.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | samples/threat_level/src/PlayerWeaponsSystem.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2017
http://trederia.blogspot.com
crogine test application - Zlib license.
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 us... | 34.689349 | 142 | 0.574584 | fallahn |
1d42f60b9415a3a67e89a862132cbebb7635c888 | 1,096 | cpp | C++ | Dia1/G-ClockSolitaire.cpp | pauolivares/ICPCCL2018 | 72708a14ff5c1911ab87f7b758f131603603c808 | [
"Apache-2.0"
] | null | null | null | Dia1/G-ClockSolitaire.cpp | pauolivares/ICPCCL2018 | 72708a14ff5c1911ab87f7b758f131603603c808 | [
"Apache-2.0"
] | null | null | null | Dia1/G-ClockSolitaire.cpp | pauolivares/ICPCCL2018 | 72708a14ff5c1911ab87f7b758f131603603c808 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
bool solve(vector<char> &cards,vector<int> &acum, int pos, int l){
if(l==52) return true;
if(acum[pos]==4) return false;
char carta = cards[4*pos + acum[pos]];
acum[pos]++;
if(carta>='2' && carta<='9'){
return solve(cards,acum,carta-'1',l+1);
}
if(carta==... | 18.896552 | 66 | 0.514599 | pauolivares |
1d446f6f4d917f5e087e01c85c22dbef65af8aaf | 699 | ipp | C++ | ThirdParty/oglplus-develop/implement/oglplus/link_error.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | ThirdParty/oglplus-develop/implement/oglplus/link_error.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | ThirdParty/oglplus-develop/implement/oglplus/link_error.ipp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | /**
* @file oglplus/link_error.ipp
* @brief Implementation of
*
* @author Matus Chochlik
*
* Copyright 2010-2013 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)
*/
namespace oglplus {
... | 20.558824 | 74 | 0.738197 | vif |
1d45394ec14a2e0211876d5487ec88b544a2cd36 | 1,705 | cxx | C++ | Modules/Logger/TestingLog/TestAlgorithm.cxx | Hurna/Hurna-Lib | 61c267fc6ccf617e92560a84800f6a719cc5c6c8 | [
"MIT"
] | 2 | 2019-03-29T21:23:02.000Z | 2019-04-02T19:13:32.000Z | Modules/Logger/TestingLog/TestAlgorithm.cxx | Hurna/Hurna-Lib | 61c267fc6ccf617e92560a84800f6a719cc5c6c8 | [
"MIT"
] | null | null | null | Modules/Logger/TestingLog/TestAlgorithm.cxx | Hurna/Hurna-Lib | 61c267fc6ccf617e92560a84800f6a719cc5c6c8 | [
"MIT"
] | null | null | null | /*===========================================================================================================
*
* HUL - Hurna Lib
*
* Copyright (c) Michael Jeulin-Lagarrigue
*
* Licensed under the MIT License, you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... | 37.065217 | 109 | 0.615836 | Hurna |
1d492b9ab4cdad486d4dfc27fa0e9bcfc991a622 | 2,222 | hpp | C++ | src/dsp/BiquadFilter.hpp | flyingLowSounds/LRTRack | 20121c1232e29a26d527134de13a0a3d3d065f52 | [
"BSD-3-Clause"
] | null | null | null | src/dsp/BiquadFilter.hpp | flyingLowSounds/LRTRack | 20121c1232e29a26d527134de13a0a3d3d065f52 | [
"BSD-3-Clause"
] | null | null | null | src/dsp/BiquadFilter.hpp | flyingLowSounds/LRTRack | 20121c1232e29a26d527134de13a0a3d3d065f52 | [
"BSD-3-Clause"
] | null | null | null | /* *\
** __ ___ ______ **
** / / / _ \/_ __/ **
** / /__/ , _/ / / Lindenberg **
** /____/_/|_| /_/ R... | 30.027027 | 78 | 0.382988 | flyingLowSounds |
1d57552649962a2385765a987376e50840a60437 | 6,617 | cpp | C++ | src/Math/Vector4d.cpp | bodguy/CrossPlatform | c8fb740456f8c9b0e6af495958d6b5d6c2d7946f | [
"Apache-2.0"
] | 6 | 2018-07-20T00:59:54.000Z | 2021-08-21T15:55:48.000Z | src/Math/Vector4d.cpp | bodguy/CrossPlatform | c8fb740456f8c9b0e6af495958d6b5d6c2d7946f | [
"Apache-2.0"
] | 9 | 2018-07-17T15:03:22.000Z | 2019-10-05T01:02:31.000Z | src/Math/Vector4d.cpp | bodguy/CrossPlatform | c8fb740456f8c9b0e6af495958d6b5d6c2d7946f | [
"Apache-2.0"
] | 1 | 2019-10-27T01:54:38.000Z | 2019-10-27T01:54:38.000Z | // Copyright (C) 2017 by bodguy
// This code is licensed under Apache 2.0 license (see LICENSE.md for details)
#include "Vector4d.h"
#include <algorithm> // until c++11 for std::swap
#include <cmath>
#include <utility> // since c++11 for std::swap
#include "Math.h"
#include "Vector2d.h"
#include "Vector3d.h"
name... | 27.686192 | 183 | 0.598156 | bodguy |
1d58a0e2d444eca04f97fa660467b8921a3386aa | 13,606 | cpp | C++ | android-31/android/provider/DocumentsProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/provider/DocumentsProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/provider/DocumentsProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JArray.hpp"
#include "../content/ContentValues.hpp"
#include "../content/Context.hpp"
#include "../content/IntentSender.hpp"
#include "../content/pm/ProviderInfo.hpp"
#include "../content/res/AssetFileDescriptor.hpp"
#include "../graphics/Point.hpp"
#include "../net/Uri.hpp"
#include "../os/Bundle.hpp"
... | 31.422633 | 189 | 0.721961 | YJBeetle |
1d5d9cede9f7f9bf6df2da82d35587b759010128 | 836 | cpp | C++ | Array/stock.cpp | RYzen-009/DSA | 0f7f9d2c7f7452667329f7a43b3eb4110d5c174c | [
"MIT"
] | null | null | null | Array/stock.cpp | RYzen-009/DSA | 0f7f9d2c7f7452667329f7a43b3eb4110d5c174c | [
"MIT"
] | null | null | null | Array/stock.cpp | RYzen-009/DSA | 0f7f9d2c7f7452667329f7a43b3eb4110d5c174c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
//This is a O(N*N) Solution
int stock(int price[],int start , int end)
{
if(start >= end)
return 0;
int profit=0,curr_profit=0;
for(int i=start;i<=end;i++)
{
for(int j=i+1;j<=end;j++)
{
if(price[j]>price[i])
{
curr_pro... | 18.173913 | 92 | 0.511962 | RYzen-009 |
1d5e5894b13b332ef7c8190174dcd6ed61f24b5a | 8,694 | cpp | C++ | SimCenterUQInputSurrogate.cpp | bhajay/quoFEM | 23e57fd85d28468379906eed59aaa54b77604a0c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | SimCenterUQInputSurrogate.cpp | bhajay/quoFEM | 23e57fd85d28468379906eed59aaa54b77604a0c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | SimCenterUQInputSurrogate.cpp | bhajay/quoFEM | 23e57fd85d28468379906eed59aaa54b77604a0c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null |
/* *****************************************************************************
Copyright (c) 2016-2017, The Regents of the University of California (Regents).
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions ar... | 29.773973 | 151 | 0.714286 | bhajay |
1d612ac6828828b43ba4d4d62f797163f66801c6 | 20,916 | cpp | C++ | tools/indextool.cpp | Arnaud-de-Grandmaison-ARM/tarmac-trace-utilities | 5428f72485531be0c4482768b4923640e7ada397 | [
"Apache-2.0"
] | 1 | 2021-07-03T23:54:51.000Z | 2021-07-03T23:54:51.000Z | tools/indextool.cpp | Arnaud-de-Grandmaison-ARM/tarmac-trace-utilities | 5428f72485531be0c4482768b4923640e7ada397 | [
"Apache-2.0"
] | null | null | null | tools/indextool.cpp | Arnaud-de-Grandmaison-ARM/tarmac-trace-utilities | 5428f72485531be0c4482768b4923640e7ada397 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016-2021 Arm Limited. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 32.129032 | 80 | 0.525961 | Arnaud-de-Grandmaison-ARM |
1d649dac6a42226fa94ae240b8186b2955d1311a | 313 | cpp | C++ | srcgen/readme_gen.t.cpp | oleg-rabaev/cppa2z | f6ca795f5817901b075bf5b7fb43bd0f5b85f702 | [
"BSL-1.0"
] | 62 | 2016-10-05T11:31:50.000Z | 2021-09-07T06:20:40.000Z | srcgen/readme_gen.t.cpp | oleg-rabaev/cppa2z | f6ca795f5817901b075bf5b7fb43bd0f5b85f702 | [
"BSL-1.0"
] | 29 | 2021-02-14T20:12:46.000Z | 2021-05-09T17:56:27.000Z | srcgen/readme_gen.t.cpp | oleg-rabaev/cppa2z | f6ca795f5817901b075bf5b7fb43bd0f5b85f702 | [
"BSL-1.0"
] | 1 | 2021-01-31T13:40:39.000Z | 2021-01-31T13:40:39.000Z | #include <catch.hpp>
#include <readme_gen.h>
#include <iostream>
#include <fstream>
using namespace std;
namespace srcgen {
TEST_CASE( "readme_gen.generate" ) {
ofstream fout("README.md");
auto& out = fout;
//auto& out = cout;
readme_gen gen(out);
gen.generate();
}
} // namespace srcgen
| 15.65 | 36 | 0.654952 | oleg-rabaev |
1d68103ce4511c1b958913c200f8ae26f60f6791 | 2,212 | cpp | C++ | raygame/Grain.cpp | DynashEtvala/SandGame | 16b286533c2f8f6a20ebead2475e2c70d7d7cd56 | [
"MIT"
] | null | null | null | raygame/Grain.cpp | DynashEtvala/SandGame | 16b286533c2f8f6a20ebead2475e2c70d7d7cd56 | [
"MIT"
] | null | null | null | raygame/Grain.cpp | DynashEtvala/SandGame | 16b286533c2f8f6a20ebead2475e2c70d7d7cd56 | [
"MIT"
] | null | null | null | #include "Grain.h"
#include "MatManager.h"
Grain::Grain(int X, int Y) : GMaterial(X, Y)
{
grain = true;
density = 9;
}
Grain::~Grain()
{}
void Grain::Update(GMaterial*** matList, int bottom, int side, MatManager& m)
{
if (CanUpdate())
{
if (posY == bottom - 1)
{
m.PrepChange(posX, posY, AIR);
}
else... | 36.866667 | 382 | 0.588156 | DynashEtvala |
1d69613537efd25d9bc893cf161343529d7c5984 | 5,409 | cpp | C++ | test/entity_system/aggregation_test.cpp | sheiny/ophidian | 037ae44357e0093d60b379513615b467c1f841cf | [
"Apache-2.0"
] | 40 | 2016-04-22T14:42:42.000Z | 2021-05-25T23:14:23.000Z | test/entity_system/aggregation_test.cpp | sheiny/ophidian | 037ae44357e0093d60b379513615b467c1f841cf | [
"Apache-2.0"
] | 64 | 2016-04-28T21:10:47.000Z | 2017-11-07T11:33:17.000Z | test/entity_system/aggregation_test.cpp | eclufsc/openeda | 037ae44357e0093d60b379513615b467c1f841cf | [
"Apache-2.0"
] | 25 | 2016-04-18T19:31:48.000Z | 2021-05-05T15:50:41.000Z | #include <catch.hpp>
#include <ophidian/entity_system/Aggregation.h>
using namespace ophidian::entity_system;
class EntityA : public EntityBase
{
public:
using EntityBase::EntityBase;
};
class EntityB : public EntityBase
{
public:
using EntityBase::EntityBase;
};
TEST_CASE("Aggregation: no ... | 30.908571 | 126 | 0.66944 | sheiny |
1d6d9c273d5f7d9846b20218c85c3fc9f4fc1cda | 116 | cc | C++ | code/cmake_gtest/hello_test.cc | iusyu/c_practic | 7428b8d37df09cb27bc9d66d1e34c81a973b6119 | [
"MIT"
] | null | null | null | code/cmake_gtest/hello_test.cc | iusyu/c_practic | 7428b8d37df09cb27bc9d66d1e34c81a973b6119 | [
"MIT"
] | null | null | null | code/cmake_gtest/hello_test.cc | iusyu/c_practic | 7428b8d37df09cb27bc9d66d1e34c81a973b6119 | [
"MIT"
] | null | null | null | #include<gtest/gtest.h>
TEST(HelloTest, BaseAssertions) {
EXPECT_STRNE("Hello", "World");
EXPECT_EQ(4*7, 28);
}
| 14.5 | 33 | 0.689655 | iusyu |
1d6f00d0db2a9d242e151aace57d04d195111936 | 855 | cxx | C++ | Plugins/Mipf_Plugin_ModelExporter/Mipf_Plugin_ModelExporterActivator.cxx | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2017-04-13T06:01:49.000Z | 2019-12-04T07:23:53.000Z | Plugins/Mipf_Plugin_ModelExporter/Mipf_Plugin_ModelExporterActivator.cxx | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-10-27T02:00:44.000Z | 2017-10-27T02:00:44.000Z | Plugins/Mipf_Plugin_ModelExporter/Mipf_Plugin_ModelExporterActivator.cxx | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-09-06T01:59:07.000Z | 2019-12-04T07:23:54.000Z | #include "Mipf_Plugin_ModelExporterActivator.h"
#include "ModelExporterView.h"
#include "Utils/PluginFactory.h"
QF_API QF::IQF_Activator* QF::QF_CreatePluginActivator(QF::IQF_Main* pMain)
{
QF::IQF_Activator* pActivator = new Mipf_Plugin_ModelExporter_Activator(pMain);
//assert(pActivator);
return pActiv... | 26.71875 | 114 | 0.803509 | linson7017 |
1d700e704746fe72855cd291bcb6c139df468253 | 15,418 | cpp | C++ | src/BossBallos.cpp | haya3218/cse2-tweaks | 48bccbd58240942ed5f5b288a90ef092820698c0 | [
"MIT"
] | null | null | null | src/BossBallos.cpp | haya3218/cse2-tweaks | 48bccbd58240942ed5f5b288a90ef092820698c0 | [
"MIT"
] | null | null | null | src/BossBallos.cpp | haya3218/cse2-tweaks | 48bccbd58240942ed5f5b288a90ef092820698c0 | [
"MIT"
] | null | null | null | // THIS IS DECOMPILED PROPRIETARY CODE - USE AT YOUR OWN RISK.
//
// The original code belongs to Daisuke "Pixel" Amaya.
//
// Modifications and custom code are under the MIT licence.
// See LICENCE.txt for details.
#include "BossBallos.h"
#include <stddef.h>
#include "WindowsWrapper.h"
#include "Boss.h"
#include "... | 19.248439 | 116 | 0.530354 | haya3218 |
1d75d52fa51962008828179d04899833ebe4f7d2 | 13,646 | cpp | C++ | nlsCppSdk/jni/jniSpeechRecognizer.cpp | kaimingguo/alibabacloud-nls-cpp-sdk | e624eefd2f87c56e4340c35a834ebd14b96bb19c | [
"Apache-2.0"
] | 26 | 2019-06-02T15:22:01.000Z | 2022-03-11T06:54:23.000Z | nlsCppSdk/jni/jniSpeechRecognizer.cpp | kaimingguo/alibabacloud-nls-cpp-sdk | e624eefd2f87c56e4340c35a834ebd14b96bb19c | [
"Apache-2.0"
] | 8 | 2019-06-02T15:47:11.000Z | 2022-01-19T06:51:55.000Z | nlsCppSdk/jni/jniSpeechRecognizer.cpp | kaimingguo/alibabacloud-nls-cpp-sdk | e624eefd2f87c56e4340c35a834ebd14b96bb19c | [
"Apache-2.0"
] | 18 | 2019-06-02T13:00:17.000Z | 2022-01-21T13:12:29.000Z | #include <jni.h>
#include <string>
#include <cstdlib>
#include <vector>
#include "nlsClient.h"
#include "nlsEvent.h"
#include "sr/speechRecognizerRequest.h"
#include "log.h"
#include "NlsRequestWarpper.h"
#include "native-lib.h"
using namespace AlibabaNls;
using namespace AlibabaNls::utility;
extern "C" {
JNIEXPORT jl... | 40.135294 | 153 | 0.785798 | kaimingguo |
1d75f9f0228674e6a665780321daf37f8f4b8afd | 1,983 | cpp | C++ | reverse_pair_leetcode.cpp | shivamkrs89/Sorting_problems | 4451103f52545df752b567fcbb575eb7e29947a6 | [
"MIT"
] | 1 | 2021-05-27T14:56:48.000Z | 2021-05-27T14:56:48.000Z | reverse_pair_leetcode.cpp | shivamkrs89/Sorting_problems | 4451103f52545df752b567fcbb575eb7e29947a6 | [
"MIT"
] | null | null | null | reverse_pair_leetcode.cpp | shivamkrs89/Sorting_problems | 4451103f52545df752b567fcbb575eb7e29947a6 | [
"MIT"
] | null | null | null | Given an integer array nums, return the number of reverse pairs in the array.
A reverse pair is a pair (i, j) where 0 <= i < j < nums.length and nums[i] > 2 * nums[j].
Example 1:
Input: nums = [1,3,2,3,1]
Output: 2
Example 2:
Input: nums = [2,4,3,5,1]
Output: 3
Constraints:
1 <= nums.length <= 5 * 104
... | 18.192661 | 89 | 0.413011 | shivamkrs89 |
1d76ce7ac832293400bad337f5761086931d2f35 | 736 | cpp | C++ | Recursion/ReverseAstackusingRecursion.cpp | saurav-prakash/CB_DS_ALGO | 3f3133b31dbbda7d5229cd6c72c378ed08e35e6f | [
"MIT"
] | null | null | null | Recursion/ReverseAstackusingRecursion.cpp | saurav-prakash/CB_DS_ALGO | 3f3133b31dbbda7d5229cd6c72c378ed08e35e6f | [
"MIT"
] | null | null | null | Recursion/ReverseAstackusingRecursion.cpp | saurav-prakash/CB_DS_ALGO | 3f3133b31dbbda7d5229cd6c72c378ed08e35e6f | [
"MIT"
] | 2 | 2018-10-28T13:31:41.000Z | 2018-10-31T02:37:42.000Z | https://www.quora.com/How-can-we-reverse-a-stack-by-using-only-push-and-pop-operations-without-using-any-secondary-DS
#include<iostream>
#include<stack>
using namespace std;
stack<int> s;
int BottomInsert(int x){
if(s.size()==0) s.push(x);
else{
int a = s.top();
s.pop();
BottomInsert(x... | 18.4 | 117 | 0.480978 | saurav-prakash |
1d798bfcd952ec393825f1afa2423c455c5143bf | 5,533 | hh | C++ | dune/xt/grid/functors/interfaces.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 2 | 2020-02-08T04:08:52.000Z | 2020-08-01T18:54:14.000Z | dune/xt/grid/functors/interfaces.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 35 | 2019-08-19T12:06:35.000Z | 2020-03-27T08:20:39.000Z | dune/xt/grid/functors/interfaces.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:34.000Z | 2020-02-08T04:09:34.000Z | // This file is part of the dune-xt project:
// https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt
// Copyright 2009-2021 dune-xt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (h... | 31.259887 | 119 | 0.711007 | dune-community |
1d7b92d30ae02e61f242523442784963f4e61ca4 | 2,999 | cpp | C++ | src/net/ip4/icmpv4.cpp | pidEins/IncludeOS | b92339164a2ba61f03ca9a940b1e9a0907c08bea | [
"Apache-2.0"
] | 2 | 2017-04-28T17:29:25.000Z | 2017-05-03T07:36:22.000Z | src/net/ip4/icmpv4.cpp | lefticus/IncludeOS | b92339164a2ba61f03ca9a940b1e9a0907c08bea | [
"Apache-2.0"
] | null | null | null | src/net/ip4/icmpv4.cpp | lefticus/IncludeOS | b92339164a2ba61f03ca9a940b1e9a0907c08bea | [
"Apache-2.0"
] | 2 | 2017-05-01T18:16:28.000Z | 2019-11-15T19:48:01.000Z | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may... | 32.247312 | 93 | 0.683228 | pidEins |
1d7f74ad7e40faa7a119dd70081c07dfd0ec00d4 | 11,275 | cpp | C++ | contrib/groff/src/utils/addftinfo/guess.cpp | ivadasz/DragonFlyBSD | 460227f342554313be3c7728ff679dd4a556cce9 | [
"BSD-3-Clause"
] | 3 | 2017-03-06T14:12:57.000Z | 2019-11-23T09:35:10.000Z | contrib/groff/src/utils/addftinfo/guess.cpp | jorisgio/DragonFlyBSD | d37cc9027d161f3e36bf2667d32f41f87606b2ac | [
"BSD-3-Clause"
] | null | null | null | contrib/groff/src/utils/addftinfo/guess.cpp | jorisgio/DragonFlyBSD | d37cc9027d161f3e36bf2667d32f41f87606b2ac | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
/* Copyright (C) 1989, 1990, 1991, 1992, 2009
Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
This file is part of groff.
groff 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... | 22.96334 | 72 | 0.478847 | ivadasz |
1d7f7d015cd3ec939392650f78f504b0c234e3de | 9,302 | cpp | C++ | wxMsOptionsDialog/wxMsOptionsDialog.cpp | tester0077/wxMS | da7b8aaefa7107f51b7ecab05c07c109d09f933f | [
"Zlib",
"MIT"
] | null | null | null | wxMsOptionsDialog/wxMsOptionsDialog.cpp | tester0077/wxMS | da7b8aaefa7107f51b7ecab05c07c109d09f933f | [
"Zlib",
"MIT"
] | null | null | null | wxMsOptionsDialog/wxMsOptionsDialog.cpp | tester0077/wxMS | da7b8aaefa7107f51b7ecab05c07c109d09f933f | [
"Zlib",
"MIT"
] | null | null | null | /*-----------------------------------------------------------------
* Name: wxMsOptionsDialog.cpp
* Purpose:
* Author: A. Wiegert
*
* Copyright:
* Licence: wxWidgets license
*---------------------------------------------------------------- */
/*---------------------------------------------------... | 34.579926 | 85 | 0.659966 | tester0077 |
1d83f15f2aa24f6eb63ee0484c3f2848236484a5 | 5,505 | cxx | C++ | 3rd/fltk/src/list_fonts.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 11 | 2017-09-30T12:21:55.000Z | 2021-04-29T21:31:57.000Z | 3rd/fltk/src/list_fonts.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T11:20:08.000Z | 2018-03-27T12:09:02.000Z | 3rd/fltk/src/list_fonts.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 24 | 2018-03-27T11:46:16.000Z | 2021-05-01T20:28:34.000Z | //
// "$Id: list_fonts.cxx 5556 2006-12-13 00:55:45Z spitzak $"
//
// Copyright 1998-2006 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// vers... | 35.980392 | 79 | 0.695186 | MarioHenze |
1d8a781b17462e186cc72bd38c078f3fecca5161 | 2,085 | cpp | C++ | source/ashes/renderer/D3D11Renderer/Command/Commands/D3D11CopyImageCommand.cpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | source/ashes/renderer/D3D11Renderer/Command/Commands/D3D11CopyImageCommand.cpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | source/ashes/renderer/D3D11Renderer/Command/Commands/D3D11CopyImageCommand.cpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /*
This file belongs to Ashes.
See LICENSE file in root folder.
*/
#include "Command/Commands/D3D11CopyImageCommand.hpp"
#include "Image/D3D11Image.hpp"
#include "Image/D3D11ImageView.hpp"
#include "ashesd3d11_api.hpp"
namespace ashes::d3d11
{
namespace
{
D3D11_BOX doGetSrcBox( VkImageCopy const & copyInfo )
{... | 25.426829 | 89 | 0.686331 | DragonJoker |
1d91e4e76e434ac4473d937835788a3d1703d8f2 | 1,378 | cpp | C++ | 038.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | 038.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | 038.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | /*
We are considering the concatenated product of an integer a with (1, 2, ...,
n) with n > 1, i.e. n >= 2. If a >= 10000, then 2a >= 20000. As such, the
concatenated product will have at least 10 digits. By the pigeonhole
principle, one of the digit will occur at least twice, making it non
pandigit... | 32.809524 | 105 | 0.618287 | LeeYiyuan |
1d95ef6eb38128f0002cf42c70e45e230ba12aab | 21,527 | cc | C++ | examples/uintTest/ffmpeg/ffmpeg_enc_mux_test.cc | rockchip-linux/rkmedia | 992663e9069e8426f5a71f4045666786b3bd4bcf | [
"BSD-3-Clause"
] | 23 | 2020-02-29T10:47:22.000Z | 2022-01-20T01:52:21.000Z | examples/uintTest/ffmpeg/ffmpeg_enc_mux_test.cc | rockchip-linux/rkmedia | 992663e9069e8426f5a71f4045666786b3bd4bcf | [
"BSD-3-Clause"
] | 13 | 2020-05-12T15:11:04.000Z | 2021-12-02T05:48:39.000Z | examples/uintTest/ffmpeg/ffmpeg_enc_mux_test.cc | rockchip-linux/rkmedia | 992663e9069e8426f5a71f4045666786b3bd4bcf | [
"BSD-3-Clause"
] | 19 | 2020-01-12T04:07:33.000Z | 2022-02-18T08:43:19.000Z | // Copyright 2019 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifdef NDEBUG
#undef NDEBUG
#endif
#ifndef DEBUG
#define DEBUG
#endif
#include <assert.h>
#include <fcntl.h>
#include <stdio.h>
#include ... | 32.966309 | 101 | 0.638036 | rockchip-linux |
1d9a980328700b6f6d3254e7cad32ca740d33f3c | 689 | hpp | C++ | gnet/include/net/connection.hpp | gapry/GNet | 4d63540e1f532fae1a44a97f9b2d74a6754f2513 | [
"MIT"
] | 1 | 2021-05-19T03:56:47.000Z | 2021-05-19T03:56:47.000Z | gnet/include/net/connection.hpp | gapry/GNet | 4d63540e1f532fae1a44a97f9b2d74a6754f2513 | [
"MIT"
] | null | null | null | gnet/include/net/connection.hpp | gapry/GNet | 4d63540e1f532fae1a44a97f9b2d74a6754f2513 | [
"MIT"
] | null | null | null | #pragma once
#include "net/packet.hpp"
#include "net/socket.hpp"
#include "noncopyable.hpp"
#include "platform/types.hpp"
namespace gnet {
class engine;
class connection : public noncopyable<connection> {
friend class engine;
public:
enum class status {
none,
listening,
connecting,
connected,
... | 16.404762 | 51 | 0.67344 | gapry |
1d9d30a945339fabdd63cd82a686a8c6d5c8614d | 127 | hpp | C++ | src/main.hpp | Southclaws/pawn-bcrypt | c046c3dc5c65997ae92d0c83d87fd487b69eaf23 | [
"MIT"
] | 9 | 2019-01-02T21:13:26.000Z | 2022-01-15T09:43:11.000Z | src/main.hpp | Southclaws/pawn-bcrypt | c046c3dc5c65997ae92d0c83d87fd487b69eaf23 | [
"MIT"
] | null | null | null | src/main.hpp | Southclaws/pawn-bcrypt | c046c3dc5c65997ae92d0c83d87fd487b69eaf23 | [
"MIT"
] | null | null | null | #ifndef MAIN_H
#define MAIN_H
#include "SDK/amx/amx.h"
#include "SDK/plugincommon.h"
#define BCRYPT_VERSION "v2.2.3"
#endif
| 12.7 | 31 | 0.732283 | Southclaws |
1da1a863a316357d81a85c5e5da86b93ae9e3139 | 7,729 | cpp | C++ | IPhreeqcMMS/IPhreeqc/src/phreeqcpp/nvector.cpp | usgs-coupled/webmod | 66419e3714f20a357a7db0abd84246d61c002b88 | [
"DOC"
] | null | null | null | IPhreeqcMMS/IPhreeqc/src/phreeqcpp/nvector.cpp | usgs-coupled/webmod | 66419e3714f20a357a7db0abd84246d61c002b88 | [
"DOC"
] | null | null | null | IPhreeqcMMS/IPhreeqc/src/phreeqcpp/nvector.cpp | usgs-coupled/webmod | 66419e3714f20a357a7db0abd84246d61c002b88 | [
"DOC"
] | 1 | 2020-06-04T23:27:02.000Z | 2020-06-04T23:27:02.000Z | /**************************************************************************
* *
* File : nvector.c *
* Programmers : Radu Serban, LLNL *
* Version of ... | 28.311355 | 76 | 0.514167 | usgs-coupled |
1daaeab8f7c7325dbb5d2011e0070c0dbbb5391a | 2,789 | cpp | C++ | distributions/univariate/continuous/InverseGaussianRand.cpp | aWeinzierl/RandLib | 7af0237d1902aadbf2451b7dfab02c52cf98ae87 | [
"MIT"
] | null | null | null | distributions/univariate/continuous/InverseGaussianRand.cpp | aWeinzierl/RandLib | 7af0237d1902aadbf2451b7dfab02c52cf98ae87 | [
"MIT"
] | null | null | null | distributions/univariate/continuous/InverseGaussianRand.cpp | aWeinzierl/RandLib | 7af0237d1902aadbf2451b7dfab02c52cf98ae87 | [
"MIT"
] | null | null | null | #include "InverseGaussianRand.h"
#include "NormalRand.h"
#include "UniformRand.h"
InverseGaussianRand::InverseGaussianRand(double mean, double shape)
{
SetParameters(mean, shape);
}
String InverseGaussianRand::Name() const
{
return "Inverse-Gaussian(" + toStringWithPrecision(GetMean()) + ", " + toStringWithPr... | 23.049587 | 115 | 0.59663 | aWeinzierl |
1dade2debcc8231dc0676d580e1b76419631cd4f | 2,192 | cpp | C++ | Functions/FunctionAVX.cpp | alisa-vernigor/MathForTypingAnalysis | 28e72c8fbf116ddb379b1d823efbf3c5b99b3896 | [
"MIT"
] | null | null | null | Functions/FunctionAVX.cpp | alisa-vernigor/MathForTypingAnalysis | 28e72c8fbf116ddb379b1d823efbf3c5b99b3896 | [
"MIT"
] | null | null | null | Functions/FunctionAVX.cpp | alisa-vernigor/MathForTypingAnalysis | 28e72c8fbf116ddb379b1d823efbf3c5b99b3896 | [
"MIT"
] | null | null | null | #include "Function.h"
#include "vectorclass/vectorclass.h"
#include "vectorclass/vectormath_exp.h"
namespace NSMathModule {
namespace NSFunctions {
double CDensity0::compute0_AVX(const std::vector<double>& means, double arg) {
double tmp_result = 0;
size_t regular_part = means.size() & static_cast<si... | 35.934426 | 82 | 0.614507 | alisa-vernigor |
1db08e9350390ee0af6d3a24c1e181f70bfb3f20 | 12,144 | cpp | C++ | trunk/libs/platform/source/win32/core_app.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | trunk/libs/platform/source/win32/core_app.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | trunk/libs/platform/source/win32/core_app.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include <ang/platform/platform.h>
#include <ang/core/time.h>
#include "dispatcher.h"
#include "core_app.h"
#include <comdef.h>
#include <windowsx.h>
using namespace ang;
using namespace ang::platform;
using namespace ang::platform::events;
using namespace ang::platform::windows;
namespace ang::plat... | 23.353846 | 134 | 0.691041 | ChuyX3 |
1dbb1922e53cbb91c97d0eb823fb5d585d09ed3a | 876 | cpp | C++ | CodeFights/differentSubstrings.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | CodeFights/differentSubstrings.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | CodeFights/differentSubstrings.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | // Given a string, find the number of different non-empty substrings in it.
// Example
// For inputString = "abac", the output should be
// differentSubstrings(inputString) = 9.
string substring(std::string inputString, int start, int end){
std::string resultString;
for(int i=start;i<end;i++)
resultStr... | 30.206897 | 75 | 0.606164 | AREA44 |
1dbf91e581bdbaf7c3e59cdfeaf4f7d19790ba7e | 1,648 | hpp | C++ | lumino/Graphics/src/Animation/AnimationManager.hpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 30 | 2016-01-24T05:35:45.000Z | 2020-03-03T09:54:27.000Z | lumino/Graphics/src/Animation/AnimationManager.hpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 35 | 2016-04-18T06:14:08.000Z | 2020-02-09T15:51:58.000Z | lumino/Graphics/src/Animation/AnimationManager.hpp | lriki/Lumino | 1a80430f4a83dbdfbe965b3d5b16064991b3edb0 | [
"MIT"
] | 5 | 2016-04-03T02:52:05.000Z | 2018-01-02T16:53:06.000Z | #pragma once
#include <LuminoGraphics/Animation/Common.hpp>
#include <LuminoGraphics/Animation/AnimationClip.hpp>
#include <LuminoEngine/Base/detail/RefObjectCache.hpp>
namespace ln {
class AnimationClock;
namespace detail {
class AnimationManager : public RefObject {
public:
struct Settings {
AssetManag... | 34.333333 | 135 | 0.771238 | lriki |
1dc0cf1354ab9c6c14c387bb3ada9152c85a255a | 3,536 | cpp | C++ | Source/Core/DX_12/DX_12Image.cpp | glowing-chemist/Bell | 0cf4d0ac925940869077779700c1d3bd45ff841f | [
"MIT"
] | 14 | 2020-02-12T19:13:46.000Z | 2022-03-05T02:26:06.000Z | Source/Core/DX_12/DX_12Image.cpp | glowing-chemist/Bell | 0cf4d0ac925940869077779700c1d3bd45ff841f | [
"MIT"
] | 5 | 2020-08-06T07:19:47.000Z | 2021-01-05T21:20:51.000Z | Source/Core/DX_12/DX_12Image.cpp | glowing-chemist/Bell | 0cf4d0ac925940869077779700c1d3bd45ff841f | [
"MIT"
] | 2 | 2021-09-18T13:36:47.000Z | 2021-12-04T15:08:53.000Z | #include "DX_12Image.hpp"
#include "DX_12RenderDevice.hpp"
#include "Core/ConversionUtils.hpp"
#include <algorithm>
DX_12Image::DX_12Image( RenderDevice* device,
const Format format,
const ImageUsage usage,
const uint32_t x,
... | 31.017544 | 104 | 0.628394 | glowing-chemist |
1dc53e9641207626cc069fd7d6a480be67324a19 | 7,594 | cpp | C++ | GPTP/src/hooks/unit_morph_inject.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 8 | 2015-04-03T16:50:59.000Z | 2021-01-06T17:12:29.000Z | GPTP/src/hooks/unit_morph_inject.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 6 | 2015-04-03T18:10:56.000Z | 2016-02-18T05:04:21.000Z | GPTP/src/hooks/unit_morph_inject.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 6 | 2015-04-04T04:37:33.000Z | 2018-04-09T09:03:50.000Z | #include "unit_morph.h"
#include <hook_tools.h>
#include <SCBW/api.h>
#include <cassert>
namespace {
//-------- CMDRECV_UnitMorph --------//
const u32 Func_AddUnitToBuildQueue = 0x00467250;
bool addUnitToBuildQueue(const CUnit *unit, u16 unitId) {
static u32 result;
u32 unitId_ = unitId;
__as... | 25.145695 | 107 | 0.667501 | idmontie |
1dc58721a7bf7de73e554838d8cf09c48780043b | 1,661 | hpp | C++ | include/codegen/include/System/Security/Cryptography/X509Certificates/X509Utils.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Security/Cryptography/X509Certificates/X509Utils.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Security/Cryptography/X509Certificates/X509Utils.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:18 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... | 48.852941 | 147 | 0.747742 | Futuremappermydud |
1dca671d290cc993c2c5635fd7c85612ac28634f | 1,943 | cpp | C++ | Src/EB/AMReX_EB_utils.cpp | khou2020/amrex | 2a75167fd3febd46e0090a89941e42793224ad15 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/EB/AMReX_EB_utils.cpp | khou2020/amrex | 2a75167fd3febd46e0090a89941e42793224ad15 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/EB/AMReX_EB_utils.cpp | khou2020/amrex | 2a75167fd3febd46e0090a89941e42793224ad15 | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-01-17T05:00:26.000Z | 2020-01-17T05:00:26.000Z | #include <AMReX_EB_F.H>
#include <AMReX_MultiFab.H>
#include <AMReX_EB_utils.H>
#include <AMReX_Geometry.H>
#include <AMReX_MultiCutFab.H>
#include <AMReX_EBFabFactory.H>
namespace amrex {
void FillEBNormals(MultiFab & normals, const EBFArrayBoxFactory & eb_factory,
const Geometry & geom) ... | 34.696429 | 91 | 0.545548 | khou2020 |
1dca85fc7bffe94417030860dbab852e517643dc | 14,326 | hpp | C++ | tm_kit/basic/CalculationsOnInit.hpp | cd606/tm_basic | ea2d13b561dd640161823a5e377f35fcb7fe5d48 | [
"Apache-2.0"
] | 1 | 2020-05-22T08:47:02.000Z | 2020-05-22T08:47:02.000Z | tm_kit/basic/CalculationsOnInit.hpp | cd606/tm_basic | ea2d13b561dd640161823a5e377f35fcb7fe5d48 | [
"Apache-2.0"
] | null | null | null | tm_kit/basic/CalculationsOnInit.hpp | cd606/tm_basic | ea2d13b561dd640161823a5e377f35fcb7fe5d48 | [
"Apache-2.0"
] | null | null | null | #ifndef TM_KIT_BASIC_CALCULATIONS_ON_INIT_HPP_
#define TM_KIT_BASIC_CALCULATIONS_ON_INIT_HPP_
#include <tm_kit/infra/RealTimeApp.hpp>
#include <tm_kit/infra/SinglePassIterationApp.hpp>
#include <tm_kit/infra/TopDownSinglePassIterationApp.hpp>
#include <tm_kit/infra/Environments.hpp>
#include <tm_kit/infra/TraceNodesCo... | 43.150602 | 194 | 0.615594 | cd606 |
1dca89bec5153c7fe6683305110842690050fd61 | 1,608 | cpp | C++ | Sample/Sample_URLWriter/URLWriter.cpp | sherry0319/YTSvrLib | 5dda75aba927c4bf5c6a727592660bfc2619a063 | [
"MIT"
] | 61 | 2016-10-13T09:24:31.000Z | 2022-03-26T09:59:34.000Z | Sample/Sample_URLWriter/URLWriter.cpp | sherry0319/YTSvrLib | 5dda75aba927c4bf5c6a727592660bfc2619a063 | [
"MIT"
] | 3 | 2018-05-15T10:42:22.000Z | 2021-07-02T01:38:08.000Z | Sample/Sample_URLWriter/URLWriter.cpp | sherry0319/YTSvrLib | 5dda75aba927c4bf5c6a727592660bfc2619a063 | [
"MIT"
] | 36 | 2016-12-28T04:54:41.000Z | 2021-12-15T06:02:56.000Z | // URLWriter.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <cstdlib>
#include "URLWriter.h"
static struct
{
const char* url;
const char* post;
}g_data[] = {
{"http://v.juhe.cn/postcode/query?postcode=215001&key=%E7%94%B3%E8%AF%B7%E7%9A%84KEY",NULL},
{"http://v.juhe.cn/postcode/query","postcode=215001&key=... | 25.52381 | 133 | 0.675373 | sherry0319 |
1dcf151528f700d45c1e338fee82bb360d85b540 | 525 | cpp | C++ | solutions/986.interval-list-intersections.379341654.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/986.interval-list-intersections.379341654.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/986.interval-list-intersections.379341654.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
vector<vector<int>> intervalIntersection(vector<vector<int>> &A,
vector<vector<int>> &B) {
int i = 0;
int j = 0;
int n1 = A.size();
int n2 = B.size();
vector<vector<int>> result;
while (i < n1 && j < n2) {
int r = min(A[... | 21.875 | 68 | 0.420952 | satu0king |
1dd3f9694e9a14131f1c3a3fd946a6b960734c00 | 241 | cpp | C++ | cpp/examples/factorial.cpp | arturparkhisenko/til | 6fe7ddf2466d8090b9cf83fa5f7ae5fe5cacc19b | [
"MIT"
] | 5 | 2017-01-20T01:48:25.000Z | 2020-07-19T11:15:49.000Z | cpp/examples/factorial.cpp | arturparkhisenko/til | 6fe7ddf2466d8090b9cf83fa5f7ae5fe5cacc19b | [
"MIT"
] | null | null | null | cpp/examples/factorial.cpp | arturparkhisenko/til | 6fe7ddf2466d8090b9cf83fa5f7ae5fe5cacc19b | [
"MIT"
] | 1 | 2017-08-22T12:21:04.000Z | 2017-08-22T12:21:04.000Z | #include <iostream>
using namespace std;
int factorial(int n) {
if (n == 1) {
return 1;
} else {
return n * factorial(n - 1);
}
}
int main(int argc, const char * argv[]) {
cout << factorial(5);
return 0;
}
// Outputs 120
| 14.176471 | 41 | 0.576763 | arturparkhisenko |
1dd5e29237ac4f550a143346a1d76ddb9383d3a3 | 1,332 | cpp | C++ | Master/XC-OS/BSP/BSP_Motor.cpp | robojkj/XC-OS | dbbd970d8ca6c7cdbd84cc1cf929d8c6ad13dec5 | [
"MIT"
] | 6 | 2020-11-21T03:03:07.000Z | 2022-03-30T00:00:05.000Z | Master/XC-OS/BSP/BSP_Motor.cpp | robojkj/XC-OS | dbbd970d8ca6c7cdbd84cc1cf929d8c6ad13dec5 | [
"MIT"
] | null | null | null | Master/XC-OS/BSP/BSP_Motor.cpp | robojkj/XC-OS | dbbd970d8ca6c7cdbd84cc1cf929d8c6ad13dec5 | [
"MIT"
] | 2 | 2021-02-08T05:57:19.000Z | 2021-07-24T21:10:49.000Z | #include "Basic/FileGroup.h"
#include "Basic/TasksManage.h"
#include "BSP.h"
static bool State_MotorVibrate = true;
static uint32_t MotorStop_TimePoint = 0;
static bool IsMotorRunning = false;
static uint8_t PWM_PIN;
static void Init_Motor()
{
uint8_t temp;
if(Motor_DIR)
{
PWM_PIN = Motor_IN1_Pin;
temp = Moto... | 18.5 | 57 | 0.690691 | robojkj |
1b8d63ace9bc75c1cfa2f5753b2e2b72ff29c59e | 9,574 | cpp | C++ | modules/imgui/imguimodule.cpp | tychonaut/OpenSpace | fa5bbc5a44b3c55474a6594d8be31ce8f25150c7 | [
"MIT"
] | null | null | null | modules/imgui/imguimodule.cpp | tychonaut/OpenSpace | fa5bbc5a44b3c55474a6594d8be31ce8f25150c7 | [
"MIT"
] | null | null | null | modules/imgui/imguimodule.cpp | tychonaut/OpenSpace | fa5bbc5a44b3c55474a6594d8be31ce8f25150c7 | [
"MIT"
] | null | null | null | /*****************************************************************************************
* *
* OpenSpace *
* ... | 37.108527 | 90 | 0.488719 | tychonaut |
1b994fde11422c094b973ea200686c8888419e8e | 6,747 | cc | C++ | third_party/blink/renderer/core/frame/v8_scanner/scanner-character-streams.cc | 1qaz2wsx7u8i9o0p/DOM-Tree-Type | 151e4c2c85bf93ba506277486d7989361d02b54c | [
"MIT"
] | null | null | null | third_party/blink/renderer/core/frame/v8_scanner/scanner-character-streams.cc | 1qaz2wsx7u8i9o0p/DOM-Tree-Type | 151e4c2c85bf93ba506277486d7989361d02b54c | [
"MIT"
] | null | null | null | third_party/blink/renderer/core/frame/v8_scanner/scanner-character-streams.cc | 1qaz2wsx7u8i9o0p/DOM-Tree-Type | 151e4c2c85bf93ba506277486d7989361d02b54c | [
"MIT"
] | null | null | null | // Copyright 2011 the V8 project 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 "third_party/blink/renderer/core/frame/v8_scanner/scanner-character-streams.h"
#include <memory>
#include <vector>
#include "third_party/blin... | 31.236111 | 87 | 0.716763 | 1qaz2wsx7u8i9o0p |
1ba21795be4e33ff522d8b9084a0393c0cf8a96c | 5,041 | hpp | C++ | cpp/subprojects/common/include/common/data/view_csr_binary.hpp | mrapp-ke/SyndromeLearner | ed18c282949bebbc8e1dd5d2ddfb0b224ee71293 | [
"MIT"
] | null | null | null | cpp/subprojects/common/include/common/data/view_csr_binary.hpp | mrapp-ke/SyndromeLearner | ed18c282949bebbc8e1dd5d2ddfb0b224ee71293 | [
"MIT"
] | null | null | null | cpp/subprojects/common/include/common/data/view_csr_binary.hpp | mrapp-ke/SyndromeLearner | ed18c282949bebbc8e1dd5d2ddfb0b224ee71293 | [
"MIT"
] | 1 | 2022-03-08T22:06:56.000Z | 2022-03-08T22:06:56.000Z | /*
* @author Michael Rapp (mrapp@ke.tu-darmstadt.de)
*/
#pragma once
#include "common/indices/index_forward_iterator.hpp"
/**
* Implements row-wise read-only access to binary values that are stored in a pre-allocated matrix in the compressed
* sparse row (CSR) format.
*/
class BinaryCsrConstView {
protecte... | 35.006944 | 120 | 0.594922 | mrapp-ke |
1ba25478ed9db1f61a3e9c49e3dd72b0103eea87 | 2,915 | cpp | C++ | Tutorials/AMR_Adv_C/Source/Adv_advance.cpp | Voskrese/BoxLib-old-msvc | da83349af10ef8f951b7a5b3182fc7cd710abeec | [
"BSD-3-Clause-LBNL"
] | null | null | null | Tutorials/AMR_Adv_C/Source/Adv_advance.cpp | Voskrese/BoxLib-old-msvc | da83349af10ef8f951b7a5b3182fc7cd710abeec | [
"BSD-3-Clause-LBNL"
] | null | null | null | Tutorials/AMR_Adv_C/Source/Adv_advance.cpp | Voskrese/BoxLib-old-msvc | da83349af10ef8f951b7a5b3182fc7cd710abeec | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-08-06T13:09:09.000Z | 2019-08-06T13:09:09.000Z |
#include <Adv.H>
#include <Adv_F.H>
Real
Adv::advance (Real time,
Real dt,
int iteration,
int ncycle)
{
for (int k = 0; k < NUM_STATE_TYPE; k++) {
state[k].allocOldData();
state[k].swapTimeLevels(dt);
}
MultiFab& S_new = get_new_data(State_Type)... | 24.91453 | 75 | 0.592453 | Voskrese |
1ba2a2866b3a3a4557bc420ed3df7293d4522457 | 2,128 | cc | C++ | arch/mx/decoder.cc | Gandalf-ND/fluxengine | 683bdcdf7f9147b43da90467e545fe0c78d6dcd1 | [
"MIT"
] | null | null | null | arch/mx/decoder.cc | Gandalf-ND/fluxengine | 683bdcdf7f9147b43da90467e545fe0c78d6dcd1 | [
"MIT"
] | null | null | null | arch/mx/decoder.cc | Gandalf-ND/fluxengine | 683bdcdf7f9147b43da90467e545fe0c78d6dcd1 | [
"MIT"
] | null | null | null | #include "globals.h"
#include "decoders/decoders.h"
#include "mx/mx.h"
#include "crc.h"
#include "fluxmap.h"
#include "decoders/fluxmapreader.h"
#include "sector.h"
#include "record.h"
#include "track.h"
#include <string.h>
const int SECTOR_SIZE = 256;
/*
* MX disks are a bunch of sectors glued together with no gaps... | 28 | 88 | 0.656955 | Gandalf-ND |
1ba9757b17aa5ed9852294b0a4d569ae7aaa3de2 | 5,074 | hpp | C++ | include/EntryPoint.hpp | NaioTechnologies/camCapture | 2af0ecbfe3b84fdeed8667ee73401cbfe22766cc | [
"MIT"
] | 1 | 2019-08-28T13:42:21.000Z | 2019-08-28T13:42:21.000Z | include/EntryPoint.hpp | NaioTechnologies/camCapture | 2af0ecbfe3b84fdeed8667ee73401cbfe22766cc | [
"MIT"
] | null | null | null | include/EntryPoint.hpp | NaioTechnologies/camCapture | 2af0ecbfe3b84fdeed8667ee73401cbfe22766cc | [
"MIT"
] | 1 | 2021-02-18T23:17:45.000Z | 2021-02-18T23:17:45.000Z | //==================================================================================================
//
// Copyright(c) 2013 - 2015 Naïo Technologies
//
// 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 ... | 29.847059 | 100 | 0.539417 | NaioTechnologies |
1baacc10653cb8db8cbbb6feb1b11b4bb3beebfc | 1,357 | cpp | C++ | Source/DACore/DUtil.cpp | XDApp/DawnAppFramework | 8655de88200e847ce0e822899395247ade515bc6 | [
"MIT"
] | 1 | 2015-07-13T11:45:18.000Z | 2015-07-13T11:45:18.000Z | Source/DACore/DUtil.cpp | XDApp/DawnAppFramework | 8655de88200e847ce0e822899395247ade515bc6 | [
"MIT"
] | null | null | null | Source/DACore/DUtil.cpp | XDApp/DawnAppFramework | 8655de88200e847ce0e822899395247ade515bc6 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "DUtil.h"
std::wstring_convert<std::codecvt_utf16<wchar_t>> DUtil::converter;
DUtil::DUtil()
{
}
DUtil::~DUtil()
{
}
std::wstring DUtil::StringAtoW(const std::string &Origin)
{
return DUtil::converter.from_bytes(Origin);
}
std::string DUtil::StringWtoA(const std::wstring &Origin)
{
... | 17.623377 | 67 | 0.676492 | XDApp |
1babcf3f19fc09aa66c30129945e65a4c3f29318 | 2,848 | hh | C++ | src/c++/include/main/GenomeMutatorOptions.hh | sequencing/EAGLE | 6da0438c1f7620ea74dec1f34baf20bb0b14b110 | [
"BSD-3-Clause"
] | 28 | 2015-05-22T16:03:29.000Z | 2022-01-15T12:12:46.000Z | src/c++/include/main/GenomeMutatorOptions.hh | sequencing/EAGLE | 6da0438c1f7620ea74dec1f34baf20bb0b14b110 | [
"BSD-3-Clause"
] | 15 | 2015-10-21T11:19:09.000Z | 2020-07-15T05:01:12.000Z | src/c++/include/main/GenomeMutatorOptions.hh | sequencing/EAGLE | 6da0438c1f7620ea74dec1f34baf20bb0b14b110 | [
"BSD-3-Clause"
] | 8 | 2017-01-21T00:31:17.000Z | 2018-08-12T13:28:57.000Z | /**
** Copyright (c) 2014 Illumina, Inc.
**
** This file is part of Illumina's Enhanced Artificial Genome Engine (EAGLE),
** covered by the "BSD 2-Clause License" (see accompanying LICENSE file)
**
** \description Command line options for 'variantModelling'
**
** \author Mauricio Varea
**/
#ifndef EAGLE_MAIN_... | 37.473684 | 125 | 0.534059 | sequencing |
1bb4055254f0051d2870fbe910e9acb35bca88dc | 1,579 | cpp | C++ | Gep/Source/ps2/file.cpp | Sunlitspace542/SNESticle | 9590ebf3bf768424ebd6cb018f322e724a7aade3 | [
"MIT"
] | 318 | 2022-01-15T23:35:01.000Z | 2022-03-24T13:37:20.000Z | Gep/Source/ps2/file.cpp | Sunlitspace542/SNESticle | 9590ebf3bf768424ebd6cb018f322e724a7aade3 | [
"MIT"
] | 2 | 2022-01-25T23:58:23.000Z | 2022-01-30T21:59:09.000Z | Gep/Source/ps2/file.cpp | Sunlitspace542/SNESticle | 9590ebf3bf768424ebd6cb018f322e724a7aade3 | [
"MIT"
] | 46 | 2022-01-17T22:46:08.000Z | 2022-03-06T16:52:00.000Z |
//#include <sys/stat.h>
//#include <stdlib.h>
//#include <stdio.h>
#include <fileio.h>
#include "types.h"
#include "file.h"
Bool FileReadMem(Char *pFilePath, void *pMem, Uint32 nBytes)
{
#if 0
FILE *pFile;
pFile = fopen(pFilePath, "rb");
if (pFile)
{
Uint32 nReadBytes;
nReadBytes = fread... | 15.182692 | 62 | 0.602913 | Sunlitspace542 |
1bb5f45c42ace30cd11f4ba10eff08925e217de5 | 5,137 | cpp | C++ | holdem/src/LYHoldemTrunk.cpp | caiqingfeng/libpoker | a2c60884fc5c8e31455fb39e432c49e0df55956b | [
"Apache-2.0"
] | 1 | 2021-04-20T06:22:30.000Z | 2021-04-20T06:22:30.000Z | holdem/src/LYHoldemTrunk.cpp | caiqingfeng/libpoker | a2c60884fc5c8e31455fb39e432c49e0df55956b | [
"Apache-2.0"
] | null | null | null | holdem/src/LYHoldemTrunk.cpp | caiqingfeng/libpoker | a2c60884fc5c8e31455fb39e432c49e0df55956b | [
"Apache-2.0"
] | 2 | 2020-10-29T08:21:22.000Z | 2020-12-02T06:40:18.000Z | /*
* LYHoldemTrunk.cpp
*
* Created on: 2013-7-5
* Author: caiqingfeng
*/
#include <cstdlib>
#include "LYHoldemTrunk.h"
#include "LYHoldemTable.h"
#include "LYHoldemGame.h"
//#include <boost/foreach.hpp>
//#include "common/src/my_log.h"
LYHoldemTrunk:: LYHoldemTrunk(const std::string &trunk_id, const std::s... | 25.058537 | 125 | 0.696905 | caiqingfeng |
1bb8d67c0f9a83627c2c6eddd412be78c9295d64 | 5,467 | cpp | C++ | src/frameworks/av/media/libmedia/IMediaHTTPConnection.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/av/media/libmedia/IMediaHTTPConnection.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/av/media/libmedia/IMediaHTTPConnection.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2013 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... | 26.668293 | 76 | 0.600878 | dAck2cC2 |
1bb9a61043791730943e9a2018a2d27aec1a13d0 | 12,855 | cpp | C++ | MATLAB Files/StarshotACS1_ert_rtw/StarshotACS1.cpp | Natsoulas/ACS | aac4468e2bcd71eee61d89e9483a5dc9ef7302c1 | [
"MIT"
] | null | null | null | MATLAB Files/StarshotACS1_ert_rtw/StarshotACS1.cpp | Natsoulas/ACS | aac4468e2bcd71eee61d89e9483a5dc9ef7302c1 | [
"MIT"
] | null | null | null | MATLAB Files/StarshotACS1_ert_rtw/StarshotACS1.cpp | Natsoulas/ACS | aac4468e2bcd71eee61d89e9483a5dc9ef7302c1 | [
"MIT"
] | 1 | 2022-03-18T18:57:10.000Z | 2022-03-18T18:57:10.000Z | //
// Academic License - for use in teaching, academic research, and meeting
// course requirements at degree granting institutions only. Not for
// government, commercial, or other organizational use.
//
// File: StarshotACS1.cpp
//
// Code generated for Simulink model 'StarshotACS1'.
//
// Model version ... | 29.349315 | 83 | 0.629094 | Natsoulas |
1bbdc79532f96536257f9f19ccabae3020b510d2 | 3,323 | cpp | C++ | src/renderer/rt/objects/extern.cpp | gartenriese2/monorenderer | 56c6754b2b765d5841fe73fb43ea49438f5dd96f | [
"MIT"
] | null | null | null | src/renderer/rt/objects/extern.cpp | gartenriese2/monorenderer | 56c6754b2b765d5841fe73fb43ea49438f5dd96f | [
"MIT"
] | null | null | null | src/renderer/rt/objects/extern.cpp | gartenriese2/monorenderer | 56c6754b2b765d5841fe73fb43ea49438f5dd96f | [
"MIT"
] | null | null | null | #include "extern.hpp"
#include <MonoEngine/core/log.hpp>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wfloat-equal"
#pragma GCC diagnostic ignored "-Wconversion"
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#pragma GCC diagnostic pop
#include <assimp/postprocess.h>
#include <glm/glm.hpp>
... | 29.669643 | 107 | 0.647006 | gartenriese2 |
1bbf7ecaf3a304724db01622d481b4650767f2a3 | 646 | hpp | C++ | runtime/waitgroup.hpp | vron/compute | 25c57423a77171bdcf18e6ee17316cc295ea5469 | [
"Unlicense"
] | 6 | 2020-07-24T15:29:38.000Z | 2021-03-09T05:16:58.000Z | runtime/waitgroup.hpp | vron/compute | 25c57423a77171bdcf18e6ee17316cc295ea5469 | [
"Unlicense"
] | 1 | 2020-07-27T12:24:50.000Z | 2020-08-15T11:18:22.000Z | runtime/waitgroup.hpp | vron/compute | 25c57423a77171bdcf18e6ee17316cc295ea5469 | [
"Unlicense"
] | 1 | 2021-03-09T02:25:09.000Z | 2021-03-09T02:25:09.000Z | #pragma once
#include <condition_variable>
#include <mutex>
template <class T> class WaitGroup {
std::mutex m;
std::condition_variable cv;
T counter;
public:
WaitGroup() : counter(0) {};
~WaitGroup(){};
void add(T n) {
std::lock_guard<std::mutex> lk(m);
counter += n;
}
void done() {
bool... | 17.459459 | 55 | 0.557276 | vron |
1bc313d041ed043298578ce482c9df781a7a3c38 | 6,327 | cpp | C++ | src/cvar/cameraCalibration.cpp | vnm-interactive/Cinder-MarkerlessAR | 28db3199d92145cfb143c4cc457e2b8b013f5729 | [
"MIT"
] | null | null | null | src/cvar/cameraCalibration.cpp | vnm-interactive/Cinder-MarkerlessAR | 28db3199d92145cfb143c4cc457e2b8b013f5729 | [
"MIT"
] | null | null | null | src/cvar/cameraCalibration.cpp | vnm-interactive/Cinder-MarkerlessAR | 28db3199d92145cfb143c4cc457e2b8b013f5729 | [
"MIT"
] | null | null | null | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 30.128571 | 132 | 0.706654 | vnm-interactive |
1bc55f8f655ef35887559e1a5d08e4b5cfbd86da | 3,838 | cpp | C++ | src/mapart/map_nbt.cpp | AgustinSRG/ImageToMapMC | fbff8017e87c30baaa0c9c2327bdd28846253646 | [
"MIT"
] | null | null | null | src/mapart/map_nbt.cpp | AgustinSRG/ImageToMapMC | fbff8017e87c30baaa0c9c2327bdd28846253646 | [
"MIT"
] | null | null | null | src/mapart/map_nbt.cpp | AgustinSRG/ImageToMapMC | fbff8017e87c30baaa0c9c2327bdd28846253646 | [
"MIT"
] | null | null | null | /*
* This file is part of ImageToMapMC project
*
* Copyright (c) 2021 Agustin San Roman
*
* 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 limit... | 28.857143 | 123 | 0.656592 | AgustinSRG |
1bca8822cc7f4e1d41211158ff39b24eb841a77e | 10,247 | cpp | C++ | Src/Eni/UsbDevice/Stm/USBDDevice.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null | Src/Eni/UsbDevice/Stm/USBDDevice.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null | Src/Eni/UsbDevice/Stm/USBDDevice.cpp | vlad230596/Eni | 2bbd07b6e4e20b2c2a6ad6fdc9d948e6352eecb7 | [
"MIT"
] | null | null | null | #include "EniConfig.h"
#if defined(ENI_USB_DEVICE) && defined(ENI_STM)
#include "UsbDDevice.h"
#include "usbd_conf.h"
#include "Core/usbd_def.h"
#include "Core/usbd_ioreq.h"
#include "Core/usbd_ctlreq.h"
#include "Core/usbd_core.h"
#include ENI_HAL_INCLUDE_FILE
#include "USBTypes.h"
#include "UsbMicrosoftTypes.h"
#i... | 29.110795 | 132 | 0.760027 | vlad230596 |
1bcd386bae008d200b1b68a5f70bff7ccfe2d92c | 706 | cpp | C++ | src/main.cpp | QQB17/simple_log | e800cce5bde4e04bc9d91d1180a6c28a1b658c69 | [
"MIT"
] | null | null | null | src/main.cpp | QQB17/simple_log | e800cce5bde4e04bc9d91d1180a6c28a1b658c69 | [
"MIT"
] | null | null | null | src/main.cpp | QQB17/simple_log | e800cce5bde4e04bc9d91d1180a6c28a1b658c69 | [
"MIT"
] | null | null | null | #include <iostream>
#include "logger.h"
int main()
{
// Simple log message
qlog::log("Hello world!");
// Select log_level
qlog::log(log_level::level::debug, "Debuging: ", "Selected log level");
// Debug log
qlog::debug("This is a debug message.");
// Info log
qlog::info("Informatio... | 22.774194 | 83 | 0.621813 | QQB17 |
1bce55470ec93585ddba0657ed132f96c2a85aec | 1,627 | hpp | C++ | src/MarkerInterval.hpp | rlorigro/shasta | 06522d841362ee22265d006062759b0cbcf3a1ea | [
"BSD-3-Clause-Open-MPI"
] | 1 | 2019-02-11T02:46:16.000Z | 2019-02-11T02:46:16.000Z | src/MarkerInterval.hpp | rlorigro/shasta | 06522d841362ee22265d006062759b0cbcf3a1ea | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/MarkerInterval.hpp | rlorigro/shasta | 06522d841362ee22265d006062759b0cbcf3a1ea | [
"BSD-3-Clause-Open-MPI"
] | 1 | 2019-08-14T22:56:29.000Z | 2019-08-14T22:56:29.000Z | #ifndef SHASTA_MARKER_INTERVAL_HPP
#define SHASTA_MARKER_INTERVAL_HPP
// Shasta.
#include "ReadId.hpp"
#include"tuple.hpp"
// Standard library.
#include "array.hpp"
namespace shasta {
class MarkerInterval;
class MarkerIntervalWithRepeatCounts;
}
// Class to describe the interval between
// two markers on a... | 23.57971 | 74 | 0.672403 | rlorigro |
1bd6375b3f8a52ee376f3ed86437ace1b3a75d38 | 2,788 | cpp | C++ | solved-lightOj/1220.cpp | Maruf-Tuhin/Online_Judge | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | 1 | 2019-03-31T05:47:30.000Z | 2019-03-31T05:47:30.000Z | solved-lightOj/1220.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | solved-lightOj/1220.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | /**
* @author : Maruf Tuhin
* @College : CUET CSE 11
* @Topcoder : the_redback
* @CodeForces : the_redback
* @UVA : the_redback
* @link : http://www.fb.com/maruf.2hin
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long lo... | 20.350365 | 102 | 0.455524 | Maruf-Tuhin |
1bd89cca521d094d1cd134dc7bfc1de501552147 | 948 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/dawn/string_method.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/dawn/string_method.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/dawn/string_method.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <string>
namespace dawn
{
inline void string_pop_front(std::string& s, size_t n)
{
s = s.substr(n);
}
inline bool string_pop_front_if_find(std::string& s, std::string const& w)
{
size_t const pos = s.find(w);
if (pos == std::string::npos) return false... | 25.621622 | 87 | 0.549578 | yklishevich |
1bdb8642d7c9b5cf912f7b4b68073aa0aa0c49e6 | 1,560 | cpp | C++ | homework/Pashchenko/01/hw02.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 12 | 2018-02-20T15:25:12.000Z | 2022-02-15T03:31:55.000Z | homework/Pashchenko/01/hw02.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 1 | 2018-02-26T12:40:47.000Z | 2018-02-26T12:40:47.000Z | homework/Pashchenko/01/hw02.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 33 | 2018-02-20T15:25:11.000Z | 2019-02-13T22:33:36.000Z | #include <iostream>
#include "numbers.dat"
void sieve(bool *primes, int len)
{
for(int i = 0; i < len; i++)
primes[i] = true;
primes[0] = primes[1] = false;
for (int i = 2; i < len; i++)
{
if (primes[i])
{
for (int j = 2 * i; j < len; j += i)
primes... | 16.595745 | 48 | 0.398077 | nkotelevskii |
1bdc4885c28ba7c99411d2f285e03d1db51cce5f | 3,900 | cc | C++ | src/PhysListParticles.cc | hbidaman/detectorSimulations_v10 | 6ceae8e9561638d5a3c886571f60141abc09922c | [
"MIT"
] | 1 | 2020-06-26T15:29:46.000Z | 2020-06-26T15:29:46.000Z | src/PhysListParticles.cc | hbidaman/detectorSimulations_v10 | 6ceae8e9561638d5a3c886571f60141abc09922c | [
"MIT"
] | 1 | 2020-08-05T18:03:43.000Z | 2020-08-05T18:03:43.000Z | src/PhysListParticles.cc | hbidaman/detectorSimulations_v10 | 6ceae8e9561638d5a3c886571f60141abc09922c | [
"MIT"
] | 1 | 2020-06-08T14:21:23.000Z | 2020-06-08T14:21:23.000Z | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... | 33.333333 | 80 | 0.642564 | hbidaman |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.