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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2747904d78c65645006dae8c92dd821b059efea9 | 2,725 | cpp | C++ | src/TypeToString.cpp | rafzi/tflite_micro_compiler | 0b077f0e8e5895f62a992046ed05c877e78c0df8 | [
"Apache-2.0"
] | 48 | 2020-05-10T13:33:02.000Z | 2022-03-24T06:47:50.000Z | src/TypeToString.cpp | rafzi/tflite_micro_compiler | 0b077f0e8e5895f62a992046ed05c877e78c0df8 | [
"Apache-2.0"
] | 49 | 2020-05-21T22:03:51.000Z | 2022-03-09T08:09:45.000Z | src/TypeToString.cpp | rafzi/tflite_micro_compiler | 0b077f0e8e5895f62a992046ed05c877e78c0df8 | [
"Apache-2.0"
] | 16 | 2020-05-10T12:59:20.000Z | 2022-03-09T06:04:22.000Z | #include "TypeToString.h"
#include <sstream>
#include <stdexcept>
#define NAME(X) \
case X: \
return #X
std::string tflmc::to_string(TfLiteType t) {
switch (t) {
NAME(kTfLiteFloat32);
NAME(kTfLiteInt32);
NAME(kTfLiteUInt8);
NAME(kTfLiteInt64);
NAME(kTfLiteString);
NAME(kTfLiteBo... | 25 | 77 | 0.654312 | rafzi |
274bb8d4dac24cf0d494098d0ccd7c82538bf0ac | 1,468 | cpp | C++ | Visual Mercutio/zDB/PSS_DatabaseManipulator.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zDB/PSS_DatabaseManipulator.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zDB/PSS_DatabaseManipulator.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_DatabaseManipulator ---------------------------------------------*
****************************************************************************
* Description : Provides a database manipulator *
* Devel... | 38.631579 | 84 | 0.330381 | Jeanmilost |
274e27e5519110ecb255b595c16644c5ce072780 | 918 | inl | C++ | Source/Foundation/Time/Time.inl | yuyang158/TianEngine | 59029bde8af0f45d5adc99324ca7bc38d4cb8de9 | [
"MIT"
] | null | null | null | Source/Foundation/Time/Time.inl | yuyang158/TianEngine | 59029bde8af0f45d5adc99324ca7bc38d4cb8de9 | [
"MIT"
] | null | null | null | Source/Foundation/Time/Time.inl | yuyang158/TianEngine | 59029bde8af0f45d5adc99324ca7bc38d4cb8de9 | [
"MIT"
] | null | null | null | #include "Time.h"
TIAN_FORCE_INLINE constexpr double Time::GetTotalNanoseconds() const {
return m_fTime * 0.000000001;
}
TIAN_FORCE_INLINE constexpr double Time::GetTotalMicroseconds() const {
return m_fTime * 0.000001;
}
TIAN_FORCE_INLINE constexpr double Time::GetTotalMilliseconds() const {
return m_fTime * 0.0... | 24.810811 | 71 | 0.764706 | yuyang158 |
274f9df4ba6c1d2136e0afa3a8b9d99df2e4262e | 25,288 | inl | C++ | src/fonts/stb_font_times_25_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_times_25_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_times_25_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_times_25_usascii_*,... | 61.378641 | 117 | 0.762971 | stetre |
2751e269435c1bc0e48312261d13497f3df556a3 | 110 | cpp | C++ | openexr-c/abigen/imf_testfile.cpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 7 | 2021-06-04T20:59:16.000Z | 2022-02-11T01:00:42.000Z | openexr-c/abigen/imf_testfile.cpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 35 | 2021-05-14T04:28:22.000Z | 2021-12-30T12:08:40.000Z | openexr-c/abigen/imf_testfile.cpp | vfx-rs/openexr-bind | ee4fd6010beedb0247737a39ee61ffb87c586448 | [
"BSD-3-Clause"
] | 5 | 2021-05-15T04:02:56.000Z | 2021-07-02T05:38:01.000Z | #include <OpenEXR/ImfTestFile.h>
#include "imf_testfile.hpp"
void abi_gen_imf_testfile(std::ostream& os) {
}
| 18.333333 | 45 | 0.763636 | vfx-rs |
2754ffc7e2bc75f0cdc3febca47a0cc9fd1a6da4 | 1,757 | cpp | C++ | mytest/src/mytest.cpp | arksap2002/tic-tac-toe | 916e86f581f6fe1f3ddcc019547212aa80dab92c | [
"MIT"
] | null | null | null | mytest/src/mytest.cpp | arksap2002/tic-tac-toe | 916e86f581f6fe1f3ddcc019547212aa80dab92c | [
"MIT"
] | null | null | null | mytest/src/mytest.cpp | arksap2002/tic-tac-toe | 916e86f581f6fe1f3ddcc019547212aa80dab92c | [
"MIT"
] | null | null | null | #include "mytest.h"
namespace mytest {
Test::Test(std::function<void()> new_function, std::string new_name)
: function(std::move(new_function)),
name(std::move(new_name)),
is_passed(true) {
}
std::function<void()> Test::get_function() const {
return function;
}
std::string Test::get_name() const... | 25.838235 | 80 | 0.585088 | arksap2002 |
2755f82798cd92f4a023afcae3c6265e63fa4729 | 13,033 | cpp | C++ | TwoDacConsistencyLogger/WasapiInput.cpp | AVLatency/Latency-Measurement | a85b8d0dbfa7eb79a8858936f0313a272726f35c | [
"MIT"
] | 4 | 2022-02-17T20:09:30.000Z | 2022-03-28T22:34:43.000Z | TwoDacConsistencyLogger/WasapiInput.cpp | AVLatency/Latency-Measurement | a85b8d0dbfa7eb79a8858936f0313a272726f35c | [
"MIT"
] | 2 | 2022-02-17T20:16:22.000Z | 2022-02-18T15:42:28.000Z | TwoDacConsistencyLogger/WasapiInput.cpp | AVLatency/Latency-Measurement | a85b8d0dbfa7eb79a8858936f0313a272726f35c | [
"MIT"
] | 1 | 2022-03-24T12:10:38.000Z | 2022-03-24T12:10:38.000Z | #include "WasapiInput.h"
#include <mmdeviceapi.h>
#include <cmath>
#include <cstdio>
#include <Functiondiscoverykeys_devpkey.h>
#include <comdef.h>
#include <format>
// REFERENCE_TIME time units per second and per millisecond
#define REFTIMES_PER_SEC 10000000
#define REFTIMES_PER_MILLISEC 10000
#define EXIT_ON_ERRO... | 33.332481 | 245 | 0.609069 | AVLatency |
27560e816977bb293bda88293cf0d2ff992af5e0 | 25,229 | cpp | C++ | Src/Hardware/MCU/STM32F4xx/Src/USB_MCU.cpp | ThBreuer/EmbSysLib | 650122100e876a819b1b4e6d52aed24e5504e86e | [
"MIT"
] | 1 | 2020-01-11T09:53:11.000Z | 2020-01-11T09:53:11.000Z | Src/Hardware/MCU/STM32F4xx/Src/USB_MCU.cpp | ThBreuer/EmbSysLib | 650122100e876a819b1b4e6d52aed24e5504e86e | [
"MIT"
] | null | null | null | Src/Hardware/MCU/STM32F4xx/Src/USB_MCU.cpp | ThBreuer/EmbSysLib | 650122100e876a819b1b4e6d52aed24e5504e86e | [
"MIT"
] | 1 | 2021-07-20T05:06:11.000Z | 2021-07-20T05:06:11.000Z | //*******************************************************************
/*!
\file USB_MCU.cpp
\author Thomas Breuer (Bonn-Rhein-Sieg University of Applied Sciences)
\date 23.03.2016
This file is released under the MIT License.
This implementaion is partially derived from STM32CubeF4
(see: http://www.st.com/web/en/c... | 27.908186 | 118 | 0.466646 | ThBreuer |
2757e9c3e95659a0d405e82eaae0c3f11297d662 | 26,598 | cpp | C++ | src/gb/cpu/disass.cpp | destoer/destoer-emu | 2a7941b175126e998eed2df8df87ee382c43d0b1 | [
"BSD-3-Clause"
] | 20 | 2020-01-19T21:54:23.000Z | 2021-11-28T17:27:15.000Z | src/gb/cpu/disass.cpp | destoer/destoer-emu | 2a7941b175126e998eed2df8df87ee382c43d0b1 | [
"BSD-3-Clause"
] | 3 | 2020-05-01T07:46:10.000Z | 2021-09-18T13:50:18.000Z | src/gb/cpu/disass.cpp | destoer/destoer-emu | 2a7941b175126e998eed2df8df87ee382c43d0b1 | [
"BSD-3-Clause"
] | null | null | null | #include <gb/gb.h>
#include <destoer-emu/lib.h>
namespace gameboy
{
Disass::Disass(GB &gb) : mem(gb.mem)
{
rom_sym_table.clear();
mem_sym_table.clear();
sym_file_loaded = false;
}
void Disass::init() noexcept
{
load_sym_file(remove_ext(mem.rom_info.filename) + ".sym");
}
enum... | 33.08209 | 101 | 0.553199 | destoer |
2757f4c75b2b61df4a4ea1e4138293c4af2ba56e | 1,131 | cpp | C++ | src/peptides/InfluenceRange.cpp | csam5596/Epi | e352e766bc3b522c7a02f83b4fe480e860c0f1db | [
"MIT"
] | null | null | null | src/peptides/InfluenceRange.cpp | csam5596/Epi | e352e766bc3b522c7a02f83b4fe480e860c0f1db | [
"MIT"
] | null | null | null | src/peptides/InfluenceRange.cpp | csam5596/Epi | e352e766bc3b522c7a02f83b4fe480e860c0f1db | [
"MIT"
] | null | null | null | #include "peptides/InfluenceRange.h"
#include <iostream>
InfluenceRange::InfluenceRange(const CodonChange &codonChange)
: variantEffectId(codonChange.variantEffectId), veType(codonChange.veType){
unsigned offset = 0;
while(codonChange.codonRef.size() > offset &&
codonChange.codonAlt.size() > offset &&
cod... | 25.704545 | 76 | 0.727675 | csam5596 |
275c57923a24c3caa25c73ab25bd9d2930cf31d2 | 23,961 | cpp | C++ | src/AST.cpp | Benjins/simple-vm | ef31ea36ad698a47da81642c97d718d3415bd133 | [
"CC-BY-4.0"
] | null | null | null | src/AST.cpp | Benjins/simple-vm | ef31ea36ad698a47da81642c97d718d3415bd133 | [
"CC-BY-4.0"
] | null | null | null | src/AST.cpp | Benjins/simple-vm | ef31ea36ad698a47da81642c97d718d3415bd133 | [
"CC-BY-4.0"
] | null | null | null | #include "../header/AST.h"
#include "../header/Instruction.h"
#include "../header/VM.h"
#include <algorithm>
#include <stdio.h>
#define FIND(container, item) std::find((container).begin(), (container).end(), (item))
Statement* CompileTokenToAST(const string& token){
const string operators = "+-*><|&=/";
if(operato... | 21.528302 | 129 | 0.651642 | Benjins |
276565448f990df77c4985fed6c468a4721dfe14 | 7,093 | cpp | C++ | src/engine/ivp/havana/havok/hk_base/memory/memory.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/engine/ivp/havana/havok/hk_base/memory/memory.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/engine/ivp/havana/havok/hk_base/memory/memory.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | #include <hk_base/base.h>
#include <malloc.h>
class hk_Memory_With_Size {
public:
hk_int32 m_size;
enum {
MAGIC_MEMORY_WITH_SIZE = 0x2345656
} m_magic;
hk_int32 m_dummy[2];
};
void hk_Memory::init_memory(char *buffer, int buffer_size) {
m_memory_start = buffer;
m_used_end = buffer;
... | 26.27037 | 151 | 0.629071 | cstom4994 |
276a0a075fb8133530469462c66460a390509880 | 1,906 | cpp | C++ | src/backend/boost/benchmark.cpp | at15/ts-parallel | 4092bfdd9c4274c23144e8c4e3235c47fb472985 | [
"MIT"
] | 3 | 2018-03-18T19:00:07.000Z | 2019-12-09T06:29:25.000Z | src/backend/boost/benchmark.cpp | at15/ts-parallel | 4092bfdd9c4274c23144e8c4e3235c47fb472985 | [
"MIT"
] | 8 | 2017-05-19T02:08:04.000Z | 2018-03-18T19:04:15.000Z | src/backend/boost/benchmark.cpp | at15/ts-parallel | 4092bfdd9c4274c23144e8c4e3235c47fb472985 | [
"MIT"
] | null | null | null | #include <boost/compute.hpp>
#include "../../benchmark.hpp"
namespace compute = boost::compute;
namespace aya
{
namespace bench
{
void ping()
{
std::cout << "pong from boost compute benchmark backend" << std::endl;
}
std::string name()
{
return "boost";
}
template <typename T>
struct BoostBenchmarkBackend ... | 21.659091 | 112 | 0.602833 | at15 |
276c5a2a3a057c08c964e28c37d98dd6eea6646e | 5,102 | hpp | C++ | include/System/Data/ValueType.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Data/ValueType.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Data/ValueType.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "System/Enum.h... | 48.132075 | 89 | 0.712074 | v0idp |
276f1f587049258200919ee6d084a75f3eb8b027 | 740 | cpp | C++ | kuangbin/hdu-1257.cpp | Broduker/oj | b114434df5627c79a646e076a034a0ecc4c7484c | [
"MIT"
] | null | null | null | kuangbin/hdu-1257.cpp | Broduker/oj | b114434df5627c79a646e076a034a0ecc4c7484c | [
"MIT"
] | null | null | null | kuangbin/hdu-1257.cpp | Broduker/oj | b114434df5627c79a646e076a034a0ecc4c7484c | [
"MIT"
] | null | null | null | /*
translation:
求最长上升子序列
solution:
经典dp
dp[i] = max(dp[i],dp[k]) k:1~i-1 && seq[k]<seq[i]
note:
dp[i]初始化为1
date:
2019.08
*/
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
const int MAXN = 30010;
int seq[MAXN],dp[MAXN];
using namespace std;
int main(){
int n,ans... | 17.619048 | 53 | 0.427027 | Broduker |
27738c3f87e4ddb9851c4797302deea0e3ad4f85 | 1,889 | cpp | C++ | test/craps_test.cpp | acc-cosc-1337-spring-2021/acc-spring-2021-final-Hannah-Kim-acc | b710e32b11c29516cbe6c1cf16f89a57bbfd62e2 | [
"MIT"
] | null | null | null | test/craps_test.cpp | acc-cosc-1337-spring-2021/acc-spring-2021-final-Hannah-Kim-acc | b710e32b11c29516cbe6c1cf16f89a57bbfd62e2 | [
"MIT"
] | null | null | null | test/craps_test.cpp | acc-cosc-1337-spring-2021/acc-spring-2021-final-Hannah-Kim-acc | b710e32b11c29516cbe6c1cf16f89a57bbfd62e2 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "die.h"
#include "roll.h"
#include "shooter.h"
#include "come_out_phase.h"
#include "point_phase.h"
TEST_CASE("Verify Test Configuration", "verification")
{
REQUIRE(true == true);
}
TEST_C... | 26.236111 | 251 | 0.678666 | acc-cosc-1337-spring-2021 |
2775bf4460d45f0741de29d0c216f4c9275cf2cb | 423 | cpp | C++ | ext/libigl/external/cgal/src/CGAL_Project/demo/Polyhedron/Polyhedron_3.cpp | liminchen/OptCuts | cb85b06ece3a6d1279863e26b5fd17a5abb0834d | [
"MIT"
] | 187 | 2019-01-23T04:07:11.000Z | 2022-03-27T03:44:58.000Z | ext/libigl/external/cgal/src/CGAL_Project/demo/Polyhedron/Polyhedron_3.cpp | xiaoxie5002/OptCuts | 1f4168fc867f47face85fcfa3a572be98232786f | [
"MIT"
] | 8 | 2019-03-22T13:27:38.000Z | 2020-06-18T13:23:23.000Z | ext/libigl/external/cgal/src/CGAL_Project/demo/Polyhedron/Polyhedron_3.cpp | xiaoxie5002/OptCuts | 1f4168fc867f47face85fcfa3a572be98232786f | [
"MIT"
] | 34 | 2019-02-13T01:11:12.000Z | 2022-02-28T03:29:40.000Z | #include "Polyhedron_demo.h"
#include <clocale>
/*!
* \brief Defines the entry point of the demo.
* Creates the application and sets a main window.
*/
int main(int argc, char **argv)
{
Polyhedron_demo app(argc, argv,
"Polyhedron_3 demo",
"CGAL Polyhedron Demo");
//We ... | 24.882353 | 51 | 0.628842 | liminchen |
277769b6a0c13366d0471b9ca93017811c07a88b | 2,403 | cpp | C++ | customer.cpp | Rajasuryaa/seven | 87a7e1aa801fa330deb585ba859a09da56c22e90 | [
"curl"
] | null | null | null | customer.cpp | Rajasuryaa/seven | 87a7e1aa801fa330deb585ba859a09da56c22e90 | [
"curl"
] | null | null | null | customer.cpp | Rajasuryaa/seven | 87a7e1aa801fa330deb585ba859a09da56c22e90 | [
"curl"
] | null | null | null | #include <iostream>
#include <string.h>
#include <fstream>
#include <stdlib.h>
using namespace std;
struct user_details
{
char name[30];
char email_id[30];
char mobile_no[11];
char doorno[5];
char street_name[30],dummy[2];
char area[20];
unsigned int pin_code;
char username[15];
char password[... | 24.773196 | 88 | 0.616313 | Rajasuryaa |
277a8646f5bb7b25a0b3b24f76e259207f43bbaa | 312 | cc | C++ | C++/learncpp/Chapter_6/Unamed_inline/inline_namespace.cc | MaRauder111/Cplusplus | 9b18f95b5aee67f67c6e579ba7f3e80d3a3c68a5 | [
"MIT"
] | null | null | null | C++/learncpp/Chapter_6/Unamed_inline/inline_namespace.cc | MaRauder111/Cplusplus | 9b18f95b5aee67f67c6e579ba7f3e80d3a3c68a5 | [
"MIT"
] | null | null | null | C++/learncpp/Chapter_6/Unamed_inline/inline_namespace.cc | MaRauder111/Cplusplus | 9b18f95b5aee67f67c6e579ba7f3e80d3a3c68a5 | [
"MIT"
] | null | null | null | #include<iostream>
inline namespace test1
{
void testing()
{
std::cout << "From test1 namespace\n";
}
}
namespace test2
{
void testing()
{
std::cout << "From test2 namespace\n";
}
}
int main(){
test1::testing();
test2::testing();
testing();
return 0;
} | 12.48 | 46 | 0.538462 | MaRauder111 |
277aebd86305eb4880fe1f7d368991ef856b9516 | 553 | cc | C++ | test/argon/lang/compiler.cc | ArgonLang/Argon | 462d3d8721acd5131894bcbfa0214b0cbcffdf66 | [
"Apache-2.0"
] | 13 | 2021-06-24T17:50:20.000Z | 2022-03-13T23:00:16.000Z | test/argon/lang/compiler.cc | ArgonLang/Argon | 462d3d8721acd5131894bcbfa0214b0cbcffdf66 | [
"Apache-2.0"
] | null | null | null | test/argon/lang/compiler.cc | ArgonLang/Argon | 462d3d8721acd5131894bcbfa0214b0cbcffdf66 | [
"Apache-2.0"
] | 1 | 2022-03-31T22:58:42.000Z | 2022-03-31T22:58:42.000Z | // This source file is part of the Argon project.
//
// Licensed under the Apache License v2.0
#include <gtest/gtest.h>
#include <codecvt>
#include <lang/scanner/scanner.h>
#include <lang/parser/parser.h>
#include <lang/compiler/compiler.h>
using namespace argon::lang::scanner;
using namespace argon::lang::parser;
u... | 19.068966 | 49 | 0.701627 | ArgonLang |
277e18ff930fa60341c5ae988bdbcd7d9598bc33 | 805 | cpp | C++ | random-pick-index/random-pick-index.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 13 | 2019-10-12T14:36:32.000Z | 2021-06-08T04:26:30.000Z | random-pick-index/random-pick-index.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 1 | 2020-02-29T14:02:39.000Z | 2020-02-29T14:02:39.000Z | random-pick-index/random-pick-index.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 3 | 2020-02-08T12:04:28.000Z | 2020-03-17T11:53:00.000Z | class Solution {
vector<int> _nums;
public:
Solution(vector<int>& nums) {
_nums.swap(nums);
}
int pick(int target) {
int nc = 0;
int ans;
int n = _nums.size();
for(int i = 0; i < n; i++){
if(_nums[i] == target){
if(nc == 0... | 22.361111 | 64 | 0.36646 | JanaSabuj |
277e58500532d0fcf1dfe0c8aa131be2637f7d62 | 2,451 | cc | C++ | Languages/MalbolgeInterpreter.cc | fuzziqersoftware/equinox | 99efb1c5c537149b9448ced43c15ab604fb54463 | [
"MIT"
] | null | null | null | Languages/MalbolgeInterpreter.cc | fuzziqersoftware/equinox | 99efb1c5c537149b9448ced43c15ab604fb54463 | [
"MIT"
] | null | null | null | Languages/MalbolgeInterpreter.cc | fuzziqersoftware/equinox | 99efb1c5c537149b9448ced43c15ab604fb54463 | [
"MIT"
] | null | null | null | #include "MalbolgeInterpreter.hh"
#include <inttypes.h>
#include <stdio.h>
#include <phosg/Filesystem.hh>
#include <phosg/Strings.hh>
#include <string>
using namespace std;
static uint16_t crz(uint16_t x, uint16_t y) {
static const uint8_t table[9] = {1, 0, 0, 1, 0, 2, 2, 2, 1};
uint16_t result = 0;
for (si... | 25.8 | 140 | 0.541004 | fuzziqersoftware |
27805526fb5bc0018d3bc89a77067db3fa6318a3 | 13,176 | cc | C++ | src/idt/targets/typescript_cpp_v8/ide/main_window.cc | aabtop/reify | ddc7ce0250ecba78755eaa4793ad8135e4009131 | [
"MIT"
] | 6 | 2020-05-19T21:35:10.000Z | 2021-06-22T15:49:04.000Z | src/idt/targets/typescript_cpp_v8/ide/main_window.cc | aabtop/reify | ddc7ce0250ecba78755eaa4793ad8135e4009131 | [
"MIT"
] | 26 | 2020-05-24T20:56:39.000Z | 2021-09-04T04:46:30.000Z | src/idt/targets/typescript_cpp_v8/ide/main_window.cc | aabtop/reify | ddc7ce0250ecba78755eaa4793ad8135e4009131 | [
"MIT"
] | null | null | null | #include "src/idt/targets/typescript_cpp_v8/ide/main_window.h"
#include <QCloseEvent>
#include <QFileDialog>
#include <QMessageBox>
#include <QProgressBar>
#include <QWebEngineView>
#include <fstream>
#include <sstream>
#include "reify/window/window_viewport.h"
#include "src/idt/targets/typescript_cpp_v8/ide/about_di... | 30.429561 | 79 | 0.659001 | aabtop |
27809e365e89699f3957d50c645b2f3a601a53d7 | 34,859 | cpp | C++ | libraries/chain/das33_evaluator.cpp | powerchain-ltd/greenpower-blockchain | ff04c37f2de11677c3a34889fdede1256a3e5e02 | [
"MIT"
] | 1 | 2021-07-26T02:42:01.000Z | 2021-07-26T02:42:01.000Z | libraries/chain/das33_evaluator.cpp | green-powerchain-ltd/greenpower-blockchain | ff04c37f2de11677c3a34889fdede1256a3e5e02 | [
"MIT"
] | null | null | null | libraries/chain/das33_evaluator.cpp | green-powerchain-ltd/greenpower-blockchain | ff04c37f2de11677c3a34889fdede1256a3e5e02 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2018 Tech Solutions Malta LTD
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... | 39.477916 | 166 | 0.654092 | powerchain-ltd |
278116895e8d48381c414cebd5e2d4ca755c6b44 | 4,650 | cpp | C++ | src/caffe/layers/dice_loss_layer.cpp | superxuang/caffe_3d_crf_rnn | a99e99848156a4f3592ab58a89c9aec47dd2aacb | [
"BSD-2-Clause"
] | 9 | 2017-12-05T06:08:31.000Z | 2018-09-10T13:49:12.000Z | src/caffe/layers/dice_loss_layer.cpp | superxuang/caffe_3d_crf_rnn | a99e99848156a4f3592ab58a89c9aec47dd2aacb | [
"BSD-2-Clause"
] | 3 | 2018-04-10T08:01:02.000Z | 2019-08-21T02:25:47.000Z | src/caffe/layers/dice_loss_layer.cpp | superxuang/caffe_3d_crf_rnn | a99e99848156a4f3592ab58a89c9aec47dd2aacb | [
"BSD-2-Clause"
] | 2 | 2018-04-08T12:28:41.000Z | 2021-07-11T11:10:40.000Z | #include <algorithm>
#include <vector>
#include "caffe/layers/dice_loss_layer.hpp"
#include "caffe/util/math_functions.hpp"
#include <itkImage.h>
#include <itkSmartPointer.h>
#include <itkImageFileReader.h>
#include <itkImageFileWriter.h>
using std::floor;
using std::max;
using std::min;
using std::pow;
namespace c... | 32.517483 | 102 | 0.575699 | superxuang |
278298565d3f8dd1ff26bf496ab254ebe16193d0 | 3,690 | cpp | C++ | compiler-rt/lib/tsan/rtl/tsan_vector_clock.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | compiler-rt/lib/tsan/rtl/tsan_vector_clock.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | compiler-rt/lib/tsan/rtl/tsan_vector_clock.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | //===-- tsan_vector_clock.cpp ---------------------------------------------===//
//
// 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
//
//===---------------------------... | 29.055118 | 80 | 0.626287 | mkinsner |
278357ca83e70f7bbce93b767dad4bbd28a0575b | 1,785 | cpp | C++ | Engine/src/Core/delta.cpp | SpectralCascade/ossium | f9d00de8313c0f91942eb311c20de8d74aa41735 | [
"MIT"
] | 1 | 2019-01-02T15:35:05.000Z | 2019-01-02T15:35:05.000Z | Engine/src/Core/delta.cpp | SpectralCascade/ossium | f9d00de8313c0f91942eb311c20de8d74aa41735 | [
"MIT"
] | 2 | 2018-11-11T21:29:05.000Z | 2019-01-02T15:34:10.000Z | Engine/src/Core/delta.cpp | SpectralCascade/ossium | f9d00de8313c0f91942eb311c20de8d74aa41735 | [
"MIT"
] | null | null | null | /** COPYRIGHT NOTICE
*
* Ossium Engine
* Copyright (c) 2018-2020 Tim Lane
*
* 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... | 26.25 | 247 | 0.634174 | SpectralCascade |
959836b7bb5d2a6d9ef359b80cadc6dd375bc176 | 8,235 | cpp | C++ | SOURCES/f4compress/f4compress.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/f4compress/f4compress.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/f4compress/f4compress.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | // F4Compress.cpp
// Miro "Jammer" Torrielli - 12May04
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include "F4Compress.h"
#include "F4Thread.h"
#include "setup.h"
#include "f4find.h"
#include "dxtlib.h"
#include "nvdxt.h"
#include "fartex.h"
#include "texbank.h"
#include "terrtex.h"
#include "dispcfg.... | 27.178218 | 103 | 0.729326 | IsraelyFlightSimulator |
959a5325d288d1a44510774065188038773ed876 | 771 | hpp | C++ | core/include/giygas/RenderPass.hpp | galaxgames/giygas | af0147d737f5fea6a4653f98df44594f55d76d58 | [
"Apache-2.0"
] | 1 | 2017-08-29T17:09:30.000Z | 2017-08-29T17:09:30.000Z | core/include/giygas/RenderPass.hpp | galaxgames/giygas | af0147d737f5fea6a4653f98df44594f55d76d58 | [
"Apache-2.0"
] | null | null | null | core/include/giygas/RenderPass.hpp | galaxgames/giygas | af0147d737f5fea6a4653f98df44594f55d76d58 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cstddef>
#include "AttachmentPurpose.hpp"
#include "RenderTarget.hpp"
namespace giygas {
class RenderPassAttachment {
public:
AttachmentPurpose purpose;
const RenderTarget *target;
};
class RenderPassCreateParameters {
public:
uint32_t attachment_co... | 24.870968 | 74 | 0.670558 | galaxgames |
959ad0898baad8a3d871e3b0e57920d301d341a1 | 21,048 | cpp | C++ | src/imgdraw2d/src/Painter.cpp | anetczuk/image-drawer-2d | 22a76e0b7869c030b69cb9299bf59e5c273de7ad | [
"MIT"
] | null | null | null | src/imgdraw2d/src/Painter.cpp | anetczuk/image-drawer-2d | 22a76e0b7869c030b69cb9299bf59e5c273de7ad | [
"MIT"
] | null | null | null | src/imgdraw2d/src/Painter.cpp | anetczuk/image-drawer-2d | 22a76e0b7869c030b69cb9299bf59e5c273de7ad | [
"MIT"
] | null | null | null | /// MIT License
///
/// Copyright (c) 2019 Arkadiusz Netczuk <dev.arnet@gmail.com>
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentation files (the "Software"), to deal
/// in the Software without restriction, including without limitation ... | 40.244742 | 197 | 0.506889 | anetczuk |
959c58d6d25c6fae6c9a78930f7371845eb3733b | 270 | cc | C++ | string.cc | garryFromGermany/shared_with_phil | fea4b0243d3c9f559cab0b8864472743851630c5 | [
"MIT"
] | null | null | null | string.cc | garryFromGermany/shared_with_phil | fea4b0243d3c9f559cab0b8864472743851630c5 | [
"MIT"
] | null | null | null | string.cc | garryFromGermany/shared_with_phil | fea4b0243d3c9f559cab0b8864472743851630c5 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
using namespace std; //ohne das funktioniert string nicht!
int main(int argc, char const *argv[]) {
string hallo = "hallo";
string _welt = " Welt";
string botschaft = hallo + _welt;
std::cout << botschaft << '\n';
return 0;
}
| 18 | 60 | 0.674074 | garryFromGermany |
959e524733283c0d3b1a397136833f0bb4c716d3 | 1,591 | cpp | C++ | Engine/source/EtRendering/GraphicsContext/ContextHolder.cpp | asheraryam/ETEngine | cac9b62146bfd2fe249a53eb8031cbbbd1db0931 | [
"MIT"
] | 552 | 2017-08-21T18:12:52.000Z | 2022-03-31T15:41:56.000Z | Engine/source/EtRendering/GraphicsContext/ContextHolder.cpp | asheraryam/ETEngine | cac9b62146bfd2fe249a53eb8031cbbbd1db0931 | [
"MIT"
] | 14 | 2017-08-07T23:36:13.000Z | 2021-05-10T08:41:19.000Z | Engine/source/EtRendering/GraphicsContext/ContextHolder.cpp | asheraryam/ETEngine | cac9b62146bfd2fe249a53eb8031cbbbd1db0931 | [
"MIT"
] | 40 | 2017-10-10T14:42:22.000Z | 2022-03-10T07:14:33.000Z | #include "stdafx.h"
#include "ContextHolder.h"
namespace et {
namespace render {
//================
// Context Holder
//================
// static stuff
//--------------
//-------------------------
// ContextHolder::Instance
//
// Global singleton access
//
ContextHolder& ContextHolder::Instance()
{
static Cont... | 19.8875 | 78 | 0.665619 | asheraryam |
95a416c4b0b02741af8f1d632eced45893801dfe | 474 | cpp | C++ | CAX/gm_cloudauthx/bootil/src/Bootil/File/System.cpp | kurozael/project-archive | dcac1a9a8dee65c11f4a631ec08d6eef320f5ad0 | [
"MIT"
] | 13 | 2021-06-30T15:47:33.000Z | 2021-09-18T15:44:34.000Z | lib/GWEN-master/gwen/src/Bootil/File/System.cpp | mpavlinsky/bobsgame | dd4c0713828594ef601c61785164b3fa41e27e2a | [
"Unlicense"
] | null | null | null | lib/GWEN-master/gwen/src/Bootil/File/System.cpp | mpavlinsky/bobsgame | dd4c0713828594ef601c61785164b3fa41e27e2a | [
"Unlicense"
] | 7 | 2021-06-30T17:14:41.000Z | 2021-10-14T01:41:18.000Z |
#include "Bootil/Bootil.h"
namespace Bootil
{
BOOTIL_EXPORT File::System FileSystem( "" );
namespace File
{
System::System()
{
}
System::System( BString strInitalPath )
{
AddPath( strInitalPath );
}
void System::AddPath( BString strPath )
{
// Clean Path
strPath = File::RelativeToAbsol... | 15.290323 | 49 | 0.624473 | kurozael |
95a76c4340c52efd3aa26ea52e35f606abe5f3df | 706 | hpp | C++ | meta/include/mgs/meta/concepts/equality_comparable.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | 24 | 2020-07-01T13:45:50.000Z | 2021-11-04T19:54:47.000Z | meta/include/mgs/meta/concepts/equality_comparable.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | null | null | null | meta/include/mgs/meta/concepts/equality_comparable.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <tuple>
#include <type_traits>
#include <mgs/meta/concepts/weakly_equality_comparable_with.hpp>
namespace mgs
{
namespace meta
{
template <typename T>
struct is_equality_comparable : is_weakly_equality_comparable_with<T, T>
{
using requirements = std::tuple<>;
static constexpr int trigger_... | 21.393939 | 75 | 0.74221 | theodelrieu |
95a857c5e72e53b07287cb36ae32db8f5a01a644 | 307 | cpp | C++ | aoj/volume0/n0013/Main.cpp | KoKumagai/exercises | 256b226d3e094f9f67352d75619b392a168eb4d1 | [
"MIT"
] | null | null | null | aoj/volume0/n0013/Main.cpp | KoKumagai/exercises | 256b226d3e094f9f67352d75619b392a168eb4d1 | [
"MIT"
] | null | null | null | aoj/volume0/n0013/Main.cpp | KoKumagai/exercises | 256b226d3e094f9f67352d75619b392a168eb4d1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
using namespace std;
int main() {
stack<int> stack;
int num;
while (cin >> num) {
if (num == 0) {
cout << stack.top() << endl;
stack.pop();
} else {
stack.push(num);
}
}
return 0;
}
| 12.28 | 40 | 0.436482 | KoKumagai |
95b308f9a7b9c2c544e4ee5538f492d7d5ecd25a | 627 | cpp | C++ | src/entity.cpp | Necrys/ecs | e5805f08adf82fb716650c56a0debd035ccb9719 | [
"MIT"
] | null | null | null | src/entity.cpp | Necrys/ecs | e5805f08adf82fb716650c56a0debd035ccb9719 | [
"MIT"
] | null | null | null | src/entity.cpp | Necrys/ecs | e5805f08adf82fb716650c56a0debd035ccb9719 | [
"MIT"
] | null | null | null | #include "entity.h"
namespace ecs {
entity::entity( const eid_t id, registry* owner ):
m_owner( owner ),
m_id( id ) {
}
entity::entity( const entity& e ):
m_owner( e.m_owner ),
m_id( e.m_id ) {
}
entity::entity( entity&& e ):
m_owner( e.m_owner ),
m_id( e.m_id ) {
}
entity& entity::o... | 15.292683 | 51 | 0.572568 | Necrys |
95b774c9b5927e837ff8d4de0dff1a6289970ec2 | 651 | hpp | C++ | core/include/giygas/Vector2.hpp | galaxgames/giygas | af0147d737f5fea6a4653f98df44594f55d76d58 | [
"Apache-2.0"
] | 1 | 2017-08-29T17:09:30.000Z | 2017-08-29T17:09:30.000Z | core/include/giygas/Vector2.hpp | galaxgames/giygas | af0147d737f5fea6a4653f98df44594f55d76d58 | [
"Apache-2.0"
] | null | null | null | core/include/giygas/Vector2.hpp | galaxgames/giygas | af0147d737f5fea6a4653f98df44594f55d76d58 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <giygas/export.h>
namespace giygas {
class GIYGAS_EXPORT Vector2 {
public:
float x, y;
Vector2() = default; // Default in header to allow default value initialization
Vector2(float x, float y);
Vector2 operator+(const Vector2 &other) const;
Vecto... | 28.304348 | 88 | 0.634409 | galaxgames |
95c55c159b6f0382184069739e893e44d0bdb1e7 | 657 | cpp | C++ | luogu/1353.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | luogu/1353.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | luogu/1353.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define N 10020
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
int d[N], f[N][520];
int main(int argc, char const *a... | 24.333333 | 60 | 0.480974 | swwind |
95cb0d66bc56b0af40680117d928dec5336e9f98 | 1,704 | cc | C++ | src/sepia/ppdtable/allrand.cc | mahmoudimus/flamingo | 61b46a9f57c9aa4050b0dd8b95a44e1abef0d006 | [
"Unlicense"
] | 4 | 2018-08-23T08:05:33.000Z | 2019-06-13T09:23:27.000Z | src/sepia/ppdtable/allrand.cc | mahmoudimus/flamingo | 61b46a9f57c9aa4050b0dd8b95a44e1abef0d006 | [
"Unlicense"
] | null | null | null | src/sepia/ppdtable/allrand.cc | mahmoudimus/flamingo | 61b46a9f57c9aa4050b0dd8b95a44e1abef0d006 | [
"Unlicense"
] | null | null | null | /*
$Id: allrand.cc 4143 2008-12-08 23:23:55Z abehm $
Copyright (C) 2007 by The Regents of the University of California
Redistribution of this file is permitted under the terms of the
BSD license
Date: 01/14/2006
Author: Rares Vernica <rares (at) ics.uci.edu>
*/
#include "allrand.h"
AllRand::AllRand(co... | 23.666667 | 76 | 0.532277 | mahmoudimus |
95cb4bc38f61158f67c6779d526c38da45b8ecc4 | 5,108 | cc | C++ | Sources/OpenGL sb6/Chapter12/_1214_bumpmap.cc | liliilli/SH-GraphicsStudy | 314af5ad6ec04b91ec86978c60cc2f96db6a1d7c | [
"Unlicense"
] | 3 | 2019-11-23T16:37:22.000Z | 2021-05-02T20:43:27.000Z | Sources/OpenGL sb6/Chapter12/_1214_bumpmap.cc | liliilli/SH-GraphicsStudy | 314af5ad6ec04b91ec86978c60cc2f96db6a1d7c | [
"Unlicense"
] | 3 | 2018-05-01T04:52:39.000Z | 2018-05-10T02:14:46.000Z | Sources/OpenGL sb6/Chapter12/_1214_bumpmap.cc | liliilli/GraphicsStudy | 314af5ad6ec04b91ec86978c60cc2f96db6a1d7c | [
"Unlicense"
] | 2 | 2019-11-23T16:37:38.000Z | 2022-03-29T10:33:32.000Z | #include <sb6.h>
#include <vmath.h>
#include <object.h>
#include <sb6ktx.h>
#include <shader.h>
#include <cstdio>
class BumpMapping final : public sb6::application {
protected:
void init() override final {
application::init();
constexpr char title[] = "OpenGL SuperBible - Bump Mapping";
... | 33.385621 | 115 | 0.575959 | liliilli |
95ce972a7d8a455e2005476e82fc2db67f9f40cc | 404 | cpp | C++ | src/mapping.cpp | markplagge/NeMoXe | 88bee315ba75d0ea057626b7dae5eab98ddb1ef3 | [
"MIT"
] | null | null | null | src/mapping.cpp | markplagge/NeMoXe | 88bee315ba75d0ea057626b7dae5eab98ddb1ef3 | [
"MIT"
] | 7 | 2019-03-25T16:55:49.000Z | 2019-03-25T17:03:28.000Z | src/mapping.cpp | markplagge/NeMoXe | 88bee315ba75d0ea057626b7dae5eab98ddb1ef3 | [
"MIT"
] | null | null | null | //
// Created by Mark Plagge on 2019-02-20.
//
#include "mapping.h"
nemo_id_type get_core_from_gid(tw_lpid gid){
// Assuming a linear map for now
// since GIDs are 0-n, the gid will be == to the core#.
return (nemo_id_type) gid;
}
tw_lpid lpTypeMapper(tw_lp gid){
return 0; // all lps are cores right ... | 20.2 | 59 | 0.680693 | markplagge |
95d10dd36caaa19a16a1b66676be84296154bb23 | 1,540 | cpp | C++ | tests/userio_vadd_prbs_test/src_pers/PersPrbsTx_prim.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | tests/userio_vadd_prbs_test/src_pers/PersPrbsTx_prim.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | tests/userio_vadd_prbs_test/src_pers/PersPrbsTx_prim.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | #include "Ht.h"
#include "PersPrbsTx_prim.h"
ht_prim ht_clk("clk") void prbs_gen (
bool const & rst,
bool const & i_req,
bool & o_rdy,
bool & o_vld,
ht_uint64 & o_res_lower,
ht_uint64 & o_res_upper,
prbs_gen_prm_state &s)
{
#ifndef _HTV
// NOTE! This does not accurately model the verilog.
// This cheats and... | 24.0625 | 80 | 0.604545 | TonyBrewer |
95d401c3b53c01ad8110a4d8e7d1f987e889a3b0 | 1,046 | cpp | C++ | YorozuyaGSLib/source/si_effect.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/si_effect.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/si_effect.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <si_effect.hpp>
START_ATF_NAMESPACE
char si_effect::GetCountOfEffect()
{
using org_ptr = char (WINAPIV*)(struct si_effect*);
return (org_ptr(0x1402e3c90L))(this);
};
char si_effect::GetCountOfItem()
{
using org_ptr = char (WINAPIV*)(struct si_effect*);
retu... | 29.055556 | 83 | 0.628107 | lemkova |
95de0250701d2a73c305af090721e54d2db0b298 | 3,564 | hpp | C++ | cyberdog_interaction/cyberdog_audio/audio_base/include/audio_base/mempool.hpp | gitter-badger/cyberdog_ros2 | f995b3cbf5773a47cd2d7293b0622d91fb409cdc | [
"Apache-2.0"
] | 284 | 2021-09-15T12:31:22.000Z | 2022-03-31T01:16:13.000Z | cyberdog_interaction/cyberdog_audio/audio_base/include/audio_base/mempool.hpp | gitter-badger/cyberdog_ros2 | f995b3cbf5773a47cd2d7293b0622d91fb409cdc | [
"Apache-2.0"
] | 85 | 2021-09-18T03:44:26.000Z | 2022-03-23T12:32:55.000Z | cyberdog_interaction/cyberdog_audio/audio_base/include/audio_base/mempool.hpp | gitter-badger/cyberdog_ros2 | f995b3cbf5773a47cd2d7293b0622d91fb409cdc | [
"Apache-2.0"
] | 94 | 2021-09-15T14:40:14.000Z | 2022-03-30T06:50:11.000Z | // Copyright (c) 2021 Beijing Xiaomi Mobile Software Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | 24.244898 | 100 | 0.612795 | gitter-badger |
95df37eb6785a86315a1b69a2e0cdfdf1f58f9cd | 412 | cc | C++ | test/clRuntime.cc | xianggong/microbench | 2cc24f32f47b186f43ed50d0af5cd5830f0aeee6 | [
"Apache-2.0"
] | null | null | null | test/clRuntime.cc | xianggong/microbench | 2cc24f32f47b186f43ed50d0af5cd5830f0aeee6 | [
"Apache-2.0"
] | null | null | null | test/clRuntime.cc | xianggong/microbench | 2cc24f32f47b186f43ed50d0af5cd5830f0aeee6 | [
"Apache-2.0"
] | null | null | null | #include <clUtil/clRuntime.h>
using namespace clHelper;
int main(int argc, char const *argv[])
{
clRuntime *runtime = clRuntime::getInstance();
cl_platform_id platform = runtime->getPlatformID();
cl_device_id device = runtime->getDevice();
cl_context context = runtime->getContext(... | 27.466667 | 60 | 0.650485 | xianggong |
95e12b300102b5153fb30c7084955ecadb5faf43 | 1,387 | cpp | C++ | Contests/_Archived/Old-Lab/lg1162.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | Contests/_Archived/Old-Lab/lg1162.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | Contests/_Archived/Old-Lab/lg1162.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 30 + 5;
const int direct[4][2] = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}};
int sqr[MAXN][MAXN], vis[MAXN][MAXN];
int n;
void bfs(int x, int y)
{
//printf("(%d, %d)now\n", x, y);
if (sqr[x][y])
{
//printf("(%d, %d) is %d, so back\n", x, y, sqr[x][y]);
ret... | 16.914634 | 91 | 0.42682 | DCTewi |
95e7384626f5cca9f288a4474d12dc8cdc8a861d | 860 | hpp | C++ | Support/Modules/GSRoot/StringComparison.hpp | graphisoft-python/TextEngine | 20c2ff53877b20fdfe2cd51ce7abdab1ff676a70 | [
"Apache-2.0"
] | 3 | 2019-07-15T10:54:54.000Z | 2020-01-25T08:24:51.000Z | Support/Modules/GSRoot/StringComparison.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | null | null | null | Support/Modules/GSRoot/StringComparison.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | 1 | 2020-09-26T03:17:22.000Z | 2020-09-26T03:17:22.000Z | // *********************************************************************************************************************
// Description: String comparison algorithms
//
// Module: GSRoot
// Namespace: GS
// Contact person: TBa
//
// SG compatible
// ******************************************************************... | 25.294118 | 170 | 0.544186 | graphisoft-python |
95eb7755a67419b34ccfc95eff5645104063a4da | 5,050 | cpp | C++ | LibSharpPhysX/Generated/PxVec2.cpp | Alan-FGR/SharpPhysX | 9b6b49d34c94e2fd165ff50795ae36b32149751b | [
"MIT"
] | 23 | 2019-03-17T17:35:06.000Z | 2022-01-12T01:54:43.000Z | LibSharpPhysX/Generated/PxVec2.cpp | Alan-FGR/SharpPhysX | 9b6b49d34c94e2fd165ff50795ae36b32149751b | [
"MIT"
] | 1 | 2019-05-10T22:14:33.000Z | 2019-05-10T22:48:29.000Z | LibSharpPhysX/Generated/PxVec2.cpp | Alan-FGR/SharpPhysX | 9b6b49d34c94e2fd165ff50795ae36b32149751b | [
"MIT"
] | 5 | 2019-03-17T17:36:03.000Z | 2021-08-06T06:42:58.000Z | // Generated by minBND 5.1.94.90 - © github.com/Alan-FGR
ES void PxVec2_operator_Ptr_Star_float_PxVec2_(physx::PxVec2* nRetRef, float wrp_f, physx::PxVec2* wrp_v){
*nRetRef = ::physx::operator*(wrp_f, *wrp_v);
}
ES void void_PxVec2_PxVec2Ptr_Ctor(physx::PxVec2* wrp_this){
*wrp_this = ::physx::PxVec2::PxVec2()... | 37.407407 | 125 | 0.749703 | Alan-FGR |
95eecabf82ee02e8f92fdd92a0bd5bcbebba17ad | 2,028 | cc | C++ | mysqlshdk/libs/utils/rate_limit.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 119 | 2016-04-14T14:16:22.000Z | 2022-03-08T20:24:38.000Z | mysqlshdk/libs/utils/rate_limit.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 9 | 2017-04-26T20:48:42.000Z | 2021-09-07T01:52:44.000Z | mysqlshdk/libs/utils/rate_limit.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 51 | 2016-07-20T05:06:48.000Z | 2022-03-09T01:20:53.000Z | /*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,
* as published by the Free Software Foundation.
*
* This program is also distributed with... | 33.8 | 80 | 0.730769 | mueller |
95f1603850715dedd2ed56f768dc9b17492b255f | 3,568 | cxx | C++ | vital/tests/test_algorithm_capabilities.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | 1 | 2020-10-14T18:22:42.000Z | 2020-10-14T18:22:42.000Z | vital/tests/test_algorithm_capabilities.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | 4 | 2021-03-19T00:52:41.000Z | 2022-03-11T23:48:06.000Z | vital/tests/test_algorithm_capabilities.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | /*ckwg +29
* Copyright 2016-2017 by Kitware, Inc.
* 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 li... | 33.660377 | 81 | 0.622478 | neal-siekierski |
95f37c94da74161d3dbc71f4473765432385b96e | 504 | cpp | C++ | Cplus/MagicalString.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/MagicalString.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | Cplus/MagicalString.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | #include <queue>
using namespace std;
class Solution
{
public:
int magicalString(int n)
{
if (n == 0)
return 0;
if (n <= 3)
return 1;
n -= 3;
queue<int> q; //number of count
q.push(2);
int elements = 2, res = 1;
while (--n >= 0)
{
int count = q.front();
q.pop();
elements = 3 - elements... | 14.4 | 33 | 0.5 | JumHorn |
95f9155a89c822ebf1eea86e6a52bcdec8cca45f | 2,007 | cpp | C++ | win32-OpenGL/Math/MyMath.cpp | Peanoquio/fuzzy-logic-demo | 100a64094adb2d5274c32761ed4ede15b912dd90 | [
"MIT"
] | null | null | null | win32-OpenGL/Math/MyMath.cpp | Peanoquio/fuzzy-logic-demo | 100a64094adb2d5274c32761ed4ede15b912dd90 | [
"MIT"
] | null | null | null | win32-OpenGL/Math/MyMath.cpp | Peanoquio/fuzzy-logic-demo | 100a64094adb2d5274c32761ed4ede15b912dd90 | [
"MIT"
] | null | null | null | /******************************************************************************/
/*!
\file MyMath.cpp
\author Oliver Ryan Chong
\par email: oliver.chong\@digipen.edu
\par oliver.chong 900863
\par Course: CS1250
\par Project #01
\date 12/12/2011
\brief
This contains general math functions such as converting degree to ra... | 23.337209 | 100 | 0.476831 | Peanoquio |
95fbbfdc15a491fb2611c6246bdd215a3e5bc6fe | 723 | hpp | C++ | includes/function.hpp | ggjulio/ft_containers | 77e221965e9c0813a4e20673d82eaa84814fe369 | [
"MIT"
] | null | null | null | includes/function.hpp | ggjulio/ft_containers | 77e221965e9c0813a4e20673d82eaa84814fe369 | [
"MIT"
] | null | null | null | includes/function.hpp | ggjulio/ft_containers | 77e221965e9c0813a4e20673d82eaa84814fe369 | [
"MIT"
] | null | null | null | #ifndef FUNCTION_HPP
#define FUNCTION_HPP
namespace ft
{
template <typename T>
struct _Identity
: public std::unary_function<T, T>
{
T &operator()(T &__x) const { return __x; }
const T &operator()(const T &__x) const { return __x; }
};
// Partial specialization, avoids confusing errors in e.g. std::set<const T>.... | 24.1 | 77 | 0.704011 | ggjulio |
95fbf95f5c0018f113b5ae5e3df3964b94ed1255 | 3,380 | cpp | C++ | src/ros_node.cpp | pcdangio/ros-interface_quad_encoder | af2cc49acbde8f5684a65b16a18f50d54d0cdc87 | [
"MIT"
] | null | null | null | src/ros_node.cpp | pcdangio/ros-interface_quad_encoder | af2cc49acbde8f5684a65b16a18f50d54d0cdc87 | [
"MIT"
] | 1 | 2019-05-26T18:25:43.000Z | 2019-05-26T18:25:43.000Z | src/ros_node.cpp | pcdangio/ros-interface_quad_encoder | af2cc49acbde8f5684a65b16a18f50d54d0cdc87 | [
"MIT"
] | null | null | null | #include "ros_node.h"
#include <sensor_msgs_ext/axis_state.h>
// CONSTRUCTORS
ros_node::ros_node(const std::shared_ptr<driver>& device_driver)
{
// Store the device driver.
ros_node::m_driver = device_driver;
// Read parameters.
ros::NodeHandle private_node("~");
int param_gpio_a = private_node.p... | 34.489796 | 159 | 0.667456 | pcdangio |
95ff7abd8b0480ae9ce37be998e132d94adee237 | 149,925 | cpp | C++ | SU2-Quantum/Common/src/geometry/CGeometry.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/Common/src/geometry/CGeometry.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/Common/src/geometry/CGeometry.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | 1 | 2021-12-03T06:40:08.000Z | 2021-12-03T06:40:08.000Z | /*!
* \file CGeometry.cpp
* \brief Implementation of the base geometry class.
* \author F. Palacios, T. Economon
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.org)
*
* Copyright 2012-2020, SU2 Co... | 37.565773 | 376 | 0.637786 | Agony5757 |
95ff7e72f7b11e970e76d2b783dc427a2ee43bc7 | 2,409 | cpp | C++ | PrintMatrix.cpp | ChenliangLi205/NowCoder | 44e79800b56410d1094f18fbb656fadf724b7b21 | [
"MIT"
] | null | null | null | PrintMatrix.cpp | ChenliangLi205/NowCoder | 44e79800b56410d1094f18fbb656fadf724b7b21 | [
"MIT"
] | null | null | null | PrintMatrix.cpp | ChenliangLi205/NowCoder | 44e79800b56410d1094f18fbb656fadf724b7b21 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> printMatrix(vector<vector<int> > matrix) {
vector<int> res;
int rows = matrix.size();
if(rows == 0) return res;
int cols = matrix[0].size();
if(rows == 1) res = matrix[0];
else if(cols == 1)
{
for(vector<int> v ... | 27.067416 | 60 | 0.249896 | ChenliangLi205 |
2509df06c17514df361233d4520819d0ffde9a5d | 3,833 | cpp | C++ | mount_player/mount_player/mount_player/coordinate_computation.cpp | lfyos/MountPlayer | 0794bc24e3ff0ba1a85492708c8530b6d5fb70d2 | [
"MIT"
] | 3 | 2019-03-09T05:08:53.000Z | 2019-04-01T23:37:28.000Z | mount_player/mount_player/mount_player/coordinate_computation.cpp | lfyos/MountPlayer | 0794bc24e3ff0ba1a85492708c8530b6d5fb70d2 | [
"MIT"
] | null | null | null | mount_player/mount_player/mount_player/coordinate_computation.cpp | lfyos/MountPlayer | 0794bc24e3ff0ba1a85492708c8530b6d5fb70d2 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "coordinate_computation.h"
#include "const.h"
#include <math.h>
coordinate_computation::coordinate_computation(void)
{
}
coordinate_computation::~coordinate_computation(void)
{
}
void coordinate_computation::load_identity_matrix(double a[4][4])
{
int i,j;
for(i=0;i<4;i++){
for(j=0;j... | 19.456853 | 137 | 0.55257 | lfyos |
250bd12707f9259986dc39f77d0bc29869cfa8ac | 1,742 | cpp | C++ | Codechef/Lapindrome.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | Codechef/Lapindrome.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | Codechef/Lapindrome.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <memory>
#include <iomanip>
#include <numeric>
#include <functional>
#include <new>
#include <algorithm>
#include <cmath>
#include <cstring>... | 21.775 | 75 | 0.509759 | aajjbb |
2513c6bce9ce1265c00e2b3aff8c3ca474f3801d | 12,489 | cpp | C++ | Source/SystemQOR/MSWindows/WinCmpSupQORVC/src/ulldvrm.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinCmpSupQORVC/src/ulldvrm.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinCmpSupQORVC/src/ulldvrm.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //ulldvrm.cpp
// Copyright Querysoft Limited 2013
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and transmit the Softwar... | 39.15047 | 109 | 0.5906 | mfaithfull |
2513e990c0a56640bc12914d583c06513f6e380f | 446 | cpp | C++ | Sail/src/Sail/api/Texture.cpp | h3nx/Sail | 96c13ee50bf9666c01bb8bb263e0c2dc3ba0eff9 | [
"MIT"
] | null | null | null | Sail/src/Sail/api/Texture.cpp | h3nx/Sail | 96c13ee50bf9666c01bb8bb263e0c2dc3ba0eff9 | [
"MIT"
] | null | null | null | Sail/src/Sail/api/Texture.cpp | h3nx/Sail | 96c13ee50bf9666c01bb8bb263e0c2dc3ba0eff9 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Texture.h"
#include "Sail/Application.h"
TextureData& Texture::getTextureData(const std::string& filename) const {
// Load the texture file it if is not loaded already
if (!Application::getInstance()->getResourceManager().hasTextureData(filename)) {
Application::getInstance()->getResourc... | 37.166667 | 82 | 0.769058 | h3nx |
2515be69b299f6f6b98eedf7725a8f640ed4b63a | 1,184 | hpp | C++ | src/sha2.hpp | PaulLaux/X3DH-Key-Exchange | a1ad953dc67f89e7321d790b6ea563baec0b2d7a | [
"BSD-2-Clause"
] | 35 | 2017-03-14T09:39:18.000Z | 2021-03-15T09:44:59.000Z | src/sha2.hpp | bernedogit/amber | abfa22a048571e36a68a7c3bbbabbb291a2ceb7d | [
"BSD-2-Clause"
] | null | null | null | src/sha2.hpp | bernedogit/amber | abfa22a048571e36a68a7c3bbbabbb291a2ceb7d | [
"BSD-2-Clause"
] | 1 | 2021-12-09T08:31:07.000Z | 2021-12-09T08:31:07.000Z | #ifndef AMBER_SHA2_HPP
#define AMBER_SHA2_HPP
#include "soname.hpp"
#include <stdint.h>
#include <stddef.h>
namespace amber { namespace AMBER_SONAME {
class EXPORTFN Sha256 {
enum { blocklen1 = 64 };
size_t tot_len;
size_t len;
uint8_t block [2 * blocklen1];
uint32_t h[8];
void transform (... | 17.671642 | 66 | 0.663851 | PaulLaux |
251e7c2fcfc106b1764c2ea5f15684fcd7d36f1b | 11,647 | cpp | C++ | Source/JavaScriptCore/runtime/Completion.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/JavaScriptCore/runtime/Completion.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/JavaScriptCore/runtime/Completion.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 1999-2001 Harri Porten (porten@kde.org)
* Copyright (C) 2001 Peter Kelly (pmk@post.com)
* Copyright (C) 2003-2019 Apple Inc.
*
* 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 ... | 41.74552 | 187 | 0.755989 | jacadcaps |
251f732c78a3f0b0a8ddc954d3a45955484a9198 | 1,579 | cpp | C++ | code07/counting-sequences.cpp | Feynman1999/Number-Theory-in-Programming-Competition | a7d48c80acb3ff916eca708e82ee7321f98a2d12 | [
"MIT"
] | 12 | 2019-09-02T06:18:23.000Z | 2022-03-11T14:30:24.000Z | code07/counting-sequences.cpp | Feynman1999/Number-Theory-in-Programming-Competition | a7d48c80acb3ff916eca708e82ee7321f98a2d12 | [
"MIT"
] | 2 | 2019-09-03T06:50:53.000Z | 2020-07-03T08:38:56.000Z | code07/counting-sequences.cpp | Feynman1999/Number-Theory-in-Programming-Competition | a7d48c80acb3ff916eca708e82ee7321f98a2d12 | [
"MIT"
] | 1 | 2020-07-19T11:24:44.000Z | 2020-07-19T11:24:44.000Z | const int mod = 1e9+7;
ll ans[3010];
ll help[3010];
ll helpni[3010];
stack<int> sta;
int up = 3000;
int n=3000;
ll fast_exp(ll a,ll b,ll c){
ll res=1;a=a%c;
while(b)
{
if(b&1) res=(res*a)%c;
b>>=1;a=(a*a)%c;
}
return res;
}
void solve(int len)
{
int len2 = sta.size();
assert(... | 18.576471 | 49 | 0.451552 | Feynman1999 |
252138bd2c7021da94f2825dc4566e454566cb84 | 11,977 | cpp | C++ | tools/spinnaker/src/captureManager.cpp | OlegZhavoronkov/tnk_certification | 9ef3544f3fd27073b78e38bba26af76e79f55a78 | [
"Unlicense"
] | null | null | null | tools/spinnaker/src/captureManager.cpp | OlegZhavoronkov/tnk_certification | 9ef3544f3fd27073b78e38bba26af76e79f55a78 | [
"Unlicense"
] | null | null | null | tools/spinnaker/src/captureManager.cpp | OlegZhavoronkov/tnk_certification | 9ef3544f3fd27073b78e38bba26af76e79f55a78 | [
"Unlicense"
] | null | null | null | //------------------------------------------------------------------------------
// Created : 06.08.21
// Author : Victor Kats
// Description : Import Spinnnaker-based capturer into project (see TMKDCL-380)
//------------------------------------------------------------------------------
//
// Created by vi... | 36.18429 | 165 | 0.538282 | OlegZhavoronkov |
252423aefd89f999fa0b3e0d860bedcb94fc69a7 | 7,191 | cc | C++ | test/cpp/interop/istio_echo_server_test.cc | PJB2TY/grpc | 1630efd8ab3d2ff4b006f1288fde1be5c29dc651 | [
"Apache-2.0"
] | null | null | null | test/cpp/interop/istio_echo_server_test.cc | PJB2TY/grpc | 1630efd8ab3d2ff4b006f1288fde1be5c29dc651 | [
"Apache-2.0"
] | null | null | null | test/cpp/interop/istio_echo_server_test.cc | PJB2TY/grpc | 1630efd8ab3d2ff4b006f1288fde1be5c29dc651 | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2022 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 35.59901 | 80 | 0.695035 | PJB2TY |
2524968e50c8e48158cadcc80c8236b6a6bf3147 | 9,907 | hpp | C++ | src/prediction/kalman_filter/include/kalman_filter/generic_state.hpp | rubis-lab/autoware_rubis | 498ec5ff4c448d456fa0c6fe2f17e02fbd13ddb9 | [
"Apache-2.0"
] | null | null | null | src/prediction/kalman_filter/include/kalman_filter/generic_state.hpp | rubis-lab/autoware_rubis | 498ec5ff4c448d456fa0c6fe2f17e02fbd13ddb9 | [
"Apache-2.0"
] | null | null | null | src/prediction/kalman_filter/include/kalman_filter/generic_state.hpp | rubis-lab/autoware_rubis | 498ec5ff4c448d456fa0c6fe2f17e02fbd13ddb9 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 the Autoware Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | 34.399306 | 100 | 0.667508 | rubis-lab |
2524d56db42308ac3715616ea3b73e8cd4be9718 | 2,010 | cpp | C++ | image_manager/ImgManager.cpp | jugurthab/opensource-quest | 793da3833e0a54c0ab16421e6a4f31ade1dc7b50 | [
"MIT"
] | null | null | null | image_manager/ImgManager.cpp | jugurthab/opensource-quest | 793da3833e0a54c0ab16421e6a4f31ade1dc7b50 | [
"MIT"
] | null | null | null | image_manager/ImgManager.cpp | jugurthab/opensource-quest | 793da3833e0a54c0ab16421e6a4f31ade1dc7b50 | [
"MIT"
] | null | null | null |
#include "ImgManager.h"
ImgManager* ImgManager::imgManager = NULL;
void ImgManager::loadImage(std::string imgFilename, std::string imageID){
SDL_Surface *tmpImg = NULL;
SDL_Texture *ImgTexture = NULL;
tmpImg = SDL_LoadBMP(imgFilename.c_str());
if(tmpImg==NULL){
fprintf(stderr, "Cannot Load Ima... | 30 | 170 | 0.682587 | jugurthab |
2526382b05903feefbf85c60f55130e01f78b4f7 | 105 | cpp | C++ | tmp/UI/weChat-master/WeChat/chatnowlistview.cpp | WenbinLiworks/desktopInstantMessagingTools | 85d85b9bde027c1cc88d38a3b1ceab8a411a5e40 | [
"MIT"
] | 26 | 2017-03-27T06:33:26.000Z | 2021-09-25T08:35:05.000Z | tmp/UI/weChat-master/WeChat/chatnowlistview.cpp | WenbinLiworks/desktopInstantMessagingTools | 85d85b9bde027c1cc88d38a3b1ceab8a411a5e40 | [
"MIT"
] | null | null | null | tmp/UI/weChat-master/WeChat/chatnowlistview.cpp | WenbinLiworks/desktopInstantMessagingTools | 85d85b9bde027c1cc88d38a3b1ceab8a411a5e40 | [
"MIT"
] | 15 | 2017-04-26T02:22:38.000Z | 2021-05-15T10:38:55.000Z | #include "chatnowlistview.h"
ChatNowListView::ChatNowListView(QWidget *parent) : QListView(parent)
{
}
| 15 | 69 | 0.771429 | WenbinLiworks |
25276922670d2ce93cd9700599b1f6a544dad8e6 | 4,893 | cpp | C++ | mbed-glove-firmware/drivers/dot_star_leds.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | null | null | null | mbed-glove-firmware/drivers/dot_star_leds.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | null | null | null | mbed-glove-firmware/drivers/dot_star_leds.cpp | apadin1/Team-GLOVE | d5f5134da79d050164dffdfdf87f12504f6b1370 | [
"Apache-2.0"
] | 1 | 2019-01-09T05:16:42.000Z | 2019-01-09T05:16:42.000Z | /*
* Filename: dot_star_leds.cpp
* Project: EECS 473 - Team GLOVE
* Date: Fall 2016
* Authors:
* Nick Bertoldi
* Ben Heckathorn
* Ryan O’Keefe
* Adrian Padin
* Tim Schumacher
*
* Purpose:
* Implementation for interface to DotStar LEDs
* and some helpful functions
*
* Copyr... | 32.838926 | 91 | 0.631719 | apadin1 |
2528847f7bc62f3a20fddbfd3a7c403817b85348 | 2,644 | cpp | C++ | test/bitmap_font_test.cpp | razielgn/leaf-green | b37252c9167f0a4661050c835a8b6a1863fb0cd3 | [
"MIT"
] | 2 | 2015-03-02T21:50:25.000Z | 2016-05-28T00:18:47.000Z | test/bitmap_font_test.cpp | razielgn/leaf-green | b37252c9167f0a4661050c835a8b6a1863fb0cd3 | [
"MIT"
] | null | null | null | test/bitmap_font_test.cpp | razielgn/leaf-green | b37252c9167f0a4661050c835a8b6a1863fb0cd3 | [
"MIT"
] | null | null | null | #include "bitmap_font.hpp"
#include "gmock/gmock.h"
#include "graphics_mock.hpp"
#include "texture_mock.hpp"
namespace green_leaf {
using namespace ::testing;
class BitmapFontTest : public Test {
protected:
BitmapFontTest() { }
std::unique_ptr<TextureMock> texture_ = std::make_unique<TextureMock>(Vect... | 43.344262 | 91 | 0.658472 | razielgn |
252b108f0466b90e07918f9c9b6ca055376243dc | 822 | cpp | C++ | CS Academy/Reversed Number/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | CS Academy/Reversed Number/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | CS Academy/Reversed Number/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created:
* solution_verdict: Accepted language: C++
* run... | 30.444444 | 111 | 0.312652 | kzvd4729 |
252d0cbecbb3d7735adcab81ad4002672be3606f | 1,309 | cpp | C++ | GHJKL.cpp | taareek/c-plus-plus | b9d04f710e9b2e65786618f8bbced4a56c149444 | [
"Unlicense"
] | null | null | null | GHJKL.cpp | taareek/c-plus-plus | b9d04f710e9b2e65786618f8bbced4a56c149444 | [
"Unlicense"
] | null | null | null | GHJKL.cpp | taareek/c-plus-plus | b9d04f710e9b2e65786618f8bbced4a56c149444 | [
"Unlicense"
] | null | null | null | /* Binary tree - Level Order Traversal */
#include<iostream>
#include<queue>
using namespace std;
struct Node {
int data;
Node *left;
Node *right;
};
// Function to print Nodes in a binary tree in Level order
void LevelOrder(Node *root) {
if(root == NULL) return;
queue<Node*> Q;
Q.push(root);
/... | 23.8 | 67 | 0.595875 | taareek |
252d983a052e75302efb7b30b8f9c996c220fffd | 529 | cpp | C++ | 343#integer-break/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | 343#integer-break/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | 343#integer-break/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | class Solution {
public:
int pow (int a, int b) {
int r = 1;
while (b > 0) {
if (b & 1) {
r *= a;
}
a *= a;
b >>= 1;
}
return r;
}
int integerBreak(int n) {
if (n <= 3) return n - 1;
... | 21.16 | 42 | 0.296786 | llwwns |
2531ae703f76da299a485c777491a0572c19dafd | 4,619 | cpp | C++ | wms/Heatmap.cpp | fmidev/smartmet-plugin-wms | 908027c3dbe604c2e220718fd4926aa03673a8d6 | [
"MIT"
] | null | null | null | wms/Heatmap.cpp | fmidev/smartmet-plugin-wms | 908027c3dbe604c2e220718fd4926aa03673a8d6 | [
"MIT"
] | 6 | 2017-01-05T07:19:43.000Z | 2019-10-23T06:21:48.000Z | wms/Heatmap.cpp | fmidev/smartmet-plugin-wms | 908027c3dbe604c2e220718fd4926aa03673a8d6 | [
"MIT"
] | 1 | 2016-12-30T11:10:58.000Z | 2016-12-30T11:10:58.000Z | #include "Heatmap.h"
#include "Config.h"
#include "Hash.h"
#include <macgyver/Exception.h>
#include <stdexcept>
namespace
{
float linearKernel(float d)
{
return d;
}
float sqrtKernel(float d)
{
return sqrtf(d);
}
float expKernel(float d, double deviation)
{
return static_cast<float>(exp(-0.5 * sqrtf(d / devia... | 26.244318 | 97 | 0.54449 | fmidev |
25373e47020a4a0caf7b50957f0d8373fd03d441 | 2,048 | cpp | C++ | test/functional/gfal_test_stat.cpp | dynamic-entropy/gfal2 | 90bc0a58587b986a0d7335f244fd4cfe3079b72f | [
"Apache-2.0"
] | 6 | 2018-08-28T15:20:24.000Z | 2021-09-14T13:03:15.000Z | test/functional/gfal_test_stat.cpp | dynamic-entropy/gfal2 | 90bc0a58587b986a0d7335f244fd4cfe3079b72f | [
"Apache-2.0"
] | 10 | 2020-06-16T09:21:04.000Z | 2022-03-04T13:41:00.000Z | test/functional/gfal_test_stat.cpp | dynamic-entropy/gfal2 | 90bc0a58587b986a0d7335f244fd4cfe3079b72f | [
"Apache-2.0"
] | 6 | 2020-06-13T18:06:41.000Z | 2022-02-21T09:47:56.000Z | /*
* Copyright (c) CERN 2013-2017
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 26.25641 | 83 | 0.660156 | dynamic-entropy |
253865b380cff669a66331a8f7935ee2912361c4 | 9,744 | cpp | C++ | src/renderer/rasterizerenderer.cpp | Nick-Pearson/SoftwareRenderer | 52ff66bb030fab5c3424968bd505123121496786 | [
"CC-BY-3.0"
] | null | null | null | src/renderer/rasterizerenderer.cpp | Nick-Pearson/SoftwareRenderer | 52ff66bb030fab5c3424968bd505123121496786 | [
"CC-BY-3.0"
] | null | null | null | src/renderer/rasterizerenderer.cpp | Nick-Pearson/SoftwareRenderer | 52ff66bb030fab5c3424968bd505123121496786 | [
"CC-BY-3.0"
] | null | null | null | #include "rasterizerenderer.h"
#include "rasterizerenderer.inl"
void RasterizeRenderer::Draw(const Scene* scene)
{
const std::vector<std::shared_ptr<Light>>* Lights = scene->GetLights();
glm::vec3 colour(0.0f, 0.0f, 0.0f);
for (size_t i = 0; i < Lights->size(); ++i)
{
const std::shared_ptr<Light>& light ... | 35.692308 | 223 | 0.660201 | Nick-Pearson |
253977001f6a46fe240f8c6676fa99991eb0ffb9 | 1,313 | cpp | C++ | test/aoj_2444.test.cpp | kmyk/rsk0315-library | 344f8f8c6c8c8951637154d6cb87cfb3dbc50376 | [
"MIT"
] | 7 | 2020-03-30T11:05:43.000Z | 2022-03-24T06:18:38.000Z | test/aoj_2444.test.cpp | kmyk/rsk0315-library | 344f8f8c6c8c8951637154d6cb87cfb3dbc50376 | [
"MIT"
] | null | null | null | test/aoj_2444.test.cpp | kmyk/rsk0315-library | 344f8f8c6c8c8951637154d6cb87cfb3dbc50376 | [
"MIT"
] | 2 | 2021-07-27T05:48:29.000Z | 2022-03-24T06:18:40.000Z | #define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2444"
#include <cstdint>
#include <cstdio>
#include <set>
#include <string>
#include "DataStructure/foldable_deque.cpp"
#include "utility/monoid/rolling_hash.cpp"
#include "ModularArithmetic/modint.cpp"
constexpr intmax_t mod = 998244353;
usin... | 22.254237 | 79 | 0.563595 | kmyk |
253d3dcdf1593d9217a69b9337de9505341d8796 | 46 | hpp | C++ | src/boost_type_traits_is_reference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_type_traits_is_reference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_type_traits_is_reference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/type_traits/is_reference.hpp>
| 23 | 45 | 0.826087 | miathedev |
253e748aa6fc54859c97451abba22d03e6db42fb | 88 | hpp | C++ | include/SplayLibrary/SplayLibrary.hpp | Reiex/SplayLibrary | 94b68f371ea4c662c84dfe2dd0a6d1625b60fb04 | [
"MIT"
] | 1 | 2021-12-14T21:36:39.000Z | 2021-12-14T21:36:39.000Z | include/SplayLibrary/SplayLibrary.hpp | Reiex/SplayLibrary | 94b68f371ea4c662c84dfe2dd0a6d1625b60fb04 | [
"MIT"
] | null | null | null | include/SplayLibrary/SplayLibrary.hpp | Reiex/SplayLibrary | 94b68f371ea4c662c84dfe2dd0a6d1625b60fb04 | [
"MIT"
] | null | null | null | #pragma once
#include <SplayLibrary/Core/Core.hpp>
#include <SplayLibrary/3D/3D.hpp> | 22 | 38 | 0.75 | Reiex |
253e965a8abc8f73c06b9d8bf82376854bead52b | 1,390 | cpp | C++ | demo/csrc/pose_detection.cpp | xizi/mmdeploy | 6f0569156cd93412e4571ccfb6f0c4fbbacf3cdc | [
"Apache-2.0"
] | 746 | 2021-12-27T10:50:28.000Z | 2022-03-31T13:34:14.000Z | demo/csrc/pose_detection.cpp | xizi/mmdeploy | 6f0569156cd93412e4571ccfb6f0c4fbbacf3cdc | [
"Apache-2.0"
] | 253 | 2021-12-28T05:59:13.000Z | 2022-03-31T18:22:25.000Z | demo/csrc/pose_detection.cpp | xizi/mmdeploy | 6f0569156cd93412e4571ccfb6f0c4fbbacf3cdc | [
"Apache-2.0"
] | 147 | 2021-12-27T10:50:33.000Z | 2022-03-30T10:44:20.000Z | #include <fstream>
#include <iostream>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
#include <string>
#include "pose_detector.h"
int main(int argc, char *argv[]) {
if (argc != 4) {
fprintf(stderr, "usage:\n pose_detection device_name model_path image_path\n");
return 1;
}
auto device... | 27.8 | 94 | 0.669065 | xizi |
25418a97588d5aaefad28e92d1abccca7903ab31 | 84,860 | cc | C++ | art/runtime/thread.cc | CanPisces/DexHunter | b8f46563c7f3aeb79cf40db09e1d231649f1a29a | [
"Apache-2.0"
] | 1,306 | 2015-09-01T05:06:16.000Z | 2022-03-10T07:13:10.000Z | art/runtime/thread.cc | cnrat/DexHunter | b8f46563c7f3aeb79cf40db09e1d231649f1a29a | [
"Apache-2.0"
] | 11 | 2015-09-02T09:06:42.000Z | 2020-12-26T04:59:34.000Z | art/runtime/thread.cc | cnrat/DexHunter | b8f46563c7f3aeb79cf40db09e1d231649f1a29a | [
"Apache-2.0"
] | 598 | 2015-09-01T05:06:18.000Z | 2022-03-27T07:59:49.000Z | /*
* 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... | 37.565294 | 156 | 0.683561 | CanPisces |
2543e29cb75e56e598be004776fef44a836d1d3d | 275 | cpp | C++ | src/modules/osgManipulator/generated_code/_osgManipulator_global_variables.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 3 | 2017-04-20T09:11:47.000Z | 2021-04-29T19:24:03.000Z | src/modules/osgManipulator/generated_code/_osgManipulator_global_variables.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | src/modules/osgManipulator/generated_code/_osgManipulator_global_variables.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "wrap_osgManipulator.h"
#include "_osgManipulator_global_variables.pypp.hpp"
namespace bp = boost::python;
void register_global_variables(){
bp::scope().attr("HANDLE_ALL") = HANDLE_ALL;
}
| 19.642857 | 52 | 0.741818 | cmbruns |
8585f5fb5590400408832eab47e7e524d33a076c | 1,625 | cc | C++ | gb/commands/relation.cc | kaladron/galactic-bloodshed | 651676152d2f21b380ef1c3e109edc0d33e622df | [
"Apache-2.0"
] | 5 | 2015-10-05T14:05:34.000Z | 2020-01-21T18:52:11.000Z | gb/commands/relation.cc | kaladron/galactic-bloodshed | 651676152d2f21b380ef1c3e109edc0d33e622df | [
"Apache-2.0"
] | 3 | 2019-09-05T13:16:58.000Z | 2019-09-05T13:32:42.000Z | gb/commands/relation.cc | kaladron/galactic-bloodshed | 651676152d2f21b380ef1c3e109edc0d33e622df | [
"Apache-2.0"
] | 1 | 2015-10-05T14:05:16.000Z | 2015-10-05T14:05:16.000Z | // Copyright 2014 The Galactic Bloodshed Authors. All rights reserved.
// Use of this source code is governed by a license that can be
// found in the COPYING file.
/* relation.c -- state relations among players */
import gblib;
import std;
#include "gb/commands/relation.h"
#include "gb/GB_server.h"
#include "gb/bu... | 29.545455 | 80 | 0.56 | kaladron |
858b0bb6630d1785f860ad4de3c7de67ac7066c7 | 3,121 | hpp | C++ | moe/natj/natj/natj-cxxtests/src/test/native/binding/DynamicTypes.hpp | ark100/multi-os-engine | f71d66a58b3d7e5eb2a68541480b7a0d88c7b908 | [
"Apache-2.0"
] | 3 | 2016-08-25T03:26:16.000Z | 2017-04-23T11:42:36.000Z | moe/natj/natj/natj-cxxtests/src/test/native/binding/DynamicTypes.hpp | ark100/multi-os-engine | f71d66a58b3d7e5eb2a68541480b7a0d88c7b908 | [
"Apache-2.0"
] | 1 | 2016-11-23T03:11:01.000Z | 2016-11-23T03:11:01.000Z | moe/natj/natj/natj-cxxtests/src/test/native/binding/DynamicTypes.hpp | ark100/multi-os-engine | f71d66a58b3d7e5eb2a68541480b7a0d88c7b908 | [
"Apache-2.0"
] | 7 | 2016-09-10T02:19:04.000Z | 2021-07-29T17:19:41.000Z | /*
Copyright 2014-2016 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | 44.585714 | 72 | 0.71067 | ark100 |
858b56c7d4eb686b99abbd2b8130a8ec4961c7d8 | 2,251 | hpp | C++ | src/Cpp/Learning_Cpp/Meta_Programming/Example_IV/ATM_Version_Two.hpp | Ahmopasa/TheCodes | 560ed94190fd0da8cc12285e9b4b5e27b19010a5 | [
"MIT"
] | null | null | null | src/Cpp/Learning_Cpp/Meta_Programming/Example_IV/ATM_Version_Two.hpp | Ahmopasa/TheCodes | 560ed94190fd0da8cc12285e9b4b5e27b19010a5 | [
"MIT"
] | null | null | null | src/Cpp/Learning_Cpp/Meta_Programming/Example_IV/ATM_Version_Two.hpp | Ahmopasa/TheCodes | 560ed94190fd0da8cc12285e9b4b5e27b19010a5 | [
"MIT"
] | null | null | null | #ifndef ATM_VERSION_TWO_HPP
#define ATM_VERSION_TWO_HPP
#include <iostream>
#include <string>
#include <memory>
#include <type_traits>
namespace versionTwo{
class ATM
{
private:
std::string m_identifier{"AhmetKandemirPehlivanli"};
int m_CashAmount{100000};
public:
void showMem... | 23.946809 | 81 | 0.52821 | Ahmopasa |
858bcecb4129c60f99da0b2f39a4dc4cc947a919 | 14,947 | cpp | C++ | slovoed/libraries/native_engine/lib/src/main/cpp/java/java_objects.cpp | ilius/paragon_slovoed_ce | a85d8c7a5cabee5f30fc7403fa44b6ed7022d430 | [
"BSD-3-Clause-Clear"
] | 5 | 2020-09-11T15:55:39.000Z | 2021-11-12T19:11:35.000Z | slovoed/libraries/native_engine/lib/src/main/cpp/java/java_objects.cpp | ilius/paragon_slovoed_ce | a85d8c7a5cabee5f30fc7403fa44b6ed7022d430 | [
"BSD-3-Clause-Clear"
] | null | null | null | slovoed/libraries/native_engine/lib/src/main/cpp/java/java_objects.cpp | ilius/paragon_slovoed_ce | a85d8c7a5cabee5f30fc7403fa44b6ed7022d430 | [
"BSD-3-Clause-Clear"
] | 3 | 2020-09-30T17:00:24.000Z | 2021-12-10T07:27:56.000Z | #include <SldCompare.h>
#include "java_objects.h"
namespace JavaObjects
{
static jclass m_jBooleanClass = nullptr;
static jmethodID m_jBooleanClassCtor = nullptr;
static jmethodID m_jBooleanClassGet = nullptr;
static jclass m_jIntegerClass = nullptr;
static jmethodID m_jIntegerClassCtor = nullptr;
static jmethodID m... | 30.257085 | 147 | 0.725965 | ilius |
8594d7298aa88da4685fb15da26a7e2b0b33d489 | 1,034 | hpp | C++ | uActor/include/controllers/telemetry_actor.hpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | 1 | 2021-09-15T12:41:37.000Z | 2021-09-15T12:41:37.000Z | uActor/include/controllers/telemetry_actor.hpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | null | null | null | uActor/include/controllers/telemetry_actor.hpp | uActor/uActor | 1180db98f48ad447639a3d625573307d87b28902 | [
"MIT"
] | null | null | null | #ifndef UACTOR_INCLUDE_CONTROLLERS_TELEMETRY_ACTOR_HPP_
#define UACTOR_INCLUDE_CONTROLLERS_TELEMETRY_ACTOR_HPP_
#include <string>
#include <string_view>
#include "actor_runtime/native_actor.hpp"
#include "telemetry_data.hpp"
namespace uActor::Controllers {
class TelemetryActor : public ActorRuntime::NativeActor {
... | 31.333333 | 71 | 0.749516 | uActor |
8596f764caaf8323a6d6056876be72ec98b56cd6 | 2,972 | cpp | C++ | src/StartDownloadConnectionInformation.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | null | null | null | src/StartDownloadConnectionInformation.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | 9 | 2017-11-14T06:05:50.000Z | 2018-07-08T18:21:17.000Z | src/StartDownloadConnectionInformation.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | 4 | 2017-11-14T06:04:17.000Z | 2018-08-24T07:39:00.000Z | /**
* Copyright (C) JoyStream - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Bedeho Mender <bedeho.mender@gmail.com>, January 19 2017
*/
#include "StartDownloadConnectionInformation.hpp"
#include "SellerTerms.hpp"
#include "P... | 37.15 | 171 | 0.66319 | JoystreamClassic |
859c4ef2f5a88852afc3c71ae9ece7b5a79fe08b | 1,412 | cpp | C++ | Juego Progra 2/Bomberman/Nivel4.cpp | upcgames/Bomberman-1 | d077af34e0b896281a3b04169d698c03f7f86e91 | [
"MIT"
] | 2 | 2017-06-22T16:44:59.000Z | 2020-11-24T16:46:59.000Z | Juego Progra 2/Bomberman/Nivel4.cpp | upcgames/Bomberman-1 | d077af34e0b896281a3b04169d698c03f7f86e91 | [
"MIT"
] | 1 | 2017-07-07T15:18:09.000Z | 2017-07-07T15:18:09.000Z | Juego Progra 2/Bomberman/Nivel4.cpp | upcgames/Bomberman-1 | d077af34e0b896281a3b04169d698c03f7f86e91 | [
"MIT"
] | 1 | 2020-11-24T16:47:08.000Z | 2020-11-24T16:47:08.000Z | #include "Winform.h"
namespace Bomberman
{
Nivel4::Nivel4()
{
Objetos matriz[9][13] = {
{ oPiso, oPiso, oPiso, oPiso, oCaja, oPiso, oPiso, oPiso, oCaja, oPiso, oCaja, oPiso, oPiso },
{ oPiso, oBloque, oPiso, oBloque, oPiso, oBloque, oPiso, oBloque, oPiso, oBloque, oPiso, oBloque, oPiso },
{ oCaja, oCaja, ... | 54.307692 | 109 | 0.69051 | upcgames |
859e2ee2b541be2122b276a0669e18825cc43a86 | 4,158 | cpp | C++ | iree/compiler/Codegen/Common/ShapeToLLVMConversion.cpp | KKimj/iree | 0d6768c194489225eaa12b3d8eda5752099ae10a | [
"Apache-2.0"
] | 1 | 2020-09-06T12:34:45.000Z | 2020-09-06T12:34:45.000Z | iree/compiler/Codegen/Common/ShapeToLLVMConversion.cpp | KKimj/iree | 0d6768c194489225eaa12b3d8eda5752099ae10a | [
"Apache-2.0"
] | null | null | null | iree/compiler/Codegen/Common/ShapeToLLVMConversion.cpp | KKimj/iree | 0d6768c194489225eaa12b3d8eda5752099ae10a | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The IREE Authors
//
// Licensed 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
#include "iree/compiler/Codegen/Passes.h"
#include "iree/compiler/Dialect/Shape/IR/ShapeOps.h"
#i... | 39.6 | 80 | 0.651275 | KKimj |
85a2332a69317f89c9ce9efe23a16c204ba51695 | 22,654 | cpp | C++ | Plugins/org.mitk.lancet.nodeeditor/src/internal/volumeRegistrator.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | null | null | null | Plugins/org.mitk.lancet.nodeeditor/src/internal/volumeRegistrator.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Plugins/org.mitk.lancet.nodeeditor/src/internal/volumeRegistrator.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | null | null | null | #include "itkCastImageFilter.h"
#include "itkCommand.h"
#include "itkNormalizedCorrelationTwoImageToOneImageMetric.h"
#include "itkPowellOptimizer.h"
#include "itkTwoProjectionImageRegistrationMethod.h"
#include "itkEuler3DTransform.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkRayCas... | 35.068111 | 158 | 0.724155 | zhaomengxiao |
85a251844041754e9c15519365166a9df8cb8587 | 1,708 | hpp | C++ | nginx/third/ngxpp/NgxThread.hpp | lanru/annotated_nginx_wlh | 8eac03dcf5cbf899996d68c01a7e586212e9059a | [
"BSD-2-Clause"
] | 144 | 2015-10-23T06:24:51.000Z | 2022-01-07T07:24:13.000Z | nginx/third/ngxpp/NgxThread.hpp | lanru/annotated_nginx_wlh | 8eac03dcf5cbf899996d68c01a7e586212e9059a | [
"BSD-2-Clause"
] | 7 | 2016-08-25T13:48:25.000Z | 2020-06-08T06:53:05.000Z | nginx/third/ngxpp/NgxThread.hpp | lanru/annotated_nginx_wlh | 8eac03dcf5cbf899996d68c01a7e586212e9059a | [
"BSD-2-Clause"
] | 85 | 2015-11-01T15:11:08.000Z | 2021-11-30T02:39:57.000Z | // Copyright (c) 2017
// Author: Chrono Law
#ifndef _NGX_THREAD_HPP
#define _NGX_THREAD_HPP
#include "NgxPool.hpp"
#include "NgxEvent.hpp"
template<typename T>
class NgxThreadTask final : public NgxWrapper<ngx_thread_task_t>
{
public:
typedef NgxWrapper<ngx_thread_task_t> super_type;
typedef NgxThreadTask ... | 21.08642 | 71 | 0.617096 | lanru |
85a5771737ce590a43955e49c68245765f15910a | 1,986 | cpp | C++ | acmp.ru/222/222.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | acmp.ru/222/222.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | acmp.ru/222/222.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<cmath>
#include<iomanip>
#include<algorithm>
using namespace std;
const int MAXN = 105;
const double PI = double(acos(-1));
const double PI2 = 2*PI;
const double EPS = double(1e-7);
const double EPS_CALC = double(1e-4);
inline double sqr(double a)
{
return a*a;
... | 16.413223 | 74 | 0.493454 | mstrechen |
85ad7eb7a24e786bf63ece3ada719c5086f94818 | 4,179 | cpp | C++ | interfaces/matlab/src/hash.cpp | hcl3210/opencv | b34b1c3540716a3dadfd2b9e3bbc4253774c636d | [
"BSD-3-Clause"
] | 1 | 2016-05-09T11:42:00.000Z | 2016-05-09T11:42:00.000Z | interfaces/matlab/src/hash.cpp | hcl3210/opencv | b34b1c3540716a3dadfd2b9e3bbc4253774c636d | [
"BSD-3-Clause"
] | null | null | null | interfaces/matlab/src/hash.cpp | hcl3210/opencv | b34b1c3540716a3dadfd2b9e3bbc4253774c636d | [
"BSD-3-Clause"
] | 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... | 33.432 | 90 | 0.618808 | hcl3210 |
85aec8009d9f084abcc1309d1b9aa06b27cc4bba | 11,756 | cpp | C++ | midori/src/midori/codegen.cpp | Raekye/hmmm | 74dbbe46357918b1f3c9b2548c340b0050ce7bfe | [
"MIT"
] | 1 | 2016-06-26T06:16:51.000Z | 2016-06-26T06:16:51.000Z | midori/src/midori/codegen.cpp | Raekye/hmmm | 74dbbe46357918b1f3c9b2548c340b0050ce7bfe | [
"MIT"
] | 1 | 2019-08-15T07:29:19.000Z | 2019-08-16T12:17:10.000Z | midori/src/midori/codegen.cpp | Raekye/hmmm | 74dbbe46357918b1f3c9b2548c340b0050ce7bfe | [
"MIT"
] | null | null | null | #include "codegen.h"
#include "types.h"
#include "type_checker.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Bitcode/BitcodeWriter.h"
#include "llvm/E... | 29.39 | 128 | 0.668255 | Raekye |
85b04e6f0e50ddc626894b133b4a86aa49f05441 | 353 | cpp | C++ | Code-Chef/easy/ANUDTC.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | 1 | 2019-05-20T14:38:05.000Z | 2019-05-20T14:38:05.000Z | Code-Chef/easy/ANUDTC.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | null | null | null | Code-Chef/easy/ANUDTC.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main()
{
ll t;
cin>>t;
while(t--)
{
ll n;
cin>>n;
if(360%n==0) cout<<"y ";
else cout<<"n ";
if(n>360) cout<<"n ";
else cout<<"y ";
if(n>=360) cout<<"n\n";
else co... | 14.708333 | 32 | 0.424929 | kishorevarma369 |
85b2db5746b95deadc6961060aa797a334c11dca | 12,550 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/graphics/CRectF.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/graphics/CRectF.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/graphics/CRectF.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... | 21.826087 | 100 | 0.538725 | jingcao80 |
85c1ac949cd858704effd0cb8dba4b4cb6ffefaf | 4,481 | cc | C++ | chromium/ipc/attachment_broker_privileged.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 27 | 2016-04-27T01:02:03.000Z | 2021-12-13T08:53:19.000Z | chromium/ipc/attachment_broker_privileged.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 2 | 2017-03-09T09:00:50.000Z | 2017-09-21T15:48:20.000Z | chromium/ipc/attachment_broker_privileged.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 17 | 2016-04-27T02:06:39.000Z | 2019-12-18T08:07:00.000Z | // Copyright 2015 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 "ipc/attachment_broker_privileged.h"
#include <algorithm>
#include "base/lazy_instance.h"
#include "base/metrics/histogram_macros.h"
#include "... | 30.691781 | 80 | 0.762553 | wedataintelligence |
85c600299cd3fdb47ee6600b941e0cab4bef27e8 | 8,605 | cc | C++ | tests/fdb/type/test_toKey.cc | dvuckovic/fdb | c529bf5293d1f5e33048b1b12e7fdfbf4d7448b2 | [
"Apache-2.0"
] | 5 | 2020-01-03T10:23:05.000Z | 2021-10-21T12:52:47.000Z | tests/fdb/type/test_toKey.cc | dvuckovic/fdb | c529bf5293d1f5e33048b1b12e7fdfbf4d7448b2 | [
"Apache-2.0"
] | null | null | null | tests/fdb/type/test_toKey.cc | dvuckovic/fdb | c529bf5293d1f5e33048b1b12e7fdfbf4d7448b2 | [
"Apache-2.0"
] | 1 | 2021-07-08T16:26:06.000Z | 2021-07-08T16:26:06.000Z | /*
* (C) Copyright 1996- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an interg... | 31.290909 | 149 | 0.625915 | dvuckovic |
85c6e98ea12ac77490c0d5aa8060aa546f1204f7 | 87 | cc | C++ | code/utils/fastio.cc | Zeldacrafter/CompProg | 5367583f45b6fe30c4c84f3ae81accf14f8f7fd3 | [
"Unlicense"
] | 4 | 2020-02-06T15:44:57.000Z | 2020-12-21T03:51:21.000Z | code/utils/fastio.cc | Zeldacrafter/CompProg | 5367583f45b6fe30c4c84f3ae81accf14f8f7fd3 | [
"Unlicense"
] | null | null | null | code/utils/fastio.cc | Zeldacrafter/CompProg | 5367583f45b6fe30c4c84f3ae81accf14f8f7fd3 | [
"Unlicense"
] | null | null | null | #include "../template.hh"
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
}
| 14.5 | 31 | 0.632184 | Zeldacrafter |