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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4051c11acd99748fc57755afe3ffd9517d1af0d6 | 14,461 | cc | C++ | cpp/platform/pipe_test.cc | jdapena/nearby-connections | ae277748ce068ef1730d5104002d4324fc4ed89e | [
"Apache-2.0"
] | null | null | null | cpp/platform/pipe_test.cc | jdapena/nearby-connections | ae277748ce068ef1730d5104002d4324fc4ed89e | [
"Apache-2.0"
] | null | null | null | cpp/platform/pipe_test.cc | jdapena/nearby-connections | ae277748ce068ef1730d5104002d4324fc4ed89e | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 35.099515 | 80 | 0.687504 | jdapena |
4052f94ed4582727334e91367fc20b8af62e8d34 | 4,958 | cc | C++ | wrspice/src/misc/time.cc | bernardventer/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 3 | 2020-01-26T14:18:52.000Z | 2020-12-09T20:07:22.000Z | wrspice/src/misc/time.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | null | null | null | wrspice/src/misc/time.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 2 | 2020-01-26T14:19:02.000Z | 2021-08-14T16:33:28.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 36.189781 | 77 | 0.488302 | bernardventer |
40574854a6ebfc44d7e87b5865e88e126d5d426d | 9,138 | cpp | C++ | src/hardware/Timer.cpp | teknoman117/ts-3100-kvm-emulator | 782c9440e9d40e536b8fc4c9b017ddd1ddea727f | [
"BSD-3-Clause"
] | 1 | 2020-05-07T19:28:47.000Z | 2020-05-07T19:28:47.000Z | src/hardware/Timer.cpp | teknoman117/ts-3100-kvm-emulator | 782c9440e9d40e536b8fc4c9b017ddd1ddea727f | [
"BSD-3-Clause"
] | null | null | null | src/hardware/Timer.cpp | teknoman117/ts-3100-kvm-emulator | 782c9440e9d40e536b8fc4c9b017ddd1ddea727f | [
"BSD-3-Clause"
] | null | null | null | #include "Timer.hpp"
#include <cstdio>
#include <cstring>
#include <cassert>
ProgrammableIntervalTimer::ProgrammableIntervalTimer() : timerPrescaler(2), state{} {
// initialize the last updated timer
auto now = std::chrono::high_resolution_clock::now();
state[0].lastRecord = now;
state[1].lastRecord =... | 38.394958 | 98 | 0.588094 | teknoman117 |
405784a7e205a322d0311e7a3c78a081435d385d | 16,808 | cpp | C++ | editor/editor_plugin.cpp | 27thLiz/godo | 0029440955f6d500a0c97bf7348a7b5353db0cea | [
"CC-BY-3.0",
"MIT"
] | 2 | 2021-11-08T02:48:48.000Z | 2021-11-08T09:40:55.000Z | editor/editor_plugin.cpp | 27thLiz/godot | 0029440955f6d500a0c97bf7348a7b5353db0cea | [
"CC-BY-3.0",
"MIT"
] | 2 | 2015-12-08T14:13:40.000Z | 2016-05-27T20:16:07.000Z | editor/editor_plugin.cpp | Hinsbart/godot | 0029440955f6d500a0c97bf7348a7b5353db0cea | [
"CC-BY-3.0",
"MIT"
] | null | null | null | /*************************************************************************/
/* editor_plugin.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 40.599034 | 230 | 0.740778 | 27thLiz |
4066e4beafcffe053e6c6147f0837c9c353eb0bd | 17,646 | cpp | C++ | src/stage/credits-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/credits-stage.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | src/stage/credits-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 file. ... | 36.234086 | 99 | 0.590445 | tilnewman |
40673444d5518a8199103c2027477c5829849fd6 | 4,531 | cpp | C++ | DSPFilters4JUCEDemo/JuceLibraryCode/modules/juce_core/network/juce_WebInputStream.cpp | rc-h/dspfilters4juce | 60b32a3af7eb89289f89e01db1239e312544ec2c | [
"MIT"
] | 10 | 2017-07-16T04:50:47.000Z | 2022-02-14T06:10:45.000Z | DSPFilters4JUCEDemo/JuceLibraryCode/modules/juce_core/network/juce_WebInputStream.cpp | rc-h/dspfilters4juce | 60b32a3af7eb89289f89e01db1239e312544ec2c | [
"MIT"
] | 199 | 2016-07-28T07:30:48.000Z | 2017-10-14T06:15:40.000Z | UI/JuceLibraryCode/modules/juce_core/network/juce_WebInputStream.cpp | subutai-io/launcher | d8397995e18200b12d60781ed485af04f70bff03 | [
"Apache-2.0"
] | 3 | 2017-11-07T14:44:14.000Z | 2021-03-16T02:45:57.000Z | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2016 - ROLI Ltd.
Permission is granted to use this software under the terms of the ISC license
http://www.isc.org/downloads/software-support-policy/isc-license/
... | 50.344444 | 138 | 0.612889 | rc-h |
406910e2b30648cb4a04f6eab02eecf930109ab6 | 1,950 | cpp | C++ | test/unit/readpipe/read_transformer_tests.cpp | gunjanbaid/octopus | b19e825d10c16bc14565338aadf4aee63c8fe816 | [
"MIT"
] | 278 | 2016-10-03T16:30:49.000Z | 2022-03-25T05:59:32.000Z | test/unit/readpipe/read_transformer_tests.cpp | gunjanbaid/octopus | b19e825d10c16bc14565338aadf4aee63c8fe816 | [
"MIT"
] | 229 | 2016-10-13T14:07:35.000Z | 2022-03-19T18:59:58.000Z | test/unit/readpipe/read_transformer_tests.cpp | gunjanbaid/octopus | b19e825d10c16bc14565338aadf4aee63c8fe816 | [
"MIT"
] | 37 | 2016-10-28T22:47:54.000Z | 2022-03-20T07:28:43.000Z | // Copyright (c) 2017 Daniel Cooke
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include "basics/genomic_region.hpp"
#inc... | 30 | 96 | 0.673333 | gunjanbaid |
406fdd256e7e0f2849190c80af43b9228d510bf3 | 8,910 | cpp | C++ | Tools/sitl_gazebo/src/gazebo_uuv_plugin.cpp | 666cats/Px4forVTOL | 65965fb5eda3b6bbfab0daae8a1dc9bbbe1407d5 | [
"BSD-3-Clause"
] | 10 | 2021-03-15T03:58:06.000Z | 2021-12-30T15:33:38.000Z | Tools/sitl_gazebo/src/gazebo_uuv_plugin.cpp | 666cats/Px4forVTOL | 65965fb5eda3b6bbfab0daae8a1dc9bbbe1407d5 | [
"BSD-3-Clause"
] | 4 | 2021-05-03T16:58:53.000Z | 2021-12-21T21:01:02.000Z | Tools/sitl_gazebo/src/gazebo_uuv_plugin.cpp | 666cats/Px4forVTOL | 65965fb5eda3b6bbfab0daae8a1dc9bbbe1407d5 | [
"BSD-3-Clause"
] | 9 | 2021-04-28T15:26:34.000Z | 2021-12-21T20:41:30.000Z | /*
* Copyright 2020 Daniel Duecker, TU Hamburg, Germany
* Copyright 2020 Philipp Hastedt, TU Hamburg, Germany
* based on prior work by Nils Rottmann and Austin Buchan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... | 38.73913 | 138 | 0.697194 | 666cats |
4079dd1ca990e40a6fde7ac7faa692666aaa8589 | 19,176 | cpp | C++ | Source/Core/Visualization/Object/PointObject.cpp | X1aoyueyue/KVS | ad47d62bef4fdd9ddd3412a26ee6557b63f0543b | [
"BSD-3-Clause"
] | 42 | 2015-07-24T23:05:07.000Z | 2022-03-16T01:31:04.000Z | Source/Core/Visualization/Object/PointObject.cpp | X1aoyueyue/KVS | ad47d62bef4fdd9ddd3412a26ee6557b63f0543b | [
"BSD-3-Clause"
] | 4 | 2015-03-17T05:42:49.000Z | 2020-08-09T15:21:45.000Z | Source/Core/Visualization/Object/PointObject.cpp | X1aoyueyue/KVS | ad47d62bef4fdd9ddd3412a26ee6557b63f0543b | [
"BSD-3-Clause"
] | 29 | 2015-01-03T05:56:32.000Z | 2021-10-05T15:28:33.000Z | /*****************************************************************************/
/**
* @file PointObject.cpp
* @author Naohisa Sakamoto
*/
/*****************************************************************************/
#include "PointObject.h"
#include <cstring>
#include <kvs/KVSMLPointObject>
#include <kvs/LineO... | 36.045113 | 112 | 0.448112 | X1aoyueyue |
407ac86c18e4be8bce020a1fb5d9874a96d7bfb2 | 738 | hpp | C++ | include/tdc/test/assert.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 1 | 2021-05-06T13:39:22.000Z | 2021-05-06T13:39:22.000Z | include/tdc/test/assert.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 1 | 2020-03-07T08:05:20.000Z | 2020-03-07T08:05:20.000Z | include/tdc/test/assert.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 2 | 2020-05-27T07:54:43.000Z | 2021-11-18T13:29:14.000Z | #include <cstdlib>
#include <iostream>
#define ASSERT_FAIL_STR "Assertion failed: "
#define ASSERT_TRUE(x) \
{ \
if(!x) { \
std::cerr \
<< ASSERT_FAIL_STR \
<< __FILE__ << ":" << __LINE__ \
<< " in " << __PRETTY_FUNCTION__ \
<< std::endl; \
std::flus... | 18.923077 | 46 | 0.5271 | herlez |
407b81392447b8682efc00641682fb59925a47fc | 1,660 | cc | C++ | impl/components/editing/content/renderer/editorclient_agent.cc | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | 9 | 2015-04-09T20:22:08.000Z | 2021-03-17T08:34:56.000Z | impl/components/editing/content/renderer/editorclient_agent.cc | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | 2 | 2015-02-04T13:41:12.000Z | 2015-05-25T14:00:40.000Z | impl/components/editing/content/renderer/editorclient_agent.cc | isabella232/chromium-efl | db2d09aba6498fb09bbea1f8440d071c4b0fde78 | [
"BSD-3-Clause"
] | 14 | 2015-02-12T16:20:47.000Z | 2022-01-20T10:36:26.000Z | // Copyright 2013 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/editing/content/renderer/editorclient_agent.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "content/public/renderer/r... | 34.583333 | 95 | 0.784337 | Jabawack |
407c78f68d99e273e46b5a315c687b827f18d526 | 185 | cpp | C++ | engine/src/graphics/texture.cpp | anujv99/GameEngine | 644cb6667800cfecaa429666e5610e27f923e953 | [
"MIT"
] | null | null | null | engine/src/graphics/texture.cpp | anujv99/GameEngine | 644cb6667800cfecaa429666e5610e27f923e953 | [
"MIT"
] | null | null | null | engine/src/graphics/texture.cpp | anujv99/GameEngine | 644cb6667800cfecaa429666e5610e27f923e953 | [
"MIT"
] | null | null | null | #include "texture.h"
namespace prev {
DEFINE_OBJECT_START(Texture2D, Vec2i size, TextureParams params)
DEFINE_OBJECT_BODY(Texture2D, size, params);
DEFINE_OBJECT_END(Texture2D)
} | 20.555556 | 65 | 0.794595 | anujv99 |
407d76d1bd7404d9dae9320c82b36f1318e4b159 | 797 | hpp | C++ | wire/core/subscription.hpp | wagnercotta/is-wire | 15812227b57b814fbc9317465b6918375bc89c92 | [
"MIT"
] | 1 | 2018-05-04T16:27:49.000Z | 2018-05-04T16:27:49.000Z | wire/core/subscription.hpp | wagnercotta/is-wire | 15812227b57b814fbc9317465b6918375bc89c92 | [
"MIT"
] | 2 | 2018-05-25T16:15:19.000Z | 2018-05-25T16:20:09.000Z | wire/core/subscription.hpp | wagnercotta/is-wire | 15812227b57b814fbc9317465b6918375bc89c92 | [
"MIT"
] | 5 | 2018-05-30T10:02:28.000Z | 2021-10-29T19:00:30.000Z | #pragma once
#include <chrono>
#include <string>
#include <vector>
#include "boost/optional.hpp"
namespace AmqpClient {
class Channel;
}
namespace is {
class Message;
class Channel;
using namespace std::chrono;
class Subscription {
boost::shared_ptr<AmqpClient::Channel> impl;
std::string exchange;
std::strin... | 20.973684 | 63 | 0.716437 | wagnercotta |
407fb0873cabafb6a76ea98a76ff099c0755cd1f | 1,610 | cpp | C++ | class11/reduce_sum_blocks.cpp | profmdipierro/cpsc445 | 5ff4164b78ff4a5f0285e28b60fb615072d45829 | [
"BSD-3-Clause"
] | 3 | 2021-09-14T03:21:58.000Z | 2021-11-13T00:11:11.000Z | class11/reduce_sum_blocks.cpp | profmdipierro/cpsc445 | 5ff4164b78ff4a5f0285e28b60fb615072d45829 | [
"BSD-3-Clause"
] | null | null | null | class11/reduce_sum_blocks.cpp | profmdipierro/cpsc445 | 5ff4164b78ff4a5f0285e28b60fb615072d45829 | [
"BSD-3-Clause"
] | 2 | 2021-09-04T18:08:00.000Z | 2021-11-19T18:38:25.000Z | #include <stdio.h>
__global__ void reduce_sum_step1(int * da, int N) {
int B = gridDim.x;
int W = blockDim.x;
int shift = W * B;
__shared__ int tmp[1024];
int tid = threadIdx.x;
int gid = blockIdx.x * blockDim.x + threadIdx.x;
tmp[tid] = da[gid];
for(int i=gid+shift; i<N; i+=shift) {
tmp[tid]... | 18.505747 | 60 | 0.557764 | profmdipierro |
407ffbfaf9205a1cc8e5c7ca07babc6136067b32 | 49,767 | cpp | C++ | tests/test_http_server_cb/test_http_server_cb.cpp | DG12/ruuvi.gateway_esp.c | cf22748af0c0a37287f08b49477f06f56456f72f | [
"BSD-3-Clause"
] | null | null | null | tests/test_http_server_cb/test_http_server_cb.cpp | DG12/ruuvi.gateway_esp.c | cf22748af0c0a37287f08b49477f06f56456f72f | [
"BSD-3-Clause"
] | null | null | null | tests/test_http_server_cb/test_http_server_cb.cpp | DG12/ruuvi.gateway_esp.c | cf22748af0c0a37287f08b49477f06f56456f72f | [
"BSD-3-Clause"
] | null | null | null | /**
* @file test_bin2hex.cpp
* @author TheSomeMan
* @date 2020-08-27
* @copyright Ruuvi Innovations Ltd, license BSD-3-Clause.
*/
#include "http_server_cb.h"
#include <cstring>
#include <utility>
#include "gtest/gtest.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log_wrapper.hpp"
#inc... | 42.572284 | 118 | 0.704744 | DG12 |
4084cb54acf621bd5348923cbda12033ef4d6131 | 2,162 | cpp | C++ | Source/Physics/Soft/Constraint.cpp | Karshilov/Dorothy-SSR | cce19ed2218d76f941977370f6b3894e2f87236a | [
"MIT"
] | 43 | 2020-01-29T02:22:41.000Z | 2021-12-06T04:20:12.000Z | Source/Physics/Soft/Constraint.cpp | Jilliana8397/Dorothy-SSR | 5ad647909c5e20cb7ebde9a1a054cdb944969dcb | [
"MIT"
] | 1 | 2020-03-19T16:23:12.000Z | 2020-03-19T16:23:12.000Z | Source/Physics/Soft/Constraint.cpp | Jilliana8397/Dorothy-SSR | 5ad647909c5e20cb7ebde9a1a054cdb944969dcb | [
"MIT"
] | 8 | 2020-03-08T13:46:08.000Z | 2021-07-19T11:30:23.000Z | /* Copyright (c) 2021 Jin Li, http://www.luvfight.me
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi... | 33.78125 | 463 | 0.723404 | Karshilov |
4089df6e2bbd0f9c60fc12835cd4bb8f4a29965c | 1,309 | cpp | C++ | solutions-in-cpp/F-LCS.cpp | fastestmk/atcoder-dp-contest | 0a710a87da833ab26af2502b6ee3166aee16cb29 | [
"MIT"
] | null | null | null | solutions-in-cpp/F-LCS.cpp | fastestmk/atcoder-dp-contest | 0a710a87da833ab26af2502b6ee3166aee16cb29 | [
"MIT"
] | null | null | null | solutions-in-cpp/F-LCS.cpp | fastestmk/atcoder-dp-contest | 0a710a87da833ab26af2502b6ee3166aee16cb29 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
#define ll long long
const int INF = 1e9+5;
int dp[3005][3005];
int main(){
//freopen("tree.in","r",stdin);
//freopen("tree.out","w",stdout);
//freopen("input.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
ios_base::sync_with_stdio... | 22.568966 | 80 | 0.398014 | fastestmk |
408d7db4c636089388dba7cccb9d735a7edccd5f | 8,581 | cpp | C++ | src/OpcUaStackServer/ServiceSet/NodeManagementService.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 108 | 2018-10-08T17:03:32.000Z | 2022-03-21T00:52:26.000Z | src/OpcUaStackServer/ServiceSet/NodeManagementService.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 287 | 2018-09-18T14:59:12.000Z | 2022-01-13T12:28:23.000Z | src/OpcUaStackServer/ServiceSet/NodeManagementService.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 32 | 2018-10-19T14:35:03.000Z | 2021-11-12T09:36:46.000Z | /*
Copyright 2015-2017 Kai Huebl (kai@huebl-sgh.de)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0.
Sofern nicht gemäß geltendem Recht vorge... | 32.381132 | 116 | 0.740939 | gianricardo |
4095e3374b46d2f2a2912652122e45fb204f825b | 37,303 | cpp | C++ | src/c_map.cpp | deadline-cxn/dlstorm | 4dec81a71af5f4bbf7daf227c5fd662b9c613e9c | [
"BSD-3-Clause"
] | null | null | null | src/c_map.cpp | deadline-cxn/dlstorm | 4dec81a71af5f4bbf7daf227c5fd662b9c613e9c | [
"BSD-3-Clause"
] | null | null | null | src/c_map.cpp | deadline-cxn/dlstorm | 4dec81a71af5f4bbf7daf227c5fd662b9c613e9c | [
"BSD-3-Clause"
] | null | null | null | /* Seth's Map Class */
#include "c_map.h"
CMapObject::CMapObject() {
iType = 0;
memset(szName, 0, 32);
memset(szDescription, 0, 256);
SID = 0;
iGFXIndex = 0;
iX = 0;
iY = 0;
iZ = 0;
rcMouse.bottom = 0;
rcMouse.left = 0;
... | 39.557794 | 257 | 0.420449 | deadline-cxn |
409670dfebcd2a626c9a93d0fc89755aab2877a1 | 2,689 | cc | C++ | processors/IA32/bochs/bios/usage.cc | bavison/opensmalltalk-vm | d494240736f7c0309e3e819784feb1d53ed0985a | [
"MIT"
] | 445 | 2016-06-30T08:19:11.000Z | 2022-03-28T06:09:49.000Z | processors/IA32/bochs/bios/usage.cc | bavison/opensmalltalk-vm | d494240736f7c0309e3e819784feb1d53ed0985a | [
"MIT"
] | 439 | 2016-06-29T20:14:36.000Z | 2022-03-17T19:59:58.000Z | processors/IA32/bochs/bios/usage.cc | bavison/opensmalltalk-vm | d494240736f7c0309e3e819784feb1d53ed0985a | [
"MIT"
] | 137 | 2016-07-02T17:32:07.000Z | 2022-03-20T11:17:25.000Z | /////////////////////////////////////////////////////////////////////////
// $Id: usage.cc,v 1.4 2003/10/07 01:44:34 danielg4 Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
// 75002 Paris ... | 26.89 | 76 | 0.586463 | bavison |
409737a2d1130201d399d379151c0943329aa0c6 | 8,916 | cpp | C++ | miniapps/pnp/EAFE_SUPG_advection_diffusion/adv_diff_3D.cpp | fanronghong/mfem | 5bc8d5ea1b7e3a0b377423773e78428bf7160612 | [
"BSD-3-Clause"
] | 1 | 2020-04-28T05:08:24.000Z | 2020-04-28T05:08:24.000Z | miniapps/pnp/EAFE_SUPG_advection_diffusion/adv_diff_3D.cpp | fanronghong/mfem | 5bc8d5ea1b7e3a0b377423773e78428bf7160612 | [
"BSD-3-Clause"
] | null | null | null | miniapps/pnp/EAFE_SUPG_advection_diffusion/adv_diff_3D.cpp | fanronghong/mfem | 5bc8d5ea1b7e3a0b377423773e78428bf7160612 | [
"BSD-3-Clause"
] | null | null | null | /*
* 参考文献
* [1] a monotone finite element scheme for convection-diffusion equations
*
* -\nabla\cdot(\alpha \nabla u + \beta u) = f, in \Omega,
* u = u_D, on \partial\Omega
*/
#include <string>
#include <iostream>
#include "mfem.hpp"
#include "adv_diff_3D.hpp"
#include "..... | 30.851211 | 124 | 0.647712 | fanronghong |
409a771e84a5e930a1acbdac2ab73d096773b33d | 12,524 | cpp | C++ | src/TRTexture2D.cpp | ZeusYang/TinySoftRenderer | 16ed454beb231e3585f218158b41cd37387b7d13 | [
"MIT"
] | 70 | 2021-03-19T14:19:45.000Z | 2022-03-26T12:43:16.000Z | src/TRTexture2D.cpp | yanwc/Soft-Renderer | 16ed454beb231e3585f218158b41cd37387b7d13 | [
"MIT"
] | 1 | 2021-03-18T11:57:51.000Z | 2021-03-18T11:57:51.000Z | src/TRTexture2D.cpp | yanwc/Soft-Renderer | 16ed454beb231e3585f218158b41cd37387b7d13 | [
"MIT"
] | 12 | 2021-03-19T14:19:46.000Z | 2022-03-21T15:53:27.000Z | #include "TRTexture2D.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "TRParallelWrapper.h"
#include <iostream>
namespace TinyRenderer
{
//----------------------------------------------TRTexture2D----------------------------------------------
TRTexture2D::TRTexture2D() :
m_generateMipmap(fa... | 32.030691 | 132 | 0.587512 | ZeusYang |
409d70869718b1052b0f6059d8eca1420f44a19f | 28,544 | cpp | C++ | Alien Engine/Alien Engine/PanelInspector.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 7 | 2020-02-20T15:11:11.000Z | 2020-05-19T00:29:04.000Z | Alien Engine/Alien Engine/PanelInspector.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 125 | 2020-02-29T17:17:31.000Z | 2020-05-06T19:50:01.000Z | Alien Engine/Alien Engine/PanelInspector.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 1 | 2020-05-19T00:29:06.000Z | 2020-05-19T00:29:06.000Z | #include "PanelInspector.h"
#include "ModuleObjects.h"
#include "ModuleRenderer3D.h"
#include "ModuleUI.h"
#include "PanelProject.h"
#include "ResourceScript.h"
#include "ComponentTransform.h"
#include "ComponentMesh.h"
#include "ComponentMaterial.h"
#include "ComponentLightDirectional.h"
#include "ComponentLightSpot.h... | 31.857143 | 234 | 0.658317 | OverPowered-Team |
409de0324022cf3cd9c5649ae826755f28ece621 | 1,219 | cpp | C++ | abc_186/f.cpp | dashimaki360/atcoder | 1462150d59d50f270145703df579dba8c306376c | [
"MIT"
] | null | null | null | abc_186/f.cpp | dashimaki360/atcoder | 1462150d59d50f270145703df579dba8c306376c | [
"MIT"
] | null | null | null | abc_186/f.cpp | dashimaki360/atcoder | 1462150d59d50f270145703df579dba8c306376c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// #include <atcoder/all>
// using namespace atcoder;
#define rep(i,n) for (int i = 0; i < (n); ++i)
using ll = long long;
using P = pair<int,int>;
int main() {
int h, w, m;
cin >> h >> w >> m;
bool up[h][w] = {false};
bool side[h][w] = {false};
vector<int> x(m... | 19.983607 | 47 | 0.418376 | dashimaki360 |
40a27bb7b022b9f71807e088177b957f2b1b0f19 | 9,610 | cc | C++ | src/ppl/common/x86/sysinfo.cc | lzhangzz/ppl.common | c1cb1bb2ac01cca38fad47bd10995d60b7f7f252 | [
"Apache-2.0"
] | 20 | 2021-06-30T13:41:04.000Z | 2022-02-16T13:19:28.000Z | src/ppl/common/x86/sysinfo.cc | lzhangzz/ppl.common | c1cb1bb2ac01cca38fad47bd10995d60b7f7f252 | [
"Apache-2.0"
] | 1 | 2021-07-11T05:00:10.000Z | 2021-07-21T09:06:30.000Z | src/ppl/common/x86/sysinfo.cc | lzhangzz/ppl.common | c1cb1bb2ac01cca38fad47bd10995d60b7f7f252 | [
"Apache-2.0"
] | 14 | 2021-06-30T14:24:31.000Z | 2022-03-16T07:58:43.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 30.507937 | 109 | 0.631113 | lzhangzz |
40a432f692c75dc24163a2ada378b9582a05562d | 480 | cpp | C++ | development/Games/TicTocToe/source/BoardSystem.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | null | null | null | development/Games/TicTocToe/source/BoardSystem.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | 44 | 2018-06-28T03:01:44.000Z | 2022-03-20T19:53:00.000Z | development/Games/TicTocToe/source/BoardSystem.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | null | null | null | #include "BoardSystem.h"
#include "BoardComponent.h"
ttt::BoardSystem::BoardSystem(Messaging& messaging, yaget::Application& app)
: GameSystem("BoardSystem", messaging, app, [this](auto&&... params) {OnUpdate(params...); })
{
int z = 0;
z;
}
void ttt::BoardSystem::OnUpdate(yaget::comp::Id_t id, const y... | 24 | 160 | 0.685417 | eglowacki |
40a5a238b25c7cd8bd3776563dc58256b2252ecc | 199 | hh | C++ | include/size.hh | KPO-2020-2021/zad4-AdamDomachowski-1 | 8b88520d0902c9186a71d58390d4607daab2f74e | [
"Unlicense"
] | null | null | null | include/size.hh | KPO-2020-2021/zad4-AdamDomachowski-1 | 8b88520d0902c9186a71d58390d4607daab2f74e | [
"Unlicense"
] | null | null | null | include/size.hh | KPO-2020-2021/zad4-AdamDomachowski-1 | 8b88520d0902c9186a71d58390d4607daab2f74e | [
"Unlicense"
] | null | null | null | #pragma once
/*!
\file
\brief definicje stalych
*/
constexpr int SIZE = 2;
constexpr int ILOSC_WIERZCHOLKOW = 8;
constexpr double MAKSYMALNA_ROZNICA_WYNIKOW = 0.0000000001; | 16.583333 | 62 | 0.678392 | KPO-2020-2021 |
40a68e2885326fadcbd7155a22a46625a9fed598 | 43,166 | cpp | C++ | videopp/renderer.cpp | volcoma/videopp | 4da7ab1b189c0092eaa59064cfffb448312b7d41 | [
"BSD-2-Clause"
] | 1 | 2020-10-15T03:38:50.000Z | 2020-10-15T03:38:50.000Z | videopp/renderer.cpp | volcoma/videopp | 4da7ab1b189c0092eaa59064cfffb448312b7d41 | [
"BSD-2-Clause"
] | null | null | null | videopp/renderer.cpp | volcoma/videopp | 4da7ab1b189c0092eaa59064cfffb448312b7d41 | [
"BSD-2-Clause"
] | null | null | null | #include "renderer.h"
#include "font.h"
#include "ttf_font.h"
#include "texture.h"
#include "logger.h"
#include "detail/shaders.h"
#include "detail/utils.h"
#include <set>
#ifdef WGL_CONTEXT
#include "detail/wgl/context_wgl.h"
#elif GLX_CONTEXT
#include "detail/glx/context_glx.h"
#elif EGL_CONTEXT
#include "detail/eg... | 28.605699 | 129 | 0.595237 | volcoma |
40aa48dbd3b5f3fa4ff29e6e8fae3a3a934fe6a2 | 4,884 | cpp | C++ | main.cpp | felixny/Arkanoid | 882118a8ca5f3e7228767f3a963c82619b0aa54e | [
"MIT"
] | null | null | null | main.cpp | felixny/Arkanoid | 882118a8ca5f3e7228767f3a963c82619b0aa54e | [
"MIT"
] | null | null | null | main.cpp | felixny/Arkanoid | 882118a8ca5f3e7228767f3a963c82619b0aa54e | [
"MIT"
] | null | null | null | #ifdef __APPLE__
/* Defined before OpenGL and GLUT includes to avoid deprecation messages */
#define GL_SILENCE_DEPRECATION
#endif
#include <iostream>
#include "GL/glut.h"
#include "glm/glm.hpp"
#include "glm/gtc/constants.hpp"
#define WINDOW_WIDTH (1280)
#define WINDOW_HEIGHT (720)
#define BLOCK_WIDTH (128)
#defin... | 26.4 | 80 | 0.620188 | felixny |
40ab65644706877b5a3b0aaa78967a933c9d55fe | 713 | cpp | C++ | src/ui/simulator/simulator_app.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/ui/simulator/simulator_app.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/ui/simulator/simulator_app.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-03T07:54:16.000Z | 2021-03-03T07:54:16.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 20.371429 | 95 | 0.740533 | anuranbaka |
40ac2035b46fb78dacc2e3f1717289c4bf402901 | 80,407 | cpp | C++ | deps/UMFLP/src/Functions.cpp | vOptSolver/vOptSpecific | 9705cf4fde20dfb14c7f7f6e32b7df1d597b383d | [
"MIT"
] | 5 | 2017-10-06T06:25:28.000Z | 2021-10-15T13:23:44.000Z | deps/UMFLP/src/Functions.cpp | vOptSolver/vOptSpecific | 9705cf4fde20dfb14c7f7f6e32b7df1d597b383d | [
"MIT"
] | 6 | 2018-02-09T17:14:20.000Z | 2021-07-24T14:10:09.000Z | deps/UMFLP/src/Functions.cpp | vOptSolver/vOptSpecific | 9705cf4fde20dfb14c7f7f6e32b7df1d597b383d | [
"MIT"
] | 4 | 2017-08-28T22:28:05.000Z | 2020-02-08T11:13:33.000Z | /*
#License and Copyright
#Version : 1.3
#This file is part of BiUFLv2017.
#BiUFLv2017 is Copyright © 2017, University of Nantes
#BiUFLv2017 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either vers... | 31.631393 | 446 | 0.566866 | vOptSolver |
40ada292edc5cb7e6296d9ed7974b96c9ec1aa7f | 10,754 | cpp | C++ | application/platform/glx/glx_context.cpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | null | null | null | application/platform/glx/glx_context.cpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | 292 | 2020-03-19T22:38:52.000Z | 2022-03-05T22:49:34.000Z | application/platform/glx/glx_context.cpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | null | null | null | #include "glx_context.h"
#include "glx_window.h"
#include <natus/graphics/backend/gl/gl3.h>
#include <natus/ogl/gl/gl.h>
#include <natus/ogl/glx/glx.h>
#include <natus/ntd/string/split.hpp>
using namespace natus::application ;
using namespace natus::application::glx ;
//***********************n*********************... | 31.444444 | 101 | 0.556816 | aconstlink |
40b19aca603359a140e201070d083b186e3ccd88 | 1,748 | cpp | C++ | QuadTree/main.cpp | szebest/SFML | b3d48d23777aef73e4287c783b188fdfa7e40656 | [
"MIT"
] | 2 | 2020-02-13T19:24:23.000Z | 2021-02-03T14:48:58.000Z | QuadTree/main.cpp | szebest/SFML | b3d48d23777aef73e4287c783b188fdfa7e40656 | [
"MIT"
] | null | null | null | QuadTree/main.cpp | szebest/SFML | b3d48d23777aef73e4287c783b188fdfa7e40656 | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <string>
#include <vector>
#include <cmath>
#include <iostream>
#include "QuadTree.h"
#include "Functions.h"
#define WIDTH 1600
#define HEIGHT 900
#define FRAMETIME 16666
using namespace std;
int main()
{
int wynik=0;
int a = 100000;
int b = 50000;
try
{
int c = 0;
wy... | 20.325581 | 89 | 0.591533 | szebest |
40b50e590a7ebe4dd51ddb6ca387a271214b3ea4 | 2,430 | cpp | C++ | unionfind.cpp | im-red/maze | b443ffd7653f355d316537dced8a326160bf5b53 | [
"MIT"
] | 4 | 2020-09-08T08:05:53.000Z | 2022-02-14T10:25:26.000Z | unionfind.cpp | im-red/maze | b443ffd7653f355d316537dced8a326160bf5b53 | [
"MIT"
] | null | null | null | unionfind.cpp | im-red/maze | b443ffd7653f355d316537dced8a326160bf5b53 | [
"MIT"
] | 1 | 2019-02-02T01:33:57.000Z | 2019-02-02T01:33:57.000Z | /*********************************************************************************
* MIT License
*
* Copyright (c) 2020 Jia Lihong
*
* 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 wit... | 31.558442 | 93 | 0.639918 | im-red |
40b6767a57c6743448b369bb0d585249fac61891 | 1,734 | cpp | C++ | libcaf_core/src/ipv4_subnet.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 2,517 | 2015-01-04T22:19:43.000Z | 2022-03-31T12:20:48.000Z | libcaf_core/src/ipv4_subnet.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 894 | 2015-01-07T14:21:21.000Z | 2022-03-30T06:37:18.000Z | libcaf_core/src/ipv4_subnet.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 570 | 2015-01-21T18:59:33.000Z | 2022-03-31T19:00:02.000Z | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#include "caf/ipv4_subnet.hpp"
#include "caf/detail/mask_bits.hpp"
namespace caf {
// -... | 32.111111 | 80 | 0.664937 | seewpx |
8ad61eec7148a1d8616a17976e2d146cde3f2958 | 862 | hpp | C++ | Krakoa/Source/UI/ImGui/ControllersUI.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | 1 | 2020-04-05T13:37:48.000Z | 2020-04-05T13:37:48.000Z | Krakoa/Source/UI/ImGui/ControllersUI.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | Krakoa/Source/UI/ImGui/ControllersUI.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../../Graphics/Colour.hpp"
namespace krakoa {
namespace gfx {
class Font;
}
namespace ui
{
bool DrawVec3Controller(const std::string_view& label, kmaths::Vector3f& values,
const std::array<gfx::Colour, 3>& btnColours
, float incrementVal = 0.1f, kmaths::Vector3f::Type resetValue ... | 34.48 | 129 | 0.713457 | KingKiller100 |
8ada4449acc048edf639563debef412070fd57a8 | 16,936 | cc | C++ | engine/source/platform/platformVideo.cc | close-code/Torque2D | ad141fc7b5f28b75f727ef29dcc93aafbb3f5aa3 | [
"MIT"
] | 1,309 | 2015-01-01T02:46:14.000Z | 2022-03-14T04:56:02.000Z | engine/source/platform/platformVideo.cc | v3rc3tti/Torque2D | b4cc8826b1b7c2f91037ee08743fbe31b6e3d867 | [
"MIT"
] | 155 | 2015-01-11T19:26:32.000Z | 2021-11-22T04:08:55.000Z | engine/source/platform/platformVideo.cc | v3rc3tti/Torque2D | b4cc8826b1b7c2f91037ee08743fbe31b6e3d867 | [
"MIT"
] | 1,595 | 2015-01-01T23:19:48.000Z | 2022-02-17T07:00:52.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// 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 restr... | 29.35182 | 135 | 0.515529 | close-code |
8ae18f16310a52aafa69bfb71ab2a44ae66b50ab | 5,314 | cpp | C++ | Geometry/convex_cut.cpp | landcelita/algorithm | 544736df6b3cbe20ec58d44d81fe9372b8acd93e | [
"CC0-1.0"
] | 197 | 2018-08-19T06:49:14.000Z | 2022-03-26T04:11:48.000Z | Geometry/convex_cut.cpp | landcelita/algorithm | 544736df6b3cbe20ec58d44d81fe9372b8acd93e | [
"CC0-1.0"
] | null | null | null | Geometry/convex_cut.cpp | landcelita/algorithm | 544736df6b3cbe20ec58d44d81fe9372b8acd93e | [
"CC0-1.0"
] | 15 | 2018-09-14T09:15:12.000Z | 2021-11-16T12:43:43.000Z | //
// 凸多角形の切断, O(n)
//
// verified:
// AOJ Course CGL_4_C Convex Polygon - Convex Cut
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_4_C&lang=jp
//
/*
問題例
・AOJ 2385
・AOJ 2160
*/
////////////////////////////
// 基本要素 (点, 線分, 円)
////////////////////////////
#include <iostream>
#inclu... | 34.732026 | 124 | 0.535002 | landcelita |
8ae4c44940ccd042ec9e228ec297e881c93f12d9 | 3,768 | hpp | C++ | lib/libstereo/src/costs/scale.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 4 | 2020-12-28T15:29:15.000Z | 2021-06-27T12:37:15.000Z | lib/libstereo/src/costs/scale.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | null | null | null | lib/libstereo/src/costs/scale.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 2 | 2021-01-13T05:28:39.000Z | 2021-05-04T03:37:11.000Z | #ifndef _FTL_LIBSTEREO_COSTS_EXP_HPP_
#define _FTL_LIBSTEREO_COSTS_EXP_HPP_
#include "array2d.hpp"
#include "dsbase.hpp"
#include <cuda_runtime.h>
namespace impl {
template <typename A>
struct ExpCost : DSImplBase<float> {
typedef float Type;
ExpCost(ushort w, ushort h, ushort dmin, ushort dmax) : DSImplBase<... | 23.848101 | 110 | 0.682856 | knicos |
8ae756e0e1200302848a1d19e4b8bc26aa9fb1e1 | 295 | hpp | C++ | src/vulkan/vulkan_vertex_descriptor.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/vulkan/vulkan_vertex_descriptor.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/vulkan/vulkan_vertex_descriptor.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | #pragma once
#include <vulkan/vulkan.h>
#include "buffer_layout.hpp"
namespace cl::vulkan {
VkVertexInputBindingDescription CreateInputBindingDescription(const BufferLayout& layout);
std::vector<VkVertexInputAttributeDescription>CreateInputAttribDescriptions(const BufferLayout& layout);
}
| 22.692308 | 104 | 0.837288 | zfccxt |
8aea56225c6e2d6fea53f0e88c7b59327aebdc48 | 824 | hpp | C++ | C++/Multiplayer/Step 5 - Weapons/shared/components/AnimatedAppearance.hpp | ProfPorkins/GameTech | aa45062d9003c593bf19f65708efcb99a13063c3 | [
"MIT"
] | 13 | 2016-07-14T16:27:25.000Z | 2021-03-31T23:32:46.000Z | C++/Multiplayer/Step 5 - Weapons/shared/components/AnimatedAppearance.hpp | ProfPorkins/GameTech | aa45062d9003c593bf19f65708efcb99a13063c3 | [
"MIT"
] | 5 | 2018-03-22T16:11:39.000Z | 2021-05-30T16:34:06.000Z | C++/Multiplayer/Step 5 - Weapons/shared/components/AnimatedAppearance.hpp | ProfPorkins/GameTech | aa45062d9003c593bf19f65708efcb99a13063c3 | [
"MIT"
] | 6 | 2018-03-22T16:00:02.000Z | 2020-04-11T12:46:23.000Z | #pragma once
#include "components/Component.hpp"
#include <chrono>
#include <string>
#include <vector>
// --------------------------------------------------------------
//
// Specifies the an animated visual appearance.
//
// --------------------------------------------------------------
namespace components
{
c... | 24.969697 | 100 | 0.541262 | ProfPorkins |
8aea83ee4cd24ba6be71bee4e4e71df6bde1149f | 310 | cpp | C++ | Timus/1180.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | Timus/1180.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | Timus/1180.cpp | s9v/toypuct | 68e65e6da5922af340de72636a9a4f136454c70d | [
"MIT"
] | null | null | null | # include <iostream>
# include <cstring>
using namespace std;
int ln,sum;
char s[300];
int main()
{
cin>>s;
ln=strlen(s);
for (int i=0 ; i<ln ; i++)
{
sum+=s[i]-48;
}
switch(sum%3)
{
case 0: cout<<"2"; break;
case 1: cout<<"1\n1"; break;
case 2: cout<<"1\n2"; break;
}
return 0;
}
| 10.689655 | 30 | 0.53871 | s9v |
8aeaaba5ab6b7a84194efe5c7b6be163d9be4da9 | 288 | cpp | C++ | Chapter3/Practice/1045.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | 1 | 2022-02-13T02:22:39.000Z | 2022-02-13T02:22:39.000Z | Chapter3/Practice/1045.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | null | null | null | Chapter3/Practice/1045.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int x, y;
int status0 = 1, status1 = 0;
cin >> x >> y;
if (x >= 10)
cout << status0 << endl;
else if (y >= 20)
cout << status0 << endl;
else
cout << status1 << endl;
return 0;
}
| 15.157895 | 33 | 0.479167 | flics04 |
8aeffd6605ebb7bbe49f0c6dccba55323564ac87 | 7,482 | cpp | C++ | src/loop071.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | 4 | 2016-11-07T12:50:14.000Z | 2020-04-30T19:48:05.000Z | src/loop071.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | 1 | 2017-04-17T12:00:16.000Z | 2017-04-17T12:00:16.000Z | src/loop071.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | null | null | null | #include "demoloop.h"
#include "graphics/shader.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include <functional>
#include <array>
#include "graphics/polyline.h"
using namespace std;
using namespace demoloop;
const uint32_t CYCLE_LENGTH = 4;
const float farPlane = 40.0;
template<s... | 29.690476 | 130 | 0.587677 | TannerRogalsky |
8af054103b718119b4dea6b6834e861e1d203be6 | 17,043 | cpp | C++ | Modules/SceneSerialization/test/mitkSceneIOTestScenarioProvider.cpp | samsmu/MITK | c93dce6dc38d8f4c961de4440e4dd113b9841c8c | [
"BSD-3-Clause"
] | 5 | 2015-02-05T10:58:41.000Z | 2019-04-17T15:04:07.000Z | Modules/SceneSerialization/test/mitkSceneIOTestScenarioProvider.cpp | kometa-dev/MITK | 984b5f7ac8ea614e80f303381ef1fc77d8ca4c3d | [
"BSD-3-Clause"
] | 141 | 2015-03-03T06:52:01.000Z | 2020-12-10T07:28:14.000Z | Modules/SceneSerialization/test/mitkSceneIOTestScenarioProvider.cpp | kometa-dev/MITK | 984b5f7ac8ea614e80f303381ef1fc77d8ca4c3d | [
"BSD-3-Clause"
] | 4 | 2015-02-19T06:48:13.000Z | 2020-06-19T16:20:25.000Z | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | 40.007042 | 965 | 0.6953 | samsmu |
8af1561af9e4085c4abdb54a0a4f9d0ba13adb92 | 5,360 | cxx | C++ | source/Tools/DownsampleDeformations3D.cxx | tobiasgass/ETH-SegReg | 6d908a91ad49cc42ffc74a1c00a16fad61016f51 | [
"BSD-2-Clause-FreeBSD"
] | 15 | 2015-04-15T06:49:06.000Z | 2021-09-01T09:09:50.000Z | source/Tools/DownsampleDeformations3D.cxx | tobiasgass/ETH-SegReg | 6d908a91ad49cc42ffc74a1c00a16fad61016f51 | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2015-03-09T19:09:47.000Z | 2015-09-04T15:31:12.000Z | source/Tools/DownsampleDeformations3D.cxx | tobiasgass/ETH-SegReg | 6d908a91ad49cc42ffc74a1c00a16fad61016f51 | [
"BSD-2-Clause-FreeBSD"
] | 10 | 2015-04-08T09:17:44.000Z | 2017-08-12T17:30:15.000Z | #include "Log.h"
#include <stdio.h>
#include <iostream>
#include "ArgumentParser.h"
#include "ImageUtils.h"
#include <itkWarpImageFilter.h>
#include "TransformationUtils.h"
using namespace std;
using namespace itk;
int main(int argc, char ** argv)
{
feraiseexcept(FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW);
... | 60.224719 | 177 | 0.793097 | tobiasgass |
8af1a59e746d100a7029a722b971de0a5986f12a | 290 | inl | C++ | LiberoEngine/src/Entity.inl | Kair0z/LiberoEngine2D | 79fb93d7bbb5f5e6b805da6826c64ffa520989c3 | [
"MIT"
] | null | null | null | LiberoEngine/src/Entity.inl | Kair0z/LiberoEngine2D | 79fb93d7bbb5f5e6b805da6826c64ffa520989c3 | [
"MIT"
] | null | null | null | LiberoEngine/src/Entity.inl | Kair0z/LiberoEngine2D | 79fb93d7bbb5f5e6b805da6826c64ffa520989c3 | [
"MIT"
] | null | null | null | #pragma once
#include "Entity.h"
namespace Libero
{
template<class Type>
inline const EntityTypeID Entity<Type>::GetStaticTypeID() const
{
return m_Stat_TypeID;
}
template<class Type>
inline const EntityTypeID Entity<Type>::StaticGetStaticTypeID()
{
return m_Stat_TypeID;
}
}
| 16.111111 | 64 | 0.751724 | Kair0z |
8af3ef805efa749ddad0fb061216639c2a943e95 | 6,632 | cpp | C++ | Marlin/src/HAL/AVR/fastio.cpp | tom-2273/Tronxy_SKR_mini_E3_V20 | bc4a8dc2c6c627e4bd7aa423794246f5b051448d | [
"CC0-1.0"
] | null | null | null | Marlin/src/HAL/AVR/fastio.cpp | tom-2273/Tronxy_SKR_mini_E3_V20 | bc4a8dc2c6c627e4bd7aa423794246f5b051448d | [
"CC0-1.0"
] | null | null | null | Marlin/src/HAL/AVR/fastio.cpp | tom-2273/Tronxy_SKR_mini_E3_V20 | bc4a8dc2c6c627e4bd7aa423794246f5b051448d | [
"CC0-1.0"
] | null | null | null | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | 22.948097 | 102 | 0.569059 | tom-2273 |
8af7b7452f9e0db153f823174a512a8879eafd75 | 3,225 | cpp | C++ | GAG/test/CompositionTest.cpp | hh1985/multi_hs_seq | 9cf4e70fb59283da30339499952c43a0684f7e77 | [
"Apache-2.0"
] | 2 | 2015-04-03T14:44:45.000Z | 2015-04-15T13:38:39.000Z | GAG/test/CompositionTest.cpp | hh1985/multi_hs_seq | 9cf4e70fb59283da30339499952c43a0684f7e77 | [
"Apache-2.0"
] | null | null | null | GAG/test/CompositionTest.cpp | hh1985/multi_hs_seq | 9cf4e70fb59283da30339499952c43a0684f7e77 | [
"Apache-2.0"
] | null | null | null | /*
* =====================================================================================
*
* Filename: CompositionTest.cpp
*
* Description: Test file for class Composition.
*
* Version: 1.0
* Created: 04/28/2012 12:26:57 AM
* Revision: none
* Compiler: msvc
*
* ... | 32.25 | 112 | 0.537984 | hh1985 |
8af8f6bd53bb9dfa652e6270d81024d0437f5fd8 | 394 | cpp | C++ | eclide/TabPane.cpp | dehilsterlexis/eclide-1 | 0c1685cc7165191b5033d450c59aec479f01010a | [
"Apache-2.0"
] | 8 | 2016-08-29T13:34:18.000Z | 2020-12-04T15:20:36.000Z | eclide/TabPane.cpp | dehilsterlexis/eclide-1 | 0c1685cc7165191b5033d450c59aec479f01010a | [
"Apache-2.0"
] | 221 | 2016-06-20T19:51:48.000Z | 2022-03-29T20:46:46.000Z | eclide/TabPane.cpp | dehilsterlexis/eclide-1 | 0c1685cc7165191b5033d450c59aec479f01010a | [
"Apache-2.0"
] | 13 | 2016-06-24T15:59:31.000Z | 2022-01-01T11:48:20.000Z | #include "StdAfx.h"
#include "TabPane.h"
void CTabPane::SetNamePath(const CString & sPathName)
{
CString pathName = sPathName;
TCHAR szTitle [_MAX_FNAME], szExt[_MAX_FNAME];
_tsplitpath(pathName.GetBuffer(_MAX_PATH), NULL, NULL, szTitle, szExt);
pathName.ReleaseBuffer();
lstrcat(szTitle, szExt); ... | 23.176471 | 75 | 0.680203 | dehilsterlexis |
8afe2acb8caceeb56a0db2bc1d470d2f81d97d8a | 18,158 | hpp | C++ | Drivers/InpaintingWithVerification.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 39 | 2015-01-01T07:59:51.000Z | 2021-10-01T18:11:46.000Z | Drivers/InpaintingWithVerification.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 1 | 2019-04-24T09:56:15.000Z | 2019-04-24T14:45:46.000Z | Drivers/InpaintingWithVerification.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 18 | 2015-01-11T15:10:23.000Z | 2022-02-24T20:02:10.000Z | /*=========================================================================
*
* Copyright David Doria 2012 daviddoria@gmail.com
*
* 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
*
*... | 51.88 | 135 | 0.774094 | jingtangliao |
c100f7a238c95561ac0ef8428c2e2926b3695794 | 365 | cpp | C++ | PROJECT_EULER Problem-34.cpp | m4l1c1ou5/PROJECT_EULER | 8b1fdbffe8e1eecd74c67664a2d5cdddf353bad7 | [
"CC0-1.0"
] | 1 | 2020-08-27T12:27:22.000Z | 2020-08-27T12:27:22.000Z | PROJECT_EULER Problem-34.cpp | m4l1c1ou5/PROJECT_EULER | 8b1fdbffe8e1eecd74c67664a2d5cdddf353bad7 | [
"CC0-1.0"
] | null | null | null | PROJECT_EULER Problem-34.cpp | m4l1c1ou5/PROJECT_EULER | 8b1fdbffe8e1eecd74c67664a2d5cdddf353bad7 | [
"CC0-1.0"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int h[10],mul=1,ans=0;
h[0]=1;
for(int i=1;i<=9;i++){
mul*=i;
h[i]=mul;
}
for(int i=10;i<=10000000;i++){
int n=i,sum=0;
while(n>0){
sum+=h[n%10];
n=n/10;
}
if(sum==i){
... | 16.590909 | 34 | 0.380822 | m4l1c1ou5 |
c100f939588cc08ee6ad0089b244f0f441ee6c62 | 1,785 | cpp | C++ | src/LightBulb/Teaching/TeachingLessonBooleanInput.cpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 5 | 2016-02-04T06:14:42.000Z | 2017-02-06T02:21:43.000Z | src/LightBulb/Teaching/TeachingLessonBooleanInput.cpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 41 | 2015-04-15T21:05:45.000Z | 2015-07-09T12:59:02.000Z | src/LightBulb/Teaching/TeachingLessonBooleanInput.cpp | domin1101/LightBulb | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | null | null | null | // Includes
#include "LightBulb/Teaching/TeachingLessonBooleanInput.hpp"
#include "LightBulb/NeuralNetwork/NeuralNetwork.hpp"
#include "LightBulb/Function/ActivationFunction/AbstractActivationFunction.hpp"
// Library includes
#include "LightBulb/NeuronDescription/NeuronDescription.hpp"
namespace LightBulb
{
TeachingL... | 35 | 128 | 0.773669 | domin1101 |
c108ddbf81c4ddf24f27aa3b3e9a8b908aace577 | 259 | cpp | C++ | SDLSandbox/SDLSandbox/Source/Factory/ProgressBarSpawner.cpp | kyuuzou/poison-strike | f9d0c41575ed94fd725ca48457e0eb54bf58cc4d | [
"MIT"
] | null | null | null | SDLSandbox/SDLSandbox/Source/Factory/ProgressBarSpawner.cpp | kyuuzou/poison-strike | f9d0c41575ed94fd725ca48457e0eb54bf58cc4d | [
"MIT"
] | null | null | null | SDLSandbox/SDLSandbox/Source/Factory/ProgressBarSpawner.cpp | kyuuzou/poison-strike | f9d0c41575ed94fd725ca48457e0eb54bf58cc4d | [
"MIT"
] | 1 | 2022-03-16T23:01:04.000Z | 2022-03-16T23:01:04.000Z | /*
* Miniclip Challenge: Poison Strike
* @author Nelson Rodrigues
*/
#include "ProgressBarSpawner.h"
#include "../Actors/ProgressBar.h"
using namespace Challenge;
GameObject* ProgressBarSpawner::spawn () const {
return new ProgressBar ();
} | 18.5 | 49 | 0.702703 | kyuuzou |
c10c3dcdc886cf7c44a806c26a7522047aee1752 | 14,835 | cpp | C++ | Engine/modules/Verve/Core/VObject.cpp | Pecon/Torque3D-1 | 81777348c8ab2fa49cbc534315294c3bee7ae3aa | [
"MIT"
] | 417 | 2020-06-01T15:55:15.000Z | 2022-03-31T12:50:51.000Z | Engine/modules/Verve/Core/VObject.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 186 | 2020-06-02T19:12:39.000Z | 2022-02-15T02:22:27.000Z | Engine/modules/Verve/Core/VObject.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 84 | 2020-06-01T15:54:44.000Z | 2022-03-24T13:52:59.000Z | //-----------------------------------------------------------------------------
// Verve
// Copyright (C) 2014 - Violent Tulip
//
// 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 re... | 30.714286 | 164 | 0.45305 | Pecon |
c10c82ba2163c4fcd80d3d96ca55ce529e3f7e3d | 4,087 | cpp | C++ | tests/spinlock_test.cpp | alishewn/yamc | f4ed5182c04c674c0e19992410578b327d768831 | [
"MIT"
] | 101 | 2017-01-19T10:38:06.000Z | 2021-12-16T22:29:45.000Z | tests/spinlock_test.cpp | alishewn/yamc | f4ed5182c04c674c0e19992410578b327d768831 | [
"MIT"
] | 25 | 2017-01-18T09:22:15.000Z | 2022-03-30T12:50:32.000Z | tests/spinlock_test.cpp | alishewn/yamc | f4ed5182c04c674c0e19992410578b327d768831 | [
"MIT"
] | 15 | 2017-10-28T03:54:42.000Z | 2022-03-28T20:39:12.000Z | /*
* spinlock_test.cpp
*/
#include <type_traits>
#include "gtest/gtest.h"
#include "naive_spin_mutex.hpp"
#include "ttas_spin_mutex.hpp"
#include "yamc_testutil.hpp"
#if defined(__linux__) || defined(__APPLE__)
#include "posix_native_mutex.hpp"
#define ENABLE_POSIX_NATIVE_MUTEX
#endif
#define TEST_THREADS 20
#def... | 25.867089 | 112 | 0.69195 | alishewn |
c10e43c073692e60a01abc7a0fbdbe9b01da87d0 | 25,556 | cpp | C++ | NOLF/ObjectDLL/Breakable.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 65 | 2015-02-28T03:35:14.000Z | 2021-09-23T05:43:33.000Z | NOLF/ObjectDLL/Breakable.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | null | null | null | NOLF/ObjectDLL/Breakable.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 27 | 2015-02-28T07:42:01.000Z | 2022-02-11T01:35:20.000Z | // ----------------------------------------------------------------------- //
//
// MODULE : Breakable.CPP
//
// PURPOSE : A Breakable object
//
// CREATED : 1/14/99
//
// (c) 1999-2000 Monolith Productions, Inc. All Rights Reserved
//
// ---------------------------------------------------------------------... | 25.328048 | 99 | 0.578025 | rastrup |
c10edfd550cef4b12a8d8a53362cde5ae8494fa5 | 384 | cpp | C++ | files/Codepit (Maratonando)/57085da6ba5675eb5c22a7a3/D.cpp | t0rr3sp3dr0/t0rr3sp3dr0.github.io | 64d34a35059fa2efcae5310407730d306c0775a1 | [
"CC-BY-4.0"
] | null | null | null | files/Codepit (Maratonando)/57085da6ba5675eb5c22a7a3/D.cpp | t0rr3sp3dr0/t0rr3sp3dr0.github.io | 64d34a35059fa2efcae5310407730d306c0775a1 | [
"CC-BY-4.0"
] | null | null | null | files/Codepit (Maratonando)/57085da6ba5675eb5c22a7a3/D.cpp | t0rr3sp3dr0/t0rr3sp3dr0.github.io | 64d34a35059fa2efcae5310407730d306c0775a1 | [
"CC-BY-4.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int count = 1;
int in;
while (true) {
scanf("%d", &in);
if (in == 0)
break;
int sJ = 0;
int sZ = 0;
printf("Teste %d\n", count);
for (int i = 0; i < in; i++) {
int J;
int Z;
scanf("%d %d", &J, &Z);
sJ += J;
sZ += Z;
printf("... | 14.222222 | 32 | 0.460938 | t0rr3sp3dr0 |
c110c53e216189561de3cf840da3e4e96736d9c8 | 2,218 | hpp | C++ | Library/Deps/MessagePack/Include/msgpack/preprocessor/list/for_each.hpp | rneogns/simpleio | 20830a2b9b22c31eab23508acd25b275b53103c9 | [
"MIT"
] | null | null | null | Library/Deps/MessagePack/Include/msgpack/preprocessor/list/for_each.hpp | rneogns/simpleio | 20830a2b9b22c31eab23508acd25b275b53103c9 | [
"MIT"
] | null | null | null | Library/Deps/MessagePack/Include/msgpack/preprocessor/list/for_each.hpp | rneogns/simpleio | 20830a2b9b22c31eab23508acd25b275b53103c9 | [
"MIT"
] | null | null | null | # /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.com
# *
# * 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)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http:... | 44.36 | 159 | 0.748422 | rneogns |
c11541f94a14ee19dca7b49ca7494eaf409ae7c9 | 1,860 | hpp | C++ | src/main/cpp/Balau/Logging/LoggerMacros.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 6 | 2018-12-30T15:09:26.000Z | 2020-04-20T09:27:59.000Z | src/main/cpp/Balau/Logging/LoggerMacros.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/Balau/Logging/LoggerMacros.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 2 | 2019-11-12T08:07:16.000Z | 2019-11-29T11:19:47.000Z |
// @formatter:off
//
// CPPLF C++ library
// Copyright (C) 2017 Bora Software (contact@borasoftware.com)
//
// 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/l... | 31.525424 | 100 | 0.737634 | borasoftware |
c1155c0f75e3c8514a7209226fe66c868fca1eb6 | 4,065 | cpp | C++ | soccer/planning/tests/BezierPathTest.cpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | soccer/planning/tests/BezierPathTest.cpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | soccer/planning/tests/BezierPathTest.cpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include <fstream>
#include "planning/primitives/PathSmoothing.hpp"
using Geometry2d::Point;
static void check_bezier_low_curvature(const Planning::BezierPath& path) {
// Expected error is O(1/N)
constexpr int N = 1000;
double ds = 1.0 / static_cast<double>(N);
for (int i =... | 36.294643 | 80 | 0.665683 | kasohrab |
c11bb7d9b39da995885a66951251571389a467c2 | 5,502 | cpp | C++ | ace/SPIPE_Connector.cpp | xiafuyang2004/ACEFileService | 51a330cdf2515919abe102bac5fec995fbe89cca | [
"MIT"
] | 1 | 2019-01-19T06:35:40.000Z | 2019-01-19T06:35:40.000Z | dep/ACE_wrappers/ace/SPIPE_Connector.cpp | Subv/diamondcore | e11891587736b6308e554f71cb56e8df1a1812ad | [
"OpenSSL"
] | null | null | null | dep/ACE_wrappers/ace/SPIPE_Connector.cpp | Subv/diamondcore | e11891587736b6308e554f71cb56e8df1a1812ad | [
"OpenSSL"
] | 1 | 2020-02-22T08:42:22.000Z | 2020-02-22T08:42:22.000Z | // $Id: SPIPE_Connector.cpp 80826 2008-03-04 14:51:23Z wotte $
#include "ace/SPIPE_Connector.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_sys_time.h"
#include "ace/OS_NS_fcntl.h"
#include "ace/OS_NS_unistd.h"
#if !defined (__ACE_INLINE__)
#include "ace/SPIPE_Connector.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(ac... | 34.173913 | 94 | 0.563431 | xiafuyang2004 |
c121e0458da7d2ad65c04ac995884aaec0b113c4 | 327 | cpp | C++ | src/common/util/random.cpp | caozhiyi/quicX | 46b486fc7786faf479b60c24da8ebdec783b3d5b | [
"BSD-3-Clause"
] | 1 | 2021-11-02T14:31:12.000Z | 2021-11-02T14:31:12.000Z | src/common/util/random.cpp | caozhiyi/quicX | 46b486fc7786faf479b60c24da8ebdec783b3d5b | [
"BSD-3-Clause"
] | null | null | null | src/common/util/random.cpp | caozhiyi/quicX | 46b486fc7786faf479b60c24da8ebdec783b3d5b | [
"BSD-3-Clause"
] | 1 | 2021-09-30T08:23:58.000Z | 2021-09-30T08:23:58.000Z | #include <random>
#include "random.h"
namespace quicx {
std::random_device RangeRandom::_random;
std::mt19937 RangeRandom::_engine(_random());
RangeRandom::RangeRandom(int32_t min, int32_t max):
_uniform(min, max) {
}
RangeRandom::~RangeRandom() {
}
int32_t RangeRandom::Random() {
return _uniform(_engine... | 14.863636 | 51 | 0.712538 | caozhiyi |
c1222cedf2b59c081f367cb83f7191496727fba3 | 3,688 | cpp | C++ | tests/concurrent_hash_map_pmreorder_break_insert/concurrent_hash_map_pmreorder_break_insert.cpp | skygyh/libpmemobj-cpp | fbe4025fd37beec6ba1374b4b32b0e83bc9e2204 | [
"BSD-3-Clause"
] | null | null | null | tests/concurrent_hash_map_pmreorder_break_insert/concurrent_hash_map_pmreorder_break_insert.cpp | skygyh/libpmemobj-cpp | fbe4025fd37beec6ba1374b4b32b0e83bc9e2204 | [
"BSD-3-Clause"
] | 7 | 2018-12-11T22:16:42.000Z | 2019-02-07T16:28:51.000Z | tests/concurrent_hash_map_pmreorder_break_insert/concurrent_hash_map_pmreorder_break_insert.cpp | szyrom/libpmemobj-cpp | 78f10eb6ae76f33043b05cd5d15f1c1594dab421 | [
"BSD-3-Clause"
] | 2 | 2021-01-19T08:22:32.000Z | 2021-01-19T08:23:32.000Z | // SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2019-2020, Intel Corporation */
/*
* concurrent_hash_map_pmreorder_break_insert.cpp --
* pmem::obj::concurrent_hash_map test
*
*/
#include "unittest.hpp"
#include <libpmemobj++/make_persistent.hpp>
#include <libpmemobj++/p.hpp>
#include <libpmemobj++/persiste... | 22.351515 | 73 | 0.669469 | skygyh |
c1241549d555cffcbec50333deee25f7be3d724c | 8,119 | cc | C++ | ns-allinone-3.29/ns-3.29/scratch/myWiFi.cc | tayoon/My-NS-3 | e39bd778fe31397e048f770533c5154761bbbcb5 | [
"MIT"
] | null | null | null | ns-allinone-3.29/ns-3.29/scratch/myWiFi.cc | tayoon/My-NS-3 | e39bd778fe31397e048f770533c5154761bbbcb5 | [
"MIT"
] | null | null | null | ns-allinone-3.29/ns-3.29/scratch/myWiFi.cc | tayoon/My-NS-3 | e39bd778fe31397e048f770533c5154761bbbcb5 | [
"MIT"
] | null | null | null | /*
* Network Topology
*
* p2p
* AP AP
* *-----------*
* | |
* | |
* * *
* n0 n1
*
*/
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/internet-module.h"... | 32.090909 | 111 | 0.633699 | tayoon |
c126b424302f19a43ba34c99061d694cb5bbd6cf | 428 | hpp | C++ | engine/include/real/renderer/base_rendering_context.hpp | tarantulala/real | 8e69411c2025c348b18e12e223cf4b085e0387dc | [
"MIT"
] | 9 | 2020-10-06T16:00:55.000Z | 2020-12-29T07:09:54.000Z | engine/include/real/renderer/base_rendering_context.hpp | Light-Lens/real | 194de672d7af35457e42a4aa24bfd77523eb09ca | [
"MIT"
] | null | null | null | engine/include/real/renderer/base_rendering_context.hpp | Light-Lens/real | 194de672d7af35457e42a4aa24bfd77523eb09ca | [
"MIT"
] | 3 | 2020-11-20T09:04:20.000Z | 2021-01-11T13:44:19.000Z | // Copyright (c) 2020 udv. All rights reserved.
#ifndef REAL_RENDERING_CONTEXT_BASE
#define REAL_RENDERING_CONTEXT_BASE
#include "real/core.hpp"
#include "real/renderer/renderer_api.hpp"
namespace Real {
class REAL_API RenderingContext {
public:
virtual ~RenderingContext();
virtual void Init() = 0;
virtual ... | 20.380952 | 47 | 0.752336 | tarantulala |
c1282e2383240871d0114f12ecfe2a23b3e8f3b6 | 5,654 | cpp | C++ | src/core/map_node.cpp | surround-io/ellis | cb861e8dce9047a893d28ebcb4213ff530b8396d | [
"MIT"
] | 1 | 2017-03-31T17:08:04.000Z | 2017-03-31T17:08:04.000Z | src/core/map_node.cpp | surround-io/ellis | cb861e8dce9047a893d28ebcb4213ff530b8396d | [
"MIT"
] | null | null | null | src/core/map_node.cpp | surround-io/ellis | cb861e8dce9047a893d28ebcb4213ff530b8396d | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 Surround.IO Corporation. All Rights Reserved.
* Copyright (c) 2017 Xevo Inc. All rights reserved.
*
* 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 restr... | 21.416667 | 80 | 0.671206 | surround-io |
c12b555e6f0aa9d0d7a28fb75ab727ca9deab553 | 1,974 | cpp | C++ | test/verify/aoj-2450.test.cpp | beet-aizu/library-2 | 51579421d2c695ae298eed3943ca90f5224f768a | [
"Unlicense"
] | null | null | null | test/verify/aoj-2450.test.cpp | beet-aizu/library-2 | 51579421d2c695ae298eed3943ca90f5224f768a | [
"Unlicense"
] | null | null | null | test/verify/aoj-2450.test.cpp | beet-aizu/library-2 | 51579421d2c695ae298eed3943ca90f5224f768a | [
"Unlicense"
] | 1 | 2020-10-14T20:51:44.000Z | 2020-10-14T20:51:44.000Z | #define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2450"
#include "../../template/template.cpp"
#include "../../graph/template.cpp"
#include "../../structure/segment-tree/lazy-segment-tree.cpp"
#include "../../graph/tree/heavy-light-decomposition.cpp"
int main() {
int N, Q, S[200000];
cin... | 26.32 | 79 | 0.519757 | beet-aizu |
c12b8810cc60c07556c48fcf080c169cade738c8 | 305 | hpp | C++ | include/server/world.hpp | Foomf/Thimble | e3fb64597def12debb81d1bbe4ff52c539fe34e2 | [
"Zlib"
] | null | null | null | include/server/world.hpp | Foomf/Thimble | e3fb64597def12debb81d1bbe4ff52c539fe34e2 | [
"Zlib"
] | 11 | 2019-09-14T11:02:24.000Z | 2019-09-19T04:54:25.000Z | include/server/world.hpp | Foomf/Blyss | e3fb64597def12debb81d1bbe4ff52c539fe34e2 | [
"Zlib"
] | null | null | null | #pragma once
#include <map>
#include <string>
#include <memory>
#include "map.hpp"
namespace blyss::server
{
class world
{
std::map<std::string, std::unique_ptr<map>> maps_;
public:
world();
void add_map(const std::string& name, std::unique_ptr<map> map);
};
} | 15.25 | 72 | 0.603279 | Foomf |
c12d4893df4bb8e1865c3f79a2f942024d60086a | 1,490 | cpp | C++ | Menus/PauseMenu.cpp | colinmcgovern/panel-pop | 7ac63a5fe5c7d5048a5d6dd97a8eb02e06861104 | [
"MIT"
] | 43 | 2016-03-22T11:08:13.000Z | 2022-03-12T04:33:51.000Z | Menus/PauseMenu.cpp | colinmcgovern/panel-pop | 7ac63a5fe5c7d5048a5d6dd97a8eb02e06861104 | [
"MIT"
] | 11 | 2016-09-26T18:16:46.000Z | 2020-12-12T21:46:43.000Z | Menus/PauseMenu.cpp | colinmcgovern/panel-pop | 7ac63a5fe5c7d5048a5d6dd97a8eb02e06861104 | [
"MIT"
] | 23 | 2016-08-08T07:56:03.000Z | 2021-12-29T01:30:29.000Z | /*
* PauseMenu.cpp
*
* Created on: 6.2.2016
* Author: axelw
*/
#include "PauseMenu.h"
#include <SDL2/SDL_pixels.h>
#include <SDL2/SDL_rect.h>
#include <SDL2/SDL_render.h>
#include <SDL2/SDL_timer.h>
#include <string>
#include <vector>
#include "../Game/Game.h"
#include "../SDLContext.h"
#include "../State... | 22.923077 | 78 | 0.552349 | colinmcgovern |
c12dd864b2cbd054d802bac54c4fda5ffd2bb654 | 3,680 | cc | C++ | src/MSM/estimate_strains.cc | ecr05/MSM_HOCR | c56f832436b18e612e95d3802b1961453910b283 | [
"Unlicense"
] | 21 | 2018-06-19T17:12:37.000Z | 2022-02-12T11:47:17.000Z | src/MSM/estimate_strains.cc | ecr05/MSM_HOCR | c56f832436b18e612e95d3802b1961453910b283 | [
"Unlicense"
] | 16 | 2019-03-25T23:32:20.000Z | 2021-12-13T13:07:12.000Z | src/MSM/estimate_strains.cc | ecr05/MSM_HOCR | c56f832436b18e612e95d3802b1961453910b283 | [
"Unlicense"
] | 8 | 2018-07-18T22:19:37.000Z | 2021-10-05T13:54:20.000Z | /* estimate_strains.cc
Emma Robinson, FMRIB Image Analysis Group
Copyright (C) 2012 University of Oxford */
/* CCOPYRIGHT */
/* this program is designed to downsample freesurfer label files to be used in combination with the SPH6.vtk or other downsampled meshes*/
#include <iostream>
#include <string>
#i... | 23.896104 | 138 | 0.589946 | ecr05 |
c1359307f271abeb597ba059751cad217a3eb202 | 137 | cpp | C++ | Practical 8/prac 8 task2.cpp | sahilnegi30/C-PLUS- | bd8d9ce79e5ae36b9f8d5e4c88949455dc4a6339 | [
"MIT"
] | 1 | 2021-09-23T16:06:39.000Z | 2021-09-23T16:06:39.000Z | Practical 8/prac 8 task2.cpp | sahilnegi30/C-PLUS- | bd8d9ce79e5ae36b9f8d5e4c88949455dc4a6339 | [
"MIT"
] | null | null | null | Practical 8/prac 8 task2.cpp | sahilnegi30/C-PLUS- | bd8d9ce79e5ae36b9f8d5e4c88949455dc4a6339 | [
"MIT"
] | 1 | 2021-09-24T15:10:07.000Z | 2021-09-24T15:10:07.000Z | #include<iostream>
using namespace std;
int main()
{
int a=10;
int*ptr= &a;
int **ptr2=&(ptr);
cout<<**ptr2<<endl;
return 0;
}
| 12.454545 | 21 | 0.591241 | sahilnegi30 |
c13bc2a7030525a489a99f1f82b5a6f5810a679a | 3,032 | cpp | C++ | Source/System/Math/Primitive/ConvexHull3D/Tetrahedron.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | 2 | 2020-01-09T07:48:24.000Z | 2020-01-09T07:48:26.000Z | Source/System/Math/Primitive/ConvexHull3D/Tetrahedron.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | null | null | null | Source/System/Math/Primitive/ConvexHull3D/Tetrahedron.cpp | arian153/Engine-5 | 34f85433bc0a74a7ebe7da350d3f3698de77226e | [
"MIT"
] | null | null | null | #include "Tetrahedron.hpp"
#include "../../Utility/Utility.hpp"
#include "../../../Core/Utility/CoreDef.hpp"
#include "../../../Graphics/Utility/PrimitiveRenderer.hpp"
namespace Engine5
{
Tetrahedron::Tetrahedron()
{
type = ePrimitiveType::Tetrahedron;
}
Tetrahedron::~Tetrahedron()
{
}... | 29.153846 | 111 | 0.559037 | arian153 |
c14593bd6127ef6caddfd6e89e0ce834c0b82dd5 | 20,164 | cxx | C++ | EVE/EveBase/AliEveInit.cxx | shahor02/AliRoot | 37118c83effe7965a2a24b3b868bf9012727fb7e | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | EVE/EveBase/AliEveInit.cxx | shahor02/AliRoot | 37118c83effe7965a2a24b3b868bf9012727fb7e | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | EVE/EveBase/AliEveInit.cxx | shahor02/AliRoot | 37118c83effe7965a2a24b3b868bf9012727fb7e | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | //
// AliEveInit.cpp
// xAliRoot
//
// Created by Jeremi Niedziela on 01/06/15.
//
//
#include <AliEveInit.h>
#include <AliEveTrackCounter.h>
#include <AliEveEventManagerEditor.h>
#include <AliEveMultiView.h>
#include <AliEveMacroExecutor.h>
#include <AliEveMacro.h>
#include <AliEveGeomGentle.h>
#include <AliEveDat... | 38.480916 | 124 | 0.514531 | shahor02 |
c147511b9f2510e2687fe545638b765482ff8e2d | 2,531 | cpp | C++ | src/util/ScanAccumulator.cpp | jerlomy4ever/568_final_project | 5f75d673d0236548345a10d8a2c54d8d8971ea92 | [
"MIT"
] | 644 | 2019-07-26T18:53:13.000Z | 2022-03-31T14:37:17.000Z | src/util/ScanAccumulator.cpp | topcomma/SuMa | 683f9bbb7298f8f2d1c6d8891362bba3ee8c6c54 | [
"MIT"
] | 54 | 2019-08-20T02:46:31.000Z | 2022-03-30T13:34:37.000Z | src/util/ScanAccumulator.cpp | topcomma/SuMa | 683f9bbb7298f8f2d1c6d8891362bba3ee8c6c54 | [
"MIT"
] | 176 | 2019-10-19T04:57:02.000Z | 2022-03-30T05:52:00.000Z | #include "ScanAccumulator.h"
using namespace rv;
using namespace glow;
ScanAccumulator::ScanAccumulator(uint32_t history_size, uint32_t max_points)
: vbo_(BufferTarget::ARRAY_BUFFER, BufferUsage::DYNAMIC_DRAW), capacity_(history_size), max_size_(max_points) {
vbo_.resize(history_size * max_points); // allocate... | 26.642105 | 119 | 0.713552 | jerlomy4ever |
c14b2008863371b7efe6e08d2d86f980e4a37485 | 2,072 | hpp | C++ | TabGraph/include/Property.hpp | Gpinchon/TabGraph | 29eae2d9982b6ce3e4ff43c707c87c2f57ab39bb | [
"Apache-2.0"
] | 1 | 2020-08-28T09:35:18.000Z | 2020-08-28T09:35:18.000Z | TabGraph/include/Property.hpp | Gpinchon/TabGraph | 29eae2d9982b6ce3e4ff43c707c87c2f57ab39bb | [
"Apache-2.0"
] | null | null | null | TabGraph/include/Property.hpp | Gpinchon/TabGraph | 29eae2d9982b6ce3e4ff43c707c87c2f57ab39bb | [
"Apache-2.0"
] | 1 | 2020-10-08T11:21:13.000Z | 2020-10-08T11:21:13.000Z | #pragma once
#include "Event/Signal.hpp"
/** Use this to declare a new property */
#define PROPERTY(type, var, ...) \
public: \
Signal<type> var##Changed; \
type Get##var() const \
{ \
return _##var; \
... | 36.350877 | 43 | 0.255792 | Gpinchon |
c14cc60b0db93196eed95d07fbfc868bc107d3bb | 14,706 | hpp | C++ | source/lib/ls_common.hpp | LuisCM/lavascript | 415b19fd95b0985241e1e5ebe68a925141ec17ea | [
"MIT"
] | null | null | null | source/lib/ls_common.hpp | LuisCM/lavascript | 415b19fd95b0985241e1e5ebe68a925141ec17ea | [
"MIT"
] | null | null | null | source/lib/ls_common.hpp | LuisCM/lavascript | 415b19fd95b0985241e1e5ebe68a925141ec17ea | [
"MIT"
] | null | null | null | // ================================================================================================
// -*- C++ -*-
// File: ls_common.hpp
// Author: LuisCM
// Created on: 24/08/2001
// Brief: Bison Parser and Flex Lexer interface header and other common forward declarations.
// =========================================... | 33.422727 | 108 | 0.625731 | LuisCM |
c15086cf745c57f5f9a45945653b6ada5f00f241 | 1,594 | hpp | C++ | include/exemodel/wsserveree.hpp | walkthetalk/libem | 6619b48716b380420157c4021f9943b153998e09 | [
"Apache-2.0"
] | 2 | 2015-03-13T14:49:13.000Z | 2017-09-18T12:38:59.000Z | include/exemodel/wsserveree.hpp | walkthetalk/libem | 6619b48716b380420157c4021f9943b153998e09 | [
"Apache-2.0"
] | null | null | null | include/exemodel/wsserveree.hpp | walkthetalk/libem | 6619b48716b380420157c4021f9943b153998e09 | [
"Apache-2.0"
] | null | null | null | #pragma once
/**
* \file exemodel/wswsserveree.hpp
* \author Yi Qingliang <niqingliang2003@tom.com>
*/
#include <map>
#include <functional>
#include <libwebsockets.h>
#include "exemodel/poller.hpp"
namespace exemodel {
class wsee;
class wsserveree : public poller {
public:
typedef struct lws * cid;
typedef std... | 25.301587 | 77 | 0.747177 | walkthetalk |
c151572ec66449375e856f71275153abb88fb0be | 2,340 | cpp | C++ | TG/bookcodes/ch3/ranktree.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | TG/bookcodes/ch3/ranktree.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | TG/bookcodes/ch3/ranktree.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // Rank Tree
// Rujia Liu
// 输入格式:
// m 操作有m个
// 1 x 插入元素x
// 2 x 删除元素x。如果成功,输入1,否则输出0
// 3 k 输出第k小元素。k=1为最小元素
// 4 x 输出值x的“名次”,即比x小的结点个数加1
#include<cstdlib>
struct Node {
Node *ch[2]; // 左右子树
int r; // 随机优先级
int v; // 值
int s; // 结点总数
Node(int v = 0):v(v) { ch[0] = ch[1] = NULL; r = rand(); s = ... | 22.941176 | 70 | 0.463248 | Anyrainel |
c151a69a36332420eafc9a19f4e2f68c9c7c3d7e | 1,048 | cpp | C++ | algo/generate1.cpp | ppngiap/cppstdlib | 1175c954cd5220c10146b1c80b5619e809cbad23 | [
"MIT"
] | 24 | 2016-09-22T08:27:04.000Z | 2021-11-23T07:54:43.000Z | algo/generate1.cpp | ppngiap/cppstdlib | 1175c954cd5220c10146b1c80b5619e809cbad23 | [
"MIT"
] | null | null | null | algo/generate1.cpp | ppngiap/cppstdlib | 1175c954cd5220c10146b1c80b5619e809cbad23 | [
"MIT"
] | 14 | 2016-11-23T05:31:48.000Z | 2021-03-01T03:26:21.000Z | /* The following code example is taken from the book
* "The C++ Standard Library - A Tutorial and Reference, 2nd Edition"
* by Nicolai M. Josuttis, Addison-Wesley, 2012
*
* (C) Copyright Nicolai M. Josuttis 2012.
* Permission to copy, use, modify, sell and distribute this software
* is granted provided this copyr... | 34.933333 | 75 | 0.637405 | ppngiap |
c1533c1eb5ff43fd932fac334f5c5a35806c60e2 | 1,967 | cpp | C++ | MyBlinkySketch/Shimmer.cpp | oddacon/BlinkyTape | f8cdee79ad599ac83d6371e5b5b999d15488009e | [
"MIT"
] | 3 | 2018-04-16T09:13:38.000Z | 2020-02-19T16:12:59.000Z | MyBlinkySketch/Shimmer.cpp | oddacon/BlinkyTape | f8cdee79ad599ac83d6371e5b5b999d15488009e | [
"MIT"
] | null | null | null | MyBlinkySketch/Shimmer.cpp | oddacon/BlinkyTape | f8cdee79ad599ac83d6371e5b5b999d15488009e | [
"MIT"
] | 1 | 2020-02-19T16:13:05.000Z | 2020-02-19T16:13:05.000Z | #include "Shimmer.h"
#include "BlinkyTape.h"
#include <Arduino.h>
// Suggested colors
// Shimmer(1, 1, 1) // White
// Shimmer(1, 0.9352, 0.8340) // Light champagne
// Shimmer(1, 0.9412, 0.8340) // Medium champagne
const uint8_t ledMax = 255;
const uint8_t stepSize = 5;
const uint8_t valueDivisor = 4;
void Shim... | 20.925532 | 115 | 0.591764 | oddacon |
c154e6e644649bddd24a65d632592c95d304828d | 7,966 | cc | C++ | table/merger.cc | tetcoin/rocksdb | 2c1ef0692b393014613bdf4af623c9dc487f613c | [
"BSD-3-Clause"
] | null | null | null | table/merger.cc | tetcoin/rocksdb | 2c1ef0692b393014613bdf4af623c9dc487f613c | [
"BSD-3-Clause"
] | null | null | null | table/merger.cc | tetcoin/rocksdb | 2c1ef0692b393014613bdf4af623c9dc487f613c | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyright (c) 2011 The... | 27.659722 | 79 | 0.608712 | tetcoin |
c16090a9a57eb7301898c33c00bc3a437f100267 | 6,613 | cpp | C++ | opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/lag_wind_tab.cpp | 337240552/opencore-amr-iOS | 52fdd31e00c75ac5b07af09e7d9fd19e2210ec1c | [
"Apache-2.0"
] | 192 | 2015-01-07T09:09:39.000Z | 2022-02-22T07:11:48.000Z | opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/lag_wind_tab.cpp | 337240552/opencore-amr-iOS | 52fdd31e00c75ac5b07af09e7d9fd19e2210ec1c | [
"Apache-2.0"
] | 19 | 2016-03-22T10:14:14.000Z | 2021-09-04T02:40:20.000Z | opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/lag_wind_tab.cpp | 337240552/opencore-amr-iOS | 52fdd31e00c75ac5b07af09e7d9fd19e2210ec1c | [
"Apache-2.0"
] | 71 | 2015-08-31T02:31:29.000Z | 2022-03-08T10:18:07.000Z | /* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* 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.o... | 33.39899 | 89 | 0.31922 | 337240552 |
c1630b9deae1a3ec4e60e766dd694092e1f345b9 | 1,725 | hpp | C++ | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/common/umask.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 10 | 2021-03-29T13:52:06.000Z | 2022-03-10T02:24:25.000Z | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/common/umask.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | null | null | null | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/common/umask.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 6 | 2021-07-03T07:56:56.000Z | 2022-02-14T15:28:23.000Z | // OpenVPN -- An application to securely tunnel IP networks
// over a single port, with support for SSL/TLS-based
// session authentication and key exchange,
// packet encryption, packet authentication, and
// packet compression.
//
// Copyright (C) 2012-201... | 25 | 78 | 0.649275 | TiagoPedroByterev |
c166fad59f97ac53844b7921bc9d91b910882a7c | 2,066 | hpp | C++ | include/NasNas/core/data/Introspection.hpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 148 | 2020-04-08T13:45:34.000Z | 2022-01-29T13:52:10.000Z | include/NasNas/core/data/Introspection.hpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 5 | 2020-09-15T12:34:31.000Z | 2022-02-14T20:59:12.000Z | include/NasNas/core/data/Introspection.hpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 3 | 2020-10-03T22:35:20.000Z | 2020-10-05T04:55:45.000Z | // Created by Modar Nasser on 30/07/2021.
#pragma once
#include "NasNas/core/data/Rect.hpp"
namespace introspect {
using namespace std;
#define NS_DEFINE_HAS_METHOD(name, signature) \
template<typename, typename T=signature> \
struct ha... | 57.388889 | 83 | 0.395934 | Madour |
c167d3f17bbf30ba43dc746d7feaef100154adda | 33 | hpp | C++ | Snake/Canvas.hpp | sinkinGraphic/tiny | dece21d0d6ed5257e1d0fb8374a5f408939d8715 | [
"Apache-2.0"
] | null | null | null | Snake/Canvas.hpp | sinkinGraphic/tiny | dece21d0d6ed5257e1d0fb8374a5f408939d8715 | [
"Apache-2.0"
] | null | null | null | Snake/Canvas.hpp | sinkinGraphic/tiny | dece21d0d6ed5257e1d0fb8374a5f408939d8715 | [
"Apache-2.0"
] | null | null | null | #pragma once
class Canvas
{
};
| 4.714286 | 12 | 0.636364 | sinkinGraphic |
c1718a31fc78e8e673c53bc70520e6a057b7d6fc | 204 | hpp | C++ | inc/macros.hpp | esaliya/lbl.pisa | 1846075d84021303f3971534b0ea830845b0cb9e | [
"BSD-3-Clause-LBNL"
] | 4 | 2020-08-19T17:48:00.000Z | 2021-06-17T14:39:48.000Z | inc/macros.hpp | esaliya/lbl.pisa | 1846075d84021303f3971534b0ea830845b0cb9e | [
"BSD-3-Clause-LBNL"
] | 4 | 2020-08-14T16:43:20.000Z | 2020-08-21T01:03:01.000Z | inc/macros.hpp | PASSIONLab/PASTIS | 1846075d84021303f3971534b0ea830845b0cb9e | [
"BSD-3-Clause-LBNL"
] | null | null | null | /**
* @file
* macros.hpp
*
* @author
* Oguz Selvitopi
*
* @date
*
* @brief
* Macro definitions
*
* @todo
*
* @note
*
*/
#pragma once
#define PASTIS_BOUND_CHECK
#define PASTIS_DBG_LVL 3
| 8.869565 | 26 | 0.588235 | esaliya |
c17370b1023e7715aeaab7cdf95513bcc5af1e3f | 1,129 | cpp | C++ | bin/lib/random/main.cpp | johnsonyl/cpps | ed91be2c1107e3cfa8e91d159be81931eacfec19 | [
"MIT"
] | 18 | 2017-09-01T04:59:23.000Z | 2021-09-23T06:42:50.000Z | bin/lib/random/main.cpp | johnsonyl/cpps | ed91be2c1107e3cfa8e91d159be81931eacfec19 | [
"MIT"
] | null | null | null | bin/lib/random/main.cpp | johnsonyl/cpps | ed91be2c1107e3cfa8e91d159be81931eacfec19 | [
"MIT"
] | 4 | 2017-06-15T08:46:07.000Z | 2021-06-09T15:03:55.000Z | module random
{
var randint(var start,var end){
return math.random(start,end);
}
var randrange(var start,var end){
return math.random(start,end-1);
}
var choice(var v){
if(isstring(v)){
var p = randrange(0,len(v));
return string.at(v,p);
... | 27.536585 | 62 | 0.427812 | johnsonyl |
c173b7a6b3897debcbfbc5029668e4fec81edffe | 2,019 | cpp | C++ | source/core/Integrator.cpp | zhanghao00925/CG-Path_Tracing-Algorithm | 12bd6d7334051aa2bb0544dd26bfe4ad13ec5560 | [
"MIT"
] | 3 | 2020-04-05T13:09:17.000Z | 2021-03-16T10:56:17.000Z | source/core/Integrator.cpp | zhanghao00925/CG-Path_Tracing-Algorithm | 12bd6d7334051aa2bb0544dd26bfe4ad13ec5560 | [
"MIT"
] | null | null | null | source/core/Integrator.cpp | zhanghao00925/CG-Path_Tracing-Algorithm | 12bd6d7334051aa2bb0544dd26bfe4ad13ec5560 | [
"MIT"
] | 1 | 2020-02-19T02:59:44.000Z | 2020-02-19T02:59:44.000Z | //
// Created by hao on 3/27/19.
//
#include "Integrator.h"
#include "core.h"
#define JITTERED
void Integrator::Render(shared_ptr<Sampler> sampler, shared_ptr<Camera> camera,
shared_ptr<Scene> scene, shared_ptr<Film> film) {
int nx = film->nx, ny = film->ny;
for (int y = ny - 1; y >= 0; y-... | 33.098361 | 100 | 0.466568 | zhanghao00925 |
c1765d902eeeccfa73beb6a1326b12cd69ff5cc0 | 3,220 | cpp | C++ | test/accounting/UserConversionRatesTest.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | 2 | 2016-07-17T02:12:44.000Z | 2016-11-22T14:04:55.000Z | test/accounting/UserConversionRatesTest.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | null | null | null | test/accounting/UserConversionRatesTest.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013 Kyle Treubig
*
* 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... | 31.568627 | 80 | 0.526398 | vimofthevine |
c17c3095919fa88b1d80bc8e2033c8cc8b257bc9 | 572 | hpp | C++ | HexGame/Engine/Input/Mouse.hpp | kkorenev/HexGame | 33aae3b589f9c032056eab27be653caefbc22f1c | [
"MIT"
] | null | null | null | HexGame/Engine/Input/Mouse.hpp | kkorenev/HexGame | 33aae3b589f9c032056eab27be653caefbc22f1c | [
"MIT"
] | null | null | null | HexGame/Engine/Input/Mouse.hpp | kkorenev/HexGame | 33aae3b589f9c032056eab27be653caefbc22f1c | [
"MIT"
] | null | null | null | #pragma once
#include <Engine/Core/OpenGL.hpp>
class Mouse
{
public:
static void posCallback(GLFWwindow* window, double _x, double _y);
static void btnCallback(GLFWwindow* window, int button, int action, int mods);
static float getX();
static float getY();
static const glm::vec2& getCoordinates();
static boo... | 21.185185 | 79 | 0.756993 | kkorenev |
c17c73f265a01e0b1a34c4954fed1201629be7e5 | 3,285 | cpp | C++ | ChainIDE/popwidget/AboutWidget.cpp | AnyChainIO/AnyChainIDE | 283c4743f0f2484fcf6dd5528af8ab15c6e35011 | [
"MIT"
] | 3 | 2019-05-09T13:56:10.000Z | 2019-06-14T08:25:42.000Z | ChainIDE/popwidget/AboutWidget.cpp | AnyChainIO/AnyChainIDE | 283c4743f0f2484fcf6dd5528af8ab15c6e35011 | [
"MIT"
] | null | null | null | ChainIDE/popwidget/AboutWidget.cpp | AnyChainIO/AnyChainIDE | 283c4743f0f2484fcf6dd5528af8ab15c6e35011 | [
"MIT"
] | 2 | 2019-04-27T20:39:24.000Z | 2019-07-11T05:13:27.000Z | #include "AboutWidget.h"
#include "ui_AboutWidget.h"
#include <QPainter>
#include "ChainIDE.h"
#include "update/UpdateProcess.h"
#include "update/UpdateProgressUtil.h"
static const QString IDE_VERSION = "1.0.24";
//static const QString UPDATE_SERVER_URL = "http://192.168.1.161:7484/download/";
class AboutWidget::Da... | 27.14876 | 111 | 0.711111 | AnyChainIO |
c17d32f4fc932555c2e43b41c51851409f6202f9 | 455 | hpp | C++ | im_str/tests/include_catch.hpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | 1 | 2021-07-16T14:19:50.000Z | 2021-07-16T14:19:50.000Z | im_str/tests/include_catch.hpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | 1 | 2018-06-05T11:03:30.000Z | 2018-06-05T11:03:30.000Z | im_str/tests/include_catch.hpp | tum-ei-rcs/mart-common | 6f8f18ac23401eb294d96db490fbdf78bf9b316c | [
"MIT"
] | null | null | null | #pragma once
/*
* Purpose of this header is to have a central place
* to include the catch library header, but with various
* diagnostics disabled.
* TODO: Find a way to achieve this from the tool invocation
*/
#ifdef _MSC_VER
#include <codeanalysis\warnings.h>
#pragma warning( push )
#pragma warning( disable : ... | 21.666667 | 60 | 0.742857 | Mike-Bal |
c181cb523b9d25e7049248d308bc83f3a43a7ede | 2,161 | hpp | C++ | src/planning/costmap_generator/include/costmap_generator/object_map_utils.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 1 | 2022-02-24T07:36:59.000Z | 2022-02-24T07:36:59.000Z | src/planning/costmap_generator/include/costmap_generator/object_map_utils.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 5 | 2022-01-04T20:19:51.000Z | 2022-03-14T20:22:54.000Z | src/planning/costmap_generator/include/costmap_generator/object_map_utils.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 1 | 2021-12-09T15:44:10.000Z | 2021-12-09T15:44:10.000Z | // 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... | 40.018519 | 96 | 0.775567 | ruvus |
c18ad5171a77486ba0735aa5ae992dc5b6bfa674 | 1,614 | cpp | C++ | main.cpp | mdklatt/clion-docker-user | fe32526ec3bbcb53c7a43c4cabf3b6b102abd892 | [
"MIT"
] | null | null | null | main.cpp | mdklatt/clion-docker-user | fe32526ec3bbcb53c7a43c4cabf3b6b102abd892 | [
"MIT"
] | null | null | null | main.cpp | mdklatt/clion-docker-user | fe32526ec3bbcb53c7a43c4cabf3b6b102abd892 | [
"MIT"
] | null | null | null | #include <sys/stat.h>
#include <unistd.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <stdexcept>
#include <filesystem>
using std::cout;
using std::endl;
using std::filesystem::exists;
using std::exception;
using std::getenv;
using std::runtime_error;
using std::string;
/**
... | 27.827586 | 78 | 0.623916 | mdklatt |
c18b4054c23dbc747d499d9fc9ff7ba550fb8304 | 910 | cpp | C++ | Problemset/maximum-number-of-achievable-transfer-requests/maximum-number-of-achievable-transfer-requests.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | 1 | 2020-10-06T01:06:45.000Z | 2020-10-06T01:06:45.000Z | Problemset/maximum-number-of-achievable-transfer-requests/maximum-number-of-achievable-transfer-requests.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | null | null | null | Problemset/maximum-number-of-achievable-transfer-requests/maximum-number-of-achievable-transfer-requests.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | 1 | 2021-11-17T13:52:51.000Z | 2021-11-17T13:52:51.000Z |
// @Title: 最多可达成的换楼请求数目 (Maximum Number of Achievable Transfer Requests)
// @Author: Singularity0909
// @Date: 2020-09-27 12:12:06
// @Runtime: 324 ms
// @Memory: 8.8 MB
class Solution {
public:
int maximumRequests(int n, vector<vector<int>>& requests) {
int m = (int)requests.size(), ans = 0;
for ... | 26.764706 | 72 | 0.39011 | Singularity0909 |
c18bc56666f8af063cd61143f6efb885b36687a9 | 1,280 | cpp | C++ | maketoeplitzCIJ.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | maketoeplitzCIJ.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | maketoeplitzCIJ.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | #include "bct.h"
/*
* Generates a random directed binary graph with a Toeplitz organization.
*/
MATRIX_T* BCT_NAMESPACE::maketoeplitzCIJ(int N, int K, FP_T s) {
// profile = normpdf([1:N-1],0.5,s);
VECTOR_T* indices = sequence(1, N - 1);
VECTOR_T* profile = normpdf(indices, 0.5, s);
VECTOR_ID(free)(indices);
... | 26.122449 | 73 | 0.677344 | devuci |
c18fb3a261e1163cb7b9de4c9083ce7dcd0f2d48 | 1,830 | cpp | C++ | sources/2019/2019_02.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | 2 | 2021-02-01T13:19:37.000Z | 2021-02-25T10:39:46.000Z | sources/2019/2019_02.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | null | null | null | sources/2019/2019_02.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | null | null | null | #include "2019_02.h"
namespace Day02_2019
{
t_Memory IntcodeVM::parse(const string& input)
{
int addr = 0;
t_Memory m;
string s;
stringstream ss(input);
while (getline(ss, s, ','))
m[addr++] = stoi(s);
return m;
}
IntcodeVM::IntcodeVM(const t_Memory& program)
: _ip(0)
{
_memory = program;
}
... | 18.673469 | 82 | 0.621858 | tbielak |
c18ff524fb2a908f3063e00715cfc0bde1d83413 | 4,973 | cc | C++ | 2014 Nordic Collegiate Programming Contest/A.cc | lajiyuan/segmentation-fault-training | 71dfeeed52b18071a5c8c4d02f5e74fc01c53322 | [
"Apache-2.0"
] | 5 | 2019-04-07T05:39:11.000Z | 2020-07-23T01:43:02.000Z | 2014 Nordic Collegiate Programming Contest/A.cc | lajiyuan/segmentation-fault-training | 71dfeeed52b18071a5c8c4d02f5e74fc01c53322 | [
"Apache-2.0"
] | null | null | null | 2014 Nordic Collegiate Programming Contest/A.cc | lajiyuan/segmentation-fault-training | 71dfeeed52b18071a5c8c4d02f5e74fc01c53322 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
#include<iostream>
#include<algorithm>
#include<string.h>
#include<vector>
#include<map>
using namespace std;
typedef long long ll;
const int maxn = 2e5+10;
#define pb push_back
#define mp make_pair
#define dbg(x) cout<<#x<<" = "<<x<<endl
#define dbg2(x1,x2) cout<<#x1<<" = "<<x1<<" "<<#x2<<" = "<<x2<<... | 23.347418 | 87 | 0.35552 | lajiyuan |
c1931adcfe32a0a24c4813845fed92b25bffff25 | 28,343 | cc | C++ | src/utils/pdlfs_xxhash_impl.cc | pengdu/bubblefs | 9b27e191a287b3a1d012adfd3bab6a30629a5f33 | [
"BSD-3-Clause"
] | 1 | 2021-01-11T14:19:51.000Z | 2021-01-11T14:19:51.000Z | src/utils/pdlfs_xxhash_impl.cc | pengdu/bubblefs | 9b27e191a287b3a1d012adfd3bab6a30629a5f33 | [
"BSD-3-Clause"
] | null | null | null | src/utils/pdlfs_xxhash_impl.cc | pengdu/bubblefs | 9b27e191a287b3a1d012adfd3bab6a30629a5f33 | [
"BSD-3-Clause"
] | null | null | null | /*
* xxHash - Fast Hash algorithm
* Copyright (C) 2012-2016, Yann Collet
*
* BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redis... | 31.810325 | 92 | 0.632784 | pengdu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.