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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd37a87945a4c053deac307cba517e1ab282bc6f | 6,433 | cpp | C++ | test_nn.cpp | NearlyTRex/NonNullablePointer | 333ea06431c5d820830dcd736915421a7212cd42 | [
"Apache-2.0"
] | 353 | 2015-07-09T16:31:12.000Z | 2022-03-12T03:14:44.000Z | test_nn.cpp | NearlyTRex/NonNullablePointer | 333ea06431c5d820830dcd736915421a7212cd42 | [
"Apache-2.0"
] | 7 | 2016-02-09T04:35:14.000Z | 2018-02-12T23:18:44.000Z | test_nn.cpp | NearlyTRex/NonNullablePointer | 333ea06431c5d820830dcd736915421a7212cd42 | [
"Apache-2.0"
] | 34 | 2015-07-18T05:10:00.000Z | 2021-12-10T02:25:45.000Z | /*
* Copyright (c) 2015 Dropbox, Inc.
*
* 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 agre... | 32.489899 | 90 | 0.640759 | NearlyTRex |
dd3db90dd938dbd0775c067b9d78410140cab092 | 207 | cpp | C++ | FariaRomEditor/RomStringTable.cpp | dennisjenkins75/FariaRomEditor | 5050ce9a498ecb4ad5f7ffc76503cce258961cba | [
"MIT"
] | 6 | 2017-08-06T20:02:34.000Z | 2018-10-23T16:21:58.000Z | FariaRomEditor/RomStringTable.cpp | dennisjenkins75/FariaRomEditor | 5050ce9a498ecb4ad5f7ffc76503cce258961cba | [
"MIT"
] | null | null | null | FariaRomEditor/RomStringTable.cpp | dennisjenkins75/FariaRomEditor | 5050ce9a498ecb4ad5f7ffc76503cce258961cba | [
"MIT"
] | null | null | null |
#include "FariaRomEditor.h"
const TCHAR *FariaGetItemName(int iIndex)
{
if ((iIndex < 0) || (iIndex > MAX_LIST_BOX_STR_IDX))
{
return TEXT("");
}
return g_szFariaListboxStrings[iIndex];
} | 17.25 | 54 | 0.661836 | dennisjenkins75 |
dd4b6833882dd9d69b5fe6c928f6a2adaaf98f7e | 6,066 | cpp | C++ | src/Deskew.cpp | sarikoudis/PRLib | d0d67e0874d1f447fe27fc024073115be01862e6 | [
"MIT"
] | 69 | 2019-05-24T14:38:39.000Z | 2022-03-29T22:21:18.000Z | src/Deskew.cpp | sarikoudis/PRLib | d0d67e0874d1f447fe27fc024073115be01862e6 | [
"MIT"
] | null | null | null | src/Deskew.cpp | sarikoudis/PRLib | d0d67e0874d1f447fe27fc024073115be01862e6 | [
"MIT"
] | 15 | 2019-07-27T09:18:03.000Z | 2021-12-23T17:09:35.000Z | /*
MIT License
Copyright (c) 2017 Alexander Zaitsev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... | 25.275 | 103 | 0.602044 | sarikoudis |
dd4ece208c513bdb0cde4a32a0ab0614e344e415 | 9,291 | cpp | C++ | toonz/sources/tnztools/setsaveboxtool.cpp | wofogen/tahoma2d | ce5a89a7b1027b2c1769accb91184a2ee6442b4d | [
"BSD-3-Clause"
] | 115 | 2020-11-24T10:36:13.000Z | 2022-03-10T12:57:58.000Z | toonz/sources/tnztools/setsaveboxtool.cpp | wofogen/tahoma2d | ce5a89a7b1027b2c1769accb91184a2ee6442b4d | [
"BSD-3-Clause"
] | 355 | 2020-11-23T01:06:32.000Z | 2022-03-31T13:46:11.000Z | toonz/sources/tnztools/setsaveboxtool.cpp | wofogen/tahoma2d | ce5a89a7b1027b2c1769accb91184a2ee6442b4d | [
"BSD-3-Clause"
] | 49 | 2020-11-24T02:46:33.000Z | 2022-03-27T13:33:53.000Z |
#include "setsaveboxtool.h"
#include "tgl.h"
#include "tundo.h"
#include "trop.h"
#include "toonz/toonzimageutils.h"
#include "toonz/txshlevelhandle.h"
#include "toonz/txsheethandle.h"
#include "toonz/ttileset.h"
#include "toonz/txshsimplelevel.h"
#include "toonz/preferences.h"
#include "tools/toolutils.h"
#include "... | 33.182143 | 80 | 0.595738 | wofogen |
dd53401ec50b0beeecaed75e27aeecd3fda73bed | 634 | cpp | C++ | 10920 - Spiral Tap.cpp | Rodagui/UVa-Solutions | d4273fc1f2ce843a23bf94d3b3037e66b9d285d1 | [
"MIT"
] | null | null | null | 10920 - Spiral Tap.cpp | Rodagui/UVa-Solutions | d4273fc1f2ce843a23bf94d3b3037e66b9d285d1 | [
"MIT"
] | null | null | null | 10920 - Spiral Tap.cpp | Rodagui/UVa-Solutions | d4273fc1f2ce843a23bf94d3b3037e66b9d285d1 | [
"MIT"
] | 1 | 2020-06-22T03:34:27.000Z | 2020-06-22T03:34:27.000Z | #include <iostream>
using namespace std;
int main(){
long N, k;
long row, col;
long ring, actual;
while(cin>>N>>k and N and k){
row = (N+1)/2;
col = (N+1)/2;
ring=1;
while((ring*ring)<k){
ring+=2;
row++;
col++;
}
actual = ring*ring;
for(int i=0; i<ring-1 and a... | 16.25641 | 64 | 0.484227 | Rodagui |
dd53b0d7a5c6bebeb6925de1729e6dd1f7ecc6a0 | 2,796 | hpp | C++ | public/inc/internal/audio/common/audiobuffer/IasAudioIpcMessageContainer.hpp | ben77irish/AVB-AudioModules | d90c850619c8b5c0068c409738005b348f74f15d | [
"BSD-3-Clause"
] | 8 | 2018-09-07T21:28:54.000Z | 2021-04-17T15:17:27.000Z | public/inc/internal/audio/common/audiobuffer/IasAudioIpcMessageContainer.hpp | ben77irish/AVB-AudioModules | d90c850619c8b5c0068c409738005b348f74f15d | [
"BSD-3-Clause"
] | 1 | 2019-09-16T16:35:58.000Z | 2019-09-16T16:35:58.000Z | public/inc/internal/audio/common/audiobuffer/IasAudioIpcMessageContainer.hpp | ben77irish/AVB-AudioModules | d90c850619c8b5c0068c409738005b348f74f15d | [
"BSD-3-Clause"
] | 8 | 2018-09-07T09:10:53.000Z | 2021-02-17T11:35:19.000Z | /*
* Copyright (C) 2018 Intel Corporation.All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file IasAudioIpcMessageContainer.hpp
* @date Oct 5, 2015
* @version 0.1
* @brief Defines a the IPC Message Container.
* WARNING: Use the IasAudioIpcProtocolHead.hpp and IasAudioIpcProtocolTail.hp... | 23.897436 | 96 | 0.674535 | ben77irish |
dd5ae72ba1d840a0cb8c84fb727f3546e9cf1c18 | 3,163 | cpp | C++ | TOPCODER/TC600-DIV1/600.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | TOPCODER/TC600-DIV1/600.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | TOPCODER/TC600-DIV1/600.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <bitset>
#include <cstring>
#define ALL(x) (x).begin(),x.end()
#define CLEAR(v, x) memset(v, x, sizeof(v))
#define CLEAR0(v) memset(v, 0, sizeof(v))
#define REP(i,n) for(int i = 0; i<n; i++)
#define REPP(i,a,n) for(int i = a; i<n; i+... | 25.304 | 111 | 0.457477 | henviso |
dd5e6c0ce22f05edf51f1cfe957db0498e6cc1e2 | 721 | cpp | C++ | src/nbl/video/alloc/SimpleGPUBufferAllocator.cpp | guard252/Nabla | a775fc91c31e57a1c347fb8df01803869e3260a2 | [
"Apache-2.0"
] | 216 | 2020-08-27T20:04:48.000Z | 2022-03-28T19:31:41.000Z | src/nbl/video/alloc/SimpleGPUBufferAllocator.cpp | guard252/Nabla | a775fc91c31e57a1c347fb8df01803869e3260a2 | [
"Apache-2.0"
] | 165 | 2020-09-17T20:12:30.000Z | 2022-03-30T21:32:18.000Z | src/nbl/video/alloc/SimpleGPUBufferAllocator.cpp | guard252/Nabla | a775fc91c31e57a1c347fb8df01803869e3260a2 | [
"Apache-2.0"
] | 27 | 2020-09-09T16:15:07.000Z | 2022-03-07T22:10:16.000Z | // Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
// This file is part of the "Nabla Engine".
// For conditions of distribution and use, see copyright notice in nabla.h
#include "nbl/video/alloc/SimpleGPUBufferAllocator.h"
#include "IDriver.h"
using namespace nbl;
using namespace video;
SimpleGPUB... | 32.772727 | 112 | 0.751734 | guard252 |
e57cd2b18dae26d4abb1aa9e4bdbf6d2755734b5 | 6,979 | cpp | C++ | solver.cpp | amitRan109/Cpp-Ex3 | 634c5a4a19c8c1a73502e9a6cd0467ef78624518 | [
"MIT"
] | null | null | null | solver.cpp | amitRan109/Cpp-Ex3 | 634c5a4a19c8c1a73502e9a6cd0467ef78624518 | [
"MIT"
] | null | null | null | solver.cpp | amitRan109/Cpp-Ex3 | 634c5a4a19c8c1a73502e9a6cd0467ef78624518 | [
"MIT"
] | 1 | 2021-02-05T11:05:41.000Z | 2021-02-05T11:05:41.000Z | #include "solver.hpp"
#include <iostream>
using namespace std;
namespace solver{
double solve (RealVariable l) {
double r=(-1*l.getA());
if(l.getC()==0){
if(l.getB()==0){
throw runtime_error("incorrect mishvaa");
}
else{
r=r/l.getB()... | 35.070352 | 83 | 0.525863 | amitRan109 |
e57dfd04be50c33d40bc2c91676699c267c755eb | 456 | hpp | C++ | iehl/src/scene/wavefront/load_materials.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | iehl/src/scene/wavefront/load_materials.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | iehl/src/scene/wavefront/load_materials.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | #pragma once
#include "load_albedo_textures.hpp"
#include "load_ao_roughness_metallic_textures.hpp"
#include "load_material_properties.hpp"
inline
void load_materials(
Scene& scene,
const tinyobj::ObjReader& wavefront,
const std::filesystem::path& folder_path)
{
load_albedo_textures(scene, wavefront, ... | 26.823529 | 71 | 0.787281 | the-last-willy |
e57ee50d64c7713508a97d4072a2ee03500ca2e5 | 6,271 | cc | C++ | Archive/Stroika_FINAL_for_STERL_1992/Library/Framework/Sources/Slider.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Framework/Sources/Slider.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Framework/Sources/Slider.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/Slider.cc,v 1.7 1992/09/08 15:34:00 lewis Exp $
*
* Description:
*
* TODO:
*
*
* Changes:
* $Log: Slider.cc,v $
* Revision 1.7 1992/09/08 15:34:00 lewis
* Renamed NULL -> Nil.
*
* Revision 1.6 19... | 23.753788 | 121 | 0.610907 | SophistSolutions |
e57f936f8aae8db2ef67ada6f6dedd51c231b47d | 3,128 | cpp | C++ | cost_map_demos/src/applications/inflations.cpp | teddyluo/cost_map | e672b00ff65ab0b15ce57937cc2447db1483bda0 | [
"BSD-2-Clause"
] | 81 | 2016-12-30T02:34:49.000Z | 2022-03-20T12:57:30.000Z | cost_map_demos/src/applications/inflations.cpp | teddyluo/cost_map | e672b00ff65ab0b15ce57937cc2447db1483bda0 | [
"BSD-2-Clause"
] | 35 | 2016-02-12T05:16:33.000Z | 2019-10-18T18:55:35.000Z | cost_map_demos/src/applications/inflations.cpp | stonier/cost_map | e672b00ff65ab0b15ce57937cc2447db1483bda0 | [
"BSD-2-Clause"
] | 57 | 2016-02-12T01:26:11.000Z | 2022-01-09T03:00:39.000Z | /**
* @file /cost_map_visualisations/src/applications/demo_inflations.cpp
*/
/*****************************************************************************
** Includes
*****************************************************************************/
#include <cost_map_ros/cost_map_ros.hpp>
#include <ecl/console.hpp>
#i... | 41.157895 | 116 | 0.558184 | teddyluo |
e5817c203900ef02b53d34cbfbe2aa89aa3f18dc | 5,920 | cc | C++ | MathUtils/test/statutils.cc | yimuchen/UserUtils | 1a5c55d286f325424f4cfd23f22da63cfa6fb6a9 | [
"MIT"
] | null | null | null | MathUtils/test/statutils.cc | yimuchen/UserUtils | 1a5c55d286f325424f4cfd23f22da63cfa6fb6a9 | [
"MIT"
] | 1 | 2021-12-10T15:04:04.000Z | 2022-01-10T18:56:53.000Z | MathUtils/test/statutils.cc | yimuchen/UserUtils | 1a5c55d286f325424f4cfd23f22da63cfa6fb6a9 | [
"MIT"
] | 1 | 2018-06-05T14:08:08.000Z | 2018-06-05T14:08:08.000Z | /*******************************************************************************
*
* Filename : computing_test.cc
* Description : Unit testing functions for functions defined in Compute.hpp
* Author : Yi-Mu "Enoch" Chen [ ensc@hep1.phys.ntu.edu.tw ]
*
*********************************************************... | 33.072626 | 86 | 0.503378 | yimuchen |
e58287e993d96074ffb8facba888b97cf5027fec | 56 | hpp | C++ | src/boost_icl_type_traits_is_interval_joiner.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_icl_type_traits_is_interval_joiner.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_icl_type_traits_is_interval_joiner.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/icl/type_traits/is_interval_joiner.hpp>
| 28 | 55 | 0.839286 | miathedev |
e582ee91b748151e928def134c83915f76446eec | 1,114 | cpp | C++ | examples/Basics/Math/SineCosine/SineCosine.cpp | RedErr404/cprocessing | ab8ef25ea3e4bcd915f9c086b649696866ea77ca | [
"BSD-2-Clause"
] | 12 | 2015-01-12T07:43:22.000Z | 2022-03-08T06:43:20.000Z | examples/Basics/Math/SineCosine/SineCosine.cpp | RedErr404/cprocessing | ab8ef25ea3e4bcd915f9c086b649696866ea77ca | [
"BSD-2-Clause"
] | null | null | null | examples/Basics/Math/SineCosine/SineCosine.cpp | RedErr404/cprocessing | ab8ef25ea3e4bcd915f9c086b649696866ea77ca | [
"BSD-2-Clause"
] | 7 | 2015-02-09T15:44:10.000Z | 2019-07-07T11:48:10.000Z | #include <cprocessing/cprocessing.hpp>
using namespace cprocessing;
/**
* Sanglene Cosanglene.
*
* Langlenear movement wangleth sanglen() and cos().
* Numbers between 0 and PI*2 (TWO_PI whanglech angles roughly 6.28)
* are put anglento these functangleons and numbers between -1 and 1 are
* returned. These v... | 21.843137 | 75 | 0.637343 | RedErr404 |
e583eb1c55028f711c3b86b813180c04430f0a87 | 18,615 | hpp | C++ | test/unittests/lib/instanciator/instanciator_unittest.hpp | yuhao-kuo/WasmVM | b4dcd4f752f07ba4180dc275d47764c363776301 | [
"BSD-3-Clause"
] | 125 | 2018-10-22T19:00:25.000Z | 2022-03-14T06:33:25.000Z | test/unittests/lib/instanciator/instanciator_unittest.hpp | yuhao-kuo/WasmVM | b4dcd4f752f07ba4180dc275d47764c363776301 | [
"BSD-3-Clause"
] | 80 | 2018-10-18T06:35:07.000Z | 2020-04-20T02:40:22.000Z | test/unittests/lib/instanciator/instanciator_unittest.hpp | yuhao-kuo/WasmVM | b4dcd4f752f07ba4180dc275d47764c363776301 | [
"BSD-3-Clause"
] | 27 | 2018-11-04T12:05:35.000Z | 2021-09-06T05:11:50.000Z | #include <skypat/skypat.h>
#define _Bool bool
extern "C" {
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <Instanciator_.h>
#include <structures/WasmModule.h>
#include <structures/WasmTable.h>
#include <structures/WasmElem.h>
#include <structures/WasmData.h>
#include <dataTypes/Value.h>
#include ... | 34.990602 | 93 | 0.695676 | yuhao-kuo |
e58aada1f3e93b2f0e77f4b8a1b405a13c3094b6 | 1,022 | cpp | C++ | Engine_Core/source/Timer.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | 2 | 2016-04-01T21:10:33.000Z | 2018-02-26T19:36:56.000Z | Engine_Core/source/Timer.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | 1 | 2017-04-05T01:33:08.000Z | 2017-04-05T01:33:08.000Z | Engine_Core/source/Timer.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | null | null | null | #include "timer.h"
bool FTimer::Start()
{
// Check to see if this system supports high performance timers.
QueryPerformanceFrequency((LARGE_INTEGER*)&Frequency);
if(Frequency == 0)
{
return false;
}
// Find out how many times the frequency counter ticks every millisecond.
TicksPerMs = (float)(Frequency / 100... | 20.44 | 89 | 0.746575 | subr3v |
e58e74f8c2e362c19718489784e89f5190e33826 | 3,758 | cpp | C++ | main.cpp | NocteDraco/FractalHistory | 35cea322af85205cc1b64c18ad4923cc1cd6eac5 | [
"MIT"
] | null | null | null | main.cpp | NocteDraco/FractalHistory | 35cea322af85205cc1b64c18ad4923cc1cd6eac5 | [
"MIT"
] | null | null | null | main.cpp | NocteDraco/FractalHistory | 35cea322af85205cc1b64c18ad4923cc1cd6eac5 | [
"MIT"
] | null | null | null | // Create a grid
// Create an actor
// Place actor on the grid
// Have actor move to new location on the grid
// Print resulting location of the actor on the grid
// Do not let actor exit grid
#include <algorithm>
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <random>
#include <map>
#include... | 31.057851 | 137 | 0.576903 | NocteDraco |
e591d3df3181c90400f0fba64ddd5891a8b3f5b0 | 10,167 | cpp | C++ | src/esp8266_ble.cpp | fpisani/LibMiletusCOISA | 92bf8ad9ecc1384207c790cf6f6093b254fe0a62 | [
"MIT"
] | 1 | 2021-04-15T15:59:16.000Z | 2021-04-15T15:59:16.000Z | src/esp8266_ble.cpp | fpisani/LibMiletusCOISA | 92bf8ad9ecc1384207c790cf6f6093b254fe0a62 | [
"MIT"
] | null | null | null | src/esp8266_ble.cpp | fpisani/LibMiletusCOISA | 92bf8ad9ecc1384207c790cf6f6093b254fe0a62 | [
"MIT"
] | null | null | null | /*************************************************************************
The MIT License (MIT)
Copyright (c) 2016 Jeferson Rech Brunetta -- ra161253@students.ic.unicamp.br
Copyright (c) 2016 Edson Borin -- edson@ic.unicamp.br
Copyright (c) 2016 João Batista C. G. Moreira -- joao.moreira@lsc.ic.unicamp.br
Permission ... | 30.44012 | 108 | 0.653782 | fpisani |
e596925519f924090c2dedf6bd69396e0621206e | 16,249 | hpp | C++ | Nacro/SDK/FN_TODM_A_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_TODM_A_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_TODM_A_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass TODM_A.TODM_A_C
// 0x01D... | 125.96124 | 209 | 0.55708 | Milxnor |
e59a901064f14b6cbbbbac74b9dfbbc2671f7e2c | 12,838 | inl | C++ | nTA/Source/app_FileTree.inl | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | 2 | 2020-05-09T20:50:12.000Z | 2021-06-20T08:34:58.000Z | nTA/Source/app_FileTree.inl | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | null | null | null | nTA/Source/app_FileTree.inl | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | 2 | 2018-01-08T00:12:04.000Z | 2020-06-14T10:56:50.000Z | // app_FileTree.inl // \author Logan Jones
////////////////////// \date 9/15/2001
/// \file
/// \brief ...
/////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
// ... | 30.639618 | 111 | 0.482941 | loganjones |
e59bc4f470bace9dd051af58747ff5f83a8a974d | 306 | hh | C++ | Cassie_Example/opt_two_step/periodic/c_code/include/frost/gen/J_y_time_LeftStance.hh | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Cassie_Example/opt_two_step/periodic/c_code/include/frost/gen/J_y_time_LeftStance.hh | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Cassie_Example/opt_two_step/periodic/c_code/include/frost/gen/J_y_time_LeftStance.hh | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | /*
* Automatically Generated from Mathematica.
* Fri 5 Nov 2021 09:03:12 GMT-04:00
*/
#ifndef J_Y_TIME_LEFTSTANCE_HH
#define J_Y_TIME_LEFTSTANCE_HH
namespace frost {
namespace gen {
void J_y_time_LeftStance(double *p_output1, const double *var1);
}
}
#endif // J_Y_TIME_LEFTSTANCE_HH
| 19.125 | 72 | 0.728758 | prem-chand |
e5a16b36056727ceec3593968f1baff7766a2097 | 2,653 | inl | C++ | Source/Core/Debug/Assert.inl | aiekick/VulkanRTSEngine | b02c0d0fa1530dc920fde2a9928bd540cfdd31e6 | [
"Apache-2.0"
] | 1 | 2021-05-11T07:52:05.000Z | 2021-05-11T07:52:05.000Z | Source/Core/Debug/Assert.inl | aiekick/VulkanRTSEngine | b02c0d0fa1530dc920fde2a9928bd540cfdd31e6 | [
"Apache-2.0"
] | null | null | null | Source/Core/Debug/Assert.inl | aiekick/VulkanRTSEngine | b02c0d0fa1530dc920fde2a9928bd540cfdd31e6 | [
"Apache-2.0"
] | null | null | null | #include <unordered_set>
#include <cstdarg>
#include <iostream>
#include <tbb/mutex.h>
namespace DebugImpl
{
static tbb::mutex assertMutex;
static std::unordered_set<uint32_t> ignoreSet;
// Controls whether a single lock should control entire
// AssertNotify section, or should it be split into 2 parts -
// the hash... | 29.477778 | 123 | 0.719186 | aiekick |
e5a58651f0d7c07a1ba76d57548fe5dc5bffe0c5 | 856 | cpp | C++ | Generate Password/passwordGenerator.cpp | sinamoghimi73/LazyCpp | 429b3481856c3be0a37dbcb3b3c05d3f71310e2f | [
"MIT"
] | 1 | 2021-07-11T18:30:03.000Z | 2021-07-11T18:30:03.000Z | Generate Password/passwordGenerator.cpp | sinamoghimi73/LazyCpp | 429b3481856c3be0a37dbcb3b3c05d3f71310e2f | [
"MIT"
] | null | null | null | Generate Password/passwordGenerator.cpp | sinamoghimi73/LazyCpp | 429b3481856c3be0a37dbcb3b3c05d3f71310e2f | [
"MIT"
] | null | null | null | //
// passwordGenerator.cpp
// S1N4M
//
#include "passwordGenerator.hpp"
passwordGenerator::passwordGenerator(size_t size)
: _size{size}, _capitalLetters{"ABCDEFGHIJKLMNOPQRSTUVWXYZ"},
_smallLetters{"abcdefghijklmnopqrstuvwxyz"}, _numbers{"0123456789"},
_symbols{"!@#$%^&*\[]/\'\"{}()?|-_+<>~"},
... | 34.24 | 88 | 0.672897 | sinamoghimi73 |
e5a8d792c6d753113114dd33ee6f5ded6f66367e | 7,646 | cpp | C++ | JammaLib/src/gui/GuiSlider.cpp | malisimo/Jamma | 69831e79a64e652e82aa41f8141e082c3899896b | [
"MIT"
] | null | null | null | JammaLib/src/gui/GuiSlider.cpp | malisimo/Jamma | 69831e79a64e652e82aa41f8141e082c3899896b | [
"MIT"
] | null | null | null | JammaLib/src/gui/GuiSlider.cpp | malisimo/Jamma | 69831e79a64e652e82aa41f8141e082c3899896b | [
"MIT"
] | null | null | null | #include "GuiSlider.h"
#include "CommonTypes.h"
#include "glm/ext.hpp"
using namespace gui;
using namespace utils;
using namespace base;
using namespace actions;
using graphics::GlDrawContext;
using resources::ResourceLib;
GuiSlider::GuiSlider(GuiSliderParams params) :
GuiElement(params),
_sliderParams(params),
_i... | 23.745342 | 138 | 0.722992 | malisimo |
e5aafca655fc7f0822b50cb174b9918b597509a2 | 5,656 | cpp | C++ | KBase/Internal/KIniFile.cpp | King19931229/KApp | f7f855b209348f835de9e5f57844d4fb6491b0a1 | [
"MIT"
] | 13 | 2019-10-19T17:41:19.000Z | 2021-11-04T18:50:03.000Z | KBase/Internal/KIniFile.cpp | King19931229/KApp | f7f855b209348f835de9e5f57844d4fb6491b0a1 | [
"MIT"
] | 3 | 2019-12-09T06:22:43.000Z | 2020-05-28T09:33:44.000Z | KBase/Internal/KIniFile.cpp | King19931229/KApp | f7f855b209348f835de9e5f57844d4fb6491b0a1 | [
"MIT"
] | null | null | null | #include "Internal/KIniFile.h"
#include <sstream>
EXPORT_DLL IKIniFilePtr GetIniFile()
{
return IKIniFilePtr(KNEW KIniFile());
}
void KIniFile::Clear()
{
m_Section_KVTable.clear();
}
bool KIniFile::Parse(IKDataStreamPtr pData)
{
char szBuffer[256] = {0};
char* pEqualPos = nullptr;
std::string line;
std::strin... | 23.665272 | 104 | 0.687235 | King19931229 |
e5b7df886f9aaf7065b71b9294e015831fa5f6da | 1,709 | cpp | C++ | src/tasks/ConnectionTask.cpp | zsoltmazlo/indoor-controller1 | 1443e999dc6c18b06e969c83644762384b6576ec | [
"MIT"
] | null | null | null | src/tasks/ConnectionTask.cpp | zsoltmazlo/indoor-controller1 | 1443e999dc6c18b06e969c83644762384b6576ec | [
"MIT"
] | null | null | null | src/tasks/ConnectionTask.cpp | zsoltmazlo/indoor-controller1 | 1443e999dc6c18b06e969c83644762384b6576ec | [
"MIT"
] | null | null | null | #include "Configuration.h"
#include "tasks.h"
#include "debug.h"
void tasks::Connection::operator()(void* args) {
debug::printf("CONN | Task started.\n");
// Wifi persistancy needs to be disabled as restarting device can cause a problem
// with reconnection
WiFi.persistent(false);
WiFi.mode(WIFI_O... | 32.245283 | 119 | 0.598011 | zsoltmazlo |
e5bd8bbf0c947ee45119d9a1ce8b64a5cd0dfcb1 | 1,343 | cpp | C++ | CtCi/VII/trees-graphs/main.cpp | pranjal-s/cpp17 | 04b5278ff4d754d6e62f955d49bddf6509f86e73 | [
"MIT"
] | null | null | null | CtCi/VII/trees-graphs/main.cpp | pranjal-s/cpp17 | 04b5278ff4d754d6e62f955d49bddf6509f86e73 | [
"MIT"
] | null | null | null | CtCi/VII/trees-graphs/main.cpp | pranjal-s/cpp17 | 04b5278ff4d754d6e62f955d49bddf6509f86e73 | [
"MIT"
] | null | null | null | /* ----------------------------------------------------------------------
Cracking the Coding interview (6th Edition) by G. L. McDowell
VII: Trees and Graphs.
Coding Ref: http://www-h.eng.cam.ac.uk/help/tpl/talks/C++graphs.html
------------------------------------------------------------------------- */
/*
If... | 30.522727 | 77 | 0.647059 | pranjal-s |
e5bf4603d53b181832b8ef11dd6df4311e4019e0 | 19,010 | cpp | C++ | game/other/AudioThread.cpp | ElliottSlingsby/EntityXGame | fb07097e733c9322d0188d2e57ce319c7cc700d4 | [
"MIT"
] | 1 | 2020-09-14T06:02:30.000Z | 2020-09-14T06:02:30.000Z | game/other/AudioThread.cpp | eslingsby/EntityXGame | fb07097e733c9322d0188d2e57ce319c7cc700d4 | [
"MIT"
] | null | null | null | game/other/AudioThread.cpp | eslingsby/EntityXGame | fb07097e733c9322d0188d2e57ce319c7cc700d4 | [
"MIT"
] | null | null | null | #include "other\AudioThread.hpp"
#include <phonon.h>
#include <soundio\soundio.h>
#include <iostream>
const IPLAudioFormat phononMono{ IPL_CHANNELLAYOUTTYPE_SPEAKERS, IPL_CHANNELLAYOUT_MONO, 0, 0, 0, (IPLAmbisonicsOrdering)0, (IPLAmbisonicsNormalization)0, IPL_CHANNELORDER_INTERLEAVED };
const IPLAudioFormat phonon... | 37.495069 | 207 | 0.773172 | ElliottSlingsby |
e5bfa07c84dbe6f6c0ccbfe9693288a73ccc7cc8 | 814 | cxx | C++ | examples/old/fileio.cxx | GenericUserbame/cx | a9d97d6a441d109ef4d5a0afcbd98b90cac4cb94 | [
"MIT"
] | 2 | 2016-08-22T11:19:49.000Z | 2017-09-06T16:17:52.000Z | examples/old/fileio.cxx | GenericUserbame/cx | a9d97d6a441d109ef4d5a0afcbd98b90cac4cb94 | [
"MIT"
] | 71 | 2015-07-25T00:21:36.000Z | 2016-01-24T08:14:45.000Z | examples/old/fileio.cxx | GenericUserbame/cx | a9d97d6a441d109ef4d5a0afcbd98b90cac4cb94 | [
"MIT"
] | null | null | null | #include io
int main () {
io::file myfile;
char *buffer = "test - I will write this test to a text file then read it back";
char *filename = "textfile.txt";
io::puts(buffer + ": I will now attempt to r/w to " + filename);
if(!myfile.open(filename, "w"))
io::perror("error opening file: " + filename);
else {... | 19.853659 | 81 | 0.619165 | GenericUserbame |
e5c23fb319f4b279ead3aeac583869200c741463 | 933 | cpp | C++ | code/session-09/minh.cpp | ebasconp/cpp-overview | ab5a3bb10e088a782ee03849283043034aded792 | [
"BSD-3-Clause"
] | null | null | null | code/session-09/minh.cpp | ebasconp/cpp-overview | ab5a3bb10e088a782ee03849283043034aded792 | [
"BSD-3-Clause"
] | null | null | null | code/session-09/minh.cpp | ebasconp/cpp-overview | ab5a3bb10e088a782ee03849283043034aded792 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
class Movedor
{
int x = 0; // starting C++11
int y = 0;
public:
void mover(int deltax, int deltay)
{
this->x += deltax;
this->y += deltay;
}
void mostrar_posicion() const
{
std::cout << "Posición: (" << x << "; " << y << ")\n";
}
};
class Volador
{
int h;
public:
void volar(i... | 12.780822 | 56 | 0.566988 | ebasconp |
e5c4bac22b9b539c2ba83841c71806042794506d | 1,854 | hpp | C++ | include/tmxpp/Image_collection.hpp | johelegp/tmxpp | efbd52e575fb8cd8fcfebd274b379f11fc036637 | [
"Unlicense"
] | null | null | null | include/tmxpp/Image_collection.hpp | johelegp/tmxpp | efbd52e575fb8cd8fcfebd274b379f11fc036637 | [
"Unlicense"
] | null | null | null | include/tmxpp/Image_collection.hpp | johelegp/tmxpp | efbd52e575fb8cd8fcfebd274b379f11fc036637 | [
"Unlicense"
] | 1 | 2018-03-12T02:32:46.000Z | 2018-03-12T02:32:46.000Z | #ifndef TMXPP_IMAGE_COLLECTION_HPP
#define TMXPP_IMAGE_COLLECTION_HPP
#include <optional>
#include <string>
#include <vector>
#include <tmxpp/Animation.hpp>
#include <tmxpp/Constrained.hpp>
#include <tmxpp/File.hpp>
#include <tmxpp/Image.hpp>
#include <tmxpp/Object_layer.hpp>
#include <tmxpp/Offset.hpp>
#include <tmxp... | 26.485714 | 80 | 0.676375 | johelegp |
e5c6b91cb7564706a5c747440d7904914a2e18f4 | 1,592 | cpp | C++ | src/classic_enumerator.cpp | dcnoway/sudoku | 9e41691f9f3d69d183b6e2c752ba898288748cd9 | [
"MIT"
] | null | null | null | src/classic_enumerator.cpp | dcnoway/sudoku | 9e41691f9f3d69d183b6e2c752ba898288748cd9 | [
"MIT"
] | null | null | null | src/classic_enumerator.cpp | dcnoway/sudoku | 9e41691f9f3d69d183b6e2c752ba898288748cd9 | [
"MIT"
] | null | null | null | /**
* @file classic_enumerator.cpp
* @author your name (you@domain.com)
* @brief
* @version 0.1
* @date 2020-08-04
*
* @copyright Copyright (c) 2020
*
*/
#include "classic_enumerator.hpp"
using namespace std;
namespace wills::sudoku
{
void classic_enumerator::attach(const std::shared_ptr<classic_board... | 30.037736 | 137 | 0.638819 | dcnoway |
e5cbb8f5a664120e67b63dbf5941557c9e80dba6 | 2,220 | hpp | C++ | asps/modbus/pdu/semantic/data_model.hpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | asps/modbus/pdu/semantic/data_model.hpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | asps/modbus/pdu/semantic/data_model.hpp | activesys/asps | 36cc90a192d13df8669f9743f80a0662fe888d16 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 The asps Authors. All rights reserved.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// Modbus data model.
#ifndef ASPS_PDU_SEMANTIC_DATA_MODEL_HPP
#define ASPS_PDU_SEMANTIC_DATA_MODEL_HPP
#inc... | 20.555556 | 77 | 0.714414 | activesys |
e5d0f5674e8593d6594df0843f8b9316c8167048 | 1,381 | cpp | C++ | modules/LZ-tools/shrink_ints.cpp | NGSeq/DHPGIndex | 5864b85c9912ddbd6c4ee91898af4b31e4df5e55 | [
"Apache-2.0"
] | 1 | 2021-11-11T10:59:12.000Z | 2021-11-11T10:59:12.000Z | modules/LZ-tools/shrink_ints.cpp | NGSeq/DHPGIndex | 5864b85c9912ddbd6c4ee91898af4b31e4df5e55 | [
"Apache-2.0"
] | null | null | null | modules/LZ-tools/shrink_ints.cpp | NGSeq/DHPGIndex | 5864b85c9912ddbd6c4ee91898af4b31e4df5e55 | [
"Apache-2.0"
] | 1 | 2021-11-11T11:00:33.000Z | 2021-11-11T11:00:33.000Z | #include <cstdio>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <stdint.h>
//#include <stdio>
#include "stream.h"
#include "utils.h"
using std::cerr;
using std::endl;
int main(int argc, char **argv) {
if (argc != 3) {
fprintf(stderr, "%s <infile> <outfile> \n\n"
"shrink_ints will e... | 27.078431 | 103 | 0.640116 | NGSeq |
e5d9c9560e04636814a766884bc420951c83b2b8 | 3,639 | cpp | C++ | _deprecated/number/str-mod.cpp | hareku/cpp-algorithm | 455339645d5797f0e6b211694345e1a221fc131c | [
"Apache-2.0"
] | null | null | null | _deprecated/number/str-mod.cpp | hareku/cpp-algorithm | 455339645d5797f0e6b211694345e1a221fc131c | [
"Apache-2.0"
] | null | null | null | _deprecated/number/str-mod.cpp | hareku/cpp-algorithm | 455339645d5797f0e6b211694345e1a221fc131c | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
template <typename A, typename B>
string to_string(pair<A, B> p);
template <typename A, typename B, typename C>
string to_string(tuple<A, B, C> p);
template <typename A, typename B, typename C, typename D>
string to_string(tuple<A, B, C, D> p);
string to_string(const st... | 26.369565 | 134 | 0.547678 | hareku |
e5dff7951f80388f2e6bce8f6a677536c1a1994c | 1,500 | cpp | C++ | shared_model/backend/protobuf/query_responses/impl/proto_role_permissions_response.cpp | 132/iroha | 66e1a490dc8917530020c53d162c573571deafd3 | [
"Apache-2.0"
] | null | null | null | shared_model/backend/protobuf/query_responses/impl/proto_role_permissions_response.cpp | 132/iroha | 66e1a490dc8917530020c53d162c573571deafd3 | [
"Apache-2.0"
] | 8 | 2017-12-25T05:25:58.000Z | 2018-01-20T10:12:45.000Z | shared_model/backend/protobuf/query_responses/impl/proto_role_permissions_response.cpp | 132/iroha | 66e1a490dc8917530020c53d162c573571deafd3 | [
"Apache-2.0"
] | 1 | 2018-01-18T18:23:09.000Z | 2018-01-18T18:23:09.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "backend/protobuf/query_responses/proto_role_permissions_response.hpp"
#include <boost/range/numeric.hpp>
#include "backend/protobuf/permissions.hpp"
#include "utils/string_builder.hpp"
namespace shared_mode... | 34.883721 | 79 | 0.651333 | 132 |
e5e1ffb15213a583a479d69dc5bb2c7413435468 | 4,844 | cpp | C++ | solved/0-b/assassins-creed-ii/creed.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/0-b/assassins-creed-ii/creed.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/0-b/assassins-creed-ii/creed.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
#include <cstring>
#define MAXN 1000
#define MAXM 10000
#define INF 0x3f3f3f3f
#define Clr(m) memset(m, 0, sizeof(m))
#define Neg(m) memset(m, -1, sizeof(m))
typedef unsigned int u32;
struct Reader {
int b; Reader() { read(); }
void read() { b = getchar_unlocked(); }
void skip() { while (0 <... | 19.146245 | 75 | 0.518373 | abuasifkhan |
e5e727cf950cfa31bb86c2e95eb7734ae1523ea2 | 347 | cpp | C++ | pattern1.cpp | jsjose/katas-Cpp | 799c3ab1ef91969c2cc5aa83f93b372fe2177dd8 | [
"Apache-2.0"
] | 1 | 2021-03-18T21:34:50.000Z | 2021-03-18T21:34:50.000Z | pattern1.cpp | jsjose/katas-Cpp | 799c3ab1ef91969c2cc5aa83f93b372fe2177dd8 | [
"Apache-2.0"
] | null | null | null | pattern1.cpp | jsjose/katas-Cpp | 799c3ab1ef91969c2cc5aa83f93b372fe2177dd8 | [
"Apache-2.0"
] | null | null | null | #include <sstream>
#include <string>
#include <iostream>
using namespace std;
//string header file and namespace are already included for you
string pattern(int n){
ostringstream solPattern;
int i, j;
for (i = 1; i <= n; i++)
{
for (j = 1; j<= i; j++) solPattern << i;
solPattern << endl;
}
... | 18.263158 | 63 | 0.622478 | jsjose |
e5f06cd238dcb3837a5f08a908524ae30ecdd68b | 5,057 | cpp | C++ | DirectX12-FrameWork/DynamicUploadBuffer.cpp | CHCTW/DirectX12-Framework- | b9e590555660c40cb19c3ef292c097c78d49a158 | [
"MIT"
] | 43 | 2018-01-03T02:03:01.000Z | 2021-12-26T10:40:15.000Z | DirectX12-FrameWork/DynamicUploadBuffer.cpp | CHCTW/DirectX12-Framework- | b9e590555660c40cb19c3ef292c097c78d49a158 | [
"MIT"
] | 9 | 2017-09-12T09:57:39.000Z | 2020-06-22T07:32:22.000Z | DirectX12-FrameWork/DynamicUploadBuffer.cpp | CHCTW/DirectX12-Framework- | b9e590555660c40cb19c3ef292c097c78d49a158 | [
"MIT"
] | 8 | 2018-01-03T02:02:33.000Z | 2022-02-12T21:23:44.000Z | #include "DynamicUploadBuffer.h"
#include "stdafx.h"
#include "StructureHeaders.h"
void RingBuffer::initialize(UINT64 s, ID3D12Device* device)
{
size = s;
unusedsize = s;
// cpubuffer = new char[size];
records.clear();
device->CreateCommittedResource(
&CD3DX12_HEAP_PROPERTIES(D3D12_HEAP_TYPE_UPLOAD),
D3D12_HEAP... | 26.202073 | 161 | 0.693494 | CHCTW |
e5f3a915412016df3cc24fe1f8b541dae9b87e73 | 4,002 | hpp | C++ | mavis/DualKeyRegistry.hpp | sparcians/mavis | 51f246343c029defb1eb2bbf725023d3b0607a88 | [
"MIT"
] | null | null | null | mavis/DualKeyRegistry.hpp | sparcians/mavis | 51f246343c029defb1eb2bbf725023d3b0607a88 | [
"MIT"
] | null | null | null | mavis/DualKeyRegistry.hpp | sparcians/mavis | 51f246343c029defb1eb2bbf725023d3b0607a88 | [
"MIT"
] | 1 | 2021-12-06T14:50:30.000Z | 2021-12-06T14:50:30.000Z | #pragma once
#include "DecoderTypes.h"
#include "DecoderExceptions.h"
#include <map>
namespace mavis {
template<typename T>
class DualKeyRegistry
{
private:
static constexpr uint32_t INITIAL_SIZE = 1000;
static constexpr uint32_t INITIAL_CAP = 2 * INITIAL_SIZE;
static constexpr uint32_t DEFAULT_UP_SIZ... | 23.821429 | 98 | 0.5 | sparcians |
e5f972da3d2c6a087106ecb9f20ce369c42e7a01 | 14,109 | cpp | C++ | project/src/assets/CancelButtonDown.cpp | Muller-Castro/Minesweeper | e4c3fb48e7181aff9637dc77cb829d16d293afdb | [
"Zlib",
"MIT"
] | 5 | 2021-06-01T04:29:06.000Z | 2022-01-03T22:48:46.000Z | project/src/assets/CancelButtonDown.cpp | Muller-Castro/Minesweeper | e4c3fb48e7181aff9637dc77cb829d16d293afdb | [
"Zlib",
"MIT"
] | null | null | null | project/src/assets/CancelButtonDown.cpp | Muller-Castro/Minesweeper | e4c3fb48e7181aff9637dc77cb829d16d293afdb | [
"Zlib",
"MIT"
] | null | null | null | /****************************************************************************************/
/* CancelButtonDown.cpp */
/****************************************************************************************/
/* Copyright (c) 2020-2021 Muller Castro. ... | 361.769231 | 4,333 | 0.70409 | Muller-Castro |
e5fe128848e06aea4c78280b304975b17ffb8b20 | 1,566 | hpp | C++ | coconut-pulp-renderer/src/main/c++/coconut/pulp/renderer/PassContext.hpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | 1 | 2017-05-02T12:01:54.000Z | 2017-05-02T12:01:54.000Z | coconut-pulp-renderer/src/main/c++/coconut/pulp/renderer/PassContext.hpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | null | null | null | coconut-pulp-renderer/src/main/c++/coconut/pulp/renderer/PassContext.hpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | null | null | null | #ifndef _COCONUT_PULP_RENDERER_PASSCONTEXT_HPP_
#define _COCONUT_PULP_RENDERER_PASSCONTEXT_HPP_
#include <string>
#include <vector>
#include "coconut/milk/graphics/Renderer.hpp"
#include "coconut/milk/graphics/Texture2d.hpp"
#include "coconut/milk/graphics/Viewport.hpp"
#include "coconut/pulp/mesh/MaterialConfigurat... | 22.056338 | 117 | 0.750958 | mikosz |
e5ff1105c444c10f19f8f69c66c7ba8b8167487e | 1,192 | hpp | C++ | include/utils/ProgramOptions.hpp | DarkWingMcQuack/GridGraphPathFinder | d8f9a237f17516141bf58c8c86d468f3559af5e3 | [
"Apache-2.0"
] | null | null | null | include/utils/ProgramOptions.hpp | DarkWingMcQuack/GridGraphPathFinder | d8f9a237f17516141bf58c8c86d468f3559af5e3 | [
"Apache-2.0"
] | null | null | null | include/utils/ProgramOptions.hpp | DarkWingMcQuack/GridGraphPathFinder | d8f9a237f17516141bf58c8c86d468f3559af5e3 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <graph/NeigbourCalculator.hpp>
#include <iostream>
#include <optional>
#include <string>
#include <string_view>
namespace utils {
enum class NeigbourMetric {
MANHATTAN,
ALL_SURROUNDING
};
enum class RunningMode {
SELECTION,
SEPARATION
};
constexpr static inline auto PRETTY_PRI... | 20.912281 | 80 | 0.682886 | DarkWingMcQuack |
f9138e9b49da3719ddb54e73dcdc5ca8e5f07573 | 624 | cpp | C++ | plugin_III/game_III/CObjectData.cpp | Aleksandr-Belousov/plugin-sdk | 5ca5f7d5575ae4138a4f165410a1acf0ae922260 | [
"Zlib"
] | 3 | 2020-01-25T18:54:05.000Z | 2022-03-23T09:27:09.000Z | plugin_III/game_III/CObjectData.cpp | Kewun0/plugin-sdk-master | 561188779aaa4946ba4ab8ac3e044f2044261e4b | [
"Zlib"
] | null | null | null | plugin_III/game_III/CObjectData.cpp | Kewun0/plugin-sdk-master | 561188779aaa4946ba4ab8ac3e044f2044261e4b | [
"Zlib"
] | 3 | 2020-10-03T21:34:05.000Z | 2020-12-19T01:52:38.000Z | /*
Plugin-SDK (Grand Theft Auto) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CObjectData.h"
// Converted from cdecl void CObjectData::Initialise(char *filename) 0x4BC0E0
void CObjectData::In... | 34.666667 | 96 | 0.74359 | Aleksandr-Belousov |
f914245e867baad95f887fe92f07c0abe0db7235 | 1,627 | cpp | C++ | src/tree/balanced_tree/maintained_fhq_treap_with_pushdown.cpp | houzaj/ACM-CheatSheet | d35695acedc9744486257109ce4ec1fd65fcc6f4 | [
"MIT"
] | 1 | 2020-05-21T01:29:20.000Z | 2020-05-21T01:29:20.000Z | src/tree/balanced_tree/maintained_fhq_treap_with_pushdown.cpp | houzaj/ACM-CheatSheet | d35695acedc9744486257109ce4ec1fd65fcc6f4 | [
"MIT"
] | null | null | null | src/tree/balanced_tree/maintained_fhq_treap_with_pushdown.cpp | houzaj/ACM-CheatSheet | d35695acedc9744486257109ce4ec1fd65fcc6f4 | [
"MIT"
] | null | null | null | int ch[N << 7][2], w[N << 7], pri[N << 7], sz[N << 7], f[N << 7];
ll sum[N << 7];
int root[N];
int tot;
inline int mrand() {
static int seed = 123456;
return seed = (1LL * seed * 2333 + 1234567891) % 998244353;
}
inline int newNode(int v) {
int x = ++tot;
pri[x] = mrand();
sz[x] = 1;
sum[x] = ... | 19.60241 | 65 | 0.405655 | houzaj |
f915b5f92cc4192721498c03bd1e1710f7dfa90b | 474 | hpp | C++ | src/blackhole/repository/config/formatter.hpp | bioothod/blackhole | 2bd242e6027f20019e60b600f50a9e25127db640 | [
"MIT"
] | 1 | 2015-01-12T05:23:28.000Z | 2015-01-12T05:23:28.000Z | src/blackhole/repository/config/formatter.hpp | tomzhang/blackhole | 4f9b7dec11b9a617b51f188bb792a1514b0bb763 | [
"MIT"
] | null | null | null | src/blackhole/repository/config/formatter.hpp | tomzhang/blackhole | 4f9b7dec11b9a617b51f188bb792a1514b0bb763 | [
"MIT"
] | null | null | null | #pragma once
#include "blackhole/formatter/map/value.hpp"
#include "blackhole/repository/config/base.hpp"
namespace blackhole {
class formatter_config_t : public repository::config::base_t {
public:
mapping::value_t mapper;
formatter_config_t(const std::string& type) :
base_t(type)
{}
forma... | 20.608696 | 81 | 0.689873 | bioothod |
f91bb8d5b1a4d714a29c1521866255b4c2c14857 | 377 | cpp | C++ | 2-AD-HOC/09/1893.cpp | pedrospaulo/01-C- | d513a2fd87a82d90780aa69782d1a1b73b53d6c1 | [
"MIT"
] | null | null | null | 2-AD-HOC/09/1893.cpp | pedrospaulo/01-C- | d513a2fd87a82d90780aa69782d1a1b73b53d6c1 | [
"MIT"
] | null | null | null | 2-AD-HOC/09/1893.cpp | pedrospaulo/01-C- | d513a2fd87a82d90780aa69782d1a1b73b53d6c1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int v1, v2;
cin >> v1 >> v2;
if(0 <= v2 && v2 <= 2){
cout << "nova" <<endl;
}else if(97 <= v2 && v2 <= 100){
cout << "cheia" <<endl;
}else if(3 <= v2 && v2 <= 96 && v2 < v1){
cout << "minguante" <<endl;
}else if(3 <= v2 && v2 <= 97 && v2 ... | 17.136364 | 43 | 0.466844 | pedrospaulo |
f91ecd5c6ffdbfd2dcc7a215a8978ee4b3f8f2e7 | 3,789 | cpp | C++ | src/game/impact.cpp | nadult/FreeFT | f0f63951632d06dd4f6d24ca76b03f38b995cd78 | [
"Unlicense"
] | 118 | 2015-01-26T12:49:58.000Z | 2022-03-19T00:02:01.000Z | src/game/impact.cpp | nadult/FreeFT | f0f63951632d06dd4f6d24ca76b03f38b995cd78 | [
"Unlicense"
] | 6 | 2015-03-29T14:59:40.000Z | 2020-08-14T22:04:48.000Z | src/game/impact.cpp | nadult/FreeFT | f0f63951632d06dd4f6d24ca76b03f38b995cd78 | [
"Unlicense"
] | 14 | 2015-01-18T13:55:13.000Z | 2021-11-30T06:56:58.000Z | // Copyright (C) Krzysztof Jakubowski <nadult@fastmail.fm>
// This file is part of FreeFT. See license.txt for details.
#include "game/impact.h"
namespace game {
ImpactProto::ImpactProto(const TupleParser &parser) :ProtoImpl(parser) {
damage = parser.get<float>("damage");
damage_type = fromString<DamageType>(pa... | 32.110169 | 132 | 0.667986 | nadult |
f920ada6494ebb7709cb2f2fe63c3d075cd5d20b | 4,448 | hpp | C++ | Code_App_Delphi/AdMdmCfg.hpp | asieldev/FuzzyLogic_Project | dc76f5ed2f8d956c7e283fa012afeb959a9df6d4 | [
"MIT"
] | null | null | null | Code_App_Delphi/AdMdmCfg.hpp | asieldev/FuzzyLogic_Project | dc76f5ed2f8d956c7e283fa012afeb959a9df6d4 | [
"MIT"
] | null | null | null | Code_App_Delphi/AdMdmCfg.hpp | asieldev/FuzzyLogic_Project | dc76f5ed2f8d956c7e283fa012afeb959a9df6d4 | [
"MIT"
] | null | null | null | // CodeGear C++Builder
// Copyright (c) 1995, 2016 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'AdMdmCfg.pas' rev: 32.00 (Windows)
#ifndef AdmdmcfgHPP
#define AdmdmcfgHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings of... | 36.760331 | 163 | 0.720549 | asieldev |
234d1667d5ba8a685bfd94c8324a4ac0339926d0 | 4,490 | cpp | C++ | app/src/gui/widgets/connection_settings.cpp | mathisloge/gps-tester | e3c3699f33857dbb051eb96da35c023d9471ce1f | [
"MIT"
] | null | null | null | app/src/gui/widgets/connection_settings.cpp | mathisloge/gps-tester | e3c3699f33857dbb051eb96da35c023d9471ce1f | [
"MIT"
] | null | null | null | app/src/gui/widgets/connection_settings.cpp | mathisloge/gps-tester | e3c3699f33857dbb051eb96da35c023d9471ce1f | [
"MIT"
] | null | null | null | #include <array>
#include <string_view>
#include <imgui.h>
#include "connection_settings.hpp"
#include "inputs.hpp"
namespace gui
{
void drawSerialOptions(connection::SerialOptions &opts)
{
static constexpr std::array<std::string_view, 3> kNamesParity{"none", "odd", "even"};
static constexpr st... | 40.089286 | 160 | 0.552116 | mathisloge |
235574412de1a70e2be9f1f7b43341eb211dbd4f | 2,873 | hh | C++ | src/IndexedPathProvider.hh | YuryBandarchuk16/hh-apidoc | 996f8a606193fb111929d9e1b48ae772b0d1b12b | [
"MIT"
] | null | null | null | src/IndexedPathProvider.hh | YuryBandarchuk16/hh-apidoc | 996f8a606193fb111929d9e1b48ae772b0d1b12b | [
"MIT"
] | null | null | null | src/IndexedPathProvider.hh | YuryBandarchuk16/hh-apidoc | 996f8a606193fb111929d9e1b48ae772b0d1b12b | [
"MIT"
] | null | null | null | <?hh // strict
/*
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
namespace Facebook\HHAPIDoc;
use namespace HH\Lib\C;
/** A path provider that wraps anoth... | 27.103774 | 80 | 0.65228 | YuryBandarchuk16 |
2357ff22d2c730efeb7e31ce84359da18de1bcff | 11,106 | cpp | C++ | src/vkex/Texture.cpp | apazylbe/PorQue4K | 209ba90a35f05df0be68df586c9e184183ed8263 | [
"Apache-2.0"
] | 15 | 2020-06-12T01:40:34.000Z | 2022-03-16T21:52:46.000Z | src/vkex/Texture.cpp | apazylbe/PorQue4K | 209ba90a35f05df0be68df586c9e184183ed8263 | [
"Apache-2.0"
] | 4 | 2020-06-12T23:57:52.000Z | 2020-06-24T19:19:16.000Z | src/vkex/Texture.cpp | apazylbe/PorQue4K | 209ba90a35f05df0be68df586c9e184183ed8263 | [
"Apache-2.0"
] | 3 | 2020-06-12T15:02:13.000Z | 2020-07-05T17:34:20.000Z | /*
Copyright 2018-2019 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 32.95549 | 150 | 0.691158 | apazylbe |
235999cbc7af34d766d06c13efda247a380496b3 | 1,539 | cpp | C++ | playground/PrecisionTimer/MicroTimer2.cpp | SteveAmor/LittleArduinoProjects | 19644961a87f3ae2e73159c2e69dfe07fe2335bf | [
"MIT"
] | 1 | 2020-12-27T17:38:55.000Z | 2020-12-27T17:38:55.000Z | playground/PrecisionTimer/MicroTimer2.cpp | slimem8mile/LittleArduinoProjects | 05329499d4a7e6fc403bc5c71a5efa024b57f58e | [
"MIT"
] | null | null | null | playground/PrecisionTimer/MicroTimer2.cpp | slimem8mile/LittleArduinoProjects | 05329499d4a7e6fc403bc5c71a5efa024b57f58e | [
"MIT"
] | null | null | null | #include "MicroTimer2.h"
MicroTimer2 microTimer2;
// Handle Timer2 overflow. this will occur every 128us
ISR(TIMER2_OVF_vect) {
microTimer2.increment_overflow_count();
}
MicroTimer2::MicroTimer2() {
_overflow_count = 0;
_total_count = 0;
_started = false;
}
void MicroTimer2::enable() {
if (_started) r... | 15.237624 | 68 | 0.697206 | SteveAmor |
235a97cb75772522c16e1a662757b83516ec2752 | 45,507 | cpp | C++ | src/add-ons/media/plugins/mp4_reader/libMP4/MP4Parser.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 4 | 2017-06-17T22:03:56.000Z | 2019-01-25T10:51:55.000Z | src/add-ons/media/plugins/mp4_reader/libMP4/MP4Parser.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | null | null | null | src/add-ons/media/plugins/mp4_reader/libMP4/MP4Parser.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 3 | 2018-12-17T13:07:38.000Z | 2021-09-08T13:07:31.000Z | /*
* Copyright (c) 2005, David McPaul
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of condit... | 20.135841 | 157 | 0.734678 | axeld |
235bdce991df6f83c63041a70817bcfce2307793 | 421 | cpp | C++ | BOJ_CPP/6108.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/6108.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/6108.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
using namespace std;
int arr[101], brr[101];
int main() {
fastio;
int n;
cin >> n;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
cin >> arr[j];
}
sort(arr, arr + n... | 20.047619 | 63 | 0.453682 | tnsgh9603 |
235ef66ef5303b4c654b2ecfb52a8338502a1c20 | 2,330 | cpp | C++ | tests/UnitTests/test.cpp | Neithari/DiseaseSpreadSimulator | 8653f260660322e140fa390ce64dbd1b0346125a | [
"MIT"
] | null | null | null | tests/UnitTests/test.cpp | Neithari/DiseaseSpreadSimulator | 8653f260660322e140fa390ce64dbd1b0346125a | [
"MIT"
] | 3 | 2022-03-24T01:19:39.000Z | 2022-03-27T01:01:01.000Z | tests/UnitTests/test.cpp | Neithari/DiseaseSpreadSimulator | 8653f260660322e140fa390ce64dbd1b0346125a | [
"MIT"
] | null | null | null | #include "pch.h"
// Includes to be tested
namespace UnitTests
{
TEST(IDGeneratorTests, IDIncrementing)
{
for (size_t i = 0; i < 10; i++)
{
ASSERT_EQ(IDGenerator::IDGenerator<char>::GetNextID(), i);
}
}
TEST(IDGeneratorTests, IndependentIDs)
{
for (size_t i = 0; i < 10; i++)
{
ASS... | 21.574074 | 85 | 0.6 | Neithari |
236a7fffeb98e7d3968e0acf0afe6070d71d32b7 | 5,787 | cpp | C++ | kernel/vm/vmarea.cpp | otaviopace/ananas | 849925915b0888543712a8ca625318cd7bca8dd9 | [
"Zlib"
] | null | null | null | kernel/vm/vmarea.cpp | otaviopace/ananas | 849925915b0888543712a8ca625318cd7bca8dd9 | [
"Zlib"
] | null | null | null | kernel/vm/vmarea.cpp | otaviopace/ananas | 849925915b0888543712a8ca625318cd7bca8dd9 | [
"Zlib"
] | null | null | null | /*-
* SPDX-License-Identifier: Zlib
*
* Copyright (c) 2009-2018 Rink Springer <rink@rink.nu>
* For conditions of distribution and use, see LICENSE file
*/
#include "kernel/vmpage.h"
#include "kernel/vmarea.h"
#include "kernel/page.h"
#include "kernel/lib.h"
#include "kernel/vmspace.h"
#define DPRINTF(...)
VMPag... | 36.16875 | 100 | 0.611025 | otaviopace |
236d685e413a20a3a0012f2969dc3d775ab7b2cc | 231 | hpp | C++ | src/messaging/servicedirectory_p.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 61 | 2015-01-08T08:05:28.000Z | 2022-01-07T16:47:47.000Z | src/messaging/servicedirectory_p.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 30 | 2015-04-06T21:41:18.000Z | 2021-08-18T13:24:51.000Z | src/messaging/servicedirectory_p.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 64 | 2015-02-23T20:01:11.000Z | 2022-03-14T13:31:20.000Z | #pragma once
/*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#ifndef _SRC_SERVICEDIRECTORY_P_HPP_
#define _SRC_SERVICEDIRECTORY_P_HPP_
namespace qi {
}
#endif // _SRC_SERVICEDIRECTORY_P_HPP_
| 12.833333 | 41 | 0.761905 | arntanguy |
236dea9a5e94396c7bb4fc25551318278716c8f7 | 4,159 | cpp | C++ | relay_switching_multi/src/main.cpp | effectspcbs/Arduino | 982f841a9dcbb09dc3ff89ea66d3cd5bde0223b6 | [
"MIT"
] | null | null | null | relay_switching_multi/src/main.cpp | effectspcbs/Arduino | 982f841a9dcbb09dc3ff89ea66d3cd5bde0223b6 | [
"MIT"
] | null | null | null | relay_switching_multi/src/main.cpp | effectspcbs/Arduino | 982f841a9dcbb09dc3ff89ea66d3cd5bde0223b6 | [
"MIT"
] | 1 | 2021-12-09T11:45:01.000Z | 2021-12-09T11:45:01.000Z | #include <Arduino.h>
#include "bypass.h"
#include "settings.h"
Bypass Bypass0(9, 1, 1, 8, 0);
Bypass Bypass1(10, 6, 7, 8, 5);
Settings Settings0;
void setup()
{
Settings0.modeSetup();
Bypass0.bypassSetup();
Bypass1.bypassSetup();
if (Settings0.getSwitchMode() == 0) // On/Off mode
{
if (S... | 27.543046 | 115 | 0.449868 | effectspcbs |
23701a2af1d5761c86a58fb7778aff9e6752705f | 4,725 | cpp | C++ | Connections/MSPBSL_Connection5438Family.cpp | KirillSmirnov/trik-mspbsl-library | ee5e5bfe7aa00a8421a4d8203c82adb5445ecbe0 | [
"BSD-3-Clause"
] | 1 | 2015-11-29T18:33:02.000Z | 2015-11-29T18:33:02.000Z | Connections/MSPBSL_Connection5438Family.cpp | KirillSmirnov/trik-mspbsl-library | ee5e5bfe7aa00a8421a4d8203c82adb5445ecbe0 | [
"BSD-3-Clause"
] | null | null | null | Connections/MSPBSL_Connection5438Family.cpp | KirillSmirnov/trik-mspbsl-library | ee5e5bfe7aa00a8421a4d8203c82adb5445ecbe0 | [
"BSD-3-Clause"
] | 1 | 2015-11-29T18:33:13.000Z | 2015-11-29T18:33:13.000Z | /*
* MSPBSL_Connection5438Family
*
* A subclass to add 5438 (non-A) specific connection functions
*
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... | 41.447368 | 120 | 0.630476 | KirillSmirnov |
2378ab27f77fed231913ad67f2c235023a427f3f | 858 | cpp | C++ | 014_StencilTesting/StencilTesting/Engine/Light/Light.cpp | David-Luis/graphics | 2397e79353e4721ed6199a4e05572bc992ba24d4 | [
"MIT"
] | null | null | null | 014_StencilTesting/StencilTesting/Engine/Light/Light.cpp | David-Luis/graphics | 2397e79353e4721ed6199a4e05572bc992ba24d4 | [
"MIT"
] | null | null | null | 014_StencilTesting/StencilTesting/Engine/Light/Light.cpp | David-Luis/graphics | 2397e79353e4721ed6199a4e05572bc992ba24d4 | [
"MIT"
] | null | null | null | #include <Engine/Light/Light.h>
#include <Engine/Shader/Shader.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
Light::Light() : m_ambient(0.1f, 0.1f, 0.1f), m_diffuse(0.5f, 0.5f, 0.5f), m_specular(1.0f, 1.0f, 1.0f)
{
}
void Light::SetPosition(const glm::vec3& position)
{
m_position = po... | 16.5 | 103 | 0.700466 | David-Luis |
2379e6a99f527047148ec44caec13ad20548209e | 5,043 | cpp | C++ | src/timer.cpp | IRVING-L/HttpServer | 51417de2b89d8abdfc17f0895f56badd5e1e5450 | [
"MIT"
] | null | null | null | src/timer.cpp | IRVING-L/HttpServer | 51417de2b89d8abdfc17f0895f56badd5e1e5450 | [
"MIT"
] | null | null | null | src/timer.cpp | IRVING-L/HttpServer | 51417de2b89d8abdfc17f0895f56badd5e1e5450 | [
"MIT"
] | null | null | null | #include "timer.h"
#include "log.h"
TimeManager::TimeManager() {}
TimeManager::~TimeManager() {}
// 私有成员函数
void TimeManager::m_del(int i)
{
// 删除指定小根堆中指定的节点
// std::cout << "TimeManager::m_del(int i)" << i << std::endl;
if (i < 0 || i > static_cast<int>(m_heap.size()))
{
LOG_DEBUG("invalid i:%... | 22.716216 | 107 | 0.496133 | IRVING-L |
23895f132f5a5496e4b4cb4b804504b2d8d1849d | 1,022 | cpp | C++ | src/apps/query_nn.cpp | mrondin1/StarSpace | fc2cd39472b3aadf00b6254edf00e099e13e598f | [
"MIT"
] | 2,914 | 2017-10-04T21:55:41.000Z | 2022-03-31T04:25:31.000Z | src/apps/query_nn.cpp | mrondin1/StarSpace | fc2cd39472b3aadf00b6254edf00e099e13e598f | [
"MIT"
] | 215 | 2017-10-06T14:12:13.000Z | 2022-03-18T06:56:27.000Z | src/apps/query_nn.cpp | mrondin1/StarSpace | fc2cd39472b3aadf00b6254edf00e099e13e598f | [
"MIT"
] | 483 | 2017-10-07T20:09:47.000Z | 2022-03-01T02:23:20.000Z | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "../starspace.h"
#include <iostream>
#include <boost/algorithm/string/predicate.hpp>
using namespace std;
using namespac... | 21.744681 | 66 | 0.609589 | mrondin1 |
238a70b01eefc5c511d64fc34d9c2af731caf67f | 5,975 | cpp | C++ | core/stringutil.cpp | 00steve/engine.core | f9edd7ff1e69b272967e19e37340843d15c5cb27 | [
"MIT"
] | null | null | null | core/stringutil.cpp | 00steve/engine.core | f9edd7ff1e69b272967e19e37340843d15c5cb27 | [
"MIT"
] | null | null | null | core/stringutil.cpp | 00steve/engine.core | f9edd7ff1e69b272967e19e37340843d15c5cb27 | [
"MIT"
] | null | null | null | #include "stringutil.h"
string stringToLower(string &line){
int l = line.size();
while(l --> 0){
if(line[l] < 91 && line[l] > 64){
line[l] += 32;
}
}
return line;
}
string convertChar(string line,char from,char to) {
int x = line.length();
while(x --> 1) {
if(line[x] != from) continue;
... | 24.487705 | 109 | 0.628787 | 00steve |
238ca108ff276cf0b06afd3ee624212e8733ba6e | 22,927 | cpp | C++ | cheng4/bookzobrist.cpp | kmar/cheng4 | d3adbb83555a31f88bc5337a6188447940757e73 | [
"Zlib"
] | 13 | 2016-06-03T23:58:41.000Z | 2022-03-31T19:09:11.000Z | cheng4/bookzobrist.cpp | kmar/cheng4 | d3adbb83555a31f88bc5337a6188447940757e73 | [
"Zlib"
] | 1 | 2021-05-04T14:29:19.000Z | 2021-05-04T18:44:19.000Z | cheng4/bookzobrist.cpp | kmar/cheng4 | d3adbb83555a31f88bc5337a6188447940757e73 | [
"Zlib"
] | 5 | 2016-06-03T23:58:41.000Z | 2022-03-15T12:45:00.000Z | /*
You can use this program under the terms of either the following zlib-compatible license
or as public domain (where applicable)
Copyright (C) 2012-2015, 2020-2021 Martin Sedlak
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any dam... | 98.399142 | 110 | 0.824835 | kmar |
239c590dfb18917e0f4a92f7f7d06b4f83b48010 | 4,405 | cpp | C++ | GoL/cellularautomaton.cpp | unigoetheradaw/prg2-pr_milestone1-master | a376d4f2fe5b830a6d1b04ebe50088c506599270 | [
"MIT"
] | null | null | null | GoL/cellularautomaton.cpp | unigoetheradaw/prg2-pr_milestone1-master | a376d4f2fe5b830a6d1b04ebe50088c506599270 | [
"MIT"
] | null | null | null | GoL/cellularautomaton.cpp | unigoetheradaw/prg2-pr_milestone1-master | a376d4f2fe5b830a6d1b04ebe50088c506599270 | [
"MIT"
] | null | null | null | // graph.cpp (implementation of class CellularAutomaton)
// Created by Andreas Haupt
#include <fstream>
#include <sstream>
#include <iostream>
#include <string>
#include <assert.h>
#include "cellularautomaton.h"
CellularAutomaton::CellularAutomaton(std::size_t num_cols, std::size_t num_rows)
: old_state_(num_cols, ... | 32.62963 | 100 | 0.648354 | unigoetheradaw |
23adfa9ad8cfd4d24f15049e34b8e1103328a182 | 1,115 | hpp | C++ | icon/endpoint/base_endpoint.hpp | pblxptr/icon | 4426632bcc72f4f9fabfa5e23bf8b3d170632435 | [
"MIT"
] | null | null | null | icon/endpoint/base_endpoint.hpp | pblxptr/icon | 4426632bcc72f4f9fabfa5e23bf8b3d170632435 | [
"MIT"
] | null | null | null | icon/endpoint/base_endpoint.hpp | pblxptr/icon | 4426632bcc72f4f9fabfa5e23bf8b3d170632435 | [
"MIT"
] | null | null | null | #pragma once
// TODO: Add option that would allow to shutdown without blocking. When endpoint is being destructed it sometimes hangs. Check linger
#include <icon/bzmq/co_stream_watcher.hpp>
#include <icon/bzmq/zmq_co_recv_op.hpp>
#include <icon/bzmq/zmq_co_send_op.hpp>
#include <icon/endpoint/endpoint.hpp>
#include <... | 28.589744 | 133 | 0.75426 | pblxptr |
23b4c6023bf4d415afb8aab15ffcdd6177380bbf | 6,591 | cpp | C++ | Source/AllProjects/Drivers/GenProto/Server/GenProtoS_ProtoInfo.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/Drivers/GenProto/Server/GenProtoS_ProtoInfo.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/Drivers/GenProto/Server/GenProtoS_ProtoInfo.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: GenProtoS_ProtoInfo.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 11/24/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://ope... | 27.348548 | 78 | 0.535427 | MarkStega |
23b6683db1641de15c3e555a4acb593dbaccc4f4 | 4,189 | cpp | C++ | uwsim_resources/uwsim_osgworks/tests/orientation/orientation.cpp | epsilonorion/usv_lsa_sim_copy | d189f172dc1d265b7688c7dc8375a65ac4a9c048 | [
"Apache-2.0"
] | 1 | 2020-11-30T09:55:33.000Z | 2020-11-30T09:55:33.000Z | uwsim_resources/uwsim_osgworks/tests/orientation/orientation.cpp | epsilonorion/usv_lsa_sim_copy | d189f172dc1d265b7688c7dc8375a65ac4a9c048 | [
"Apache-2.0"
] | null | null | null | uwsim_resources/uwsim_osgworks/tests/orientation/orientation.cpp | epsilonorion/usv_lsa_sim_copy | d189f172dc1d265b7688c7dc8375a65ac4a9c048 | [
"Apache-2.0"
] | 2 | 2020-11-21T19:50:54.000Z | 2020-12-27T09:35:29.000Z | /*************** <auto-copyright.pl BEGIN do not edit this line> **************
*
* osgWorks is (C) Copyright 2010 by Kenneth Mark Bryden
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free So... | 30.136691 | 119 | 0.548102 | epsilonorion |
23ba1bd36a728b949d6c43b82c7aec50d9c70bf1 | 8,186 | cpp | C++ | Engine/cal3d/morphtargetmixer.cpp | odiminox/DeadBeef-Engine | 89fbaf3c62a11da9eef0ea5971c0c49223da452f | [
"Apache-2.0"
] | null | null | null | Engine/cal3d/morphtargetmixer.cpp | odiminox/DeadBeef-Engine | 89fbaf3c62a11da9eef0ea5971c0c49223da452f | [
"Apache-2.0"
] | null | null | null | Engine/cal3d/morphtargetmixer.cpp | odiminox/DeadBeef-Engine | 89fbaf3c62a11da9eef0ea5971c0c49223da452f | [
"Apache-2.0"
] | null | null | null | //****************************************************************************//
// morphtargetmixer.cpp //
// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
//***************************************************************************... | 37.723502 | 94 | 0.546787 | odiminox |
23bd86bac69396207413ec106aa2286f819c3c94 | 136 | cpp | C++ | gueepo2D/engine/core/renderer/RendererAPI.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 1 | 2022-02-03T19:24:47.000Z | 2022-02-03T19:24:47.000Z | gueepo2D/engine/core/renderer/RendererAPI.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 4 | 2021-10-30T19:03:07.000Z | 2022-02-10T01:06:02.000Z | gueepo2D/engine/core/renderer/RendererAPI.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 1 | 2021-10-01T03:08:21.000Z | 2021-10-01T03:08:21.000Z | #include "gueepo2Dpch.h"
#include "RendererAPI.h"
namespace gueepo {
RendererAPI::API RendererAPI::s_API = RendererAPI::API::OpenGL;
} | 22.666667 | 64 | 0.757353 | guilhermepo2 |
23bfa4da7b1d3b42d51c5cc72237ab7eec5ba8fc | 2,471 | cpp | C++ | Project-7/B/Data.cpp | lele0108/adv-c | f6c6bd36cc5a4489023ad782a1c1ac0a943d5543 | [
"MIT"
] | null | null | null | Project-7/B/Data.cpp | lele0108/adv-c | f6c6bd36cc5a4489023ad782a1c1ac0a943d5543 | [
"MIT"
] | null | null | null | Project-7/B/Data.cpp | lele0108/adv-c | f6c6bd36cc5a4489023ad782a1c1ac0a943d5543 | [
"MIT"
] | null | null | null | // Jimmy Liu
// Project 7
// December 4 2015 (Extension Requested)
// XCode 7.0
#include <iostream>
using namespace std;
// Person Data Class
class PersonData {
private:
string lastName;
string firstName;
string address;
string city;
string state;
int zip;
int phone;
public:
// Setter for lastname
... | 20.421488 | 250 | 0.647916 | lele0108 |
23c6e2a7bf80a6d42b09bbce0d9b6a5b8281d722 | 1,920 | cpp | C++ | src/Gui/ModelForms/PassEntryDialog.cpp | AndrzejWoronko/WebPassWare | 9af0df61a9279f1ffe8561714656265f4bec7939 | [
"MIT"
] | null | null | null | src/Gui/ModelForms/PassEntryDialog.cpp | AndrzejWoronko/WebPassWare | 9af0df61a9279f1ffe8561714656265f4bec7939 | [
"MIT"
] | null | null | null | src/Gui/ModelForms/PassEntryDialog.cpp | AndrzejWoronko/WebPassWare | 9af0df61a9279f1ffe8561714656265f4bec7939 | [
"MIT"
] | null | null | null | #include "PassEntryDialog.h"
PassEntryDialog::PassEntryDialog(QWidget *parent) :
CAbstractFormDialog(QString("PASS_ENTRY_DIALOG"), parent)
{
}
void PassEntryDialog::addFields()
{
m_id = new CFormNumberField(QString("m_id"), tr("Id"), 0, 0, 0, true);
addField(m_id);
m_title = new CFormTextField(QStrin... | 43.636364 | 100 | 0.681771 | AndrzejWoronko |
23c796b3b3b80c74d7fc8929c58f24ab59e308d8 | 2,385 | cpp | C++ | array/medium/73.SetMatrixZeroes.cpp | XiaotaoGuo/Leetcode-Solution-In-Cpp | 8e01e35c742a7afb0c8cdd228a6a5e564375434e | [
"Apache-2.0"
] | null | null | null | array/medium/73.SetMatrixZeroes.cpp | XiaotaoGuo/Leetcode-Solution-In-Cpp | 8e01e35c742a7afb0c8cdd228a6a5e564375434e | [
"Apache-2.0"
] | null | null | null | array/medium/73.SetMatrixZeroes.cpp | XiaotaoGuo/Leetcode-Solution-In-Cpp | 8e01e35c742a7afb0c8cdd228a6a5e564375434e | [
"Apache-2.0"
] | null | null | null | /*
* @lc app=leetcode id=73 lang=cpp
*
* [73] Set Matrix Zeroes
*
* https://leetcode.com/problems/set-matrix-zeroes/description/
*
* algorithms
* Medium (44.26%)
* Likes: 3243
* Dislikes: 361
* Total Accepted: 410.9K
* Total Submissions: 923.4K
* Testcase Example: '[[1,1,1],[1,0,1],[1,1,1]]'
*
* G... | 21.681818 | 78 | 0.400839 | XiaotaoGuo |
23cedd6d3addf89e18ee3e53b5fc4ea6ffb4c562 | 318 | cpp | C++ | VectorTest/Slink.cpp | albinopapa/VectorTest | bf520ca561a70ef90c3820a797ce60f669693219 | [
"MIT"
] | null | null | null | VectorTest/Slink.cpp | albinopapa/VectorTest | bf520ca561a70ef90c3820a797ce60f669693219 | [
"MIT"
] | null | null | null | VectorTest/Slink.cpp | albinopapa/VectorTest | bf520ca561a70ef90c3820a797ce60f669693219 | [
"MIT"
] | null | null | null | #include "Slink.h"
Slink::Slink()
{
for (int i = 0; i < 6; ++i)
{
joints.emplace_back(Quaternion());
}
}
void Slink::Update(Skeleton &Skelly, const float TimeStep)
{
Skelly.Bend(1, -0.2f);
Skelly.Bend(2, -0.4f);
Skelly.Bend(3, -0.2f);
Skelly.Bend(4, 0.0f);
Skelly.Bend(5, 0.2f);
}
Slink::~Slink()
{
}
| 12.72 | 58 | 0.59434 | albinopapa |
23e63785b395fe8baa3c04647d04d21ef55182f5 | 827 | cpp | C++ | src/observer_camera.cpp | lahoising/MobRend | c804a0cfebd06818a5cbf1747c2337ea134c11d7 | [
"MIT"
] | null | null | null | src/observer_camera.cpp | lahoising/MobRend | c804a0cfebd06818a5cbf1747c2337ea134c11d7 | [
"MIT"
] | null | null | null | src/observer_camera.cpp | lahoising/MobRend | c804a0cfebd06818a5cbf1747c2337ea134c11d7 | [
"MIT"
] | null | null | null | #include <glm/gtx/quaternion.hpp>
#include <mobrend/observer_camera.h>
#include <mobrend/application.h>
#include <mobrend/window.h>
#include <mobrend/input.h>
namespace mr
{
void ObserverCamera::Update()
{
Input &input = Application::GetInstance().GetMainWindow()->input;
// glm::vec3 position = this->cam... | 25.84375 | 78 | 0.685611 | lahoising |
23e7a9dfc9d162ac8912cab79c5084a4fca82118 | 12,712 | hpp | C++ | src/MessageQueue.hpp | FrankReiser/ReiserRT_Core | 35aca05839523db961e3880cfd6b1661278c5e1d | [
"MIT"
] | null | null | null | src/MessageQueue.hpp | FrankReiser/ReiserRT_Core | 35aca05839523db961e3880cfd6b1661278c5e1d | [
"MIT"
] | null | null | null | src/MessageQueue.hpp | FrankReiser/ReiserRT_Core | 35aca05839523db961e3880cfd6b1661278c5e1d | [
"MIT"
] | null | null | null | /**
* @file MessageQueue.hpp
* @brief The Specification for a Pendable MessageQueue
* @authors Frank Reiser
* @date Created on May 23, 2017
*/
#ifndef REISERRT_CORE_MESSAGEQUEUE_HPP
#define REISERRT_CORE_MESSAGEQUEUE_HPP
#include "ReiserRT_CoreExport.h"
#include "MessageQueueBase.hpp"
#include "ReiserRT_CoreExceptio... | 48.519084 | 134 | 0.614459 | FrankReiser |
23e81c62d5f85f3580ee99e9e90f14c5764a906a | 6,586 | cpp | C++ | src/render/shader.cpp | torresguilherme/KitsuneEngine | 31028233aaab39126ae57bf395f6158e49877a33 | [
"MIT"
] | 1 | 2017-12-30T04:04:41.000Z | 2017-12-30T04:04:41.000Z | src/render/shader.cpp | torresguilherme/KitsuneEngine | 31028233aaab39126ae57bf395f6158e49877a33 | [
"MIT"
] | null | null | null | src/render/shader.cpp | torresguilherme/KitsuneEngine | 31028233aaab39126ae57bf395f6158e49877a33 | [
"MIT"
] | null | null | null | /*************************************************************************/
/* This file is part of the */
/* Kitsune Engine Project */
/*************************************************************************/
/* Copyright (c)... | 25.330769 | 119 | 0.630276 | torresguilherme |
23edf6c7ff61bb8ff9386e37bb657b070bc050d6 | 671 | cpp | C++ | codeforces/gym/2018 ICPC Asia Jakarta Regional Contest/a.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/gym/2018 ICPC Asia Jakarta Regional Contest/a.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/gym/2018 ICPC Asia Jakarta Regional Contest/a.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
#include <cpplib/string/distance.hpp>
int32_t main(){
desync();
string s;
cin >> s;
int cnt[2] = {};
for(char c:s)
cnt[c-'0']++;
if(cnt[0] > cnt[1]){
for(int i=0; i<s.size(); ++i)
cout << 1;
cout << endl;
}
else if(cnt[1... | 19.735294 | 49 | 0.42772 | tysm |
23f78175560bc503ca706db40a44a3d86e49113d | 1,726 | hpp | C++ | src/graphics/sdlopenglrenderer.hpp | cirla/RPEC | 4e9818fafa43b625bfc2de2f293a0e3471c55068 | [
"MIT"
] | 1 | 2015-12-28T13:47:18.000Z | 2015-12-28T13:47:18.000Z | src/graphics/sdlopenglrenderer.hpp | cirla/RPEC | 4e9818fafa43b625bfc2de2f293a0e3471c55068 | [
"MIT"
] | null | null | null | src/graphics/sdlopenglrenderer.hpp | cirla/RPEC | 4e9818fafa43b625bfc2de2f293a0e3471c55068 | [
"MIT"
] | null | null | null | /**
*
*/
#ifndef RPEC__GRAPHICS__SDL_OPENGL_RENDERER__H_
#define RPEC__GRAPHICS__SDL_OPENGL_RENDERER__H_
#include <SDL2/SDL.h>
#include "openglrenderer.hpp"
namespace rpec {
namespace graphics {
class SdlOpenGlContext {
public:
SdlOpenGlContext()
: m_window(nullptr)
, m_context(nullptr) {
SDL... | 24.309859 | 86 | 0.667439 | cirla |
23f8ed946cb2fa5d7b020e7cfe788635a7751daf | 7,716 | cc | C++ | 2019/day15.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | 2019/day15.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | 2019/day15.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | #include <cstdint>
#include <deque>
#include <iostream>
#include <optional>
#include <string>
#include <tuple>
#include <unordered_map>
#include <vector>
using Memory = std::vector<int64_t>;
enum class Signal {
END = 0,
ERR,
INT,
};
class Program {
public:
explicit Program(Memory const &memory)
: memor... | 24.730769 | 76 | 0.587869 | triglav |
23fb3d8430d7a02f6a9dfde5fca7ea20b6484200 | 593 | cpp | C++ | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/UiWindowSysTray.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 39 | 2022-03-25T17:21:17.000Z | 2022-03-31T18:24:12.000Z | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/UiWindowSysTray.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 1 | 2022-03-20T00:35:07.000Z | 2022-03-20T01:06:20.000Z | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/UiWindowSysTray.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 3 | 2022-03-26T01:08:06.000Z | 2022-03-27T23:12:40.000Z | #include "StdAfx.h"
#include "UiWindowSysTray.h"
#include "UiCommon.h"
#define ThisMethod($x) &UiWindowSysTray::$x
#define AutoAddMethod($x, ...) AddMethod<__VA_ARGS__>( #$x, ThisMethod( $x ) )
#define MakeThisFunc($x) MakeFunc( this, &UiWindowSysTray::$x )
namespace Nav
{
namespace
{
ObjectRegister<UiWindowSys... | 20.448276 | 78 | 0.715008 | qber-soft |
671377605afc353db6cd9aefabb3522264202937 | 3,334 | cc | C++ | src/core/texture.cc | juliomarcelopicardo/Wolfy3D | 3d5d820c9fda8ea4b5520b857d85995615f6ab1b | [
"MIT"
] | null | null | null | src/core/texture.cc | juliomarcelopicardo/Wolfy3D | 3d5d820c9fda8ea4b5520b857d85995615f6ab1b | [
"MIT"
] | null | null | null | src/core/texture.cc | juliomarcelopicardo/Wolfy3D | 3d5d820c9fda8ea4b5520b857d85995615f6ab1b | [
"MIT"
] | null | null | null | /** Copyright Julio Picardo 2017-18, all rights reserved.
*
* @project Wolfy3D
* @authors Julio Marcelo Picardo <juliomarcelopicardo@gmail.com>
*
*/
#include "Wolfy3D/globals.h"
#include "core/texture.h"
#include "core/directx.h"
#include "core/core.h"
#include "D3D11.h"
namespace W3D {
/**********************... | 30.587156 | 89 | 0.573185 | juliomarcelopicardo |
671611f3455ce1e89fc3243e69a4ac106d8c8d56 | 72,724 | cpp | C++ | sources/Front-end/EndpointDlg.cpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | sources/Front-end/EndpointDlg.cpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | sources/Front-end/EndpointDlg.cpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | /**************************************************************************
* Created: 2008/01/27 5:40
* Author: Eugene V. Palchukovsky
* E-mail: eugene@palchukovsky.com
* -------------------------------------------------------------------
* Project: TunnelEx
* URL: http://tunnelex.net
**********... | 31.455017 | 141 | 0.722389 | palchukovsky |
67167cbd87afe5b969f9e2fae4a9905414ae546d | 286 | hpp | C++ | hiro/reference/widget/canvas.hpp | mp-lee/higan | c38a771f2272c3ee10fcb99f031e982989c08c60 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | hiro/reference/widget/canvas.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 2 | 2015-10-06T14:59:48.000Z | 2022-01-27T08:57:57.000Z | hiro/reference/widget/canvas.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | namespace phoenix {
struct pCanvas : public pWidget {
Canvas& canvas;
void setDroppable(bool droppable);
void setMode(Canvas::Mode mode);
void setSize(Size size);
pCanvas(Canvas& canvas) : pWidget(canvas), canvas(canvas) {}
void constructor();
void destructor();
};
}
| 17.875 | 62 | 0.699301 | mp-lee |
6716be6e6023cfb5cd1e49c78eb980a44c2f9ff6 | 1,307 | cpp | C++ | codeforces/GoodBye2017/C/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | codeforces/GoodBye2017/C/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | codeforces/GoodBye2017/C/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
template<typename P, typename Q>
ostream& operator << (ostream& os, pair<P, Q> p)
{
os << "(" << p.first <<... | 19.80303 | 61 | 0.501148 | Johniel |
672039a4aa8886a8a0e74d9b7bacc146f8a60b36 | 29 | cpp | C++ | src/deployers/PluginsDeployer.cpp | walterbrebels/linuxdeploy-plugin-qt | 7dcddc5e6ef458ce2153b3fdeab4bc688ba36ea9 | [
"MIT"
] | 45 | 2018-10-10T08:35:22.000Z | 2022-03-27T09:33:34.000Z | src/deployers/PluginsDeployer.cpp | walterbrebels/linuxdeploy-plugin-qt | 7dcddc5e6ef458ce2153b3fdeab4bc688ba36ea9 | [
"MIT"
] | 91 | 2018-07-18T05:19:27.000Z | 2022-03-24T22:06:42.000Z | src/deployers/PluginsDeployer.cpp | walterbrebels/linuxdeploy-plugin-qt | 7dcddc5e6ef458ce2153b3fdeab4bc688ba36ea9 | [
"MIT"
] | 16 | 2019-06-10T15:07:06.000Z | 2022-01-11T11:05:00.000Z | #include "PluginsDeployer.h"
| 14.5 | 28 | 0.793103 | walterbrebels |
6729e57171b32b25d8223664aca21f46641a5966 | 331 | cpp | C++ | ch00/0-4.cpp | stanleywxchen/acceleratedcpp | fdcfff2bcaf9196655d77e1d80634a78d9ea7f00 | [
"Apache-2.0"
] | null | null | null | ch00/0-4.cpp | stanleywxchen/acceleratedcpp | fdcfff2bcaf9196655d77e1d80634a78d9ea7f00 | [
"Apache-2.0"
] | null | null | null | ch00/0-4.cpp | stanleywxchen/acceleratedcpp | fdcfff2bcaf9196655d77e1d80634a78d9ea7f00 | [
"Apache-2.0"
] | null | null | null | /*
This program prints the Hello, world! program as its output.
*/
#include <iostream>
int main() {
std::cout << "#include <iostream> \n\n"
<< "int main() {\n"
<< " std::cout << \"Hello, world!\" << std::endl;\n"
<< " return 0;\n"
<< "}"
<< std::endl;
... | 22.066667 | 65 | 0.450151 | stanleywxchen |
6730510d47e3f46eda70f094bb8ec3ad150ae491 | 2,666 | hh | C++ | packages/utilities/KD_Tree.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/utilities/KD_Tree.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/utilities/KD_Tree.hh | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #ifndef KD_Tree_hh
#define KD_Tree_hh
#include <memory>
#include <vector>
#include "nanoflann.hh"
/*
KD Tree for finding nearest neighbors
General adaptor for nanoflann
*/
class KD_Tree
{
class KD_Adaptor;
// Distance adaptor
typedef nanoflann::L2_Adaptor<double,
... | 25.634615 | 93 | 0.507877 | brbass |
6730e75b20a9ecb22a55afc716c7bb782ce871e2 | 1,090 | cpp | C++ | AudioDestinationNode_T3DAC.cpp | VSIONHAIRIES/CFOO | cfc8caa6abd0a2d50bc6c726312d4c28dc246a68 | [
"MIT"
] | null | null | null | AudioDestinationNode_T3DAC.cpp | VSIONHAIRIES/CFOO | cfc8caa6abd0a2d50bc6c726312d4c28dc246a68 | [
"MIT"
] | null | null | null | AudioDestinationNode_T3DAC.cpp | VSIONHAIRIES/CFOO | cfc8caa6abd0a2d50bc6c726312d4c28dc246a68 | [
"MIT"
] | null | null | null | #include "AudioDestinationNode_T3DAC.h"
#include <Arduino.h>
#define SAMPLE_RATE 48000
#define CPU_FREQ 96 // in MHz
IntervalTimer synthTimer;
void synth_isr();
AudioDestinationNode_T3DAC::AudioDestinationNode_T3DAC(AudioContext* audioContext)
: AudioNode(audioContext), AudioDestinationNode(), _sample(0) {
ana... | 19.122807 | 83 | 0.691743 | VSIONHAIRIES |
6732b3859482ddd7711537cfce99a96df74d6b5a | 227 | hpp | C++ | src/Process.hpp | asmie/tcall | 83174251f8f3517e973482527dfd796f5d4a914c | [
"MIT"
] | null | null | null | src/Process.hpp | asmie/tcall | 83174251f8f3517e973482527dfd796f5d4a914c | [
"MIT"
] | null | null | null | src/Process.hpp | asmie/tcall | 83174251f8f3517e973482527dfd796f5d4a914c | [
"MIT"
] | null | null | null | /**
* @file Process.hpp
* @brief General process class interface.
*
* @author Piotr "asmie" Olszewski
*
* @date 2021.03.03
*/
#ifndef SRC_PROCESS_HPP_
#define SRC_PROCESS_HPP_
#endif /* SRC_PROCESS_HPP_ */
| 13.352941 | 44 | 0.656388 | asmie |
6732d373c0654e72da8d159b2be4ef9859901133 | 3,024 | cpp | C++ | app/app/ecs/world.cpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | 6 | 2022-02-05T23:28:12.000Z | 2022-02-24T11:08:04.000Z | app/app/ecs/world.cpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | null | null | null | app/app/ecs/world.cpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | null | null | null | #include "app/ecs/world.hpp"
#include "app/ecs/system.hpp"
namespace slope::app {
World::World() {
auto& registry = ComponentRegistry::instance();
for (ComponentType::Id type_id = 0; type_id < registry.limit_id(); type_id++) {
auto& type = registry.get_type(type_id);
m_components[type_id].emp... | 26.295652 | 83 | 0.592262 | muleax |
673f4010f768f770fda6f600b523aeb6876dc938 | 682 | hpp | C++ | src/include/IInteger.hpp | araujoigor/ipp-compiler | 8f0b8cf70f5354ccc06f9f2f808909fc27a7fee4 | [
"MIT"
] | 1 | 2021-09-17T10:36:29.000Z | 2021-09-17T10:36:29.000Z | src/include/IInteger.hpp | araujoigor/ipp-compiler | 8f0b8cf70f5354ccc06f9f2f808909fc27a7fee4 | [
"MIT"
] | null | null | null | src/include/IInteger.hpp | araujoigor/ipp-compiler | 8f0b8cf70f5354ccc06f9f2f808909fc27a7fee4 | [
"MIT"
] | null | null | null | #ifndef __IINTEGER_HPP__
#define __IINTEGER_HPP__
#include "IData.hpp"
/* Classe que abstrai o armazenamento de um valor inteiro*/
class IInteger : public IData{
private:
/* Valor que a variável possui */
int value;
public:
/* Tipo da variável */
const static std::string myType;
public:
int getValue(){
retur... | 15.155556 | 59 | 0.678886 | araujoigor |
673fc79f359254dbb0fb53f851f5e7f732aa1eca | 1,007 | hpp | C++ | source/ashes/renderer/D3D11Renderer/Command/Commands/D3D11DrawCommand.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | source/ashes/renderer/D3D11Renderer/Command/Commands/D3D11DrawCommand.hpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | source/ashes/renderer/D3D11Renderer/Command/Commands/D3D11DrawCommand.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /*
This file belongs to Ashes.
See LICENSE file in root folder
*/
#pragma once
#include "renderer/D3D11Renderer/Command/Commands/D3D11CommandBase.hpp"
namespace ashes::d3d11
{
/**
*\brief
* Commande de dessin non index�.
*/
class DrawCommand
: public CommandBase
{
public:
/**
*\brief
* Constructeur.
... | 19.745098 | 71 | 0.717974 | DragonJoker |
6745463b5e4e607cc453ff25478893295ea77666 | 979 | cpp | C++ | plugins/d3d9/src/state/convert/sampler_arg.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/d3d9/src/state/convert/sampler_arg.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/d3d9/src/state/convert/sampler_arg.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/d3d9/d3dinclude.hpp>
#include <sge/d3d9/state/convert/sampler_arg.hpp>
#include <sge/... | 31.580645 | 90 | 0.705822 | cpreh |
674b62304bd05f950f03da3d90cca182edb96830 | 8,610 | cpp | C++ | engine/plugins/files/main.cpp | dmpas/e8engine | 27390fa096fa721be5f8a868a844fbb20f6ebc9c | [
"MIT"
] | 1 | 2017-11-17T07:28:02.000Z | 2017-11-17T07:28:02.000Z | engine/plugins/files/main.cpp | dmpas/e8engine | 27390fa096fa721be5f8a868a844fbb20f6ebc9c | [
"MIT"
] | null | null | null | engine/plugins/files/main.cpp | dmpas/e8engine | 27390fa096fa721be5f8a868a844fbb20f6ebc9c | [
"MIT"
] | null | null | null | #include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <fstream>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <sstream>
#include "e8core/utf/utf.h"
#include "e8core/env/_array.h"
#include "e8core/plugin/plugin.... | 24.956522 | 86 | 0.525436 | dmpas |
674e9ddad8d8c0325ec507faa623a8433e5fd086 | 2,702 | cpp | C++ | testsuite/TCapabilitiesConf.cpp | nakkim/smartmet-plugin-wfs | 851334dd3be1a24b9708f66696f088fdc857a999 | [
"MIT"
] | null | null | null | testsuite/TCapabilitiesConf.cpp | nakkim/smartmet-plugin-wfs | 851334dd3be1a24b9708f66696f088fdc857a999 | [
"MIT"
] | 2 | 2018-04-17T10:02:46.000Z | 2019-10-21T08:57:55.000Z | testsuite/TCapabilitiesConf.cpp | nakkim/smartmet-plugin-wfs | 851334dd3be1a24b9708f66696f088fdc857a999 | [
"MIT"
] | 2 | 2017-05-10T12:03:51.000Z | 2021-07-06T07:05:25.000Z | #define BOOST_TEST_MODULE TCapabilitiesTest
#define BOOST_TEST_DYN_LINK 1
#include <iostream>
#include <boost/test/unit_test.hpp>
#include <CapabilitiesConf.h>
#include <macgyver/Exception.h>
using namespace boost::unit_test;
using libconfig::Setting;
test_suite *init_unit_test_suite(int argc, char *argv[])
{
const... | 35.090909 | 81 | 0.681717 | nakkim |
6750ec7deb7813d3e92cc86220da8b87a5df511c | 3,445 | hpp | C++ | source/zivc/core/zivc/vulkan/vulkan_kernel_impl.hpp | byzin/Zivc | de11ed3fb4b21b1f40b6c54c71eebe8fb7934be3 | [
"MIT"
] | null | null | null | source/zivc/core/zivc/vulkan/vulkan_kernel_impl.hpp | byzin/Zivc | de11ed3fb4b21b1f40b6c54c71eebe8fb7934be3 | [
"MIT"
] | null | null | null | source/zivc/core/zivc/vulkan/vulkan_kernel_impl.hpp | byzin/Zivc | de11ed3fb4b21b1f40b6c54c71eebe8fb7934be3 | [
"MIT"
] | null | null | null | /*!
\file vulkan_kernel_impl.hpp
\author Sho Ikeda
\brief No brief description
\details
No detailed description.
\copyright
Copyright (c) 2015-2021 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef ZIVC_VULKAN_KERNEL_IMPL_HPP
#def... | 30.758929 | 83 | 0.656894 | byzin |
67532ecdd936276f01c436376748fe58f7353fcd | 9,939 | cpp | C++ | src/gfx/UI/elements/Slider.cpp | Defalt8/axl.gl | 0028bcad1a86b048831e5fd61a436663fd38a763 | [
"MIT"
] | 6 | 2020-11-20T08:29:33.000Z | 2021-12-13T14:41:52.000Z | src/gfx/UI/elements/Slider.cpp | Defalt8/axl.gl | 0028bcad1a86b048831e5fd61a436663fd38a763 | [
"MIT"
] | null | null | null | src/gfx/UI/elements/Slider.cpp | Defalt8/axl.gl | 0028bcad1a86b048831e5fd61a436663fd38a763 | [
"MIT"
] | null | null | null | #include <axl.gl/gfx/ui/elements/Slider.hpp>
#include <axl.glfl/glCoreARB.hpp>
#include <axl.gl/input/Keyboard.hpp>
#include <axl.math/basic.hpp>
#define GLCLEARERROR() while(glGetError() != GL_NO_ERROR)
namespace GL {
using namespace axl::glfl;
using namespace axl::glfl::core::GL;
}
namespace axl {
namespace gl {... | 29.668657 | 125 | 0.724117 | Defalt8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.