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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4cea9749bc061d3543d9a37d6c916e06e7a4bd5c | 2,167 | cpp | C++ | source/vulkan_instance.cpp | kjkaminsk/vulkan_seed | 752b0cacb0d740df6e7b09f81ff0f36c04d4a27d | [
"MIT"
] | null | null | null | source/vulkan_instance.cpp | kjkaminsk/vulkan_seed | 752b0cacb0d740df6e7b09f81ff0f36c04d4a27d | [
"MIT"
] | null | null | null | source/vulkan_instance.cpp | kjkaminsk/vulkan_seed | 752b0cacb0d740df6e7b09f81ff0f36c04d4a27d | [
"MIT"
] | null | null | null | #include <vulkan/vulkan.h>
#include <stdexcept>
#include <vector>
#include "context.h"
#include "errors.h"
#include "vulkan_instance.h"
#include "validation_layers.h"
//#include "window.h"
std::vector<const char*> get_required_extensions(Context& ctx)
{
//auto extensions = get_required_glfw_extensions(ctx);
... | 31.867647 | 87 | 0.750346 | kjkaminsk |
4cec53d913439b42e544334585422d80c3ca44c6 | 1,060 | hpp | C++ | src/Records/ENCH.hpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 1 | 2022-03-01T19:17:33.000Z | 2022-03-01T19:17:33.000Z | src/Records/ENCH.hpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 8 | 2015-04-17T12:04:15.000Z | 2015-07-02T14:40:28.000Z | src/Records/ENCH.hpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 1 | 2022-03-01T19:17:36.000Z | 2022-03-01T19:17:36.000Z | /*
* File: ENCH.hpp
* Author: Koncord <koncord at rwa.su>
*
* Created on 10 Апрель 2015 г., 22:20
*/
#ifndef ENCH_HPP
#define ENCH_HPP
#include "../Record.hpp"
class RecordENCH : public Record
{
public:
struct DATA
{
std::string edid;
std::string name;
#pragma pack(push, 1)
... | 19.62963 | 74 | 0.479245 | Koncord |
4cecb389638bae8f20bda33424c32ae89c5d42d4 | 503 | cxx | C++ | src/external/stl_ext/test/cosort.cxx | devinamatthews/tensor | 7d979b6624071879383377611cb2fa483b6a3104 | [
"BSD-3-Clause"
] | 86 | 2016-05-30T16:08:24.000Z | 2022-03-30T22:57:35.000Z | src/external/stl_ext/test/cosort.cxx | devinamatthews/tensor | 7d979b6624071879383377611cb2fa483b6a3104 | [
"BSD-3-Clause"
] | 41 | 2017-02-02T22:28:17.000Z | 2022-02-22T16:51:14.000Z | src/external/stl_ext/test/cosort.cxx | devinamatthews/tensor | 7d979b6624071879383377611cb2fa483b6a3104 | [
"BSD-3-Clause"
] | 26 | 2016-05-30T16:08:33.000Z | 2021-12-29T03:02:30.000Z | #include <vector>
#include "gtest/gtest.h"
#include "cosort.hpp"
using namespace std;
using namespace stl_ext;
TEST(unit_cosort, cosort)
{
vector<int> k = {4,8,1,6,0,-1,4,4,9,1};
vector<int> v = {0,1,2,3,4,5,6,7,8,9};
cosort(k, v);
EXPECT_EQ(vector<int>({-1,0,1,1,4,4,4,6,8,9}), k);
EXPECT_EQ(ve... | 22.863636 | 54 | 0.572565 | devinamatthews |
4cee1846b2c32e7b67cc9c623a835a82f5ece3fd | 50,056 | cpp | C++ | clients/selftest/test_complex.cpp | tingxingdong/rocFFT-1 | f34acb76185270cad4af5669a433ab6f65387d7d | [
"MIT"
] | null | null | null | clients/selftest/test_complex.cpp | tingxingdong/rocFFT-1 | f34acb76185270cad4af5669a433ab6f65387d7d | [
"MIT"
] | null | null | null | clients/selftest/test_complex.cpp | tingxingdong/rocFFT-1 | f34acb76185270cad4af5669a433ab6f65387d7d | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2016 Advanced Micro Devices, Inc. All rights reserved.
******************************************************************************/
#include <gtest/gtest.h>
#include <stdlib.h>
#include "rocfft/rocfft.h"
#inclu... | 52.141667 | 210 | 0.69618 | tingxingdong |
4cf1cbf599c7d2263030f5049903da09472f33b3 | 3,173 | cpp | C++ | binary/lib/matlab/generateMaze_emxAPI.cpp | ledschat/algomaze | 62e05c0b4f6a0eef750f0154a0e4c1241bd53843 | [
"MIT"
] | null | null | null | binary/lib/matlab/generateMaze_emxAPI.cpp | ledschat/algomaze | 62e05c0b4f6a0eef750f0154a0e4c1241bd53843 | [
"MIT"
] | null | null | null | binary/lib/matlab/generateMaze_emxAPI.cpp | ledschat/algomaze | 62e05c0b4f6a0eef750f0154a0e4c1241bd53843 | [
"MIT"
] | null | null | null | //
// File: generateMaze_emxAPI.cpp
//
// MATLAB Coder version : 3.3
// C/C++ source code generated on : 04-Oct-2017 10:47:28
//
// Include Files
#include "rt_nonfinite.h"
#include "generateMaze.h"
#include "updateMazePledge.h"
#include "updateMazeRandomMouse.h"
#include "updateMazeShortestPathBFS.h"
#incl... | 20.210191 | 81 | 0.638197 | ledschat |
4cf2b79a22a9a37379df6e0cb4dad130bc73d656 | 1,710 | cpp | C++ | dataset/test/modification/1491_control_replacement/1/transformation_1.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/modification/1491_control_replacement/1/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/modification/1491_control_replacement/1/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include <iomanip>
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define pi pair<int,int>
#define pll pair<ll,ll>
#define pb push_back
#define eb emplace_back
#define nl "\n"
#define NL "\n"
#define Nl "\n"
#define lp(i,n) for(int i=0;i<n;i++)
... | 18.791209 | 53 | 0.442105 | Karina5005 |
e07fb583355a3a5b9e59179adb723949bdd6cab3 | 3,591 | cpp | C++ | Dojo/Structured Parallel Programming/code/src/seismic/common/test_seismic.cpp | miguelraz/PathToPerformance | 4f098e55023007e62c338d31a7ed2a46a3c99752 | [
"MIT"
] | 5 | 2017-05-04T22:25:06.000Z | 2022-02-15T13:44:50.000Z | Dojo/Structured Parallel Programming/code/src/seismic/common/test_seismic.cpp | miguelraz/PathToPerformance | 4f098e55023007e62c338d31a7ed2a46a3c99752 | [
"MIT"
] | null | null | null | Dojo/Structured Parallel Programming/code/src/seismic/common/test_seismic.cpp | miguelraz/PathToPerformance | 4f098e55023007e62c338d31a7ed2a46a3c99752 | [
"MIT"
] | null | null | null | #define NOMINMAX // Required on Windows to make std::max work
int Nx = 250;
int Ny = 250;
int Nz = 250;
int T = 50;
static const int K = 2; // Number of pieces
static const int dt_threshold = 4;
static const int dx_threshold = 512;
static const int dyz_threshold = 4;
float* A[2]; ... | 32.944954 | 120 | 0.541632 | miguelraz |
e07fc9de78830bacbbe463fdfa3363b6f128ac18 | 4,221 | cpp | C++ | JobSystem/Src/JobSystem/WorkerThread.cpp | markoostveen/JobSystem | 8497b60410aae6128a7cef8e29454756d9fbee09 | [
"Apache-2.0"
] | null | null | null | JobSystem/Src/JobSystem/WorkerThread.cpp | markoostveen/JobSystem | 8497b60410aae6128a7cef8e29454756d9fbee09 | [
"Apache-2.0"
] | null | null | null | JobSystem/Src/JobSystem/WorkerThread.cpp | markoostveen/JobSystem | 8497b60410aae6128a7cef8e29454756d9fbee09 | [
"Apache-2.0"
] | null | null | null | #include "WorkerThread.h"
#include "JobSystem.h"
#include <iostream>
#include <string>
#include <chrono>
using namespace JbSystem;
void JobSystemWorker::ThreadLoop() {
std::unique_lock ul(_isRunningMutex);
//std::cout << "Worker has started" << std::endl;
int noWork = 0;
while (Active) {
Job* job = TryTakeJ... | 21.211055 | 112 | 0.717129 | markoostveen |
e080126c3f5d878a9516d30de001e253c1ec02e2 | 6,287 | cpp | C++ | src/z80asm/src/cpp/lstfile.cpp | UnivEngineer/z88dk | 9047beba62595b1d88991bc934da75c0e2030d07 | [
"ClArtistic"
] | 1 | 2022-03-08T11:55:58.000Z | 2022-03-08T11:55:58.000Z | src/z80asm/src/cpp/lstfile.cpp | UnivEngineer/z88dk | 9047beba62595b1d88991bc934da75c0e2030d07 | [
"ClArtistic"
] | 2 | 2022-03-20T22:17:35.000Z | 2022-03-24T16:10:00.000Z | src/z80asm/src/cpp/lstfile.cpp | jorgegv/z88dk | 127130cf11f9ff268ba53e308138b12d2b9be90a | [
"ClArtistic"
] | null | null | null | //-----------------------------------------------------------------------------
// z80asm
// list files
// Copyright (C) Paulo Custodio, 2011-2022
// License: The Artistic License 2.0, http://www.perlfoundation.org/artistic_license_2_0
//-----------------------------------------------------------------------------
#in... | 24.463035 | 92 | 0.606171 | UnivEngineer |
e0826cf233af5375290d74f096ddfaab3ed6b582 | 718 | cpp | C++ | testmain.cpp | renjipanicker/sqlch | 02daad73ee5e014748017820a7e46d08b9603132 | [
"MIT"
] | null | null | null | testmain.cpp | renjipanicker/sqlch | 02daad73ee5e014748017820a7e46d08b9603132 | [
"MIT"
] | null | null | null | testmain.cpp | renjipanicker/sqlch | 02daad73ee5e014748017820a7e46d08b9603132 | [
"MIT"
] | null | null | null | #include <iostream>
#include <assert.h>
#include "test.hpp"
inline void createDB(const std::string& filename) {
model::Auth db;
db.create(filename);
}
inline void insertDB(const std::string& filename) {
model::Auth db;
db.openrw(filename);
model::UserRW rw(db);
rw.insertUserMaster("amitabh");... | 20.514286 | 51 | 0.639276 | renjipanicker |
e0866b9524694cc53d0060affcc05a16c348d77e | 2,606 | cpp | C++ | ds3runtime/scripts/damage_update_test.cpp | tremwil/DS3RuntimeScripting | 50508bbf9295f87c459722ea3bea015c85a36de5 | [
"MIT"
] | 8 | 2021-06-05T21:59:53.000Z | 2022-02-03T10:00:09.000Z | ds3runtime/scripts/damage_update_test.cpp | tremwil/DS3RuntimeScripting | 50508bbf9295f87c459722ea3bea015c85a36de5 | [
"MIT"
] | null | null | null | ds3runtime/scripts/damage_update_test.cpp | tremwil/DS3RuntimeScripting | 50508bbf9295f87c459722ea3bea015c85a36de5 | [
"MIT"
] | 5 | 2021-05-17T19:49:29.000Z | 2022-02-26T11:00:29.000Z | #pragma once
#include "pch.h"
#include "damage_update_test.h"
#include "ds3runtime/ds3runtime.h"
#include <ds3runtime/scripts/param_patcher.h>
#include <ds3runtime/world_chr_man.h>
#include <ds3runtime/hooks/session_receive_hook.h>
#include <ds3runtime/sprj_session_manager.h>
#include <ds3runtime/hooks/session_send_hoo... | 28.955556 | 188 | 0.734075 | tremwil |
e08785a5a1860bda1460f927b4dab3aa1fcebf42 | 1,381 | cpp | C++ | c-cpp-weirdness/Macros/src/Main.cpp | andreybicalho/c-cpp-weirdness | dd111a1e77fe6306d1f88a7e479b6c27d6d1b41d | [
"MIT"
] | null | null | null | c-cpp-weirdness/Macros/src/Main.cpp | andreybicalho/c-cpp-weirdness | dd111a1e77fe6306d1f88a7e479b6c27d6d1b41d | [
"MIT"
] | null | null | null | c-cpp-weirdness/Macros/src/Main.cpp | andreybicalho/c-cpp-weirdness | dd111a1e77fe6306d1f88a7e479b6c27d6d1b41d | [
"MIT"
] | null | null | null | #include <iostream>
// example 1
#define OPEN_CURLY {
// example 2
#define SIMPLE_LOG(x) std::cout << x << std::endl;
// example 3
#if 0 // will inactive all of this
#define PI 3.14
#endif
// example 4
#define WAIT std::cout << std::endl << std::endl << "Press any key to exit..." << std::endl;\
std::cin.get();
// ... | 25.109091 | 155 | 0.682114 | andreybicalho |
e088c97b77efc06bb37f20809334604985907912 | 5,414 | cpp | C++ | Kernel/misc/string.cpp | adi-g15/Hydra | d383cff107d21a1b0dffc9501debc6a8b57ac5d9 | [
"BSD-3-Clause"
] | 3 | 2021-04-30T07:11:10.000Z | 2021-05-10T18:59:18.000Z | Kernel/misc/string.cpp | adi-g15/Hydra | d383cff107d21a1b0dffc9501debc6a8b57ac5d9 | [
"BSD-3-Clause"
] | 1 | 2021-04-28T09:29:00.000Z | 2021-04-29T19:15:42.000Z | Kernel/misc/string.cpp | adi-g15/Hydra | d383cff107d21a1b0dffc9501debc6a8b57ac5d9 | [
"BSD-3-Clause"
] | 1 | 2021-07-01T07:29:58.000Z | 2021-07-01T07:29:58.000Z | /*
* Copyright Null LLC
* Please read the License!
* _ _ _
* | | | | | |
* | |__ | |_ _ _ | | ____ ____
* | __)| | | | |/ || |/ ___) _ | string.cpp
* | | | | |_| ( (_| | | ( ( | | Basic string operations.
* |_| |_|\__ |\____|_| \_||_| Will be removed soon!
... | 27.622449 | 78 | 0.551718 | adi-g15 |
e08a073412875be42dd5875ad2d4df22d9f63ab3 | 3,178 | hpp | C++ | color_tweaker.hpp | MrTAB/GameDevUtilities | aba3543efbfcfee4efeec36fe73382c1bf85e420 | [
"MIT"
] | null | null | null | color_tweaker.hpp | MrTAB/GameDevUtilities | aba3543efbfcfee4efeec36fe73382c1bf85e420 | [
"MIT"
] | null | null | null | color_tweaker.hpp | MrTAB/GameDevUtilities | aba3543efbfcfee4efeec36fe73382c1bf85e420 | [
"MIT"
] | null | null | null | /*
*
* color_tweaker.hpp
*
* An object which adjusts a color with respect to another color.
* Subclasses provide different ways for a color to be tweaked in a way that
* is interdependent from the object using the continuously adjusting colour.
* Use for blending projectiles, enemies phasing colour durin... | 30.557692 | 81 | 0.653241 | MrTAB |
e08ec3cc812e0613ca3262c510791aeec5b70dc4 | 5,819 | hh | C++ | util/systemc/sc_gem5_control.hh | cmlasu/smm_gem5 | 2865229999904d531f5510ca50552b396efeaea0 | [
"BSD-3-Clause"
] | 31 | 2015-12-15T19:14:10.000Z | 2021-12-31T17:40:21.000Z | util/systemc/sc_gem5_control.hh | jcai19/smm_gem5 | 15e10bd32ef4a4d18e5d846b015d11317d319bcc | [
"BSD-3-Clause"
] | 5 | 2015-12-04T08:06:47.000Z | 2020-08-09T21:49:46.000Z | util/systemc/sc_gem5_control.hh | jcai19/smm_gem5 | 15e10bd32ef4a4d18e5d846b015d11317d319bcc | [
"BSD-3-Clause"
] | 21 | 2015-11-05T08:25:45.000Z | 2021-06-19T02:24:50.000Z | /*
* Copyright (c) 2014 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... | 37.541935 | 74 | 0.745317 | cmlasu |
e091fe31ef50e3f77ca5cbfb3ad093ffbe33685a | 5,073 | cpp | C++ | src/tracker/getBalanceAction.cpp | salarii/dims | b8008c49edd10a9ca50923b89e3b469c342d9cee | [
"MIT"
] | 1 | 2015-01-22T11:22:19.000Z | 2015-01-22T11:22:19.000Z | src/tracker/getBalanceAction.cpp | salivan-ratcoin-dev-team/dims | b8008c49edd10a9ca50923b89e3b469c342d9cee | [
"MIT"
] | null | null | null | src/tracker/getBalanceAction.cpp | salivan-ratcoin-dev-team/dims | b8008c49edd10a9ca50923b89e3b469c342d9cee | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2015 DiMS dev-team
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/statechart/state.hpp>
#include <boost/statechart/transition.hpp>
#include <boost/statechart/custom_reaction.hpp>
#inclu... | 29.666667 | 134 | 0.73014 | salarii |
e0963b110dc0737c98f4cc1521328bb344d8b4ae | 1,432 | cpp | C++ | graph-source-code/190-E/10166068.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/190-E/10166068.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/190-E/10166068.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include<vector>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
int n,m;
int fa[500005];
vector <int> e[500005];
bool v[500005];
int getFather( int x ){
if(fa[x]==x) return x;
return fa[x]=getFather(fa[x]);
}
void Merge(int x,int y){
int px=getFa... | 15.736264 | 37 | 0.49581 | AmrARaouf |
e09c80811351954a6b688a0845deb271bb63f251 | 1,985 | cpp | C++ | src/git_helper.cpp | beached/glean | dd25fe55edd0c898295328959b78fa2be32e2d1a | [
"MIT"
] | null | null | null | src/git_helper.cpp | beached/glean | dd25fe55edd0c898295328959b78fa2be32e2d1a | [
"MIT"
] | null | null | null | src/git_helper.cpp | beached/glean | dd25fe55edd0c898295328959b78fa2be32e2d1a | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2018-2019 Darrell Wright
//
// 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... | 35.446429 | 80 | 0.725945 | beached |
e0a07c43d51853156ed8d137b78e762bc2e9b914 | 4,022 | cpp | C++ | src/core/csr/measures/median_base_quality.cpp | roryk/octopus | 0ec2839c33b846107278696ee04ce6d7d0f69a54 | [
"MIT"
] | null | null | null | src/core/csr/measures/median_base_quality.cpp | roryk/octopus | 0ec2839c33b846107278696ee04ce6d7d0f69a54 | [
"MIT"
] | null | null | null | src/core/csr/measures/median_base_quality.cpp | roryk/octopus | 0ec2839c33b846107278696ee04ce6d7d0f69a54 | [
"MIT"
] | null | null | null | // Copyright (c) 2015-2020 Daniel Cooke
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
#include "median_base_quality.hpp"
#include <algorithm>
#include <iterator>
#include <boost/variant.hpp>
#include <boost/optional.hpp>
#include "core/tools/read_assigner.hpp"
#inc... | 31.669291 | 106 | 0.681253 | roryk |
e0abb98aced885e11cf786ba3c4fde37def45a49 | 14,374 | cpp | C++ | src/sys/svc/hasp_ota.cpp | geiseri/openHASP | 7357842b87ac75b7e78062b8d0ec365f1b1e2bbf | [
"MIT"
] | null | null | null | src/sys/svc/hasp_ota.cpp | geiseri/openHASP | 7357842b87ac75b7e78062b8d0ec365f1b1e2bbf | [
"MIT"
] | null | null | null | src/sys/svc/hasp_ota.cpp | geiseri/openHASP | 7357842b87ac75b7e78062b8d0ec365f1b1e2bbf | [
"MIT"
] | null | null | null | /* MIT License - Copyright (c) 2019-2022 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
#include "hasplib.h"
#include "hasp_debug.h"
#include "hasp_config.h"
#include "hasp_ota.h"
#if defined(ARDUINO_AR... | 35.144254 | 118 | 0.662516 | geiseri |
e0adc223eea3c6dbdeed6bffcda2ce8427b58777 | 721 | cpp | C++ | Sandbox/src/Sandbox.cpp | Krusto/FikoEngine | 614cd5018afeb76669af3726eccb1c2147ecd477 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Sandbox.cpp | Krusto/FikoEngine | 614cd5018afeb76669af3726eccb1c2147ecd477 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Sandbox.cpp | Krusto/FikoEngine | 614cd5018afeb76669af3726eccb1c2147ecd477 | [
"Apache-2.0"
] | null | null | null | #include "../../FikoEngine/FikoEngine.h"
class ExampleLayer : public FikoEngine::Layer{
public:
ExampleLayer()= default;
void OnUpdate() override{
}
void OnAttach() override{
}
void OnDetach() override{
}
};
std::unordered_map<std::string_view,FikoEngine::Layer*> FikoEngine::LayerStack::... | 23.258065 | 152 | 0.682386 | Krusto |
e0b206551c0765e83c30c26f5bd11707a26a8465 | 3,913 | cpp | C++ | code/sg-linker.cpp | Pascal-So/StreamGraph | 2f2954c30973d891d23476dcda9c37ab4125c77c | [
"MIT"
] | null | null | null | code/sg-linker.cpp | Pascal-So/StreamGraph | 2f2954c30973d891d23476dcda9c37ab4125c77c | [
"MIT"
] | null | null | null | code/sg-linker.cpp | Pascal-So/StreamGraph | 2f2954c30973d891d23476dcda9c37ab4125c77c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include "sg-linker.hpp"
#define Node_namespace std::unordered_map<std::string, Node*>
#define Group_namespace std::unordered_map<std::string, Group*>
// takes a group pointer and an existing group namespace
// and updates the namespace to contain the subgroups
// of the referenced group.
Group... | 29.643939 | 98 | 0.70943 | Pascal-So |
e0bb463204d67d2f2e6d3926ee95a1a77fb535e1 | 1,325 | hpp | C++ | asc/AscSoundManager.hpp | ChunChunMorning/AscNovel | fb988c5dcc0e3f2ae0492f88a23d89365534095f | [
"MIT"
] | 1 | 2016-05-25T07:17:37.000Z | 2016-05-25T07:17:37.000Z | asc/AscSoundManager.hpp | ChunChunMorning/AscNovel-Siv3D | fb988c5dcc0e3f2ae0492f88a23d89365534095f | [
"MIT"
] | null | null | null | asc/AscSoundManager.hpp | ChunChunMorning/AscNovel-Siv3D | fb988c5dcc0e3f2ae0492f88a23d89365534095f | [
"MIT"
] | null | null | null | # pragma once
# include <Siv3D.hpp>
namespace asc
{
using namespace s3d;
using SoundAssetName = String;
class SoundManager
{
private:
double m_bgmVolume;
double m_seVolume;
SoundAssetName m_charCount;
SoundAssetName m_move;
SoundAssetName m_submit;
public:
SoundManager() :
m_bgmVolume(1.0... | 15.229885 | 103 | 0.680755 | ChunChunMorning |
e0bc708536d5daa67830e65d5b0893c3b6b3db19 | 1,071 | cpp | C++ | MassivelyParallel/MassivelyParallel/GPUProgram.cpp | Brotcrunsher/MassivelyParallel | 319e21ed013544555230ee817e5517b9428fea1e | [
"MIT"
] | 1 | 2021-05-25T18:15:31.000Z | 2021-05-25T18:15:31.000Z | MassivelyParallel/MassivelyParallel/GPUProgram.cpp | Brotcrunsher/MassivelyParallel | 319e21ed013544555230ee817e5517b9428fea1e | [
"MIT"
] | null | null | null | MassivelyParallel/MassivelyParallel/GPUProgram.cpp | Brotcrunsher/MassivelyParallel | 319e21ed013544555230ee817e5517b9428fea1e | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "GPUProgram.h"
#include "GPUMngr.h"
#include "GPUPlatform.h"
GPUProgram::GPUProgram(const char * filename)
{
initialize(filename);
}
GPUProgram::GPUProgram()
{
}
GPUProgram::~GPUProgram()
{
if (_program != nullptr) {
cl_int err = clReleaseProgram(_program);
checkErr(err, "Release ... | 25.5 | 138 | 0.713352 | Brotcrunsher |
e0be8080c436d3f91b35712d35b60ca9cd773125 | 5,891 | cpp | C++ | test-cli/lib/MotorNoiseTest/MotorNoiseTest.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | test-cli/lib/MotorNoiseTest/MotorNoiseTest.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | test-cli/lib/MotorNoiseTest/MotorNoiseTest.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | #include "MotorNoiseTest.h"
#include <arm_math.h>
#define FRONT_LEFT_TEST_INDEX 1
#define FRONT_RIGHT_TEST_INDEX 2
#define BACK_LEFT_TEST_INDEX 3
#define BACK_RIGHT_TEST_INDEX 4
#define ALL_MOTORS_TEST 5
MotorNoiseTest::MotorNoiseTest() {
m_message = String("Test motor noise");
}
const String backLeftTe... | 32.191257 | 119 | 0.70056 | mc18g13 |
e0c2aa10a348ba2b55048fb38dc83e23513dfcce | 2,276 | cpp | C++ | src/math/vector3.cpp | pandepic/PandaSDL | 5e57859ea4b3870926428439b1e4c4b90e6d4cd9 | [
"MIT"
] | 3 | 2020-09-02T00:13:23.000Z | 2021-08-14T23:13:11.000Z | src/math/vector3.cpp | pandepic/PandaSDL | 5e57859ea4b3870926428439b1e4c4b90e6d4cd9 | [
"MIT"
] | null | null | null | src/math/vector3.cpp | pandepic/PandaSDL | 5e57859ea4b3870926428439b1e4c4b90e6d4cd9 | [
"MIT"
] | 1 | 2021-06-17T05:46:19.000Z | 2021-06-17T05:46:19.000Z | #include "vector3.h"
PandaSDL::Vector3::Vector3()
: X(0), Y(0), Z(0)
{
}
PandaSDL::Vector3::~Vector3()
{
}
PandaSDL::Vector3::Vector3(double x, double y, double z)
: X(x), Y(y), Z(z)
{
}
PandaSDL::Vector3::Vector3(int x, int y, int z)
: X(x), Y(y), Z(z)
{
}
PandaSDL::Vector3::Vector3(unsigned int x, unsign... | 18.966667 | 93 | 0.586995 | pandepic |
e0c70821c616bf6ab031665792837abac59f93d7 | 2,225 | hpp | C++ | owning_ptr.hpp | bstamour/owning_ptr | 8a2c9607aa40313f47038ee7a5834a99e03e5b59 | [
"BSL-1.0"
] | null | null | null | owning_ptr.hpp | bstamour/owning_ptr | 8a2c9607aa40313f47038ee7a5834a99e03e5b59 | [
"BSL-1.0"
] | null | null | null | owning_ptr.hpp | bstamour/owning_ptr | 8a2c9607aa40313f47038ee7a5834a99e03e5b59 | [
"BSL-1.0"
] | null | null | null | #ifndef BST_OWNING_PTR_HPP_
#define BST_OWNING_PTR_HPP_
#include <memory>
namespace bst {
template<class T> class owning_ptr;
template <class T> class owning_ptr_ref;
template <class T> class borrowed_ptr;
template <class T> class owning_ptr {
std::shared_ptr<T> impl_;
friend owning_ptr_ref<T>;
public:
usin... | 14.171975 | 52 | 0.630112 | bstamour |
e0c736e9cc4bdb7968738638c9af5bbce2acd92a | 1,038 | cpp | C++ | test/tap.cpp | CODIANZ/another-rxcpp | 5fd85037fa7cafbb6ba91a3dc507822e0d68a383 | [
"MIT"
] | 9 | 2022-01-06T16:56:49.000Z | 2022-03-15T05:23:48.000Z | test/tap.cpp | CODIANZ/another-rxcpp | 5fd85037fa7cafbb6ba91a3dc507822e0d68a383 | [
"MIT"
] | 1 | 2021-12-30T15:20:57.000Z | 2022-01-01T12:00:42.000Z | test/tap.cpp | CODIANZ/another-rxcpp | 5fd85037fa7cafbb6ba91a3dc507822e0d68a383 | [
"MIT"
] | null | null | null | #include <another-rxcpp/observable.h>
#include <another-rxcpp/operators.h>
#include <another-rxcpp/observables.h>
#include "common.h"
using namespace another_rxcpp;
using namespace another_rxcpp::operators;
void test_tap() {
log() << "test_tap -- begin" << std::endl;
auto o = observables::range(1, 10)
| tap<in... | 25.95 | 61 | 0.550096 | CODIANZ |
e0c91ea49078b96ac43f3d84f829c8913bf3e3eb | 146 | cpp | C++ | main.cpp | Gayane05/Container-ivec | 77a49aa8e37e3253776d3025ec0fd1e6ed494830 | [
"MIT"
] | null | null | null | main.cpp | Gayane05/Container-ivec | 77a49aa8e37e3253776d3025ec0fd1e6ed494830 | [
"MIT"
] | null | null | null | main.cpp | Gayane05/Container-ivec | 77a49aa8e37e3253776d3025ec0fd1e6ed494830 | [
"MIT"
] | null | null | null | #include <iostream>
#include "ivec.h"
#include "ivec_tester.h"
int main()
{
ivec_tester test;
test.Test();
getchar();
return 0;
} | 12.166667 | 25 | 0.616438 | Gayane05 |
e0cadc7d8a7f6969b533c59e164d66ce473032d2 | 340 | cpp | C++ | src/initializers/sdl-fonts.cpp | smaudet/sdl-game-engine | e49a001541c6e30c0cc0ee6aa04ee6ba2b5f4af7 | [
"MIT"
] | 75 | 2017-07-19T14:00:55.000Z | 2022-01-10T21:50:44.000Z | src/initializers/sdl-fonts.cpp | smaudet/sdl-game-engine | e49a001541c6e30c0cc0ee6aa04ee6ba2b5f4af7 | [
"MIT"
] | 3 | 2017-04-05T00:57:33.000Z | 2018-11-14T07:48:40.000Z | src/initializers/sdl-fonts.cpp | smaudet/sdl-game-engine | e49a001541c6e30c0cc0ee6aa04ee6ba2b5f4af7 | [
"MIT"
] | 12 | 2017-09-19T09:51:48.000Z | 2021-12-05T18:11:53.000Z | #include <SDL.h>
#include <SDL_ttf.h>
#include <sge/initializers/sdl-fonts.hpp>
namespace sge
{
void SDLFontsInitializer::do_initialize()
{
if (TTF_Init() != 0)
{
throw InitError("SDL_ttf", TTF_GetError());
}
}
void SDLFontsInitializer::do_shutdown()
{
... | 16.190476 | 55 | 0.567647 | smaudet |
e0ce12bd797a0418f75629e58588b4c5374ac9b7 | 18,900 | hpp | C++ | src/Providers/UNIXProviders/Tachometer/UNIX_Tachometer_LINUX.hpp | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/Tachometer/UNIX_Tachometer_ZOS.hpp | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/Tachometer/UNIX_Tachometer_ZOS.hpp | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | 21.307779 | 101 | 0.768889 | brunolauze |
e0d05e7f308d7f3bf3aae2b7fd2de22be6244849 | 35,420 | cpp | C++ | Examples/cprover/BplToPds.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | Examples/cprover/BplToPds.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | Examples/cprover/BplToPds.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #include "BplToPds.hpp"
#include <string>
#include <sstream>
#include <map>
#include <boost/cast.hpp>
using namespace std;
using namespace wali;
using namespace wali::wpds;
using namespace wali::wpds::fwpds;
using namespace wali::domains::binrel;
using namespace wali::cprover;
using namespace wali::cprover::details;
... | 32.887651 | 182 | 0.494212 | jusito |
e0d637a101a93010d5ecf21899b328ef189f242a | 10,603 | cc | C++ | Source/BladeFramework/source/interface_imp/DefaultTaskWorker.cc | OscarGame/blade | 6987708cb011813eb38e5c262c7a83888635f002 | [
"MIT"
] | 146 | 2018-12-03T08:08:17.000Z | 2022-03-21T06:04:06.000Z | Source/BladeFramework/source/interface_imp/DefaultTaskWorker.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 1 | 2019-01-18T03:35:49.000Z | 2019-01-18T03:36:08.000Z | Source/BladeFramework/source/interface_imp/DefaultTaskWorker.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 31 | 2018-12-03T10:32:43.000Z | 2021-10-04T06:31:44.000Z | /********************************************************************
created: 2017/12/02
filename: DefaultTaskWorker.cc
author: Crazii
purpose:
*********************************************************************/
#include <BladePCH.h>
#include "DefaultTaskWorker.h"
namespace Blade
{
/***********************... | 28.050265 | 129 | 0.552674 | OscarGame |
e0d719c63b03ce06a4e63b789eeb56ffe9e1d854 | 787 | cpp | C++ | src/laplacianthing.cpp | sandeepmanandhargithub/Mesh-Processing | c159b6ce8940fead4bf645b9314c15d3f2e6c8f9 | [
"MIT"
] | null | null | null | src/laplacianthing.cpp | sandeepmanandhargithub/Mesh-Processing | c159b6ce8940fead4bf645b9314c15d3f2e6c8f9 | [
"MIT"
] | null | null | null | src/laplacianthing.cpp | sandeepmanandhargithub/Mesh-Processing | c159b6ce8940fead4bf645b9314c15d3f2e6c8f9 | [
"MIT"
] | null | null | null | #include "laplacianthing.h"
LaplacianThing::LaplacianThing()
{
}
//set<int> LaplacianThing::FriendlyNeighbourhoodSpiderman(int i, int j)
//{
// set<int> intersected; //this set will hold the intersected vertices
// set_intersection(P2P.at(i).begin(), P2P.at(i).end(), P2P.at(j).begin(), P2P.at(j).end(),... | 30.269231 | 95 | 0.601017 | sandeepmanandhargithub |
e0da9ce6b7b68941d5eaddf287da46ded8a5d8f3 | 3,102 | hpp | C++ | include/ncpp/ostream.hpp | jbuonagurio/ncpp | 989c3e11f7c0b66798bf4820840a4180070e5dfd | [
"BSL-1.0"
] | 3 | 2019-04-27T23:10:20.000Z | 2020-05-25T04:34:29.000Z | include/ncpp/ostream.hpp | jbuonagurio/ncpp | 989c3e11f7c0b66798bf4820840a4180070e5dfd | [
"BSL-1.0"
] | null | null | null | include/ncpp/ostream.hpp | jbuonagurio/ncpp | 989c3e11f7c0b66798bf4820840a4180070e5dfd | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2020 John Buonagurio (jbuonagurio at exponent dot 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)
//
#ifndef NCPP_OSTREAM_HPP
#define NCPP_OSTREAM_HPP
#if defined(_MSC_VER) && (_MSC_VER >... | 26.288136 | 83 | 0.542553 | jbuonagurio |
e0db12253d690ea13e21c1374fa1827f817724ca | 2,811 | cpp | C++ | core/Source/SendEmailPresenter.cpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | 1 | 2020-01-19T14:14:13.000Z | 2020-01-19T14:14:13.000Z | core/Source/SendEmailPresenter.cpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | null | null | null | core/Source/SendEmailPresenter.cpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | 1 | 2020-11-18T05:24:38.000Z | 2020-11-18T05:24:38.000Z | // Copyright (c) 2019 Dear My Professor Authors
// Author: paxbun
#include <core/App.hpp>
#include <core/Email.hpp>
#include <core/EmailList.hpp>
#include <core/HasApp.hpp>
#include <core/SendEmailPresenter.hpp>
#include <core/View.hpp>
Address SendEmailPresenter::_Args2Addr(Args const& args)
{
if (args.is_string... | 30.225806 | 79 | 0.506581 | paxbun |
e0db3dd8dcf56ae564ac140b6eaa7191b74316fa | 3,001 | cpp | C++ | ww/ProgressBar.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | 8 | 2021-07-08T18:06:33.000Z | 2022-01-17T18:29:57.000Z | ww/ProgressBar.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | null | null | null | ww/ProgressBar.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | 1 | 2021-12-31T15:52:56.000Z | 2021-12-31T15:52:56.000Z | /**
* wWidgets - Lightweight UI Toolkit.
* Copyright (C) 2009-2011 Evgeny Andreeshchev <eugene.andreeshchev@gmail.com>
* Alexander Kotliar <alexander.kotliar@gmail.com>
*
* This code is distributed under the MIT License:
* http://www.opensource.org/licen... | 29.135922 | 132 | 0.682106 | koalefant |
e0db61c33b03c26aecdf56ebdaab8f88e1777421 | 3,819 | cpp | C++ | unittests/_test_master.cpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-09-19T16:37:59.000Z | 2017-09-19T16:37:59.000Z | unittests/_test_master.cpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | unittests/_test_master.cpp | rickfoosusa/dnp | ec17eb20817db32cc6356139afd2daaa1803576f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | //
// $Id$
//
// Copyright (C) 2007 Turner Technolgoies Inc. http://www.turner.ca
//
// 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... | 37.811881 | 78 | 0.662215 | rickfoosusa |
e0e32e6ff1369b3d14610617f7760fa883ffb89c | 3,339 | cpp | C++ | Crisp/Renderer/RenderPasses/AtmosphericLutPass.cpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | 6 | 2017-09-14T03:26:49.000Z | 2021-09-18T05:40:59.000Z | Crisp/Renderer/RenderPasses/AtmosphericLutPass.cpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | Crisp/Renderer/RenderPasses/AtmosphericLutPass.cpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | #include "AtmosphericLutPass.hpp"
#include "Renderer/Renderer.hpp"
#include "Renderer/RenderPassBuilder.hpp"
#include "Vulkan/VulkanImage.hpp"
#include "Vulkan/VulkanImageView.hpp"
#include "vulkan/VulkanFramebuffer.hpp"
namespace crisp
{
TransmittanceLutPass::TransmittanceLutPass(Renderer* renderer)
: Vu... | 35.903226 | 142 | 0.687032 | FallenShard |
e0e66bf771d1b5d982adb8dc8027d0f0e6e41ab7 | 17,431 | cpp | C++ | modules/core/viewer/src/ViewerBase.cpp | MobilePerceptionLab/MultiCamCalib | 2f0e94228c2c4aea7f20c26e3e8daa6321ce8022 | [
"Apache-2.0"
] | 11 | 2022-02-07T14:06:28.000Z | 2022-03-02T08:34:35.000Z | modules/core/viewer/src/ViewerBase.cpp | MobilePerceptionLab/MultiCamCalib | 2f0e94228c2c4aea7f20c26e3e8daa6321ce8022 | [
"Apache-2.0"
] | null | null | null | modules/core/viewer/src/ViewerBase.cpp | MobilePerceptionLab/MultiCamCalib | 2f0e94228c2c4aea7f20c26e3e8daa6321ce8022 | [
"Apache-2.0"
] | null | null | null | //
// Created by huangkun on 2020/1/9.
//
#include <numeric>
#include <opengv2/viewer/ViewerBase.hpp>
opengv2::ViewerBase::ViewerBase(const std::string &strSettingPath, MapBase::Ptr map, TrackingBase::Ptr tracking)
: map_(std::move(map)), tracking_(std::move(tracking)), GT_Tws_(nullptr) {
cv::FileStorage... | 33.912451 | 116 | 0.546211 | MobilePerceptionLab |
e0e6c4be8277231ebbeab673b8ae6c7570f5ecbf | 16,277 | cpp | C++ | Golem-Editor/src/EditorLayer.cpp | JayMarBu/Golem | f4c5d4615d41b5a6e5a3600b0007ecdd68791eb7 | [
"MIT"
] | null | null | null | Golem-Editor/src/EditorLayer.cpp | JayMarBu/Golem | f4c5d4615d41b5a6e5a3600b0007ecdd68791eb7 | [
"MIT"
] | null | null | null | Golem-Editor/src/EditorLayer.cpp | JayMarBu/Golem | f4c5d4615d41b5a6e5a3600b0007ecdd68791eb7 | [
"MIT"
] | null | null | null | #include "EditorLayer.h"
#include "glfw/include/GLFW/glfw3.h"
#include "Golem/Time.h"
#include "Golem/Profiling/Profiler.h"
#include "Golem/ECS/GameObject.h"
#include "Golem/ECS/Components/RenderComponents.h"
#include "Golem/ECS/Components/Transform.h"
namespace golem
{
EditorLayer::EditorLayer()
: Layer("Editor L... | 32.684739 | 135 | 0.732506 | JayMarBu |
e0e967fa9a7de55fdb3901cf2a9946a2341981c6 | 6,429 | cc | C++ | test/test_combinator.cc | ailrk/cppparsec | fff51dc6087028169978d590b62463d051c3ab39 | [
"MIT"
] | 1 | 2021-03-30T05:17:51.000Z | 2021-03-30T05:17:51.000Z | test/test_combinator.cc | ailrk/cppparsec | fff51dc6087028169978d590b62463d051c3ab39 | [
"MIT"
] | 3 | 2021-03-21T21:04:22.000Z | 2021-03-22T21:16:20.000Z | test/test_combinator.cc | ailrk/cppparsec | fff51dc6087028169978d590b62463d051c3ab39 | [
"MIT"
] | null | null | null | #include "catch2/catch.hpp"
#include "cppparsec.h"
#include <optional>
#include <variant>
// baseline test for each combinators
TEST_CASE("character parser") {
using namespace cppparsec::stream;
using namespace cppparsec;
string_state s("abc\ndef\nghi\n");
string_state s1("123");
SECTION("satisf... | 24.632184 | 78 | 0.456058 | ailrk |
e0e9e1e45ab23ff3ee27e384161475ae692ab580 | 15,957 | cpp | C++ | VoxelReconstruction/src/main.cpp | MaxRee94/INFOMCV-Assignment-2 | 24c5dafb35474422e16ff972e9d50029f40c16b1 | [
"MIT"
] | null | null | null | VoxelReconstruction/src/main.cpp | MaxRee94/INFOMCV-Assignment-2 | 24c5dafb35474422e16ff972e9d50029f40c16b1 | [
"MIT"
] | null | null | null | VoxelReconstruction/src/main.cpp | MaxRee94/INFOMCV-Assignment-2 | 24c5dafb35474422e16ff972e9d50029f40c16b1 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <string>
#include <stdio.h>
#include <iostream>
#include <numeric>
#include <random>
#include <list>
#include "utilities/General.h"
#include "VoxelReconstruction.h"
//#include "controllers/Reconstructor.h"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#define DATA_PATH "da... | 36.020316 | 135 | 0.614965 | MaxRee94 |
e0ed2775de5c7fb828e18a62fdf42147c1d9dcf9 | 305 | hpp | C++ | src/JackCompiler/ClassCompiler.hpp | HSU-F20-CS243/p10-starter | fde612e721a90dc83ec6bece7cfaada3b10486f8 | [
"Apache-2.0"
] | null | null | null | src/JackCompiler/ClassCompiler.hpp | HSU-F20-CS243/p10-starter | fde612e721a90dc83ec6bece7cfaada3b10486f8 | [
"Apache-2.0"
] | null | null | null | src/JackCompiler/ClassCompiler.hpp | HSU-F20-CS243/p10-starter | fde612e721a90dc83ec6bece7cfaada3b10486f8 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <queue>
#include <sstream>
#include "JackToken.hpp"
#include "CompilerBase.hpp"
#include "CompilerFactory.hpp"
using namespace std;
class CompilerFactory;
class ClassCompiler : public CompilerBase
{
public:
virtual void compile(queue<JackToken*>& tokens, ostringstream& result);
}; | 21.785714 | 72 | 0.780328 | HSU-F20-CS243 |
e0efa822edf3f4d50173e8489a1a85613475ed4f | 3,675 | cpp | C++ | CodeChef/LTIME95b/D.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | 2 | 2021-09-14T15:57:24.000Z | 2022-03-18T14:11:04.000Z | CodeChef/LTIME95b/D.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | null | null | null | CodeChef/LTIME95b/D.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | null | null | null | /*
"An anomaly, I'm Muhammad Ali
Cause I know one day I'm gonna be the"
- Greatest, Eminem
*/
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typ... | 27.425373 | 101 | 0.478912 | noobie7 |
e0f24b4d4ba388be8cd16a3990959a0171982ad9 | 154 | cpp | C++ | tests/disjoint/gpu.cpp | Pennycook/code-base-investigator | 1673301553100f567ab4140ab27f7417d84e3f08 | [
"BSD-3-Clause"
] | 17 | 2019-07-24T21:17:52.000Z | 2022-03-22T01:15:46.000Z | tests/disjoint/gpu.cpp | Pennycook/code-base-investigator | 1673301553100f567ab4140ab27f7417d84e3f08 | [
"BSD-3-Clause"
] | 1 | 2022-03-11T13:11:41.000Z | 2022-03-11T13:11:41.000Z | tests/disjoint/gpu.cpp | Pennycook/code-base-investigator | 1673301553100f567ab4140ab27f7417d84e3f08 | [
"BSD-3-Clause"
] | 7 | 2019-07-24T21:27:42.000Z | 2022-03-21T22:47:34.000Z | // Copyright (C) 2019 Intel Corporation
// SPDX-License-Identifier: BSD-3-Clause
#include "header.h"
int main(int argc, char* argv[])
{
return 0;
}
| 15.4 | 40 | 0.675325 | Pennycook |
e0f5ffd9ce3f6d2e5c59b5131e87a04631b9fa07 | 767 | cpp | C++ | lessons/week6/testy/test_stack.cpp | Wiladams/sr | 4151ddc8303a78e44b0921d9dea0617dd412a7db | [
"MIT"
] | 1 | 2020-03-25T22:02:46.000Z | 2020-03-25T22:02:46.000Z | lessons/week6/testy/test_stack.cpp | Wiladams/sr | 4151ddc8303a78e44b0921d9dea0617dd412a7db | [
"MIT"
] | null | null | null | lessons/week6/testy/test_stack.cpp | Wiladams/sr | 4151ddc8303a78e44b0921d9dea0617dd412a7db | [
"MIT"
] | 2 | 2020-02-06T01:59:27.000Z | 2020-02-10T01:22:41.000Z | #include "collections.hpp"
#include <stdio.h>
void testStack()
{
printf("==== test Stack ====\n");
Stack q;
q.push("this");
q.push("is");
q.push("how");
q.push("we");
q.push("do");
q.push("it");
void * val = q.pop();
while (val != nullptr) {
printf("stack pop: %s\... | 14.471698 | 47 | 0.46545 | Wiladams |
e0f61adf4367c1a7a2d3dca4ac331f4eeca4a6ae | 2,473 | cpp | C++ | src/usrp.cpp | wltr/maritime-sdr | 24f434d0fbdb89c627abcee2868c22f7aa78b48e | [
"MIT"
] | null | null | null | src/usrp.cpp | wltr/maritime-sdr | 24f434d0fbdb89c627abcee2868c22f7aa78b48e | [
"MIT"
] | null | null | null | src/usrp.cpp | wltr/maritime-sdr | 24f434d0fbdb89c627abcee2868c22f7aa78b48e | [
"MIT"
] | null | null | null | #include "usrp.h"
#include <uhd/types/metadata.hpp>
#include <uhd/types/tune_request.hpp>
#include <stdexcept>
#include <iostream>
#include <string>
#include <thread>
#include <chrono>
void Usrp::init(float sample_rate_hz, float frequency_hz, float gain_db)
{
const std::string device{"type=b200,recv_frame_size=800... | 29.094118 | 95 | 0.674484 | wltr |
803fb250b26e1d83a3f4ac7687fcfcb1553d4f9b | 464 | cpp | C++ | Insipid3D/MeshManager.cpp | thehugh100/Insipid3D | 429a9e6022c1a0bca842209310f949647f4c441e | [
"MIT"
] | 90 | 2017-04-10T20:08:53.000Z | 2022-03-28T19:16:04.000Z | Insipid3D/MeshManager.cpp | CristianRodrigoGuarachiIbanez/Insipid3D | 429a9e6022c1a0bca842209310f949647f4c441e | [
"MIT"
] | 2 | 2019-11-29T04:00:26.000Z | 2021-05-29T10:39:24.000Z | Insipid3D/MeshManager.cpp | CristianRodrigoGuarachiIbanez/Insipid3D | 429a9e6022c1a0bca842209310f949647f4c441e | [
"MIT"
] | 15 | 2017-10-02T03:15:03.000Z | 2022-03-28T20:46:34.000Z | #include "MeshManager.h"
#include "engine.h"
MeshManager::MeshManager(Engine* enginePtr)
{
engine = enginePtr;
}
Mesh* MeshManager::getMesh(std::string fname, unsigned int flags)
{
for (auto& i : meshes)
{
if (i->filename == fname)
{
//std::cout << "Loading Mesh: " << fname << ", already loaded." << std::en... | 20.173913 | 80 | 0.657328 | thehugh100 |
804240d30bf5f7f9e9645f15af28c49bc3275590 | 753 | cpp | C++ | ceppengine/src/ceppengine/assets/audioclip.cpp | Winded/ceppengine | 52a9c1723dc45aba4d85d50e4c919ec8016c8d94 | [
"MIT"
] | 2 | 2017-11-13T11:29:03.000Z | 2017-11-13T12:09:12.000Z | ceppengine/src/ceppengine/assets/audioclip.cpp | Winded/ceppengine | 52a9c1723dc45aba4d85d50e4c919ec8016c8d94 | [
"MIT"
] | null | null | null | ceppengine/src/ceppengine/assets/audioclip.cpp | Winded/ceppengine | 52a9c1723dc45aba4d85d50e4c919ec8016c8d94 | [
"MIT"
] | null | null | null | #include "audioclip.h"
#include <algorithm>
namespace cepp {
AudioClip::AudioClip(void *data, int dataSize, int numChannels, int bitsPerSample, int sampleRate) :
mData(data), mDataSize(dataSize), mNumChannels(numChannels), mBitsPerSample(bitsPerSample), mSampleRate(sampleRate)
{
}
AudioClip::~AudioClip()
{
... | 15.367347 | 119 | 0.705179 | Winded |
8043c16a41102590bb52dff9a4f1003938fed618 | 5,637 | cpp | C++ | containers/variant/variant_smoke_test.cpp | artbobrov/algorithms_and_data_structures | 799d301169da9f8507f8bb324859f9041caf1622 | [
"MIT"
] | null | null | null | containers/variant/variant_smoke_test.cpp | artbobrov/algorithms_and_data_structures | 799d301169da9f8507f8bb324859f9041caf1622 | [
"MIT"
] | null | null | null | containers/variant/variant_smoke_test.cpp | artbobrov/algorithms_and_data_structures | 799d301169da9f8507f8bb324859f9041caf1622 | [
"MIT"
] | 1 | 2021-03-08T14:22:51.000Z | 2021-03-08T14:22:51.000Z | #include <memory>
#include <string>
#define CATCH_CONFIG_MAIN
#define CATCH_CONFIG_FAST_COMPILE
#include "catch.hpp"
#include "variant.hpp"
using util::variant;
using util::get;
using util::bad_get;
namespace {
struct helper{
int tag;
int * destructor_cnt;
int * copy_cnt;
bool th... | 25.278027 | 89 | 0.570871 | artbobrov |
805a20cd5bdcc8ab83eb247c8720da1ab9ac1fc2 | 1,927 | cc | C++ | Diego/Iterator/LinkedList/MiddleOfLinkedList/Main.cc | p62jired/UdemyC | 306abc808e90027b33cc9592bc973511028047cd | [
"MIT"
] | null | null | null | Diego/Iterator/LinkedList/MiddleOfLinkedList/Main.cc | p62jired/UdemyC | 306abc808e90027b33cc9592bc973511028047cd | [
"MIT"
] | null | null | null | Diego/Iterator/LinkedList/MiddleOfLinkedList/Main.cc | p62jired/UdemyC | 306abc808e90027b33cc9592bc973511028047cd | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Node
{
public:
int m_value;
Node *m... | 21.411111 | 62 | 0.516866 | p62jired |
80625f1f347f5909191187acb7eaa8192f797585 | 12,376 | cpp | C++ | external/openglcts/modules/glesext/draw_buffers_indexed/esextcDrawBuffersIndexedBlending.cpp | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | 20 | 2019-04-18T07:37:34.000Z | 2022-02-02T21:43:47.000Z | external/openglcts/modules/glesext/draw_buffers_indexed/esextcDrawBuffersIndexedBlending.cpp | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | 11 | 2019-10-21T13:39:41.000Z | 2021-11-05T08:11:54.000Z | external/openglcts/modules/glesext/draw_buffers_indexed/esextcDrawBuffersIndexedBlending.cpp | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | 2 | 2017-10-17T10:00:25.000Z | 2022-02-28T07:43:27.000Z | /*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2015-2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... | 30.333333 | 110 | 0.641241 | tarceri |
806650b5622ae7b79fc8f1e7988e9107fce6014a | 371 | cpp | C++ | notes/day3/code/15-struct-fourvector.cpp | ajbennieston/cpp | e43687b4289c2e07c0c9c87b4c0003abf4e2a054 | [
"BSD-2-Clause"
] | 2 | 2020-06-08T16:23:49.000Z | 2020-06-08T23:33:29.000Z | notes/day3/code/15-struct-fourvector.cpp | ajbennieston/cpp | e43687b4289c2e07c0c9c87b4c0003abf4e2a054 | [
"BSD-2-Clause"
] | 1 | 2015-12-07T22:55:35.000Z | 2015-12-07T22:55:35.000Z | notes/day3/code/15-struct-fourvector.cpp | ajbennieston/cpp | e43687b4289c2e07c0c9c87b4c0003abf4e2a054 | [
"BSD-2-Clause"
] | null | null | null | /*
* C++ Notes Accompanying Code
* Compile: Y
* Run: Y
* Compile Should Succeed: Y
* Run Should Succeed: Y
*/
// NOTES: BEGIN INCLUSION
struct FourVector {
double t;
double x;
double y;
double z;
};
double interval(const FourVector& vec);
FourVector boost_z(const FourVector& vec, const double velocity);... | 16.863636 | 65 | 0.679245 | ajbennieston |
80699f264dbbc115f090a72b53eaf6eb99149f34 | 2,755 | cc | C++ | test/test_histogram.cc | YS-L/pgbm | 0910b322092361357297a1703b156f24c49a4f7f | [
"MIT"
] | 2 | 2016-02-25T06:54:12.000Z | 2017-12-08T07:23:26.000Z | test/test_histogram.cc | YS-L/pgbm | 0910b322092361357297a1703b156f24c49a4f7f | [
"MIT"
] | null | null | null | test/test_histogram.cc | YS-L/pgbm | 0910b322092361357297a1703b156f24c49a4f7f | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "histogram.h"
#include "util.h"
#include <algorithm>
#include <vector>
#include <cstdio>
TEST(HistogramTest, Update) {
unsigned int N = 10;
Histogram hist(N);
for (unsigned int i = 1; i <= 2 * N; ++i) {
hist.Update(i, 1);
ASSERT_EQ(std::min(i, N), hist.get_num_bins());
... | 29 | 78 | 0.589837 | YS-L |
80704ee00f5592eda9361d877a22f7473e7618c5 | 3,561 | cpp | C++ | fpsgame/Star2DControl.cpp | mrlitong/CPP-Game-engine-usage | 95697c4bfb507cfb38dbe0f632740e2a7eac71fb | [
"MIT"
] | 186 | 2017-07-26T12:53:29.000Z | 2021-09-10T04:00:39.000Z | fpsgame/Star2DControl.cpp | mrlitong/CPP-Game-engine-usage | 95697c4bfb507cfb38dbe0f632740e2a7eac71fb | [
"MIT"
] | 1 | 2017-08-15T13:12:27.000Z | 2017-08-16T06:14:57.000Z | fpsgame/Star2DControl.cpp | mrlitong/CPP-Game-engine-usage | 95697c4bfb507cfb38dbe0f632740e2a7eac71fb | [
"MIT"
] | 6 | 2017-02-15T10:19:26.000Z | 2017-03-15T03:17:15.000Z | #include "Star2DControl.h"
#include "Engine.h"
using namespace MathLib;
CStar2DControl::CStar2DControl(void)
{
m_pNormalTex = NULL;
m_pClickTex = NULL;
m_nEnabled = 1;
m_nClickState = 0;
m_fClickScale = 1.0f;
m_vNormalColor = vec4_one;
m_vClickColor = vec4_one;
m_fNormalTexScale = 0.1f;
m_fClickTexScale = 0.... | 21.846626 | 74 | 0.705701 | mrlitong |
80726b8ae004a6a398ec17f490a2394ad0b7d7e6 | 3,983 | hpp | C++ | boost/assign/v2/chain/meta.hpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | boost/assign/v2/chain/meta.hpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | boost/assign/v2/chain/meta.hpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// Boost.Assign v2 //
// //
// Copyright (C) 2003-2004 Thorsten Ottosen //
// ... | 30.875969 | 78 | 0.564399 | rogard |
8079de5dd9206f0a3c8afa414f945a71ba60ff44 | 446 | cpp | C++ | JHEngine/JHEngine/jh_qtgui.cpp | ahgnsdi/JHEngine | 28094a986faef3545a18e0dd727ea4a3f115aeba | [
"MIT"
] | 5 | 2017-12-12T04:54:15.000Z | 2019-12-16T02:25:12.000Z | JHEngine/JHEngine/jh_qtgui.cpp | ahgnsdi/JHEngine | 28094a986faef3545a18e0dd727ea4a3f115aeba | [
"MIT"
] | null | null | null | JHEngine/JHEngine/jh_qtgui.cpp | ahgnsdi/JHEngine | 28094a986faef3545a18e0dd727ea4a3f115aeba | [
"MIT"
] | null | null | null | #include "jh_qtgui.h"
Ui::JHEngineClass *g_main_form = nullptr;
Ui::ProcessList *g_proc_list_form = nullptr;
void
jhengine::gui::SetMainFormUi(Ui::JHEngineClass *ui)
{
g_main_form = ui;
}
void
jhengine::gui::SetProcessListFormUi(Ui::ProcessList *ui)
{
g_proc_list_form = ui;
}
Ui::JHEngineClass *
jhengine::gui::G... | 15.928571 | 56 | 0.746637 | ahgnsdi |
807bd665d750ca98c2eeb0ce7e45395ee75967ea | 11,855 | cpp | C++ | tests/src/assembler_rvq_tests.cpp | lioncash/biscuit | 875cd612c15829b0107c221927addaa50e52770c | [
"MIT"
] | 6 | 2021-06-20T08:50:13.000Z | 2022-03-19T18:18:16.000Z | tests/src/assembler_rvq_tests.cpp | lioncash/biscuit | 875cd612c15829b0107c221927addaa50e52770c | [
"MIT"
] | 7 | 2021-06-20T02:32:27.000Z | 2022-03-30T04:13:42.000Z | tests/src/assembler_rvq_tests.cpp | lioncash/biscuit | 875cd612c15829b0107c221927addaa50e52770c | [
"MIT"
] | 1 | 2022-01-15T08:29:20.000Z | 2022-01-15T08:29:20.000Z | #include <catch/catch.hpp>
#include <biscuit/assembler.hpp>
using namespace biscuit;
TEST_CASE("FADD.Q", "[rv32q]") {
uint32_t value = 0;
Assembler as(reinterpret_cast<uint8_t*>(&value), sizeof(value));
as.FADD_Q(f31, f7, f26, RMode::RNE);
REQUIRE(value == 0x07A38FD3);
as.RewindBuffer();
a... | 22.07635 | 68 | 0.61957 | lioncash |
807c8d052b767ebd2a58f740aba7fe182ccdd753 | 2,002 | cpp | C++ | SDK/ARKSurvivalEvolved_SM_AdobeFloor_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_SM_AdobeFloor_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_SM_AdobeFloor_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_SM_AdobeFloor_BP_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-----------------------------------------------------------------... | 26 | 131 | 0.705794 | 2bite |
807db283d167ec82cfc41c4d055400869871e1c4 | 483 | cpp | C++ | headers/06-point4.cpp | cpp-tutor/learnmoderncpp-tutorial | 96ca86a2508c80093f51f8ac017f41a994d04d52 | [
"MIT"
] | 1 | 2022-03-07T09:14:07.000Z | 2022-03-07T09:14:07.000Z | headers/06-point4.cpp | cpp-tutor/learnmoderncpp-tutorial | 96ca86a2508c80093f51f8ac017f41a994d04d52 | [
"MIT"
] | null | null | null | headers/06-point4.cpp | cpp-tutor/learnmoderncpp-tutorial | 96ca86a2508c80093f51f8ac017f41a994d04d52 | [
"MIT"
] | null | null | null | // 06-point4.cpp : Point type with global operator+ and member operator+= defined
#include <iostream>
using namespace std;
struct Point{
int x{}, y{};
Point& operator+= (const Point& rhs)
{
x += rhs.x;
y += rhs.y;
return *this;
}
};
Point operator+ (const Point& lhs, const Point& rhs) {
Point result{ lhs... | 17.25 | 81 | 0.575569 | cpp-tutor |
807de20adfb21d40325fc124295234baab98290d | 207 | hpp | C++ | Tests/kext/mock/Types.hpp | oledid-forks/Karabiner | 6181ef9c9a6aeecd4162720884fbbaa2596ee03a | [
"Unlicense"
] | 3,405 | 2015-01-01T04:57:52.000Z | 2022-03-24T06:05:30.000Z | Tests/kext/mock/Types.hpp | Hasimir/Karabiner | 6181ef9c9a6aeecd4162720884fbbaa2596ee03a | [
"Unlicense"
] | 606 | 2015-01-04T03:21:16.000Z | 2020-10-09T23:55:10.000Z | Tests/kext/mock/Types.hpp | Hasimir/Karabiner | 6181ef9c9a6aeecd4162720884fbbaa2596ee03a | [
"Unlicense"
] | 335 | 2015-01-06T16:43:16.000Z | 2022-02-13T11:12:52.000Z | #pragma once
#include <cstddef>
#include <cstdint>
#include <cstring>
typedef int IOFixed;
typedef int32_t SInt32;
typedef uint64_t UInt64;
typedef unsigned int AddDataType;
typedef unsigned int AddValue;
| 17.25 | 33 | 0.797101 | oledid-forks |
80840d593187128d5677a2e73996de5dca58a8c1 | 3,337 | cpp | C++ | tc bef160/LogCabin.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc bef160/LogCabin.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc bef160/LogCabin.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <queue>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <stack>
#include <utility>
#include <v... | 26.91129 | 309 | 0.550494 | ibudiselic |
80856f3912289e2903dc91aa6304bae9c57c33ef | 995 | cpp | C++ | test/test_truth.cpp | hossainbari/tpofinder | cfd0b394a2ec72636d51cd506e72967877cba9d0 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | test/test_truth.cpp | hossainbari/tpofinder | cfd0b394a2ec72636d51cd506e72967877cba9d0 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | test/test_truth.cpp | hossainbari/tpofinder | cfd0b394a2ec72636d51cd506e72967877cba9d0 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | #include "test.h"
#include "tpofinder/configure.h"
#include "tpofinder/truth.h"
#include "tpofinder/visualize.h"
#include <opencv2/highgui/highgui.hpp>
#include <vector>
using namespace cv;
using namespace tpofinder;
using namespace std;
class truth : public ::testing::Test {
public:
void SetUp() {
}
... | 24.875 | 83 | 0.703518 | hossainbari |
808c582f29a1c9fe5527884d01ce55d26f335fbe | 197 | cpp | C++ | src/js/js_agent.cpp | nanofrog/asyncflow | 0412ba0d16219994b2baade76fe4223e402285ec | [
"MIT"
] | 24 | 2021-06-29T05:41:46.000Z | 2021-07-22T02:03:27.000Z | src/js/js_agent.cpp | nanofrog/asyncflow | 0412ba0d16219994b2baade76fe4223e402285ec | [
"MIT"
] | 1 | 2021-07-29T12:32:03.000Z | 2021-07-29T12:32:03.000Z | src/js/js_agent.cpp | nanofrog/asyncflow | 0412ba0d16219994b2baade76fe4223e402285ec | [
"MIT"
] | 11 | 2021-06-29T02:39:39.000Z | 2021-07-05T09:37:32.000Z | #include "js_agent.h"
#include "export_js.h"
using namespace asyncflow::js;
JsAgent::JsAgent(Manager* manager, int id)
:Agent(manager),obj_(id){}
JsAgent::~JsAgent()
{
js_clear_gameobj(obj_);
} | 17.909091 | 42 | 0.725888 | nanofrog |
808cc17927e2dfba517583ff3343f47299b450b2 | 452 | cpp | C++ | OPCF/WINDOWS/sinks/updateSink.cpp | Qt-MVC-MVVM/CurveFit | 3fd81b3c1bab1301181d6b398b1a2eac3616c2b4 | [
"MIT"
] | null | null | null | OPCF/WINDOWS/sinks/updateSink.cpp | Qt-MVC-MVVM/CurveFit | 3fd81b3c1bab1301181d6b398b1a2eac3616c2b4 | [
"MIT"
] | null | null | null | OPCF/WINDOWS/sinks/updateSink.cpp | Qt-MVC-MVVM/CurveFit | 3fd81b3c1bab1301181d6b398b1a2eac3616c2b4 | [
"MIT"
] | null | null | null | #include "../mainwindow.h"
#include "updateSink.h"
#include <QtDebug>
updateSink::updateSink(MainWindow* ptr) {
ptr_mainwindow = ptr;
}
void updateSink::OnPropertyChanged(const std::string& str)
{
#ifndef NDEBUG
qDebug() << "In windows sink get change signal snd toupdate\n";
#endif // !NDEBUG
if (str == "Function"... | 20.545455 | 64 | 0.699115 | Qt-MVC-MVVM |
8091077889e5fb0d110bdca0c4687ab0efcb3c63 | 1,606 | cc | C++ | capsicum-test-main.cc | arichardson/capsicum-test | 42fe9592442b0e019eb7eecc545c95bec082adcb | [
"BSD-2-Clause"
] | null | null | null | capsicum-test-main.cc | arichardson/capsicum-test | 42fe9592442b0e019eb7eecc545c95bec082adcb | [
"BSD-2-Clause"
] | null | null | null | capsicum-test-main.cc | arichardson/capsicum-test | 42fe9592442b0e019eb7eecc545c95bec082adcb | [
"BSD-2-Clause"
] | null | null | null | #include <sys/types.h>
#ifdef __linux__
#include <sys/vfs.h>
#include <linux/magic.h>
#endif
#include <ctype.h>
#include <errno.h>
#include <pwd.h>
#include <iostream>
#include "gtest/gtest.h"
#include "capsicum-test.h"
int main(int argc, char* argv[]) {
::testing::InitGoogleTest(&argc, argv);
for (int ii = 1; ii ... | 25.09375 | 98 | 0.541719 | arichardson |
809522aba6a48b8d29e12e42ab8c1bc0616415aa | 14,598 | cpp | C++ | src/src/dropdownbox.cpp | mohistH/nanogui_from_dalerank | ae4b5e04b2d8e2e85ab63b737fd13f8882243526 | [
"MIT"
] | 2 | 2021-01-05T08:50:59.000Z | 2021-08-17T09:09:55.000Z | src/src/dropdownbox.cpp | mohistH/nanogui_from_dalerank | ae4b5e04b2d8e2e85ab63b737fd13f8882243526 | [
"MIT"
] | null | null | null | src/src/dropdownbox.cpp | mohistH/nanogui_from_dalerank | ae4b5e04b2d8e2e85ab63b737fd13f8882243526 | [
"MIT"
] | 1 | 2021-08-17T09:09:57.000Z | 2021-08-17T09:09:57.000Z | /*
src/dropdownbox.cpp -- simple dropdown box widget based on a popup button
NanoGUI was developed by Wenzel Jakob <wenzel.jakob@epfl.ch>.
The widget drawing code is based on the NanoVG demo application
by Mikko Mononen.
All rights reserved. Use of this source code is governed by a
BSD-style l... | 27.133829 | 123 | 0.608097 | mohistH |
80995361dc48c920f5ea404d9d0511ad47eec136 | 1,286 | cpp | C++ | clients/gtest/rocblas_gtest_main.cpp | imcarsonliao/rocBLAS | 69c1091e0201b1d5fba99cba9391f018a37028cc | [
"MIT"
] | 1 | 2019-01-22T04:51:12.000Z | 2019-01-22T04:51:12.000Z | clients/gtest/rocblas_gtest_main.cpp | Acidburn0zzz/rocBLAS | ed0d2b161eb6c28ed36732d10843e433d359b1bc | [
"MIT"
] | null | null | null | clients/gtest/rocblas_gtest_main.cpp | Acidburn0zzz/rocBLAS | ed0d2b161eb6c28ed36732d10843e433d359b1bc | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2018 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include <gtest/gtest.h>
#include "utility.hpp"
#include "rocblas_data.hpp"
#include "test_cleanup.hpp"
#define GTES... | 26.244898 | 90 | 0.513997 | imcarsonliao |
80a0d81b0b20a6d662a92919bb5d9bf6c8f6c546 | 386 | hpp | C++ | Tasks/Task-376-SpinLocks-broken/sample_hardware.hpp | DavidWood2001/Embedded-Systems | ab270f4f8b6ad75fe5eda62191fa0cdb08ba6657 | [
"Apache-2.0"
] | null | null | null | Tasks/Task-376-SpinLocks-broken/sample_hardware.hpp | DavidWood2001/Embedded-Systems | ab270f4f8b6ad75fe5eda62191fa0cdb08ba6657 | [
"Apache-2.0"
] | null | null | null | Tasks/Task-376-SpinLocks-broken/sample_hardware.hpp | DavidWood2001/Embedded-Systems | ab270f4f8b6ad75fe5eda62191fa0cdb08ba6657 | [
"Apache-2.0"
] | null | null | null | #ifndef __sample_hardware__
#define __sample_hardware__
#include "../lib/uopmsb/uop_msb_2_0_0.h"
#include <chrono>
using namespace uop_msb_200;
extern DigitalOut onBoardLED;
extern DigitalOut redLED;
extern DigitalOut yellowLED;
extern DigitalOut greenLED;
extern DigitalIn onBoardSwitch;
extern DigitalIn SW1;
exter... | 20.315789 | 40 | 0.80829 | DavidWood2001 |
80a7ea65cd24da0fed3dadc705d6b68782a24a36 | 1,310 | hpp | C++ | lib/model/header/connection_state.hpp | mehecip/mbd | 397b3f61764661e422134012fd58b9841c5b20be | [
"BSD-3-Clause"
] | 2 | 2020-10-27T12:45:01.000Z | 2021-10-09T13:32:46.000Z | lib/model/header/connection_state.hpp | mehecip/mbd | 397b3f61764661e422134012fd58b9841c5b20be | [
"BSD-3-Clause"
] | null | null | null | lib/model/header/connection_state.hpp | mehecip/mbd | 397b3f61764661e422134012fd58b9841c5b20be | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <cstdint>
#include <string>
#include <unordered_map>
#include "enum_hash.hpp"
namespace mbd
{
enum class connection_state : std::uint8_t
{
VALID = 0,
INVALID,
CONNECTED,
NOT_CONNECTED,
ERR_SAME_DIRECTION,
ERR_DIFF_TYPE,
ERR_UNKNOWN,
ERR_IN_PORT_INVALID,
ERR_OUT_PORT_INVALID,
ERR_IN_PO... | 27.291667 | 85 | 0.772519 | mehecip |
80a8f8d4e9bcd4d5295b1efae7309c432980afc4 | 740 | cpp | C++ | C7Editing/timeline/c7timelineobj.cpp | xshanlin/c7es | 520ab5b7efe54521aeb930e6baf60b8bb62a8027 | [
"MIT"
] | null | null | null | C7Editing/timeline/c7timelineobj.cpp | xshanlin/c7es | 520ab5b7efe54521aeb930e6baf60b8bb62a8027 | [
"MIT"
] | null | null | null | C7Editing/timeline/c7timelineobj.cpp | xshanlin/c7es | 520ab5b7efe54521aeb930e6baf60b8bb62a8027 | [
"MIT"
] | null | null | null | #include "c7timelineobj.h"
PO1_IMPLEMENTATION_BEGIN(C7TimelineObj, RIID_C7TIMELINE_OBJ)
PO1_ITEM_IMPLEMENTATION(C7FramePump, RIID_C7FRAMEPUMP)
PO1_IMPLEMENTATION_END(C7Obj)
C7TimelineObj::C7TimelineObj(std::weak_ptr<C7Obj> outerObj)
: C7Obj(outerObj) {
//ctor
}
C7TimelineObj::~C7TimelineObj() {
//dtor
}
... | 17.209302 | 60 | 0.731081 | xshanlin |
80b330704ad4b7e93bf567dc5966f812be8c61cd | 144 | cpp | C++ | src/material/empirical.cpp | JoshuaSenouf/tracer | 2998aac7a4feaac063c2e77bf9b22fdaccc17781 | [
"MIT"
] | 38 | 2019-06-14T18:36:36.000Z | 2022-03-27T16:55:17.000Z | src/material/empirical.cpp | JoshuaSenouf/tracer | 2998aac7a4feaac063c2e77bf9b22fdaccc17781 | [
"MIT"
] | null | null | null | src/material/empirical.cpp | JoshuaSenouf/tracer | 2998aac7a4feaac063c2e77bf9b22fdaccc17781 | [
"MIT"
] | 1 | 2020-03-18T07:07:24.000Z | 2020-03-18T07:07:24.000Z | #include "empirical.h"
Empirical::Empirical()
{
}
bool Empirical::Evaluate()
{
}
bool Empirical::Sample()
{
}
bool Empirical::Pdf()
{
}
| 6.545455 | 26 | 0.631944 | JoshuaSenouf |
01e9678b66281aae30c252cf61f8ce4272c57207 | 676 | cxx | C++ | libs/capture/details/capture_driver.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 11 | 2017-09-30T12:21:55.000Z | 2021-04-29T21:31:57.000Z | libs/capture/details/capture_driver.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T11:20:08.000Z | 2018-03-27T12:09:02.000Z | libs/capture/details/capture_driver.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 24 | 2018-03-27T11:46:16.000Z | 2021-05-01T20:28:34.000Z | #include "capture_driver.h"
namespace capture {
std::vector<capture_driver*>& capture_driver::ref_driver_list()
{
static std::vector<capture_driver*> driver_list;
return driver_list;
}
/// call to register a new driver
void capture_driver::register_driver(capture_driver* cd, const std::string& driver_name)
{
ref_d... | 22.533333 | 88 | 0.741124 | MarioHenze |
01ecbfe232d7f2b4a4c9e021a41cce66974bc95d | 283 | cpp | C++ | verify/verify-yosupo-math/yosupo-sum-of-floor.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 69 | 2020-11-06T05:21:42.000Z | 2022-03-29T03:38:35.000Z | verify/verify-yosupo-math/yosupo-sum-of-floor.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 21 | 2020-07-25T04:47:12.000Z | 2022-02-01T14:39:29.000Z | verify/verify-yosupo-math/yosupo-sum-of-floor.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 9 | 2020-11-06T11:55:10.000Z | 2022-03-20T04:45:31.000Z | #define PROBLEM "https://judge.yosupo.jp/problem/sum_of_floor_of_linear"
#include "../../template/template.hpp"
#include "../../math/sum-of-floor.hpp"
using namespace Nyaan; void Nyaan::solve() {
ini(T);
rep(_, T) {
inl(N, M, A, B);
out(sum_of_floor(N, M, A, B));
}
} | 23.583333 | 72 | 0.628975 | NachiaVivias |
01f4dd03b2f862d9229d9d2e2e4cfe5ef268b57f | 1,996 | hpp | C++ | src/systems/graphics/graphics_scene.hpp | vi3itor/Blunted2 | 318af452e51174a3a4634f3fe19b314385838992 | [
"Unlicense"
] | 56 | 2020-07-22T22:11:06.000Z | 2022-03-09T08:11:43.000Z | GameplayFootball/src/systems/graphics/graphics_scene.hpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 9 | 2021-04-22T07:06:25.000Z | 2022-01-22T12:54:52.000Z | GameplayFootball/src/systems/graphics/graphics_scene.hpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 20 | 2017-11-07T16:52:32.000Z | 2022-01-25T02:42:48.000Z | // written by bastiaan konings schuiling 2008 - 2014
// this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important.
// i do not offer support, so don't ask. to be used for inspiration :)
#ifndef _HPP_SYSTEMS_GRAPHICS_SCENE
#define _HPP_SYSTEMS_GRAPH... | 26.263158 | 132 | 0.741984 | vi3itor |
01fb9f64197534928d24cf8d4dbcfa06c3e96b83 | 11,986 | hxx | C++ | cpp/nvgraph/cpp/tests/readMatrix.hxx | seunghwak/cugraph | f2f6f9147ce8c2f46b7b6dbc335f885c11b69004 | [
"Apache-2.0"
] | 16 | 2019-09-13T11:43:26.000Z | 2022-03-02T10:11:59.000Z | cpp/nvgraph/cpp/tests/readMatrix.hxx | seunghwak/cugraph | f2f6f9147ce8c2f46b7b6dbc335f885c11b69004 | [
"Apache-2.0"
] | 5 | 2020-02-12T14:55:25.000Z | 2021-12-06T17:55:12.000Z | cpp/nvgraph/cpp/tests/readMatrix.hxx | seunghwak/cugraph | f2f6f9147ce8c2f46b7b6dbc335f885c11b69004 | [
"Apache-2.0"
] | 6 | 2020-04-06T01:34:45.000Z | 2021-01-21T17:13:24.000Z | /*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 25.611111 | 117 | 0.60821 | seunghwak |
01fd9de8bd5c8b1d199a39f0ea32b96475281feb | 16,165 | hpp | C++ | include/SharedBuffer.hpp | cosama/zed-context-driver | 3459c76599a2175a7af3c1986b79da9f3222d135 | [
"BSD-3-Clause-LBNL"
] | null | null | null | include/SharedBuffer.hpp | cosama/zed-context-driver | 3459c76599a2175a7af3c1986b79da9f3222d135 | [
"BSD-3-Clause-LBNL"
] | null | null | null | include/SharedBuffer.hpp | cosama/zed-context-driver | 3459c76599a2175a7af3c1986b79da9f3222d135 | [
"BSD-3-Clause-LBNL"
] | null | null | null | /***********************************************************************************
* Simple class template to share a buffer between processes/threads. Any standard
* type and fixed sized structure/class can be used, as long as memory is not
* dynamically allocate (STL containers do not work because of this).
*
... | 34.393617 | 154 | 0.619363 | cosama |
01fe9ca6aac64b291d983cd2986e0c6d594d073c | 3,924 | cpp | C++ | editor/node_editor/nodes/math_function_node.cpp | ArcheGraphics/Arche-cpp | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | 8 | 2022-02-15T12:54:57.000Z | 2022-03-30T16:35:58.000Z | editor/node_editor/nodes/math_function_node.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | null | null | null | editor/node_editor/nodes/math_function_node.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | null | null | null | // Copyright (c) 2022 Feng Yang
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "math_function_node.h"
#include "cpu_node_editor.h"
#include <locale>
#include <codecvt>
#i... | 26.513514 | 95 | 0.589704 | ArcheGraphics |
bf01182bd67c4778fe44887b95c8eada3c3ff544 | 12,112 | cpp | C++ | examples/imgui_impl_raster.cpp | bit-hack/imgui | e8cb9e3bae0c75873f5a76482d9a9db0aa41f7f5 | [
"MIT"
] | null | null | null | examples/imgui_impl_raster.cpp | bit-hack/imgui | e8cb9e3bae0c75873f5a76482d9a9db0aa41f7f5 | [
"MIT"
] | null | null | null | examples/imgui_impl_raster.cpp | bit-hack/imgui | e8cb9e3bae0c75873f5a76482d9a9db0aa41f7f5 | [
"MIT"
] | null | null | null | // dear imgui: Renderer for OpenGL2 (legacy OpenGL, fixed pipeline)
// This needs to be used along with a Platform Binding (e.g. GLFW, SDL, Win32, custom..)
// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this.
// If you are new to dear imgui, read examples/R... | 31.297158 | 144 | 0.568197 | bit-hack |
bf04d9fdca5eb81696cdef08ff5dfc32c6f1ac89 | 4,099 | hpp | C++ | libkameris/distances/ssim.hpp | stephensolis/modmap-generator-cpp | ab33a5b9c4c1feb3c6d65b251478e63d3a7825b5 | [
"MIT"
] | null | null | null | libkameris/distances/ssim.hpp | stephensolis/modmap-generator-cpp | ab33a5b9c4c1feb3c6d65b251478e63d3a7825b5 | [
"MIT"
] | null | null | null | libkameris/distances/ssim.hpp | stephensolis/modmap-generator-cpp | ab33a5b9c4c1feb3c6d65b251478e63d3a7825b5 | [
"MIT"
] | null | null | null | #ifndef _LIBKAMERIS_DISTANCES_SSIM_
#define _LIBKAMERIS_DISTANCES_SSIM_
#include <cstddef>
#include <cstdlib>
#include <memory>
#include <stdexcept>
#include "../utils/matrix_vector_adapters.hpp"
namespace kameris {
namespace ssim_impl {
template <typename T>
struct ssim_constants {
//1D Gaussian, radius = 5... | 36.927928 | 110 | 0.672359 | stephensolis |
bf0801cbb8eeaf4f8f83f345119eb6acfbad8b3f | 1,352 | cpp | C++ | pfm_rgb_ldr_to_ppm.cpp | procedural/cpp_pfm_rgb_ldr_to_ppm | 264d5ab8432fcfccd8f0e0925d836214888e7d33 | [
"MIT-0"
] | null | null | null | pfm_rgb_ldr_to_ppm.cpp | procedural/cpp_pfm_rgb_ldr_to_ppm | 264d5ab8432fcfccd8f0e0925d836214888e7d33 | [
"MIT-0"
] | null | null | null | pfm_rgb_ldr_to_ppm.cpp | procedural/cpp_pfm_rgb_ldr_to_ppm | 264d5ab8432fcfccd8f0e0925d836214888e7d33 | [
"MIT-0"
] | null | null | null | #if 0
g++ -std=c++11 -O2 pfm_rgb_ldr_to_ppm.cpp -o pfm_rgb_ldr_to_ppm
strip --strip-all pfm_rgb_ldr_to_ppm
exit
#endif
#include <string>
#include <fstream>
#include <sstream>
int main(int ArgsCount, char ** Args) {
// https://github.com/OpenImageDenoise/oidn/blob/v1.2.2/apps/utils/image_io.cpp#L52
// Open the fi... | 20.484848 | 85 | 0.574704 | procedural |
bf0877c23d17947ee68d543c46c0376fe9d94335 | 1,302 | cpp | C++ | practicas/clase_06/binary_ejercices/menor_elemento_arreglo_rotado.cpp | JackMerma/Adagrupob | 240b4155a68cf0672299d93f8dc0b61abba2e5e4 | [
"BSD-3-Clause"
] | null | null | null | practicas/clase_06/binary_ejercices/menor_elemento_arreglo_rotado.cpp | JackMerma/Adagrupob | 240b4155a68cf0672299d93f8dc0b61abba2e5e4 | [
"BSD-3-Clause"
] | null | null | null | practicas/clase_06/binary_ejercices/menor_elemento_arreglo_rotado.cpp | JackMerma/Adagrupob | 240b4155a68cf0672299d93f8dc0b61abba2e5e4 | [
"BSD-3-Clause"
] | null | null | null | /**
* @author : Jackson Fernando Merma Portocarrero (jmermap@unsa.edu.pe)
* @created : 11/11/2021
* @filename : menor_elemento_arreglo_rotado
* @description : Encuentra al valor minimo de un arreglo ordenado pero rotado (con entrada de datos)
*/
#include <bits/stdc++.h>
using namespace std;
#define ll lon... | 24.111111 | 107 | 0.650538 | JackMerma |
bf0ed27e175c1cbcd15ab431c77088f53e420d67 | 6,374 | cpp | C++ | util/HexEdit/src/HexEdit/DlgGoto.cpp | testdrive-profiling-master/src | 113efc01975fc084dec9ab5036f5db5a613c68be | [
"BSD-3-Clause"
] | null | null | null | util/HexEdit/src/HexEdit/DlgGoto.cpp | testdrive-profiling-master/src | 113efc01975fc084dec9ab5036f5db5a613c68be | [
"BSD-3-Clause"
] | null | null | null | util/HexEdit/src/HexEdit/DlgGoto.cpp | testdrive-profiling-master/src | 113efc01975fc084dec9ab5036f5db5a613c68be | [
"BSD-3-Clause"
] | 1 | 2021-05-15T07:42:06.000Z | 2021-05-15T07:42:06.000Z | //
// DlgGoto.c
//
// www.catch22.net
//
// Copyright (C) 2012 James Brown
// Please refer to the file LICENCE.TXT for copying permission
//
#define _CRT_NON_CONFORMING_SWPRINTFS
#include <windows.h>
#include <tchar.h>
#include <commctrl.h>
#include "resource.h"
#include "..\HexView\HexView.h"
#include "HexUtils.... | 24.610039 | 92 | 0.714151 | testdrive-profiling-master |
bf13476814bc6a54de3a0194653fd75da9068dc8 | 3,399 | cpp | C++ | detector.cpp | kermado/Detector | b34579758c0461869b78210034b5c45cc381483a | [
"MIT"
] | null | null | null | detector.cpp | kermado/Detector | b34579758c0461869b78210034b5c45cc381483a | [
"MIT"
] | null | null | null | detector.cpp | kermado/Detector | b34579758c0461869b78210034b5c45cc381483a | [
"MIT"
] | null | null | null |
#include "detector.h"
detector* create(const char* configuration_path, const char* weights_path)
{
detector* instance = new detector();
instance->net = cv::dnn::readNet(weights_path, configuration_path);
instance->net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA);
instance->net.setPreferableTarget(cv::dnn::DNN... | 29.301724 | 92 | 0.6599 | kermado |
bf1630fca649e38252e1ffa5772ee4f49ec9fa2d | 814 | hpp | C++ | cpp/visual studio/UXEnhancer/gui.hpp | NiHoel/Anno1800UXEnhancer | b430fdb428696b5218ca65a5e9b977d659cfca01 | [
"Apache-2.0"
] | 27 | 2020-03-29T16:02:09.000Z | 2021-12-18T20:08:51.000Z | cpp/visual studio/UXEnhancer/gui.hpp | NiHoel/Anno1800UXEnhancer | b430fdb428696b5218ca65a5e9b977d659cfca01 | [
"Apache-2.0"
] | 22 | 2020-04-03T03:40:59.000Z | 2022-03-29T15:55:28.000Z | cpp/visual studio/UXEnhancer/gui.hpp | NiHoel/Anno1800UXEnhancer | b430fdb428696b5218ca65a5e9b977d659cfca01 | [
"Apache-2.0"
] | 2 | 2021-10-17T16:15:46.000Z | 2022-01-10T18:56:49.000Z | #pragma once
#include <vcclr.h>
#include <msclr/marshal_cppstd.h>
#include "configuration.hpp"
using namespace System;
using namespace System::Threading;
using namespace AssetViewer;
delegate void AssetCountChanged(Collections::Generic::IEnumerable<AssetViewer::Data::TemplateAsset^>^);
delegate void ItemCountChang... | 18.930233 | 103 | 0.772727 | NiHoel |
bf1636eb11fffb1db4e7e8a83748eefa02ea295f | 710 | cpp | C++ | libraries/protocol/operations.cpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 8 | 2018-07-25T20:42:43.000Z | 2019-03-11T03:14:09.000Z | libraries/protocol/operations.cpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 13 | 2018-07-25T17:41:28.000Z | 2019-01-25T13:38:11.000Z | libraries/protocol/operations.cpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 11 | 2018-07-25T14:34:13.000Z | 2019-05-03T13:29:37.000Z | #include <sophiatx/protocol/operations.hpp>
#include <sophiatx/protocol/operation_util_impl.hpp>
namespace sophiatx { namespace protocol {
struct is_ffop_visitor
{
typedef bool result_type;
bool operator()( const base_operation& v )const { return v.fee.amount == 0; }
};
bool is_fee_free_operation(const operati... | 21.515152 | 80 | 0.730986 | SophiaTX |
bf1681dd4098386273b145a4809605b5d74c8dae | 1,014 | hh | C++ | include/turrets/sniper.hh | toogy/td42 | 6eef471c300bb8923f0e84d8db6f8f5ccce0a887 | [
"MIT"
] | null | null | null | include/turrets/sniper.hh | toogy/td42 | 6eef471c300bb8923f0e84d8db6f8f5ccce0a887 | [
"MIT"
] | null | null | null | include/turrets/sniper.hh | toogy/td42 | 6eef471c300bb8923f0e84d8db6f8f5ccce0a887 | [
"MIT"
] | null | null | null | #ifndef SNIPER_HH
# define SNIPER_HH
# include <stdexcept>
# include "turret.hh"
# include "map.hh"
class SniperTurret : public Turret
{
public:
static sf::Texture sniper_texture_;
static char initialized;
SniperTurret(unsigned x, unsigned y)
: Turret(20, x, y, 0, 2000, 5, 20, 7... | 28.971429 | 75 | 0.517751 | toogy |
bf18c9a5c23a8684995f1b7658a429f216c6ead1 | 934 | cpp | C++ | Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.cpp | olegv11/serenity | a205633643a828557c34e19d234a8c996c1f4ee3 | [
"BSD-2-Clause"
] | 2 | 2020-05-18T18:17:49.000Z | 2021-06-11T13:58:54.000Z | Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.cpp | olegv11/serenity | a205633643a828557c34e19d234a8c996c1f4ee3 | [
"BSD-2-Clause"
] | null | null | null | Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.cpp | olegv11/serenity | a205633643a828557c34e19d234a8c996c1f4ee3 | [
"BSD-2-Clause"
] | 1 | 2021-06-05T16:58:05.000Z | 2021-06-05T16:58:05.000Z | /*
* Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibJS/Runtime/Temporal/Calendar.h>
#include <LibJS/Runtime/Temporal/PlainDate.h>
#include <LibJS/Runtime/Value.h>
namespace JS::Temporal {
// 3.5.5 IsValidISODate ( year, month, day ), htt... | 24.578947 | 108 | 0.632762 | olegv11 |
bf2026a5f5b05e7e55b3a421b3f46dfbe32ef3cb | 1,091 | cpp | C++ | src/ChooseStyleExample/main.cpp | ioriayane/masterqtquick3 | ee36c622aac16cc60de14b54e2e01690a7eb862d | [
"Apache-2.0"
] | null | null | null | src/ChooseStyleExample/main.cpp | ioriayane/masterqtquick3 | ee36c622aac16cc60de14b54e2e01690a7eb862d | [
"Apache-2.0"
] | null | null | null | src/ChooseStyleExample/main.cpp | ioriayane/masterqtquick3 | ee36c622aac16cc60de14b54e2e01690a7eb862d | [
"Apache-2.0"
] | 1 | 2021-12-21T04:05:20.000Z | 2021-12-21T04:05:20.000Z | #include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QtQuickControls2/QQuickStyle>
#include <QSettings> // [1]
#include "originalstyle.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
//設定の保存で使用する情報 ... | 32.088235 | 84 | 0.629698 | ioriayane |
bf228f76e3d1d7276fcd1415270e44a4742e86b2 | 1,290 | cc | C++ | src/zone_test.cc | ErikCorryGoogle/rart | cff8d0b3a6e6c871e5c939c238b419171fa5bb59 | [
"BSD-3-Clause"
] | 1 | 2018-01-06T15:46:37.000Z | 2018-01-06T15:46:37.000Z | src/zone_test.cc | ErikCorryGoogle/rart | cff8d0b3a6e6c871e5c939c238b419171fa5bb59 | [
"BSD-3-Clause"
] | null | null | null | src/zone_test.cc | ErikCorryGoogle/rart | cff8d0b3a6e6c871e5c939c238b419171fa5bb59 | [
"BSD-3-Clause"
] | 1 | 2020-02-28T09:15:52.000Z | 2020-02-28T09:15:52.000Z | // Copyright (c) 2014, the Rart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
#define TESTING
#include "src/assert.h"
#include "src/allocation.h"
#include "src/test_case.h"
#incl... | 24.339623 | 77 | 0.683721 | ErikCorryGoogle |
bf27ec442db3c1ff4c3474b05d458e5097e8d2a1 | 1,761 | cpp | C++ | Google/CodeJam/2021/QR/b.cpp | miaowh/ICPC | c1f141ea005fb5d9582878e154c49f22b0f217ff | [
"MIT"
] | 1 | 2021-10-03T07:25:22.000Z | 2021-10-03T07:25:22.000Z | Google/CodeJam/2021/QR/b.cpp | MiaoWH/ICPC | c1f141ea005fb5d9582878e154c49f22b0f217ff | [
"MIT"
] | null | null | null | Google/CodeJam/2021/QR/b.cpp | MiaoWH/ICPC | c1f141ea005fb5d9582878e154c49f22b0f217ff | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int maxn = 105;
int cal(int x, int y, string s) {
int ret = 0;
for (int i = 0; i < s.size() - 1; i++) {
if (s[i] == s[i + 1]) continue;
if (s[i] == 'C')
ret += x;
else
ret += y;
}
return ret;
}
int work... | 20.964286 | 58 | 0.324815 | miaowh |
bf2896dd6cea3fc893adeff556fe7abdb9a5ded6 | 3,963 | cpp | C++ | Project Mania/Source/World/WorldNode.cpp | larsolm/Archives | 18968c18b80777e589bc8a704b4375be2fff8eea | [
"MIT"
] | null | null | null | Project Mania/Source/World/WorldNode.cpp | larsolm/Archives | 18968c18b80777e589bc8a704b4375be2fff8eea | [
"MIT"
] | null | null | null | Project Mania/Source/World/WorldNode.cpp | larsolm/Archives | 18968c18b80777e589bc8a704b4375be2fff8eea | [
"MIT"
] | null | null | null | #include "Pch.h"
#include "World/WorldNode.h"
#include "Game/Game.h"
void WorldNodeData::Initialize()
{
ResolveConnections();
ResolveMapProjectionPolygon();
}
auto WorldNodeData::IsSameAs(const WorldNodeData& other) const -> bool
{
return MapDepth == other.MapDepth && Index == other.Index;
}
auto WorldNodeData::I... | 24.462963 | 111 | 0.739591 | larsolm |
bf2bc9a115831b8d78b7179c7dd2f22690b76c37 | 33,337 | cpp | C++ | lms-suite/lms-suite/src/src/lms6/Algorithms.cpp | bujigr/mmap_fpga | e36ca7edb97091b7e5019a175c06b4fc96367a75 | [
"CC-BY-3.0"
] | 34 | 2015-01-26T19:34:21.000Z | 2021-11-17T10:45:22.000Z | LMS6002D/lms-suite/src/src/lms6/Algorithms.cpp | serojik91/lms-suite | 41c3e7e40a76d2520478e9f57bcd01d904907425 | [
"Apache-2.0"
] | 22 | 2015-02-07T01:39:50.000Z | 2017-09-09T15:48:41.000Z | LMS6002D/lms-suite/src/src/lms6/Algorithms.cpp | serojik91/lms-suite | 41c3e7e40a76d2520478e9f57bcd01d904907425 | [
"Apache-2.0"
] | 16 | 2015-01-13T16:44:11.000Z | 2022-01-04T22:01:50.000Z | /**
@file Algorithms.cpp
@author Lime Microsystems (www.limemicro.com)
@brief Procedures used for calibrating and tuning operations
*/
#include "Algorithms.h"
#include <string>
#include <sstream>
#include <string.h>
#include <stdio.h>
#include "LMS6002_MainControl.h"
#include "ConnectionManager.h"
#inc... | 27.920436 | 116 | 0.597804 | bujigr |
bf2d7a88a77d0cc35c9b3f851a2832f174d65583 | 7,089 | cpp | C++ | offscreen_effect_player/src/offscreen_effect_player.cpp | hamst/OEP_desktop | f17902d36d98367f44bbf1e87ebdbd011550d2c5 | [
"MIT"
] | null | null | null | offscreen_effect_player/src/offscreen_effect_player.cpp | hamst/OEP_desktop | f17902d36d98367f44bbf1e87ebdbd011550d2c5 | [
"MIT"
] | 2 | 2021-02-11T09:27:20.000Z | 2021-02-19T14:14:00.000Z | offscreen_effect_player/src/offscreen_effect_player.cpp | hamst/OEP_desktop | f17902d36d98367f44bbf1e87ebdbd011550d2c5 | [
"MIT"
] | 2 | 2021-02-24T12:55:28.000Z | 2021-06-24T18:46:47.000Z | #include "offscreen_effect_player.hpp"
#include "offscreen_render_target.hpp"
#include <iostream>
namespace bnb
{
ioep_sptr interfaces::offscreen_effect_player::create(
const std::vector<std::string>& path_to_resources, const std::string& client_token,
int32_t width, int32_t height, bool manual_au... | 33.28169 | 116 | 0.573847 | hamst |
bf2de21efb5c7345aa9f600c9390a2d24b44ec04 | 3,874 | cpp | C++ | tests/NotificationCenter/test_notificationmanager.cpp | LinuxNotifier/NotificationCenter | 213d54b2a93c403bc2150d857f032915dcb2c102 | [
"MIT"
] | 6 | 2018-11-21T00:17:05.000Z | 2021-11-17T10:42:50.000Z | tests/NotificationCenter/test_notificationmanager.cpp | LinuxNotifier/NotificationCenter | 213d54b2a93c403bc2150d857f032915dcb2c102 | [
"MIT"
] | 1 | 2019-03-24T00:53:11.000Z | 2019-03-24T00:53:11.000Z | tests/NotificationCenter/test_notificationmanager.cpp | LinuxNotifier/NotificationCenter | 213d54b2a93c403bc2150d857f032915dcb2c102 | [
"MIT"
] | null | null | null | #include "notificationmanager.h"
#include "notificationcenter.h"
#include "debug.h"
#include <QApplication>
#include <QDateTime>
#include <QUuid>
#include <QIcon>
#include <QSqlQuery>
#include <QSqlRecord>
#include "database.h"
#include <Catch2/catch.hpp>
TEST_CASE("test NotificationManager", "[notification], [databas... | 43.52809 | 89 | 0.624935 | LinuxNotifier |
bf3322467c70f3e49d2cb98c791a4eeeb2debacb | 4,064 | cpp | C++ | Widget.cpp | cedoduarte/CuadradoMagico | c882e52c48a3abe1d4f3e3d3376df1e81cf2bdb8 | [
"MIT"
] | null | null | null | Widget.cpp | cedoduarte/CuadradoMagico | c882e52c48a3abe1d4f3e3d3376df1e81cf2bdb8 | [
"MIT"
] | null | null | null | Widget.cpp | cedoduarte/CuadradoMagico | c882e52c48a3abe1d4f3e3d3376df1e81cf2bdb8 | [
"MIT"
] | null | null | null | #include "Widget.h"
#include "ui_Widget.h"
#include "NumeroEnteroDelegate.h"
#include <QStandardItemModel>
#include <QInputDialog>
#include <QMessageBox>
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
ui->setupUi(this);
mModel = new QStandardItemModel(this);
mSumaDeDiagona... | 27.275168 | 77 | 0.601624 | cedoduarte |
bf3899f219b95ec52d3d9d0b4fb08b9f9a7d8ad3 | 401 | hh | C++ | prj/inc/cuboid.hh | KPO-2020-2021/zad5_2-DamianJanusz3 | 2d0fa1e46777c9dbb6a1ff5116682811c3b30446 | [
"Unlicense"
] | null | null | null | prj/inc/cuboid.hh | KPO-2020-2021/zad5_2-DamianJanusz3 | 2d0fa1e46777c9dbb6a1ff5116682811c3b30446 | [
"Unlicense"
] | null | null | null | prj/inc/cuboid.hh | KPO-2020-2021/zad5_2-DamianJanusz3 | 2d0fa1e46777c9dbb6a1ff5116682811c3b30446 | [
"Unlicense"
] | null | null | null | #pragma once
/*!
* \file
* \brief Definicja klasy Cuboid
*
* Plik zawiera definicję klasy Cuboid
*/
#include "solid.hh"
/*!
* Cuboid dziedziczy po klasie Solid
*/
class Cuboid: public Solid {
public:
/*!
* Konstruktor parametryczny klasy Cuboid
*/
Cuboid(Vector3D mid=Vector3D(), double x=60, doubl... | 14.321429 | 125 | 0.643392 | KPO-2020-2021 |
bf3cac55f7167906770e67fe3ac0b451f2485666 | 3,925 | hpp | C++ | src/include/CalibrationSet.hpp | tteoz/pinspect | 551cca1ed5fd9af0ebea14cc899f4a28853f8dc3 | [
"BSD-3-Clause"
] | null | null | null | src/include/CalibrationSet.hpp | tteoz/pinspect | 551cca1ed5fd9af0ebea14cc899f4a28853f8dc3 | [
"BSD-3-Clause"
] | null | null | null | src/include/CalibrationSet.hpp | tteoz/pinspect | 551cca1ed5fd9af0ebea14cc899f4a28853f8dc3 | [
"BSD-3-Clause"
] | null | null | null | /*
* ELABORAZIONE DI DATI TRIDIMENSIONALI - 2014/2015
*
* Department of Information Engineering (DEI)
*
* University of Padova
*
*
* This source was developed for the final course project as well as for the
* competition organized by Loccioni Group.
*
*
* Created on: Apr 22, 2015
* Authors:... | 20.02551 | 80 | 0.690191 | tteoz |
bf3cc355bd7a377f29ea236c528af566d5bc3619 | 218 | cpp | C++ | Topics/2015_01_18/print_initials.cpp | TelerikAcademy/C-Beginner | a4d5a8beb870da910f74da41362b02f0d754ee51 | [
"MIT"
] | null | null | null | Topics/2015_01_18/print_initials.cpp | TelerikAcademy/C-Beginner | a4d5a8beb870da910f74da41362b02f0d754ee51 | [
"MIT"
] | null | null | null | Topics/2015_01_18/print_initials.cpp | TelerikAcademy/C-Beginner | a4d5a8beb870da910f74da41362b02f0d754ee51 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main () {
char n, pn, f;
n='E';
pn='B';
f='V';
cout << n << '\t' << pn << '\t' << f << '\t' << "!";
cout << '\a'<<'\a'<<'\a'<<'\n';
return 0;
}
| 15.571429 | 55 | 0.366972 | TelerikAcademy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.