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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e643948083357c21a8532c682b8e4633b815f5c9 | 2,527 | cpp | C++ | Sourcecode/private/mxtest/core/MetronomeNoteTest.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 45 | 2019-04-16T19:55:08.000Z | 2022-02-14T02:06:32.000Z | Sourcecode/private/mxtest/core/MetronomeNoteTest.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 70 | 2019-04-07T22:45:21.000Z | 2022-03-03T15:35:59.000Z | Sourcecode/private/mxtest/core/MetronomeNoteTest.cpp | Webern/MxOld | 822f5ccc92363ddff118e3aa3a048c63be1e857e | [
"MIT"
] | 21 | 2019-05-13T13:59:06.000Z | 2022-03-25T02:21:05.000Z | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "mxtest/control/CompileControl.h"
#ifdef MX_COMPILE_CORE_TESTS
#include "cpul/cpulTestHarness.h"
#include "mxtest/core/HelperFunctions.h"
#include "mx/core/Elements.h"
using namespace mx::core;
using name... | 37.161765 | 81 | 0.709933 | Webern |
e64f72ca9e99fea8bc2387281bd25157545d87b8 | 3,024 | cc | C++ | elements/grid/gridprobereplyreceiver.cc | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/grid/gridprobereplyreceiver.cc | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/grid/gridprobereplyreceiver.cc | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | /*
* gridprobereplyreceiver.{cc,hh} -- element that receives Grid probe reply packets
* Douglas S. J. De Couto
*
* Copyright (c) 1999-2001 Massachusetts Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (... | 28.528302 | 116 | 0.710317 | BorisPis |
e64fdc7138e971f3dd41d24f7f7b6a9085abfcfb | 4,184 | cpp | C++ | Source/Lib/Private/Load.cpp | ankarako/SMPLTools | 52f9e809484217e4249910120532fa1facb796a3 | [
"MIT"
] | 1 | 2020-10-22T03:12:43.000Z | 2020-10-22T03:12:43.000Z | Source/Lib/Private/Load.cpp | ankarako/SMPLTools | 52f9e809484217e4249910120532fa1facb796a3 | [
"MIT"
] | null | null | null | Source/Lib/Private/Load.cpp | ankarako/SMPLTools | 52f9e809484217e4249910120532fa1facb796a3 | [
"MIT"
] | null | null | null | #include <Load.hpp>
#include <Config.hpp>
#include <PyHelpers.hpp>
namespace smpl {
namespace detail {
/// The path to the python module for loading pickle files
static constexpr const char* k_LoadPicklePath = SMPLTOOLS_RESOURCES_DIR"/Python";
} /// !namespace detail
/// \brief Load an SMPL model
/// \param filepath T... | 26.649682 | 101 | 0.647228 | ankarako |
e654b3d06a8d5aaa3c38fd08b4c983e8930bfc00 | 1,485 | cc | C++ | pgen/flags.cc | robertoraggi/pgen | 0f764dae7783b60cfe3156bcebad070bf1013009 | [
"MIT"
] | 5 | 2015-07-08T14:59:02.000Z | 2020-12-29T09:41:07.000Z | pgen/flags.cc | robertoraggi/pgen | 0f764dae7783b60cfe3156bcebad070bf1013009 | [
"MIT"
] | null | null | null | pgen/flags.cc | robertoraggi/pgen | 0f764dae7783b60cfe3156bcebad070bf1013009 | [
"MIT"
] | 1 | 2019-10-08T09:53:08.000Z | 2019-10-08T09:53:08.000Z | // Copyright (c) 2018 Roberto Raggi <roberto.raggi@gmail.com>
//
// 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, cop... | 51.206897 | 80 | 0.756902 | robertoraggi |
e65501cd591d7b5e259ac32cb80b7c753b8ee93b | 3,504 | cxx | C++ | src/spectrum/compute_spectrum_pvm.cxx | ChrisPattison/sdpb | 4668f72c935e7feba705dd8247d9aacb23185f1c | [
"MIT"
] | 45 | 2015-02-10T15:45:22.000Z | 2022-02-24T07:45:01.000Z | src/spectrum/compute_spectrum_pvm.cxx | ChrisPattison/sdpb | 4668f72c935e7feba705dd8247d9aacb23185f1c | [
"MIT"
] | 58 | 2015-02-27T10:03:18.000Z | 2021-08-10T04:21:42.000Z | src/spectrum/compute_spectrum_pvm.cxx | ChrisPattison/sdpb | 4668f72c935e7feba705dd8247d9aacb23185f1c | [
"MIT"
] | 38 | 2015-02-10T11:11:27.000Z | 2022-02-11T20:59:42.000Z | #include "eval_summed.hxx"
#include "get_zeros.hxx"
#include "Zeros.hxx"
#include "compute_lambda.hxx"
#include "../sdp_convert/write_vector.hxx"
#include "../Mesh.hxx"
#include "../max_normalization_index.hxx"
#include "../fill_weights.hxx"
std::vector<Zeros>
compute_spectrum_pvm(const El::Matrix<El::BigFloat> &y,
... | 36.5 | 79 | 0.568208 | ChrisPattison |
e65abbcaa2ab7cea81b7d7a4342512816619cd2c | 79,646 | inl | C++ | src/fonts/stb_font_courier_45_latin1.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_courier_45_latin1.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_courier_45_latin1.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_courier_45_latin1_*... | 68.424399 | 119 | 0.805163 | stetre |
e65c84d1e392cc99473b01e7f1c09f671996c996 | 374 | cc | C++ | experiments/process_sandbox/tests/sandboxlib-basic.cc | aghosn/verona | b75b96bd2b496b662caea58b69fb1c2893cd5f72 | [
"MIT"
] | 3,477 | 2020-01-16T20:13:28.000Z | 2022-03-28T10:46:50.000Z | experiments/process_sandbox/tests/sandboxlib-basic.cc | aghosn/verona | b75b96bd2b496b662caea58b69fb1c2893cd5f72 | [
"MIT"
] | 328 | 2020-01-17T00:33:59.000Z | 2022-03-25T09:40:33.000Z | experiments/process_sandbox/tests/sandboxlib-basic.cc | aghosn/verona | b75b96bd2b496b662caea58b69fb1c2893cd5f72 | [
"MIT"
] | 198 | 2020-01-16T20:55:57.000Z | 2022-02-19T09:26:43.000Z | // Copyright Microsoft and Project Verona Contributors.
// SPDX-License-Identifier: MIT
#include "process_sandbox/cxxsandbox.h"
#include "process_sandbox/sandbox.h"
#include <stdio.h>
int sum(int a, int b)
{
fprintf(stderr, "Adding %d to %d in sandbox\n", a, b);
return a + b;
}
extern "C" void sandbox_init()
{
... | 19.684211 | 56 | 0.71123 | aghosn |
e65f0d87d1d605ea5a757ad94f83a32542fba670 | 60 | cpp | C++ | Onion/Onion/interfaces/InterfaceClientMode.cpp | frk1/Onion | fd442aadfa87a4b06e9f33a7db178aa01d46b440 | [
"MIT"
] | 4 | 2018-08-31T15:02:39.000Z | 2019-06-07T17:45:08.000Z | Onion/Onion/interfaces/InterfaceClientMode.cpp | frk1/Onion | fd442aadfa87a4b06e9f33a7db178aa01d46b440 | [
"MIT"
] | null | null | null | Onion/Onion/interfaces/InterfaceClientMode.cpp | frk1/Onion | fd442aadfa87a4b06e9f33a7db178aa01d46b440 | [
"MIT"
] | 3 | 2018-09-04T09:45:30.000Z | 2019-12-24T22:36:03.000Z | #include "InterfaceClientMode.h"
CClientMode* g_pClientMode; | 30 | 32 | 0.85 | frk1 |
e6606b82b7ca7f48eff83580707a11596b4a2cdf | 2,239 | cc | C++ | sql/init.cc | euleryang/mysql-server-mysql-323-31 | f9346bfa3055f2217fe183bcb182aa6f39bca4d9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | sql/init.cc | euleryang/mysql-server-mysql-323-31 | f9346bfa3055f2217fe183bcb182aa6f39bca4d9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | sql/init.cc | euleryang/mysql-server-mysql-323-31 | f9346bfa3055f2217fe183bcb182aa6f39bca4d9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | /* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ve... | 32.449275 | 79 | 0.682001 | euleryang |
e66e7e72128a8854ad447d502c39f80c5b60a803 | 679 | cpp | C++ | src/TicketOffice.cpp | omarr09/ticket-office-project | ade7ddad52159d11f69f7019d59e432078440dbe | [
"Unlicense"
] | 1 | 2021-04-15T10:15:43.000Z | 2021-04-15T10:15:43.000Z | src/TicketOffice.cpp | omarr09/ticket-office-project | ade7ddad52159d11f69f7019d59e432078440dbe | [
"Unlicense"
] | null | null | null | src/TicketOffice.cpp | omarr09/ticket-office-project | ade7ddad52159d11f69f7019d59e432078440dbe | [
"Unlicense"
] | null | null | null | #include "TicketOffice.h"
using namespace std;
TicketOffice::TicketOffice() : tellers{} {
sem_init(&semaphore, 0, 3);
for (int i = 0; i < 3; i++) {
tellers[i].index = i;
}
}
TicketOffice::~TicketOffice() {
sem_destroy(&semaphore);
}
void
TicketOffice::withSemaphore(function<void()> func) {... | 19.970588 | 77 | 0.630339 | omarr09 |
e66ec37051031d771bde49265557195b59a31e0a | 843 | cpp | C++ | exerc31.cpp | gabrieltavares184/T-cnicas-de-programa-o | 0f4ef7720871a11c281465a3219f5924b29b1380 | [
"MIT"
] | null | null | null | exerc31.cpp | gabrieltavares184/T-cnicas-de-programa-o | 0f4ef7720871a11c281465a3219f5924b29b1380 | [
"MIT"
] | null | null | null | exerc31.cpp | gabrieltavares184/T-cnicas-de-programa-o | 0f4ef7720871a11c281465a3219f5924b29b1380 | [
"MIT"
] | null | null | null | /* Exercício 31: Elabore um programa em que sejam declaradas 2 variáveis do tipo float e a elas atribuídos as notas de 2 provas (os valores deverão
estar no intervalo de 0 a 10). Calcule e mostre a média com 1 casa decimal. */
//------------------------------------------------Bibliotecas----------------------------... | 35.125 | 148 | 0.383155 | gabrieltavares184 |
e672975b6c8bc7642e8f624f1f1dccde16467c90 | 31,730 | cpp | C++ | model.cpp | JustLuoxi/HairAirSimulation | ea2558d5a646f6a9abd74511b84a7507c62c1cad | [
"MIT"
] | 1 | 2020-05-22T09:26:24.000Z | 2020-05-22T09:26:24.000Z | model.cpp | JustLuoxi/HairAirSimulation | ea2558d5a646f6a9abd74511b84a7507c62c1cad | [
"MIT"
] | null | null | null | model.cpp | JustLuoxi/HairAirSimulation | ea2558d5a646f6a9abd74511b84a7507c62c1cad | [
"MIT"
] | null | null | null | #include "model.h"
#include <qmath.h>
#include <QFile>
//bool loadOBJ(const char *path, QVector<QVector3D> &out_positions, QVector<QVector2D> &out_uvs, QVector<QVector3D> &out_normals);
QOpenGLTexture *temp;
Model::Model(){
core = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_3_Core>();
m... | 31.199607 | 140 | 0.558084 | JustLuoxi |
e672b17ebb57cc06c32a11da8e97af72297a5322 | 2,448 | cpp | C++ | src/loader/AssemblyLoader.cpp | roberthusak/lic | 5ad4a7014673bb60b748390856e0c7cb11eaca09 | [
"MIT"
] | 1 | 2017-05-18T11:44:16.000Z | 2017-05-18T11:44:16.000Z | src/loader/AssemblyLoader.cpp | roberthusak/lic | 5ad4a7014673bb60b748390856e0c7cb11eaca09 | [
"MIT"
] | null | null | null | src/loader/AssemblyLoader.cpp | roberthusak/lic | 5ad4a7014673bb60b748390856e0c7cb11eaca09 | [
"MIT"
] | null | null | null | #include "AssemblyLoader.h"
#include <fstream>
#include <iomanip>
#include "format/PeFormat.h"
using namespace std;
using namespace gsl;
using namespace lic;
void lic::DumpBinaryFile(const string& filepath, ostream& out)
{
ifstream file(filepath, ios::binary);
int startPosition = 0;
const int blockSize... | 24.237624 | 88 | 0.585376 | roberthusak |
e67772aef731727edad1e82523d4c472598213f6 | 9,540 | cpp | C++ | sksevr_plugin/plugin/Settings.cpp | prodigious-moustachio/skyui-vr | 932dae1d9e32d375cf874dab87a1944e15f3b932 | [
"MIT"
] | null | null | null | sksevr_plugin/plugin/Settings.cpp | prodigious-moustachio/skyui-vr | 932dae1d9e32d375cf874dab87a1944e15f3b932 | [
"MIT"
] | null | null | null | sksevr_plugin/plugin/Settings.cpp | prodigious-moustachio/skyui-vr | 932dae1d9e32d375cf874dab87a1944e15f3b932 | [
"MIT"
] | null | null | null | #include <fstream>
#include <sstream>
#include <algorithm>
#include <map>
#include <vector>
#include <functional>
#include <cctype>
#include <assert.h>
#include "skse64/ScaleformValue.h"
#include "skse64/ScaleformMovie.h"
#include "skse64/ScaleformCallbacks.h"
#include "skse64_common/Utilities.h"
#include "lua_glue.h... | 29.8125 | 139 | 0.585325 | prodigious-moustachio |
e67b03dc560ee04f3e1717ded53b08109ed2a34f | 2,158 | hpp | C++ | include/crocoddyl/multibody/costs/com-position.hpp | jcarpent/crocoddyl | 155999999f1fbd0c5760875584c540e2bc13645b | [
"BSD-3-Clause"
] | 1 | 2019-12-21T12:11:15.000Z | 2019-12-21T12:11:15.000Z | include/crocoddyl/multibody/costs/com-position.hpp | boyali/crocoddyl | 155999999f1fbd0c5760875584c540e2bc13645b | [
"BSD-3-Clause"
] | null | null | null | include/crocoddyl/multibody/costs/com-position.hpp | boyali/crocoddyl | 155999999f1fbd0c5760875584c540e2bc13645b | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2018-2019, LAAS-CNRS
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#... | 39.962963 | 118 | 0.692308 | jcarpent |
e67b646204f0ee6eb5623cb5daedbcccf9ecf48f | 486 | cpp | C++ | 面试题10.11.峰与谷/wiggleSort.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2019-10-21T14:40:39.000Z | 2019-10-21T14:40:39.000Z | 面试题10.11.峰与谷/wiggleSort.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | null | null | null | 面试题10.11.峰与谷/wiggleSort.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2020-11-04T07:33:34.000Z | 2020-11-04T07:33:34.000Z | class Solution {
public:
void wiggleSort(vector<int>& nums) {
for(int i=1;i<nums.size();i++)
{
if(i%2==0)
{
if(nums[i]<nums[i-1])
{
swap(nums[i],nums[i-1]);
}
}
else
... | 21.130435 | 44 | 0.265432 | YichengZhong |
e6807ce14d5f0b3805e54d70a04e7ff6148d1277 | 151,342 | cpp | C++ | SHARE_TOOL.cpp | newusers0/210529SAPLA | 35ec5253351ea6f373f3495e081769583355fd2c | [
"MIT"
] | 1 | 2022-03-31T12:09:09.000Z | 2022-03-31T12:09:09.000Z | SHARE_TOOL.cpp | newusers0/210529SAPLA | 35ec5253351ea6f373f3495e081769583355fd2c | [
"MIT"
] | null | null | null | SHARE_TOOL.cpp | newusers0/210529SAPLA | 35ec5253351ea6f373f3495e081769583355fd2c | [
"MIT"
] | null | null | null | #pragma once
#ifndef _SHARE_TOOL_CPP_
#define _SHARE_TOOL_CPP_
//#include "SHARE_TOOL.h"
//
////template class SHARE_TOOL<DataType>;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///****************************************... | 39.00567 | 542 | 0.61663 | newusers0 |
e681bbaaa99c8abb2b16a360a3252a3a53500aa7 | 895 | cpp | C++ | src/ConnectionState.cpp | thatcosmonaut/Faucet-Networking-Extension | ba66c0810dff82e388468981c72a5bdd8961c429 | [
"0BSD"
] | null | null | null | src/ConnectionState.cpp | thatcosmonaut/Faucet-Networking-Extension | ba66c0810dff82e388468981c72a5bdd8961c429 | [
"0BSD"
] | null | null | null | src/ConnectionState.cpp | thatcosmonaut/Faucet-Networking-Extension | ba66c0810dff82e388468981c72a5bdd8961c429 | [
"0BSD"
] | null | null | null | #include "ConnectionState.hpp"
#include <TcpSocket.hpp>
ConnectionState::ConnectionState(TcpSocket &tcpSocket) :
socket(&tcpSocket) {
}
void ConnectionState::enterErrorState(const std::string &message) {
socket->enterErrorState(message);
}
void ConnectionState::enterConnectedState(bool noDelay) {
socket->enterCo... | 23.552632 | 102 | 0.773184 | thatcosmonaut |
e686480412aec63145b1c136c355301697f46078 | 6,700 | cpp | C++ | src/optimizers/newtonoptimizer.cpp | chinsp/KiT-RT | d4465d55b2d623b840a9a5696e3aad46d9fb158d | [
"MIT"
] | null | null | null | src/optimizers/newtonoptimizer.cpp | chinsp/KiT-RT | d4465d55b2d623b840a9a5696e3aad46d9fb158d | [
"MIT"
] | null | null | null | src/optimizers/newtonoptimizer.cpp | chinsp/KiT-RT | d4465d55b2d623b840a9a5696e3aad46d9fb158d | [
"MIT"
] | null | null | null | /*!
* @file newtonoptimizer.cpp
* @brief class for solving the minimal entropy optimization problem using a newton optimizer with line search.
* @author S. Schotthöfer
*/
#include "optimizers/newtonoptimizer.h"
#include "common/config.h"
#include "entropies/entropybase.h"
#include "quadratures/quadraturebase.h"
#i... | 33.333333 | 149 | 0.581493 | chinsp |
e6886b86d03dddc24f83a6ef9eb9ae373005943a | 363 | cpp | C++ | src/utils/color.cpp | tiantianhan/rtavis | 325cbe22b28b98924cf8ff0dd6444e39bea1e17d | [
"MIT"
] | null | null | null | src/utils/color.cpp | tiantianhan/rtavis | 325cbe22b28b98924cf8ff0dd6444e39bea1e17d | [
"MIT"
] | null | null | null | src/utils/color.cpp | tiantianhan/rtavis | 325cbe22b28b98924cf8ff0dd6444e39bea1e17d | [
"MIT"
] | null | null | null | #include "color.hpp"
#include <iostream>
#include "vec3.hpp"
#include "utils.hpp"
void write_color(std::ostream &out, Color pixel_color){
out << static_cast<int>(256 * clamp(pixel_color.x(), 0, 0.999)) << ' '
<< static_cast<int>(256 * clamp(pixel_color.y(), 0, 0.999)) << ' '
<< static_cast<int>(256 * cl... | 30.25 | 74 | 0.61708 | tiantianhan |
e689cfd986c90ad93e817a947d0706243ad22b16 | 11,355 | cpp | C++ | main/Ir_driver/ir_protocol_cpp/IrLG.cpp | ductuanhoang/Smart_Ir_Blaster | 404f8545ce0f28a5c6cac87e1767264a2a019ddf | [
"MIT"
] | null | null | null | main/Ir_driver/ir_protocol_cpp/IrLG.cpp | ductuanhoang/Smart_Ir_Blaster | 404f8545ce0f28a5c6cac87e1767264a2a019ddf | [
"MIT"
] | null | null | null | main/Ir_driver/ir_protocol_cpp/IrLG.cpp | ductuanhoang/Smart_Ir_Blaster | 404f8545ce0f28a5c6cac87e1767264a2a019ddf | [
"MIT"
] | null | null | null | /*
* IrLG.cpp
*
* Created on: Jan 15, 2021
* Author: ductu
*/
/***********************************************************************************************************************
* Pragma directive
********************************************************************************************************... | 34.938462 | 121 | 0.482607 | ductuanhoang |
e68b281433bd635b60866ad6620540b5b30d0b05 | 578 | hh | C++ | lib/include/context.hh | kjdv/klog | 8274a3db07d34c1d31a1c001309342c74c5ca03a | [
"MIT"
] | 1 | 2021-05-09T15:54:55.000Z | 2021-05-09T15:54:55.000Z | lib/include/context.hh | kjdv/klog | 8274a3db07d34c1d31a1c001309342c74c5ca03a | [
"MIT"
] | null | null | null | lib/include/context.hh | kjdv/klog | 8274a3db07d34c1d31a1c001309342c74c5ca03a | [
"MIT"
] | 1 | 2021-05-09T15:54:56.000Z | 2021-05-09T15:54:56.000Z | #pragma once
#include <string>
#include <string_view>
#include <fmt/format.h>
namespace klog {
class context_guard
{
public:
explicit context_guard(std::string_view ctx);
template <typename T>
explicit context_guard(std::string_view key, T&& value)
: context_guard(fmt::format("{}={}", key, value))
{}
... | 18.645161 | 59 | 0.707612 | kjdv |
e68d2b3241a2dadc113e78d87e4ef193b66706eb | 504 | cpp | C++ | 202011/24/_222_CountCompleteTreeNodes.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | 202011/24/_222_CountCompleteTreeNodes.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | 202011/24/_222_CountCompleteTreeNodes.cpp | uaniheng/leetcode-cpp | d7b4c9ef43cca8ecb703da5a910d79af61eb3394 | [
"Apache-2.0"
] | null | null | null | //
// Created by gyc on 2020/11/24.
//
#include "../../common.h"
class Solution {
public:
int countNodes(TreeNode* root) {
if (root == nullptr) return 0;
queue<TreeNode*> q1{};
q1.emplace(root);
int count = 0;
while (!q1.empty()) {
++count;
auto n = ... | 21.913043 | 55 | 0.464286 | uaniheng |
e693ba31b354a492e7f8c92ccbd8a6dd11498964 | 520 | cpp | C++ | fizzBuzz.cpp | jlokhande46/LeetcodeProblems | 2023902e392e651f67cf226be1760f43111a3b55 | [
"MIT"
] | null | null | null | fizzBuzz.cpp | jlokhande46/LeetcodeProblems | 2023902e392e651f67cf226be1760f43111a3b55 | [
"MIT"
] | null | null | null | fizzBuzz.cpp | jlokhande46/LeetcodeProblems | 2023902e392e651f67cf226be1760f43111a3b55 | [
"MIT"
] | null | null | null | vector<string> fizzBuzz(int n) {
vector<string> result;
for(int i=1;i<=n;i++){
if(i%3==0 && i%5==0){
result.push_back("FizzBuzz");
}
else if(i%3==0){
result.push_back("Fizz");
}
else if(i%5==0){
... | 27.368421 | 47 | 0.375 | jlokhande46 |
e694939f7a2fc413998f4138aaf67063d41c02c8 | 2,528 | cpp | C++ | src/perception/traffic_light_recognition/traffic_light_fine_detector/src/roi_image_saver/node.cpp | zqw-hooper/AutowareArchitectureProposal | 93ca87fd7255be697219a100a97a639a56f6c4a7 | [
"Apache-2.0"
] | null | null | null | src/perception/traffic_light_recognition/traffic_light_fine_detector/src/roi_image_saver/node.cpp | zqw-hooper/AutowareArchitectureProposal | 93ca87fd7255be697219a100a97a639a56f6c4a7 | [
"Apache-2.0"
] | null | null | null | src/perception/traffic_light_recognition/traffic_light_fine_detector/src/roi_image_saver/node.cpp | zqw-hooper/AutowareArchitectureProposal | 93ca87fd7255be697219a100a97a639a56f6c4a7 | [
"Apache-2.0"
] | 4 | 2021-06-21T11:58:51.000Z | 2021-08-06T08:25:54.000Z | /*
* Copyright 2020 Tier IV, Inc. All rights reserved.
*
* 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 appli... | 39.5 | 98 | 0.714003 | zqw-hooper |
e69a360d5ac56dc933b178bfbcfe086db93a25db | 51,111 | cc | C++ | ev/external/googleapis/home/ubuntu/saaras-io/falcon/build/external/googleapis/google/devtools/clouderrorreporting/v1beta1/report_errors_service.pb.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 91 | 2018-11-24T05:33:58.000Z | 2022-03-16T05:58:05.000Z | ev/external/googleapis/home/ubuntu/saaras-io/falcon/build/external/googleapis/google/devtools/clouderrorreporting/v1beta1/report_errors_service.pb.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 11 | 2019-06-02T23:50:17.000Z | 2022-02-04T23:58:56.000Z | ev/external/googleapis/home/ubuntu/saaras-io/falcon/build/external/googleapis/google/devtools/clouderrorreporting/v1beta1/report_errors_service.pb.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 18 | 2018-11-24T10:35:29.000Z | 2021-04-22T07:22:10.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
#include "google/devtools/clouderrorreporting/v1beta1/report_errors_service.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stu... | 44.175454 | 213 | 0.759973 | sergiorr |
e69ec48dc48f921f40246ced6d14d8f38351055f | 465 | hpp | C++ | core/include/ample/templates/VectorRectangle.hpp | alex999990009/ample | 71336c2fb69748b8c2f27a6810e7cc047cbab359 | [
"MIT"
] | 33 | 2020-03-03T11:52:16.000Z | 2022-01-12T01:47:45.000Z | core/include/ample/templates/VectorRectangle.hpp | alex999990009/ample | 71336c2fb69748b8c2f27a6810e7cc047cbab359 | [
"MIT"
] | 3 | 2020-04-06T10:00:04.000Z | 2021-11-07T13:02:38.000Z | core/include/ample/templates/VectorRectangle.hpp | alex999990009/ample | 71336c2fb69748b8c2f27a6810e7cc047cbab359 | [
"MIT"
] | 7 | 2020-01-24T22:54:26.000Z | 2020-12-07T04:50:57.000Z | namespace ample::geometry
{
template <typename T = float>
std::vector<graphics::Vector2d<T>> VectorRectangle(const graphics::Vector2d<T> &size,
const graphics::Vector2d<T> &origin) // TODO: implement origin
{
utils::ignore(origin);
return {{-size.x / 2.0f, -siz... | 42.272727 | 144 | 0.574194 | alex999990009 |
e6a9f20363254176bc005fd44d11c4bebeec5bc3 | 753 | cpp | C++ | ali.cpp | goyalbhai789/C-Programming- | 495d3b6ae693cc6d273b49fd6d86f4ca61ede89f | [
"MIT"
] | 1 | 2019-09-14T17:59:11.000Z | 2019-09-14T17:59:11.000Z | ali.cpp | goyalbhai789/C-Programming- | 495d3b6ae693cc6d273b49fd6d86f4ca61ede89f | [
"MIT"
] | null | null | null | ali.cpp | goyalbhai789/C-Programming- | 495d3b6ae693cc6d273b49fd6d86f4ca61ede89f | [
"MIT"
] | 3 | 2019-10-01T15:51:17.000Z | 2019-10-02T16:31:08.000Z | #include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin >> s;
int flag = 0;
int var = 0;
if (s[2] != 'A' || s[2] != 'E' || s[2] != 'I' || s[2] != 'O' || s[2] != 'U' || s[2] != 'Y' && s[6] == '-')
{
string s1;
for (int i = 0; i < s1.length(); i++)
{
... | 19.815789 | 110 | 0.272244 | goyalbhai789 |
e6acdd597bce08a5b4c32dba1dfba4636715d917 | 1,840 | cpp | C++ | imex/node/decorator/logic_decorator.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | imex/node/decorator/logic_decorator.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | imex/node/decorator/logic_decorator.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#include "logic_decorator.h"
using namespace so_imex ;
using namespace so_imex::so_node ;
//************************... | 34.716981 | 100 | 0.363043 | aconstlink |
e6af8eb7e8714541cd4f9d9563d8427b58bae7b5 | 671 | cpp | C++ | linked_list_cycle_ii.cpp | ArnabBir/leetcode-solutions | 31cf1edaa2f39c1f8d0300ad815889999058a0c8 | [
"MIT"
] | null | null | null | linked_list_cycle_ii.cpp | ArnabBir/leetcode-solutions | 31cf1edaa2f39c1f8d0300ad815889999058a0c8 | [
"MIT"
] | null | null | null | linked_list_cycle_ii.cpp | ArnabBir/leetcode-solutions | 31cf1edaa2f39c1f8d0300ad815889999058a0c8 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode *detectCycle(ListNode *head) {
if(!head || !head->next) return nullptr;
ListNode* n1 = head->next;
... | 23.137931 | 48 | 0.456036 | ArnabBir |
e6b72e77d71a79e35f73171b39cbf9b11577dd38 | 4,028 | cpp | C++ | Editor/Source/EditorDocumentationView.cpp | MrFrenik/Enjon | 405733f1b8d05c65bc6b4f4c779d3c6845a8c12b | [
"BSD-3-Clause"
] | 121 | 2019-05-02T01:22:17.000Z | 2022-03-19T00:16:14.000Z | Editor/Source/EditorDocumentationView.cpp | MrFrenik/Enjon | 405733f1b8d05c65bc6b4f4c779d3c6845a8c12b | [
"BSD-3-Clause"
] | 42 | 2019-08-17T20:33:43.000Z | 2019-09-25T14:28:50.000Z | Editor/Source/EditorDocumentationView.cpp | MrFrenik/Enjon | 405733f1b8d05c65bc6b4f4c779d3c6845a8c12b | [
"BSD-3-Clause"
] | 20 | 2019-05-02T01:22:20.000Z | 2022-01-30T04:04:57.000Z | // File: EditorDocumentationView.cpp
// Copyright 2016-2018 John Jackson. All Rights Reserved.
#include "EditorDocumentationView.h"
#include "EditorApp.h"
#include "Project.h"
#include <Engine.h>
#include <SubsystemCatalog.h>
#include <ImGui/ImGuiManager.h>
#include <IO/InputManager.h>
#include <Serialize/EntityArchi... | 25.987097 | 116 | 0.53004 | MrFrenik |
e6b8a2a04c76233a6ad37032ad736e7155726862 | 1,454 | cpp | C++ | minorGems/sound/filters/coefficientFilters.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 1 | 2020-01-16T00:07:11.000Z | 2020-01-16T00:07:11.000Z | minorGems/sound/filters/coefficientFilters.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | null | null | null | minorGems/sound/filters/coefficientFilters.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 2 | 2019-09-17T12:08:20.000Z | 2020-09-26T00:54:48.000Z | #include "coefficientFilters.h"
#include <math.h>
double coeffFilter( double inSample, CoeffFilterState *s ) {
double nextOut =
s->a1 * inSample + s->a2 * s->lastIn[0] + s->a3 * s->lastIn[1]
- s->b1 * s->lastOut[0] - s->b2 * s->lastOut[1];
s->lastIn[1] = s->lastIn[0];
s->lastIn[0... | 22.030303 | 71 | 0.493122 | PhilipLudington |
e6b8d29c49b9b607906ad936910e9f1407b93126 | 5,083 | cpp | C++ | tmpg/src/entities_handler.cpp | llGuy/tmpg | 8daf8375ad89dd2a3265aab27a0d3c5387e8868e | [
"MIT"
] | null | null | null | tmpg/src/entities_handler.cpp | llGuy/tmpg | 8daf8375ad89dd2a3265aab27a0d3c5387e8868e | [
"MIT"
] | null | null | null | tmpg/src/entities_handler.cpp | llGuy/tmpg | 8daf8375ad89dd2a3265aab27a0d3c5387e8868e | [
"MIT"
] | null | null | null | #include "entities_handler.h"
#include "utils.h"
#include "platform.h"
#include <glm/gtx/string_cast.hpp>
#include <glm/gtx/vector_angle.hpp>
namespace tmpg {
EntitiesHandler::EntitiesHandler(void)
{
}
void EntitiesHandler::Init(void)
{
m_payerModel = new EntityModel3D(ENTITY_MODEL_RADIUS);
m_... | 26.473958 | 112 | 0.673224 | llGuy |
e6ba640106058f9ceb3f4d5adb00bf430835e4e2 | 377 | hpp | C++ | include/Constants.hpp | thejsa/rhythm-run | ab11f97e7552c217bfa4a8392ec96aadf0f9f6b1 | [
"CC-BY-3.0"
] | 1 | 2022-02-01T19:33:21.000Z | 2022-02-01T19:33:21.000Z | include/Constants.hpp | thejsa/rhythm-run | ab11f97e7552c217bfa4a8392ec96aadf0f9f6b1 | [
"CC-BY-3.0"
] | null | null | null | include/Constants.hpp | thejsa/rhythm-run | ab11f97e7552c217bfa4a8392ec96aadf0f9f6b1 | [
"CC-BY-3.0"
] | null | null | null | /*
* Rhythm Run for Nintendo 3DS
* Lauren Kelly, 2021
*/
#pragma once
class Constants {
public:
static constexpr float GRAVITY = 8.0f * -9.81f;
static constexpr float TERMINAL_VELOCITY = 1200.0f * -GRAVITY;
static constexpr float JUMP_SPEED = 0.25f * -GRAVITY;
static constexpr float MIN_JUMP_SPEED ... | 25.133333 | 66 | 0.700265 | thejsa |
e6bcd43b98b75a4bfd17185c92998f71c673a2de | 761 | cpp | C++ | output.cpp | lotcz/PJC_ukoly | 33d4c8b32c78b6a0df26e05c47fef840aa08cfe3 | [
"MIT"
] | null | null | null | output.cpp | lotcz/PJC_ukoly | 33d4c8b32c78b6a0df26e05c47fef840aa08cfe3 | [
"MIT"
] | null | null | null | output.cpp | lotcz/PJC_ukoly | 33d4c8b32c78b6a0df26e05c47fef840aa08cfe3 | [
"MIT"
] | null | null | null | #include <iostream>
template <typename T>
void output(T value) {
std::cout << value;
}
template <typename T>
void output(std::string name, T value) {
output(name);
output(": ");
output(value);
output("\n");
}
template <typename T>
void output_field(std::string name, T value) {
output(name, value);
}
tem... | 18.560976 | 56 | 0.603154 | lotcz |
e6c3bf3fbe87dd5bcf529af7fb9d60ece78038f7 | 58 | cpp | C++ | Raven/GameCode/RavenBot.cpp | TimPhoeniX/Raven | ccb01c66e7c1d500bebf20c46b87fdb68540f244 | [
"MIT"
] | 2 | 2019-09-26T09:12:54.000Z | 2019-10-03T10:43:59.000Z | Raven/GameCode/RavenBot.cpp | TimPhoeniX/SGE_CppBotsDemo | ccb01c66e7c1d500bebf20c46b87fdb68540f244 | [
"MIT"
] | null | null | null | Raven/GameCode/RavenBot.cpp | TimPhoeniX/SGE_CppBotsDemo | ccb01c66e7c1d500bebf20c46b87fdb68540f244 | [
"MIT"
] | null | null | null | #include "RavenBot.hpp"
#include "SteeringBehaviours.hpp"
| 19.333333 | 33 | 0.793103 | TimPhoeniX |
e6c71fada62db2a18fbcb470d0c25aee2f062e1e | 1,039 | hpp | C++ | src/planner/src/planner.hpp | codyreading/CarND-Path-Planning-Project | b93f0da2e9ec30416b71497725521955e6c2c315 | [
"MIT"
] | null | null | null | src/planner/src/planner.hpp | codyreading/CarND-Path-Planning-Project | b93f0da2e9ec30416b71497725521955e6c2c315 | [
"MIT"
] | null | null | null | src/planner/src/planner.hpp | codyreading/CarND-Path-Planning-Project | b93f0da2e9ec30416b71497725521955e6c2c315 | [
"MIT"
] | null | null | null | #ifndef PLANNER_HPP
#define PLANNER_HPP
#include <tuple>
#include "path_generator.hpp"
#include "state_machine.hpp"
#include "path.hpp"
#include "frenet_point.hpp"
#include "waypoints.hpp"
#include "vehicle.hpp"
class Planner
{
private:
int m_lane;
double m_speed;
double m_dt;
double m_path_length;
... | 22.586957 | 79 | 0.669875 | codyreading |
e6c9db7025326c247858f06d0b42240c03d2c057 | 925 | cpp | C++ | plugins/openal/src/device.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/openal/src/device.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/openal/src/device.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/openal/alc.hpp>
#include <sge/openal/device.hpp>
#include <sge/openal/funcs/alc_close... | 34.259259 | 95 | 0.711351 | cpreh |
e6ca32182e4edfea6dff78516424df94daa0e82b | 53 | hpp | C++ | src/boost_msm_back_default_compile_policy.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_msm_back_default_compile_policy.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_msm_back_default_compile_policy.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/msm/back/default_compile_policy.hpp>
| 26.5 | 52 | 0.830189 | miathedev |
e6d179791c645d19baadad6f01d7dee1b8c677c8 | 9,888 | cpp | C++ | source/IrrlichtDevice.cpp | vonLeebpl/WKIrrlichtLime | 79e17540574bceaecc27049d99eb4ee2f6ca3479 | [
"Zlib"
] | 19 | 2019-06-23T15:43:58.000Z | 2021-07-22T14:22:52.000Z | source/IrrlichtDevice.cpp | vonLeebpl/WKIrrlichtLime | 79e17540574bceaecc27049d99eb4ee2f6ca3479 | [
"Zlib"
] | 4 | 2019-06-23T15:46:02.000Z | 2022-02-07T14:42:58.000Z | source/IrrlichtDevice.cpp | vonLeebpl/WKIrrlichtLime | 79e17540574bceaecc27049d99eb4ee2f6ca3479 | [
"Zlib"
] | 6 | 2019-11-17T08:42:22.000Z | 2022-01-11T07:40:17.000Z | #include "stdafx.h"
#include "CursorControl.h"
#include "Event.h"
#include "FileSystem.h"
#include "GUIEnvironment.h"
#include "IrrlichtCreationParameters.h"
#include "IrrlichtDevice.h"
#include "JoystickInfo.h"
#include "Logger.h"
#include "OSOperator.h"
#include "Randomizer.h"
#include "ReferenceCounted.h"... | 25.096447 | 155 | 0.726942 | vonLeebpl |
e6d25ce4c78a78df7b224c157f4dfee86a0b708e | 1,263 | cpp | C++ | CF #364/D.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | 1 | 2020-12-08T11:21:34.000Z | 2020-12-08T11:21:34.000Z | CF #364/D.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | null | null | null | CF #364/D.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define MAX(a,b) (((a) > (b))? (a) : (b))
#define MIN(a,b) (((a) < (b))? (a) : (b))
#define MEM(a,b) (memset((a),(b),sizeof(a)))
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define pb push_back
#define mp make_pair
#define f1 first
#define f2 second
#define X first
#define Y second
#define Traxe(X... | 16.402597 | 49 | 0.499604 | mirtaba |
e6d4b41ed69eab905f6325488d31a6c49a6ddabb | 2,668 | hpp | C++ | src/Phaser.hpp | SwellLay/BaconPlugs | b081ed8a6cb8eb0cee85378e8a9c4aa1d27b757b | [
"Apache-2.0"
] | null | null | null | src/Phaser.hpp | SwellLay/BaconPlugs | b081ed8a6cb8eb0cee85378e8a9c4aa1d27b757b | [
"Apache-2.0"
] | null | null | null | src/Phaser.hpp | SwellLay/BaconPlugs | b081ed8a6cb8eb0cee85378e8a9c4aa1d27b757b | [
"Apache-2.0"
] | null | null | null | #include <math.h>
#include <vector>
class AllPassFilter
{
// https://en.wikipedia.org/wiki/All-pass_filter
private:
float inp[ 2 ], outp[ 2 ];
float zR, zI, mz2;
public:
AllPassFilter()
{
for( auto i=0; i<2; ++i )
{
inp[ i ] = 0;
outp[ i ] = 0;
}
setRadial( 0.98, 0 );
}... | 17.324675 | 107 | 0.522114 | SwellLay |
e6d52b6c652239f86db0d9ef1a1ab82e499035d5 | 532 | cpp | C++ | src/exercises/ops-timing/ops.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | src/exercises/ops-timing/ops.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | src/exercises/ops-timing/ops.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | #include <chrono>
#include <iostream>
void perform_ops(const size_t n_ops) {
long result {0};
for (size_t i = 0; i < n_ops; ++i) {
result += static_cast<long>(i);
}
}
int main(int argc, char* argv[]) {
const size_t n_ops = static_cast<size_t>(5e8);
auto start = std::chrono::system_clock::now();
pe... | 21.28 | 118 | 0.629699 | j-haj |
e6d87259449c637fef54d1562bb6ca53fe842227 | 582 | hpp | C++ | Topologies/ImagePatchTopology.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 39 | 2015-01-01T07:59:51.000Z | 2021-10-01T18:11:46.000Z | Topologies/ImagePatchTopology.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 1 | 2019-04-24T09:56:15.000Z | 2019-04-24T14:45:46.000Z | Topologies/ImagePatchTopology.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 18 | 2015-01-11T15:10:23.000Z | 2022-02-24T20:02:10.000Z | #ifndef ImagePatchTopology_HPP
#define ImagePatchTopology_HPP
#include "PixelDescriptors/ImagePatchPixelDescriptor.h"
#include "DifferenceFunctions/ImagePatchDifference.hpp"
template <typename TImage>
class ImagePatchTopology
{
public:
typedef ImagePatchPixelDescriptor<TImage> point_type;
typedef float point_diff... | 21.555556 | 66 | 0.785223 | jingtangliao |
5c787f8e86e10bb14d9769f78ccb588f5bbeb7b6 | 3,775 | cpp | C++ | src/AirSensorDisplay.cpp | wonder-engineering/diy_air_sensor | 828f531bac4f6fc480e91b859cbf9f83be8814f8 | [
"MIT"
] | null | null | null | src/AirSensorDisplay.cpp | wonder-engineering/diy_air_sensor | 828f531bac4f6fc480e91b859cbf9f83be8814f8 | [
"MIT"
] | null | null | null | src/AirSensorDisplay.cpp | wonder-engineering/diy_air_sensor | 828f531bac4f6fc480e91b859cbf9f83be8814f8 | [
"MIT"
] | null | null | null | // Copyright 2020 Brett M. Leedy
#include "AirSensorDisplay.hh"
#include "./custom_lcd_glyphs.h"
void AirSensorDisplay::init_lcd() {
lcd = new LiquidCrystal_I2C(0x27, LCD_NUM_COLUMNS, LCD_NUM_ROWS);
lcd->init();
lcd->clear();
lcd->createChar(FILE_OK_GLYPH, file_ok_glyph);
lcd->createChar(FILE_BAD_GLYPH, fil... | 33.705357 | 79 | 0.678146 | wonder-engineering |
5c78867d0c21c6e95780ba287d2a9ee764c9902e | 1,214 | cpp | C++ | testcomplex.cpp | Chigozirim-web/Cplusplus | 163f935143edf62548684eb94a3872929d20127b | [
"MIT"
] | 1 | 2021-05-15T21:41:53.000Z | 2021-05-15T21:41:53.000Z | testcomplex.cpp | Chigozirim-web/Cplusplus | 163f935143edf62548684eb94a3872929d20127b | [
"MIT"
] | null | null | null | testcomplex.cpp | Chigozirim-web/Cplusplus | 163f935143edf62548684eb94a3872929d20127b | [
"MIT"
] | null | null | null | #include <iostream>
#include "Complex.h"
#include <fstream> //for file streams
#include <string>
using namespace std;
int main()
{
Complex c1, c2;
//opening input and output files
ifstream input("in1.txt");
if(!input.good())
{
cerr << "Error opeing input file\n";
exit (1);
}
//readi... | 16.405405 | 41 | 0.553542 | Chigozirim-web |
5c7e6537f4d93146287bea6c657892dbee5404f1 | 4,801 | hpp | C++ | src/line.hpp | HighwayStar/pyMilne | 630fa3715347584980f2a997f7848179bc3847e9 | [
"MIT"
] | 10 | 2020-06-16T08:37:22.000Z | 2020-07-17T23:48:54.000Z | src/line.hpp | HighwayStar/pyMilne | 630fa3715347584980f2a997f7848179bc3847e9 | [
"MIT"
] | null | null | null | src/line.hpp | HighwayStar/pyMilne | 630fa3715347584980f2a997f7848179bc3847e9 | [
"MIT"
] | 5 | 2020-09-25T13:27:42.000Z | 2022-01-28T18:57:13.000Z | #ifndef LINE_H
#define LINE_H
/* -------------------------------------------------------
Line class contains the atomic info required for the ME class
Coded by J. de la Cruz Rodriguez (ISP-SU, 2020)
------------------------------------------------------- */
#include <cstdio>
#include <cmath>
#includ... | 32.221477 | 191 | 0.419913 | HighwayStar |
5c821c0f589d4325de0d463695486941ce76aeb8 | 1,888 | cpp | C++ | src/cbag/yaml/via_info.cpp | ayan-biswas/cbag | 0d08394cf39e90bc3acb4a94fd7b5a6560cf103c | [
"BSD-3-Clause"
] | 1 | 2020-01-07T04:44:17.000Z | 2020-01-07T04:44:17.000Z | src/cbag/yaml/via_info.cpp | skyworksinc/cbag | 0d08394cf39e90bc3acb4a94fd7b5a6560cf103c | [
"BSD-3-Clause"
] | null | null | null | src/cbag/yaml/via_info.cpp | skyworksinc/cbag | 0d08394cf39e90bc3acb4a94fd7b5a6560cf103c | [
"BSD-3-Clause"
] | 1 | 2020-01-07T04:45:13.000Z | 2020-01-07T04:45:13.000Z | #include <type_traits>
#include <cbag/logging/logging.h>
#include <cbag/common/typedefs.h>
#include <cbag/yaml/common.h>
#include <cbag/yaml/vector.h>
#include <cbag/yaml/via_info.h>
namespace YAML {
bool convert<cbag::layout::venc_data>::decode(const Node &node, cbag::layout::venc_data &rhs) {
auto logger = cb... | 34.327273 | 100 | 0.584216 | ayan-biswas |
5c84f119c7ffebe651274df1f00802206dbc337f | 2,285 | cpp | C++ | code/01_skip_base_setup.cpp | nishidate-yuki/vulkan_raytracing_from_scratch | 2771b89e95e2ad24c2685007f3180e1ef7b04681 | [
"MIT"
] | 2 | 2021-08-03T07:28:57.000Z | 2021-12-11T04:05:21.000Z | code/01_skip_base_setup.cpp | nishidate-yuki/vulkan_raytracing_from_scratch | 2771b89e95e2ad24c2685007f3180e1ef7b04681 | [
"MIT"
] | null | null | null | code/01_skip_base_setup.cpp | nishidate-yuki/vulkan_raytracing_from_scratch | 2771b89e95e2ad24c2685007f3180e1ef7b04681 | [
"MIT"
] | null | null | null |
#include "vkutils.hpp"
const uint32_t WIDTH = 800;
const uint32_t HEIGHT = 600;
class Application
{
public:
void run()
{
initWindow();
initVulkan();
mainLoop();
cleanup();
}
private:
GLFWwindow* window;
vk::UniqueInstance instance;
vk::UniqueDebugUtilsMesseng... | 24.308511 | 96 | 0.636761 | nishidate-yuki |
5c86a6b865397b56281b92e21819a205750f889f | 2,524 | cc | C++ | lc0047_permutations_ii.cc | bowen0701/cpp-algorithms-data-structures | b305c232b2328e054770228702d95add1bb4c619 | [
"BSD-2-Clause"
] | null | null | null | lc0047_permutations_ii.cc | bowen0701/cpp-algorithms-data-structures | b305c232b2328e054770228702d95add1bb4c619 | [
"BSD-2-Clause"
] | null | null | null | lc0047_permutations_ii.cc | bowen0701/cpp-algorithms-data-structures | b305c232b2328e054770228702d95add1bb4c619 | [
"BSD-2-Clause"
] | null | null | null | /* Leetcode 47. Permutations II
Medium
URL: https://leetcode.com/problems/permutations-ii/
Given a collection of numbers, nums, that might contain duplicates,
return all possible unique permutations in any order.
Example 1:
Input: nums = [1,1,2]
Output:
[[1,1,2],
[1,2,1],
[2,1,1]]
Example 2:
Input: nums = [1,2,3... | 25.755102 | 74 | 0.522187 | bowen0701 |
5c885a34ddc983d9f4871049690f391f942430dc | 10,018 | cpp | C++ | koom-common/kwai-android-base/src/main/cpp/properties.cpp | a14795860/KOOM | a554c8a22a538da090d6d61bc0f3af08ed73cc31 | [
"Apache-2.0"
] | 2,377 | 2020-08-10T08:00:19.000Z | 2022-03-31T07:44:29.000Z | koom-common/kwai-android-base/src/main/cpp/properties.cpp | a14795860/KOOM | a554c8a22a538da090d6d61bc0f3af08ed73cc31 | [
"Apache-2.0"
] | 102 | 2020-08-10T13:19:26.000Z | 2022-03-23T09:05:35.000Z | koom-common/kwai-android-base/src/main/cpp/properties.cpp | a14795860/KOOM | a554c8a22a538da090d6d61bc0f3af08ed73cc31 | [
"Apache-2.0"
] | 298 | 2020-08-10T08:09:48.000Z | 2022-03-25T07:50:27.000Z | /*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... | 34.308219 | 98 | 0.699241 | a14795860 |
5c8a9f027674299fcfbd885f8150799862fc400b | 44,177 | cpp | C++ | src/all/frm/core/world/World.cpp | john-chapman/GfxSampleFramework | 6c19d1c7fdf28d8a74884876aa8839b4b982d65a | [
"MIT"
] | 19 | 2017-02-22T21:02:44.000Z | 2021-05-19T16:41:30.000Z | src/all/frm/core/world/World.cpp | john-chapman/GfxSampleFramework | 6c19d1c7fdf28d8a74884876aa8839b4b982d65a | [
"MIT"
] | 68 | 2016-11-14T17:48:54.000Z | 2021-11-08T13:41:06.000Z | src/all/frm/core/world/World.cpp | john-chapman/GfxSampleFramework | 6c19d1c7fdf28d8a74884876aa8839b4b982d65a | [
"MIT"
] | 7 | 2017-05-05T17:49:02.000Z | 2020-12-31T06:51:13.000Z | #include "World.h"
#include <frm/core/Json.h>
#include <frm/core/Profiler.h>
#include <frm/core/Serializer.h>
#include <frm/core/Serializable.inl>
#include <frm/core/StringHash.h>
#include <frm/core/world/components/Component.h>
#include <frm/core/world/components/CameraComponent.h>
#include <frm/core/world/components... | 23.287823 | 204 | 0.6792 | john-chapman |
5c9592966859b4adb51790049cf7dd9b5217b464 | 823 | cpp | C++ | timus/volume-02/dont_ask_woman_about_her_age.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | timus/volume-02/dont_ask_woman_about_her_age.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | timus/volume-02/dont_ask_woman_about_her_age.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <algorithm>
#include <cctype>
#include <iostream>
#include <string>
using namespace std;
constexpr unsigned int max_base {36};
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main()
{
use_io_optimizations();
string number;
cin >> number;
... | 17.145833 | 76 | 0.556501 | Rkhoiwal |
5c9ac828d7f2d340e0b3320851921d4379d8619e | 655 | cpp | C++ | Eldritch-Source/Code/Projects/Eldritch/src/Actions/wbactioneldtweetrip.cpp | inferno986return/eldritch-mirror | fefdb06f392b3f8c17f0617a1101c503620bc6fd | [
"Zlib",
"Unlicense"
] | 91 | 2015-01-27T22:56:26.000Z | 2022-03-25T13:33:18.000Z | Code/Projects/Eldritch/src/Actions/wbactioneldtweetrip.cpp | ctreffs/Eldritch | a6554a05c55920d32ed2f6c5d3f9770e8e2cf517 | [
"Zlib"
] | 2 | 2019-01-04T21:42:26.000Z | 2019-01-06T14:34:08.000Z | Code/Projects/Eldritch/src/Actions/wbactioneldtweetrip.cpp | Neb-Software/mEldritch | 7d07a845b3f04242ddf1f0abbad606c830ac8f20 | [
"Zlib"
] | 21 | 2015-04-06T17:41:17.000Z | 2021-06-15T00:26:18.000Z | #include "core.h"
#include "wbactioneldtweetrip.h"
#include "eldritchframework.h"
#include "eldritchgame.h"
#include "wbeventmanager.h"
WBActionEldTweetRIP::WBActionEldTweetRIP()
{
}
WBActionEldTweetRIP::~WBActionEldTweetRIP()
{
}
/*virtual*/ void WBActionEldTweetRIP::Execute()
{
WBAction::Execute()... | 23.392857 | 82 | 0.723664 | inferno986return |
5ca25475ca1ba2f11454477d3e31bf284322e90f | 474 | cpp | C++ | problems/problem087/main.cpp | PoH314/Algorithms-and-Data-Structures | b295379d6b6515921702e2dc358b02680df3960a | [
"MIT"
] | 1 | 2022-03-01T15:47:08.000Z | 2022-03-01T15:47:08.000Z | problems/problem087/main.cpp | PoH314/Algorithms-and-Data-Structures | b295379d6b6515921702e2dc358b02680df3960a | [
"MIT"
] | 1 | 2022-03-21T20:01:08.000Z | 2022-03-21T20:01:08.000Z | problems/problem087/main.cpp | PoH314/Algorithms-and-Data-Structures | b295379d6b6515921702e2dc358b02680df3960a | [
"MIT"
] | 1 | 2022-03-21T17:53:34.000Z | 2022-03-21T17:53:34.000Z | #include <bits/stdc++.h>
using namespace std;
int main() {
int o1, p1, b1, o2, p2, b2;
cin >> o1 >> p1 >> b1 >> o2 >> p2 >> b2;
if (o1 > o2)
cout << 'A' << endl;
else if (o2 > o1)
cout << 'B' << endl;
else if (p1 > p2)
cout << 'A' << endl;
else if (p2 > p1)
... | 18.96 | 44 | 0.394515 | PoH314 |
5ca2c4644556d6b5f3b578a5f688a7170b1f4fbe | 1,432 | cpp | C++ | Src/Filter/QvtkBrainExtractionFilter.cpp | wuzhuobin/QvtkProject | 30bfc798aca0e79043438aa16840464e6731e38c | [
"RSA-MD"
] | 1 | 2018-09-10T12:14:43.000Z | 2018-09-10T12:14:43.000Z | Src/Filter/QvtkBrainExtractionFilter.cpp | wuzhuobin/QvtkProject | 30bfc798aca0e79043438aa16840464e6731e38c | [
"RSA-MD"
] | 3 | 2018-05-22T11:00:59.000Z | 2018-12-07T09:36:19.000Z | Src/Filter/QvtkBrainExtractionFilter.cpp | wuzhuobin/QvtkProject | 30bfc798aca0e79043438aa16840464e6731e38c | [
"RSA-MD"
] | null | null | null | // me
#include "QvtkBrainExtractionFilter.h"
#include "ui_QvtkBrainExtractionFilter.h"
#include "QvtkScene.h"
#include "QvtkImage.h"
#include "QDebug"
// vtk
#include <vtkObjectFactory.h>
#include <vtkCallbackCommand.h>
#include <vtkSmartPointer.h>
vtkStandardNewMacro(Q::vtk::BrainExtractionFilter)
void Q::vtk::BrainE... | 29.833333 | 96 | 0.748603 | wuzhuobin |
5caded244b9c5e2666f76079c2eec57bc8da4a70 | 10,985 | inl | C++ | include/MultiLibrary/Visual/Matrix4x4.inl | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 2 | 2018-06-22T12:43:57.000Z | 2019-05-31T21:56:27.000Z | include/MultiLibrary/Visual/Matrix4x4.inl | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 1 | 2017-09-09T01:21:31.000Z | 2017-11-12T17:52:56.000Z | include/MultiLibrary/Visual/Matrix4x4.inl | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 1 | 2022-03-30T18:57:41.000Z | 2022-03-30T18:57:41.000Z | /*************************************************************************
* MultiLibrary - danielga.bitbucket.org/multilibrary
* A C++ library that covers multiple low level systems.
*------------------------------------------------------------------------
* Copyright (c) 2014, Daniel Almeida
* All rights reserve... | 31.11898 | 110 | 0.597633 | danielga |
5cb1224d2b82fc86d1d53226989eec63285beeb6 | 582 | cpp | C++ | PAT_B/PAT_B1007.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | 3 | 2019-07-08T05:20:28.000Z | 2021-09-22T10:53:26.000Z | PAT_B/PAT_B1007.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | PAT_B/PAT_B1007.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | #include <stdio.h>
#include <math.h>
#include <algorithm>
#include <vector>
using namespace std;
int n;
vector<int> prime;
bool judge(int a)
{
for (int i = 2; i <= sqrt(1.0 * a); i++)
{
if(a % i == 0) return false;
}
return true;
}
int main()
{
int count = 0;
scanf("%d", &n);
for (... | 17.636364 | 49 | 0.487973 | EnhydraGod |
5cb25cc6cbb90212aff5c9b22a76573aa9337832 | 566 | hpp | C++ | RedWolfSandbox/include/RedWolfSandbox/MainWindow.hpp | DavidePistilli173/RedWolf | 1ca752c8e4c6becfb9de942d6059f6076384f3af | [
"Apache-2.0"
] | null | null | null | RedWolfSandbox/include/RedWolfSandbox/MainWindow.hpp | DavidePistilli173/RedWolf | 1ca752c8e4c6becfb9de942d6059f6076384f3af | [
"Apache-2.0"
] | null | null | null | RedWolfSandbox/include/RedWolfSandbox/MainWindow.hpp | DavidePistilli173/RedWolf | 1ca752c8e4c6becfb9de942d6059f6076384f3af | [
"Apache-2.0"
] | null | null | null | #ifndef RWSANDBOX_MAINWINDOW_HPP
#define RWSANDBOX_MAINWINDOW_HPP
#include <RedWolf/ui/Window.hpp>
#include <string_view>
namespace rwsandbox
{
/**< \brief Main window for the application. */
class MainWindow : public rw::ui::Window
{
public:
/**< Name of the main window. */
static constexpr s... | 21.769231 | 65 | 0.65371 | DavidePistilli173 |
5cbec6e5e99d0e9705e92e04ae0473d4e599c0d9 | 2,248 | hpp | C++ | include/ogt/core/oracle_inference.hpp | jesand/lloe | 66235b16fb8cfbb39f72a289c320e701bde94159 | [
"MIT"
] | 2 | 2019-08-11T21:31:22.000Z | 2019-12-30T09:23:04.000Z | include/ogt/core/oracle_inference.hpp | jesand/lloe | 66235b16fb8cfbb39f72a289c320e701bde94159 | [
"MIT"
] | null | null | null | include/ogt/core/oracle_inference.hpp | jesand/lloe | 66235b16fb8cfbb39f72a289c320e701bde94159 | [
"MIT"
] | 2 | 2019-08-11T21:31:33.000Z | 2020-08-27T20:57:26.000Z | /// @file oracle_inference.hpp
/// @brief Declarations related to inferring triples from known triples.
#pragma once
#ifndef OGT_CORE_ORACLE_INFERENCE_HPP
#define OGT_CORE_ORACLE_INFERENCE_HPP
#include <ogt/config.hpp>
#include <ogt/core/oracle.hpp>
#include <Eigen/Dense>
#include <memory>
#include <vector>
namespa... | 32.114286 | 73 | 0.753559 | jesand |
5cc01170c68880d72c32111116ae9f57dff7a798 | 1,017 | cc | C++ | Graph/207.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Graph/207.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Graph/207.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | class Solution {
public:
bool canFinish(int numCourses, vector<vector<int>>& prerequisites) {
vector<vector<int>> g(numCourses,vector<int>());
vector<int> indeg(numCourses,0);
//build the graph
for (auto p:prerequisites){
// all p[0] goes after p[1]
g... | 24.804878 | 72 | 0.396264 | guohaoqiang |
5cc3000ef50f3ac2421b5215b11d557d7416bf08 | 1,577 | cc | C++ | cripto_main.cc | ULL-ESIT-IB-2020-2021/ib-practica10-funciones-doxygen-facu2002 | b4294556cdaec6d34946dc5e7a014d5c169a83da | [
"MIT"
] | null | null | null | cripto_main.cc | ULL-ESIT-IB-2020-2021/ib-practica10-funciones-doxygen-facu2002 | b4294556cdaec6d34946dc5e7a014d5c169a83da | [
"MIT"
] | null | null | null | cripto_main.cc | ULL-ESIT-IB-2020-2021/ib-practica10-funciones-doxygen-facu2002 | b4294556cdaec6d34946dc5e7a014d5c169a83da | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include "cripto_func.cc"
int main(int argc, char* argv[]){
std::ifstream ficheroEntrada;
std::string frase;
std::string clave;
int longitud, k, numero;
ficheroEntrada.open("fichero_entrada.txt");
getline(ficheroEntrada, frase);
ficheroEntrada.c... | 28.160714 | 70 | 0.57324 | ULL-ESIT-IB-2020-2021 |
5cc9954a54baad793d308e98f0190dbb89c2dc2e | 812 | cxx | C++ | Algorithms/Greedy/luck-balance.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | Algorithms/Greedy/luck-balance.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | Algorithms/Greedy/luck-balance.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <numeric>
using namespace std;
inline int sum ( vector<int> &v, int start, int finish )
{ return accumulate ( begin(v) + start, begin(v) + finish, 0 ); }
int main() {
int N, K; cin >> N >> K; int balance = 0... | 33.833333 | 98 | 0.589901 | will-crawford |
5cc9c8ca8b3020b2766d0ac19debe92ce165f29b | 20,515 | hpp | C++ | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/atomic_math.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/atomic_math.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/atomic_math.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | // Copyright (C) 2013-2015 Kasper Kristensen
// License: GPL-2
/**
\brief Namespace with special functions and derivatives
This namespace extends the 'derivatives table' of CppAD.
- R's special math library is extended with derivatives in cases
where symbolic derivatives are available. These special func... | 31.85559 | 110 | 0.60853 | rebeccagb |
5ccaabbe49df30ad00ce794b2494a484a32c6d52 | 1,611 | hpp | C++ | Cpp_and_Hpp_files/adc_pins.hpp | ThePatman3/IPASS_repository | 08fb3c2b40a5b8b1191f6bc1bf52b4251dd03510 | [
"MIT"
] | null | null | null | Cpp_and_Hpp_files/adc_pins.hpp | ThePatman3/IPASS_repository | 08fb3c2b40a5b8b1191f6bc1bf52b4251dd03510 | [
"MIT"
] | null | null | null | Cpp_and_Hpp_files/adc_pins.hpp | ThePatman3/IPASS_repository | 08fb3c2b40a5b8b1191f6bc1bf52b4251dd03510 | [
"MIT"
] | null | null | null | #ifndef ADCPIN_HPP
#define ADCPIN_HPP
#include "hwlib.hpp"
#include "sam.h"
namespace lmtlib{
/// \brief
/// Class to represent the adc pins on a arduino due, this class is currently not working.
/// \details
/// When working, this class represents all adc pins on the arduino due. One can convert analog data using t... | 35.8 | 166 | 0.726878 | ThePatman3 |
5ccf07f5783cfd84fc00ff62aed653ed8181cdc6 | 1,408 | cpp | C++ | Tests/TestGUI/Scenes/Scene1.cpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | Tests/TestGUI/Scenes/Scene1.cpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | Tests/TestGUI/Scenes/Scene1.cpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | #include "Scene1.hpp"
#include <Inputs/Input.hpp>
#include <Uis/Drivers/ConstantDriver.hpp>
#include <Uis/Drivers/SlideDriver.hpp>
#include <Uis/Uis.hpp>
namespace test {
const Time UI_SLIDE_TIME = 0.2s;
Scene1::Scene1() :
Scene(std::make_unique<Camera>()),
m_uiStartLogo(&Uis::Get()->GetCanvas()),
m_uiPanels(&Uis... | 26.566038 | 117 | 0.706676 | dreadris |
5ccf463e3cf15150bb079a4cace7e6ca8d65ee2d | 703 | hpp | C++ | allium/la/cuda_array.hpp | hrittich/allium | d2691f51f9dc5ccaf808dd11fb28d251eb00b15d | [
"Apache-2.0"
] | 1 | 2022-03-20T15:52:32.000Z | 2022-03-20T15:52:32.000Z | allium/la/cuda_array.hpp | BuboniK666/allium | d2691f51f9dc5ccaf808dd11fb28d251eb00b15d | [
"Apache-2.0"
] | null | null | null | allium/la/cuda_array.hpp | BuboniK666/allium | d2691f51f9dc5ccaf808dd11fb28d251eb00b15d | [
"Apache-2.0"
] | 1 | 2022-03-20T15:54:06.000Z | 2022-03-20T15:54:06.000Z |
#ifndef ALLIUM_LA_CUDA_ARRAY_HPP
#define ALLIUM_LA_CUDA_ARRAY_HPP
#include <allium/config.hpp>
#ifdef ALLIUM_USE_CUDA
namespace allium {
/**
* Stores an array on the GPU. Memory is automatically managed.
*/
template <typename T>
class CudaArray final {
public:
CudaArray(size_t element_count=... | 19 | 65 | 0.651494 | hrittich |
5cd6e69d34772f5dda5d646e1c2a3cc6973cf682 | 1,381 | hpp | C++ | engine/runtime/rendering/generator/parametric_mesh.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 791 | 2016-11-04T14:13:41.000Z | 2022-03-20T20:47:31.000Z | engine/runtime/rendering/generator/parametric_mesh.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 28 | 2016-12-01T05:59:30.000Z | 2021-03-20T09:49:26.000Z | engine/runtime/rendering/generator/parametric_mesh.hpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 151 | 2016-12-21T09:44:43.000Z | 2022-03-31T13:42:18.000Z | #ifndef GENERATOR_PARAMETRICMESH_HPP
#define GENERATOR_PARAMETRICMESH_HPP
#include <functional>
#include "mesh_vertex.hpp"
#include "triangle.hpp"
namespace generator
{
/// A mesh with values evaluated using a callback function.
class parametric_mesh_t
{
public:
class triangles_t
{
public:
triangle_t generate(... | 19.180556 | 90 | 0.733526 | ValtoForks |
5cd831e9af839c41a09586ea2d29894a2915b703 | 131 | cpp | C++ | BuildForiOS/Classes/Native/Il2CppGenericMethodTable.cpp | EmmaPham/Meow | b16e7729622b7d29a94c28c052c27fc654809187 | [
"MIT"
] | null | null | null | BuildForiOS/Classes/Native/Il2CppGenericMethodTable.cpp | EmmaPham/Meow | b16e7729622b7d29a94c28c052c27fc654809187 | [
"MIT"
] | null | null | null | BuildForiOS/Classes/Native/Il2CppGenericMethodTable.cpp | EmmaPham/Meow | b16e7729622b7d29a94c28c052c27fc654809187 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:97fa1a17b32675a92d4b8a02cf34e54bfd164d763dbefa4f19d11ffa538f2180
size 707942
| 32.75 | 75 | 0.885496 | EmmaPham |
5ce76a0f71d93ef6206f9ce4b8853b1c7d667fc6 | 383 | cpp | C++ | unordered_map.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | unordered_map.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | unordered_map.cpp | vishwajeet-hogale/LearnSTL | 0cbfc12b66ba844de23d7966d18cadc7b2d5a77f | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
/* Uses hashing to store the data */
/* Takes O(N) time to insert */
int main(){
map<char,int> M;
unordered_map<char,int> U;
string s = "Vishwajeet Shivaji Hogale";
for(char c:s){ // (Nlog(N)) N= len(s)
M[c]++;
}
for(char ... | 22.529412 | 43 | 0.54047 | vishwajeet-hogale |
5ce7ba8d81375f9641f7a4a70d22a679126d64c9 | 24,663 | hpp | C++ | inc/geometry.hpp | bartosz-bogulas/zad5 | 58f5efd7b825068176506e1cfca8e1a59d044bec | [
"MIT"
] | null | null | null | inc/geometry.hpp | bartosz-bogulas/zad5 | 58f5efd7b825068176506e1cfca8e1a59d044bec | [
"MIT"
] | 1 | 2020-12-14T19:26:57.000Z | 2020-12-14T19:27:33.000Z | inc/geometry.hpp | bartosz-bogulas/zad5 | 58f5efd7b825068176506e1cfca8e1a59d044bec | [
"MIT"
] | null | null | null | #ifndef ZAD5_GEOMETRY_HPP
#define ZAD5_GEOMETRY_HPP
#include <iostream>
#include <cmath>
#define TO_RADIANS (M_PI / 180)
#define TO_DEGREES (180 / M_PI)
namespace geometry {
template <class T>
static T to_radians(T degrees) {
return degrees * TO_RADIANS;
}
template <class T>
static T to_... | 34.254167 | 139 | 0.596359 | bartosz-bogulas |
5cedb9f328b3b11cb9f3d30923f245ab6cd8390c | 2,185 | hpp | C++ | src/GenreParser/Helpers.hpp | gramanicu/apd_tema3 | 58141f212f0b03e0daac3c21f23d39f52b52f41f | [
"MIT"
] | null | null | null | src/GenreParser/Helpers.hpp | gramanicu/apd_tema3 | 58141f212f0b03e0daac3c21f23d39f52b52f41f | [
"MIT"
] | null | null | null | src/GenreParser/Helpers.hpp | gramanicu/apd_tema3 | 58141f212f0b03e0daac3c21f23d39f52b52f41f | [
"MIT"
] | null | null | null | /**
* @file Helpers.hpp
* @author Grama Nicolae (gramanicu@gmail.com)
* @brief Different constants and helpers functions declarations
* @copyright Copyright (c) 2020
*/
#pragma once
#include <iostream>
#include <sstream>
namespace GenreParser::Constants {
const int MASTER = 0;
const int WORKERS = 4;
... | 30.774648 | 76 | 0.62151 | gramanicu |
5cee9952c494c1327b840739079b56b83cb0ad37 | 8,197 | cpp | C++ | CWin/CWin/menu/menu_manager.cpp | benbraide/CWin | 0441b48a71fef0dbddabf61033d7286669772c1e | [
"MIT"
] | null | null | null | CWin/CWin/menu/menu_manager.cpp | benbraide/CWin | 0441b48a71fef0dbddabf61033d7286669772c1e | [
"MIT"
] | null | null | null | CWin/CWin/menu/menu_manager.cpp | benbraide/CWin | 0441b48a71fef0dbddabf61033d7286669772c1e | [
"MIT"
] | null | null | null | #include "../app/app_object.h"
#include "../events/menu_events.h"
#include "../events/drawing_events.h"
#include "../ui/ui_window_surface.h"
#include "../hook/io_hook.h"
#include "menu_separator.h"
#include "system_popup_menu.h"
#include "menu_manager.h"
cwin::menu::manager::manager(thread::object &thread)
: thread... | 33.871901 | 171 | 0.730877 | benbraide |
5cf3eb861ce52b9087a2d66572372370f89e6a20 | 3,020 | cpp | C++ | src/linalg.cpp | mattlkf/taco | d5fcc3dc767532815cd2f513766dd2de5dad928a | [
"MIT"
] | null | null | null | src/linalg.cpp | mattlkf/taco | d5fcc3dc767532815cd2f513766dd2de5dad928a | [
"MIT"
] | null | null | null | src/linalg.cpp | mattlkf/taco | d5fcc3dc767532815cd2f513766dd2de5dad928a | [
"MIT"
] | null | null | null | #include "taco/linalg.h"
#include "taco/index_notation/index_notation.h"
#include "taco/index_notation/index_notation_nodes.h"
#include "taco/linalg_notation/linalg_notation_nodes.h"
#include "taco/linalg_notation/linalg_rewriter.h"
using namespace std;
namespace taco {
LinalgBase::LinalgBase(string name, Type tens... | 29.607843 | 123 | 0.70298 | mattlkf |
5cf4b359f3998597e959f0dd28a651a32622c575 | 668 | hpp | C++ | source/cppx-core/config.hpp | alf-p-steinbach/cppx-core | 114838a02b092c16825748bfe255ef854f45ac32 | [
"MIT"
] | 5 | 2019-02-19T07:06:38.000Z | 2021-11-21T18:54:41.000Z | source/cppx-core/config.hpp | alf-p-steinbach/cppx-core | 114838a02b092c16825748bfe255ef854f45ac32 | [
"MIT"
] | null | null | null | source/cppx-core/config.hpp | alf-p-steinbach/cppx-core | 114838a02b092c16825748bfe255ef854f45ac32 | [
"MIT"
] | null | null | null | #pragma once // Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi").
#include <cppx-core-language/types/Truth.hpp> // cppx::Truth
namespace cppx
{
constexpr Truth check_the_execution_character_set
#ifndef CPPX_NO_EXECUTION_CHARACTER_SET_CHECK_PLEASE
= true; ... | 27.833333 | 82 | 0.625749 | alf-p-steinbach |
9dca1f23da550d6fe2a68d2a67e61cd121521e7c | 248 | hpp | C++ | src/mdp/stochasticgames/SG_domain.hpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | 4 | 2019-04-19T00:11:36.000Z | 2020-04-08T09:50:37.000Z | src/mdp/stochasticgames/SG_domain.hpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | null | null | null | src/mdp/stochasticgames/SG_domain.hpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | null | null | null |
/*
* Mark Benjamin 6th March 2019
* Copyright (c) 2019 Mark Benjamin
*/
#ifndef FASTRL_MDP_STOCHASTICGAMES_SG_DOMAIN_HPP
#define FASTRL_MDP_STOCHASTICGAMES_SG_DOMAIN_HPP
class SGDomain {
};
#endif //FASTRL_MDP_STOCHASTICGAMES_SG_DOMAIN_HPP
| 16.533333 | 49 | 0.806452 | MarkieMark |
9dd28686ac2971831227356ab3488ddec494910c | 2,794 | cpp | C++ | FariaRomEditor/MapEditorTools.cpp | dennisjenkins75/FariaRomEditor | 5050ce9a498ecb4ad5f7ffc76503cce258961cba | [
"MIT"
] | 6 | 2017-08-06T20:02:34.000Z | 2018-10-23T16:21:58.000Z | FariaRomEditor/MapEditorTools.cpp | dennisjenkins75/FariaRomEditor | 5050ce9a498ecb4ad5f7ffc76503cce258961cba | [
"MIT"
] | null | null | null | FariaRomEditor/MapEditorTools.cpp | dennisjenkins75/FariaRomEditor | 5050ce9a498ecb4ad5f7ffc76503cce258961cba | [
"MIT"
] | null | null | null | /* MapEditorTools.cpp */
#include "FariaRomEditor.h"
static void DoToolsPaint(HWND hWnd, MAP_CONTAINER *pMapData)
{
PAINTSTRUCT ps;
RECT rect;
HDC hDC;
HDC hdc2;
HBITMAP hBmpOld;
BITMAP bm;
int src_x, src_y, x, y;
unsigned char tile;
int nTile;
int bmp_tiles_per_row;
PALETTE_DATA *pPalett... | 26.865385 | 122 | 0.679313 | dennisjenkins75 |
9dd6b8a5b38772b01eb62c40a478a4eb0bbc6862 | 132 | cpp | C++ | lkRay/Renderer/ThreadData.cpp | lookeypl/lkRay | c12d87add95f5958d77a8a8a683fc954837b6c60 | [
"WTFPL"
] | null | null | null | lkRay/Renderer/ThreadData.cpp | lookeypl/lkRay | c12d87add95f5958d77a8a8a683fc954837b6c60 | [
"WTFPL"
] | null | null | null | lkRay/Renderer/ThreadData.cpp | lookeypl/lkRay | c12d87add95f5958d77a8a8a683fc954837b6c60 | [
"WTFPL"
] | null | null | null | #include "PCH.hpp"
#include "ThreadData.hpp"
namespace lkRay {
namespace Renderer {
} // namespace Renderer
} // namespace lkRay
| 13.2 | 25 | 0.719697 | lookeypl |
9de4a43c9dcd2d8bab726e64f947e402d1a65bbb | 7,781 | cpp | C++ | source/Tools/ElypseBinary/ElypseApp.cpp | DragonJoker/Elypse | 5dce65ba97fb830349d157da77d9dc151cccc70e | [
"MIT"
] | 9 | 2017-12-06T17:21:56.000Z | 2020-11-15T14:06:07.000Z | source/Tools/ElypseBinary/ElypseApp.cpp | DragonJoker/Elypse | 5dce65ba97fb830349d157da77d9dc151cccc70e | [
"MIT"
] | null | null | null | source/Tools/ElypseBinary/ElypseApp.cpp | DragonJoker/Elypse | 5dce65ba97fb830349d157da77d9dc151cccc70e | [
"MIT"
] | 1 | 2020-01-08T05:20:05.000Z | 2020-01-08T05:20:05.000Z | /*
See LICENSE file in root folder
*/
#include "ElypseBinaryPch.h"
#include "ElypseCtrl.h"
#include "ElypseApp.h"
#include "ElypseFrame.h"
#include <GuiElypsePlugin.h>
#include <ElypseInstance.h>
#include <ElypseController.h>
#include <ElypseLogs.h>
#include <StringConverter.h>
#include <StringUtils.h>
#include <Fi... | 26.64726 | 112 | 0.668937 | DragonJoker |
9de528617a6cb65ec54e81a6129089f81ec0e80a | 271 | cpp | C++ | SFML Tutorial/Bullet.cpp | arsenalgunnershubert777/LazerMan_Game | cea1f55b8e055052116be6ccf4e76b7d61bfdcf6 | [
"MIT"
] | null | null | null | SFML Tutorial/Bullet.cpp | arsenalgunnershubert777/LazerMan_Game | cea1f55b8e055052116be6ccf4e76b7d61bfdcf6 | [
"MIT"
] | null | null | null | SFML Tutorial/Bullet.cpp | arsenalgunnershubert777/LazerMan_Game | cea1f55b8e055052116be6ccf4e76b7d61bfdcf6 | [
"MIT"
] | null | null | null | #include "Bullet.hpp"
namespace g35 { //class for beam/laser
Bullet::Bullet(float radius, sf::Color color):currVelocity(0.f,0.f),maxSpeed(10.f) {
this->shape.setRadius(radius);
this->shape.setFillColor(color);
}
}
| 20.846154 | 88 | 0.579336 | arsenalgunnershubert777 |
9de5f111ffb7585c1a37d84cbc8cd0315b977c7f | 8,036 | hpp | C++ | src/integrator/cuda/collocation/collocation_angular_spherical_unnorm.hpp | ajaypanyala/GauXC | 8642cddc684a12bf9b0c0126cb45eb3818bb77e2 | [
"BSD-3-Clause-LBNL"
] | 8 | 2020-09-22T13:58:43.000Z | 2022-01-13T02:11:07.000Z | src/integrator/cuda/collocation/collocation_angular_spherical_unnorm.hpp | ajaypanyala/GauXC | 8642cddc684a12bf9b0c0126cb45eb3818bb77e2 | [
"BSD-3-Clause-LBNL"
] | 25 | 2020-09-25T17:33:51.000Z | 2021-10-15T16:10:19.000Z | src/integrator/cuda/collocation/collocation_angular_spherical_unnorm.hpp | ajaypanyala/GauXC | 8642cddc684a12bf9b0c0126cb45eb3818bb77e2 | [
"BSD-3-Clause-LBNL"
] | 11 | 2020-09-25T17:41:42.000Z | 2022-02-21T12:02:23.000Z | #pragma once
#include "collocation_device_constants.hpp"
#include <cassert>
#ifndef GPGAUEVAL_INLINE
# define GPGAUEVAL_INLINE __noinline__
#endif
namespace GauXC {
namespace integrator {
namespace cuda {
template <typename T>
GPGAUEVAL_INLINE __device__ void collocation_spherical_unnorm_angular_0(
int... | 27.426621 | 117 | 0.570557 | ajaypanyala |
9de82dfd1bbab69feea7c5199278c3cc7c7f8240 | 32,733 | cc | C++ | engine/editor/missionAreaEditor.cc | ClayHanson/B4v21-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | 1 | 2020-08-18T19:45:34.000Z | 2020-08-18T19:45:34.000Z | engine/editor/missionAreaEditor.cc | ClayHanson/B4v21-Launcher-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | null | null | null | engine/editor/missionAreaEditor.cc | ClayHanson/B4v21-Launcher-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------
#include "editor/missionAreaEditor.h"
#include "dgl/gBitmap.h"
#include "terrain/terrData.h"
#incl... | 29.018617 | 136 | 0.585648 | ClayHanson |
9de90bf7b7bab0617fbdf7d4e2e5ba60e47c33f2 | 1,718 | cc | C++ | src/Utils_Poly.cc | ebertolazzi/Malloc | 4c1f8950cd631c185e141aaccfe0cd53daa91490 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | src/Utils_Poly.cc | ebertolazzi/Malloc | 4c1f8950cd631c185e141aaccfe0cd53daa91490 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | src/Utils_Poly.cc | ebertolazzi/Malloc | 4c1f8950cd631c185e141aaccfe0cd53daa91490 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | /*--------------------------------------------------------------------------*\
| |
| Copyright (C) 2022 |
| |
| ... | 49.085714 | 78 | 0.222352 | ebertolazzi |
9deb7b2626af293bddb9f68a80f571116e030546 | 15,165 | cpp | C++ | igvc_navigation/src/mapper/mapper.cpp | jiajunmao/igvc-software | ea1b11d9bb20e85e5f47aa03f930e9b65877d80c | [
"MIT"
] | 2 | 2020-06-04T01:33:01.000Z | 2021-12-22T03:59:53.000Z | igvc_navigation/src/mapper/mapper.cpp | jiajunmao/igvc-software | ea1b11d9bb20e85e5f47aa03f930e9b65877d80c | [
"MIT"
] | null | null | null | igvc_navigation/src/mapper/mapper.cpp | jiajunmao/igvc-software | ea1b11d9bb20e85e5f47aa03f930e9b65877d80c | [
"MIT"
] | 2 | 2020-06-04T01:26:43.000Z | 2021-12-22T03:59:54.000Z | #include "mapper.h"
#include <parameter_assertions/assertions.h>
#include <pcl_ros/transforms.h>
#include "map_utils.h"
Mapper::Mapper(ros::NodeHandle& pNh) : ground_plane_{ 0, 0, 1, 0 }
{
assertions::getParam(pNh, "sensor_model/max_range", radius_);
assertions::getParam(pNh, "sensor_model/angular_resolution", ang... | 44.342105 | 120 | 0.74184 | jiajunmao |
9decdbd1d9390a81c5294d4ecec6362fb58cb4f9 | 332 | cpp | C++ | 1-6-2.cpp | s-shirayama/ProgramingContestChallengeBook | 7aa73ddf2c42950d0fbaf97b5403bfddbbd66392 | [
"MIT"
] | null | null | null | 1-6-2.cpp | s-shirayama/ProgramingContestChallengeBook | 7aa73ddf2c42950d0fbaf97b5403bfddbbd66392 | [
"MIT"
] | null | null | null | 1-6-2.cpp | s-shirayama/ProgramingContestChallengeBook | 7aa73ddf2c42950d0fbaf97b5403bfddbbd66392 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e6;
int main() {
int L, N, X;
cin >> L >> N;
int _min = 0, _max = 0;
for (int i = 0; i < N; i++) {
scanf("%d", &X);
_min = max(_min, min(X, L-X));
_max = max(_max, max(X, L-X));
}
cout << _min << " " << _max << endl;
return 0;
}
/*
10 3
2 6 ... | 14.434783 | 37 | 0.487952 | s-shirayama |
9deda9f9744a8928ed21cc16c24a510e5121659c | 5,785 | cpp | C++ | Snake/Game/Systems/MovementSystem.cpp | danielricci/Snake | f6e1e8ccb7a9f7561ae5153a3b26c7588b19457b | [
"MIT"
] | 2 | 2020-03-02T13:17:53.000Z | 2020-05-09T06:02:20.000Z | Snake/Game/Systems/MovementSystem.cpp | danielricci/Snake | f6e1e8ccb7a9f7561ae5153a3b26c7588b19457b | [
"MIT"
] | 44 | 2019-09-14T03:29:15.000Z | 2020-05-09T05:57:20.000Z | Snake/Game/Systems/MovementSystem.cpp | danielricci/snake | f6e1e8ccb7a9f7561ae5153a3b26c7588b19457b | [
"MIT"
] | null | null | null | /**
* MIT License
*
* Copyright (c) 2020 Daniel Ricci {@literal <thedanny09@icloud.com>}
*
* 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 th... | 46.28 | 222 | 0.679862 | danielricci |
9dedc7b4882cee745c179d2176e3d6224a6de284 | 106,628 | cpp | C++ | src/mineview_new.cpp | SiriusTR/dle-experimental | 2ee17b4277b68eef57960d5cf9762dd986eaa0d9 | [
"MIT"
] | null | null | null | src/mineview_new.cpp | SiriusTR/dle-experimental | 2ee17b4277b68eef57960d5cf9762dd986eaa0d9 | [
"MIT"
] | 3 | 2019-09-10T03:50:40.000Z | 2019-09-23T04:20:14.000Z | src/mineview_new.cpp | SiriusTR/dle-experimental | 2ee17b4277b68eef57960d5cf9762dd986eaa0d9 | [
"MIT"
] | 1 | 2021-10-02T14:16:28.000Z | 2021-10-02T14:16:28.000Z | // dlcView.cpp : implementation of the CMineView class
//
#include "stdafx.h"
#include "dlc.h"
#include "dlcDoc.h"
#include "mineview.h"
#include "palette.h"
#include "textures.h"
#include "global.h"
#include "render.h"
#include "io.h"
#include <math.h>
#include <time.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef ... | 28.208466 | 133 | 0.584987 | SiriusTR |
9df0d5fad866dda6529499917d7778b943a3be56 | 915 | cpp | C++ | src/network/protocol_handler_factory.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 3 | 2018-01-08T01:06:17.000Z | 2019-06-17T23:14:36.000Z | src/network/protocol_handler_factory.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 1 | 2016-05-10T14:38:18.000Z | 2016-05-10T18:49:08.000Z | src/network/protocol_handler_factory.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 2 | 2017-03-23T18:59:38.000Z | 2017-03-25T19:15:08.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// protocol_handler_factory.cpp
//
// Identification: src/network/protocol_handler_factory.cpp
//
// Copyright (c) 2015-2018, Carnegie Mellon University Database Group
//
//===----------------------... | 29.516129 | 80 | 0.59235 | aaron-tian |
9dfdcc560db5b0a2f255c52243cd113728275708 | 610 | cpp | C++ | Numeric Patterns/numericpattern316.cpp | Starkl7/CPlusPlus-PatternHouse | cf53feac9857d0d87981909e0e8daeda26cb02f4 | [
"MIT"
] | 4 | 2021-09-21T03:43:26.000Z | 2022-01-07T03:07:56.000Z | Numeric Patterns/numericpattern316.cpp | Starkl7/CPlusPlus-PatternHouse | cf53feac9857d0d87981909e0e8daeda26cb02f4 | [
"MIT"
] | 916 | 2021-09-01T15:40:24.000Z | 2022-01-10T17:57:59.000Z | Numeric Patterns/numericpattern316.cpp | Starkl7/CPlusPlus-PatternHouse | cf53feac9857d0d87981909e0e8daeda26cb02f4 | [
"MIT"
] | 20 | 2021-09-30T18:13:58.000Z | 2022-01-06T09:55:36.000Z | #include <iostream>
using namespace std;
int main()
{
int size=5;
int chr=size-1;
for(int i=0;i<size;i++){
for(int j=0;j<size-1;j++){
//Print first row
if(i==0){
cout<<"*"<<" ";
}
//Print ... | 18.484848 | 36 | 0.27377 | Starkl7 |
3b0191f199907e3bb6cef059024c9efbc85985b0 | 428 | cpp | C++ | 2566.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 2566.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 2566.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int indX, indY, maxNum=0;
for(int i=1;i<=9;i++) {
for(int j=1;j<=9;j++) {
int num;
cin >> num;
if(maxNum < num) {
indX = i;
indY = j;
maxNum = num;
}
... | 17.833333 | 49 | 0.38785 | jaemin2682 |
3b01e3905ae4b4282e242ef67501e4bfcd426999 | 17,369 | cpp | C++ | src/ui/SidePane.cpp | tomasiser/pepr3d | 5eaacd573c553e0e8eb79212842894bf32b5c666 | [
"BSD-2-Clause"
] | 128 | 2019-11-18T16:09:58.000Z | 2022-01-15T03:59:51.000Z | src/ui/SidePane.cpp | tomasiser/pepr3d | 5eaacd573c553e0e8eb79212842894bf32b5c666 | [
"BSD-2-Clause"
] | 3 | 2019-04-01T17:41:19.000Z | 2020-07-23T08:55:08.000Z | src/ui/SidePane.cpp | tomasiser/pepr3d | 5eaacd573c553e0e8eb79212842894bf32b5c666 | [
"BSD-2-Clause"
] | 31 | 2019-04-04T11:28:11.000Z | 2022-03-14T08:52:38.000Z | #include "SidePane.h"
#include "MainApplication.h"
#include "commands/CmdColorManager.h"
#include "geometry/Geometry.h"
#include "tools/Tool.h"
namespace pepr3d {
void SidePane::draw() {
ImGuiWindowFlags window_flags = 0;
window_flags |= ImGuiWindowFlags_NoTitleBar;
window_flags |= ImGuiWindowFlags_NoScro... | 47.980663 | 120 | 0.634694 | tomasiser |
3b05b7d3a74434bb310213de305cb599c165e951 | 3,276 | cpp | C++ | AppleOpenSource/WebKit2-7609.3.5.1.3/Shared/API/APIError.cpp | lzackx/Zone | bf8a3d2b965c383a691a6e7b61d23db15ce11dba | [
"MIT"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | WebKit2-7606.2.104.1.1/WebKit2-7606.2.104.1.1/Shared/API/APIError.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebKit/Shared/API/APIError.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 1 | 2019-01-25T13:55:25.000Z | 2019-01-25T13:55:25.000Z | /*
* Copyright (C) 2010-2017 Apple Inc. All rights reserved.
*
* 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 conditi... | 31.805825 | 111 | 0.761905 | lzackx |
3b115e091c8ceacece49ce4f6ef7b3c2450a9da0 | 3,132 | cpp | C++ | tools/FindVariables/FindVariables.cpp | BernardYuan/CppHint | d0a37f927a68c23212068036dd34140bd3a33377 | [
"BSD-3-Clause"
] | null | null | null | tools/FindVariables/FindVariables.cpp | BernardYuan/CppHint | d0a37f927a68c23212068036dd34140bd3a33377 | [
"BSD-3-Clause"
] | null | null | null | tools/FindVariables/FindVariables.cpp | BernardYuan/CppHint | d0a37f927a68c23212068036dd34140bd3a33377 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <vector>
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Parse/ParseAST.h"
#include "clang/Frontend/CompilerInstance.h"
class VariableVisitor : public clang::RecursiveASTVisitor<VariableVisitor> {
public:
typedef std::vector<std::pair<std::... | 31.636364 | 78 | 0.644955 | BernardYuan |
3b19c06d32aef5a41954f99047f2947b5d4190fe | 371 | cpp | C++ | DX11_Base/src/dx/dx11/model/Model.cpp | futamase/DX11_lib | b7f979565b6fb94a4eeca45aa390620e951b8595 | [
"MIT"
] | null | null | null | DX11_Base/src/dx/dx11/model/Model.cpp | futamase/DX11_lib | b7f979565b6fb94a4eeca45aa390620e951b8595 | [
"MIT"
] | null | null | null | DX11_Base/src/dx/dx11/model/Model.cpp | futamase/DX11_lib | b7f979565b6fb94a4eeca45aa390620e951b8595 | [
"MIT"
] | null | null | null | #pragma warning(disable:4819)
#include <assimp/Importer.hpp> // C++ importer interface
#include <assimp/scene.h> // Output data structure
#include <assimp/postprocess.h> // Post processing flags
#include <assimp\mesh.h>
#include "Mesh.h"
#include "Material.h"
#pragma comment(lib, "assimp-v")
#prag... | 21.823529 | 61 | 0.692722 | futamase |
3b1a7f5a53153780e0ecaceb692568af57ab4b14 | 18,100 | cpp | C++ | src/engine/src/Session.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/engine/src/Session.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/engine/src/Session.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "Session.h"
#include "strtools.h"
#include "matchmaking.h"
#include "utllinkedlist.h"
#include "tslist.h"
#include "hl2orange.spa.h... | 33.029197 | 120 | 0.537624 | cstom4994 |
3b1e9caa2ead2153f85a556742bdfa1ad347818a | 10,108 | cpp | C++ | lvlibtls.cpp | smithed/lvlibtls | f00d620ae95430216c2f95f9a09c19daa8c00f58 | [
"BSD-2-Clause"
] | 1 | 2017-07-27T00:21:32.000Z | 2017-07-27T00:21:32.000Z | lvlibtls.cpp | smithed/lvlibtls | f00d620ae95430216c2f95f9a09c19daa8c00f58 | [
"BSD-2-Clause"
] | null | null | null | lvlibtls.cpp | smithed/lvlibtls | f00d620ae95430216c2f95f9a09c19daa8c00f58 | [
"BSD-2-Clause"
] | null | null | null | // lvlibtls.cpp : Defines the exported functions for the DLL application.
//
#define LVLIBTLS_EXPORTS
#include "lvlibtls.h" //this header
#include "libressl\include\tls.h" //libtls
#include "cintools\extcode.h" //labview
#include "openssl\ssl.h" //required by libtls
#include <string.h>
#include <vector>
#include <stdl... | 29.642229 | 129 | 0.672339 | smithed |
3b29b547285de760d8f221bd5629d6d579c38493 | 1,151 | cpp | C++ | source/crashcpp/source/postreport.cpp | FalseCAM/CrashCpp | d077abebd7b10ff8a2d0cf50732149cbe73a6df0 | [
"MIT"
] | null | null | null | source/crashcpp/source/postreport.cpp | FalseCAM/CrashCpp | d077abebd7b10ff8a2d0cf50732149cbe73a6df0 | [
"MIT"
] | 8 | 2017-01-12T18:21:10.000Z | 2017-01-12T18:23:25.000Z | source/crashcpp/source/postreport.cpp | FalseCAM/CrashCpp | d077abebd7b10ff8a2d0cf50732149cbe73a6df0 | [
"MIT"
] | null | null | null | // Copyright 2017 falsecam
#include <crashcpp/crashcpp-version.h>
#include <crashcpp/postreport.h>
#include <iostream>
#include <Poco/URI.h>
#include <Poco/Net/HTTPResponse.h>
#include <Poco/Net/HTTPRequest.h>
#include <Poco/Net/HTTPClientSession.h>
#include <Poco/Net/SSLException.h>
void crashcpp::PostReport::repo... | 30.289474 | 82 | 0.677672 | FalseCAM |
3b2da60933aa2e8fabaeb32079ebb7a2b31f6668 | 11,629 | cpp | C++ | native/src/native.cpp | Lerg/defold-raylib | f09241ce427d90a2ca5fd6f1b9179d359698696e | [
"MIT"
] | 1 | 2022-01-25T16:42:20.000Z | 2022-01-25T16:42:20.000Z | native/src/native.cpp | Lerg/defold-raylib | f09241ce427d90a2ca5fd6f1b9179d359698696e | [
"MIT"
] | null | null | null | native/src/native.cpp | Lerg/defold-raylib | f09241ce427d90a2ca5fd6f1b9179d359698696e | [
"MIT"
] | null | null | null | #include <stdint.h>
#include <stddef.h>
#include <dmsdk/extension/extension.h>
#include <dmsdk/graphics/graphics.h>
#include <dmsdk/script/script.h>
#include <dmsdk/vectormath/cpp/vectormath_aos.h>
#include <dmsdk/dlib/log.h>
#include <dmsdk/lua/luaconf.h>
#include <dmsdk/lua/lauxlib.h>
#include <dmsdk/lua/lua.h>
#inc... | 32.035813 | 148 | 0.74469 | Lerg |
3b31683c3ecf1b91d6a17dbbf550dfceb0d7c436 | 1,326 | cpp | C++ | collatz.cpp | 3SUM/collatz | f342ef1f3ddecc4b9720358dbcb2aa2e08602c7c | [
"MIT"
] | null | null | null | collatz.cpp | 3SUM/collatz | f342ef1f3ddecc4b9720358dbcb2aa2e08602c7c | [
"MIT"
] | null | null | null | collatz.cpp | 3SUM/collatz | f342ef1f3ddecc4b9720358dbcb2aa2e08602c7c | [
"MIT"
] | null | null | null | #include <atomic>
#include <chrono>
#include <iostream>
#include <thread>
using namespace std;
#define LIMIT 2147483647
#define THREAD_COUNT 8
atomic<uint64_t> total;
atomic<uint64_t> counter;
void collatz() {
uint64_t n;
while((n = counter++) <= LIMIT) {
while(n != 1) {
while(n & 1) {
... | 21.047619 | 120 | 0.507541 | 3SUM |
3b31ac8dfe05c8c147e90d4924516d0c8503b8c5 | 4,656 | cpp | C++ | test/task.cpp | andreimaximov/uthread | 236d820d3730f9552afbd4cb574bbc7a941c3eb4 | [
"MIT"
] | null | null | null | test/task.cpp | andreimaximov/uthread | 236d820d3730f9552afbd4cb574bbc7a941c3eb4 | [
"MIT"
] | 1 | 2018-07-07T21:58:33.000Z | 2018-07-07T21:58:34.000Z | test/task.cpp | andreimaximov/uthread | 236d820d3730f9552afbd4cb574bbc7a941c3eb4 | [
"MIT"
] | null | null | null | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <uthread/detail/stack.hpp>
#include <uthread/exception.hpp>
#include <uthread/task.hpp>
#include <uthread/task_loop.hpp>
namespace uthread {
using testing::Invoke;
using testing::MockFunction;
using testing::Return;
using testing::StrictMock;
TEST(TaskTest,... | 17.438202 | 76 | 0.600945 | andreimaximov |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.