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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1b66205636344040cd32ed0528606e802d6995e8 | 34,219 | cpp | C++ | libs/openFrameworks/gl/ofGLRenderer.cpp | Studio236/project-440 | 4608d029ef5ef422f776804ff13736c1ec5565a9 | [
"MIT"
] | 1 | 2016-03-13T15:04:27.000Z | 2016-03-13T15:04:27.000Z | libs/openFrameworks/gl/ofGLRenderer.cpp | Studio236/project-440 | 4608d029ef5ef422f776804ff13736c1ec5565a9 | [
"MIT"
] | 1 | 2015-09-11T15:09:39.000Z | 2015-09-11T15:09:39.000Z | libs/openFrameworks/gl/ofGLRenderer.cpp | Studio236/project-440 | 4608d029ef5ef422f776804ff13736c1ec5565a9 | [
"MIT"
] | null | null | null | #include "ofGLRenderer.h"
#include "ofMesh.h"
#include "ofPath.h"
#include "ofGraphics.h"
#include "ofAppRunner.h"
#include "ofMesh.h"
#include "ofBitmapFont.h"
#include "ofGLUtils.h"
#include "ofImage.h"
#include "ofFbo.h"
//----------------------------------------------------------
ofGLRenderer::ofGLRenderer(bool us... | 27.353317 | 151 | 0.603086 | Studio236 |
1b67d5e5998f2a27552bcc2d9fadeeb5aaf37287 | 399 | cpp | C++ | async-list/MainWindow.cpp | topecongiro/qt-toy-projects | ccf71acb0b0a896f4f231f11a5ad3b8f1f6b3e6f | [
"MIT"
] | null | null | null | async-list/MainWindow.cpp | topecongiro/qt-toy-projects | ccf71acb0b0a896f4f231f11a5ad3b8f1f6b3e6f | [
"MIT"
] | null | null | null | async-list/MainWindow.cpp | topecongiro/qt-toy-projects | ccf71acb0b0a896f4f231f11a5ad3b8f1f6b3e6f | [
"MIT"
] | null | null | null | #include "MainWindow.h"
#include "ui_MainWindow.h"
#include <QVBoxLayout>
#include "MyWidget.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
auto* pLayout = new QVBoxLayout(this);
ui->centralwidget->setLayout(pLayout);
pLayout->a... | 16.625 | 43 | 0.681704 | topecongiro |
1b68b4a476bbd148890f6550ab6b3c2b6e2d64b0 | 2,102 | cpp | C++ | RoboRoboPi/servo_old.cpp | vanklompf/RoboRoboPi | 344d025ae374720a88c761d97ed3010c5c577602 | [
"Beerware"
] | null | null | null | RoboRoboPi/servo_old.cpp | vanklompf/RoboRoboPi | 344d025ae374720a88c761d97ed3010c5c577602 | [
"Beerware"
] | null | null | null | RoboRoboPi/servo_old.cpp | vanklompf/RoboRoboPi | 344d025ae374720a88c761d97ed3010c5c577602 | [
"Beerware"
] | null | null | null | #include <wiringPi.h>
#include <stdio.h>
#include "servo.h"
#include "logger.h"
namespace robo
{
/*
* Clock and range values from
* http://stackoverflow.com/questions/20081286/controlling-a-servo-with-raspberry-pi-using-the-hardware-pwm-with-wiringpi
* Range tests:
* Clock: 384 Range: 30 - 115
* ... | 21.232323 | 124 | 0.639867 | vanklompf |
1b6a6df75a2234e4c07ca8fa96c8dabcc825fc54 | 293 | cpp | C++ | AtCoder/abc078/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc078/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc078/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int X, Y, Z; cin >> X >> Y >> Z;
int sum = 0, cnt = 0;
while(true) {
sum += Y + Z;
if (sum + Z > X) break;
cnt++;
}
printf("%d\n", cnt);
}
| 18.3125 | 36 | 0.488055 | H-Tatsuhiro |
1b6f981d5208ba3f6153bedb5c8ebd04f5f55de7 | 1,750 | cpp | C++ | Release/src/granada/util/application.cpp | htmlpuzzle/moonlynx | c098b30ab8689fc8ea25fa375c337afa9964af81 | [
"MIT"
] | null | null | null | Release/src/granada/util/application.cpp | htmlpuzzle/moonlynx | c098b30ab8689fc8ea25fa375c337afa9964af81 | [
"MIT"
] | null | null | null | Release/src/granada/util/application.cpp | htmlpuzzle/moonlynx | c098b30ab8689fc8ea25fa375c337afa9964af81 | [
"MIT"
] | null | null | null |
#include "granada/util/application.h"
namespace granada{
namespace util{
namespace application{
const std::string& get_selfpath(){
if (selfpath.empty()){
#ifdef __APPLE__
int ret;
pid_t pid;
char pathbuf[PROC_PIDPATHINFO_MAXSIZE];
pid = getpid();
ret = proc_pidpa... | 32.407407 | 142 | 0.589143 | htmlpuzzle |
1b7520c37f1409c60529d6ab0b69a816c720f707 | 8,867 | cpp | C++ | cuda/laghos_assembly.cpp | artv3/Laghos | 64449d427349b0ca35086a63ae4e7d1ed5894f08 | [
"BSD-2-Clause"
] | 1 | 2022-03-24T07:03:23.000Z | 2022-03-24T07:03:23.000Z | cuda/laghos_assembly.cpp | jeffhammond/Laghos | 12e62aa7eb6175f27380106b40c9286d710a0f52 | [
"BSD-2-Clause"
] | null | null | null | cuda/laghos_assembly.cpp | jeffhammond/Laghos | 12e62aa7eb6175f27380106b40c9286d710a0f52 | [
"BSD-2-Clause"
] | 3 | 2020-04-12T20:07:41.000Z | 2022-03-24T07:07:52.000Z | // Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
// reserved. See files LICENSE and NOTICE for details.
//
// This file is part of CEED, a collection of benchmarks, miniapps, software
// libraries and APIs for effic... | 34.772549 | 81 | 0.523627 | artv3 |
1b7768553c1533a091c75d5d3e93211c2ce76500 | 849 | cpp | C++ | src/transcrLUSS/fv2id.cpp | jvitkauskas/liepa | 2a1e0d27e326a739691414b59474cd09dce16bfa | [
"0BSD"
] | null | null | null | src/transcrLUSS/fv2id.cpp | jvitkauskas/liepa | 2a1e0d27e326a739691414b59474cd09dce16bfa | [
"0BSD"
] | null | null | null | src/transcrLUSS/fv2id.cpp | jvitkauskas/liepa | 2a1e0d27e326a739691414b59474cd09dce16bfa | [
"0BSD"
] | null | null | null | #include "stdafx.h"
#include "fv2id.h"
#include <string.h>
char* strtokf(char*, const char*, char**);
unsigned short fv2id(char *fpav)
{
for (int i = 0; i < FonSk; i++)
if (strcmp(fpav, FonV[i].fv) == 0)
return FonV[i].id;
return FonV[0].id; //pauze "_"
}
char* id2fv(unsigned short id)
{
for (int i = 0; i <... | 19.744186 | 91 | 0.605418 | jvitkauskas |
1b797aa0c5f3b55f246455346a249c582dead4b3 | 2,385 | cpp | C++ | projects/Vk_12/src/timer.cpp | AnselmoGPP/Vulkan_samples | 9aaefcff024962b41539be70a9179e78856ff6a7 | [
"MIT"
] | null | null | null | projects/Vk_12/src/timer.cpp | AnselmoGPP/Vulkan_samples | 9aaefcff024962b41539be70a9179e78856ff6a7 | [
"MIT"
] | null | null | null | projects/Vk_12/src/timer.cpp | AnselmoGPP/Vulkan_samples | 9aaefcff024962b41539be70a9179e78856ff6a7 | [
"MIT"
] | null | null | null |
#include "timer.hpp"
#include <iostream>
#include <thread>
#include <chrono>
#include <cmath>
TimerSet::TimerSet(int maximumFPS)
: currentTime(std::chrono::system_clock::duration::zero()), maxFPS(maximumFPS)
{
startTimer();
time = 0;
deltaTime = 0;
FPS = 0;
frameCounter = 0... | 32.22973 | 126 | 0.646122 | AnselmoGPP |
1b799112689c41db6f923b8bb8dd200ae6eccc44 | 5,147 | cpp | C++ | ofApp.cpp | SJ-magic-study-oF/study__DmxToPwm | 70a27f8697b72f94652ad5c03e84f0737c8a4a2b | [
"MIT"
] | null | null | null | ofApp.cpp | SJ-magic-study-oF/study__DmxToPwm | 70a27f8697b72f94652ad5c03e84f0737c8a4a2b | [
"MIT"
] | null | null | null | ofApp.cpp | SJ-magic-study-oF/study__DmxToPwm | 70a27f8697b72f94652ad5c03e84f0737c8a4a2b | [
"MIT"
] | null | null | null | /************************************************************
************************************************************/
#include "ofApp.h"
/************************************************************
************************************************************/
char targetIP[] = "10.7.206.7";
enum LED_TYPE{
LED... | 24.626794 | 83 | 0.39693 | SJ-magic-study-oF |
1b7a1fc489c7c804698a5427fec651904f781e9d | 2,162 | cpp | C++ | StateManager.cpp | JorgeAndd/NeoEngine | c83b0c21fd97fe4976c3cf142fc93814e8f0892c | [
"MIT"
] | null | null | null | StateManager.cpp | JorgeAndd/NeoEngine | c83b0c21fd97fe4976c3cf142fc93814e8f0892c | [
"MIT"
] | null | null | null | StateManager.cpp | JorgeAndd/NeoEngine | c83b0c21fd97fe4976c3cf142fc93814e8f0892c | [
"MIT"
] | null | null | null | #include "StateManager.h"
StateManager::StateManager()
{
SDLBase::initSDL();
inst = InputManager::getInstance();
currentState = new State_Splash();
currentState->load();
srand(time(NULL));
inst->update();
stack = 0;
}
StateManager::~StateManager()
{
SDLBase::exitSDL();
currentS... | 24.022222 | 54 | 0.466235 | JorgeAndd |
1b7b62adc99e85e5d461a5ffcf705f038004383b | 7,231 | hpp | C++ | src/uml/src_gen/uml/StructuralFeatureAction.hpp | dataliz9r/MDE4CPP | 9c5ce01c800fb754c371f1a67f648366eeabae49 | [
"MIT"
] | null | null | null | src/uml/src_gen/uml/StructuralFeatureAction.hpp | dataliz9r/MDE4CPP | 9c5ce01c800fb754c371f1a67f648366eeabae49 | [
"MIT"
] | null | null | null | src/uml/src_gen/uml/StructuralFeatureAction.hpp | dataliz9r/MDE4CPP | 9c5ce01c800fb754c371f1a67f648366eeabae49 | [
"MIT"
] | null | null | null | //********************************************************************
//*
//* Warning: This file was generated by ecore4CPP Generator
//*
//********************************************************************
#ifndef UML_STRUCTURALFEATUREACTION_HPP
#define UML_STRUCTURALFEATUREACTION_HPP
#include <map>
#include ... | 25.283217 | 241 | 0.641958 | dataliz9r |
1b7d22df872ed883508b237b1561b43faf6a288a | 18,461 | cpp | C++ | RescueMyDoggo/Classes/Enemy.cpp | furryicedragon/VTCA_F03 | c29f5ecbe461461c5ed769b7732afde8d509c117 | [
"MIT"
] | null | null | null | RescueMyDoggo/Classes/Enemy.cpp | furryicedragon/VTCA_F03 | c29f5ecbe461461c5ed769b7732afde8d509c117 | [
"MIT"
] | null | null | null | RescueMyDoggo/Classes/Enemy.cpp | furryicedragon/VTCA_F03 | c29f5ecbe461461c5ed769b7732afde8d509c117 | [
"MIT"
] | null | null | null | #include"Enemy.h"
USING_NS_CC;
using namespace std;
int hitSound = experimental::AudioEngine::play2d("sounds/hit.mp3", false, 0);
Enemy* Enemy::create(int xMapNumber, int xWaveNumber, int xBossNumber)
{
Enemy* pSprite = new Enemy();
pSprite->eeeFrames = SpriteFrameCache::getInstance();
if (pSprite && pSp... | 35.638996 | 361 | 0.644981 | furryicedragon |
1b810ec3f5ca1cb0bd9cfd2c2903caaed49c0e7e | 6,133 | hxx | C++ | opencascade/AdvApp2Var_ApproxF2var.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/AdvApp2Var_ApproxF2var.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/AdvApp2Var_ApproxF2var.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with spe... | 27.751131 | 81 | 0.585358 | mgreminger |
1b823b8aafefca059bd3731c308007b7c4e82603 | 31,992 | cc | C++ | sources/opl3/ui/operator_editor.cc | jfrey-xx/ADLplug | 108944ab774d3bbcf5cfdc78e1df4e82a88ea522 | [
"BSL-1.0"
] | 316 | 2018-04-19T14:44:25.000Z | 2022-03-28T23:58:05.000Z | sources/opl3/ui/operator_editor.cc | jfrey-xx/ADLplug | 108944ab774d3bbcf5cfdc78e1df4e82a88ea522 | [
"BSL-1.0"
] | 81 | 2018-04-21T11:04:46.000Z | 2022-02-22T19:51:08.000Z | sources/opl3/ui/operator_editor.cc | jfrey-xx/ADLplug | 108944ab774d3bbcf5cfdc78e1df4e82a88ea522 | [
"BSL-1.0"
] | 23 | 2018-09-01T18:04:33.000Z | 2021-11-18T11:36:35.000Z | /*
==============================================================================
This is an automatically generated GUI class created by the Projucer!
Be careful when adding custom code to these files, as only the code within
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loade... | 40.190955 | 133 | 0.624594 | jfrey-xx |
1b82c04d6fa6d0e0e0c770de4422db1b18a26c69 | 2,386 | inl | C++ | WebAssembly/fpzip/src/pcencoder.inl | jvo203/FITSWEBQLSE | 3b2b3c74d623c3510cfa81a4e30ac5bd0af48cb0 | [
"MIT"
] | 60 | 2020-01-03T20:12:39.000Z | 2022-03-14T19:46:22.000Z | src/pcencoder.inl | aras-p/fpzip | 79aa1b1bd5a0b9497b8ad4352d8561ab17113cdf | [
"BSD-3-Clause"
] | 4 | 2020-06-05T16:59:29.000Z | 2021-06-16T09:06:02.000Z | src/pcencoder.inl | aras-p/fpzip | 79aa1b1bd5a0b9497b8ad4352d8561ab17113cdf | [
"BSD-3-Clause"
] | 5 | 2020-03-13T10:18:17.000Z | 2021-08-28T18:04:41.000Z | // specialization for small alphabets -----------------------------------------
template <typename T, class M>
class PCencoder<T, M, false> {
public:
PCencoder(RCencoder* re, RCmodel*const* rm) : re(re), rm(rm) {}
T encode(T real, T pred, uint context = 0);
static const uint symbols = 2 * (1 << M::bits) - 1;
pri... | 33.138889 | 79 | 0.564962 | jvo203 |
1b875b3349081687e6b9c5fe6094e309e2713ab7 | 31,250 | cc | C++ | curv/builtin.cc | iplayfast/curv | e14ff67ba269c630b78be4708454fefcdbfc4378 | [
"Apache-2.0"
] | null | null | null | curv/builtin.cc | iplayfast/curv | e14ff67ba269c630b78be4708454fefcdbfc4378 | [
"Apache-2.0"
] | null | null | null | curv/builtin.cc | iplayfast/curv | e14ff67ba269c630b78be4708454fefcdbfc4378 | [
"Apache-2.0"
] | null | null | null | // Copyright 2016-2018 Doug Moen
// Licensed under the Apache License, version 2.0
// See accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <string>
#include <boost/math/constants/constants.hpp>
#include <boost/filesystem.hpp>
#in... | 31.75813 | 84 | 0.588096 | iplayfast |
1b88e855a8002879c5a18bafa21bc646d65cfc8e | 13,643 | cpp | C++ | source/lib/PccLibEncoder/source/PCCNormalsGenerator.cpp | Dinghow/mpeg-pcc-tmc2 | 1018e5467ea0d18b879272bcba8c060e1cfd97a9 | [
"BSD-3-Clause"
] | null | null | null | source/lib/PccLibEncoder/source/PCCNormalsGenerator.cpp | Dinghow/mpeg-pcc-tmc2 | 1018e5467ea0d18b879272bcba8c060e1cfd97a9 | [
"BSD-3-Clause"
] | null | null | null | source/lib/PccLibEncoder/source/PCCNormalsGenerator.cpp | Dinghow/mpeg-pcc-tmc2 | 1018e5467ea0d18b879272bcba8c060e1cfd97a9 | [
"BSD-3-Clause"
] | null | null | null | /* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2017, ISO/IEC
* All rights reser... | 44.152104 | 121 | 0.564978 | Dinghow |
1b8a52d6a1f2b485a9f6a9701005c7f41033b698 | 4,737 | cpp | C++ | plugins/WinVST/UltrasonX/UltrasonX.cpp | themucha/airwindows | 13bace268f2356e2a037e935c0845d91bfcb79a6 | [
"MIT"
] | null | null | null | plugins/WinVST/UltrasonX/UltrasonX.cpp | themucha/airwindows | 13bace268f2356e2a037e935c0845d91bfcb79a6 | [
"MIT"
] | null | null | null | plugins/WinVST/UltrasonX/UltrasonX.cpp | themucha/airwindows | 13bace268f2356e2a037e935c0845d91bfcb79a6 | [
"MIT"
] | null | null | null | /* ========================================
* UltrasonX - UltrasonX.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __UltrasonX_H
#include "UltrasonX.h"
#endif
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new UltrasonX(aud... | 37.007813 | 104 | 0.695799 | themucha |
b8440821b6c2207c4e18a7d8705d5c5f3141435e | 9,091 | cpp | C++ | src/select/select_impl.cpp | b1nhm1nh/zsummerX | 0825d2a3b7476df614411c65a59f94df4fb927f6 | [
"MIT"
] | 343 | 2015-01-23T09:48:53.000Z | 2022-03-17T04:42:22.000Z | src/select/select_impl.cpp | zhuguang/zsummerX | 8e2e355aaa2f64d37348633ea5c2f1ec44a54152 | [
"MIT"
] | 22 | 2015-05-06T13:47:17.000Z | 2021-04-11T11:39:51.000Z | src/select/select_impl.cpp | zhuguang/zsummerX | 8e2e355aaa2f64d37348633ea5c2f1ec44a54152 | [
"MIT"
] | 178 | 2015-02-13T03:30:10.000Z | 2022-03-17T04:42:13.000Z | /*
* zsummerX License
* -----------
*
* zsummerX is licensed under the terms of the MIT license reproduced below.
* This means that zsummerX is free software and can be used for both academic
* and commercial purposes at absolutely no cost.
*
*
* ============================================================... | 29.420712 | 109 | 0.571554 | b1nhm1nh |
b84602d59cb7ef68d70b89dd04d7c07da56ae332 | 625 | ipp | C++ | libs/config/test/boost_no_std_typeinfo.ipp | zyiacas/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 11 | 2015-07-12T13:04:52.000Z | 2021-05-30T23:23:46.000Z | libs/config/test/boost_no_std_typeinfo.ipp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | null | null | null | libs/config/test/boost_no_std_typeinfo.ipp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 3 | 2015-12-23T01:51:57.000Z | 2019-08-25T04:58:32.000Z | // (C) Copyright Peter Dimov 2007.
// Use, modification and distribution are subject to 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)
// See http://www.boost.org/libs/config for most recent version.
// MACRO: ... | 25 | 99 | 0.6768 | zyiacas |
b84757937bcb1064675cd86e3362120718882383 | 3,240 | cpp | C++ | labs3_17142.cpp | goongg/SamSung | d07f8ca06fa21c2c26f63f89978b79a204373262 | [
"CECILL-B"
] | null | null | null | labs3_17142.cpp | goongg/SamSung | d07f8ca06fa21c2c26f63f89978b79a204373262 | [
"CECILL-B"
] | null | null | null | labs3_17142.cpp | goongg/SamSung | d07f8ca06fa21c2c26f63f89978b79a204373262 | [
"CECILL-B"
] | null | null | null | //연구소 3 다시풀기 8시 40분
#include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
#include <string>
using namespace std;
#define debug 0
int dx[4] ={ -1, 0, 1, 0};
int dy[4] ={ 0, 1, 0, -1 };
class lab
{
public:
int n, m;
vector<int> t;
vector<int> vis;
int blac=0;
int time;
... | 21.315789 | 100 | 0.437346 | goongg |
b8478a49f898e10c0bb161004640961b96364e04 | 1,492 | cpp | C++ | platform/glfw/glfw_renderer_frontend.cpp | gomapi/gomapi-sdk-ios | e494bf0b31f612b5547e2830c1179ecd8bf350ed | [
"BSL-1.0",
"Apache-2.0"
] | 5 | 2019-12-02T07:13:06.000Z | 2019-12-02T14:34:36.000Z | platform/glfw/glfw_renderer_frontend.cpp | gomapi/gomapi-sdk-ios | e494bf0b31f612b5547e2830c1179ecd8bf350ed | [
"BSL-1.0",
"Apache-2.0"
] | 1 | 2021-05-28T03:48:40.000Z | 2021-05-28T03:48:40.000Z | platform/glfw/glfw_renderer_frontend.cpp | gomapi/gomapi-sdk-ios | e494bf0b31f612b5547e2830c1179ecd8bf350ed | [
"BSL-1.0",
"Apache-2.0"
] | 1 | 2020-02-12T14:00:22.000Z | 2020-02-12T14:00:22.000Z | #include "glfw_renderer_frontend.hpp"
#include <mbgl/renderer/renderer.hpp>
#include <mbgl/gfx/backend_scope.hpp>
GLFWRendererFrontend::GLFWRendererFrontend(std::unique_ptr<mbgl::Renderer> renderer_, GLFWView& glfwView_)
: glfwView(glfwView_)
, renderer(std::move(renderer_)) {
glfwView.setRenderFronte... | 31.083333 | 114 | 0.735925 | gomapi |
b8484451cf9ee98b67f41ee32d67249456d1ea73 | 5,912 | cpp | C++ | app/application.cpp | Lut1n/Vulkan-BrickBreaker | 05b2c9a59277d2a18e4ba8085ccc77ce620a8ca8 | [
"MIT"
] | 1 | 2020-06-15T01:44:13.000Z | 2020-06-15T01:44:13.000Z | app/application.cpp | Lut1n/Vulkan-BrickBreaker | 05b2c9a59277d2a18e4ba8085ccc77ce620a8ca8 | [
"MIT"
] | null | null | null | app/application.cpp | Lut1n/Vulkan-BrickBreaker | 05b2c9a59277d2a18e4ba8085ccc77ce620a8ca8 | [
"MIT"
] | null | null | null | #include "application.h"
#include "game/brick.h"
#include "game/paddle.h"
#include "game/platform.h"
#include "game/background.h"
#include "game/camera.h"
#include "game/ball.h"
//--------------------------------------------------------------
MiniVkApplication::MiniVkApplication()
: currentFrame(0)
... | 30.791667 | 130 | 0.594384 | Lut1n |
b85420fdf60791b0a6e3b9d29c2984bd67cf6921 | 2,214 | cc | C++ | test/test_fseek.cc | menonfled/menon_cpp_lib | 729bb581023e7558360fd17ac0866e20b2d7ec40 | [
"BSL-1.0"
] | 1 | 2020-09-10T16:47:09.000Z | 2020-09-10T16:47:09.000Z | test/test_fseek.cc | menonfled/menon_cpp_lib | 729bb581023e7558360fd17ac0866e20b2d7ec40 | [
"BSL-1.0"
] | null | null | null | test/test_fseek.cc | menonfled/menon_cpp_lib | 729bb581023e7558360fd17ac0866e20b2d7ec40 | [
"BSL-1.0"
] | null | null | null | // test_fseek.cc
#include "menon/io.hh"
#include <boost/core/lightweight_test.hpp>
#include <cstddef>
#include <vector>
#include <fstream>
// テストデータの作成
long long make_test_file(char const* path)
{
std::vector<std::byte> v(256, std::byte(123));
if (auto stream = std::fopen(path, "wb"))
{
std::fwrite(v.data()... | 25.744186 | 60 | 0.644986 | menonfled |
b857437f1b00b85fe95cd917783c18cdff9f528a | 7,806 | cpp | C++ | system-test/fwf.cpp | 2733284198/MaxScale | b921dddbf06fcce650828ca94a3d715012b7072f | [
"BSD-3-Clause"
] | 1 | 2020-10-29T07:39:00.000Z | 2020-10-29T07:39:00.000Z | system-test/fwf.cpp | 2733284198/MaxScale | b921dddbf06fcce650828ca94a3d715012b7072f | [
"BSD-3-Clause"
] | null | null | null | system-test/fwf.cpp | 2733284198/MaxScale | b921dddbf06fcce650828ca94a3d715012b7072f | [
"BSD-3-Clause"
] | null | null | null | /**
* @file fwf - Firewall filter test (also regression test for MXS-683 "qc_mysqlembedded reports as-name
* instead of original-name")
* - setup Firewall filter to use rules from rule file fw/ruleXX, where XX - number of sub-test
* - execute queries for fw/passXX file, expect OK
* - execute queries from fw/denyXX... | 32.798319 | 104 | 0.532667 | 2733284198 |
b86635f2d1fb465311fb8c1e568bf312e7cece9d | 2,517 | cpp | C++ | src/lib/storage/segment_accessor.cpp | dey4ss/hyrise | c304b9ced36044e303eb8a4d68a05fc7edc04819 | [
"MIT"
] | 1 | 2019-12-30T13:23:30.000Z | 2019-12-30T13:23:30.000Z | src/lib/storage/segment_accessor.cpp | dey4ss/hyrise | c304b9ced36044e303eb8a4d68a05fc7edc04819 | [
"MIT"
] | 11 | 2019-12-02T20:47:52.000Z | 2020-02-04T23:19:31.000Z | src/lib/storage/segment_accessor.cpp | dey4ss/hyrise | c304b9ced36044e303eb8a4d68a05fc7edc04819 | [
"MIT"
] | 1 | 2020-11-17T19:18:58.000Z | 2020-11-17T19:18:58.000Z | #include "segment_accessor.hpp"
#include "resolve_type.hpp"
namespace opossum::detail {
template <typename T>
std::unique_ptr<AbstractSegmentAccessor<T>> CreateSegmentAccessor<T>::create(
const std::shared_ptr<const BaseSegment>& segment) {
std::unique_ptr<AbstractSegmentAccessor<T>> accessor;
resolve_segment... | 50.34 | 119 | 0.688915 | dey4ss |
b86685f9997fc8e9371a9d5a24e56d36000d0f9e | 2,535 | cpp | C++ | OS1/Project/Code/src/Kernsem.cpp | aleksamagicka/CollegeAssignments | 59edfcf2f5782ddf2d2f3b6ed98b2e641e5fa00d | [
"Unlicense"
] | null | null | null | OS1/Project/Code/src/Kernsem.cpp | aleksamagicka/CollegeAssignments | 59edfcf2f5782ddf2d2f3b6ed98b2e641e5fa00d | [
"Unlicense"
] | null | null | null | OS1/Project/Code/src/Kernsem.cpp | aleksamagicka/CollegeAssignments | 59edfcf2f5782ddf2d2f3b6ed98b2e641e5fa00d | [
"Unlicense"
] | null | null | null | #include "kernsem.h"
#include "asystem.h"
KernelSem::KernelSem(int init, Semaphore *initSemph) :
count(init), semph(initSemph) {
System::semaphores.add(this);
}
KernelSem::~KernelSem() {
while (count < 0)
signal();
}
int KernelSem::val() const {
return count;
}
int KernelSem::wait(Time maxTimeToWait) {
loc... | 20.778689 | 129 | 0.677712 | aleksamagicka |
b8690a1397fcea3fa74496c86685c051198079f6 | 4,735 | hpp | C++ | libs/core/datastructures/include/hpx/datastructures/tagged_pair.hpp | AnshMishra2001/hpx | 00846a06bf2653c595b43aed3abe02c42998e230 | [
"BSL-1.0"
] | null | null | null | libs/core/datastructures/include/hpx/datastructures/tagged_pair.hpp | AnshMishra2001/hpx | 00846a06bf2653c595b43aed3abe02c42998e230 | [
"BSL-1.0"
] | null | null | null | libs/core/datastructures/include/hpx/datastructures/tagged_pair.hpp | AnshMishra2001/hpx | 00846a06bf2653c595b43aed3abe02c42998e230 | [
"BSL-1.0"
] | null | null | null | // Copyright Eric Niebler 2013-2015
// Copyright 2015-2020 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
//
// This was modeled after the code available i... | 35.601504 | 80 | 0.577191 | AnshMishra2001 |
b86b0d4762b5df97d94954219dcdb26dd59f2e86 | 17,882 | cpp | C++ | d3d/voxel/voxelize.cpp | minghanz/d3d | 1d08013238b300489f61be57cdd20a105d16a632 | [
"MIT"
] | 27 | 2020-04-16T22:24:47.000Z | 2022-01-12T08:23:43.000Z | d3d/voxel/voxelize.cpp | minghanz/d3d | 1d08013238b300489f61be57cdd20a105d16a632 | [
"MIT"
] | 2 | 2020-08-11T07:03:35.000Z | 2021-02-05T06:43:26.000Z | d3d/voxel/voxelize.cpp | minghanz/d3d | 1d08013238b300489f61be57cdd20a105d16a632 | [
"MIT"
] | 6 | 2020-04-16T21:49:50.000Z | 2022-01-26T15:38:47.000Z | #include "d3d/voxel/voxelize.h"
#include <unordered_map>
#include <unordered_set>
#include <array>
#include <tuple>
#include <vector>
#include <iostream>
#include <limits>
using namespace std;
using namespace at;
using namespace pybind11::literals;
template <typename T> using toptional = torch::optional<T>;
typedef ... | 36.946281 | 135 | 0.593054 | minghanz |
b86fdf20471ea8badf2b98ef3174f590d96188a9 | 6,852 | cpp | C++ | Mario_Game/title.cpp | Rossterrrr/Qt | 3e5c2934ce19675390d2ad6d513a14964d8cbe50 | [
"MIT"
] | 3 | 2019-09-02T05:17:08.000Z | 2021-01-07T11:21:34.000Z | QtMario_Youtube-master/QtMario_Original Code/title.cpp | Jhongesell/Qt | 3fc548731435d3f6fffbaec1bdfd19371232088e | [
"MIT"
] | null | null | null | QtMario_Youtube-master/QtMario_Original Code/title.cpp | Jhongesell/Qt | 3fc548731435d3f6fffbaec1bdfd19371232088e | [
"MIT"
] | null | null | null | #include "title.h"
#include "loginwindow.h"
#include <QMessageBox>
Title::Title(View *view, QWidget *parent) : QGraphicsScene(parent){
viewer = view;
scroll = new QScrollBar;
scroll = viewer->horizontalScrollBar();
background = new AnimatedGraphicsItem;
background->setPixmap(QPixmap(":/images/bac... | 31.004525 | 95 | 0.641419 | Rossterrrr |
b87b3292e0d300a7a0f343d67544309a72d3470b | 2,005 | cc | C++ | src/q_1251_1300/q1288.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | null | null | null | src/q_1251_1300/q1288.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 2 | 2021-12-15T10:51:15.000Z | 2022-01-26T17:03:16.000Z | src/q_1251_1300/q1288.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <iostream>
#include <vector>
using namespace std;
/**
* This file is generated by leetcode_add.py
*
* 1288.
* Remove Covered Intervals
*
* ––––––––––––––––––––––––––––– Description –––––––––––––––––––––––––––––
*
* Given an array ‘intervals’ where ‘intervals[i] = [lᵢ,... | 27.465753 | 95 | 0.539651 | vNaonLu |
b87f61a901338830bacddd80b689d591cb5bddb3 | 25,904 | cpp | C++ | builder/llpcBuilder.cpp | hustwarhd/llpc | ff548ab17c0c5e79c3cfca9fa6d3bc717624ae85 | [
"MIT"
] | null | null | null | builder/llpcBuilder.cpp | hustwarhd/llpc | ff548ab17c0c5e79c3cfca9fa6d3bc717624ae85 | [
"MIT"
] | null | null | null | builder/llpcBuilder.cpp | hustwarhd/llpc | ff548ab17c0c5e79c3cfca9fa6d3bc717624ae85 | [
"MIT"
] | null | null | null | /*
***********************************************************************************************************************
*
* Copyright (c) 2019 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated ... | 40.72956 | 123 | 0.552617 | hustwarhd |
b8820d698f9791ef3cae05f9ed6ee384fa697210 | 4,324 | tcc | C++ | libcross2d/include/cross2d/skeleton/tweeny/tweenpoint.tcc | minkcv/pinballnx | 2a911c144c97278abcff00c237766380908031de | [
"MIT"
] | 6 | 2019-07-01T03:21:02.000Z | 2021-09-13T17:15:01.000Z | libcross2d/include/cross2d/skeleton/tweeny/tweenpoint.tcc | minkcv/pinballnx | 2a911c144c97278abcff00c237766380908031de | [
"MIT"
] | 3 | 2019-07-01T03:53:56.000Z | 2020-06-17T09:14:27.000Z | libcross2d/include/cross2d/skeleton/tweeny/tweenpoint.tcc | minkcv/pinballnx | 2a911c144c97278abcff00c237766380908031de | [
"MIT"
] | 1 | 2019-07-23T12:28:30.000Z | 2019-07-23T12:28:30.000Z | /*
This file is part of the Tweeny library.
Copyright (c) 2016-2018 Leonardo G. Lucena de Freitas
Copyright (c) 2016 Guilherme R. Costa
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 witho... | 37.275862 | 120 | 0.641304 | minkcv |
b888b9126c171245de259d7cefe90c151647eead | 4,532 | cpp | C++ | app/src/main/cpp/zqcnn_mtcnn_nchwc4_jni.cpp | zhu260824/ZQCNN_Android | 337fab2b58f14d118b59072d9469646cdba43d57 | [
"Apache-2.0"
] | 8 | 2019-06-18T14:38:56.000Z | 2020-09-14T07:23:08.000Z | app/src/main/cpp/zqcnn_mtcnn_nchwc4_jni.cpp | zhu260824/ZQCNN_Android | 337fab2b58f14d118b59072d9469646cdba43d57 | [
"Apache-2.0"
] | 1 | 2019-06-26T09:10:21.000Z | 2019-06-26T09:10:21.000Z | app/src/main/cpp/zqcnn_mtcnn_nchwc4_jni.cpp | zhu260824/ZQCNN_Android | 337fab2b58f14d118b59072d9469646cdba43d57 | [
"Apache-2.0"
] | 3 | 2019-06-27T00:49:48.000Z | 2020-04-17T02:21:50.000Z | //
// Created by ZL on 2019-06-13.
//
#include "zqcnn_mtcnn_nchwc4.h"
#include <android/log.h>
#include <jni.h>
#include <string>
#include <vector>
#include <imgproc/types_c.h>
#define TAG "ZQCNN"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,TAG,__VA_ARGS__)
using namespace std;
using namespace cv;
using n... | 36.845528 | 94 | 0.644748 | zhu260824 |
b8912f7577b1ff9fb94ab1de217144dd547167b8 | 2,449 | cpp | C++ | addStrings/main.cpp | DaveKerk/Cloud-Code | 37db3f7e203b909271bfcdd0df331904fd17c412 | [
"MIT"
] | null | null | null | addStrings/main.cpp | DaveKerk/Cloud-Code | 37db3f7e203b909271bfcdd0df331904fd17c412 | [
"MIT"
] | 1 | 2017-01-26T04:11:23.000Z | 2017-02-03T01:14:41.000Z | addStrings/main.cpp | DaveKerk/Cloud-Code | 37db3f7e203b909271bfcdd0df331904fd17c412 | [
"MIT"
] | null | null | null | // 00000011111111112222222222333333333344444444445555555555666666666677777777778
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
//
// File Name : addStrings.cpp
// File Type : Source code
// Purpose : Main program (Adding two strings).
//
// Date : 2017-02-23
// Version :... | 38.265625 | 92 | 0.705186 | DaveKerk |
b892545b8861da99b61befca57cb6746ced83e6c | 648 | cpp | C++ | CtCI-6th-Edition-cpp/04_Trees_and_Graphs/04_Check_Balanced/isBalanced.test.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | CtCI-6th-Edition-cpp/04_Trees_and_Graphs/04_Check_Balanced/isBalanced.test.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | CtCI-6th-Edition-cpp/04_Trees_and_Graphs/04_Check_Balanced/isBalanced.test.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "isBalanced.hpp"
namespace BT = BinaryTreeUnique;
TEST_CASE("isBalanced test", "[isBalanced]") {
auto tree = BT::create("[]");
REQUIRE(isBalanced(tree) == true);
tree = BT::create("[1]");
REQUIRE(isBalanced(tree) == true);
tree = BT::create("[1,2]");
REQUIRE(isBalanced(tree... | 23.142857 | 48 | 0.617284 | longztian |
b89400e94f3467a599d91ccfb19b79fe41f67548 | 2,901 | hpp | C++ | engine/gtp/Engine.hpp | imalerich/imgo | 1dc999b62d95b74dd992fd1daf1cb0d974bba8a7 | [
"MIT"
] | null | null | null | engine/gtp/Engine.hpp | imalerich/imgo | 1dc999b62d95b74dd992fd1daf1cb0d974bba8a7 | [
"MIT"
] | null | null | null | engine/gtp/Engine.hpp | imalerich/imgo | 1dc999b62d95b74dd992fd1daf1cb0d974bba8a7 | [
"MIT"
] | null | null | null | #ifndef ENGINE_HPP
#define ENGINE_HPP
#include <iostream>
#include <sstream>
#include <string>
#include <map>
#include "Command.hpp"
#include "Argument.hpp"
namespace gtp {
/**
* Defines a function that may be registered to the GTP Engine.
* When an engine recives the corresponding Command, the registered
* func... | 30.536842 | 99 | 0.722509 | imalerich |
b895c774ee235f0a32ab770b51cc581514e2e94f | 4,524 | cpp | C++ | Job-0/Job-0/Job-1-main.cpp | xiliangjianke/GAMES101 | 251f285d21f00dd542ebc326d47b9daddb0c6753 | [
"MIT"
] | null | null | null | Job-0/Job-0/Job-1-main.cpp | xiliangjianke/GAMES101 | 251f285d21f00dd542ebc326d47b9daddb0c6753 | [
"MIT"
] | null | null | null | Job-0/Job-0/Job-1-main.cpp | xiliangjianke/GAMES101 | 251f285d21f00dd542ebc326d47b9daddb0c6753 | [
"MIT"
] | null | null | null | //#include "Triangle.hpp"
//#include "rasterizer.hpp"
//#include <eigen3/Eigen/Eigen>
//#include <iostream>
//#include <opencv2/opencv.hpp>
///*
//constexpr double MY_PI = 3.1415926;
//
//Eigen::Matrix4f get_view_matrix(Eigen::Vector3f eye_pos)
//{
// Eigen::Matrix4f view = Eigen::Matrix4f::Identity();
//
// Eigen::Mat... | 26 | 113 | 0.596596 | xiliangjianke |
b897659ed171f916cfb637567e47fb13868eff3c | 2,040 | cpp | C++ | parrlibgl/spritebatch.cpp | AlessandroParrotta/parrlibgl | 2d0a27a16bb17be8d4554bfcdc4f5e2a4946db96 | [
"MIT"
] | null | null | null | parrlibgl/spritebatch.cpp | AlessandroParrotta/parrlibgl | 2d0a27a16bb17be8d4554bfcdc4f5e2a4946db96 | [
"MIT"
] | null | null | null | parrlibgl/spritebatch.cpp | AlessandroParrotta/parrlibgl | 2d0a27a16bb17be8d4554bfcdc4f5e2a4946db96 | [
"MIT"
] | null | null | null | #include "SpriteBatch.h"
namespace prb {
void SpriteBatch::init() {
vao = { { { {}, 4 } } }; //this probably leaks memory if you reinitialize the spritebatch
sh = { "assets/shaders/spritebatch.vert", "assets/shaders/spritebatch.frag" };
}
SpriteBatch::SpriteBatch() {}
SpriteBatch::SpriteBatch(Sprite const& at... | 43.404255 | 204 | 0.640686 | AlessandroParrotta |
b89a06c8554e9d0b604c6516bfd664f640294d99 | 1,413 | hpp | C++ | src/game/sys/sound/sound_sys.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | src/game/sys/sound/sound_sys.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | src/game/sys/sound/sound_sys.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | /** System that manages sound effects ****************************************
* *
* Copyright (c) 2016 Florian Oetke *
* This file is distributed under the MIT License *
* ... | 23.55 | 79 | 0.55414 | lowkey42 |
b8a20d7bcb754876f1238a5299cb7c9ca05accdf | 5,970 | hpp | C++ | src/astrolabe_exception.hpp | jose-navarro/ASTROLABE | 95482bf4ecd7c22e0bcef18aeae0d8b828b3327c | [
"MIT"
] | null | null | null | src/astrolabe_exception.hpp | jose-navarro/ASTROLABE | 95482bf4ecd7c22e0bcef18aeae0d8b828b3327c | [
"MIT"
] | 3 | 2019-05-28T05:34:50.000Z | 2019-12-09T12:58:22.000Z | src/astrolabe_exception.hpp | jose-navarro/astrolabe | 95482bf4ecd7c22e0bcef18aeae0d8b828b3327c | [
"MIT"
] | null | null | null | /** \file astrolabe_exception.hpp
\brief Definition of the topmost, general ASTROLABE exception.
\ingroup ASTROLABE_exceptions_group
*/
#ifndef ASTROLABE_EXCEPTION_HPP
#define ASTROLABE_EXCEPTION_HPP
#include <stdexcept>
#include <string>
using namespace std;
class astrolabe_time;
/**
\brief ASTROLABE's topmost, ... | 25.622318 | 90 | 0.627303 | jose-navarro |
b8a321eb384a8c56db31894ac2698db5a374dc2e | 1,990 | cpp | C++ | Sources/engine/assetdatabase/private/assetdatabase/PathTree.cpp | Zino2201/ZinoEngine | 519d34a1d2b09412c8e2cba6b685b4556ec2c2ac | [
"MIT"
] | 20 | 2019-12-22T20:40:22.000Z | 2021-07-06T00:23:45.000Z | Sources/engine/assetdatabase/private/assetdatabase/PathTree.cpp | Zino2201/ZinoEngine | 519d34a1d2b09412c8e2cba6b685b4556ec2c2ac | [
"MIT"
] | 32 | 2020-07-11T15:51:13.000Z | 2021-06-07T10:25:07.000Z | Sources/engine/assetdatabase/private/assetdatabase/PathTree.cpp | Zino2201/ZinoEngine | 519d34a1d2b09412c8e2cba6b685b4556ec2c2ac | [
"MIT"
] | 3 | 2019-12-19T17:04:04.000Z | 2021-05-17T01:49:59.000Z | #include "PathTree.h"
#include <sstream>
#include "StringUtil.h"
namespace ze::assetdatabase
{
void PathTree::add(const std::filesystem::path& path)
{
ZE_CHECK(path.is_relative());
/** Check if path already exists */
if (has_path(path))
return;
/** Insert the path in the map if it is a directory */
if (!path... | 21.170213 | 91 | 0.647236 | Zino2201 |
b8a79a4bbf613fa1c526f04b1ca6fcb0c4677904 | 520 | cpp | C++ | tute04.cpp | SLIIT-FacultyOfComputing/tutorial-02b-IT21191688 | 4dea9fc2c31d6761332971e8e310c79f4da778bd | [
"MIT"
] | null | null | null | tute04.cpp | SLIIT-FacultyOfComputing/tutorial-02b-IT21191688 | 4dea9fc2c31d6761332971e8e310c79f4da778bd | [
"MIT"
] | null | null | null | tute04.cpp | SLIIT-FacultyOfComputing/tutorial-02b-IT21191688 | 4dea9fc2c31d6761332971e8e310c79f4da778bd | [
"MIT"
] | null | null | null | #include <iostream>
long Factorial(int no);
long nCr(int n, int r);
int main() {
int n, r;
std::cout << "Enter a value for n ";
std::cin >> n;
std::cout << "Enter a value for r ";
std::cin >> r;
std::cout << "nCr = ";
std::cout << nCr(n, r);
std::cout << std::endl;
return 0;
}
long Factorial(int no)
{
long... | 14.054054 | 56 | 0.546154 | SLIIT-FacultyOfComputing |
b8acd63d07bc0f2c52e871117bc6e61b11be11d0 | 5,655 | cpp | C++ | tests/src/unit/detail/record.cpp | JakariaBlaine/blackhole | e340329c6e2e3166858d8466656ad12300b686bd | [
"MIT"
] | 193 | 2015-01-05T08:48:05.000Z | 2022-01-31T22:04:01.000Z | tests/src/unit/detail/record.cpp | JakariaBlaine/blackhole | e340329c6e2e3166858d8466656ad12300b686bd | [
"MIT"
] | 135 | 2015-01-13T13:02:49.000Z | 2022-01-12T15:06:48.000Z | tests/src/unit/detail/record.cpp | JakariaBlaine/blackhole | e340329c6e2e3166858d8466656ad12300b686bd | [
"MIT"
] | 40 | 2015-01-21T16:37:30.000Z | 2022-01-25T15:54:04.000Z | #include <memory>
#include <src/recordbuf.hpp>
#include <gtest/gtest.h>
namespace blackhole {
inline namespace v1 {
namespace {
TEST(recordbuf_t, FromRecordMessage) {
std::unique_ptr<recordbuf_t> result;
{
const string_view message("GET");
const attribute_pack pack;
const record_t ... | 27.1875 | 84 | 0.640318 | JakariaBlaine |
b8adc7d8895a94058707a407ed9472316f79e0d6 | 128 | cpp | C++ | engine/src/core/Allocator.cpp | jsandham/PhysicsEngine | 51115ee9a59f3bc6e0895113c67563cfd4a1ef3c | [
"MIT"
] | 2 | 2018-12-19T01:52:39.000Z | 2022-03-29T16:04:15.000Z | engine/src/core/Allocator.cpp | jsandham/PhysicsEngine | 51115ee9a59f3bc6e0895113c67563cfd4a1ef3c | [
"MIT"
] | null | null | null | engine/src/core/Allocator.cpp | jsandham/PhysicsEngine | 51115ee9a59f3bc6e0895113c67563cfd4a1ef3c | [
"MIT"
] | null | null | null | #include "../../include/core/Allocator.h"
using namespace PhysicsEngine;
Allocator::Allocator()
{
}
Allocator::~Allocator(){}; | 16 | 41 | 0.710938 | jsandham |
b8afaf9523b596a374f84040ad7f91f6b5cc68e1 | 495 | hpp | C++ | src/totem.hpp | Hazematman/Ultrabrew2021 | 934d8609179effcf26ce2f5d53361031d8a1aa01 | [
"WTFPL"
] | 3 | 2021-12-14T00:14:53.000Z | 2022-03-30T04:08:34.000Z | src/totem.hpp | Hazematman/Ultrabrew2021 | 934d8609179effcf26ce2f5d53361031d8a1aa01 | [
"WTFPL"
] | null | null | null | src/totem.hpp | Hazematman/Ultrabrew2021 | 934d8609179effcf26ce2f5d53361031d8a1aa01 | [
"WTFPL"
] | 1 | 2021-12-09T10:21:11.000Z | 2021-12-09T10:21:11.000Z | #ifndef TOTEM_HPP
#define TOTEM_HPP
#include "gameobject.hpp"
class Totem : public GameObject
{
public:
Totem(btVector3 origin, btDiscreteDynamicsWorld *dyn_world);
virtual bool collide(btManifoldPoint &cp,
const btCollisionObjectWrapper *obj1, int id1, int index1);
virtual void u... | 23.571429 | 84 | 0.723232 | Hazematman |
b8b3288e128db7300c87f650925b3f87918bb5fc | 3,840 | cpp | C++ | src/compositor/scenegraph/input/singlebonetracker.cpp | Quora-Users/motorcar | e1cb943d2874a4716556c314190a48294e2bf53a | [
"BSD-2-Clause"
] | 216 | 2015-01-20T17:14:01.000Z | 2022-03-05T16:14:25.000Z | src/compositor/scenegraph/input/singlebonetracker.cpp | Quora-Users/motorcar | e1cb943d2874a4716556c314190a48294e2bf53a | [
"BSD-2-Clause"
] | 12 | 2015-07-09T06:46:09.000Z | 2017-04-13T05:41:08.000Z | src/compositor/scenegraph/input/singlebonetracker.cpp | Quora-Users/motorcar | e1cb943d2874a4716556c314190a48294e2bf53a | [
"BSD-2-Clause"
] | 29 | 2015-03-14T03:19:52.000Z | 2021-01-29T13:43:51.000Z | /****************************************************************************
**This file is part of the Motorcar 3D windowing framework
**
**
**Copyright (C) 2014 Forrest Reiling
**
**
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with... | 33.684211 | 155 | 0.732292 | Quora-Users |
b8b4c69573bb9151f2bc9c7f4a7039e88c727175 | 383 | cpp | C++ | C++/oj1337.cpp | muinocriz/hfutoj | 9c6b0602f1b155cd9cec38e673b064c64f1dc7d6 | [
"Apache-2.0"
] | 18 | 2018-03-22T14:33:14.000Z | 2021-11-07T07:05:32.000Z | C++/oj1337.cpp | muinocriz/hfutoj | 9c6b0602f1b155cd9cec38e673b064c64f1dc7d6 | [
"Apache-2.0"
] | null | null | null | C++/oj1337.cpp | muinocriz/hfutoj | 9c6b0602f1b155cd9cec38e673b064c64f1dc7d6 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int t,i,j,k;
int sum;
char a,b;
cin >>t;
while(t--)
{
sum=0;
cin>>i>>a>>j>>b>>k;
if(a=='+')
sum = i+j;
else
sum = i-j;
if(b=='+')
sum = sum + k;
else
... | 15.32 | 27 | 0.355091 | muinocriz |
b8be8de72b7b10648fe75e002dc639285ea5ece9 | 4,978 | cpp | C++ | RayTracer/RayTracer/src/Graphics/Primitives/BoundingBox.cpp | cristi191096/RayTracer | 4065fc86e3445bb6f57b494e02298f12ec3e4da1 | [
"Apache-2.0"
] | null | null | null | RayTracer/RayTracer/src/Graphics/Primitives/BoundingBox.cpp | cristi191096/RayTracer | 4065fc86e3445bb6f57b494e02298f12ec3e4da1 | [
"Apache-2.0"
] | null | null | null | RayTracer/RayTracer/src/Graphics/Primitives/BoundingBox.cpp | cristi191096/RayTracer | 4065fc86e3445bb6f57b494e02298f12ec3e4da1 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "BoundingBox.h"
BoundingBox::BoundingBox(glm::vec3 min, glm::vec3 max)
{
m_Params[0] = min;
m_Params[1] = max;
m_Centre = (min + max) * 0.5f;
//Split(0);
}
BoundingBox::~BoundingBox()
{
}
void BoundingBox::Split(int level)
{
//if (level == MAX_DEPTH) return;
glm::vec3 min;
glm:... | 24.766169 | 108 | 0.608076 | cristi191096 |
b8bf8b4ada3e129d4729be4ae6939433e0c5d4b3 | 216 | cpp | C++ | src/main.cpp | DomonkosSuranyi/neural-glider | e131d9a91337fd42e5d827556ac3c1e2b21dbc4d | [
"MIT"
] | null | null | null | src/main.cpp | DomonkosSuranyi/neural-glider | e131d9a91337fd42e5d827556ac3c1e2b21dbc4d | [
"MIT"
] | null | null | null | src/main.cpp | DomonkosSuranyi/neural-glider | e131d9a91337fd42e5d827556ac3c1e2b21dbc4d | [
"MIT"
] | null | null | null | #include <negli/NeuralGliderGame.hpp>
#include <negli/ConsolePrint.hpp>
using namespace negli;
int main()
{
NeuralGliderGame game = NeuralGliderGame(20, 20, 5, 5);
negli::printGame(game);
return 0;
}
| 15.428571 | 59 | 0.699074 | DomonkosSuranyi |
b8bfb109ed59d7e98bbe354fd1fc27e4ab7e8636 | 4,611 | cpp | C++ | src/main.cpp | n-ari/c91-tsp | f760582269a7e7c645e414fa4b89c06e99f03c35 | [
"MIT"
] | null | null | null | src/main.cpp | n-ari/c91-tsp | f760582269a7e7c645e414fa4b89c06e99f03c35 | [
"MIT"
] | null | null | null | src/main.cpp | n-ari/c91-tsp | f760582269a7e7c645e414fa4b89c06e99f03c35 | [
"MIT"
] | null | null | null | #include <iostream>
#include "util.hpp"
#include "tsp.hpp"
#include "nearest_neighbor.hpp"
#include "nearest_insertion.hpp"
#include "farthest_insertion.hpp"
#include "double_mst.hpp"
#include "greedy.hpp"
#include "quick_boruvka.hpp"
#include "two_opt.hpp"
// main routine
int main(int argc, char **argv){
if(argc<2... | 24.657754 | 60 | 0.589243 | n-ari |
b8c1d6eaf8bd946b16d2f0fffc01aea65bc662a3 | 370 | hpp | C++ | Common/GameEngine/component/graphical/Drawable.hpp | Pierre-Narcisi/r-type | ac1b10e404313fef56eaea52e0252d85b7feae05 | [
"Unlicense"
] | null | null | null | Common/GameEngine/component/graphical/Drawable.hpp | Pierre-Narcisi/r-type | ac1b10e404313fef56eaea52e0252d85b7feae05 | [
"Unlicense"
] | null | null | null | Common/GameEngine/component/graphical/Drawable.hpp | Pierre-Narcisi/r-type | ac1b10e404313fef56eaea52e0252d85b7feae05 | [
"Unlicense"
] | null | null | null | /*
** EPITECH PROJECT, 2021
** rtype
** File description:
** Created by seb,
*/
#pragma once
namespace ecs {namespace component {
struct Drawable {
Drawable() {
this->layer = 0;
this->visible = false;
}
Drawable(unsigned int layer, bool visible) {
this->layer = layer;
this->visible = visible;
}
... | 16.086957 | 46 | 0.627027 | Pierre-Narcisi |
fef74a3ee35c0682f94ffc385d97330afa35efc7 | 3,442 | cpp | C++ | tests/op/test_tensorrt_op_clip.cpp | sunnycase/Tengine | fe1b148f64ffe0546fc18000293aa7abd6308fb3 | [
"Apache-2.0"
] | 2 | 2021-07-29T02:02:33.000Z | 2022-03-02T08:56:52.000Z | tests/op/test_tensorrt_op_clip.cpp | sunnycase/Tengine | fe1b148f64ffe0546fc18000293aa7abd6308fb3 | [
"Apache-2.0"
] | null | null | null | tests/op/test_tensorrt_op_clip.cpp | sunnycase/Tengine | fe1b148f64ffe0546fc18000293aa7abd6308fb3 | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 28.446281 | 142 | 0.647298 | sunnycase |
fef932d3d5f0b6ea85389a95dfd62345c79ead4f | 1,368 | cpp | C++ | Graphs/NumberOfIslands.cpp | diivyya/DSA_codes | e50de5a863d52cc70f29b81e45c9301cf002ba2b | [
"MIT"
] | null | null | null | Graphs/NumberOfIslands.cpp | diivyya/DSA_codes | e50de5a863d52cc70f29b81e45c9301cf002ba2b | [
"MIT"
] | null | null | null | Graphs/NumberOfIslands.cpp | diivyya/DSA_codes | e50de5a863d52cc70f29b81e45c9301cf002ba2b | [
"MIT"
] | null | null | null | //No of islands (only 4 neighbours)
//Time: O(M*N)
//Space: O(M*N)
#include <bits/stdc++.h>
using namespace std;
bool isInside(int n, int m, int i, int j)
{
if(i<0||j<0||i>n-1||j>m-1) return false;
return true;
}
void dfs(vector<vector<char>>&grid, vector<vector<bool>>&vis, int n, int m, i... | 22.8 | 93 | 0.407164 | diivyya |
fefece9337b6ae3bafc108b2e17cdbdebe7a00da | 4,485 | cpp | C++ | source/samples/BLETest.cpp | danielstl/microbit-v2-samples | bdf296781b736b858f453b06ff7324ccc194a3ae | [
"MIT"
] | 23 | 2020-11-18T00:27:57.000Z | 2022-03-20T17:50:14.000Z | source/samples/BLETest.cpp | danielstl/microbit-v2-samples | bdf296781b736b858f453b06ff7324ccc194a3ae | [
"MIT"
] | 37 | 2020-10-19T16:15:27.000Z | 2022-03-20T12:21:22.000Z | source/samples/BLETest.cpp | danielstl/microbit-v2-samples | bdf296781b736b858f453b06ff7324ccc194a3ae | [
"MIT"
] | 40 | 2020-10-14T15:26:13.000Z | 2022-02-21T12:41:44.000Z | /*
The MIT License (MIT)
Copyright (c) 2021 Lancaster University.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify... | 38.663793 | 113 | 0.733333 | danielstl |
feff010f88248ab5fc0827a993aeb88f49ad90ee | 438 | cpp | C++ | HFMidiLib/port.cpp | hefsoftware/HFMidiLib | e816d92a6effe8b70420a7db431c7197e0c4f727 | [
"MIT"
] | null | null | null | HFMidiLib/port.cpp | hefsoftware/HFMidiLib | e816d92a6effe8b70420a7db431c7197e0c4f727 | [
"MIT"
] | null | null | null | HFMidiLib/port.cpp | hefsoftware/HFMidiLib | e816d92a6effe8b70420a7db431c7197e0c4f727 | [
"MIT"
] | null | null | null | /*
* Copyright 2021 Marzocchi Alessandro
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "port.h"
using namespace HFMidi;
Port::Port()
{
}
void Port::sendEvent(const QByteArray &data)
{
sendData(data);
}
bool Port::sendData(const QByteArray &data)
{
Q_UNUSED(data);
retur... | 14.6 | 71 | 0.696347 | hefsoftware |
3a020dd3dd9621e2d1d76204c4720f5446e4407f | 2,338 | cpp | C++ | node/src/ops/Pad.cpp | wangli69087/webnn-native | 8fc751ee87dd797137a6443a28b8dd34d0a4d692 | [
"Apache-2.0"
] | null | null | null | node/src/ops/Pad.cpp | wangli69087/webnn-native | 8fc751ee87dd797137a6443a28b8dd34d0a4d692 | [
"Apache-2.0"
] | null | null | null | node/src/ops/Pad.cpp | wangli69087/webnn-native | 8fc751ee87dd797137a6443a28b8dd34d0a4d692 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The WebNN-native Authors
//
// 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 ... | 41.017544 | 99 | 0.61976 | wangli69087 |
3a024a78147f0f1d108a91d8d73eb54493c718e8 | 1,259 | cpp | C++ | ControlWindow.cpp | pipmix/WinUI2 | d5f897aa58c9d0024ff45e3a8a562bcf925ca361 | [
"MIT"
] | null | null | null | ControlWindow.cpp | pipmix/WinUI2 | d5f897aa58c9d0024ff45e3a8a562bcf925ca361 | [
"MIT"
] | null | null | null | ControlWindow.cpp | pipmix/WinUI2 | d5f897aa58c9d0024ff45e3a8a562bcf925ca361 | [
"MIT"
] | null | null | null | #include "ControlWindow.h"
void CreateControlWindow(WinDat& wd){
wd._handle = CreateWindowEx(0, wd._className, NULL, wd._style, wd._x, wd._y, wd._w, wd._h, wd._parent, 0, NULL, NULL);
HTREEITEM hRoot;
TV_INSERTSTRUCT tvins;
tvins = { 0 };
tvins.hInsertAfter = TVI_ROOT;
tvins.item.mask = TVIF_TEXT;
tvins.... | 23.754717 | 119 | 0.72359 | pipmix |
3a05ddb3d8d3e19c15db99ecac35e8450db1259a | 5,885 | cpp | C++ | Modules/US/USModel/mitkUSDeviceWriterXML.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | 1 | 2021-11-20T08:19:27.000Z | 2021-11-20T08:19:27.000Z | Modules/US/USModel/mitkUSDeviceWriterXML.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | null | null | null | Modules/US/USModel/mitkUSDeviceWriterXML.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | null | null | null | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | 37.246835 | 188 | 0.746814 | wyyrepo |
3a087fceb1f9cb99e6e419ac33c956794e78c256 | 9,122 | cpp | C++ | include/oled.cpp | va3wam/pentaBot | 76c94e405a8c1b773a5b6ed30eaff8f126a47629 | [
"MIT"
] | null | null | null | include/oled.cpp | va3wam/pentaBot | 76c94e405a8c1b773a5b6ed30eaff8f126a47629 | [
"MIT"
] | 97 | 2021-08-30T13:35:39.000Z | 2022-03-31T02:51:47.000Z | include/oled.cpp | va3wam/pentaBot | 76c94e405a8c1b773a5b6ed30eaff8f126a47629 | [
"MIT"
] | 1 | 2021-10-29T19:09:33.000Z | 2021-10-29T19:09:33.000Z | /*******************************************************************************
* @file oled.cpp
* @brief File containing all OLED functions.
*******************************************************************************/
#ifndef oled_cpp // Start of precompiler check to avoid dupicate inclusion of this code blo... | 36.342629 | 125 | 0.60513 | va3wam |
3a0f2adc46d8eee62126b5f74997a8b066ebb1eb | 2,607 | cpp | C++ | SAD-3D/Source/PanelAbout.cpp | t3m1X/SAD-3D | 129973f9c15eac62cd1e868224190a961f0684bd | [
"MIT"
] | null | null | null | SAD-3D/Source/PanelAbout.cpp | t3m1X/SAD-3D | 129973f9c15eac62cd1e868224190a961f0684bd | [
"MIT"
] | null | null | null | SAD-3D/Source/PanelAbout.cpp | t3m1X/SAD-3D | 129973f9c15eac62cd1e868224190a961f0684bd | [
"MIT"
] | null | null | null | #include "PanelAbout.h"
#include "Application.h"
#include "ModuleGui.h"
#include "Imgui/imgui.h"
#include "mmgr/mmgr.h"
PanelAbout::PanelAbout(char * name) : Panel(name)
{
}
PanelAbout::~PanelAbout()
{
}
bool PanelAbout::Draw()
{
ImGuiWindowFlags settingsFlags = 0;
settingsFlags = ImGuiWindowFlags_NoFocusOnAppe... | 42.737705 | 485 | 0.726506 | t3m1X |
3a1333267ba4408a140f01de409b239e004253b3 | 1,987 | cc | C++ | src/devices/temperature/drivers/tmp112/tmp112-test.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | src/devices/temperature/drivers/tmp112/tmp112-test.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | src/devices/temperature/drivers/tmp112/tmp112-test.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tmp112.h"
#include <lib/fake_ddk/fake_ddk.h>
#include <lib/mock-i2c/mock-i2c.h>
#include <zxtest/zxtest.h>
namespace {
bool FloatNear(float a... | 29.220588 | 88 | 0.717665 | csrpi |
3a14283ea57ebe466e1b4e7b69e3e3d93b97efbc | 1,186 | cc | C++ | platform/epoll_platform_impl/quic_epoll_clock.cc | MacroLau/quiche | 21b1a63ead0a03497127d7f9ae74c3f0eed07e58 | [
"Apache-2.0"
] | 102 | 2021-05-18T10:31:57.000Z | 2022-03-29T04:25:42.000Z | platform/epoll_platform_impl/quic_epoll_clock.cc | MacroLau/quiche | 21b1a63ead0a03497127d7f9ae74c3f0eed07e58 | [
"Apache-2.0"
] | 9 | 2021-06-02T06:44:30.000Z | 2022-03-14T07:52:34.000Z | platform/epoll_platform_impl/quic_epoll_clock.cc | MacroLau/quiche | 21b1a63ead0a03497127d7f9ae74c3f0eed07e58 | [
"Apache-2.0"
] | 23 | 2021-05-18T13:07:50.000Z | 2022-02-24T02:16:02.000Z | // NOLINT(namespace-quic)
//
// This file is part of the QUICHE platform implementation, and is not to be
// consumed or referenced directly by other Envoy code. It serves purely as a
// porting layer for QUICHE.
#include "platform/epoll_platform_impl/quic_epoll_clock.h"
namespace quic {
QuicEpollClock::QuicEpollClo... | 30.410256 | 93 | 0.77403 | MacroLau |
3a14418b5b63b643fa73d0de8cdf04438e409c98 | 12,922 | cpp | C++ | plugins/monitor/pluginsrc/cpu_stats_linux.cpp | pretty-wise/link | 16a4241c4978136d8c4bd1caab20bdf37df9caaf | [
"Unlicense"
] | null | null | null | plugins/monitor/pluginsrc/cpu_stats_linux.cpp | pretty-wise/link | 16a4241c4978136d8c4bd1caab20bdf37df9caaf | [
"Unlicense"
] | 5 | 2019-12-27T05:51:10.000Z | 2022-02-12T02:24:58.000Z | plugins/monitor/pluginsrc/cpu_stats_linux.cpp | pretty-wise/link | 16a4241c4978136d8c4bd1caab20bdf37df9caaf | [
"Unlicense"
] | null | null | null | /*
* Copywrite 2014-2015 Krzysztof Stasik. All rights reserved.
*/
#include "monitor_plugin.h"
#include "base/io/base_file.h"
#include "common/json/json_writer.h"
#include "link/plugin_log.h"
#include "base/core/time_utils.h"
#include "base/core/assert.h"
#include <unistd.h>
namespace Link {
static const streamsi... | 26.157895 | 77 | 0.638291 | pretty-wise |
3a14d40d59d1c1ddd94b4c01a08c6c40475e01e6 | 150 | cpp | C++ | old/AtCoder/arc056/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | old/AtCoder/arc056/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | old/AtCoder/arc056/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "template.hpp"
int main() {
int64_t a, b, k, l;
cin >> a >> b >> k >> l;
cout << min(k % l * a + k / l * b, k / l * b + b) << endl;
}
| 18.75 | 60 | 0.426667 | not522 |
3a15141528e6dda2f9bf0ab28c793d143c7a5f14 | 5,380 | cpp | C++ | avk/internal/main.cpp | hanxingyixue-arch/AVK | 0a19ba3e71bac1c5944b084311669f23ff5fda72 | [
"BSD-2-Clause"
] | 1 | 2021-03-09T02:39:45.000Z | 2021-03-09T02:39:45.000Z | avk/internal/main.cpp | hanxingyixue-arch/AVK | 0a19ba3e71bac1c5944b084311669f23ff5fda72 | [
"BSD-2-Clause"
] | null | null | null | avk/internal/main.cpp | hanxingyixue-arch/AVK | 0a19ba3e71bac1c5944b084311669f23ff5fda72 | [
"BSD-2-Clause"
] | null | null | null | #include "../external_dependencies/cmts/include/cmts.h"
#include "algorithm_thread.h"
#include "graphics/vulkan_state.h"
#include "windows-specific/framework.h"
#include "windows-specific/Resource.h"
#include <atomic>
#include <chrono>
#define MAX_LOADSTRING 100
HINSTANCE hinstance;
HWND hwnd;
static HACCEL accel;
s... | 28.167539 | 123 | 0.64684 | hanxingyixue-arch |
3a1588c32aae4d242d82280d4d2868edde1df202 | 999 | hpp | C++ | PP/tuple/concept.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | 3 | 2019-07-12T23:12:24.000Z | 2019-09-05T07:57:45.000Z | PP/tuple/concept.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | PP/tuple/concept.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | #pragma once
#include <PP/declval.hpp>
#include <PP/get_type.hpp>
#include <PP/macros/simple_concept.hpp>
#include <PP/value_t.hpp>
#include <PP/tuple/count.hpp>
#include <PP/tuple/element.hpp>
#include <PP/tuple/get.hpp>
#include <PP/tuple/value_sequence_for.hpp>
namespace PP::detail
{
template <typename T, auto I>
c... | 24.975 | 75 | 0.648649 | Petkr |
3a1afcbceeae17911fc911949ede0b302f08f7a5 | 1,485 | cpp | C++ | double_comparison.cpp | TyeolRik/CodingProblems_CPP | 1b4d42dd1b24200b8da073948070e65c556f98b4 | [
"MIT"
] | null | null | null | double_comparison.cpp | TyeolRik/CodingProblems_CPP | 1b4d42dd1b24200b8da073948070e65c556f98b4 | [
"MIT"
] | null | null | null | double_comparison.cpp | TyeolRik/CodingProblems_CPP | 1b4d42dd1b24200b8da073948070e65c556f98b4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#define EPSILON 1e-10
bool is_same(double __x, double __y) {
if(std::abs(__x - __y) < EPSILON) {
std::cout << std::fixed << "IN Function __x\t\t" << __x << "\n";
std::cout << std::fixed << "IN Function __y\t\t" << __y << "\n";
std::cout << std::fixe... | 46.40625 | 101 | 0.517845 | TyeolRik |
3a1c6f6e95f6544ea309810f31d4d1da239734b4 | 1,731 | hpp | C++ | src/standard/bits/DD_ReferenceCounter.hpp | iDingDong/libDDCPP-old | 841260fecc84330ff3bfffba7263f5318f0b4655 | [
"BSD-3-Clause"
] | 1 | 2018-06-01T03:29:34.000Z | 2018-06-01T03:29:34.000Z | src/standard/bits/DD_ReferenceCounter.hpp | iDingDong/libDDCPP-old | 841260fecc84330ff3bfffba7263f5318f0b4655 | [
"BSD-3-Clause"
] | null | null | null | src/standard/bits/DD_ReferenceCounter.hpp | iDingDong/libDDCPP-old | 841260fecc84330ff3bfffba7263f5318f0b4655 | [
"BSD-3-Clause"
] | null | null | null | // DDCPP/standard/bits/DD_ReferenceCounter.hpp
#ifndef DD_REFERENCE_COUNTER_HPP_INCLUDED_
# define DD_REFERENCE_COUNTER_HPP_INCLUDED_ 1
# include "DD_global_definitions.hpp"
DD_DETAIL_BEGIN_
struct ReferenceCounter {
public:
DD_ALIAS(ThisType, ReferenceCounter);
public:
DD_ALIAS(LengthType, ::DD::LengthType)... | 15.184211 | 66 | 0.770075 | iDingDong |
3a2381a6feef0b1e2ee4cc37c366668b20ff1bd6 | 2,111 | cpp | C++ | src/utils/test/lock.std.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 149 | 2017-10-16T03:24:58.000Z | 2022-03-25T02:29:13.000Z | src/utils/test/lock.std.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 297 | 2017-10-19T03:23:34.000Z | 2022-03-17T08:00:12.000Z | src/utils/test/lock.std.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 63 | 2017-10-19T01:55:27.000Z | 2022-03-09T11:09:00.000Z | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* 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... | 34.048387 | 80 | 0.721459 | acelyc111 |
3a251cf8b33df88740c77ff1a81064a1549e37c1 | 664 | cpp | C++ | src/lib/AST/UnaryOperator.cpp | NCTU-Homework/compiler-hw4 | 343db48644e4a53759a602983aaf3a4030eeb986 | [
"MIT"
] | null | null | null | src/lib/AST/UnaryOperator.cpp | NCTU-Homework/compiler-hw4 | 343db48644e4a53759a602983aaf3a4030eeb986 | [
"MIT"
] | null | null | null | src/lib/AST/UnaryOperator.cpp | NCTU-Homework/compiler-hw4 | 343db48644e4a53759a602983aaf3a4030eeb986 | [
"MIT"
] | null | null | null | #include "AST/UnaryOperator.hpp"
#include "visitor/AstNodeVisitor.hpp"
UnaryOperatorNode::UnaryOperatorNode(const uint32_t line, const uint32_t col,
Operator op, ExpressionNode *p_operand)
: ExpressionNode{line, col}, op(op), operand(p_operand) {}
const char *UnaryOperatorNode... | 28.869565 | 77 | 0.71988 | NCTU-Homework |
3a2da50fe195f8d35967c867c7fcb115d765edbf | 5,560 | hpp | C++ | contracts/relay.token/relay.token.hpp | eosforce/FORCEIO | b8dc334db53a66f8913027bc396eee852f6fe770 | [
"MIT"
] | 10 | 2019-01-17T11:56:40.000Z | 2019-12-23T11:08:13.000Z | contracts/relay.token/relay.token.hpp | eosforce/FORCEIO | b8dc334db53a66f8913027bc396eee852f6fe770 | [
"MIT"
] | null | null | null | contracts/relay.token/relay.token.hpp | eosforce/FORCEIO | b8dc334db53a66f8913027bc396eee852f6fe770 | [
"MIT"
] | 6 | 2019-04-24T11:16:02.000Z | 2020-11-29T05:41:07.000Z | //
// Created by fy on 2019-01-29.
//
#ifndef FORCEIO_CONTRACT_RELAY_TOKEN_HPP
#define FORCEIO_CONTRACT_RELAY_TOKEN_HPP
#pragma once
#include <eosiolib/eosio.hpp>
#include "force.relay/force.relay.hpp"
#include "sys.match/sys.match.hpp"
namespace relay {
using namespace eosio;
using std::string;
struct sys_b... | 26.990291 | 105 | 0.641187 | eosforce |
3a35abe378de5385c0ca8d71446f0be43146accb | 6,813 | cpp | C++ | src/loop050.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | 4 | 2016-11-07T12:50:14.000Z | 2020-04-30T19:48:05.000Z | src/loop050.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | 1 | 2017-04-17T12:00:16.000Z | 2017-04-17T12:00:16.000Z | src/loop050.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | null | null | null |
#include "demoloop.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include "graphics/shader.h"
using namespace std;
using namespace demoloop;
const uint32_t CYCLE_LENGTH = 10;
const static std::string shaderCode = R"===(
uniform mediump float cycle_ratio;
#define DEMOLOOP_M_PI 3.145... | 27.582996 | 102 | 0.577866 | TannerRogalsky |
3a37bdced5e0efee4020441b1398b40eafd176e2 | 1,797 | hpp | C++ | src/network/credentials_manager.hpp | Natureshadow/biboumi | b70136b96e579e8d38a30a298f885899cb80514c | [
"Zlib"
] | null | null | null | src/network/credentials_manager.hpp | Natureshadow/biboumi | b70136b96e579e8d38a30a298f885899cb80514c | [
"Zlib"
] | null | null | null | src/network/credentials_manager.hpp | Natureshadow/biboumi | b70136b96e579e8d38a30a298f885899cb80514c | [
"Zlib"
] | null | null | null | #pragma once
#include "biboumi.h"
#ifdef BOTAN_FOUND
#include <botan/credentials_manager.h>
#include <botan/certstor.h>
#include <botan/tls_client.h>
class TCPSocketHandler;
/**
* If the given cert isn’t valid, based on the given hostname
* and fingerprint, then throws the exception if it’s non-empty.
*
* Must... | 34.557692 | 116 | 0.734001 | Natureshadow |
3a3c737e177e79caa3dd9fb3ffa71b10e4190155 | 1,583 | hpp | C++ | EFI/CLOVER/kexts/Other/Lilu_v1.4.3-Debug.kext/Contents/Resources/Headers/kern_policy.hpp | zhujinle/Lenovo-yoga-c930-hackintosh | 679ec3efe7e63b102e5a2ad7a3f5a1cd48a949ca | [
"MIT"
] | 56 | 2019-11-07T01:57:38.000Z | 2021-06-07T21:09:52.000Z | EFI/CLOVER/kexts/Other/Lilu_v1.4.3-Debug.kext/Contents/Resources/Headers/kern_policy.hpp | zhujinle/Lenovo-yoga-c930-hackintosh | 679ec3efe7e63b102e5a2ad7a3f5a1cd48a949ca | [
"MIT"
] | 10 | 2020-07-27T01:59:55.000Z | 2021-03-02T02:17:04.000Z | EFI/CLOVER/kexts/Other/Lilu_v1.4.3-Debug.kext/Contents/Resources/Headers/kern_policy.hpp | zhujinle/Lenovo-yoga-c930-hackintosh | 679ec3efe7e63b102e5a2ad7a3f5a1cd48a949ca | [
"MIT"
] | 11 | 2020-07-10T07:03:08.000Z | 2021-05-14T06:44:19.000Z | //
// kern_policy.hpp
// Lilu
//
// Copyright © 2016-2017 vit9696. All rights reserved.
//
#ifndef kern_policy_hpp
#define kern_policy_hpp
#include <Headers/kern_config.hpp>
#include <sys/types.h>
#include <sys/proc.h>
#include <Library/security/mac_framework.h>
#include <Library/security/mac_policy.h>
#include ... | 21.106667 | 96 | 0.689829 | zhujinle |
3a3e2f2b818c38b1c01f390ef641f9e3b0f0b91b | 1,066 | cpp | C++ | Cplusplus_Study/array_vector.cpp | SuperBruceJia/paper-reading | ccfa34706fd525b1c47ec2476896efbd020c7210 | [
"MIT"
] | 11 | 2020-11-13T02:47:56.000Z | 2022-03-25T06:13:06.000Z | Cplusplus_Study/array_vector.cpp | SuperBruceJia/paper-reading | ccfa34706fd525b1c47ec2476896efbd020c7210 | [
"MIT"
] | null | null | null | Cplusplus_Study/array_vector.cpp | SuperBruceJia/paper-reading | ccfa34706fd525b1c47ec2476896efbd020c7210 | [
"MIT"
] | 2 | 2021-10-10T13:42:20.000Z | 2021-12-14T09:59:23.000Z | #include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
char vowels [] {'a', 'e','i', 'w', 'r'};
cout << "The first vowels is " << vowels[0] << endl;
cout << "The last vowels is " << vowels[4] << endl;
double hi_temps [] {90.1, 89.7, 77.5, 81.6};
cout << "The first hi... | 29.611111 | 68 | 0.532833 | SuperBruceJia |
3a4c78ac435cd30a3fef99b13b1afeeb82e2d4e0 | 15,981 | cpp | C++ | software/controller/lib/hal/i2c.cpp | RespiraWorks/Ventilator | 2b431b96d988a5d88cc60525470277757c2b88f4 | [
"Apache-2.0"
] | 47 | 2020-07-05T03:06:25.000Z | 2022-03-14T16:59:24.000Z | software/controller/lib/hal/i2c.cpp | RespiraWorks/Ventilator | 2b431b96d988a5d88cc60525470277757c2b88f4 | [
"Apache-2.0"
] | 545 | 2020-07-01T22:25:42.000Z | 2022-03-31T04:07:28.000Z | software/controller/lib/hal/i2c.cpp | RespiraWorks/Ventilator | 2b431b96d988a5d88cc60525470277757c2b88f4 | [
"Apache-2.0"
] | 19 | 2020-07-16T18:48:28.000Z | 2022-02-09T10:20:21.000Z | /* Copyright 2020, RespiraWorks
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | 34.969365 | 91 | 0.686315 | RespiraWorks |
3a521542ae98bdc5e7ffce1afcd79026d128886c | 7,124 | cpp | C++ | src/condor_utils/hibernator.tools.cpp | zhangzhehust/htcondor | e07510d62161f38fa2483b299196ef9a7b9f7941 | [
"Apache-2.0"
] | 1 | 2017-02-13T01:25:34.000Z | 2017-02-13T01:25:34.000Z | src/condor_utils/hibernator.tools.cpp | zhangzhehust/htcondor | e07510d62161f38fa2483b299196ef9a7b9f7941 | [
"Apache-2.0"
] | 1 | 2021-04-06T04:19:40.000Z | 2021-04-06T04:19:40.000Z | src/condor_utils/hibernator.tools.cpp | zhangzhehust/htcondor | e07510d62161f38fa2483b299196ef9a7b9f7941 | [
"Apache-2.0"
] | 2 | 2016-05-24T17:12:13.000Z | 2017-02-13T01:25:35.000Z | /***************************************************************
*
* Copyright (C) 1990-2008, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... | 25.905455 | 92 | 0.643739 | zhangzhehust |
3a52b2a578ca59420a71cd1263fc45435d0b181a | 1,263 | cpp | C++ | erts/emulator/asmjit/arm/a64builder.cpp | williamthome/otp | c4f24d6718ac56c431f0fccf240c5b15482792ed | [
"Apache-2.0"
] | null | null | null | erts/emulator/asmjit/arm/a64builder.cpp | williamthome/otp | c4f24d6718ac56c431f0fccf240c5b15482792ed | [
"Apache-2.0"
] | null | null | null | erts/emulator/asmjit/arm/a64builder.cpp | williamthome/otp | c4f24d6718ac56c431f0fccf240c5b15482792ed | [
"Apache-2.0"
] | 2 | 2015-10-18T22:36:46.000Z | 2022-01-26T14:01:57.000Z | // This file is part of AsmJit project <https://asmjit.com>
//
// See asmjit.h or LICENSE.md for license and copyright information
// SPDX-License-Identifier: Zlib
#include "../core/api-build_p.h"
#if !defined(ASMJIT_NO_AARCH64) && !defined(ASMJIT_NO_BUILDER)
#include "../arm/a64assembler.h"
#include "../arm/a64build... | 24.288462 | 67 | 0.673001 | williamthome |
3a53f1275b70afb6575f74ab168e6b3406d7aff7 | 7,629 | cpp | C++ | NxS Info Tool Source/nxstabpages.cpp | saivert/winamp-plugins | 5dae16e80bb63e3de258b4279c444bf2434de564 | [
"MIT"
] | 3 | 2019-06-14T12:03:23.000Z | 2022-02-12T18:15:38.000Z | NxS Info Tool Source/nxstabpages.cpp | saivert/winamp-plugins | 5dae16e80bb63e3de258b4279c444bf2434de564 | [
"MIT"
] | null | null | null | NxS Info Tool Source/nxstabpages.cpp | saivert/winamp-plugins | 5dae16e80bb63e3de258b4279c444bf2434de564 | [
"MIT"
] | null | null | null | /* NxS Tabpages - written by Saivert */
//#include "StdAfx.h"
#include "nxstabpages.h"
NxS_TabPages::~NxS_TabPages()
{
Clear();
}
HWND NxS_TabPages::SetTabCtrl(HWND NewTabCtrl)
{
HWND tmp;
tmp = m_hwTab;
if (IsWindow(NewTabCtrl))
{
if (GetCount()>0)
TabCtrl_DeleteAllItems(m_hwTab);
m_hwTa... | 23.048338 | 102 | 0.661555 | saivert |
3a5770ed7e9e6ae6bd585b7832f2b8c092249fa0 | 2,525 | hpp | C++ | src/lib/optimizer/strategy/abstract_rule.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 583 | 2015-01-10T00:55:32.000Z | 2022-03-25T12:24:30.000Z | src/lib/optimizer/strategy/abstract_rule.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 1,573 | 2015-01-07T15:47:22.000Z | 2022-03-31T11:48:03.000Z | src/lib/optimizer/strategy/abstract_rule.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 145 | 2015-03-09T16:26:07.000Z | 2022-02-15T12:53:23.000Z | #pragma once
#include <memory>
#include <string>
#include <unordered_set>
#include <vector>
namespace opossum {
class AbstractCardinalityEstimator;
class AbstractCostEstimator;
class AbstractLQPNode;
class LogicalPlanRootNode;
class LQPSubqueryExpression;
class AbstractRule {
public:
virtual ~AbstractRule() = de... | 40.079365 | 120 | 0.726733 | mrcl-tst |
3a5ac902c963d1d7d4d5174d9dc0c7e5ea6c8491 | 122 | hxx | C++ | src/Providers/UNIXProviders/SwapSpaceCheck/UNIX_SwapSpaceCheck_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/SwapSpaceCheck/UNIX_SwapSpaceCheck_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/SwapSpaceCheck/UNIX_SwapSpaceCheck_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_AIX
#ifndef __UNIX_SWAPSPACECHECK_PRIVATE_H
#define __UNIX_SWAPSPACECHECK_PRIVATE_H
#endif
#endif
| 10.166667 | 39 | 0.844262 | brunolauze |
3a6076681f32c7e0ff074420433601df4c840244 | 1,215 | cpp | C++ | src/core/Processor.cpp | ASxa86/azule | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | 1 | 2018-10-19T18:00:19.000Z | 2018-10-19T18:00:19.000Z | src/core/Processor.cpp | ASxa86/azule | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | 7 | 2019-06-13T00:48:55.000Z | 2020-05-05T00:18:42.000Z | src/core/Processor.cpp | ASxa86/AGE | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | null | null | null | #include <azule/core/Processor.h>
#include <azule/utilities/PimplImpl.h>
using namespace azule;
class Processor::Impl
{
public:
std::vector<std::function<void(std::chrono::microseconds)>> fixedFunctions;
std::vector<std::function<void(std::chrono::microseconds)>> variableFunctions;
std::vector<std::function<void(s... | 20.25 | 92 | 0.723457 | ASxa86 |
3a611f0e25da9757510cd0d85febd4c131a8df8c | 3,793 | cc | C++ | src/baldr/compression_utils.cc | mixvit/valhalla | 65d56caf85103f267452e7b79e49ec66a9bf480e | [
"MIT"
] | 1 | 2020-01-12T21:14:45.000Z | 2020-01-12T21:14:45.000Z | src/baldr/compression_utils.cc | Bolaxax/valhalla | f5e464a1f7f2d75d08ea6db6bb8418c0f500eccb | [
"MIT"
] | 3 | 2020-08-24T18:48:12.000Z | 2021-01-05T21:18:44.000Z | src/baldr/compression_utils.cc | Bolaxax/valhalla | f5e464a1f7f2d75d08ea6db6bb8418c0f500eccb | [
"MIT"
] | 1 | 2021-01-24T16:46:01.000Z | 2021-01-24T16:46:01.000Z | #include "baldr/compression_utils.h"
namespace valhalla {
namespace baldr {
/* Deflates data with gzip or zlib wrapper
* @param src_func function which modifies the stream to read more input
* @param dst_func function which modifies the stream to write more output
* @param level what compression level to use... | 30.344 | 99 | 0.627472 | mixvit |
3a61736a725e8c08f3f43de560bde183998f7e7d | 9,905 | cpp | C++ | src/utils2d/axisalignedboundingbox2d.cpp | AlessandroParrotta/parrlib | d1679ee8a7cff7d14b2d93e898ed58fecff13159 | [
"MIT"
] | 2 | 2020-05-08T20:27:14.000Z | 2021-01-21T10:28:19.000Z | src/utils2d/axisalignedboundingbox2d.cpp | AlessandroParrotta/parrlib | d1679ee8a7cff7d14b2d93e898ed58fecff13159 | [
"MIT"
] | null | null | null | src/utils2d/axisalignedboundingbox2d.cpp | AlessandroParrotta/parrlib | d1679ee8a7cff7d14b2d93e898ed58fecff13159 | [
"MIT"
] | 1 | 2020-05-08T20:27:16.000Z | 2020-05-08T20:27:16.000Z | #include <parrlib/utils2d/AxisAlignedBoundingBox2D.h>
#include <iostream>
#include <parrlib/Matrix3f.h>
#include <parrlib/otherutil.h>
#include <parrlib/stringutils.h>
AxisAlignedBoundingBox2D::AxisAlignedBoundingBox2D(){}
//AxisAlignedBoundingBox2D::AxisAlignedBoundingBox2D(float v) { vmax = v; vmin = v; }
AxisAlig... | 52.407407 | 156 | 0.713074 | AlessandroParrotta |
3a61efccacd3085e4acf1b2c007aa4dd998acc73 | 1,982 | cpp | C++ | src/game.cpp | kvbc/space_shooter | 6e9e689d23c5b8570fb791ace938eab09d1b477b | [
"MIT"
] | 1 | 2022-03-14T09:35:11.000Z | 2022-03-14T09:35:11.000Z | src/game.cpp | kvbc/space_shooter | 6e9e689d23c5b8570fb791ace938eab09d1b477b | [
"MIT"
] | null | null | null | src/game.cpp | kvbc/space_shooter | 6e9e689d23c5b8570fb791ace938eab09d1b477b | [
"MIT"
] | null | null | null | #include <windows.h>
#include <thread>
#include "game.h"
#include "particles.h"
#include "math.h"
#define pressed(c) GetAsyncKeyState(c)
void Game::update() {
Option BSIZE_X = value(m_op[OP_BSIZE_X]);
Option BSIZE_Y = value(m_op[OP_BSIZE_Y]);
Option PSPEED = value(m_op[OP_PSPEED]);
if(m_plr.heal... | 22.781609 | 96 | 0.573663 | kvbc |
3a68688cd7a6ef9505f3322babca5e768d9c8691 | 3,377 | cpp | C++ | src/PBN.cpp | lanctot/dds | 06c1b31795ca2db2f268ea81a1029b03c8c37872 | [
"Apache-2.0"
] | 93 | 2015-01-23T01:56:02.000Z | 2022-02-21T22:56:41.000Z | src/PBN.cpp | lanctot/dds | 06c1b31795ca2db2f268ea81a1029b03c8c37872 | [
"Apache-2.0"
] | 57 | 2015-01-15T15:01:01.000Z | 2021-06-25T08:36:19.000Z | src/PBN.cpp | online-bridge-hackathon/libdds | 19db9cf99bee85074884f628cdd5a5faf79bc766 | [
"Apache-2.0"
] | 76 | 2015-04-11T10:22:47.000Z | 2022-03-29T09:51:03.000Z | /*
DDS, a bridge double dummy solver.
Copyright (C) 2006-2014 by Bo Haglund /
2014-2018 by Bo Haglund & Soren Hein.
See LICENSE and README.
*/
#include "dds.h"
#include "PBN.h"
int IsCard(const char cardChar);
int ConvertFromPBN(
char const * dealBuff,
unsigned int remainCards[DDS_HANDS][DDS_SUIT... | 18.761111 | 70 | 0.472017 | lanctot |
3a6c3309915e86f8f0e6a5f15317d7c7aea24d23 | 3,336 | cpp | C++ | src/logger_asynchronous.cpp | babidev/logging | f53db4cbdd5ed831dad0b673752d4bef7629eb98 | [
"BSD-3-Clause"
] | null | null | null | src/logger_asynchronous.cpp | babidev/logging | f53db4cbdd5ed831dad0b673752d4bef7629eb98 | [
"BSD-3-Clause"
] | null | null | null | src/logger_asynchronous.cpp | babidev/logging | f53db4cbdd5ed831dad0b673752d4bef7629eb98 | [
"BSD-3-Clause"
] | null | null | null | #include "logging/logger_asynchronous.h"
#include <chrono>
#include "logging/manager.h"
namespace logging {
logger_asynchronous::logger_asynchronous()
: state_{static_cast<unsigned>(state::off)}
{
start();
}
logger_asynchronous::~logger_asynchronous()
{
stop();
}
void logger_asynchronous::start()
{
unsigne... | 29.263158 | 81 | 0.66247 | babidev |
3a6ff74e04828bc6bcb690735b7aec220f1e3a1b | 29,800 | cpp | C++ | SOURCES/graphics/bspbuild/mgif.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/graphics/bspbuild/mgif.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/graphics/bspbuild/mgif.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | #include <mgapiall.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include <stddef.h>
#include <math.h>
static int lasterr = 0;
static void Normalize (double *xp, double *yp, double *zp)
{
// normalize
double x = *xp, y = *yp, z = *zp;
double mag = sqrt(x*x + y*y + z*z);
x /= mag;... | 22.887865 | 105 | 0.61255 | IsraelyFlightSimulator |
b9198bf3a63ba8bacd1b900e3415c97b43e10b6c | 667 | hpp | C++ | library/cgp/containers/buffer_stack/buffer_stack.hpp | drohmer/CGP | 3e7651649320d0bff19394ecd9546e872802c3e7 | [
"MIT"
] | null | null | null | library/cgp/containers/buffer_stack/buffer_stack.hpp | drohmer/CGP | 3e7651649320d0bff19394ecd9546e872802c3e7 | [
"MIT"
] | 2 | 2022-03-03T16:34:03.000Z | 2022-03-20T13:08:56.000Z | library/cgp/containers/buffer_stack/buffer_stack.hpp | drohmer/CGP | 3e7651649320d0bff19394ecd9546e872802c3e7 | [
"MIT"
] | null | null | null | #pragma once
namespace cgp
{
/** Base class for small fixed-size vectors (vec3, mat3, etc.).
* buffer_stack structure is a generic fixed-size vector, essentially equivalent to a std::array.
* In addition to std::array syntax, buffer_stack provides extra convenient functions (similar to buffer) for numer... | 33.35 | 177 | 0.746627 | drohmer |
b91a0929fd33b9d9782b9e9cf0f184828ac08702 | 4,342 | cpp | C++ | solved-topcoder/Solved/CatsOnTheLineDiv2.cpp | Maruf-Tuhin/Online_Judge | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | 1 | 2019-03-31T05:47:30.000Z | 2019-03-31T05:47:30.000Z | solved-topcoder/Solved/CatsOnTheLineDiv2.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | solved-topcoder/Solved/CatsOnTheLineDiv2.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | /**
* @author : Maruf Tuhin
* @School : CUET CSE 11
* @Topcoder : the_redback
* @CodeForces : the_redback
* @UVA : the_redback
* @link : http://www.fb.com/maruf.2hin
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long l... | 38.767857 | 329 | 0.544219 | Maruf-Tuhin |
b91cd44ed44c1025090cacadecbf00e4dc36bf25 | 924 | cpp | C++ | src/reconstruct.cpp | ckpwinters/StereoTracking | f7e2c52c0c4481303560a1d03603a9d4971e8103 | [
"BSD-2-Clause"
] | null | null | null | src/reconstruct.cpp | ckpwinters/StereoTracking | f7e2c52c0c4481303560a1d03603a9d4971e8103 | [
"BSD-2-Clause"
] | null | null | null | src/reconstruct.cpp | ckpwinters/StereoTracking | f7e2c52c0c4481303560a1d03603a9d4971e8103 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by lab on 16-12-27.
//
#include "reconstruct.h"
namespace tracker{
void Triangulate::Reconstruct3d(vector<Point2f> &matched_L, vector<Point2f> &matched_R, vector<Point3f> &coord_3d) {
size_t num_points=matched_L.size();
//double pixel_size=4.65e-3;
//Z=b*f/d
float d,... | 31.862069 | 120 | 0.568182 | ckpwinters |
b91ed1f420de1fbaef1d34e93f766b5a45b22d93 | 2,411 | cc | C++ | tests/json-test.cc | kikairoya/black_circle | f3d8b90c9ddc76561d6ddc5e29e5e8fc8d3318c6 | [
"BSL-1.0"
] | 1 | 2016-06-20T21:16:36.000Z | 2016-06-20T21:16:36.000Z | tests/json-test.cc | kikairoya/black_circle | f3d8b90c9ddc76561d6ddc5e29e5e8fc8d3318c6 | [
"BSL-1.0"
] | null | null | null | tests/json-test.cc | kikairoya/black_circle | f3d8b90c9ddc76561d6ddc5e29e5e8fc8d3318c6 | [
"BSL-1.0"
] | null | null | null | #include <common.hpp>
#include "json_parser.hpp"
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/lexical_cast.hpp>
using namespace circle;
template <typename T>
inline T clone(const T &v) { return v; }
template <typename T>
struct object_type { typedef T type; };
template <> ... | 34.942029 | 90 | 0.657818 | kikairoya |
b9243933db9eeb3db42009eb0243dccc3fc203f0 | 10,105 | cpp | C++ | Source/Samples/41_DatabaseDemo/DatabaseDemo.cpp | ArnisLielturks/GameOff2017-WildDimension | 16d5cd0a0a7c8c520bee974f008ba719e37c996f | [
"MIT"
] | 3 | 2017-09-18T02:18:49.000Z | 2021-04-10T00:17:15.000Z | Source/Samples/41_DatabaseDemo/DatabaseDemo.cpp | ArnisLielturks/GameOff2017-WildDimension | 16d5cd0a0a7c8c520bee974f008ba719e37c996f | [
"MIT"
] | 1 | 2017-09-18T06:05:25.000Z | 2017-09-18T06:05:25.000Z | Source/Samples/41_DatabaseDemo/DatabaseDemo.cpp | pengfei666/Urho3D | 80658b06596e17e89278dde8e9a6cbe9375c7cee | [
"MIT"
] | null | null | null | //
// Copyright (c) 2008-2017 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, m... | 44.911111 | 129 | 0.696388 | ArnisLielturks |
b92a97394e9a2d6911e2afd3285f946db277388b | 3,101 | cpp | C++ | src/ADBSCEditDLL/test/misc-regex/CppRegex.cpp | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | 9 | 2019-05-20T12:06:36.000Z | 2022-03-24T19:11:06.000Z | src/ADBSCEditDLL/test/misc-regex/CppRegex.cpp | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | null | null | null | src/ADBSCEditDLL/test/misc-regex/CppRegex.cpp | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | 3 | 2020-07-06T04:51:33.000Z | 2021-07-26T20:08:02.000Z | /*
MIT License
Android remote Viewer, GUI ADB tools
Android Viewer developed to view and control your android device from a PC.
ADB exchange Android Viewer, support scale view, input tap from mouse,
input swipe from keyboard, save/copy screenshot, etc..
Copyright (c) 2016-2019 PS
GitHub: ... | 34.076923 | 126 | 0.618188 | ClnViewer |
b92e03fdb156047b17616f50b4781434b52ec305 | 1,120 | cpp | C++ | Week-1/Day-07-wordPattern.cpp | utkarshavardhana/september-leetcoding-challenge | 4e188ea914eea331ab3b032571640c82048e136d | [
"MIT"
] | null | null | null | Week-1/Day-07-wordPattern.cpp | utkarshavardhana/september-leetcoding-challenge | 4e188ea914eea331ab3b032571640c82048e136d | [
"MIT"
] | null | null | null | Week-1/Day-07-wordPattern.cpp | utkarshavardhana/september-leetcoding-challenge | 4e188ea914eea331ab3b032571640c82048e136d | [
"MIT"
] | null | null | null | class Solution {
public:
bool wordPattern(string pattern, string str) {
vector<string> words = split(str, ' ');
map<char, string> table;
if (pattern.size() != words.size()) {
return false;
}
for (auto i = 0; i < pattern.size(); ++ i) {
auto c ... | 28.717949 | 60 | 0.415179 | utkarshavardhana |
b930423655c18483adef98ba4c8b335c5e77704f | 580 | hpp | C++ | obsoleted/old/lib-obsolete/int/libled/row-help.hpp | cppcoder123/led-server | 8ebac31e1241bb203d2cedfd644fe52619007cd6 | [
"MIT"
] | 1 | 2021-12-23T13:50:53.000Z | 2021-12-23T13:50:53.000Z | obsoleted/old/lib-obsolete/int/libled/row-help.hpp | cppcoder123/led-server | 8ebac31e1241bb203d2cedfd644fe52619007cd6 | [
"MIT"
] | null | null | null | obsoleted/old/lib-obsolete/int/libled/row-help.hpp | cppcoder123/led-server | 8ebac31e1241bb203d2cedfd644fe52619007cd6 | [
"MIT"
] | null | null | null | //
//
//
#ifndef LIBLED_ROW_HELP_HPP
#define LIBLED_ROW_HELP_HPP
namespace libled
{
namespace row
{
template <typename info_t>
struct help_t
{
static std::size_t size (const info_t &info) {return info.size ();}
//
static bool test (const info_t &info, std::size_t index)
{return... | 18.125 | 73 | 0.593103 | cppcoder123 |
b939490ef770fd0da9b17425b32989fc2cb77e00 | 3,893 | cpp | C++ | Plugins/AdvancedSessions/AdvancedSessions/Intermediate/Build/Win64/UE4Editor/Development/AdvancedSessions/Module.AdvancedSessions.gen.cpp | Maskside/DriftGame | a518574f3ba4256da0cc948b9f147b4d3aaa3b5c | [
"MIT"
] | null | null | null | Plugins/AdvancedSessions/AdvancedSessions/Intermediate/Build/Win64/UE4Editor/Development/AdvancedSessions/Module.AdvancedSessions.gen.cpp | Maskside/DriftGame | a518574f3ba4256da0cc948b9f147b4d3aaa3b5c | [
"MIT"
] | null | null | null | Plugins/AdvancedSessions/AdvancedSessions/Intermediate/Build/Win64/UE4Editor/Development/AdvancedSessions/Module.AdvancedSessions.gen.cpp | Maskside/DriftGame | a518574f3ba4256da0cc948b9f147b4d3aaa3b5c | [
"MIT"
] | null | null | null | // This file is automatically generated at compile-time to include some subset of the user-created cpp files.
#include "E:\Unreal Projects\github\DriftGame\Plugins\AdvancedSessions\AdvancedSessions\Intermediate\Build\Win64\UE4Editor\Inc\AdvancedSessions\AdvancedExternalUILibrary.gen.cpp"
#include "E:\Unreal Projects\gi... | 169.26087 | 187 | 0.875417 | Maskside |
b93d6971337ab178a943d239ab8ff80d31c47884 | 1,807 | cpp | C++ | lib/indicator/DbgCliCmdIndSet.cpp | dniklaus/arduino-serial-test | a5efa33111321d8663d5291461e4244af491a6b5 | [
"MIT"
] | 1 | 2021-01-07T12:59:18.000Z | 2021-01-07T12:59:18.000Z | lib/indicator/DbgCliCmdIndSet.cpp | dniklaus/arduino-serial-test | a5efa33111321d8663d5291461e4244af491a6b5 | [
"MIT"
] | 1 | 2018-04-19T12:29:36.000Z | 2018-04-19T12:29:36.000Z | lib/indicator/DbgCliCmdIndSet.cpp | dniklaus/arduino-serial-test | a5efa33111321d8663d5291461e4244af491a6b5 | [
"MIT"
] | 1 | 2017-08-18T18:30:14.000Z | 2017-08-18T18:30:14.000Z | /*
* DbgCliCmdLedSet.cpp
*
* Created on: 01.11.2019
* Author: nid
*/
#include "DbgCliCmdIndSet.h"
#include <string.h>
#include <DbgCliNode.h>
#include <DbgCliTopic.h>
#include <DbgCliCommand.h>
#include <DbgTracePort.h>
#include <DbgTraceContext.h>
#include <DbgTraceOut.h>
#include <DbgPrintConsole.h>
#inc... | 24.418919 | 126 | 0.674045 | dniklaus |
b93dd4bab3baaf82c57d23bcaed261571a3ba52f | 4,531 | cpp | C++ | sdk/QtComponents/vuMeter.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | 3 | 2017-05-13T20:36:03.000Z | 2021-07-16T17:23:01.000Z | sdk/QtComponents/vuMeter.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | null | null | null | sdk/QtComponents/vuMeter.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | 2 | 2016-08-04T00:16:50.000Z | 2017-09-07T14:50:03.000Z | #include "VuMeter.h"
#include <QtGui/QPainter>
namespace Limitless
{
VuMeter::VuMeter(QWidget *parent): QWidget(parent)
{
m_backgroundColor=QColor(0, 0, 0);
m_cellColor=QColor(80, 80, 80);
m_highColor=Qt::red;
m_color=Qt::yellow;
m_lowColor=Qt::green;
m_maxiumValue=1.0f;
m_minimumValue=0.0f;
m_value=0.0f;... | 21.783654 | 93 | 0.621055 | InfiniteInteractive |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.