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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75a164d4007883829cd61f5607ef3becd3d494d6 | 724 | cc | C++ | steam/asyncjob.cc | TBK/argonx | 0165caad474d83f020fe29d85e802fae9adecc23 | [
"BSD-2-Clause"
] | 22 | 2019-01-15T12:18:25.000Z | 2022-03-24T03:39:59.000Z | steam/asyncjob.cc | TBK/argonx | 0165caad474d83f020fe29d85e802fae9adecc23 | [
"BSD-2-Clause"
] | 3 | 2019-07-13T16:16:16.000Z | 2020-07-30T10:07:30.000Z | steam/asyncjob.cc | TBK/argonx | 0165caad474d83f020fe29d85e802fae9adecc23 | [
"BSD-2-Clause"
] | 2 | 2019-06-19T10:09:32.000Z | 2020-06-29T15:16:58.000Z | #include <precompiled.hh>
#include "asyncjob.hh"
namespace Steam {
static std::vector<AsyncJob> jobs;
AsyncJob NewAsyncJob(AsyncJob::Callback callback) {
auto jobId = JobManager::GetNextNonCallJobId();
auto r = AsyncJob{jobId, callback};
jobs.push_back(r);
return r;
}
void RunAsyncJobs() {
... | 21.294118 | 58 | 0.589779 | TBK |
75a4cf4f88bead27d7ad6c09dcf664a02bf5e92c | 1,459 | hxx | C++ | include/distant/wow/entities/detail/impl/player.hxx | Ostoic/distant_wow | d9ae4e6226c8d0981abc4dc3c941ea60d8e22e6b | [
"MIT"
] | 1 | 2022-02-19T21:37:43.000Z | 2022-02-19T21:37:43.000Z | include/distant/wow/entities/detail/impl/player.hxx | Ostoic/distant_wow | d9ae4e6226c8d0981abc4dc3c941ea60d8e22e6b | [
"MIT"
] | null | null | null | include/distant/wow/entities/detail/impl/player.hxx | Ostoic/distant_wow | d9ae4e6226c8d0981abc4dc3c941ea60d8e22e6b | [
"MIT"
] | 1 | 2022-02-19T21:37:46.000Z | 2022-02-19T21:37:46.000Z | #pragma once
#include "../player.hpp"
#include "../../../memory/operations.hpp"
#include "../../../offsets.hpp"
#include "../../../error/game_error.hpp"
namespace distant::wow::entities::detail
{
template <>
inline memory::address get_name_ptr<player>(wow::guid guid)
{
const auto mask = memory::read<wow::dword>(... | 32.422222 | 128 | 0.690199 | Ostoic |
b5a8a1ac3a4b8386793567fb5f5c8e3df08810e2 | 2,898 | cpp | C++ | SDK/ARKSurvivalEvolved_AnimNotify_PlayParticleEffect_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_AnimNotify_PlayParticleEffect_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_AnimNotify_PlayParticleEffect_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_AnimNotify_PlayParticleEffect_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//----------------------------------------------------... | 33.310345 | 170 | 0.729124 | 2bite |
b5b793b32977564b5d59ef6aae49482a58422ddf | 641 | cpp | C++ | Projects/JogoKartas/src/main.cpp | 0lilauro/PDSII | d9453ef7a053295b9ed9bc871a90e1952aa571ee | [
"MIT"
] | null | null | null | Projects/JogoKartas/src/main.cpp | 0lilauro/PDSII | d9453ef7a053295b9ed9bc871a90e1952aa571ee | [
"MIT"
] | null | null | null | Projects/JogoKartas/src/main.cpp | 0lilauro/PDSII | d9453ef7a053295b9ed9bc871a90e1952aa571ee | [
"MIT"
] | null | null | null | #include <iostream>
#include "Partida.hpp"
#include "Jogador.hpp"
using namespace std;
int main() {
int numero_cartas_por_jogador;
int numero_jogadores;
cin >> numero_jogadores;
cin >> numero_cartas_por_jogador;
Partida *p = new Partida(numero_jogadores);
string nomeJogador;
int numero_pontos_carta;
in... | 20.677419 | 66 | 0.694228 | 0lilauro |
b5b9be3b4ed25510e205e3ddeb9281f1583c1547 | 95 | cpp | C++ | Exercise one: Toolchain/helloThreads/newfile.cpp | LilyOSullivan/CDDLabs | 4f2c597b5d9429683b4f60ebd32bcd11a0f51829 | [
"MIT"
] | null | null | null | Exercise one: Toolchain/helloThreads/newfile.cpp | LilyOSullivan/CDDLabs | 4f2c597b5d9429683b4f60ebd32bcd11a0f51829 | [
"MIT"
] | null | null | null | Exercise one: Toolchain/helloThreads/newfile.cpp | LilyOSullivan/CDDLabs | 4f2c597b5d9429683b4f60ebd32bcd11a0f51829 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main(void)
{
int i;
for(i=0;i<10;i++)
printf("%d",i);
}
| 11.875 | 23 | 0.473684 | LilyOSullivan |
b5ba5a5e1c4328c3b399677985032754b2633537 | 153 | cc | C++ | src/circuit/cmt_circuit_builder.cc | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | null | null | null | src/circuit/cmt_circuit_builder.cc | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | null | null | null | src/circuit/cmt_circuit_builder.cc | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | 1 | 2020-01-16T07:49:03.000Z | 2020-01-16T07:49:03.000Z | #include "cmt_circuit_builder.hh"
CMTCircuitBuilder::
~CMTCircuitBuilder()
{ }
void CMTCircuitBuilder::
destroyCircuit(CMTCircuit* c)
{
delete c;
}
| 11.769231 | 33 | 0.751634 | hyraxZK |
b5bb4cbaceb3b6811cb0a48d68fbf3fec159f2f2 | 1,441 | cpp | C++ | recursion/NumberofIslands_200.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | recursion/NumberofIslands_200.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | recursion/NumberofIslands_200.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | /* ***********************************************************************
> File Name: NumberofIslands_200.cpp
> Author: zzy
> Mail: 942744575@qq.com
> Created Time: Thu 08 Aug 2019 11:22:34 AM CST
********************************************************************** */
#include <stdio.h>
#include <vecto... | 19.472973 | 93 | 0.521166 | obviouskkk |
b5bcd2817b54740bef2b5cc8f67613308cb8ae5a | 3,607 | hpp | C++ | inc/Hazen/FrictionMethods.hpp | barne856/Hazen | afac525caa8d5229d6ce21248027d680cc5a620d | [
"MIT"
] | null | null | null | inc/Hazen/FrictionMethods.hpp | barne856/Hazen | afac525caa8d5229d6ce21248027d680cc5a620d | [
"MIT"
] | null | null | null | inc/Hazen/FrictionMethods.hpp | barne856/Hazen | afac525caa8d5229d6ce21248027d680cc5a620d | [
"MIT"
] | null | null | null | #ifndef HAZEN_FRICTION_METHODS
#define HAZEN_FRICTION_METHODS
// HAZEN
#include "Hazen/HydraulicShapes.hpp"
namespace hazen {
/**
* @brief An Abstract Friction Method used to calculate head losses in the
* Passage Hydraulic Link.
*/
class FrictionMethod {
public:
/**
* @brief Compute the slope of the Energy G... | 31.365217 | 80 | 0.703077 | barne856 |
b5befa808059182fe6ed1bf1e778c49c09380dcc | 11,293 | cpp | C++ | Monarch-Connect/Nodeeditor/src/NodeGraphicsObject.cpp | Toms42/Monarch-Connect | 3ec456c7812caccc9de4a7f99bd47a16316e7667 | [
"MIT"
] | 1 | 2019-02-19T19:33:00.000Z | 2019-02-19T19:33:00.000Z | Monarch-Connect/Nodeeditor/src/NodeGraphicsObject.cpp | Toms42/Monarch-Connect | 3ec456c7812caccc9de4a7f99bd47a16316e7667 | [
"MIT"
] | 5 | 2019-01-09T06:10:02.000Z | 2019-02-02T06:31:31.000Z | Monarch-Connect/Nodeeditor/src/NodeGraphicsObject.cpp | Toms42/Monarch-Connect | 3ec456c7812caccc9de4a7f99bd47a16316e7667 | [
"MIT"
] | null | null | null | #include "NodeGraphicsObject.hpp"
#include <cstdlib>
#include <iostream>
#include <QtWidgets/QGraphicsEffect>
#include <QtWidgets/QtWidgets>
#include "ConnectionGraphicsObject.hpp"
#include "ConnectionState.hpp"
#include "FlowScene.hpp"
#include "NodePainter.hpp"
#include "FlowSceneModel.hpp"
#include "NodeConnect... | 26.447307 | 81 | 0.647481 | Toms42 |
b5c009d49c579ef5d675ef420b9f3b3af0f3da80 | 1,002 | cpp | C++ | src/CrashRptWrapper.cpp | nCine/ncParticleEditor | 3e744feb2ece1ec395c02628773e212b18f01162 | [
"MIT"
] | 7 | 2019-06-07T07:50:59.000Z | 2021-12-10T20:38:48.000Z | src/CrashRptWrapper.cpp | nCine/ncParticleEditor | 3e744feb2ece1ec395c02628773e212b18f01162 | [
"MIT"
] | null | null | null | src/CrashRptWrapper.cpp | nCine/ncParticleEditor | 3e744feb2ece1ec395c02628773e212b18f01162 | [
"MIT"
] | 3 | 2019-12-08T11:32:15.000Z | 2020-11-26T11:53:25.000Z | #include "CrashRpt.h"
#include <stdio.h>
#include <tchar.h>
#include "CrashRptWrapper.h"
int CrashRptWrapper::install()
{
CR_INSTALL_INFO info;
memset(&info, 0, sizeof(CR_INSTALL_INFO));
info.cb = sizeof(CR_INSTALL_INFO);
info.pszAppName = _T(CrashRptWrapper::appName);
info.pszAppVersion = _T(CrashRptWrapper::ap... | 23.302326 | 68 | 0.736527 | nCine |
b5cbf26352660fff17e1cce2a2ddc092f152345d | 1,244 | cpp | C++ | include/asioext/detail/impl/win_path.cpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 17 | 2018-04-13T00:38:55.000Z | 2022-01-21T08:38:36.000Z | include/asioext/detail/impl/win_path.cpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 4 | 2017-03-16T03:34:38.000Z | 2020-05-08T00:05:51.000Z | include/asioext/detail/impl/win_path.cpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 5 | 2017-09-06T15:56:04.000Z | 2021-09-14T07:38:02.000Z | /// @copyright Copyright (c) 2015 Tim Niederhausen (tim@rnc-ag.de)
/// 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 "asioext/detail/win_path.hpp"
#include "asioext/detail/error.hpp"
#include <windows.h>
... | 25.387755 | 91 | 0.647106 | zweistein-frm2 |
b5cd5ed893535932712ac661a6939930b707839c | 12,034 | cc | C++ | xarm_api/src/xarm_core/instruction/uxbus_cmd.cc | stevewen/xarm_ros | 93770d50faf83be627ad16c268c7477ba72187c5 | [
"BSD-3-Clause"
] | null | null | null | xarm_api/src/xarm_core/instruction/uxbus_cmd.cc | stevewen/xarm_ros | 93770d50faf83be627ad16c268c7477ba72187c5 | [
"BSD-3-Clause"
] | null | null | null | xarm_api/src/xarm_core/instruction/uxbus_cmd.cc | stevewen/xarm_ros | 93770d50faf83be627ad16c268c7477ba72187c5 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright 2017 UFACTORY Inc. All Rights Reserved.
*
* Software License Agreement (BSD License)
*
* Author: Jimy Zhang <jimy92@163.com>
============================================================================*/
#include "xarm/instruction/uxbus_cmd.h"
#include "xarm/instruction/servo3_config.h"
#inclu... | 28.248826 | 80 | 0.650241 | stevewen |
b5cd79a05b721e64c5f9a08ccd37f1c95e5f6e76 | 3,585 | cc | C++ | crypto/uuid.cc | stablecc/scclib | cedcb3b37a814d3a393e128db7aa9753f518cbaf | [
"BSD-3-Clause"
] | null | null | null | crypto/uuid.cc | stablecc/scclib | cedcb3b37a814d3a393e128db7aa9753f518cbaf | [
"BSD-3-Clause"
] | 10 | 2022-02-27T18:52:11.000Z | 2022-03-21T14:11:35.000Z | crypto/uuid.cc | stablecc/scclib | cedcb3b37a814d3a393e128db7aa9753f518cbaf | [
"BSD-3-Clause"
] | null | null | null |
/*
BSD 3-Clause License
Copyright (c) 2022, Stable Cloud Computing, Inc.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions... | 28.228346 | 80 | 0.67894 | stablecc |
b5cda330eefe38e66510d1bc15d4e51a916d1222 | 543 | hpp | C++ | liboh/include/oh/ProxyLightObject.hpp | princeofcode/sirikata | 41d33a574934aea2d8a30ce3514509b7a4ec182e | [
"BSD-3-Clause"
] | 1 | 2016-05-09T07:55:37.000Z | 2016-05-09T07:55:37.000Z | liboh/include/oh/ProxyLightObject.hpp | princeofcode/sirikata | 41d33a574934aea2d8a30ce3514509b7a4ec182e | [
"BSD-3-Clause"
] | null | null | null | liboh/include/oh/ProxyLightObject.hpp | princeofcode/sirikata | 41d33a574934aea2d8a30ce3514509b7a4ec182e | [
"BSD-3-Clause"
] | null | null | null | #ifndef _SIRIKATA_PROXY_LIGHT_OBJECT_HPP_
#define _SIRIKATA_PROXY_LIGHT_OBJECT_HPP_
#include "LightListener.hpp"
#include "ProxyPositionObject.hpp"
namespace Sirikata {
/**
* This class represents a ProxyObject that holds a LightInfo
*/
class SIRIKATA_OH_EXPORT ProxyLightObject
: public MarkovianProvider1<LightList... | 27.15 | 84 | 0.779006 | princeofcode |
b5cdb76ac53f7881584cc514459e4a5c2d0db674 | 3,520 | cpp | C++ | ThreadTaxi.cpp | MapleStoryGameHack/Deprecated-RwBox-Plus | df927665c316b43791c4b72e2ac8a00789d05877 | [
"MIT"
] | 1 | 2021-07-11T13:01:57.000Z | 2021-07-11T13:01:57.000Z | ThreadTaxi.cpp | MapleStoryGameHack/Deprecated-RwBox-Plus | df927665c316b43791c4b72e2ac8a00789d05877 | [
"MIT"
] | null | null | null | ThreadTaxi.cpp | MapleStoryGameHack/Deprecated-RwBox-Plus | df927665c316b43791c4b72e2ac8a00789d05877 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#pragma hdrstop
#include "Map.h";
#include "ThreadTaxi.h"
#include "Pointer.h"
#include "Function.h"
#include "WindowHook.h"
//---------------------------------------------------------------------------
TThreadTaxi* ThreadTaxi ;
__... | 21.728395 | 93 | 0.578977 | MapleStoryGameHack |
b5ce5589a216c73c7dcfc97d020e48d119c9b4cc | 622 | cc | C++ | codeforces/1130/b.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | codeforces/1130/b.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | codeforces/1130/b.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://codeforces.com/contest/1130/problem/B
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using vi=vector<ll>;
using vvi=vector<vi>;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
vvi a(n);
for(ll i=0;i<2*n;i++){
ll x;
cin>>x;
x--;
a[x].push_back(i);
... | 17.277778 | 57 | 0.512862 | Ashindustry007 |
b5d09e10d87dd250f44f3d9d73afb41ca07c0cb9 | 1,028 | hpp | C++ | Keys.hpp | dnasdw/ctrcdnfetch | f3a4dcfd5f6e615635e1acea8746cd67e5e83643 | [
"MIT"
] | 1 | 2020-10-26T17:13:32.000Z | 2020-10-26T17:13:32.000Z | Keys.hpp | dnasdw/ctrcdnfetch | f3a4dcfd5f6e615635e1acea8746cd67e5e83643 | [
"MIT"
] | null | null | null | Keys.hpp | dnasdw/ctrcdnfetch | f3a4dcfd5f6e615635e1acea8746cd67e5e83643 | [
"MIT"
] | null | null | null | #ifndef __KEYS_HPP__
#define __KEYS_HPP__
#include "types.h"
namespace NintendoData {
namespace KeyUtils {
namespace Storage {
enum KeyType {
KeyX,
KeyY,
KeyNormal
};
void ReloadStorage();
const u8* GetKey(int keyslot, KeyType type = KeyX, bool retail = true);
const u8* GetKeyX(int keyslo... | 35.448276 | 103 | 0.703307 | dnasdw |
b5d1b131006a5d8e01b001fb277f2fd11aaf7080 | 1,411 | cpp | C++ | tests/module/object_test.cpp | mambaru/wfc | 170bf87302487c0cedc40b47c84447a765894774 | [
"MIT"
] | 1 | 2018-10-18T10:15:53.000Z | 2018-10-18T10:15:53.000Z | tests/module/object_test.cpp | mambaru/wfc | 170bf87302487c0cedc40b47c84447a765894774 | [
"MIT"
] | 7 | 2019-12-04T23:36:03.000Z | 2021-04-21T12:37:07.000Z | tests/module/object_test.cpp | mambaru/wfc | 170bf87302487c0cedc40b47c84447a765894774 | [
"MIT"
] | null | null | null | #define IOW_DISABLE_LOG
#include <iow/logger.hpp>
#include <wfc/domain_object.hpp>
#include <wfc/module/instance.hpp>
#include <wfc/module/singleton.hpp>
#include <wfc/module/multiton.hpp>
#include <fas/utility/ignore_args.hpp>
struct itest:
public wfc::iinterface
{
~itest(){}
};
struct options
{
int test = 33... | 18.565789 | 77 | 0.669029 | mambaru |
b5d417695dc6a5ef7d643a1cf3c2f9178f0f0f48 | 18,707 | cpp | C++ | gearoenix/render/graph/tree/gx-rnd-gr-tr-pbr.cpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/render/graph/tree/gx-rnd-gr-tr-pbr.cpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/render/graph/tree/gx-rnd-gr-tr-pbr.cpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #include "gx-rnd-gr-tr-pbr.hpp"
#include "../../../core/asset/gx-cr-asset-manager.hpp"
#include "../../../core/sync/gx-cr-sync-kernel-workers.hpp"
#include "../../../physics/gx-phs-engine.hpp"
#include "../../../system/gx-sys-application.hpp"
#include "../../camera/gx-rnd-cmr-perspective.hpp"
#include "../../engine/gx-... | 41.943946 | 158 | 0.600043 | Hossein-Noroozpour |
b5e06ebbf8a12bc929daf4a1551f54864f3ecc8a | 1,230 | cpp | C++ | Longest Subarray of 1's After Deleting One Element.cpp | PoojaRani24/Leetcode_Monthly_Challenge | 9ad56cb332b33bf8ce1c4ef5e64f92a1599e598b | [
"MIT"
] | null | null | null | Longest Subarray of 1's After Deleting One Element.cpp | PoojaRani24/Leetcode_Monthly_Challenge | 9ad56cb332b33bf8ce1c4ef5e64f92a1599e598b | [
"MIT"
] | null | null | null | Longest Subarray of 1's After Deleting One Element.cpp | PoojaRani24/Leetcode_Monthly_Challenge | 9ad56cb332b33bf8ce1c4ef5e64f92a1599e598b | [
"MIT"
] | null | null | null | class Solution {
public:
int longestSubarray(vector<int>& nums) {
vector<pair<int,int>>v;
int count=0;
for(int i=0;i<nums.size();){
if(nums[i]==0)
i++;
else{
int start=i;
int c=0;
while(i<nums.size() && n... | 26.73913 | 55 | 0.339837 | PoojaRani24 |
b5e3847310e58f59993c42ded3f4625891223f52 | 1,062 | cpp | C++ | CsPlugin/Source/CsEditor/Public/DetailCustomizations/EnumStruct/Team/ECsTeamCustomization.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsPlugin/Source/CsEditor/Public/DetailCustomizations/EnumStruct/Team/ECsTeamCustomization.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsPlugin/Source/CsEditor/Public/DetailCustomizations/EnumStruct/Team/ECsTeamCustomization.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "DetailCustomizations/EnumStruct/Team/ECsTeamCustomization.h"
// Types
#include "Team/CsTypes_Team.h"
#define LOCTEXT_NAMESPACE "ECsTeamCustomization"
#define EnumMapType EMCsTeam
#define EnumType FECsTeam
FECsTeamCustomization::FECsTeamCus... | 25.285714 | 96 | 0.834275 | closedsum |
b5e4860f8b8f0f766cdf780d3f4708b774d987ed | 3,264 | hpp | C++ | include/Pomdog/Graphics/DepthStencilDescription.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | include/Pomdog/Graphics/DepthStencilDescription.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | include/Pomdog/Graphics/DepthStencilDescription.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_DEPTHSTENCILDESCRIPTION_E14C5D77_HPP
#define POMDOG_DEPTHSTENCILDESCRIPTION_E14C5D77_HPP
#include "ComparisonFunction.hpp"
#include "DepthStencilOperation.hpp"
#include "Pomdog/Basic/Export.hpp"
... | 35.478261 | 74 | 0.704044 | bis83 |
b5ece2947cc73f1bb321c8c8e02d09bc2888ca5f | 1,916 | cpp | C++ | src/SolarChargeSystem/lib/SerialReceiver/SerialReceiver.cpp | jack96013/Solar-Charge-System | e64c5fece5bff9b7a7f1c7d9b92235ed9e391812 | [
"MIT"
] | null | null | null | src/SolarChargeSystem/lib/SerialReceiver/SerialReceiver.cpp | jack96013/Solar-Charge-System | e64c5fece5bff9b7a7f1c7d9b92235ed9e391812 | [
"MIT"
] | null | null | null | src/SolarChargeSystem/lib/SerialReceiver/SerialReceiver.cpp | jack96013/Solar-Charge-System | e64c5fece5bff9b7a7f1c7d9b92235ed9e391812 | [
"MIT"
] | null | null | null | #include "SerialReceiver.h"
SerialReceiver::SerialReceiver()
{
}
void SerialReceiver::begin(Stream& serial,uint16_t bufferLength)
{
this->serial = &serial;
receiveBufferLength = bufferLength;
receiveBuffer.reserve(bufferLength + 1);
//serial.println("Ready !");
}
void SerialReceiver::run()
... | 20.602151 | 79 | 0.600731 | jack96013 |
b5eec152c2d814fe6deada75cf753da496deb74c | 362 | cpp | C++ | Source/MarchingCubes/MarchingCubesGameModeBase.cpp | Styvak/Marching-Cubes-UE4 | 2ef8266f0a63294fbd1789724281b4d87e9b8daa | [
"MIT"
] | 2 | 2020-04-19T12:07:33.000Z | 2020-05-15T21:17:48.000Z | Source/MarchingCubes/MarchingCubesGameModeBase.cpp | Styvak/Marching-Cubes-UE4 | 2ef8266f0a63294fbd1789724281b4d87e9b8daa | [
"MIT"
] | null | null | null | Source/MarchingCubes/MarchingCubesGameModeBase.cpp | Styvak/Marching-Cubes-UE4 | 2ef8266f0a63294fbd1789724281b4d87e9b8daa | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "MarchingCubesGameModeBase.h"
#include "BlockManager.h"
void AMarchingCubesGameModeBase::InitGame(const FString& MapName, const FString& Options, FString& ErrorMessage)
{
Super::InitGame(MapName, Options, ErrorMessage);
BlockM... | 30.166667 | 112 | 0.792818 | Styvak |
b5f031cd0c6b4408ae9cc3709dfb9e10e6935c84 | 2,228 | hpp | C++ | combinator/aggregate.hpp | kindone/proptest | 174981600571b75bbd9ed69f56453c9994d2878c | [
"MIT"
] | null | null | null | combinator/aggregate.hpp | kindone/proptest | 174981600571b75bbd9ed69f56453c9994d2878c | [
"MIT"
] | null | null | null | combinator/aggregate.hpp | kindone/proptest | 174981600571b75bbd9ed69f56453c9994d2878c | [
"MIT"
] | null | null | null | #pragma once
#include "../Shrinkable.hpp"
#include "../Random.hpp"
#include "../GenBase.hpp"
#include "../util/function_traits.hpp"
#include "../util/std.hpp"
#include "../generator/integral.hpp"
/**
* @file aggregate.hpp
* @brief Generator combinator for aggregating sequencially generated values into a value with ... | 37.762712 | 117 | 0.686266 | kindone |
b5f3921e8c1e683e8363151dbf1fc343f6525cc2 | 502 | cpp | C++ | src/nimbro/motion/gait_engines/feed_gait/src/kinematics/feed_kinematics_base.cpp | ssr-yuki/humanoid_op_ros | e8be8c445ead8c0d470c7998fdc28446ca9eb47a | [
"BSD-3-Clause"
] | 45 | 2015-11-04T01:29:12.000Z | 2022-02-11T05:37:42.000Z | src/nimbro/motion/gait_engines/feed_gait/src/kinematics/feed_kinematics_base.cpp | ssr-yuki/humanoid_op_ros | e8be8c445ead8c0d470c7998fdc28446ca9eb47a | [
"BSD-3-Clause"
] | 1 | 2016-08-10T04:00:32.000Z | 2016-08-10T12:59:36.000Z | src/nimbro/motion/gait_engines/feed_gait/src/kinematics/feed_kinematics_base.cpp | ssr-yuki/humanoid_op_ros | e8be8c445ead8c0d470c7998fdc28446ca9eb47a | [
"BSD-3-Clause"
] | 20 | 2016-03-05T14:28:45.000Z | 2021-01-30T00:50:47.000Z | // Feedback gait kinematics base class
// Author: Philipp Allgeuer <pallgeuer@ais.uni-bonn.de>
// Includes
#include <feed_gait/kinematics/feed_kinematics_base.h>
// Namespaces
using namespace feed_gait;
//
// FeedKinematicsBase class
//
// Gait halt pose function: PoseCommand
void FeedKinematicsBase::getHaltPose(Po... | 22.818182 | 65 | 0.782869 | ssr-yuki |
b5f41904025ba35fbe68d8a502804c774be8181a | 191 | hpp | C++ | src/AudioLib/EffectType.hpp | CircuitMess/JayD-Library | f90bbb72224681a972cd2b535f80925a3319e631 | [
"MIT"
] | 2 | 2021-08-19T17:23:46.000Z | 2021-10-10T17:11:04.000Z | src/AudioLib/EffectType.hpp | CircuitMess/JayD-Library | f90bbb72224681a972cd2b535f80925a3319e631 | [
"MIT"
] | null | null | null | src/AudioLib/EffectType.hpp | CircuitMess/JayD-Library | f90bbb72224681a972cd2b535f80925a3319e631 | [
"MIT"
] | 1 | 2021-11-21T16:02:06.000Z | 2021-11-21T16:02:06.000Z | #ifndef JAYD_LIBRARY_EFFECTTYPE_HPP
#define JAYD_LIBRARY_EFFECTTYPE_HPP
enum EffectType {
NONE, SPEED, LOWPASS, HIGHPASS, REVERB, BITCRUSHER, COUNT
};
#endif //JAYD_LIBRARY_EFFECTTYPE_HPP
| 21.222222 | 58 | 0.82199 | CircuitMess |
b5f4e469e002fba53bf7f9bdfcccb3e86bcabefa | 2,552 | cpp | C++ | uva/uva1588/main.cpp | oklen/my-soluation | 56d6c32f0a328332b090f9d633365b75605f4616 | [
"MIT"
] | null | null | null | uva/uva1588/main.cpp | oklen/my-soluation | 56d6c32f0a328332b090f9d633365b75605f4616 | [
"MIT"
] | null | null | null | uva/uva1588/main.cpp | oklen/my-soluation | 56d6c32f0a328332b090f9d633365b75605f4616 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
constexpr int intsize = sizeof(int);
int fillstr(char *ar)
{
int count = 0;
char cache = getchar();
if(cache == EOF)
exit(0);
while(cache!='\n')
{
ar[count++] = cache;
cache = getchar();
}
return count;
}
i... | 22 | 107 | 0.375 | oklen |
b5f673fb80ce02ef3b53323ff159b7c8e8907e38 | 1,197 | cpp | C++ | Records.cpp | pmwasson/LightCycle | 42e9b7e0fe0e17ee231f43577b222288306be238 | [
"MIT"
] | 2 | 2019-12-07T19:37:31.000Z | 2020-03-18T13:33:46.000Z | Records.cpp | pmwasson/LightCycle | 42e9b7e0fe0e17ee231f43577b222288306be238 | [
"MIT"
] | null | null | null | Records.cpp | pmwasson/LightCycle | 42e9b7e0fe0e17ee231f43577b222288306be238 | [
"MIT"
] | 1 | 2020-06-30T15:46:03.000Z | 2020-06-30T15:46:03.000Z | #include "Records.h"
void Records::validate() {
if (checksum != calcChecksum()) {
edgeRaceMinutes = 99;
edgeRaceSeconds = 0;
edgeRaceSeed = 0xFADED;
crazyCourierScore = 0;
crazyCourierSeed = 0xDECAF;
checksum = calcChecksum();
}
}
bool Records::setER(uint32_t seed, uint8_t minutes, uint8_t... | 23.019231 | 101 | 0.619048 | pmwasson |
b5fd38e38aba66f3e4f63ed577a561d4dfae7516 | 3,079 | cpp | C++ | redis-cli/command.cpp | mobile-pos/amp | efe4eb4fda1e6f1ad2ee6113c3bf0a9a61068763 | [
"MIT"
] | 6 | 2020-09-12T08:16:46.000Z | 2020-11-19T04:05:35.000Z | redis-cli/command.cpp | mobile-pos/amp | efe4eb4fda1e6f1ad2ee6113c3bf0a9a61068763 | [
"MIT"
] | null | null | null | redis-cli/command.cpp | mobile-pos/amp | efe4eb4fda1e6f1ad2ee6113c3bf0a9a61068763 | [
"MIT"
] | 2 | 2020-12-11T02:27:56.000Z | 2021-11-18T02:15:01.000Z | #include "command.h"
using namespace Redis;
Command::Command(QString commandName, QObject *parent) : QObject(parent),
commandName(commandName)
{
arguments << commandName;
}
void Command::addArgument(QVariant argument)
{
arguments << argument;
}
void Command::addArgumentStrings(QStringList arguments)
{
... | 18.889571 | 73 | 0.683664 | mobile-pos |
bd0403e8ed23cf7df3d81530bfdbea5c6b1f7840 | 1,564 | cpp | C++ | tools/deps/MachoParser/src/MachoTools.cpp | streamwater/HookZz | b09b89ea520c442142bf93b32c1a92b082715d59 | [
"Apache-2.0"
] | 4 | 2019-04-23T14:44:50.000Z | 2020-11-05T06:52:37.000Z | tools/deps/MachoParser/src/MachoTools.cpp | streamwater/HookZz | b09b89ea520c442142bf93b32c1a92b082715d59 | [
"Apache-2.0"
] | null | null | null | tools/deps/MachoParser/src/MachoTools.cpp | streamwater/HookZz | b09b89ea520c442142bf93b32c1a92b082715d59 | [
"Apache-2.0"
] | 4 | 2019-04-23T08:26:33.000Z | 2021-09-21T07:45:19.000Z | // Copyright 2017 jmpews
//
// 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 ... | 30.666667 | 78 | 0.698849 | streamwater |
bd0594d47c0c5ad4f3923d2845466807efb29609 | 707 | cpp | C++ | 2nd/378_kth_smallest_element_in_a_sorted_matrix.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/378_kth_smallest_element_in_a_sorted_matrix.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/378_kth_smallest_element_in_a_sorted_matrix.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
class Solution {
public:
int kthSmallest(vector<vector<int>>& matrix, int k) {
if (matrix.empty())
return 0;
int left = matrix[0][0], right = matrix.back().back();
while (left < right) {
int cnt = 0;
... | 23.566667 | 106 | 0.472419 | buptlxb |
bd07027f10655ddf7e7644cece5a940dd0649e0d | 7,191 | cpp | C++ | ShaderGLLib/Material.cpp | EPAC-Saxon/advance-obj-JulienBaumgartner | 884aaf5a960f4f9575b0e9028b3234eacbfbb75b | [
"MIT"
] | null | null | null | ShaderGLLib/Material.cpp | EPAC-Saxon/advance-obj-JulienBaumgartner | 884aaf5a960f4f9575b0e9028b3234eacbfbb75b | [
"MIT"
] | null | null | null | ShaderGLLib/Material.cpp | EPAC-Saxon/advance-obj-JulienBaumgartner | 884aaf5a960f4f9575b0e9028b3234eacbfbb75b | [
"MIT"
] | null | null | null | #include "Material.h"
#include <iterator>
#include <fstream>
#include <sstream>
namespace sgl {
std::map<std::string, std::shared_ptr<Material>> LoadMaterialsFromMtl(std::string file)
{
std::map<std::string, std::shared_ptr<Material>> materials;
std::ifstream ifs;
ifs.open(file, std::ifstream::in);
if (!ifs... | 22.54232 | 119 | 0.590738 | EPAC-Saxon |
bd07c25d6feec31f895d37fbd5aa4cc862c65811 | 1,578 | cpp | C++ | ModernOpenGLUdemy/main.cpp | killerasus/ModernOpenGL | 3bde26a468e945282cd0f8366939bd6c2730ab05 | [
"MIT"
] | 2 | 2019-10-16T00:05:57.000Z | 2019-10-16T00:17:25.000Z | ModernOpenGLUdemy/main.cpp | killerasus/ModernOpenGL | 3bde26a468e945282cd0f8366939bd6c2730ab05 | [
"MIT"
] | null | null | null | ModernOpenGLUdemy/main.cpp | killerasus/ModernOpenGL | 3bde26a468e945282cd0f8366939bd6c2730ab05 | [
"MIT"
] | null | null | null | #include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
const GLint WIDTH = 800, HEIGHT = 600;
int main()
{
if (!glfwInit())
{
std::cout << "GLFW initialization failed!" << std::endl;
glfwTerminate();
return 1;
}
// Setup GLFW window properties
// OpenGL version
glfwWindowHint(GLFW_CONTEXT_VERSI... | 22.542857 | 91 | 0.720532 | killerasus |
bd0c7f26e20517c38fe3a380aa92afbc081f20d4 | 4,847 | cpp | C++ | src/api/API.cpp | myxor/ceema | e0a9f299fd488da38a9a1492502017995d59e183 | [
"Apache-2.0"
] | 19 | 2018-08-31T12:52:13.000Z | 2021-08-11T18:05:42.000Z | src/api/API.cpp | myxor/ceema | e0a9f299fd488da38a9a1492502017995d59e183 | [
"Apache-2.0"
] | 4 | 2019-02-01T09:12:56.000Z | 2022-01-14T21:36:17.000Z | src/api/API.cpp | myxor/ceema | e0a9f299fd488da38a9a1492502017995d59e183 | [
"Apache-2.0"
] | 5 | 2021-03-28T18:06:21.000Z | 2022-01-13T17:46:12.000Z | /**
* Copyright 2017 Harold Bruintjes
*
* 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... | 42.147826 | 110 | 0.706416 | myxor |
bd0e127ea93ad4b923f4790be65c14f7046fd2d5 | 4,668 | cpp | C++ | Visual Mercutio/zModelBP/PSS_RiskNewFileDlg.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zModelBP/PSS_RiskNewFileDlg.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zModelBP/PSS_RiskNewFileDlg.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_RiskNewFileDlg --------------------------------------------------*
****************************************************************************
* Description : Provides a create a new risk file dialog box *
* Devel... | 32.643357 | 81 | 0.477721 | Jeanmilost |
bd135eb20b929718d7642e8d65a5bd52e3093f55 | 438 | cpp | C++ | src/generate_ua_nodeset2.cpp | Jokymon/TinyModelCompiler | dd0251cd8c1915e5615f43348c03f4176d9e90af | [
"MIT"
] | 1 | 2020-01-03T16:18:47.000Z | 2020-01-03T16:18:47.000Z | src/generate_ua_nodeset2.cpp | Jokymon/TinyModelCompiler | dd0251cd8c1915e5615f43348c03f4176d9e90af | [
"MIT"
] | null | null | null | src/generate_ua_nodeset2.cpp | Jokymon/TinyModelCompiler | dd0251cd8c1915e5615f43348c03f4176d9e90af | [
"MIT"
] | 1 | 2020-01-30T20:54:12.000Z | 2020-01-30T20:54:12.000Z | #include "ua_nodeset2_generator.h"
#include <CLI/CLI.hpp>
#include <iostream>
#include <string>
int main(int argc, char **argv)
{
CLI::App app;
std::string docname;
app.add_option("docname", docname, "Path to the Opc.Ua.NodeSet2.xml input file")
->required();
CLI11_PARSE(app, argc, argv);
... | 19.043478 | 84 | 0.680365 | Jokymon |
bd14c36f8c89d0bc09bbf909b0862b8d22e91b02 | 1,980 | cpp | C++ | src/vega/pathname.cpp | project-eutopia/vega | c7b536c5e949094a908fa8f378729dbffc657f4a | [
"MIT"
] | 18 | 2018-01-23T12:28:13.000Z | 2022-02-13T12:23:21.000Z | src/vega/pathname.cpp | project-eutopia/vega | c7b536c5e949094a908fa8f378729dbffc657f4a | [
"MIT"
] | 2 | 2018-11-29T01:51:25.000Z | 2022-03-22T14:14:22.000Z | src/vega/pathname.cpp | project-eutopia/vega | c7b536c5e949094a908fa8f378729dbffc657f4a | [
"MIT"
] | 6 | 2019-02-01T09:54:44.000Z | 2022-01-09T22:13:54.000Z | #include "vega/pathname.h"
namespace vega {
Pathname::Pathname() noexcept
:
full_name_(),
last_slash_(std::string::npos),
last_dot_(std::string::npos)
{}
Pathname::Pathname(const std::string& full_name) noexcept
:
full_name_(full_name),
last_slash_(std::string::npos),
... | 26.052632 | 91 | 0.621717 | project-eutopia |
bd1545f163aa78bc26da6765ece2afb2198c552e | 652 | hpp | C++ | src/Dispatcher.hpp | tblyons/goon | fd5fbdda14fe1b4869e365c7cebec2bcb7de06e3 | [
"Unlicense"
] | 1 | 2022-02-11T21:25:53.000Z | 2022-02-11T21:25:53.000Z | apps/Goon/src/Dispatcher.hpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 15 | 2021-08-21T13:41:29.000Z | 2022-03-08T14:13:43.000Z | apps/Goon/src/Dispatcher.hpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | null | null | null | // License: The Unlicense (https://unlicense.org)
#ifndef GOON_DISPATCHER_HPP
#define GOON_DISPATCHER_HPP
#include <SDL2/SDL.h>
#include <functional>
#include <vector>
struct Dispatcher {
Dispatcher(void);
bool KeepRunning(void) const;
void ProcessEvents(void);
void AddKeyboardListener(std::function<void(... | 28.347826 | 70 | 0.760736 | tblyons |
bd18b866b9459091ef5ec62a3e6f9a2319c38bf5 | 1,127 | cc | C++ | src/02_management/12_move.cc | chanchann/lighao | 5c06c4dfcf93b9dd59522971f9c939af128b9378 | [
"MIT"
] | 1 | 2021-01-18T02:37:03.000Z | 2021-01-18T02:37:03.000Z | src/02_management/12_move.cc | chanchann/Thread | 5c06c4dfcf93b9dd59522971f9c939af128b9378 | [
"MIT"
] | null | null | null | src/02_management/12_move.cc | chanchann/Thread | 5c06c4dfcf93b9dd59522971f9c939af128b9378 | [
"MIT"
] | null | null | null | /*
下面实现一个为std::thread添加了析构行为的joining_thread
TODO
*/
#include <iostream>
#include <thread>
class A {
std::thread t;
public:
A() noexcept = default;
template<typename T, typename... Ts>
explicit A(T&& f, Ts&&... args) :
t(std::forward<T>(f), std::forward<Ts>(args)...)
{}
explicit ... | 22.54 | 66 | 0.535936 | chanchann |
bd1939be39508ed63c7723040f71afabc12c94c6 | 7,116 | hpp | C++ | engine/alice/application.hpp | stereoboy/isaac_sdk_20191213 | 73c863254e626c8d498870189fbfb20be4e10fb3 | [
"FSFAP"
] | 1 | 2020-04-14T13:55:16.000Z | 2020-04-14T13:55:16.000Z | engine/alice/application.hpp | stereoboy/isaac_sdk_20191213 | 73c863254e626c8d498870189fbfb20be4e10fb3 | [
"FSFAP"
] | 4 | 2020-09-25T22:34:29.000Z | 2022-02-09T23:45:12.000Z | engine/alice/application.hpp | stereoboy/isaac_sdk_20191213 | 73c863254e626c8d498870189fbfb20be4e10fb3 | [
"FSFAP"
] | 1 | 2020-07-02T11:51:17.000Z | 2020-07-02T11:51:17.000Z | /*
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 36.870466 | 100 | 0.723159 | stereoboy |
bd1da0dfad056a510f059f4a7642bff52a7cf4e3 | 3,240 | cpp | C++ | tc 160+/MagicBoxes.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/MagicBoxes.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/MagicBoxes.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 <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
/*
NE RADI
*/
bool canMake[31][31][1<<15];
bool done[31][31][1<<15];
bool go(int x, int y, int mask) {
assert(x>=0 && y>=0)... | 27.931034 | 309 | 0.517901 | ibudiselic |
bd226bd072be31791ea4537446d0236960feab71 | 421 | cpp | C++ | Level-1/9. Recursion on the way up/Print_Permutations.cpp | anubhvshrma18/PepCoding | 1d5ebd43e768ad923bf007c8dd584e217df1f017 | [
"Apache-2.0"
] | 22 | 2021-06-02T04:25:55.000Z | 2022-01-30T06:25:07.000Z | Level-1/9. Recursion on the way up/Print_Permutations.cpp | amitdubey6261/PepCoding | 1d5ebd43e768ad923bf007c8dd584e217df1f017 | [
"Apache-2.0"
] | 2 | 2021-10-17T19:26:10.000Z | 2022-01-14T18:18:12.000Z | Level-1/9. Recursion on the way up/Print_Permutations.cpp | amitdubey6261/PepCoding | 1d5ebd43e768ad923bf007c8dd584e217df1f017 | [
"Apache-2.0"
] | 8 | 2021-07-21T09:55:15.000Z | 2022-01-31T10:32:51.000Z | #include <iostream>
using namespace std;
void printPermutations(string str, string asf){
// write your code here
if(str.length()==0){
cout << asf << endl;
}
for(int i=0;i<str.length();i++){
swap(str[0],str[i]);
string y="";
y+=str[0];
printPermutations(str.substr... | 18.304348 | 47 | 0.539192 | anubhvshrma18 |
bd2bc1ea4e7c4ac7babe7112e769ae65f6f92ed4 | 2,308 | cpp | C++ | core/utils/src/TimeTracker.cpp | nicsor/BreadCrumbs | 9ee5111d87d7a71b0a3910c14c4751eb3f1635ab | [
"MIT"
] | null | null | null | core/utils/src/TimeTracker.cpp | nicsor/BreadCrumbs | 9ee5111d87d7a71b0a3910c14c4751eb3f1635ab | [
"MIT"
] | null | null | null | core/utils/src/TimeTracker.cpp | nicsor/BreadCrumbs | 9ee5111d87d7a71b0a3910c14c4751eb3f1635ab | [
"MIT"
] | null | null | null | /**
* @file TimeTracker.cpp
*
* @author Nicolae Natea
* Contact: nicu@natea.ro
*/
#include <cstdint>
#include <map>
#include <mutex>
#include <core/util/TimeTracker.hpp>
namespace core {
namespace util {
namespace {
struct TimeInfo {
uint64_t times_called; ///< Keep track of number... | 31.616438 | 137 | 0.557192 | nicsor |
bd2c0645a6e63bf2ac8123eac1c868a4125ee907 | 22,274 | cpp | C++ | src/level/lightingcalculator.cpp | alexeyden/whack | 2bff3beb0afb8c5aaba996b2838d2f0b9797039c | [
"WTFPL"
] | null | null | null | src/level/lightingcalculator.cpp | alexeyden/whack | 2bff3beb0afb8c5aaba996b2838d2f0b9797039c | [
"WTFPL"
] | null | null | null | src/level/lightingcalculator.cpp | alexeyden/whack | 2bff3beb0afb8c5aaba996b2838d2f0b9797039c | [
"WTFPL"
] | null | null | null | #include "lightingcalculator.h"
#include "entityvisualinfoextractor.h"
#include "level.h"
#include "util/math.h"
#include "util/rect.h"
void LightingCalculator::calculate()
{
preparePass();
calculatePass();
averagePass();
spritesPass();
}
void LightingCalculator::preparePass()
{
for(unsigned i = 0; i < _level->s... | 35.355556 | 121 | 0.633923 | alexeyden |
bd2f24769b4675ea5eb988c7616f917e027b2783 | 8,612 | hpp | C++ | cc/include/bounding_eccentricities.hpp | parthmittal/graph-algorithms | 10ebeead1b3fc1ad52f9f69a5bf42d90c5604508 | [
"MIT"
] | null | null | null | cc/include/bounding_eccentricities.hpp | parthmittal/graph-algorithms | 10ebeead1b3fc1ad52f9f69a5bf42d90c5604508 | [
"MIT"
] | null | null | null | cc/include/bounding_eccentricities.hpp | parthmittal/graph-algorithms | 10ebeead1b3fc1ad52f9f69a5bf42d90c5604508 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <iterator>
#include <queue>
#include <vector>
#include <graph.hpp>
#include <optparser.hpp>
#ifndef __BOUNDING_ECCENTRICITY_HPP__
#define __BOUNDING_ECCENTRICITY_HPP__
namespace our {
using namespace std;
/*
* An iterative bfs implementation that returns the distanc... | 32.996169 | 80 | 0.474686 | parthmittal |
bd36c9ba7242d8535dfaadecbaea76c9db574ee4 | 320 | cpp | C++ | test/t_0011.cpp | rayloyal/leetcode | 79ded19bbb9f2d294b609f30bd3cbfe2cf8311a9 | [
"MIT"
] | 1 | 2022-03-02T14:19:55.000Z | 2022-03-02T14:19:55.000Z | test/t_0011.cpp | rayloyal/leetcode | 79ded19bbb9f2d294b609f30bd3cbfe2cf8311a9 | [
"MIT"
] | null | null | null | test/t_0011.cpp | rayloyal/leetcode | 79ded19bbb9f2d294b609f30bd3cbfe2cf8311a9 | [
"MIT"
] | null | null | null | #include "q_0011.h"
#include "gtest/gtest.h"
using namespace std;
using ::testing::Test;
TEST(Q0011, EXAMPLE){
Solution solution;
vector<int> height1 = {1, 8, 6, 2, 5, 4, 8, 3, 7};
ASSERT_EQ(solution.maxArea(height1), 49);
vector<int> height2 = {1, 1};
ASSERT_EQ(solution.maxArea(height2), 1);
}
| 20 | 54 | 0.640625 | rayloyal |
bd371762adb95fd0bdec8328c6e81eff72b7e664 | 547 | cpp | C++ | 60 Must Solve List/Unique Email Addresses.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | 60 Must Solve List/Unique Email Addresses.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | 60 Must Solve List/Unique Email Addresses.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | // Hari
class Solution {
public:
string ruler(string email){
string cleanMail;
for(char c: email){
if(c == '+' || c == '@') break;
if(c == '.') continue;
cleanMail += c;
}
cleanMail += email.substr(email.find('@'));
return cleanMail;
}... | 21.88 | 51 | 0.482633 | Tiger-Team-01 |
bd38582b1dbd9cb4342900ad66bbde0535bb73ad | 3,060 | cpp | C++ | lib/project_euler/0001-0050/Problem17.cpp | wtmitchell/project_euler | b0fd328af41901aa53f757f1dd84f44f71d7be44 | [
"MIT"
] | 2 | 2016-04-03T08:44:15.000Z | 2018-10-05T02:12:19.000Z | lib/project_euler/0001-0050/Problem17.cpp | wtmitchell/challenge_problems | b0fd328af41901aa53f757f1dd84f44f71d7be44 | [
"MIT"
] | null | null | null | lib/project_euler/0001-0050/Problem17.cpp | wtmitchell/challenge_problems | b0fd328af41901aa53f757f1dd84f44f71d7be44 | [
"MIT"
] | null | null | null | //===-- project_euler/Problem17.cpp -----------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \class project_eul... | 29.708738 | 80 | 0.63268 | wtmitchell |
bd399cd1cda1969d2bd5786d2646317b001d54a8 | 1,247 | cpp | C++ | 011/demo.cpp | jiejieTop/c-plus-plus | 2f5832333eb2521e08aea430e65f003cdf4611a5 | [
"Apache-2.0"
] | null | null | null | 011/demo.cpp | jiejieTop/c-plus-plus | 2f5832333eb2521e08aea430e65f003cdf4611a5 | [
"Apache-2.0"
] | null | null | null | 011/demo.cpp | jiejieTop/c-plus-plus | 2f5832333eb2521e08aea430e65f003cdf4611a5 | [
"Apache-2.0"
] | null | null | null | /*
* @Author: jiejie
* @Github: https://github.com/jiejieTop
* @Date: 2020-03-21 15:55:37
* @LastEditTime: 2020-04-01 00:45:32
* @Description: the code belongs to jiejie, please keep the author information and source code according to the license.
*/
#include <string>
#include <cstring>
#include <iostream>
#incl... | 15.78481 | 121 | 0.615076 | jiejieTop |
bd3fef6937348f5e42026b3f068ee912e83bceb5 | 1,006 | cpp | C++ | test/bubblesort.cpp | SherlockZhang3/MyCppTest | 393b91270e1485a8e7ff78bd11d9b91c7af3a872 | [
"Apache-2.0"
] | null | null | null | test/bubblesort.cpp | SherlockZhang3/MyCppTest | 393b91270e1485a8e7ff78bd11d9b91c7af3a872 | [
"Apache-2.0"
] | null | null | null | test/bubblesort.cpp | SherlockZhang3/MyCppTest | 393b91270e1485a8e7ff78bd11d9b91c7af3a872 | [
"Apache-2.0"
] | null | null | null | /*================================================================
* Copyright (c) 2022年 SherlockZhang. All rights reserved.
*
* 文件名称:bubblesort.cpp
* 创 建 者:SherlockZhang
* 邮 箱:SherlockZhang@aliyun.com
* 创建日期:2021年02月23日
* 描 述:冒泡排序,其实应该说是反冒泡排序,把最大的数沉到后方。
*
#pragma once
==============================... | 24.536585 | 71 | 0.457256 | SherlockZhang3 |
bd49a473ba04607edf42d8ee0c3a946a6b35e102 | 2,740 | cpp | C++ | learncpp/ej6c6.cpp | ignaciop/c-varios | c8ef033485efd19a01fbc43658be36473eb1d08d | [
"MIT"
] | null | null | null | learncpp/ej6c6.cpp | ignaciop/c-varios | c8ef033485efd19a01fbc43658be36473eb1d08d | [
"MIT"
] | null | null | null | learncpp/ej6c6.cpp | ignaciop/c-varios | c8ef033485efd19a01fbc43658be36473eb1d08d | [
"MIT"
] | null | null | null | #include <iostream>
#include <array>
#include <ctime>
#include <cstdlib>
enum CardSuit {
SUIT_CLUB,
SUIT_DIAMOND,
SUIT_HEART,
SUIT_SPADE,
MAX_SUITS
};
enum CardRank {
RANK_2,
RANK_3,
RANK_4,
RANK_5,
RANK_6,
RANK_7,
RANK_8,
RANK_9,
RANK_10,
RANK_JACK,
RANK_QUEEN,
RANK_KING,
RANK_ACE,
MAX_RANKS
};
... | 20.916031 | 76 | 0.633212 | ignaciop |
bd4f382bb6fb76eb87a50d0974245357ea70e6ec | 23,775 | cpp | C++ | ExploringScaleSymmetry/Chapter6/automata2D/Evolver.cpp | TGlad/ExploringScaleSymmetry | 25b2dae0279a0ac26f6bae2277d3b76a1cda8b04 | [
"MIT"
] | null | null | null | ExploringScaleSymmetry/Chapter6/automata2D/Evolver.cpp | TGlad/ExploringScaleSymmetry | 25b2dae0279a0ac26f6bae2277d3b76a1cda8b04 | [
"MIT"
] | null | null | null | ExploringScaleSymmetry/Chapter6/automata2D/Evolver.cpp | TGlad/ExploringScaleSymmetry | 25b2dae0279a0ac26f6bae2277d3b76a1cda8b04 | [
"MIT"
] | null | null | null | // Thomas Lowe, 2020.
// Defines the evolution of the automaton. Typically a fixed function of the neighbouring cells.
#include "evolver.h"
#include "Image.h"
#include <string.h>
#include <algorithm>
using namespace std;
Evolver::Evolver(int depth)
{
this->depth = depth;
bitmaps = new Image*[depth+1];
bitmapDual... | 23.400591 | 118 | 0.492492 | TGlad |
bd53af54ccd266c823556b38c6bb37d8d0bf6290 | 23,001 | cpp | C++ | ros/src/Mobile_Platform.cpp | norlab-ulaval/navtechradar | 4d3ccd2558e79142d656a6c12cd826d9397b0f2d | [
"MIT"
] | 2 | 2020-11-18T17:48:40.000Z | 2021-01-12T14:15:17.000Z | ros/src/Mobile_Platform.cpp | norlab-ulaval/navtechradar | 4d3ccd2558e79142d656a6c12cd826d9397b0f2d | [
"MIT"
] | null | null | null | ros/src/Mobile_Platform.cpp | norlab-ulaval/navtechradar | 4d3ccd2558e79142d656a6c12cd826d9397b0f2d | [
"MIT"
] | 1 | 2022-03-22T16:09:51.000Z | 2022-03-22T16:09:51.000Z |
/*
Copyright 2016 Navtech Radar Limited
This file is part of iasdk which is released under The MIT License (MIT).
See file LICENSE.txt in project root or go to https://opensource.org/licenses/MIT
for full license details.
*/
/*
Node Description:
Example Application: Moving Platform Data Processor + Visualizer
This... | 39.656897 | 245 | 0.677449 | norlab-ulaval |
bd5506aa474c31782c9b4bad560841be06bf25d2 | 52 | cpp | C++ | TRAVELLING SALESMAN PROBLEM/stdafx.cpp | Emperor86/racheal-folusho | b1ed0dbc71e7f696ade23c8042d17718ebd2fb2f | [
"MIT"
] | null | null | null | TRAVELLING SALESMAN PROBLEM/stdafx.cpp | Emperor86/racheal-folusho | b1ed0dbc71e7f696ade23c8042d17718ebd2fb2f | [
"MIT"
] | null | null | null | TRAVELLING SALESMAN PROBLEM/stdafx.cpp | Emperor86/racheal-folusho | b1ed0dbc71e7f696ade23c8042d17718ebd2fb2f | [
"MIT"
] | null | null | null | ////For precompiled headers
#include "stdafx.h"
| 13 | 28 | 0.673077 | Emperor86 |
bd5561a3c355f33ea27f417e351e0457091c9bf9 | 2,047 | cpp | C++ | luogu/codes/P4783.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | 1 | 2021-02-22T03:39:24.000Z | 2021-02-22T03:39:24.000Z | luogu/codes/P4783.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | luogu/codes/P4783.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | /*************************************************************
* > File Name : P4783.cpp
* > Author : Tony
* > Created Time : 2019/05/18 00:14:50
**************************************************************/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const LL mod ... | 28.041096 | 78 | 0.31998 | Tony031218 |
32e80c663cdd87684b96a42b9d99fb19fdf8e349 | 1,628 | hpp | C++ | mod/wrd/frame/thread.hpp | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | 1 | 2019-02-02T07:07:32.000Z | 2019-02-02T07:07:32.000Z | mod/wrd/frame/thread.hpp | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | 25 | 2016-09-23T16:36:19.000Z | 2019-02-12T14:14:32.000Z | mod/wrd/frame/thread.hpp | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | null | null | null | #pragma once
#include "../builtin/container/mgd/tarr.hpp"
#include "../builtin/container/native/tnmap.hpp"
#include "frame.hpp"
namespace wrd {
class slotLoader;
typedef tnarr<frame> frames;
class _wout thread : public node {
WRD(CLASS(thread, node),
FRIEND_VERIFY(defAssignExpr, isDe... | 25.4375 | 73 | 0.613022 | kniz |
32e83204e9a70e8224dd58e8583c3ed4be2e4923 | 5,823 | cc | C++ | log/checkpoint_sender.cc | QiumingLu/dawn | 58ebdb0d5389f6e3244c91aa09f20a7a47ee8042 | [
"BSD-3-Clause"
] | 13 | 2016-12-02T17:00:39.000Z | 2020-11-24T08:24:43.000Z | log/checkpoint_sender.cc | QiumingLu/dawn | 58ebdb0d5389f6e3244c91aa09f20a7a47ee8042 | [
"BSD-3-Clause"
] | 1 | 2018-06-12T05:18:57.000Z | 2018-06-12T09:31:05.000Z | log/checkpoint_sender.cc | QiumingLu/dawn | 58ebdb0d5389f6e3244c91aa09f20a7a47ee8042 | [
"BSD-3-Clause"
] | 2 | 2018-02-01T04:17:38.000Z | 2020-04-26T10:21:06.000Z | // Copyright (c) 2016 Mirants Lu. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "log/checkpoint_sender.h"
#include <vector>
#include "log/checkpoint_manager.h"
#include "paxos/config.h"
#include "skywalker/file.h"
#include "skywa... | 30.170984 | 78 | 0.660484 | QiumingLu |
32eb7af8480ec3cf7a6c4bbbd4a80d38ebd6377c | 39,341 | cpp | C++ | src/script/lua_api/l_mapgen.cpp | crazyBaboon/MathWorlds | dd35e88e207a26be8632999ad09eeef81820343d | [
"CC-BY-4.0"
] | 1 | 2018-03-01T13:03:01.000Z | 2018-03-01T13:03:01.000Z | src/script/lua_api/l_mapgen.cpp | crazyBaboon/MathWorlds | dd35e88e207a26be8632999ad09eeef81820343d | [
"CC-BY-4.0"
] | null | null | null | src/script/lua_api/l_mapgen.cpp | crazyBaboon/MathWorlds | dd35e88e207a26be8632999ad09eeef81820343d | [
"CC-BY-4.0"
] | null | null | null | /*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later ve... | 25.679504 | 88 | 0.689281 | crazyBaboon |
32f11db0729e90e6d3b0383560439ac40545ae4a | 957 | cpp | C++ | GFG/All_Code/1.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | GFG/All_Code/1.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | GFG/All_Code/1.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | class Solution
{
public:
// create isupper() function
bool isupper(char c) {
return c >= 'A' && c <= 'Z';
}
string arrangeString(string str)
{
int sum=0;
//store all capital letters in a vector and all integer in different vector
vector<char> capital;
vector<int> in... | 17.4 | 83 | 0.486938 | jnvshubham7 |
fd07203282a5ae22b4030a053f9cb7a812387b64 | 1,776 | cpp | C++ | Lab 1/Ch_02-SourceCode/first_last_lab1A.cpp | candr002/CS150 | 8270f60769fc8a9c18e5c5c46879b63663ba2117 | [
"Unlicense"
] | null | null | null | Lab 1/Ch_02-SourceCode/first_last_lab1A.cpp | candr002/CS150 | 8270f60769fc8a9c18e5c5c46879b63663ba2117 | [
"Unlicense"
] | null | null | null | Lab 1/Ch_02-SourceCode/first_last_lab1A.cpp | candr002/CS150 | 8270f60769fc8a9c18e5c5c46879b63663ba2117 | [
"Unlicense"
] | null | null | null |
/* *************************************************************
Programmer: your name goes here
file: first_last_lab1A.cpp change this
TA Name: ( put the name of your lab TA here )
TA Email: (find out your TAs email, and put it here)
Given the length and width of a rectangle... | 30.101695 | 74 | 0.543356 | candr002 |
fd0a0c8bc0a0a65f09217ac5ff7ebbd688911cd1 | 685 | cpp | C++ | engine/src/resources/text.cpp | gguedesaz/thunder | 41fbd8393dc6974ae26e1d77d5f2f8f252e14b5c | [
"Apache-2.0"
] | null | null | null | engine/src/resources/text.cpp | gguedesaz/thunder | 41fbd8393dc6974ae26e1d77d5f2f8f252e14b5c | [
"Apache-2.0"
] | null | null | null | engine/src/resources/text.cpp | gguedesaz/thunder | 41fbd8393dc6974ae26e1d77d5f2f8f252e14b5c | [
"Apache-2.0"
] | null | null | null | #include "resources/text.h"
#include <variant.h>
#define DATA "Data"
#include <log.h>
class TextPrivate {
public:
ByteArray m_Data;
};
Text::Text() :
p_ptr(new TextPrivate) {
}
Text::~Text() {
delete p_ptr;
}
void Text::loadUserData(const VariantMap &data) {
auto it = data.find(DATA);
i... | 15.222222 | 55 | 0.614599 | gguedesaz |
fd0a1148a9c5147f96bb3d20de84c538c1c85fb2 | 1,752 | cpp | C++ | src/tf.cpp | JeroenBongers96/suii_3d_vision_ros | 82197531f44d58d2579cd2563757581aae91d021 | [
"BSD-3-Clause"
] | null | null | null | src/tf.cpp | JeroenBongers96/suii_3d_vision_ros | 82197531f44d58d2579cd2563757581aae91d021 | [
"BSD-3-Clause"
] | null | null | null | src/tf.cpp | JeroenBongers96/suii_3d_vision_ros | 82197531f44d58d2579cd2563757581aae91d021 | [
"BSD-3-Clause"
] | 1 | 2020-01-01T22:29:24.000Z | 2020-01-01T22:29:24.000Z | #include "tf.h"
Transformation::Transformation()
{
std::cout << "TRANSFORMATION CREATED" << std::endl;
std::cout << "##############################" << std::endl;
}
tf_struct_data Transformation::getTf(pcl::PointCloud<pcl::PointXYZ>::Ptr cloud)
{
//Calculate the TF from a given PCD
pcl::MomentOfIner... | 39.818182 | 167 | 0.693493 | JeroenBongers96 |
fd0c7f939264a99f958c88c75bf0b80b09fa9fe0 | 869 | cpp | C++ | 01_Programming_Basics/01_Programming_Basics_with_C++/12_Nested_Loops_Lab/08_cookie_factory.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 01_Programming_Basics/01_Programming_Basics_with_C++/12_Nested_Loops_Lab/08_cookie_factory.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | 01_Programming_Basics/01_Programming_Basics_with_C++/12_Nested_Loops_Lab/08_cookie_factory.cpp | Knightwalker/Knowledgebase | 00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
int n = 0;
cin >> n;
cin.ignore();
for(int i = 0; i < n; i++)
{
bool flour = false;
bool eggs = false;
bool sugar = false;
while(true)
{
string products = "";
getline(cin, products);
if(p... | 18.104167 | 77 | 0.443038 | Knightwalker |
fd11af26a355261c9fa59c2fa1a80e32ba376a7c | 886 | cpp | C++ | src/main.cpp | LuisHsu/Assignment_4 | 1735738d3d523d9c3a007d9fb471f121071e75fe | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | LuisHsu/Assignment_4 | 1735738d3d523d9c3a007d9fb471f121071e75fe | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | LuisHsu/Assignment_4 | 1735738d3d523d9c3a007d9fb471f121071e75fe | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright 2020 Luis Hsu. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
#include <exception>
#include <iostream>
#include <unistd.h>
#include <termios.h>
#include <SpiningCube.hpp>
int main(int argc, char const *argv[]){
str... | 23.945946 | 53 | 0.646727 | LuisHsu |
fd121f8e6cc0bc74c3e6252f16e0f94bff96cdaa | 591 | hpp | C++ | src/frontend/internal/patch_args.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | src/frontend/internal/patch_args.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | src/frontend/internal/patch_args.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #pragma once
#include "frontend/diag.hpp"
#include "frontend/source_table.hpp"
#include "prog/program.hpp"
#include <functional>
namespace frontend::internal {
using PatchDiagReportFunc = std::function<void(Diag)>;
/* Patches all call expressions in the program to include any information that was not available
* wh... | 31.105263 | 100 | 0.774958 | BastianBlokland |
fd15d303beaf57426353061df12517d496968fa8 | 1,569 | cpp | C++ | codeforces/A - Number of Apartments/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Number of Apartments/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Number of Apartments/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729# created: Mar/24/2021 19:41
* solution_verdict: Accepted language: GNU C++17 (64)
* run... | 28.017857 | 111 | 0.472275 | kzvd4729 |
fd1a6891a77eab53fe831499466f91e5161229d8 | 6,258 | cpp | C++ | src/WebinariaEditor/TimelineControl/OverlayControl.cpp | mkmpvtltd1/Webinaria | 41d86467800adb48e77ab49b92891fae2a99bb77 | [
"MIT"
] | 5 | 2015-03-31T15:51:22.000Z | 2022-03-10T07:01:56.000Z | src/WebinariaEditor/TimelineControl/OverlayControl.cpp | mkmpvtltd1/Webinaria | 41d86467800adb48e77ab49b92891fae2a99bb77 | [
"MIT"
] | null | null | null | src/WebinariaEditor/TimelineControl/OverlayControl.cpp | mkmpvtltd1/Webinaria | 41d86467800adb48e77ab49b92891fae2a99bb77 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "OverlayControl.h"
#include "OverlayElement.h"
#include "utils.h"
OverlayControl::OverlayControl()
: activeOverlay(0)
, hitTestAnchor(ohtNone)
{
memset(&clickAnchor, 0, sizeof(clickAnchor));
}
OverlayControl::~OverlayControl()
{
}
Overlay* OverlayControl::GetActiveOverlay() const
{
... | 23.007353 | 107 | 0.71109 | mkmpvtltd1 |
fd23938cbc9e14eab4be2683bbcd009f4bf8c631 | 15,242 | cpp | C++ | prototype/src/asf_meta/meta_ut1_table.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | 3 | 2017-12-31T05:33:28.000Z | 2021-07-28T01:51:22.000Z | prototype/src/asf_meta/meta_ut1_table.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | null | null | null | prototype/src/asf_meta/meta_ut1_table.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | 7 | 2017-04-26T18:18:33.000Z | 2020-05-15T08:01:09.000Z | /* Table prepared by script
process_epoc.sh eopc01.1900-2006
on
Tue Jun 20 10:53:11 AKDT 2006
Format:
<UTC year> <TAI-UTC> <UT1-TAI> (DUT source)
*/
{ 1972.00, 10, -10.04749},/*IERS*/
{ 1972.10, 10, -10.16419},/*IERS*/
{ 1972.20, 10, -10.28450},/*IERS*/
{ 1972.30, 10, -10.41373},/*IERS*/
{ 1972.40, 10, -10.5400... | 34.719818 | 45 | 0.544286 | glshort |
fd2e91aee0cd8b477dfab122b7ad308982499973 | 3,178 | cpp | C++ | gueepo2D/engine/core/renderer/Renderer.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 1 | 2022-02-03T19:24:47.000Z | 2022-02-03T19:24:47.000Z | gueepo2D/engine/core/renderer/Renderer.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 4 | 2021-10-30T19:03:07.000Z | 2022-02-10T01:06:02.000Z | gueepo2D/engine/core/renderer/Renderer.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 1 | 2021-10-01T03:08:21.000Z | 2021-10-01T03:08:21.000Z | #include "gueepo2Dpch.h"
#include "Renderer.h"
#include "core/Containers/string.h"
#include "core/filesystem/Filesystem.h"
#include "core/renderer/OrtographicCamera.h"
#include "core/Renderer/RendererAPI.h"
#include "core/Renderer/Shader.h"
#include "core/Renderer/SpriteBatcher.h"
// Specific Renderer APIs
#include ... | 27.877193 | 123 | 0.69163 | guilhermepo2 |
fd3064ad9e0677815b06b9eb961cf0c0376d285c | 295 | hh | C++ | events/NewPlayerEvent.hh | deb0ch/R-Type | 8bb37cd5ec318efb97119afb87d4996f6bb7644e | [
"WTFPL"
] | 5 | 2016-03-15T20:14:10.000Z | 2020-10-30T23:56:24.000Z | events/NewPlayerEvent.hh | deb0ch/R-Type | 8bb37cd5ec318efb97119afb87d4996f6bb7644e | [
"WTFPL"
] | 3 | 2018-12-19T19:12:44.000Z | 2020-04-02T13:07:00.000Z | events/NewPlayerEvent.hh | deb0ch/R-Type | 8bb37cd5ec318efb97119afb87d4996f6bb7644e | [
"WTFPL"
] | 2 | 2016-04-11T19:29:28.000Z | 2021-11-26T20:53:22.000Z | #ifndef NEWPLAYEREVENT_H_
# define NEWPLAYEREVENT_H_
# include "AEvent.hh"
class NewPlayerEvent : public AEvent
{
public:
NewPlayerEvent(unsigned int hash);
virtual ~NewPlayerEvent();
unsigned int getRemoteId() const;
protected:
unsigned int _hash;
};
#endif /* !NEWPLAYEREVENT_H_ */
| 17.352941 | 36 | 0.752542 | deb0ch |
fd327d1641017eb8fd91a66d05ede5f755759d7a | 10,510 | cpp | C++ | frenet_planner_ros/src/frenetROS_obst.cpp | anime-sh/frenet-gym | 2f8f4aa5a3de8c0e63aee81b0891ea0cf16bc305 | [
"MIT"
] | 1 | 2021-12-10T11:40:12.000Z | 2021-12-10T11:40:12.000Z | frenet_planner_ros/src/frenetROS_obst.cpp | anime-sh/frenet-gym | 2f8f4aa5a3de8c0e63aee81b0891ea0cf16bc305 | [
"MIT"
] | 1 | 2021-05-29T09:12:19.000Z | 2021-05-29T09:12:19.000Z | frenet_planner_ros/src/frenetROS_obst.cpp | anime-sh/frenet-gym | 2f8f4aa5a3de8c0e63aee81b0891ea0cf16bc305 | [
"MIT"
] | 1 | 2020-09-17T14:30:44.000Z | 2020-09-17T14:30:44.000Z | #include "../include/frenet_optimal_trajectory.hpp"
#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <nav_msgs/Path.h>
#include <tf/transform_datatypes.h>
#include <utility>
#include <ros/console.h>
#include <std_msgs/String.h>
#include <std_msgs/Float64.h>
#include <thread>
#include <chrono>
namespace ... | 26.811224 | 190 | 0.677545 | anime-sh |
fd36ce26d4be3904e2ad166a033ca00fa1f33f78 | 2,812 | hpp | C++ | waterbox/ares64/ares/nall/emulation/21fx.hpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | waterbox/ares64/ares/nall/emulation/21fx.hpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 296 | 2021-10-16T18:00:18.000Z | 2022-03-31T12:09:00.000Z | waterbox/ares64/ares/nall/emulation/21fx.hpp | Fortranm/BizHawk | 8cb0ffb6f8964cc339bbe1784838918fb0aa7e27 | [
"MIT"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | #pragma once
#include <nall/nall.hpp>
#include <nall/serial.hpp>
using namespace nall;
struct FX {
auto open(Arguments& arguments) -> bool;
auto close() -> void;
auto readable() -> bool;
auto read() -> u8;
auto writable() -> bool;
auto write(u8 data) -> void;
auto read(u32 offset, u32 length) -> vector... | 21.79845 | 107 | 0.63478 | Fortranm |
fd3a945300df5ca2ac17b3e959d996cfd02d0c10 | 1,403 | cpp | C++ | LivestreamEx/SubProcessorDanmuDouyu.cpp | cnSchwarzer/LivestreamExtract | 14aabf3c5bb728941c62e3871b9aa1f55d0390a5 | [
"MIT"
] | 8 | 2021-04-01T00:36:34.000Z | 2021-06-13T15:58:17.000Z | LivestreamEx/SubProcessorDanmuDouyu.cpp | cnSchwarzer/LivestreamExtract | 14aabf3c5bb728941c62e3871b9aa1f55d0390a5 | [
"MIT"
] | null | null | null | LivestreamEx/SubProcessorDanmuDouyu.cpp | cnSchwarzer/LivestreamExtract | 14aabf3c5bb728941c62e3871b9aa1f55d0390a5 | [
"MIT"
] | 2 | 2021-04-16T04:00:34.000Z | 2021-08-30T03:06:47.000Z | #include "SubProcessorDanmuDouyu.h"
#include <filesystem>
#include <fstream>
#include "../common.h"
void SubProcessorDanmuDouyu::initialize(LivestreamDanmuDouyu* dm)
{
dm->onChatMessage([=](ChatMessage* msg)
{
danmu(reinterpret_cast<ChatMessageDouyu*>(msg));
});
}
void SubProcessorDanmuDouyu::danmu(ChatMessa... | 23 | 87 | 0.703493 | cnSchwarzer |
fd3c63cfa74d73ef827df6b19f1dae409a9b6502 | 15,480 | cpp | C++ | uwsim_resources/uwsim_osgworks/src/osgwTools/TangentSpaceGeneratorDouble.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/src/osgwTools/TangentSpaceGeneratorDouble.cpp | epsilonorion/usv_lsa_sim_copy | d189f172dc1d265b7688c7dc8375a65ac4a9c048 | [
"Apache-2.0"
] | null | null | null | uwsim_resources/uwsim_osgworks/src/osgwTools/TangentSpaceGeneratorDouble.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 2009-2012 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 Fr... | 37.033493 | 149 | 0.461693 | epsilonorion |
fd3d0a66668762df21be8791e950c82c515166d9 | 2,120 | hpp | C++ | Engine/Source/Core/Testing.hpp | AhsanSarwar45/Qombat-OLD | 0247441cf4927733ef0786c6df9a087461b0260b | [
"Apache-2.0"
] | null | null | null | Engine/Source/Core/Testing.hpp | AhsanSarwar45/Qombat-OLD | 0247441cf4927733ef0786c6df9a087461b0260b | [
"Apache-2.0"
] | null | null | null | Engine/Source/Core/Testing.hpp | AhsanSarwar45/Qombat-OLD | 0247441cf4927733ef0786c6df9a087461b0260b | [
"Apache-2.0"
] | null | null | null | // #pragma once
// #include "Core/Core.hpp"
// #include "Core/Configuration/ConfigManager.hpp"
// #include "Core/Memory/PoolAllocator.hpp"
// #include "Core/Memory/StackAllocator.hpp"
// #include "Utility/Hashing.hpp"
// #include <Core/Configuration/Configuration.hpp>
// namespace QMBT
// {
// class MemoryLogger
//... | 27.179487 | 92 | 0.602358 | AhsanSarwar45 |
fd42376fcd48f86a650efbef3d27f2221688aa60 | 882 | cpp | C++ | src/Przeszkoda_Prost.cpp | broszczakmateusz/Dron-poprawione | a7a3efc370e2ddf6110fd8e3672296cf32775dc2 | [
"MIT"
] | null | null | null | src/Przeszkoda_Prost.cpp | broszczakmateusz/Dron-poprawione | a7a3efc370e2ddf6110fd8e3672296cf32775dc2 | [
"MIT"
] | null | null | null | src/Przeszkoda_Prost.cpp | broszczakmateusz/Dron-poprawione | a7a3efc370e2ddf6110fd8e3672296cf32775dc2 | [
"MIT"
] | null | null | null | //
// Created by mati on 07.06.2020.
//
#include "Przeszkoda_Prost.h"
Przeszkoda_Prost::Przeszkoda_Prost(std::shared_ptr<drawNS::Draw3DAPI> ptrApi, const SWektor<double,ROZMIAR> &sr)
: Prostopadloscian(ptrApi, sr) {
for (int i = 0; i<8; i++) {
Wierzcholki[i] = Wierzcholki[i] /2;
}
SWektor<... | 26.727273 | 112 | 0.646259 | broszczakmateusz |
fd42e1fb90e15220993a425ab67d649d58b8b1e0 | 2,842 | cpp | C++ | Programiranje Test 2 - Fuzija (spajanje) 2 niza u jedan/main.cpp | owlCoder/C_Plus_Plus_Projects | d2c70411c9322c89a8d6158a144e161abce65735 | [
"MIT"
] | null | null | null | Programiranje Test 2 - Fuzija (spajanje) 2 niza u jedan/main.cpp | owlCoder/C_Plus_Plus_Projects | d2c70411c9322c89a8d6158a144e161abce65735 | [
"MIT"
] | null | null | null | Programiranje Test 2 - Fuzija (spajanje) 2 niza u jedan/main.cpp | owlCoder/C_Plus_Plus_Projects | d2c70411c9322c89a8d6158a144e161abce65735 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#include "FUZIJA.hpp"
#include "PRAVOUGAONIK.hpp"
#include "TACKA.hpp"
int main()
{
int na, nb, nc, i;
{
cout << "\n---------------------- <int> ----------------------\n";
cout << endl << "Unos dimenzije za prvi niz: ";
cin >> na;... | 23.882353 | 81 | 0.354328 | owlCoder |
fd47f756c6468c0c78a994564c8a0efa229d2268 | 1,721 | cpp | C++ | gpmp2/obstacle/tests/testSelfCollision.cpp | Cryptum169/gpmp2 | f361baac4917b9a4d1220411e9c69dc9f96f4277 | [
"BSD-3-Clause"
] | null | null | null | gpmp2/obstacle/tests/testSelfCollision.cpp | Cryptum169/gpmp2 | f361baac4917b9a4d1220411e9c69dc9f96f4277 | [
"BSD-3-Clause"
] | null | null | null | gpmp2/obstacle/tests/testSelfCollision.cpp | Cryptum169/gpmp2 | f361baac4917b9a4d1220411e9c69dc9f96f4277 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file testSelfCollisionArm.cpp
* @author Mustafa Mukadam
**/
#include <CppUnitLite/TestHarness.h>
#include <gtsam/base/Matrix.h>
#include <gtsam/base/Testable.h>
#include <gtsam/base/numericalDerivative.h>
#include <gpmp2/obstacle/SelfCollisionArm.h>
#include <iostream>
#include <cmath>
using namespace ... | 28.213115 | 86 | 0.617083 | Cryptum169 |
fd57a84e742671ace2a25b648a9028b9f8e41bee | 966 | cpp | C++ | library/source/operations_tests/pretty_print_tester.cpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | null | null | null | library/source/operations_tests/pretty_print_tester.cpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | null | null | null | library/source/operations_tests/pretty_print_tester.cpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | 1 | 2020-04-17T13:25:25.000Z | 2020-04-17T13:25:25.000Z | #include <sstream>
#include <catch.hpp>
#include "darcel/operations/pretty_print.hpp"
#include "darcel/syntax/literal_expression.hpp"
using namespace darcel;
using namespace std;
TEST_CASE("test_pretty_print_let", "[pretty_print]") {
SECTION("Int literal") {
std::stringstream ss;
auto l = std::make_unique<L... | 30.1875 | 68 | 0.665631 | spiretrading |
fd5dc361bd3e018873745bd51d8606b01c09b3c9 | 1,179 | cpp | C++ | Source/Framework/Core/Scene/TeSceneActor.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 14 | 2022-02-25T15:52:35.000Z | 2022-03-30T18:44:29.000Z | Source/Framework/Core/Scene/TeSceneActor.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | null | null | null | Source/Framework/Core/Scene/TeSceneActor.cpp | GameDevery/TweedeFrameworkRedux | 69a28fe171db33d00066b97b9b6bf89f6ef3e3a4 | [
"MIT"
] | 1 | 2022-02-28T09:24:05.000Z | 2022-02-28T09:24:05.000Z | #include "TeSceneActor.h"
#include "Scene/TeSceneObject.h"
namespace te
{
void SceneActor::SetTransform(const Transform& transform)
{
if (_mobility != ObjectMobility::Movable)
return;
_transform = transform;
_markCoreDirty(ActorDirtyFlag::Transform);
}
void SceneAc... | 24.061224 | 67 | 0.583545 | GameDevery |
fd5e29e923774d0d8c7fe8128735a10d11f28d8f | 179 | cpp | C++ | MIDI Test/AppMisc.cpp | MiguelGuthridge/HDSQs-MIDI-Editor | a5d6a2ea84b5123fb8f1aa0921da0b04e6e6cc27 | [
"MIT"
] | null | null | null | MIDI Test/AppMisc.cpp | MiguelGuthridge/HDSQs-MIDI-Editor | a5d6a2ea84b5123fb8f1aa0921da0b04e6e6cc27 | [
"MIT"
] | 1 | 2018-07-01T08:51:05.000Z | 2018-08-18T10:40:53.000Z | MIDI Test/AppMisc.cpp | HDSQmid/HDSQs-MIDI-Editor | a5d6a2ea84b5123fb8f1aa0921da0b04e6e6cc27 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "AppMisc.h"
#include "files.h"
#include "settings.h"
void quit()
{
if (settings->getSaveBackup()) {
if (fileIsOpen()) fileClose();
}
exit(0);
}
| 13.769231 | 33 | 0.642458 | MiguelGuthridge |
5b76206abdec46b5dd34feea66c57283cbd1858b | 1,132 | cpp | C++ | Number Theory/extendedgcd.cpp | MYK12397/Algorithmic-Techniques | 36b42aec550fba9ff49a74a383f6e9729e63dbc8 | [
"MIT"
] | null | null | null | Number Theory/extendedgcd.cpp | MYK12397/Algorithmic-Techniques | 36b42aec550fba9ff49a74a383f6e9729e63dbc8 | [
"MIT"
] | null | null | null | Number Theory/extendedgcd.cpp | MYK12397/Algorithmic-Techniques | 36b42aec550fba9ff49a74a383f6e9729e63dbc8 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
#define ll long long
#define pb push_back
const int mod =(int)1e9+7;
/*int d,x,y;
void extendedeuclid(int a,int b){
if(b==0){
d=a;
x=1;
y=0;
}
else{
extendedeuclid(b,a%b);
int tmp=x;
x=y;
y=temp-(a/b)*y;
}
}*/
class triplet{
public:
ll g... | 12.863636 | 34 | 0.506184 | MYK12397 |
5b82b197ef4d2597f7a753c6057aca16f4265913 | 9,710 | hpp | C++ | sources/include/vssetup.hpp | fstudio/clangbuilder | d7c9b108afbf7eba7e614ca9ffd3b88d0cd061de | [
"MIT"
] | 106 | 2016-01-25T11:15:37.000Z | 2022-01-12T23:57:02.000Z | sources/include/vssetup.hpp | fstudio/clangbuilder | d7c9b108afbf7eba7e614ca9ffd3b88d0cd061de | [
"MIT"
] | 45 | 2016-02-19T03:26:54.000Z | 2021-06-12T13:36:43.000Z | sources/include/vssetup.hpp | fstudio/clangbuilder | d7c9b108afbf7eba7e614ca9ffd3b88d0cd061de | [
"MIT"
] | 19 | 2016-05-08T08:58:03.000Z | 2021-06-04T09:39:42.000Z | ///////
#ifndef CBUI_VSSETUP_HPP
#define CBUI_VSSETUP_HPP
#include <objbase.h>
// Published by Visual Studio Setup team
// Microsoft.VisualStudio.Setup.Configuration.Native
#include "Setup.Configuration.h"
#include "comutils.hpp"
#include "systemtools.hpp"
#include "vsinstance.hpp"
#include <bela/strip.hp... | 33.253425 | 101 | 0.671473 | fstudio |
5b8f07fef557d377c9ae80e31bcf664e1304cb07 | 1,524 | cc | C++ | core/proc/colormap.cc | amyznikov/qlidarview | a9826233ca5c8246d4fcdf23e6265ad2dad8e0c0 | [
"CC0-1.0"
] | null | null | null | core/proc/colormap.cc | amyznikov/qlidarview | a9826233ca5c8246d4fcdf23e6265ad2dad8e0c0 | [
"CC0-1.0"
] | null | null | null | core/proc/colormap.cc | amyznikov/qlidarview | a9826233ca5c8246d4fcdf23e6265ad2dad8e0c0 | [
"CC0-1.0"
] | null | null | null | /*
* colormap.cc
*
* Created on: Mar 18, 2022
* Author: amyznikov
*/
#include "colormap.h"
#include <core/ssprintf.h>
#include <core/debug.h>
template<>
const c_enum_member * members_of<COLORMAP>()
{
static constexpr c_enum_member members[] = {
{ COLORMAP_NONE, "NONE", "" },
{ COLORMAP_JET, "J... | 26.736842 | 75 | 0.574147 | amyznikov |
5b8f8559c869a17c673745ebac36a905449aea72 | 2,286 | cpp | C++ | euler024.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | euler024.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | euler024.cpp | suihan74/ProjectEuler | 0ccd2470206a606700ab5c2a7162b2a3d3de2f8d | [
"MIT"
] | null | null | null | /**
* Problem 24 「辞書式順列」
* 順列とはモノの順番付きの並びのことである. たとえば, 3124は数 1, 2, 3, 4 の一つの順列である.
* すべての順列を数の大小でまたは辞書式に並べたものを辞書順と呼ぶ. 0と1と2の順列を辞書順に並べると
*
* 012 021 102 120 201 210
* になる.
*
* 0,1,2,3,4,5,6,7,8,9からなる順列を辞書式に並べたときの100万番目はいくつか?
*/
#include <cmath>
#include <cstdint>
#include <iostream>
#include <stdexcept>
#incl... | 24.319149 | 106 | 0.646107 | suihan74 |
5b900ac68cd8d887d044cee6626cd7c2833be086 | 50 | cpp | C++ | src/core/ent/ent_base.cpp | KEGEStudios/Moon | 0e6aa078c8bf876c60aafe875ef53217ebdc74f1 | [
"MIT"
] | null | null | null | src/core/ent/ent_base.cpp | KEGEStudios/Moon | 0e6aa078c8bf876c60aafe875ef53217ebdc74f1 | [
"MIT"
] | null | null | null | src/core/ent/ent_base.cpp | KEGEStudios/Moon | 0e6aa078c8bf876c60aafe875ef53217ebdc74f1 | [
"MIT"
] | 1 | 2021-02-21T08:26:40.000Z | 2021-02-21T08:26:40.000Z | #include "../../../template/core/ent/ent_base.tpp" | 50 | 50 | 0.66 | KEGEStudios |
5b98384836b1d7302b5f056232f0d8510c08b101 | 6,579 | cpp | C++ | flare/src/actor_collider.cpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 14 | 2019-04-29T15:17:24.000Z | 2020-12-30T12:51:05.000Z | flare/src/actor_collider.cpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | null | null | null | flare/src/actor_collider.cpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 6 | 2019-04-29T15:17:25.000Z | 2021-11-16T03:20:59.000Z | #include "flare/actor_collider.hpp"
#include "flare/block_reader.hpp"
using namespace flare;
ActorCollider::ActorCollider(ComponentType type) : ActorNode(type), m_IsCollisionEnabled(true) {}
void ActorCollider::copy(const ActorCollider* node, ActorArtboard* artboard)
{
Base::copy(node, artboard);
m_IsCollisionEna... | 27.18595 | 129 | 0.769114 | taehyub |
5b99ef0f9ac2f67da283fb104dd73369b7744dca | 4,666 | cpp | C++ | src/MCP2515/MCP2515_Io.cpp | rotoye/107-Arduino-MCP2515 | 70e6e2ed6918a97b8d6c681c4f8d9f6d214557a9 | [
"MIT"
] | 40 | 2020-02-21T12:42:59.000Z | 2022-03-27T09:25:45.000Z | src/MCP2515/MCP2515_Io.cpp | adityathakekar/107-Arduino-MCP2515 | 5a0ddf728a32067d8bc849b1377bce55c649ac8e | [
"MIT"
] | 29 | 2020-02-21T12:43:01.000Z | 2022-01-31T09:12:03.000Z | src/MCP2515/MCP2515_Io.cpp | adityathakekar/107-Arduino-MCP2515 | 5a0ddf728a32067d8bc849b1377bce55c649ac8e | [
"MIT"
] | 14 | 2020-02-10T10:41:11.000Z | 2022-01-27T11:26:52.000Z | /**
* This software is distributed under the terms of the MIT License.
* Copyright (c) 2020 LXRobotics.
* Author: Alexander Entinger <alexander.entinger@lxrobotics.com>
* Contributors: https://github.com/107-systems/107-Arduino-MCP2515/graphs/contributors.
*/
/*****************************************************... | 25.779006 | 101 | 0.55315 | rotoye |
5b9c4a0dc8f947495554e61d3041cd8ddbbd787b | 1,394 | cpp | C++ | Library/Sources/Stroika/Foundation/Execution/Throw.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Library/Sources/Stroika/Foundation/Execution/Throw.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Library/Sources/Stroika/Foundation/Execution/Throw.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../Characters/ToString.h"
#include "Throw.h"
#if qStroika_Foundation_Exection_Throw_TraceThrowpointBacktrace
#include "../Characters/String.h"
#include "../Debug/BackTrace.h"
#endif
using namespac... | 30.977778 | 110 | 0.620516 | SophistSolutions |
5b9eb569192f78f7e0adfebb943a50c88bc92107 | 1,702 | hpp | C++ | PnC/WBC/ContactSpec.hpp | stevenjj/PnC | e1e417dbd507f174bb2661247cb4360b6ee0ada7 | [
"MIT"
] | 1 | 2020-05-04T22:36:54.000Z | 2020-05-04T22:36:54.000Z | PnC/WBC/ContactSpec.hpp | stevenjj/PnC | e1e417dbd507f174bb2661247cb4360b6ee0ada7 | [
"MIT"
] | null | null | null | PnC/WBC/ContactSpec.hpp | stevenjj/PnC | e1e417dbd507f174bb2661247cb4360b6ee0ada7 | [
"MIT"
] | null | null | null | #pragma once
#include <stdio.h>
#include <Eigen/Dense>
#include <iostream>
#include <PnC/RobotSystem/RobotSystem.hpp>
#include <Utils/IO/IOUtilities.hpp>
#include <Utils/Math/MathUtilities.hpp>
//! Contact Frame's z-axis should correspond normal vector to the ground
class ContactSpec {
public:
ContactSpec(Ro... | 27.451613 | 77 | 0.660987 | stevenjj |
5ba086382b898b99ecc8f4a8a5ac12b215c57f8b | 260 | cpp | C++ | YorozuyaGSLib/source/_trans_account_report_wrac.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_trans_account_report_wrac.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_trans_account_report_wrac.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_trans_account_report_wrac.hpp>
START_ATF_NAMESPACE
int _trans_account_report_wrac::size()
{
using org_ptr = int (WINAPIV*)(struct _trans_account_report_wrac*);
return (org_ptr(0x140207e00L))(this);
};
END_ATF_NAMESPACE
| 23.636364 | 75 | 0.723077 | lemkova |
5ba37dacd8ac2e0f53c23ec2003548bcf7360380 | 1,355 | cpp | C++ | snippets/cpp/VS_Snippets_CLR/FieldInfo_SetValue/CPP/fieldinfo_setvalue.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-02-22T09:30:21.000Z | 2021-08-02T23:44:31.000Z | snippets/cpp/VS_Snippets_CLR/FieldInfo_SetValue/CPP/fieldinfo_setvalue.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR/FieldInfo_SetValue/CPP/fieldinfo_setvalue.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z | // <Snippet1>
using namespace System;
using namespace System::Reflection;
using namespace System::Globalization;
public ref class Example
{
private:
String^ myString;
public:
Example()
{
myString = "Old value";
}
property String^ StringProperty
{
String^ get()
{
return m... | 26.057692 | 71 | 0.660517 | BohdanMosiyuk |
5ba9ee27894b541339d82be27aaa8d94b6c6dea3 | 4,015 | cpp | C++ | IHM/main.cpp | Petititi/imGraph | 068890ffe2f8fa1fb51bc95b8d9296cc79737fac | [
"BSD-3-Clause"
] | 2 | 2015-01-12T11:27:45.000Z | 2015-03-25T18:24:38.000Z | IHM/main.cpp | Petititi/imGraph | 068890ffe2f8fa1fb51bc95b8d9296cc79737fac | [
"BSD-3-Clause"
] | 30 | 2015-01-07T11:59:07.000Z | 2015-04-24T13:02:01.000Z | IHM/main.cpp | Petititi/imGraph | 068890ffe2f8fa1fb51bc95b8d9296cc79737fac | [
"BSD-3-Clause"
] | 1 | 2018-12-20T12:18:18.000Z | 2018-12-20T12:18:18.000Z | #include "view/GraphicView.h"
#ifdef _WIN32
#pragma warning(disable:4503)//deactivated globally (without push)
#pragma warning(push)
#pragma warning(disable:4996 4251 4244 4275 4800)
#include "listOfBlocks.h"
#endif
#include <QApplication>
#include "opencv2/features2d.hpp"
#include "qtextstream.h"
#ifdef _WIN32
#pragm... | 63.730159 | 347 | 0.789539 | Petititi |
5bab9522d2ee611b52682ac9f4f9c034da0c36c1 | 23,381 | cpp | C++ | util.cpp | sxyu/watplot | 7ea4e40756a084d1a5c7c0cb46a3458220a09682 | [
"Apache-2.0"
] | 2 | 2019-03-15T00:31:39.000Z | 2020-08-12T01:43:51.000Z | util.cpp | sxyu/watplot | 7ea4e40756a084d1a5c7c0cb46a3458220a09682 | [
"Apache-2.0"
] | 1 | 2019-03-15T01:19:01.000Z | 2019-03-15T02:05:06.000Z | util.cpp | sxyu/watplot | 7ea4e40756a084d1a5c7c0cb46a3458220a09682 | [
"Apache-2.0"
] | 1 | 2021-10-11T09:10:35.000Z | 2021-10-11T09:10:35.000Z | #include "stdafx.h"
#include "util.hpp"
namespace watplot {
namespace util {
/* from SO */
std::string random_string(std::string::size_type length)
{
static auto& chrs = "0123456789"
"abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ";
... | 40.451557 | 114 | 0.430948 | sxyu |
5baf3f3de9b3bed763c296869329f680406d4754 | 1,515 | cpp | C++ | main.cpp | nathanmullenax83/wordtab | 9cc01f7cb23fd92e40595d00f9438f24cb160de3 | [
"Unlicense"
] | null | null | null | main.cpp | nathanmullenax83/wordtab | 9cc01f7cb23fd92e40595d00f9438f24cb160de3 | [
"Unlicense"
] | null | null | null | main.cpp | nathanmullenax83/wordtab | 9cc01f7cb23fd92e40595d00f9438f24cb160de3 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <string>
#include <map>
#include <cctype>
#include "dictionary.tpp"
#include "sequencer.tpp"
#include "formatter.tpp"
using std::cin, std::string;
int main(int argc, char **argv) {
Dictionary dict;
Sequencer seq;
Formatter console;
vector<string> args = console.parse_ar... | 31.5625 | 75 | 0.586139 | nathanmullenax83 |
5bb5607042dbe003827d313edd7fc434327659be | 82 | cpp | C++ | Adding Your Own Libraries/Functions.cpp | isaKarabocek/Cpp-Tutorials | 94bceedae55cd1985f707c136d615e8da0fcc1e4 | [
"Apache-2.0"
] | null | null | null | Adding Your Own Libraries/Functions.cpp | isaKarabocek/Cpp-Tutorials | 94bceedae55cd1985f707c136d615e8da0fcc1e4 | [
"Apache-2.0"
] | null | null | null | Adding Your Own Libraries/Functions.cpp | isaKarabocek/Cpp-Tutorials | 94bceedae55cd1985f707c136d615e8da0fcc1e4 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include"Functions.h"
int square(int x)
{
return x*x;
} | 11.714286 | 22 | 0.646341 | isaKarabocek |
5bb8a5945ba14a7383f73cae0edcf7d71c8776df | 10,551 | cc | C++ | wrappers/7.0.0/vtkImageCursor3DWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/7.0.0/vtkImageCursor3DWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/7.0.0/vtkImageCursor3DWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkImageInPlaceFilterWrap.h"
#include "vtkImageCursor3DWrap.h"
#include "vtkObjectWrap.h"
#include "../../plus/plus.h"
using namespace v8;
ex... | 29.227147 | 102 | 0.70799 | axkibe |
5bb8f76b627d0d5a69010539e9b50349984c8b12 | 361 | cpp | C++ | GameEngine/Components/ScoreComponent/ScoreComponent.cpp | Stun3R/Epitech-R-Type | 3d6ef3bd5a937f50de996de2395c43c5115f0776 | [
"MIT"
] | null | null | null | GameEngine/Components/ScoreComponent/ScoreComponent.cpp | Stun3R/Epitech-R-Type | 3d6ef3bd5a937f50de996de2395c43c5115f0776 | [
"MIT"
] | null | null | null | GameEngine/Components/ScoreComponent/ScoreComponent.cpp | Stun3R/Epitech-R-Type | 3d6ef3bd5a937f50de996de2395c43c5115f0776 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2021
** R-TYPE
** File description:
** Created by stun3r,
*/
#include "ScoreComponent.hpp"
ScoreComponent::ScoreComponent() : _score(0)
{
}
int ScoreComponent::getScore() const
{
return _score;
}
void ScoreComponent::setScore(int mScore)
{
_score = mScore;
}
void ScoreComponent::addScore(i... | 13.37037 | 44 | 0.703601 | Stun3R |
5bb936ae52a8cc0af1be986419fc22bd73ed6445 | 349 | hpp | C++ | include/Application.hpp | sirnuke/haiku-scientific-calculator | 36320a37f9201abf5e5364d40419b34045ff1d4e | [
"MIT"
] | null | null | null | include/Application.hpp | sirnuke/haiku-scientific-calculator | 36320a37f9201abf5e5364d40419b34045ff1d4e | [
"MIT"
] | null | null | null | include/Application.hpp | sirnuke/haiku-scientific-calculator | 36320a37f9201abf5e5364d40419b34045ff1d4e | [
"MIT"
] | null | null | null | // Haiku Scientific Calculator
// Bryan DeGrendel (c) 2015
//
// See LICENSE for licensing information.
#ifndef ___APPLICATION_H___
#define ___APPLICATION_H___
#include <AppKit.h>
class Window;
class Application : public BApplication
{
public:
Application();
void ReadyToRun();
private:
Window *window;
};
#... | 13.96 | 41 | 0.744986 | sirnuke |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.