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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b040fc5e8660d89b31cbb4d23bb047fdb1f13ad1 | 786 | cpp | C++ | JZ62.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | 6 | 2017-11-18T02:16:35.000Z | 2017-12-17T06:30:40.000Z | JZ62.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | null | null | null | JZ62.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int LastRemaining_Solution(int n, int m)
{
if(n<1||m<1) return -1;
list<int> result;
for(int i=0;i<n;i++)
{
result.push_back(i);
}
list<int>::iterator t =result.begin();
while(result.size()>1)
{
for... | 22.457143 | 46 | 0.362595 | corn1ng |
b0430f832f9fbd41ca8b1c5a7f115e6cd35dc0b0 | 6,194 | cxx | C++ | tests/core/moneta/container/meta_set_test.cxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 2 | 2015-10-09T12:11:54.000Z | 2016-01-20T15:34:33.000Z | tests/core/moneta/container/meta_set_test.cxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | 5 | 2015-07-04T20:31:32.000Z | 2015-07-04T20:44:58.000Z | tests/core/moneta/container/meta_set_test.cxx | madera/Moneta | 4c0da911bceb511d7d1133699b0d85216bb63d74 | [
"BSL-1.0"
] | null | null | null | // [===========================================================================]
// [ M o n e t a ]
// [---------------------------------------------------------------------------]
// [ ... | 28.027149 | 110 | 0.625121 | madera |
b04c9d64c124e157040fbad019374e47aad5a028 | 10,369 | cpp | C++ | data/737.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/737.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/737.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int JF97
, kI
, RExC/**/ , gO ,ZN ,OhTx ,El, di
,H2X
,a9 ,cZ//Ak
,da8 , q/*a*/, nwS
,
yI9 /**/ ,
CLk
,
ibS, RB
,
EREB
, gCqh66D
,NJy
,/**/ OV8R
,
//y
LrQ
, //52
ozXI7P ,vjfp
, UJ, eizU
,zsro
, uE
/*Jitx*/,
giU7Ora , lc
,
Ue7, Zfa ,
LT , gVA ,/*6aTn*/K;void f_f0
() {volatile int qR ,
FRk ... | 10.656732 | 68 | 0.443051 | TianyiChen |
b05196782eb8f30371140df1d34b9fa64c436837 | 1,794 | cpp | C++ | path_follower/src/utils/parameters.cpp | sunarditay/gerona | 7ca6bb169571d498c4a2d627faddc8cbe590d2c9 | [
"BSD-3-Clause"
] | 296 | 2017-06-19T07:06:58.000Z | 2022-03-09T01:27:44.000Z | path_follower/src/utils/parameters.cpp | sunarditay/gerona | 7ca6bb169571d498c4a2d627faddc8cbe590d2c9 | [
"BSD-3-Clause"
] | 29 | 2017-11-07T08:49:12.000Z | 2021-09-21T22:18:28.000Z | path_follower/src/utils/parameters.cpp | sunarditay/gerona | 7ca6bb169571d498c4a2d627faddc8cbe590d2c9 | [
"BSD-3-Clause"
] | 117 | 2017-05-30T10:50:36.000Z | 2022-03-09T01:27:23.000Z | #include <path_follower/utils/parameters.h>
#include <iostream>
using namespace std;
std::vector<Parameters*> Parameters::instances_;
Parameters::Parameters()
: parent_(nullptr),
ns_("~")
{
registerInstance(this);
}
Parameters::Parameters(const std::string& ns)
: parent_(nullptr)
{
if(ns.empty(... | 17.417476 | 111 | 0.590301 | sunarditay |
b05419c49ea3486c4f94ca21891cf678f85bfd44 | 603 | cpp | C++ | Players/Cocos2d-x_v4/EffekseerRendererGL/EffekseerRenderer/EffekseerRendererGL.DeviceObjectCollection.cpp | darreney/EffekseerForCocos2d-x | de9222b28f6f376cfb96f98b7b4dd783a3d66055 | [
"MIT"
] | null | null | null | Players/Cocos2d-x_v4/EffekseerRendererGL/EffekseerRenderer/EffekseerRendererGL.DeviceObjectCollection.cpp | darreney/EffekseerForCocos2d-x | de9222b28f6f376cfb96f98b7b4dd783a3d66055 | [
"MIT"
] | null | null | null | Players/Cocos2d-x_v4/EffekseerRendererGL/EffekseerRenderer/EffekseerRendererGL.DeviceObjectCollection.cpp | darreney/EffekseerForCocos2d-x | de9222b28f6f376cfb96f98b7b4dd783a3d66055 | [
"MIT"
] | null | null | null | #include "EffekseerRendererGL.DeviceObjectCollection.h"
#include "EffekseerRendererGL.DeviceObject.h"
namespace EffekseerRendererGL
{
void DeviceObjectCollection::Register(DeviceObject* device) { deviceObjects_.insert(device); }
void DeviceObjectCollection::Unregister(DeviceObject* device) { deviceObjects_.erase(de... | 21.535714 | 95 | 0.777778 | darreney |
b05aac3cf16336109cd682a9c28759f6a4898ede | 3,713 | cpp | C++ | src/sharedFunctions.cpp | mPerier/ESP_IIOT_Platform | 59e3878d8f1f621029bd3de0ca2341979bcd1d78 | [
"X11"
] | 1 | 2022-03-04T20:41:44.000Z | 2022-03-04T20:41:44.000Z | src/sharedFunctions.cpp | mPerier/ESP_IIOT_Platform | 59e3878d8f1f621029bd3de0ca2341979bcd1d78 | [
"X11"
] | null | null | null | src/sharedFunctions.cpp | mPerier/ESP_IIOT_Platform | 59e3878d8f1f621029bd3de0ca2341979bcd1d78 | [
"X11"
] | null | null | null | #include "sharedFunctions.h"
void setRelayState(bool state){
// Changes the relay state in accord with given boolean
if (digitalRead(RELAY_PIN) != state) {
digitalWrite(RELAY_PIN,state);
}
}
bool getRelayState(){
// Ouputs a boolean representing the relay state
return digitalRead(RELAY_PIN)... | 25.258503 | 87 | 0.518449 | mPerier |
b05ce991148bf8a47b6741edfa5159dbf2ca21f8 | 2,337 | cpp | C++ | UnicornRender/system/source/profiler/MouseProfiler.cpp | GrapefruitTechnique/R7 | 3eaa97ac63bbc1b42e4cabf97d4d12649e36f665 | [
"MIT"
] | 12 | 2017-02-18T15:17:53.000Z | 2020-02-03T16:20:33.000Z | UnicornRender/system/source/profiler/MouseProfiler.cpp | GrapefruitTechnique/R7 | 3eaa97ac63bbc1b42e4cabf97d4d12649e36f665 | [
"MIT"
] | 93 | 2017-02-15T21:05:31.000Z | 2020-08-19T06:46:27.000Z | UnicornRender/system/source/profiler/MouseProfiler.cpp | GrapefruitTechnique/R-7 | 3eaa97ac63bbc1b42e4cabf97d4d12649e36f665 | [
"MIT"
] | 4 | 2015-10-23T11:55:07.000Z | 2016-11-30T10:00:52.000Z | /*
* Copyright (C) 2017 by Godlike
* This code is licensed under the MIT license (MIT)
* (http://opensource.org/licenses/MIT)
*/
#include <unicorn/system/profiler/MouseProfiler.hpp>
#include <unicorn/system/Manager.hpp>
#include <unicorn/system/input/Modifier.hpp>
#include <unicorn/utility/InternalLoggers.hpp>
nam... | 32.458333 | 186 | 0.741977 | GrapefruitTechnique |
b05ed4d4d0d8432653e58abfed2113f52e83e8db | 4,115 | cpp | C++ | assec-renderer/platform/directx12/directx12_shader.cpp | TeamVistic/assec-renderer | 5c6fc9a46fc3f6302471a22bfd2bdf2942b794db | [
"Apache-2.0"
] | null | null | null | assec-renderer/platform/directx12/directx12_shader.cpp | TeamVistic/assec-renderer | 5c6fc9a46fc3f6302471a22bfd2bdf2942b794db | [
"Apache-2.0"
] | null | null | null | assec-renderer/platform/directx12/directx12_shader.cpp | TeamVistic/assec-renderer | 5c6fc9a46fc3f6302471a22bfd2bdf2942b794db | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "directx12_shader.h"
namespace assec::renderer
{
ComPtr<IDxcUtils> directx12_shader::s_utils;
ComPtr<IDxcCompiler3> directx12_shader::s_compiler;
ComPtr<IDxcIncludeHandler> directx12_shader::s_include_handler;
void directx12_shader::init_compiler()
{
DxcCreateInstance(CLSID_DxcUtils, I... | 31.653846 | 225 | 0.697934 | TeamVistic |
b0654e7a1adf0f6b0d1a4fda1093943ab1600868 | 2,925 | cc | C++ | src/Features2d.cc | abhishekdewan101/RealTimeFaceTracking | 393dfd9418bf53e006d6c1fe533ecaca82c80e08 | [
"MIT"
] | null | null | null | src/Features2d.cc | abhishekdewan101/RealTimeFaceTracking | 393dfd9418bf53e006d6c1fe533ecaca82c80e08 | [
"MIT"
] | null | null | null | src/Features2d.cc | abhishekdewan101/RealTimeFaceTracking | 393dfd9418bf53e006d6c1fe533ecaca82c80e08 | [
"MIT"
] | null | null | null | #include "Features2d.h"
#include "Matrix.h"
#include <nan.h>
#include <stdio.h>
#if CV_MAJOR_VERSION >= 2 && CV_MINOR_VERSION >=4
void
Features::Init(Handle<Object> target) {
NanScope();
NODE_SET_METHOD(target, "ImageSimilarity", Similarity);
};
class AsyncDetectSimilarity : public NanAsyncWorker {
public:
A... | 27.59434 | 158 | 0.650256 | abhishekdewan101 |
b0697ef33f0c3b7e333992f606cf00801fc22d8b | 1,321 | cpp | C++ | leetcode/638. Shopping Offers/s1.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/638. Shopping Offers/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/638. Shopping Offers/s1.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/shopping-offers/
// Author: github.com/lzl124631x
// Time: O(NS) where N is length of `needs` and S is length of `special`.
// Space: O(NS)
class Solution {
private:
int ans = INT_MAX;
void dfs(vector<int>& price, vector<vector<int>>& special, vector<int> needs, int index, i... | 31.452381 | 104 | 0.467827 | zhuohuwu0603 |
b077417f944b4f2f3f8dcd6ae34d02d192fd93e4 | 3,451 | hpp | C++ | include/utility.hpp | steiltre/ygm-bench | f8ee35154ab2683aad4183cd05d0bd9097abe9df | [
"MIT-0",
"MIT"
] | null | null | null | include/utility.hpp | steiltre/ygm-bench | f8ee35154ab2683aad4183cd05d0bd9097abe9df | [
"MIT-0",
"MIT"
] | 4 | 2022-03-21T18:20:51.000Z | 2022-03-31T23:52:51.000Z | include/utility.hpp | steiltre/ygm-bench | f8ee35154ab2683aad4183cd05d0bd9097abe9df | [
"MIT-0",
"MIT"
] | 2 | 2022-03-21T17:37:45.000Z | 2022-03-22T23:08:39.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
#include <fstream>
#include <string>
#include <ygm/comm.hpp>
#include <ygm/detail/stats_tracker.hpp>
template <typename T>
std::vector<... | 34.858586 | 80 | 0.703564 | steiltre |
b078e17953f74b2778d24d29b25b071ee05d3e08 | 2,078 | cpp | C++ | game/client/sdk/c_ball.cpp | IOSoccer/IOS | f572c993c8c551cb87facfc68388f3dd368d1d9f | [
"MIT"
] | 6 | 2015-02-24T04:25:14.000Z | 2016-06-26T16:04:57.000Z | game/client/sdk/c_ball.cpp | IOSoccer/IOS | f572c993c8c551cb87facfc68388f3dd368d1d9f | [
"MIT"
] | 184 | 2015-01-01T09:40:16.000Z | 2016-06-26T14:18:33.000Z | game/client/sdk/c_ball.cpp | IOSoccer/IOS | f572c993c8c551cb87facfc68388f3dd368d1d9f | [
"MIT"
] | 5 | 2015-07-26T10:09:33.000Z | 2015-12-29T23:25:35.000Z | #include "cbase.h"
#include "c_ball.h"
#include "c_sdk_player.h"
#include "fx_line.h"
#include "sdk_gamerules.h"
#include "c_team.h"
#include "ios_camera.h"
#include "beamdraw.h"
#include "view.h"
#include "collisionutils.h"
ConVar cl_ball_halo_enabled("cl_ball_halo_enabled", "1", FCVAR_ARCHIVE);
LINK_ENTITY_TO_CLASS... | 23.613636 | 80 | 0.744947 | IOSoccer |
b079b19bb8ff743c0790a7041fb0a2f8aaee5b78 | 10,149 | cpp | C++ | src/org/apache/poi/common/usermodel/fonts/FontGroup.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/common/usermodel/fonts/FontGroup.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/common/usermodel/fonts/FontGroup.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/common/usermodel/fonts/FontGroup.java
#include <org/apache/poi/common/usermodel/fonts/FontGroup.hpp>
#include <java/io/Serializable.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/Character.hpp>
#include <java/lang/ClassCastException.hpp>
#include <java/... | 46.986111 | 172 | 0.672086 | pebble2015 |
b07b3a7cf3e121ec4e3dff5d981e1f2db661a5ab | 1,525 | hpp | C++ | src/sys/base.hpp | jgh0721/Win-IO-Monitor | 535835e344c3d624ab501e0a73ccf938726ac8fd | [
"MIT"
] | 5 | 2020-09-13T10:33:15.000Z | 2022-01-08T09:36:44.000Z | src/sys/base.hpp | jgh0721/Win-IO-Monitor | 535835e344c3d624ab501e0a73ccf938726ac8fd | [
"MIT"
] | null | null | null | src/sys/base.hpp | jgh0721/Win-IO-Monitor | 535835e344c3d624ab501e0a73ccf938726ac8fd | [
"MIT"
] | 2 | 2020-10-29T06:23:35.000Z | 2021-08-25T02:23:09.000Z | #pragma once
#define _WIN32_WINNT 0x0501
#define WINVER 0x0501
#define WIN32_LEAN_AND_MEAN
#define NTDDI_VERSION 0x05010200
#if defined(__cplusplus)
#define EXTERN_C extern "C"
#define EXTERN_C_BEGIN extern "C" {
#define EXTERN_C_END }
#else
#define EXTERN_C extern
#define EXTERN_C_BEGIN {
#define EXTERN_C_END }
#en... | 20.065789 | 47 | 0.714754 | jgh0721 |
b081c7a69c127850df96cc8a9b3dbc88743df48c | 1,053 | cpp | C++ | aws-cpp-sdk-networkmanager/source/model/VpcOptions.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-networkmanager/source/model/VpcOptions.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-networkmanager/source/model/VpcOptions.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/networkmanager/model/VpcOptions.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
nam... | 16.983871 | 69 | 0.722697 | perfectrecall |
b08c82033ff71da778434f327823100523d10901 | 619 | hpp | C++ | src/opers/seq_scan_oper.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | 3 | 2021-06-24T01:05:42.000Z | 2021-07-23T07:24:16.000Z | src/opers/seq_scan_oper.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | 5 | 2021-06-25T00:13:51.000Z | 2021-07-23T14:26:01.000Z | src/opers/seq_scan_oper.hpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | null | null | null | #pragma once
#include "opers/base_oper.hpp"
#include "opers/table_oper.hpp"
#include "opers/has_child_oper.hpp"
class SeqScanOper : public BaseOper,
public TableOper,
public HasChildOper
{
public:
SeqScanOper(ExecCtx& exec_ctx,
table_oid_t table_oid)
: Table... | 20.633333 | 75 | 0.657512 | farleyknight |
b08f2e5abad78702b70f6efed1706f622208bc82 | 2,150 | cpp | C++ | token/token.cpp | omon/occ | 4b06584c2a5625e7a263341399f0bb7ac5b40f13 | [
"MIT"
] | null | null | null | token/token.cpp | omon/occ | 4b06584c2a5625e7a263341399f0bb7ac5b40f13 | [
"MIT"
] | null | null | null | token/token.cpp | omon/occ | 4b06584c2a5625e7a263341399f0bb7ac5b40f13 | [
"MIT"
] | null | null | null | //
// Created by junichi on 19/01/23.
//
#include <iostream>
#include <memory>
#include "../encode/encode.h"
#include "token.h"
/**
* Token class constructor
* @param _type = token type
* @param _value
* @param _input = input string
*/
Token::Token(int64_t _type, int _value, char *_ptr) {
type = _type;
va... | 33.59375 | 114 | 0.563256 | omon |
b092f4c4929d6bda016fa0013f32a5394eb82ce6 | 2,974 | cpp | C++ | apps/bnb/mcs/VFParser.cpp | zxcvsop/YewPar | f8a3a5e3405c4d3835dc825f2fa9ee87a033a0ef | [
"MIT"
] | 17 | 2017-12-08T14:51:54.000Z | 2020-11-06T11:11:12.000Z | apps/bnb/mcs/VFParser.cpp | zxcvsop/YewPar | f8a3a5e3405c4d3835dc825f2fa9ee87a033a0ef | [
"MIT"
] | null | null | null | apps/bnb/mcs/VFParser.cpp | zxcvsop/YewPar | f8a3a5e3405c4d3835dc825f2fa9ee87a033a0ef | [
"MIT"
] | 2 | 2019-10-13T11:27:45.000Z | 2020-12-14T19:36:42.000Z | #include "VFParser.hpp"
#include <fstream>
#include <string>
GraphFileError::GraphFileError(const std::string & filename, const std::string & message) throw () :
_what("Error reading graph file '" + filename + "': " + message) {}
auto GraphFileError::what() const throw () -> const char * {
return _what.c_str();
... | 29.156863 | 146 | 0.581372 | zxcvsop |
b0961ca62f0285add055f419483d2c252295973c | 888 | cpp | C++ | Sparsed/main.cpp | manishjha5410/Data-Structure | 2bcfcdb4fe8f4ef89682d6faa6bb8f2be2292b14 | [
"MIT"
] | null | null | null | Sparsed/main.cpp | manishjha5410/Data-Structure | 2bcfcdb4fe8f4ef89682d6faa6bb8f2be2292b14 | [
"MIT"
] | null | null | null | Sparsed/main.cpp | manishjha5410/Data-Structure | 2bcfcdb4fe8f4ef89682d6faa6bb8f2be2292b14 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct Element
{
int x,y,z;
};
struct Sparsed
{
int m,n,num;
struct Element *e;
};
int Create(struct Sparsed* s)
{
printf("Enter number of rows and columns\n");
scanf("%d%d",&s->m,&s->n);
printf("Enter number of non zero element\n");
scanf("%d... | 18.122449 | 64 | 0.480856 | manishjha5410 |
b097324c9a0fe576e8e25dc754c32d13e146e80f | 3,291 | hpp | C++ | src/Mesh/Around.hpp | franjgonzalez/Quinoa | 411eb8815e92618c563881b784e287e2dd916f89 | [
"RSA-MD"
] | null | null | null | src/Mesh/Around.hpp | franjgonzalez/Quinoa | 411eb8815e92618c563881b784e287e2dd916f89 | [
"RSA-MD"
] | null | null | null | src/Mesh/Around.hpp | franjgonzalez/Quinoa | 411eb8815e92618c563881b784e287e2dd916f89 | [
"RSA-MD"
] | null | null | null | // *****************************************************************************
/*!
\file src/Mesh/Around.hpp
\copyright 2012-2015 J. Bakosi,
2016-2018 Los Alamos National Security, LLC.,
2019 Triad National Security, LLC.
All rights reserved. See the LICENSE file for de... | 37.827586 | 80 | 0.654208 | franjgonzalez |
b0990dba3eba26aa854880cca5aa09da36f6b45a | 763 | cpp | C++ | Slateback/src/ProjectVector.cpp | filmbrood/Slateback | b512df3b3f13ba152bcf0801c2ad36676d57d2e2 | [
"MIT"
] | null | null | null | Slateback/src/ProjectVector.cpp | filmbrood/Slateback | b512df3b3f13ba152bcf0801c2ad36676d57d2e2 | [
"MIT"
] | 2 | 2020-09-22T09:19:48.000Z | 2020-09-22T09:28:57.000Z | Slateback/src/ProjectVector.cpp | filmbrood/Slateback | b512df3b3f13ba152bcf0801c2ad36676d57d2e2 | [
"MIT"
] | 1 | 2020-09-22T09:23:44.000Z | 2020-09-22T09:23:44.000Z | #include "slatebackpch.h"
#include "ProjectVector.h"
// ProjectVector methods. See ProjectVector.h for more info.
void ProjectVector::PushNewProject()
{
if (m_Projects.size() > 0)
m_ActiveProjectIndex++;
Project project;
m_Projects.push_back(project);
}
Project& ProjectVector::GetProject(size_t index)
{
retu... | 16.955556 | 61 | 0.769332 | filmbrood |
b09df28c160c7582ed8bc3f6acc136c898b40325 | 6,155 | hpp | C++ | dev/so_5/rt/stats/h/repository.hpp | eao197/so-5-5 | fa0c31c84d2637dce04e13a155040150d505fbbd | [
"BSL-1.0"
] | 76 | 2016-03-25T15:22:03.000Z | 2022-02-03T15:11:43.000Z | dev/so_5/rt/stats/h/repository.hpp | eao197/so-5-5 | fa0c31c84d2637dce04e13a155040150d505fbbd | [
"BSL-1.0"
] | 19 | 2017-03-09T19:21:53.000Z | 2021-02-24T13:02:18.000Z | dev/so_5/rt/stats/h/repository.hpp | eao197/so-5-5 | fa0c31c84d2637dce04e13a155040150d505fbbd | [
"BSL-1.0"
] | 21 | 2016-09-23T10:01:09.000Z | 2020-08-31T12:01:10.000Z | /*
* SObjectizer-5
*/
/*!
* \file
* \since
* v.5.5.4
*
* \brief Interfaces of data source and data sources repository.
*/
#pragma once
#include <so_5/h/declspec.hpp>
#include <so_5/rt/h/mbox.hpp>
#include <so_5/h/outliving.hpp>
#if defined( SO_5_MSVC )
#pragma warning(push)
#pragma... | 23.764479 | 65 | 0.653452 | eao197 |
b0a043e34a5f9f1bda6e814789760b737b8beb7e | 1,260 | hxx | C++ | generated/include/mmx/TimeLordClient.hxx | deemsterTom/mmx-node | fe09802ba7830ba3b37cbbfc9c31f250647c1df4 | [
"Apache-2.0"
] | 1 | 2022-01-01T21:27:51.000Z | 2022-01-01T21:27:51.000Z | generated/include/mmx/TimeLordClient.hxx | overlords/mmx-node | 53b2ba95feb89a691a1dcf60ec0ac7a50bf082af | [
"Apache-2.0"
] | null | null | null | generated/include/mmx/TimeLordClient.hxx | overlords/mmx-node | 53b2ba95feb89a691a1dcf60ec0ac7a50bf082af | [
"Apache-2.0"
] | null | null | null |
// AUTO GENERATED by vnxcppcodegen
#ifndef INCLUDE_mmx_TimeLord_CLIENT_HXX_
#define INCLUDE_mmx_TimeLord_CLIENT_HXX_
#include <vnx/Client.h>
#include <mmx/IntervalRequest.hxx>
#include <mmx/TimeInfusion.hxx>
#include <vnx/Module.h>
#include <vnx/TopicPtr.hpp>
namespace mmx {
class TimeLordClient : public vnx::Cli... | 21.724138 | 105 | 0.720635 | deemsterTom |
b0aee90acbc174a0b7d894ed1a11f602d9c48693 | 2,867 | cpp | C++ | NetcodeClient/PhysxHelpers.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | NetcodeClient/PhysxHelpers.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | NetcodeClient/PhysxHelpers.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | #include "PhysxHelpers.h"
/*
dont use any global memory
*/
physx::PxFilterFlags SimulationFilterShader(physx::PxFilterObjectAttributes attributes0, physx::PxFilterData filterData0, physx::PxFilterObjectAttributes attributes1, physx::PxFilterData filterData1, physx::PxPairFlags & pairFlags, const void * constantBlock,... | 37.723684 | 291 | 0.775724 | tyekx |
b0b00060a8442b13570f49e434162ba3afe12fd8 | 6,637 | cpp | C++ | Source Files/Application/Scripts/Managers/MainMenuManager.cpp | ZackaryCowled/C-Game-Engine | ea26370036f348058000f007fe3c9a8a792e8db4 | [
"MIT"
] | null | null | null | Source Files/Application/Scripts/Managers/MainMenuManager.cpp | ZackaryCowled/C-Game-Engine | ea26370036f348058000f007fe3c9a8a792e8db4 | [
"MIT"
] | null | null | null | Source Files/Application/Scripts/Managers/MainMenuManager.cpp | ZackaryCowled/C-Game-Engine | ea26370036f348058000f007fe3c9a8a792e8db4 | [
"MIT"
] | null | null | null | //Internal includes
#include "ApplicationHeaders.h"
//Called on initialization
void MainMenuManager::Awake()
{
//Initialize parent
parent = GetParent();
//Initialize background controller
backgroundController = shared_ptr<BackgroundController>(new BackgroundController());
backgroundController->SetParent(parent);... | 32.37561 | 130 | 0.751695 | ZackaryCowled |
b0b4df0b6ecd16a135d567c81de0a6bd7a92ce5a | 9,882 | cpp | C++ | src/lib/foundations/knowledge_base/DATA/quartic_curves_q27.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/foundations/knowledge_base/DATA/quartic_curves_q27.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/foundations/knowledge_base/DATA/quartic_curves_q27.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | static int quartic_curves_q27_nb_reps = 40;
static int quartic_curves_q27_size = 15;
// the equations:
static int quartic_curves_q27_reps[] = {
0, 0, 0, 8, 23, 4, 17, 13, 25, 0, 3, 14, 22, 2, 1,
0, 0, 0, 3, 9, 9, 19, 26, 8, 24, 4, 11, 23, 10, 1,
0, 0, 0, 22, 10, 10, 13, 11, 5, 7, 9, 1, 26, 8, 1,
0, 0, 0, 22, 21,... | 50.938144 | 140 | 0.528739 | abetten |
b0b5374bec6720081993eb056c371068b11ecec4 | 5,080 | cpp | C++ | cpp-master/code/handmade_asset_rendering.cpp | ryan-mcclue/ray | 928bd279eb6527c1cfef0b8014db2802a253a23f | [
"Zlib"
] | null | null | null | cpp-master/code/handmade_asset_rendering.cpp | ryan-mcclue/ray | 928bd279eb6527c1cfef0b8014db2802a253a23f | [
"Zlib"
] | null | null | null | cpp-master/code/handmade_asset_rendering.cpp | ryan-mcclue/ray | 928bd279eb6527c1cfef0b8014db2802a253a23f | [
"Zlib"
] | null | null | null | /* ========================================================================
$File: $
$Date: $
$Revision: $
$Creator: Casey Muratori $
$Notice: (C) Copyright 2015 by Molly Rocket, Inc. All Rights Reserved. $
======================================================================== */
//
// NOTE(casey):... | 32.356688 | 97 | 0.568898 | ryan-mcclue |
b0b7930f7c16492c78934bd5f795143dffc974f8 | 10,341 | cpp | C++ | Source/SystemQOR/MSWindows/WinQL/Application/Process/WinQLCommandLine.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinQL/Application/Process/WinQLCommandLine.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinQL/Application/Process/WinQLCommandLine.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //WinQLCommandLine.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 th... | 27.873315 | 182 | 0.565709 | mfaithfull |
b0bcfb8a582d41ddae0b11139be9ab258becaeb8 | 358 | cpp | C++ | c++/day14/21.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | c++/day14/21.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | c++/day14/21.cpp | msoild/sword-to-offer | 6c15c78ad773da0b66cb76c9e01292851aca45c5 | [
"MIT"
] | null | null | null | class Solution {
public:
int Fibonacci(int n) {
// if(n <=0) return 0;
// if(n ==1 ) return 1;
// return Fibonacci(n-1) + Fibonacci(n-2);
int a = 0, b =1;
while(n--) {
int s = a + b;
a = b;
b = s;
}
return a;
}
... | 16.272727 | 50 | 0.368715 | msoild |
b0c06231d0d66930b14e8eac1591f2aa9735b47a | 106 | hpp | C++ | core/runtime.hpp | kayshinonome/ksnucleus | e50c2c0272284b1a2ea9425e882d1945616d6459 | [
"Apache-2.0"
] | 1 | 2021-12-12T07:18:26.000Z | 2021-12-12T07:18:26.000Z | core/runtime.hpp | kayshinonome/ksnucleus | e50c2c0272284b1a2ea9425e882d1945616d6459 | [
"Apache-2.0"
] | null | null | null | core/runtime.hpp | kayshinonome/ksnucleus | e50c2c0272284b1a2ea9425e882d1945616d6459 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <types.hpp>
enum class SystemState : uint8_t
{
SHUTDOWN = 0,
REBOOT = 1
};
| 11.777778 | 32 | 0.641509 | kayshinonome |
37d3d2c3c002f5480e94cb96865a4a31c4e63053 | 2,015 | cpp | C++ | src/SegmentTreeMinimumRangeQuery.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | src/SegmentTreeMinimumRangeQuery.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | src/SegmentTreeMinimumRangeQuery.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "SegmentTreeMinimumRangeQuery.hpp"
#include <climits>
using namespace std;
void SegmentTreeMinimumRangeQuery::createSegmentTree(const vector<int> &input) {
int nextPowOfTwo = nextPowerOfTwo(input.size());
segmentTree.resize(nextPowOfTwo * 2 - 1, INT_MAX);
constructMinSegmentTree(input, 0, input.... | 29.632353 | 102 | 0.579156 | yanzhe-chen |
37d6f5caf2f6896b9e1184fa8cd6090f93f8675b | 7,219 | cpp | C++ | lib/VariableOrderer.cpp | matejpavlik/Q3B | b5f3110c14f436d967d24c081cad21171b12f6ca | [
"MIT"
] | 20 | 2016-06-03T17:20:07.000Z | 2021-06-17T22:38:35.000Z | lib/VariableOrderer.cpp | matejpavlik/Q3B | b5f3110c14f436d967d24c081cad21171b12f6ca | [
"MIT"
] | 6 | 2018-07-05T12:36:51.000Z | 2020-05-15T18:25:09.000Z | lib/VariableOrderer.cpp | matejpavlik/Q3B | b5f3110c14f436d967d24c081cad21171b12f6ca | [
"MIT"
] | 4 | 2017-04-05T04:07:12.000Z | 2021-05-24T22:39:09.000Z | #include "VariableOrderer.h"
#include <algorithm>
#include "Solver.h"
using namespace std;
using namespace z3;
VariableOrderer::VariableOrderer(const std::set<var> &vars, z3::context &ctx) : vars(vars)
{
this->context = &ctx;
this->unionFind = new UF(vars.size());
int i = 0;
for (auto const &v : vars... | 24.893103 | 117 | 0.576396 | matejpavlik |
37e106b3cebbb48256c677821524b60587deedf8 | 2,929 | cpp | C++ | src/BarProject/SpeedControl.cpp | gallowstree/ArduinoMazeNavV2 | fdd35ce066cb4c3d78496beeda2ef831f7fb6713 | [
"MIT"
] | null | null | null | src/BarProject/SpeedControl.cpp | gallowstree/ArduinoMazeNavV2 | fdd35ce066cb4c3d78496beeda2ef831f7fb6713 | [
"MIT"
] | null | null | null | src/BarProject/SpeedControl.cpp | gallowstree/ArduinoMazeNavV2 | fdd35ce066cb4c3d78496beeda2ef831f7fb6713 | [
"MIT"
] | null | null | null | #include "SpeedControl.h"
#include <Arduino.h>
#include <math.h>
SpeedControl::SpeedControl(EncoderReader* leftEncoder, EncoderReader* rightEncoder, DcMotor* leftMotor, DcMotor* rightMotor) :
leftEncoder(leftEncoder),
rightEncoder(rightEncoder),
leftMotor(leftMotor),
rightMotor(rightMotor)
{
}
void SpeedControl::enab... | 27.373832 | 126 | 0.530215 | gallowstree |
37e17b250f3471935536efae2fec2ded0c2756bd | 68,076 | cpp | C++ | DbAbc/AbcStoreEvent.cpp | cannerycoders/chugins | 1453cd95eb77919368157129a13375a87a32d140 | [
"MIT"
] | null | null | null | DbAbc/AbcStoreEvent.cpp | cannerycoders/chugins | 1453cd95eb77919368157129a13375a87a32d140 | [
"MIT"
] | null | null | null | DbAbc/AbcStoreEvent.cpp | cannerycoders/chugins | 1453cd95eb77919368157129a13375a87a32d140 | [
"MIT"
] | null | null | null | /*
* overflow file for AbcStore containing override methods
* for AbcParser::EventHandler methods.
*/
#include "AbcStore.h"
#include <cmath>
#include <cstring>
void
AbcStore::text(char const *s)
{
if(this->quiet == -1)
{
char msg[200];
snprintf(msg, sizeof(msg), "Ignoring text: %s", s);
... | 28.687737 | 122 | 0.468021 | cannerycoders |
37e3c2b766715b6c01a916f0737a61f61735ceab | 979 | cpp | C++ | Graphs/bfs.cpp | ProgramCloud/Algo-DS | bcf05a0dfb1ed0c5f91e409b467244aa2593b763 | [
"MIT"
] | null | null | null | Graphs/bfs.cpp | ProgramCloud/Algo-DS | bcf05a0dfb1ed0c5f91e409b467244aa2593b763 | [
"MIT"
] | 1 | 2019-02-09T22:28:04.000Z | 2019-02-09T22:28:19.000Z | Graphs/bfs.cpp | ProgramCloud/Algo-DS | bcf05a0dfb1ed0c5f91e409b467244aa2593b763 | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
class graph
{
int v;
list<int> *adj;
public:
graph(int v);
void addedge(int v,int w);
void bfs(int s);
};
graph::graph(int v)
{
this->v=v;
adj=new list<int>[v];
}
void graph::addedge(int v,int w)
{
adj[v].push_back(w);
}
voi... | 17.482143 | 49 | 0.493361 | ProgramCloud |
37ede5717a7fcd26ac406872a8cd62a1eba94d72 | 2,760 | cpp | C++ | cairoglwindow.cpp | GitYun/cairowidget | 8e8e222c2cb028840d0bb6132d35fee44d4092f4 | [
"Unlicense"
] | null | null | null | cairoglwindow.cpp | GitYun/cairowidget | 8e8e222c2cb028840d0bb6132d35fee44d4092f4 | [
"Unlicense"
] | null | null | null | cairoglwindow.cpp | GitYun/cairowidget | 8e8e222c2cb028840d0bb6132d35fee44d4092f4 | [
"Unlicense"
] | null | null | null | #include "FL/Fl.H"
#include "FL/fl_draw.H"
#include "FL/platform.H"
#define CAIRO_HAS_GL_SURFACE 1
#if defined (_WIN32) || defined (__WIN32)
#define CAIRO_HAS_WGL_FUNCTIONS 1
#else
#define CAIRO_HAS_GLX_FUNCTIONS 1
#endif
#include "cairo/cairo-gl.h"
#include <cassert>
#include "cairoglwindow.hpp"
////////////////... | 22.439024 | 79 | 0.602899 | GitYun |
37f26977c50bf46513b4d9af2fa56266fa81a307 | 349 | cpp | C++ | Game/Client/WXClient/Network/PacketHandler/GCCharFirstLoginHandler.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/WXClient/Network/PacketHandler/GCCharFirstLoginHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/WXClient/Network/PacketHandler/GCCharFirstLoginHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "StdAfx.h"
#include "GCCharFirstLogin.h"
#include "..\..\DataPool\GMDataPool.h"
uint GCCharFirstLoginHandler :: Execute( GCCharFirstLogin* pPacket, Player* pPlayer )
{
__ENTER_FUNCTION
CDataPool::GetMe()->SetCharFirstLogin( pPacket->GetCharFirstLogin() );
return PACKET_EXE_CONTINUE ;
__LEAVE_FUNCTION
... | 19.388889 | 86 | 0.767908 | hackerlank |
37f457b7eb6b7ee46367f464d823ea9c019926d4 | 253 | hh | C++ | src/Waffle/Container/Exception/NotFoundException.hh | azjezz/waffle | 3a880ac4e7bd10739bc7134aaf1a531bfb623ba3 | [
"MIT"
] | 5 | 2018-11-27T20:20:13.000Z | 2018-12-28T15:30:35.000Z | src/Waffle/Container/Exception/NotFoundException.hh | azjezz/waffle | 3a880ac4e7bd10739bc7134aaf1a531bfb623ba3 | [
"MIT"
] | 3 | 2018-12-13T19:11:09.000Z | 2018-12-21T01:11:51.000Z | src/Waffle/Container/Exception/NotFoundException.hh | azjezz/waffle | 3a880ac4e7bd10739bc7134aaf1a531bfb623ba3 | [
"MIT"
] | null | null | null | <?hh // strict
namespace Waffle\Container\Exception;
use type Waffle\Contract\Container\NotFoundExceptionInterface;
use type InvalidArgumentException;
class NotFoundException extends InvalidArgumentException implements NotFoundExceptionInterface
{
}
| 23 | 94 | 0.857708 | azjezz |
37f4fb94bd432e19dd5a0184dee77288030d26c6 | 4,062 | hpp | C++ | MP2TS.hpp | salleaffaire/MP2TS | 78d0b3fbfcc331157565ac5bb9cc52437c4bc3fa | [
"MIT"
] | 11 | 2016-06-29T06:10:43.000Z | 2019-05-14T14:32:31.000Z | MP2TS.hpp | salleaffaire/MP2TS | 78d0b3fbfcc331157565ac5bb9cc52437c4bc3fa | [
"MIT"
] | 2 | 2017-09-15T02:04:01.000Z | 2019-04-27T13:11:48.000Z | MP2TS.hpp | salleaffaire/MP2TS | 78d0b3fbfcc331157565ac5bb9cc52437c4bc3fa | [
"MIT"
] | 8 | 2015-08-22T01:36:43.000Z | 2018-11-15T07:39:59.000Z | /*
* MP2TS.hpp
*
* Created on: Jul 3, 2015 ... 2018
* Author: luc.martel@irdeto.com
*/
#ifndef MP2TS_HPP_
#define MP2TS_HPP_
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <vector>
// Logger
// #de... | 21.492063 | 92 | 0.69547 | salleaffaire |
37f753dd46cfe53dc3a0883efd7d2079f865d993 | 8,404 | cpp | C++ | test/concurrent_io_sets_test/main.cpp | blastmaster/rabbitxx | c2f3d7852b10c1284d3621fbeba7b10507abdd74 | [
"MIT"
] | null | null | null | test/concurrent_io_sets_test/main.cpp | blastmaster/rabbitxx | c2f3d7852b10c1284d3621fbeba7b10507abdd74 | [
"MIT"
] | null | null | null | test/concurrent_io_sets_test/main.cpp | blastmaster/rabbitxx | c2f3d7852b10c1284d3621fbeba7b10507abdd74 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <rabbitxx/cio_set.hpp>
#include <rabbitxx/graph.hpp>
#include <rabbitxx/log.hpp>
#include <iostream>
using rabbitxx::logging;
TEST_CASE("[trace-simple]", "Find concurrent I/O sets")
{
static const std::string trc_file {"/home/soeste/traces/dios/rabbitxx_te... | 38.907407 | 141 | 0.460495 | blastmaster |
37f79bfadc2cd295568d6096ec47021a460c2968 | 460 | hpp | C++ | renderboi/window/event/gl_context_event.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | renderboi/window/event/gl_context_event.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | renderboi/window/event/gl_context_event.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | #ifndef RENDERBOI__WINDOW__EVENT__GL_CONTEXT_EVENT_HPP
#define RENDERBOI__WINDOW__EVENT__GL_CONTEXT_EVENT_HPP
#include <string>
namespace Renderboi
{
namespace Window
{
enum class GLContextEvent
{
FitFramebufferToWindow,
PolygonModeFill,
PolygonModeLine,
PolygonModePoint
};
} // namespace Window
s... | 17.692308 | 59 | 0.81087 | deqyra |
37f7a1977d7e3761a28c1e700ed4f2adf2117be9 | 486 | cpp | C++ | src/examples/11_module/02_dynamic_memory/main 7.39.27 PM 7.39.27 PM 7.39.27 PM.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-lcmartinez45 | 4c780be0044d449159ae3ebe3e365e12c2b5ff8d | [
"MIT"
] | null | null | null | src/examples/11_module/02_dynamic_memory/main 7.39.27 PM 7.39.27 PM 7.39.27 PM.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-lcmartinez45 | 4c780be0044d449159ae3ebe3e365e12c2b5ff8d | [
"MIT"
] | null | null | null | src/examples/11_module/02_dynamic_memory/main 7.39.27 PM 7.39.27 PM 7.39.27 PM.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-lcmartinez45 | 4c780be0044d449159ae3ebe3e365e12c2b5ff8d | [
"MIT"
] | null | null | null | #include <iostream>
using std::cout;
int main()
{
int* ptr_num = new int(5); //declare and acquire new memory (heap)
cout << &ptr_num << "\n"; //displays the address where ptr_num is stored
cout << ptr_num << "\n"; //address where 5 is stored
cout << *ptr_num << "\n\n"; //get value wher... | 23.142857 | 76 | 0.617284 | acc-cosc-1337-spring-2020-hl |
530708e6d441882422796b15efaf402a1abfba24 | 89 | cpp | C++ | src/Lib_GZ/3rdparty/Image/stb_image.cpp | VLiance/GZE | 99afffa3cb495d268d6e64cd5a885cc80409828a | [
"Apache-2.0"
] | 2 | 2019-11-08T11:08:40.000Z | 2021-01-26T19:14:34.000Z | src/Lib_GZ/3rdparty/Image/stb_image.cpp | VLiance/GZE | 99afffa3cb495d268d6e64cd5a885cc80409828a | [
"Apache-2.0"
] | null | null | null | src/Lib_GZ/3rdparty/Image/stb_image.cpp | VLiance/GZE | 99afffa3cb495d268d6e64cd5a885cc80409828a | [
"Apache-2.0"
] | 1 | 2019-11-08T11:08:42.000Z | 2019-11-08T11:08:42.000Z | #define STB_IMAGE_IMPLEMENTATION
#include "stb_image.hxx"
#undef STB_IMAGE_IMPLEMENTATION | 29.666667 | 32 | 0.876404 | VLiance |
530b1fc27bc602657eaeb65efb29499bc36b593b | 5,596 | cpp | C++ | src/AutoCloseManager.cpp | Vermunds/SkyrimSoulsRE | fc5a2b24d042c022c6ba2cff8c8d982ec1347581 | [
"MIT"
] | 8 | 2019-06-15T05:41:18.000Z | 2021-12-22T17:30:04.000Z | src/AutoCloseManager.cpp | Vermunds/SkyrimSoulsRE | fc5a2b24d042c022c6ba2cff8c8d982ec1347581 | [
"MIT"
] | 4 | 2019-07-17T08:20:47.000Z | 2022-01-07T19:13:24.000Z | src/AutoCloseManager.cpp | Vermunds/SkyrimSoulsRE | fc5a2b24d042c022c6ba2cff8c8d982ec1347581 | [
"MIT"
] | 1 | 2022-01-07T01:38:39.000Z | 2022-01-07T01:38:39.000Z | #include "AutoCloseManager.h"
#include "Settings.h"
#include <cmath>
namespace SkyrimSoulsRE
{
AutoCloseManager* AutoCloseManager::_singleton = nullptr;
void AutoCloseManager::CheckAutoClose(RE::BSFixedString a_menuName)
{
Settings* settings = Settings::GetSingleton();
RE::PlayerCharacter* player = RE::Player... | 34.331288 | 195 | 0.703181 | Vermunds |
530bb17ad816867b2697da033a800bed4d60ff1c | 634 | cpp | C++ | leetcode/cpp/83-Remove-Duplicates-from-Sorted-List.cpp | liu-chunhou/OnlineJudge | b79c8e05acf05411d8cf172214aa42e49cc20867 | [
"MIT"
] | null | null | null | leetcode/cpp/83-Remove-Duplicates-from-Sorted-List.cpp | liu-chunhou/OnlineJudge | b79c8e05acf05411d8cf172214aa42e49cc20867 | [
"MIT"
] | null | null | null | leetcode/cpp/83-Remove-Duplicates-from-Sorted-List.cpp | liu-chunhou/OnlineJudge | b79c8e05acf05411d8cf172214aa42e49cc20867 | [
"MIT"
] | null | null | null | struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(nullptr) {}
};
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* deleteDuplicates(List... | 24.384615 | 86 | 0.536278 | liu-chunhou |
5318f5dd00e4ce46ac189eea7e73726b505176b8 | 2,507 | cpp | C++ | src/pulsing_cube.cpp | fdekruijff/Tesseract-LED-Cube | 70a9ce4d44517714966b2a62e8fb6c4a950f8407 | [
"BSL-1.0"
] | null | null | null | src/pulsing_cube.cpp | fdekruijff/Tesseract-LED-Cube | 70a9ce4d44517714966b2a62e8fb6c4a950f8407 | [
"BSL-1.0"
] | null | null | null | src/pulsing_cube.cpp | fdekruijff/Tesseract-LED-Cube | 70a9ce4d44517714966b2a62e8fb6c4a950f8407 | [
"BSL-1.0"
] | null | null | null | /// Copyright Floris de Kruijff 2018.
/// Distributed under the Boost Software License, Version 1.0.
/// (See accompanying file LICENSE.txt or copy at
/// https://www.boost.org/LICENSE_1_0.txt)
/// @file
/// @author Floris de Kruijff
/// @date 25-06-2018
/// @file pulsing_cube.cpp
/// @br... | 35.814286 | 85 | 0.613482 | fdekruijff |
531c4cd23b0f163a07b5732bfc99579e347ca1fe | 1,586 | hpp | C++ | include/pbrt/core/SurfaceInteraction.hpp | IDragnev/pb-ray-tracer | d522a55da643261234cf0393824b6eeec2b7cd8e | [
"MIT"
] | null | null | null | include/pbrt/core/SurfaceInteraction.hpp | IDragnev/pb-ray-tracer | d522a55da643261234cf0393824b6eeec2b7cd8e | [
"MIT"
] | null | null | null | include/pbrt/core/SurfaceInteraction.hpp | IDragnev/pb-ray-tracer | d522a55da643261234cf0393824b6eeec2b7cd8e | [
"MIT"
] | null | null | null | #pragma once
#include "core.hpp"
#include "Interaction.hpp"
#include "math/Point2.hpp"
#include "math/Vector3.hpp"
#include "math/Normal3.hpp"
namespace idragnev::pbrt {
class SurfaceInteraction : public Interaction
{
public:
SurfaceInteraction() = default;
SurfaceInteraction(const Point3f... | 31.72 | 71 | 0.484237 | IDragnev |
532159f7d2a9e927c87ef3455c8a8e6390dc8b9e | 3,459 | cpp | C++ | rucy/ext/rucy/class.cpp | xord/reflexion | 7d864267152dca1ffeef757d0584777b16a92ede | [
"MIT"
] | 3 | 2015-12-18T09:04:48.000Z | 2022-01-04T22:21:20.000Z | rucy/ext/rucy/class.cpp | xord/reflexion | 7d864267152dca1ffeef757d0584777b16a92ede | [
"MIT"
] | null | null | null | rucy/ext/rucy/class.cpp | xord/reflexion | 7d864267152dca1ffeef757d0584777b16a92ede | [
"MIT"
] | null | null | null | #include "class.h"
#include <vector>
#include "rucy.h"
using namespace Rucy;
static Class cBase, cSub, cSimpleObj;
namespace Rucy
{
template <> inline Class get_ruby_class<Base> () {return cBase;}
template <> inline Class get_ruby_class<Sub> () {return cSub;}
template <> inline Class get_ruby_cl... | 17.647959 | 75 | 0.738653 | xord |
53220ef6ce5ebdd3e330ce881a45fd281e130ea2 | 610 | cc | C++ | tests/elle/filesystem/TemporaryDirectory.cc | infinit/elle | a8154593c42743f45b9df09daf62b44630c24a02 | [
"Apache-2.0"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | tests/elle/filesystem/TemporaryDirectory.cc | mefyl/elle | a8154593c42743f45b9df09daf62b44630c24a02 | [
"Apache-2.0"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | tests/elle/filesystem/TemporaryDirectory.cc | mefyl/elle | a8154593c42743f45b9df09daf62b44630c24a02 | [
"Apache-2.0"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | #define BOOST_TEST_MODULE TemporaryDirectory
#include <elle/test.hh>
#include <elle/filesystem/TemporaryDirectory.hh>
using elle::filesystem::TemporaryDirectory;
BOOST_AUTO_TEST_CASE(simple)
{
auto path = std::filesystem::path{};
{
TemporaryDirectory d;
path = d.path();
BOOST_CHECK(is_directory(path)... | 20.333333 | 52 | 0.704918 | infinit |
532a714a5d104e6a057e397f79d18a6905d5cf82 | 74 | cpp | C++ | Source/LCD/LCD.cpp | PeterStegemann/Atmel-AVR-CPP | 771e5e4b908972fe09aefe3c084e08fa8d30eb71 | [
"MIT"
] | null | null | null | Source/LCD/LCD.cpp | PeterStegemann/Atmel-AVR-CPP | 771e5e4b908972fe09aefe3c084e08fa8d30eb71 | [
"MIT"
] | null | null | null | Source/LCD/LCD.cpp | PeterStegemann/Atmel-AVR-CPP | 771e5e4b908972fe09aefe3c084e08fa8d30eb71 | [
"MIT"
] | null | null | null | // Copyright 2009 Peter Stegemann
#include "LCD.h"
LCD::~LCD( void)
{
}
| 9.25 | 33 | 0.648649 | PeterStegemann |
532ee4902712da2de257de4e5eaefa1372df09c5 | 673 | cpp | C++ | test/DijkstraBuildPath.test.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | null | null | null | test/DijkstraBuildPath.test.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | 6 | 2021-01-05T07:39:05.000Z | 2021-01-05T07:44:31.000Z | test/DijkstraBuildPath.test.cpp | yuruhi/library | fecbd92ec6c6997d50bf954c472ac4bfeff74de5 | [
"Apache-2.0"
] | null | null | null | #define PROBLEM "https://judge.yosupo.jp/problem/shortest_path"
#include "./../Graph/DijkstraBuildPath.cpp"
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n, m, s, t;
cin >> n >> m >> s >> t;
Graph g(n);
for (int i = 0; i < m; ++i) {
int a, b;
Weig... | 20.393939 | 63 | 0.539376 | yuruhi |
5336e5bca4435cf4ad1dcf02d216aeed873afd9f | 817 | cpp | C++ | SimpleLayoutData.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | 4 | 2018-05-17T11:17:26.000Z | 2021-12-01T00:48:43.000Z | SimpleLayoutData.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | null | null | null | SimpleLayoutData.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | 1 | 2021-05-31T19:08:00.000Z | 2021-05-31T19:08:00.000Z | // SimpleLayoutData.cpp
#include "SimpleLayoutData.h"
#include <cassert>
#include <numeric>
SimpleLayoutData::SimpleLayoutData( UTF16Ref text, bool endsWithNewline )
: length( text.size() )
, endsWithNewline( endsWithNewline )
{
if ( endsWithNewline )
length++;
xOffsets.resize( text.size() );
}
... | 22.081081 | 74 | 0.632803 | briangreenery |
533807038e3c74c12659ea80702f8038ec76d02e | 1,295 | cc | C++ | experiments/sjlj_exceptions_example.cc | maciekgajewski/exceptions-under-the-hood | b42e66f4f0b4f9c9e4fdf3ae56130fe5f6d26608 | [
"MIT"
] | null | null | null | experiments/sjlj_exceptions_example.cc | maciekgajewski/exceptions-under-the-hood | b42e66f4f0b4f9c9e4fdf3ae56130fe5f6d26608 | [
"MIT"
] | null | null | null | experiments/sjlj_exceptions_example.cc | maciekgajewski/exceptions-under-the-hood | b42e66f4f0b4f9c9e4fdf3ae56130fe5f6d26608 | [
"MIT"
] | null | null | null | #include "sjlj_exceptions.hh"
#include "widget.hh"
#include <iostream>
#include <string>
void thrower(int value) {
if (value > 100) {
int error_code = value;
std::cout << "Throwing " << error_code << std::endl;
sjlj::_throw(error_code);
} else {
std::cout << "not throwing" << std::endl;
}
}
voi... | 21.583333 | 73 | 0.594595 | maciekgajewski |
53390622016bc7aecd45b76b08fc2c7d95b38aba | 1,338 | cpp | C++ | ZeroJudge/a740.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | 1 | 2018-02-11T09:41:54.000Z | 2018-02-11T09:41:54.000Z | ZeroJudge/a740.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | ZeroJudge/a740.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | #pragma GCC optimize ("O2")
#include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;
#define _ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#def... | 19.391304 | 57 | 0.544096 | tico88612 |
533b61b2194f8857ed856a1fabdb4d8cb66cdfc6 | 4,796 | cpp | C++ | GPSthread-main.cpp | Lukemarino/Threaded-Serial-sailbot | 90c44f53e992ded341a6aa104d4d93fafbcbad9d | [
"Apache-2.0"
] | null | null | null | GPSthread-main.cpp | Lukemarino/Threaded-Serial-sailbot | 90c44f53e992ded341a6aa104d4d93fafbcbad9d | [
"Apache-2.0"
] | 4 | 2018-11-17T15:01:40.000Z | 2018-11-19T03:45:50.000Z | GPSthread-main.cpp | Lukemarino/Threaded-Serial-sailbot | 90c44f53e992ded341a6aa104d4d93fafbcbad9d | [
"Apache-2.0"
] | null | null | null | //Thread for logging time and Gps, heading and eventually encoder values
#include "mbed.h"
#include "BNO055.h"
#include "MBed_Adafruit_GPS.h"
//#include "rtos.h" //rtos library has been causing issues
Serial * gps_Serial;
Serial pc (USBTX, USBRX);
BNO055 bno(p28, p27);
char c; //when read via Adafruit_GPS... | 35.525926 | 151 | 0.56151 | Lukemarino |
533f7daa72de503e8cec0b8686d8cd069affdf4e | 140 | cpp | C++ | src/ao_pkg/src/CornerLineFeature.cpp | Engietoday/ralph | f5e4134bf142cb2ab0a8d7f7a3506bff88a11911 | [
"Apache-2.0"
] | null | null | null | src/ao_pkg/src/CornerLineFeature.cpp | Engietoday/ralph | f5e4134bf142cb2ab0a8d7f7a3506bff88a11911 | [
"Apache-2.0"
] | null | null | null | src/ao_pkg/src/CornerLineFeature.cpp | Engietoday/ralph | f5e4134bf142cb2ab0a8d7f7a3506bff88a11911 | [
"Apache-2.0"
] | null | null | null | #include "CornerLineFeature.h"
using namespace SLAM;
void CornerFeature::ExtractCornerLine(cv::Mat&, cv::Mat&, CORNERTYPE corner_type){
}
| 20 | 82 | 0.771429 | Engietoday |
c73184e8a9b8a686f08615a2c9083e8234883cdb | 1,699 | hpp | C++ | source/graphics/graphics_engine_particles.hpp | Paul-Wortmann/Grume | 0ffdd8f98e0b7d7857cc6a3e0f971f9a74651d17 | [
"Intel"
] | 3 | 2021-12-19T12:00:34.000Z | 2021-12-30T08:36:58.000Z | source/graphics/graphics_engine_particles.hpp | Paul-Wortmann/Grume | 0ffdd8f98e0b7d7857cc6a3e0f971f9a74651d17 | [
"Intel"
] | 2 | 2021-11-02T05:30:53.000Z | 2021-11-30T00:11:16.000Z | source/graphics/graphics_engine_particles.hpp | Paul-Wortmann/Grume | 0ffdd8f98e0b7d7857cc6a3e0f971f9a74651d17 | [
"Intel"
] | null | null | null | /**
* Copyright (C) Paul Wortmann
* This file is part of "Grume"
*
* "Grume" 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, version 2 only.
*
* "Grume" is distributed in the hope that it will be usefu... | 30.339286 | 71 | 0.675692 | Paul-Wortmann |
c738a388e2bf7c752dc6171916a2940d497158c2 | 52,763 | cc | C++ | src/tests/test_aomatrix.cc | mbarbry/xtp | e79828209d11ec25bf1750ab75499ecf50f584ef | [
"Apache-2.0"
] | null | null | null | src/tests/test_aomatrix.cc | mbarbry/xtp | e79828209d11ec25bf1750ab75499ecf50f584ef | [
"Apache-2.0"
] | null | null | null | src/tests/test_aomatrix.cc | mbarbry/xtp | e79828209d11ec25bf1750ab75499ecf50f584ef | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2009-2018 The VOTCA Development Team (http://www.votca.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 84.151515 | 347 | 0.679889 | mbarbry |
c73a5fc7524693fa95d32d31685da1f81eaf7fa0 | 671 | hh | C++ | Include/Luce/TypeTrait/Detail/IntegralConstant.hh | kmc7468/luce | 6f71407f250dbc0428ceba33aeef345cc601db34 | [
"MIT"
] | 23 | 2017-02-09T11:48:01.000Z | 2017-04-08T10:19:21.000Z | Include/Luce/TypeTrait/Detail/IntegralConstant.hh | kmc7468/luce | 6f71407f250dbc0428ceba33aeef345cc601db34 | [
"MIT"
] | null | null | null | Include/Luce/TypeTrait/Detail/IntegralConstant.hh | kmc7468/luce | 6f71407f250dbc0428ceba33aeef345cc601db34 | [
"MIT"
] | null | null | null | #ifndef LUCE_HEADER_TYPETRAIT_DETAIL_INTEGRALCONSTANT_HH
#define LUCE_HEADER_TYPETRAIT_DETAIL_INTEGRALCONSTANT_HH
namespace Luce
{
namespace TypeTrait
{
/*
template<typename Ty_, Ty_ Value_>
LUCE_MACRO_CONSTEXPR
IntegralConstant<Ty_, Value_>::operator Ty_() const LUCE_MACRO_NOEXCEPT
{
retur... | 22.366667 | 75 | 0.734724 | kmc7468 |
c73f3c6c1d08641cdad05dac66f82b70ca301761 | 13,848 | cpp | C++ | src/autogen/cfdapi_elements_create_raw_pegin_json.cpp | fujita-cg/cfd-js | 6113374d3f04495a30854c06c73d7094ea361fdb | [
"MIT"
] | null | null | null | src/autogen/cfdapi_elements_create_raw_pegin_json.cpp | fujita-cg/cfd-js | 6113374d3f04495a30854c06c73d7094ea361fdb | [
"MIT"
] | null | null | null | src/autogen/cfdapi_elements_create_raw_pegin_json.cpp | fujita-cg/cfd-js | 6113374d3f04495a30854c06c73d7094ea361fdb | [
"MIT"
] | null | null | null | // Copyright 2019 CryptoGarage
/**
* @file cfdapi_elements_create_raw_pegin_json.cpp
*
* @brief JSONマッピングファイル (自動生成)
*/
#include <set>
#include <string>
#include <vector>
#include "cfdapi_elements_create_raw_pegin_json.h" // NOLINT
namespace cfd {
namespace js {
namespace api {
namespace json {
using cfd::core:... | 33.530266 | 105 | 0.730358 | fujita-cg |
c74ac2fd230f14fb7dad5a083f292f17f59091cd | 70,210 | cpp | C++ | tests/range/three_args.cpp | Ail-nare/Range-Vector | 92afdd8f409e9bce091283af2bcbcc2bc4fe973d | [
"BSL-1.0"
] | 2 | 2020-08-28T18:59:05.000Z | 2020-08-28T23:06:17.000Z | tests/range/three_args.cpp | Ail-nare/Range-Vector | 92afdd8f409e9bce091283af2bcbcc2bc4fe973d | [
"BSL-1.0"
] | null | null | null | tests/range/three_args.cpp | Ail-nare/Range-Vector | 92afdd8f409e9bce091283af2bcbcc2bc4fe973d | [
"BSL-1.0"
] | 1 | 2020-08-29T02:33:13.000Z | 2020-08-29T02:33:13.000Z | //
// Created by Ail on 11/08/2020.
//
#include "gtest/gtest.h"
#include "testes_helper.hpp"
TEST(range_three_args, basic_test_step_1)
{
std::vector src = {1, 2, 3, 4, 5, 6, 7};
range r_src(src);
// origin
EXPECT_EQ("{1, 2, 3, 4, 5, 6, 7}", Tests::str(r_src));
EXPECT_EQ("{1, 2, 3, 4, 5, 6, 7}", T... | 40.097087 | 70 | 0.512918 | Ail-nare |
c74ddcd258aa361bb401c7c72cefb2dab165b58b | 685 | cpp | C++ | qt/TcpSocketChat/ChatServer/ServerQuery.cpp | ilyayunkin/CppSandbox | b03fd84462faa16b6c3ca03c1639fcbe0be361cf | [
"MIT"
] | null | null | null | qt/TcpSocketChat/ChatServer/ServerQuery.cpp | ilyayunkin/CppSandbox | b03fd84462faa16b6c3ca03c1639fcbe0be361cf | [
"MIT"
] | null | null | null | qt/TcpSocketChat/ChatServer/ServerQuery.cpp | ilyayunkin/CppSandbox | b03fd84462faa16b6c3ca03c1639fcbe0be361cf | [
"MIT"
] | null | null | null | #include "ServerQuery.h"
#include <QByteArray>
#include <QStringList>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
QByteArray ServerQuery::sendUserList(const QStringList userList)
{
QJsonArray jsonArray;
std::copy(userList.cbegin(), userList.cend(), std::back_inserter(jsonArray));
... | 20.757576 | 81 | 0.620438 | ilyayunkin |
c752d27f9c6d0e03662774cc34dcfc19d664543a | 168 | cpp | C++ | RayTracer/src/material/bsdf.cpp | ggfaEM/RayTracerCMAKE | 1327eda547b9d9afee6ecbb26ee98a69b963cac3 | [
"MIT"
] | null | null | null | RayTracer/src/material/bsdf.cpp | ggfaEM/RayTracerCMAKE | 1327eda547b9d9afee6ecbb26ee98a69b963cac3 | [
"MIT"
] | null | null | null | RayTracer/src/material/bsdf.cpp | ggfaEM/RayTracerCMAKE | 1327eda547b9d9afee6ecbb26ee98a69b963cac3 | [
"MIT"
] | null | null | null | #pragma once
#include "material/bsdf.h"
namespace rt
{
RGB_Color BSDF::f(const glm::dvec3& wi, const glm::dvec3& wo) const
{
return RGB_Color();
}
} // namespace rt | 14 | 67 | 0.690476 | ggfaEM |
c758485a886fb4f0f22b9b0ba83c484866d82c54 | 8,623 | cpp | C++ | src/stage/adventure-display-stage.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | 2 | 2019-02-28T00:28:08.000Z | 2019-10-20T14:39:48.000Z | src/stage/adventure-display-stage.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | src/stage/adventure-display-stage.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// ----------------------------------------------------------------------------
// "THE BEER-WARE LICENSE" (Revision 42):
// <ztn@zurreal.com> wrote this fi... | 37.008584 | 99 | 0.564537 | tilnewman |
c75a73f272118640a1577c79cb325ece2b684219 | 302 | cpp | C++ | src/ferris-wheel.cpp | SurajWarrier/cses-problem-set | 6248468f526caef10b2d56d8d6ec71059799d60e | [
"MIT"
] | null | null | null | src/ferris-wheel.cpp | SurajWarrier/cses-problem-set | 6248468f526caef10b2d56d8d6ec71059799d60e | [
"MIT"
] | null | null | null | src/ferris-wheel.cpp | SurajWarrier/cses-problem-set | 6248468f526caef10b2d56d8d6ec71059799d60e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n,x;
int main() {
int ans=0;
cin>>n>>x;
int p[n];
for(int i=0;i<n;i++) {
cin>>p[i];
}
sort(p,p+n);
for(int i=0,j=n-1;i<j;) {
while(i<j&&p[i]+p[j]>x)
--j;
if(i<j&&p[i]+p[j]<=x) {
++ans;
}
++i;
--j;
}
cout<<n-ans;
return 0;
} | 12.583333 | 26 | 0.463576 | SurajWarrier |
c75b1f8c3e2f1081190cf2aba29a7adcd4323e5c | 32,442 | cc | C++ | LeetCode/Easy/xofakind.cc | ChakreshSinghUC/CPPCodes | d82a3f467303566afbfcc927b660b0f7bf7c0432 | [
"MIT"
] | null | null | null | LeetCode/Easy/xofakind.cc | ChakreshSinghUC/CPPCodes | d82a3f467303566afbfcc927b660b0f7bf7c0432 | [
"MIT"
] | null | null | null | LeetCode/Easy/xofakind.cc | ChakreshSinghUC/CPPCodes | d82a3f467303566afbfcc927b660b0f7bf7c0432 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <map>
#include <vector>
#include <limits.h>
using namespace std;
class Solution
{
public:
int gcd(int a, int b)
{
// Everything divides 0
if (a == 0)
return b;
if (b == 0)
return a;
// base case
... | 410.658228 | 30,912 | 0.354047 | ChakreshSinghUC |
c7674ee204b1ea64a71cfd3987e8cf650d9fed78 | 3,220 | hpp | C++ | ext/src/java/lang/reflect/Modifier.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/lang/reflect/Modifier.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/lang/reflect/Modifier.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/lang/reflect/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct default_init_tag;
class java::lang::reflect::Modifier
: public vi... | 26.833333 | 97 | 0.710248 | pebble2015 |
c76b007bfa39cf0f5d99bebc5b27d57842ccfff4 | 733 | cpp | C++ | test/bellman-ford.test.cpp | fiore57/competitive-cpp | b42d29ad01dcf56ba31e397e5d6436b4a3dd9067 | [
"WTFPL"
] | 1 | 2020-09-06T12:55:57.000Z | 2020-09-06T12:55:57.000Z | test/bellman-ford.test.cpp | fiore57/competitive-cpp | b42d29ad01dcf56ba31e397e5d6436b4a3dd9067 | [
"WTFPL"
] | 2 | 2020-09-06T12:50:48.000Z | 2020-09-08T05:38:56.000Z | test/bellman-ford.test.cpp | fiore57/competitive-cpp | b42d29ad01dcf56ba31e397e5d6436b4a3dd9067 | [
"WTFPL"
] | 1 | 2020-09-06T12:36:59.000Z | 2020-09-06T12:36:59.000Z | #define PROBLEM \
"https://onlinejudge.u-aizu.ac.jp/courses/library/5/GRL/1/GRL_1_B"
// clang-format off
#include "../template/template.cpp"
#include "../graph/graph-template.cpp"
#include "../graph/bellman-ford.cpp"
// clang-format on
void Main() {
... | 25.275862 | 80 | 0.472033 | fiore57 |
c76c2e52fcfc585b375d27f228446225e9142cfb | 739 | cpp | C++ | bindings/GameBinding.cpp | sakex/NEAT-GRU | 2d96ff50415f38a8cf0ea7f3921c294b5766fc49 | [
"MIT"
] | 1 | 2021-05-21T21:40:11.000Z | 2021-05-21T21:40:11.000Z | bindings/GameBinding.cpp | sakex/NEAT-GRU | 2d96ff50415f38a8cf0ea7f3921c294b5766fc49 | [
"MIT"
] | 9 | 2020-06-01T14:33:32.000Z | 2020-06-01T16:38:28.000Z | bindings/GameBinding.cpp | sakex/NEAT-GRU | 2d96ff50415f38a8cf0ea7f3921c294b5766fc49 | [
"MIT"
] | null | null | null | //
// Created by alexandre on 20.05.20.
//
#include "GameBinding.h"
GameBinding::GameBinding(Simulation *_sim) : sim(_sim), _size(0) {
}
void GameBinding::do_reset_players(NN *brains, size_t size) {
_size = size;
void *void_brains = brains;
(*sim->reset_players)(sim->context, void_brains, sizeof(NN), sta... | 29.56 | 94 | 0.7023 | sakex |
c7706bd72583906fa30a2b6993c2589035661d79 | 734 | cpp | C++ | src/SQL_Compiler/base_operator.cpp | Algue-Rythme/MiniSQL | d49f463bb1b5c75645e56a95c65e19337f45b8e2 | [
"Apache-2.0"
] | null | null | null | src/SQL_Compiler/base_operator.cpp | Algue-Rythme/MiniSQL | d49f463bb1b5c75645e56a95c65e19337f45b8e2 | [
"Apache-2.0"
] | null | null | null | src/SQL_Compiler/base_operator.cpp | Algue-Rythme/MiniSQL | d49f463bb1b5c75645e56a95c65e19337f45b8e2 | [
"Apache-2.0"
] | null | null | null | #include <stdexcept>
#include "base_operator.hpp"
using namespace std;
namespace SQL_Compiler {
Tuple const& OperatorIterator::dereference() const {
if (is_done())
throw range_error("attempt to dereference an is_done() OperatorIterator");
return **it_ptr;
}
void OperatorItera... | 24.466667 | 97 | 0.637602 | Algue-Rythme |
c784e4184f4bf8183ca62f243ce9b23bab102589 | 9,306 | cpp | C++ | src/Scene/SceneImporter.cpp | lectroMathew/Core | cfc12b3331d426ebea7a5d4b574fc8f69b7854f9 | [
"MIT"
] | 14 | 2021-04-04T18:03:34.000Z | 2022-03-22T10:11:15.000Z | src/Scene/SceneImporter.cpp | lectroMathew/Core | cfc12b3331d426ebea7a5d4b574fc8f69b7854f9 | [
"MIT"
] | 73 | 2021-04-27T15:45:58.000Z | 2021-11-15T10:03:50.000Z | src/Scene/SceneImporter.cpp | lectroMathew/Core | cfc12b3331d426ebea7a5d4b574fc8f69b7854f9 | [
"MIT"
] | 1 | 2021-05-23T13:52:03.000Z | 2021-05-23T13:52:03.000Z | /*
MIT License
Copyright (c) 2021 lectroMathew <contact@lectro.moe>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... | 46.53 | 153 | 0.633892 | lectroMathew |
c785dcfa87990df7b0782059d70990d0076103b6 | 781 | cpp | C++ | CodeForces/DivisibilityProblem.cpp | Iltwats/Competitive-Programming- | 5e3af928e10d06a11dd5daab1b572184029ac3a4 | [
"MIT"
] | 1 | 2020-09-29T11:21:22.000Z | 2020-09-29T11:21:22.000Z | CodeForces/DivisibilityProblem.cpp | Iltwats/Competitive-Programming- | 5e3af928e10d06a11dd5daab1b572184029ac3a4 | [
"MIT"
] | null | null | null | CodeForces/DivisibilityProblem.cpp | Iltwats/Competitive-Programming- | 5e3af928e10d06a11dd5daab1b572184029ac3a4 | [
"MIT"
] | null | null | null | //You are given two positive integers a and b. In one move you can increase a by 1 (replace a with a+1).
//Your task is to find the minimum number of moves you need to do in order to make a divisible by b.
//It is possible, that you have to make 0 moves, as a is already divisible by b. You have to answer t independent... | 30.038462 | 125 | 0.603073 | Iltwats |
c786732a255870bdcf161913ee8de693a1257da2 | 542 | hh | C++ | freud-statistics/checker.hh | rishabh246/freud | 8c55dea15e080f466b54353adf4f72e3d1f34e20 | [
"Apache-2.0"
] | 22 | 2020-04-30T11:38:52.000Z | 2022-03-22T09:03:29.000Z | freud-statistics/checker.hh | rishabh246/freud | 8c55dea15e080f466b54353adf4f72e3d1f34e20 | [
"Apache-2.0"
] | 1 | 2021-06-18T09:40:59.000Z | 2021-06-18T09:40:59.000Z | freud-statistics/checker.hh | rishabh246/freud | 8c55dea15e080f466b54353adf4f72e3d1f34e20 | [
"Apache-2.0"
] | 5 | 2020-05-04T15:51:43.000Z | 2021-08-18T09:56:17.000Z | #ifndef CHECKER_HH_DEFINED
#define CHECKER_HH_DEFINED
#include "method.hh"
#include "stats.hh"
#include "utils.hh"
#include <fstream>
class checker {
private:
metric_type metric;
method * mtd;
annotation * pa;
std::ofstream * out_file;
void filter_data(corr_with_constraints cwc, std::vector<measure *> in, std:... | 19.357143 | 143 | 0.745387 | rishabh246 |
c7877ce396ed5adcf05777fcd6ed880d921e0440 | 1,329 | hpp | C++ | Nacro/SDK/FN_ItemCountRecycling_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_ItemCountRecycling_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_ItemCountRecycling_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function ItemCountRecy... | 29.533333 | 152 | 0.571859 | Milxnor |
c788d55ce16e956af9bc6c53cb3736d18d4227ed | 690 | inl | C++ | include/sprite2/Sprite.inl | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | include/sprite2/Sprite.inl | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | include/sprite2/Sprite.inl | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | #ifndef _SPRITE2_SPRITE_INL_
#define _SPRITE2_SPRITE_INL_
#include "sprite2/SprNameMap.h"
namespace s2
{
inline
void Sprite::SetName(const CU_STR& name)
{
m_name = SprNameMap::Instance()->StrToID(name);
UpdateInheritUpdate();
}
inline
void Sprite::UpdateInheritUpdate() const
{
if (m_name == -1) {
SetInheritU... | 16.829268 | 70 | 0.707246 | xzrunner |
c78a1111508942fb71ddc4e2417008668ea06a09 | 2,734 | cpp | C++ | bindings/python/src/LibraryMathematicsPy/Geometry/3D/Transformations/Rotations/RotationVector.cpp | cowlicks/library-mathematics | f1ff3257bb2da5371a9eacfcec538b2c00871696 | [
"Apache-2.0"
] | null | null | null | bindings/python/src/LibraryMathematicsPy/Geometry/3D/Transformations/Rotations/RotationVector.cpp | cowlicks/library-mathematics | f1ff3257bb2da5371a9eacfcec538b2c00871696 | [
"Apache-2.0"
] | null | null | null | bindings/python/src/LibraryMathematicsPy/Geometry/3D/Transformations/Rotations/RotationVector.cpp | cowlicks/library-mathematics | f1ff3257bb2da5371a9eacfcec538b2c00871696 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Library/Mathematics
/// @file LibraryMathematicsPy/Geometry/3D/Transformations/Rotations/RotationVector.cpp
/// @author ... | 48.821429 | 160 | 0.516459 | cowlicks |
c7914e783827a6e34e728feba2033dab33c1a163 | 50,412 | cpp | C++ | test/Shared/FieldContainer/test_01.cpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | test/Shared/FieldContainer/test_01.cpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | test/Shared/FieldContainer/test_01.cpp | Sandia2014/intrepid | 9a310ddc033da1dda162a09bf80cca6c2dde2d6b | [
"MIT"
] | null | null | null | // @HEADER
// ************************************************************************
//
// Intrepid Package
// Copyright (2007) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of the ... | 43.309278 | 132 | 0.492462 | Sandia2014 |
c791539e6b380edf7af9cff2320a651d23c601a1 | 21,853 | cc | C++ | src/media/audio/audio_core/mixer/point_sampler.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | src/media/audio/audio_core/mixer/point_sampler.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | src/media/audio/audio_core/mixer/point_sampler.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "src/media/audio/audio_core/mixer/point_sampler.h"
#include <lib/syslog/cpp/macros.h>
#include <lib/trace/event.h>
#include <algorithm>
#include <l... | 50.006865 | 100 | 0.678122 | csrpi |
c794e4493b85ded1ce48da8a141e9d61e81acf24 | 268 | hpp | C++ | include/Projectile.hpp | jasonwnorris/AceOfSpace3D | 18eb37844bd316a79282bde60fcc4391b8517b3d | [
"MIT"
] | null | null | null | include/Projectile.hpp | jasonwnorris/AceOfSpace3D | 18eb37844bd316a79282bde60fcc4391b8517b3d | [
"MIT"
] | null | null | null | include/Projectile.hpp | jasonwnorris/AceOfSpace3D | 18eb37844bd316a79282bde60fcc4391b8517b3d | [
"MIT"
] | null | null | null | // Projectile.hpp
#ifndef __PROJECTILE_HPP__
#define __PROJECTILE_HPP__
// AOS Includes
#include "GameObject.hpp"
class Projectile : public GameObject
{
public:
Projectile(const std::string& p_Keyname);
void Collide(GameObject* p_GameObject);
};
#endif
| 14.888889 | 45 | 0.746269 | jasonwnorris |
c796f33702ab73a1cbdca3d75d1bb2cefe97e944 | 972 | hpp | C++ | tests/models/models/torrentpeer.hpp | MrAhmedSayedAli/TinyORM | f185e76cfa955475df9b807c3e7ecaa4c20989c0 | [
"MIT"
] | 4 | 2021-07-07T01:21:34.000Z | 2022-02-01T01:38:24.000Z | tests/models/models/torrentpeer.hpp | MrAhmedSayedAli/TinyORM | f185e76cfa955475df9b807c3e7ecaa4c20989c0 | [
"MIT"
] | 2 | 2022-03-04T10:57:15.000Z | 2022-03-26T17:10:28.000Z | tests/models/models/torrentpeer.hpp | MrAhmedSayedAli/TinyORM | f185e76cfa955475df9b807c3e7ecaa4c20989c0 | [
"MIT"
] | 2 | 2021-08-10T01:31:31.000Z | 2022-03-04T10:37:42.000Z | #pragma once
#ifndef MODELS_TORRENTPEER_HPP
#define MODELS_TORRENTPEER_HPP
#include "orm/tiny/model.hpp"
#include "models/torrent.hpp"
namespace Models
{
using Orm::Tiny::Relations::BelongsTo;
class Torrent;
// NOLINTNEXTLINE(misc-no-recursion)
class TorrentPeer final : public Model<TorrentPeer, Torrent>
{
fr... | 20.25 | 63 | 0.66358 | MrAhmedSayedAli |
c799e4be957d32da40ec9259bea9b185cfb715f7 | 3,184 | cpp | C++ | TextureBase.cpp | Yamamoto0773/libClass | 630f00b01780904463ad9a0c9b74f2e078d01bc8 | [
"BSD-2-Clause"
] | 1 | 2019-12-07T13:53:31.000Z | 2019-12-07T13:53:31.000Z | TextureBase.cpp | Yamamoto0773/Dx9Wrapper | 630f00b01780904463ad9a0c9b74f2e078d01bc8 | [
"BSD-2-Clause"
] | null | null | null | TextureBase.cpp | Yamamoto0773/Dx9Wrapper | 630f00b01780904463ad9a0c9b74f2e078d01bc8 | [
"BSD-2-Clause"
] | null | null | null | #include "TextureBase.hpp"
#define Successful (1)
#define Failed (0)
#define WRITELOG(x, ...) { if (log != nullptr) { log->tlnwrite(x, __VA_ARGS__); } }
#include <d3dx9.h>
namespace dx9 {
namespace texture {
LogManager* TextureBase::log;
void deleter(IDirect3DTexture9* p) {
if (p) {
p->Release();
... | 15.762376 | 83 | 0.611809 | Yamamoto0773 |
c79bbea676ad81c7a74d87370ed306ff844088a5 | 1,313 | cpp | C++ | dynamic-programming/longest-common-subsequence.cpp | kanishkdudeja/cracking-the-coding-interview-solutions | b6b495eb838e3739fd09aaf1ea5a5a5eb15923d0 | [
"MIT"
] | 1 | 2019-12-29T17:47:53.000Z | 2019-12-29T17:47:53.000Z | dynamic-programming/longest-common-subsequence.cpp | kanishkdudeja/cracking-the-coding-interview-solutions | b6b495eb838e3739fd09aaf1ea5a5a5eb15923d0 | [
"MIT"
] | null | null | null | dynamic-programming/longest-common-subsequence.cpp | kanishkdudeja/cracking-the-coding-interview-solutions | b6b495eb838e3739fd09aaf1ea5a5a5eb15923d0 | [
"MIT"
] | null | null | null | /* LCS Problem Statement: Given two sequences, find the length of longest subsequence present
in both of them. A subsequence is a sequence that appears in the same relative order, but not
necessarily contiguous. For example, “abc”, “abg”, “bdf”, “aeg”, ‘”acefg”, .. etc are
subsequences of “abcdefg”.
*/
/* Examples:
... | 23.446429 | 93 | 0.607768 | kanishkdudeja |
c79cefccf08be7b4605f5f977cd90a591033b3e2 | 165 | cpp | C++ | 015-configure-file/01-executable/src/main.cpp | mustafagonul/cmake-examples | c8065bb24d0346ec2afc7aa11efdeb4ee04568a7 | [
"MIT"
] | 5 | 2018-09-29T04:06:11.000Z | 2021-03-15T20:05:57.000Z | 015-configure-file/01-executable/src/main.cpp | mustafagonul/cmake-examples | c8065bb24d0346ec2afc7aa11efdeb4ee04568a7 | [
"MIT"
] | null | null | null | 015-configure-file/01-executable/src/main.cpp | mustafagonul/cmake-examples | c8065bb24d0346ec2afc7aa11efdeb4ee04568a7 | [
"MIT"
] | 1 | 2020-01-28T14:39:31.000Z | 2020-01-28T14:39:31.000Z | #include "version.h"
#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
std::cout << "Version:" << version << std::endl;
return 0;
}
| 15 | 50 | 0.581818 | mustafagonul |
c79eeaae4f6cf5dbc6c22ce2885fb8a762f92025 | 5,188 | cc | C++ | src/nqsok/window.cc | CaffeineViking/nqsok | 1f4c7c2b7e7e907facd794b3267f07a2e01f6f87 | [
"MIT"
] | 1 | 2019-06-18T07:17:51.000Z | 2019-06-18T07:17:51.000Z | src/nqsok/window.cc | CaffeineViking/nqsok | 1f4c7c2b7e7e907facd794b3267f07a2e01f6f87 | [
"MIT"
] | null | null | null | src/nqsok/window.cc | CaffeineViking/nqsok | 1f4c7c2b7e7e907facd794b3267f07a2e01f6f87 | [
"MIT"
] | null | null | null | #include "window.hh"
#include <iostream>
#include "image.hh"
nq::Window::Window(int width, int height, const std::string& title,
const Context& context, bool fullscreen = false, bool vsync = true)
: cached_width {width}, cached_height {height}, title {title} {
std::cout << "\... | 34.586667 | 95 | 0.649576 | CaffeineViking |
c79f57cfb2e47f3b0388a93e438ce0c283638750 | 354 | cpp | C++ | AssortedWidgets/Button.cpp | Bot-Labs/AssortedWidgets | 298567b8f069580205e309979bc35ec063d09f51 | [
"MIT"
] | 107 | 2016-03-13T23:45:48.000Z | 2022-02-13T21:17:44.000Z | AssortedWidgets/Button.cpp | Bot-Labs/AssortedWidgets | 298567b8f069580205e309979bc35ec063d09f51 | [
"MIT"
] | 2 | 2019-10-12T12:19:21.000Z | 2022-01-04T10:42:18.000Z | AssortedWidgets/Button.cpp | Bot-Labs/AssortedWidgets | 298567b8f069580205e309979bc35ec063d09f51 | [
"MIT"
] | 29 | 2017-06-04T15:04:30.000Z | 2021-11-25T14:36:48.000Z | #include "Button.h"
namespace AssortedWidgets
{
namespace Widgets
{
Button::Button(const std::string &text)
:AbstractButton(4,4,8,8),
m_text(text)
{
m_size=getPreferedSize();
m_horizontalStyle=Element::Fit;
m_verticalStyle=Element::Fit;
}
B... | 16.857143 | 47 | 0.567797 | Bot-Labs |
c7a3bf07f2929961f41add731e389b56a26bea01 | 4,640 | cpp | C++ | Drivers/Chute/VremanHopper.cpp | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | Drivers/Chute/VremanHopper.cpp | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | Drivers/Chute/VremanHopper.cpp | gustavo-castillo-bautista/Mercury | eeb402ccec8e487652229d4595c46ec84f6aefbb | [
"BSD-3-Clause"
] | null | null | null | //Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redistributions ... | 41.061947 | 133 | 0.739224 | gustavo-castillo-bautista |
c7a496448f3828c6f284d4c0d5d2d0cba75bcc4c | 2,150 | cpp | C++ | YorozuyaGSLib/source/_buy_store_success_zoclDetail.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_buy_store_success_zoclDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_buy_store_success_zoclDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_buy_store_success_zoclDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::_buy_store_success_zoclctor__buy_store_success_zocl2_ptr _buy_store_success_zoclctor__buy_store_success_zocl2_next(nullptr);
Info::_buy_store_success_zoclctor__buy_s... | 48.863636 | 139 | 0.72186 | lemkova |
c7a78f8cc7cb4e80efe061816a715594e67d2dc5 | 1,181 | cpp | C++ | src/Graphics/Drawable/Drawable.cpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | src/Graphics/Drawable/Drawable.cpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | src/Graphics/Drawable/Drawable.cpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | #include <Drawable.hpp>
#include <Graphics.hpp>
#include <Bindable.hpp>
#include <IndexBuffer.hpp>
#include <BindableCodex.hpp>
#include <typeinfo>
Drawable::Drawable(const std::string& name)
: m_indexCount(0u), m_name(name) {}
Drawable::~Drawable(){
for (auto& bind : m_pBindRefs)
Codex::ReleaseRef(bi... | 29.525 | 87 | 0.698561 | razerx100 |
c7a9808f873a527863d8b837bed745c5f2e3dc77 | 3,467 | cpp | C++ | low-can-binding/can/message-definition.cpp | redpesk-common/canbus-binding | 031ebb8657e66129936ba9079faa58e369f97de1 | [
"Apache-2.0"
] | null | null | null | low-can-binding/can/message-definition.cpp | redpesk-common/canbus-binding | 031ebb8657e66129936ba9079faa58e369f97de1 | [
"Apache-2.0"
] | null | null | null | low-can-binding/can/message-definition.cpp | redpesk-common/canbus-binding | 031ebb8657e66129936ba9079faa58e369f97de1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2015, 2016 "IoT.bzh"
* Author "Romain Forlot" <romain.forlot@iot.bzh>
*
* 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.... | 23.113333 | 76 | 0.773579 | redpesk-common |
c7adabe1886f175060d95f1a5e796551754e1d6c | 3,116 | cpp | C++ | src/KeyMap.cpp | errata-c/ez-input | f3feb0c8ea6ef8918e6babee4abd1168a42c6a27 | [
"MIT"
] | null | null | null | src/KeyMap.cpp | errata-c/ez-input | f3feb0c8ea6ef8918e6babee4abd1168a42c6a27 | [
"MIT"
] | null | null | null | src/KeyMap.cpp | errata-c/ez-input | f3feb0c8ea6ef8918e6babee4abd1168a42c6a27 | [
"MIT"
] | null | null | null | #include <ez/input/KeyMap.hpp>
namespace ez {
namespace intern {
std::uint32_t getRawValue(ez::KeyMods mods, ez::Key key) noexcept {
return (mods.rawValue() << 28) | static_cast<std::uint32_t>(key);
}
}
using iterator = KeyMap::iterator;
using const_iterator = KeyMap::const_iterator;
bool KeyGroup::opera... | 26.40678 | 107 | 0.662067 | errata-c |
c7b00e35dc6bbbc343abb0ac170f26d6b63c0782 | 2,373 | cpp | C++ | SerialPrograms/Source/PokemonSwSh/ShinyHuntTracker.cpp | Gin890/Arduino-Source | 9047ff584010d8ddc3558068874f16fb3c7bb46d | [
"MIT"
] | 1 | 2022-03-29T18:51:49.000Z | 2022-03-29T18:51:49.000Z | SerialPrograms/Source/PokemonSwSh/ShinyHuntTracker.cpp | Gin890/Arduino-Source | 9047ff584010d8ddc3558068874f16fb3c7bb46d | [
"MIT"
] | null | null | null | SerialPrograms/Source/PokemonSwSh/ShinyHuntTracker.cpp | Gin890/Arduino-Source | 9047ff584010d8ddc3558068874f16fb3c7bb46d | [
"MIT"
] | null | null | null | /* Shiny Hunt Tracker
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include "Common/Cpp/Exceptions.h"
#include "ShinyHuntTracker.h"
namespace PokemonAutomation{
namespace NintendoSwitch{
namespace PokemonSwSh{
ShinyHuntTracker::ShinyHuntTracker(bool shiny_types)
: ... | 25.244681 | 110 | 0.658239 | Gin890 |
c7b3053b850c8e7082320e3a6589e404ab2177f4 | 893 | cc | C++ | HDU/2609_How many/2609.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | 1 | 2019-05-05T03:51:20.000Z | 2019-05-05T03:51:20.000Z | HDU/2609_How many/2609.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | HDU/2609_How many/2609.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int len;
char s[210];
int get_min_express() {
int i = 0, j = 1, k = 0;
while (i < len and j < len and k < len) {
if (s[i+k] > s[j+k]) {
i += k + 1;
k = 0;
} else if (s[i+k] < s[j+k]) {
j += k + 1;
k ... | 19.413043 | 48 | 0.365062 | pdszhh |
c7bfa35b58f45719b92303e735c6bd9384252cfc | 5,646 | cpp | C++ | tests/parse/json.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | tests/parse/json.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | tests/parse/json.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/parse/json/array.hpp>
#include <sge/parse/json/array_or_object.hpp>
#include <sge/par... | 36.662338 | 116 | 0.524619 | cpreh |
c7c024a6e0ec69757cbeb0a449998f100fdef86c | 7,621 | cpp | C++ | account.cpp | dylancarlson/citplus | 90aedfc7047fe92bdd0d09f1eb1671d7ddcde8a3 | [
"Unlicense"
] | 1 | 2020-08-11T06:12:01.000Z | 2020-08-11T06:12:01.000Z | account.cpp | dylancarlson/citplus | 90aedfc7047fe92bdd0d09f1eb1671d7ddcde8a3 | [
"Unlicense"
] | null | null | null | account.cpp | dylancarlson/citplus | 90aedfc7047fe92bdd0d09f1eb1671d7ddcde8a3 | [
"Unlicense"
] | null | null | null | // --------------------------------------------------------------------------
// Citadel: Account.CPP
//
// Accounting related routines
#include "ctdl.h"
#pragma hdrstop
#include "account.h"
#include "log.h"
#include "group.h"
#include "cwindows.h"
// -------------------------------------------------... | 23.377301 | 94 | 0.572628 | dylancarlson |
c7c32a3838991e9a964023399934a8ba1f0c25c8 | 15,778 | cpp | C++ | model/generalregressionmodel.cpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | 6 | 2020-09-23T15:38:28.000Z | 2021-11-16T20:39:21.000Z | model/generalregressionmodel.cpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | null | null | null | model/generalregressionmodel.cpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | 2 | 2021-10-04T22:16:48.000Z | 2022-02-25T00:32:40.000Z | // Copyright 2018-2021 Lexis Nexis Risk Solutions
//
// 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 applicabl... | 40.25 | 213 | 0.616491 | BrentP-tmx |
c7c81d4f3e0a34c574b370cb70cd7399688bf4da | 129 | cc | C++ | tensorflow-yolo-ios/dependencies/google/protobuf/compiler/objectivec/objectivec_generator.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/google/protobuf/compiler/objectivec/objectivec_generator.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/google/protobuf/compiler/objectivec/objectivec_generator.cc | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:68bb6cf05ffc036aba2cb777cf7ead26ffef2cfca190e3f607867f7511a9e58d
size 7344
| 32.25 | 75 | 0.883721 | initialz |
c7d6acbf62b3206890b1f39c08631b05b7e943ec | 2,856 | cpp | C++ | BGE/PathFollowingScenario.cpp | PocketRocketRoche/GamesEngines1Assignment | 2b402cb45387eb64f34c8a648fd68c3cd1df0118 | [
"MIT"
] | null | null | null | BGE/PathFollowingScenario.cpp | PocketRocketRoche/GamesEngines1Assignment | 2b402cb45387eb64f34c8a648fd68c3cd1df0118 | [
"MIT"
] | null | null | null | BGE/PathFollowingScenario.cpp | PocketRocketRoche/GamesEngines1Assignment | 2b402cb45387eb64f34c8a648fd68c3cd1df0118 | [
"MIT"
] | null | null | null | #include "PathFollowingScenario.h"
#include "SteeringGame.h"
#include "Params.h"
#include "Content.h"
#include "VectorDrawer.h"
#include "State.h"
#include "IdleState.h"
using namespace BGE;
PathFollowingScenario::PathFollowingScenario()
{
}
PathFollowingScenario::~PathFollowingScenario()
{
}
string PathFollowingS... | 34 | 108 | 0.758754 | PocketRocketRoche |
93a444375face6e61cb84b9d40de10127ee69b4b | 1,891 | cpp | C++ | flight/atcroutefactory.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | 5 | 2018-01-08T22:20:07.000Z | 2021-06-19T17:42:29.000Z | flight/atcroutefactory.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | null | null | null | flight/atcroutefactory.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | 2 | 2017-08-07T23:07:42.000Z | 2021-05-09T13:02:39.000Z |
#include "atcroutefactory.h"
ATCRouteFactory::ATCRouteFactory(QString path)
{
QFile file(path);
if(!file.open(QFile::ReadOnly | QFile::Text))
{
QMessageBox msgBox;
msgBox.setText("Failed to open path: " + path);
msgBox.exec();
return;
}
QTextStream stream(&file);... | 20.117021 | 94 | 0.543628 | ignmiz |
93ad906acb65ce61aa62f84f507118ef6f3f1fe6 | 1,442 | cpp | C++ | telephone/telephone.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | 1 | 2020-12-15T20:25:21.000Z | 2020-12-15T20:25:21.000Z | telephone/telephone.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | null | null | null | telephone/telephone.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int dist[55][50005];
int b[50005];
int adj[55][55];
deque<pair<int, int>> q;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int n, k;
cin >> n >> k;
for (int i = 1; i <= k; i++)
{
for (int j = 0; j < n; j++)
{
dist[i][j... | 22.184615 | 52 | 0.332178 | chenhongqiao |
93b22d77890068cfe5e05dfc3126abfa69d6dda3 | 1,044 | hpp | C++ | flare/include/flare/actor_axis_constraint.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 14 | 2019-04-29T15:17:24.000Z | 2020-12-30T12:51:05.000Z | flare/include/flare/actor_axis_constraint.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | null | null | null | flare/include/flare/actor_axis_constraint.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 6 | 2019-04-29T15:17:25.000Z | 2021-11-16T03:20:59.000Z | #ifndef _FLARE_ACTORAXISCONSTRAINT_HPP_
#define _FLARE_ACTORAXISCONSTRAINT_HPP_
#include "actor_bone.hpp"
#include "actor_targeted_constraint.hpp"
#include "transform_space.hpp"
#include "flare_math/mat2d.hpp"
#include "flare_math/transform_components.hpp"
#include <vector>
namespace flare
{
class Actor;
class Act... | 23.2 | 108 | 0.793103 | taehyub |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.