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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de28e9148aaf22d5872ca93b88d07209e5900495 | 1,727 | cpp | C++ | runtime/mkw/v2.0/bootstrap.cpp | riidefi/Pokey | 0b061312d7b4f8cf38bbe6317254262c646f6c89 | [
"MIT"
] | 10 | 2019-04-30T01:41:47.000Z | 2021-02-16T06:13:24.000Z | runtime/mkw/v2.0/bootstrap.cpp | riidefi/Pokey | 0b061312d7b4f8cf38bbe6317254262c646f6c89 | [
"MIT"
] | null | null | null | runtime/mkw/v2.0/bootstrap.cpp | riidefi/Pokey | 0b061312d7b4f8cf38bbe6317254262c646f6c89 | [
"MIT"
] | 1 | 2020-06-04T12:49:12.000Z | 2020-06-04T12:49:12.000Z | #include "standalone.hpp"
#include <libpokey/hooks.h>
// filepaths from all regions combined
static const char* BootStrapFilePaths[] = {
"/Boot/Strap/jp/jp.szs", // 0
"/Boot/Strap/eu/English.szs", // 1
"/Boot/Strap/eu/German.szs", // 2
"/Boot/Strap/eu/French.szs", // 3
// "/Boot/Strap/eu/Spanish_US.szs"
"/Boot/St... | 23.657534 | 112 | 0.673422 | riidefi |
de2b24b6ab2f9d13be56bca32fa4b38c0e233772 | 698 | cpp | C++ | Manufacture/glass/Glassify-master/include/MotorThread.cpp | ReEn-Neom/ReEn.Neom-source-code- | 11ec834d5eac5a5a63c71f6b41107769dafc591c | [
"MIT"
] | null | null | null | Manufacture/glass/Glassify-master/include/MotorThread.cpp | ReEn-Neom/ReEn.Neom-source-code- | 11ec834d5eac5a5a63c71f6b41107769dafc591c | [
"MIT"
] | null | null | null | Manufacture/glass/Glassify-master/include/MotorThread.cpp | ReEn-Neom/ReEn.Neom-source-code- | 11ec834d5eac5a5a63c71f6b41107769dafc591c | [
"MIT"
] | null | null | null | #include <wiringPi.h>
#include <thread>
//#include <cstdlib>
#include <iostream>
#include "MotorThread.h"
//#include "libServo.h"
//#include "libServo.cpp"
void MotorThread::run()
{
while(true){
m_state=stateptr->getState();
std::cout << "MOTOR GOT STATE >> " << m_state << std::endl;
if(m_state==1)
{
servopt... | 18.368421 | 68 | 0.65043 | ReEn-Neom |
de2bb30cb5a58184d70f4d07c3c6ca056aeddab0 | 82 | hpp | C++ | src/elona/main.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | 84 | 2018-03-03T02:44:32.000Z | 2019-07-14T16:16:24.000Z | src/elona/main.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | 685 | 2018-02-27T04:31:17.000Z | 2019-07-12T13:43:00.000Z | src/elona/main.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | 23 | 2019-07-26T08:52:38.000Z | 2021-11-09T09:21:58.000Z | #pragma once
namespace elona
{
int run(int argc, const char* const* argv);
}
| 7.454545 | 43 | 0.670732 | XrosFade |
de2fd1c31bfd646a003e2ff649a64c640849904d | 2,754 | cpp | C++ | Miscellaneous/frogthree.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | 1 | 2020-10-16T18:14:30.000Z | 2020-10-16T18:14:30.000Z | Miscellaneous/frogthree.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | null | null | null | Miscellaneous/frogthree.cpp | hardik0899/Competitive_Programming | 199039ad7a26a5f48152fe231a9ca5ac8685a707 | [
"MIT"
] | 1 | 2021-01-06T04:45:38.000Z | 2021-01-06T04:45:38.000Z | #define __USE_MINGW_ANSI_STDIO 0
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <algorithm>
#include <queue>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <stack>
#include <deque>
#include <string.h>
#include <sstream>
... | 28.989474 | 155 | 0.595134 | hardik0899 |
de331995ccb829155f588de8da5537d04ddaa885 | 3,694 | hpp | C++ | src/Core/TransactionExtra.hpp | mygirl8893/evo | c90f69ad6132c426042749ff3fe4174d22aa63b2 | [
"MIT"
] | 1 | 2019-05-20T01:00:40.000Z | 2019-05-20T01:00:40.000Z | src/Core/TransactionExtra.hpp | mygirl8893/evo | c90f69ad6132c426042749ff3fe4174d22aa63b2 | [
"MIT"
] | 4 | 2018-05-07T07:15:53.000Z | 2018-06-01T19:35:46.000Z | src/Core/TransactionExtra.hpp | mygirl8893/evo | c90f69ad6132c426042749ff3fe4174d22aa63b2 | [
"MIT"
] | 10 | 2018-05-09T10:45:07.000Z | 2020-01-11T17:21:28.000Z | #pragma once
#include <boost/variant.hpp>
#include <vector>
#include "CryptoNote.hpp"
#include "seria/ISeria.hpp"
namespace cryptonote {
enum { TX_EXTRA_PADDING_MAX_COUNT = 255, TX_EXTRA_NONCE_MAX_COUNT = 255, TX_EXTRA_NONCE_PAYMENT_ID = 0x00 };
struct TransactionExtraPadding {
size_t size = 0;
enu... | 30.783333 | 117 | 0.73281 | mygirl8893 |
de337a4c7dc31a4813842329f7ad3796967d3438 | 2,123 | cpp | C++ | Visual Mercutio/zBaseLib/PSS_Splitter.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zBaseLib/PSS_Splitter.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zBaseLib/PSS_Splitter.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_Splitter --------------------------------------------------------*
****************************************************************************
* Description : Provides a splitter *
* Devel... | 37.910714 | 78 | 0.370231 | Jeanmilost |
de340e9fd170a18b5163c178219e094171ac96ed | 7,769 | cpp | C++ | main/source/cl_dll/util.cpp | fmoraw/NS | 6c3ae93ca7f929f24da4b8f2d14ea0602184cf08 | [
"Unlicense"
] | 27 | 2015-01-05T19:25:14.000Z | 2022-03-20T00:34:34.000Z | main/source/cl_dll/util.cpp | fmoraw/NS | 6c3ae93ca7f929f24da4b8f2d14ea0602184cf08 | [
"Unlicense"
] | 9 | 2015-01-14T06:51:46.000Z | 2021-03-19T12:07:18.000Z | main/source/cl_dll/util.cpp | fmoraw/NS | 6c3ae93ca7f929f24da4b8f2d14ea0602184cf08 | [
"Unlicense"
] | 5 | 2015-01-11T10:31:24.000Z | 2021-01-06T01:32:58.000Z | /***
*
* Copyright (c) 1999, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* ... | 24.663492 | 126 | 0.604582 | fmoraw |
de3593ab1508ac91eba7bd889caff87e1e6a0703 | 2,088 | cpp | C++ | json_rest_test/Client.cpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | 1 | 2020-05-22T08:47:00.000Z | 2020-05-22T08:47:00.000Z | json_rest_test/Client.cpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | null | null | null | json_rest_test/Client.cpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | null | null | null | #include <tm_kit/infra/RealTimeApp.hpp>
#include <tm_kit/infra/Environments.hpp>
#include <tm_kit/infra/TerminationController.hpp>
#include <tm_kit/infra/DeclarativeGraph.hpp>
#include <tm_kit/basic/real_time_clock/ClockComponent.hpp>
#include <tm_kit/basic/SpdLoggingComponent.hpp>
#include <tm_kit/transport/CrossGui... | 31.164179 | 77 | 0.621169 | cd606 |
de37255f5b9a56dec1a112ec3c95d5d573ec19e0 | 10,212 | cpp | C++ | videodecodethread.cpp | Whatchado/storyrecorder | a442ebf2f5f5920f965ec5c07fddeec38a2a7aab | [
"Zlib"
] | null | null | null | videodecodethread.cpp | Whatchado/storyrecorder | a442ebf2f5f5920f965ec5c07fddeec38a2a7aab | [
"Zlib"
] | null | null | null | videodecodethread.cpp | Whatchado/storyrecorder | a442ebf2f5f5920f965ec5c07fddeec38a2a7aab | [
"Zlib"
] | null | null | null | #include "videodecodethread.h"
#include <QTime>
#include <QElapsedTimer>
#include "video_image.h"
#include "log.h"
VideoDecodeThread::VideoDecodeThread(QObject *parent) :
QThread(parent)
{
is_Running=false;
doStop=false;
isPaused=false;
doPause=false;
vbuffer=NULL;
doSeek=-1;
got_audiof... | 33.592105 | 145 | 0.588915 | Whatchado |
de389052eedac016319f90c5a7060645048a6065 | 505 | cpp | C++ | cilkforrange/hi.cpp | sualehasif/llvmurop | 954f789c0fd4e2efe7dd385b26e92e880695dd94 | [
"MIT"
] | null | null | null | cilkforrange/hi.cpp | sualehasif/llvmurop | 954f789c0fd4e2efe7dd385b26e92e880695dd94 | [
"MIT"
] | null | null | null | cilkforrange/hi.cpp | sualehasif/llvmurop | 954f789c0fd4e2efe7dd385b26e92e880695dd94 | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
#include <cilk/cilk.h>
int functionwithuniquename(std::vector<int> v) {
int sum = 0;
cilk_for (auto x : v) {
sum += x;
std::cout << x << "\n";
}
/*
cilk_for (int i = 0; i < v.size(); i++) {
std::cout << v[i] << '\n';
}
*/
return sum;
}... | 16.290323 | 48 | 0.491089 | sualehasif |
de3c4c6c328d2f6f66cddaf09aadd757796f46b3 | 4,486 | hh | C++ | src/kinetics/SyntheticMomentSource.i.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/kinetics/SyntheticMomentSource.i.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/kinetics/SyntheticMomentSource.i.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*----------------------------------//
/**
* @file SyntheticMomentSource.i.hh
* @brief SyntheticMomentSource inline member definitions
* @author Jeremy Roberts
* @date Nov 15, 2012
*/
//---------------------------------------------------------------------------//
... | 34.244275 | 114 | 0.476371 | RLReed |
de3f0e25654f5c1a369c26c7b6896c2122a2fc29 | 252 | hpp | C++ | src/EventListener.hpp | OMKE/TalesOfAlester | 20ce17cf68ad956fc9d6f7cc3ac73a11c61f1118 | [
"MIT"
] | null | null | null | src/EventListener.hpp | OMKE/TalesOfAlester | 20ce17cf68ad956fc9d6f7cc3ac73a11c61f1118 | [
"MIT"
] | 1 | 2019-06-23T00:09:39.000Z | 2019-06-24T19:15:13.000Z | src/EventListener.hpp | OMKE/TalesOfAlester | 20ce17cf68ad956fc9d6f7cc3ac73a11c61f1118 | [
"MIT"
] | null | null | null | #ifndef EVENT_LISTENER_H
#define EVENT_LISTENER_H
#include "SDL2/SDL.h"
/*
** INTERFACE **
desc:
Interface that listens for events
*/
class EventListener {
public:
virtual void listen(SDL_Event &e) = 0;
};
#endif // EVENT_LISTENER_H | 14.823529 | 46 | 0.690476 | OMKE |
de3ffbb91f35912b778bef0b688156e258045e0f | 13,301 | cpp | C++ | net.ssa/xr_3da/xrGame/MainUI.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | xr_3da/xrGame/MainUI.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | xr_3da/xrGame/MainUI.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | #include "stdafx.h"
#include "MainUI.h"
#include "UI/UIDialogWnd.h"
#include "ui/UIMessageBoxEx.h"
#include "UICursor.h"
#include "HUDManager.h"
#include "../xr_IOConsole.h"
#include "../IGame_Level.h"
#include "../CameraManager.h"
#include "xr_Level_controller.h"
#include "ui\UITextureMaster.h"
#include "ui... | 24.495396 | 98 | 0.62469 | ixray-team |
de4224e4307f30cf5295d56be1e578b5f2e27acc | 879 | cpp | C++ | chap10/Page386_predicate.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 50 | 2016-01-08T14:28:53.000Z | 2022-01-21T12:55:00.000Z | chap10/Page386_predicate.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 2 | 2017-06-05T16:45:20.000Z | 2021-04-17T13:39:24.000Z | chap10/Page386_predicate.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 18 | 2016-08-17T15:23:51.000Z | 2022-03-26T18:08:43.000Z | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using std::cout;
using std::endl;
using std::string;
using std::vector;
bool isShorter(const string &s1, const string &s2)
{
return s1.size() < s2.size();
}
void elimDups(vector<string> &words)
{
sort(words.begin(), words.end());
a... | 26.636364 | 108 | 0.612059 | sjbarigye |
de44d8873b4bd0425df24b1db6e97e6e2c4c982c | 5,204 | cpp | C++ | main.cpp | maltsevda/FakeD3D9 | 9d14b19cef9a9795847961101aa5378491624af5 | [
"MIT"
] | 12 | 2019-05-14T04:50:06.000Z | 2022-03-22T09:28:54.000Z | main.cpp | maltsevda/FakeD3D9 | 9d14b19cef9a9795847961101aa5378491624af5 | [
"MIT"
] | null | null | null | main.cpp | maltsevda/FakeD3D9 | 9d14b19cef9a9795847961101aa5378491624af5 | [
"MIT"
] | 2 | 2020-07-06T18:45:38.000Z | 2022-02-06T23:40:49.000Z | #define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "FakeDirect3D9.h"
struct OriginalLibrary
{
HMODULE hDll;
FARPROC D3DPERF_BeginEvent;
FARPROC D3DPERF_EndEvent;
FARPROC D3DPERF_GetStatus;
FARPROC D3DPERF_QueryRepeatFrame;
FARPROC D3DPERF_SetMarker;
FARPROC D3DPERF_SetOptions;
FARPROC D3DPERF_SetRegion;... | 46.464286 | 148 | 0.777479 | maltsevda |
de45fd8e13721025c0260f18a9ea663fd118b777 | 1,068 | cpp | C++ | src/Maximum.cpp | LLNL/STREAMSTAT | 5097155390df59ed7803929b4fb867063d12ae2a | [
"BSD-3-Clause"
] | null | null | null | src/Maximum.cpp | LLNL/STREAMSTAT | 5097155390df59ed7803929b4fb867063d12ae2a | [
"BSD-3-Clause"
] | null | null | null | src/Maximum.cpp | LLNL/STREAMSTAT | 5097155390df59ed7803929b4fb867063d12ae2a | [
"BSD-3-Clause"
] | null | null | null | #include <fstream>
#include "Maximum.h"
#include <algorithm>
namespace Statistics {
//template <typename FunctionType>
Maximum::Maximum(const Maximum& val) :
StreamingStatistic(val)
{
mMax = val.mMax;
}
void Maximum::add(double f)
{
mMax = std::max(f,mMax);
}
void Maximum::add(const StreamingStatistic* seg... | 17.225806 | 84 | 0.670412 | LLNL |
de4b9b0c96f9648057d5d578f6104890301b0ab5 | 32,686 | cpp | C++ | src/z_zodiacreader.cpp | SpehleonLP/Zodiac | 19ec600c269afda4ef15dead9ed614320fecb14a | [
"MIT"
] | null | null | null | src/z_zodiacreader.cpp | SpehleonLP/Zodiac | 19ec600c269afda4ef15dead9ed614320fecb14a | [
"MIT"
] | null | null | null | src/z_zodiacreader.cpp | SpehleonLP/Zodiac | 19ec600c269afda4ef15dead9ed614320fecb14a | [
"MIT"
] | null | null | null | #include "z_zodiacreader.h"
#ifdef HAVE_ZODIAC
#include "z_zodiacwriter.h"
#include "z_zodiac.h"
#include "z_zodiaccontext.h"
#include "z_zodiacexception.h"
#include <stdexcept>
#include <cstring>
#include <cassert>
#include <cstring>
#include <stdexcept>
#include "add_on/scriptdictionary/scriptdictionary.h"
namespac... | 27.329431 | 180 | 0.701615 | SpehleonLP |
de4dabbd4fe6fafb74938d19ad038a5db6820ce6 | 788 | cpp | C++ | src/geometry.cpp | josiest/gold | 140d7c92fce8548b8a4cc6d2eda4be5b12e32975 | [
"MIT"
] | null | null | null | src/geometry.cpp | josiest/gold | 140d7c92fce8548b8a4cc6d2eda4be5b12e32975 | [
"MIT"
] | null | null | null | src/geometry.cpp | josiest/gold | 140d7c92fce8548b8a4cc6d2eda4be5b12e32975 | [
"MIT"
] | null | null | null | #include "gold/geometry.hpp"
namespace au {
bool within_closed_bounds(SDL_Point const & p, SDL_Rect const & rect)
{
return p.x >= rect.x and p.x <= rect.x + rect.w
and p.y >= rect.y and p.y <= rect.y + rect.h;
}
double scale_by_height(SDL_Rect const & from, SDL_Rect const & to)
{
// scale width by nor... | 27.172414 | 69 | 0.659898 | josiest |
de4eeb154a95d899df52b4bf82c4437fa6b5a8eb | 661 | cpp | C++ | TestProject1/TestProject1.cpp | halterman/318_F19 | fd04d3bf9168485947fae86d5d2d7af1752f61af | [
"MIT"
] | null | null | null | TestProject1/TestProject1.cpp | halterman/318_F19 | fd04d3bf9168485947fae86d5d2d7af1752f61af | [
"MIT"
] | null | null | null | TestProject1/TestProject1.cpp | halterman/318_F19 | fd04d3bf9168485947fae86d5d2d7af1752f61af | [
"MIT"
] | null | null | null | #include <iostream>
class Int {
int value;
public:
Int(int value) {
this->value = value;
}
int get() const {
return value;
}
};
class NotCopyable {
Int value;
public:
NotCopyable() = default;
NotCopyable(int value) : value(value) {}
NotCopyable(const NotCopyable& other) = delete;
NotC... | 16.948718 | 60 | 0.556732 | halterman |
de4f722bfad1a47ec05bdd63c172786cbdf95f9d | 6,568 | cpp | C++ | src/jni/OpenSSLJavaInterface/Hmac.cpp | muelli/scapi | c37d7b2594b234e177fcb8be69e25ca7caccab65 | [
"MIT"
] | 3 | 2018-09-26T02:56:45.000Z | 2021-04-09T02:30:05.000Z | src/jni/OpenSSLJavaInterface/Hmac.cpp | muelli/scapi | c37d7b2594b234e177fcb8be69e25ca7caccab65 | [
"MIT"
] | null | null | null | src/jni/OpenSSLJavaInterface/Hmac.cpp | muelli/scapi | c37d7b2594b234e177fcb8be69e25ca7caccab65 | [
"MIT"
] | 7 | 2018-09-26T03:08:48.000Z | 2022-01-26T16:44:32.000Z | /**
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* Copyright (c) 2012 - SCAPI (http://crypto.biu.ac.il/scapi)
* This file is part of the SCAPI project.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Permission is hereby granted, free of charge, to any pe... | 41.834395 | 158 | 0.695341 | muelli |
de51e0065e9eb226edf02e5b7532b2daec70f6f2 | 15,881 | cc | C++ | lib/flyMS/FlightCore.cc | msardonini/flyMS | ea1127a3313fb52a8fe789222ba654e05583e06c | [
"MIT"
] | null | null | null | lib/flyMS/FlightCore.cc | msardonini/flyMS | ea1127a3313fb52a8fe789222ba654e05583e06c | [
"MIT"
] | null | null | null | lib/flyMS/FlightCore.cc | msardonini/flyMS | ea1127a3313fb52a8fe789222ba654e05583e06c | [
"MIT"
] | null | null | null | /**
* @file FlightCore.cc
* @brief Main control loop for the flyMS program
*
* @author Mike Sardonini
* @date 10/15/2018
*/
#include "flyMS/FlightCore.h"
#include <sys/stat.h>
#include <algorithm>
#include <iomanip>
#include <sstream>
#include <stdexcept>
#include "spdlog/fmt/ostr.h"
#include "spdlog/sinks/ro... | 42.349333 | 120 | 0.581575 | msardonini |
de54a78f41108e308a7b40ee164cfc22cebd0e21 | 2,276 | cpp | C++ | cpp_10/parallel_algorithms/spinlock_vs_atomic/test.cpp | eshernan/parallel_course | 37528e0c19e1524f948138bcc7a6ccdc6a3aa0dd | [
"MIT"
] | 3 | 2021-01-18T18:15:51.000Z | 2021-05-21T07:04:31.000Z | spinlock_vs_atomic/test.cpp | andy-thomason/parallel_algorithms | c7ca071dd87dd8044d16d41d61efb1d07b9fbca3 | [
"MIT"
] | null | null | null | spinlock_vs_atomic/test.cpp | andy-thomason/parallel_algorithms | c7ca071dd87dd8044d16d41d61efb1d07b9fbca3 | [
"MIT"
] | 1 | 2021-05-21T07:04:44.000Z | 2021-05-21T07:04:44.000Z |
#include <chrono>
#include <atomic>
#include <future>
#include <array>
#include <mutex>
class nolock {
public:
void lock() {
}
void unlock() {
}
};
class spinlock {
std::atomic_flag flag_{false};
public:
void lock() {
while (flag_.test_and_set(std::memory_order_acquire)) ;
}... | 22.76 | 85 | 0.588313 | eshernan |
de58bb811e689c91b09f785c404790bf07b48bdb | 6,424 | cpp | C++ | src/io_worker.cpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | src/io_worker.cpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | src/io_worker.cpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2014 DataStax
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, sof... | 28.175439 | 80 | 0.693337 | Paycasso |
de5a2a360613b4f97ca9dc28208b296e0d9d8c88 | 1,721 | cpp | C++ | LeetCode/100/1847.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | 1 | 2021-03-05T14:16:46.000Z | 2021-03-05T14:16:46.000Z | LeetCode/100/1847.cpp | K-ona/CPP-Training | aa312970505f67c270257c8a5816e89c10f2d1ce | [
"Apache-2.0"
] | null | null | null | LeetCode/100/1847.cpp | K-ona/CPP-Training | aa312970505f67c270257c8a5816e89c10f2d1ce | [
"Apache-2.0"
] | null | null | null | // created by Kona @VSCode
#include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define LOCAL_TEST
typedef long long ll;
using std::cin;
using std::cout;
using std::endl;
using std::map;
using std::queue;
using std::set;
using std::string;
using st... | 24.942029 | 76 | 0.531087 | K-ona |
de5baaef664e1b5ea845d6166be70d38c0830770 | 454 | cpp | C++ | Olympiad Programs/Helli Programming Training/Codeforces 189A.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | 1 | 2020-12-08T11:21:34.000Z | 2020-12-08T11:21:34.000Z | Olympiad Programs/Helli Programming Training/Codeforces 189A.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | null | null | null | Olympiad Programs/Helli Programming Training/Codeforces 189A.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
const int Maxn=4*1E4+25;
int N,a,b,c;
//bool can[Maxn];
int num[Maxn];
int main()
{
cin >> N >> a >> b >> c;
num[a]=1;
num[b]=1;
num[c]=1;
for (int i=1;i<=N;i++)
if(num[i]!=0)
{
num[i+a]=max(num[i+a],num[i]+... | 17.461538 | 44 | 0.455947 | mirtaba |
de6081cdb76d6ad83b0f3733e23a463a59c18229 | 9,473 | cpp | C++ | Data Structures Final C++/CIS22C-Final-Group3/CIS22C-Final-Group3/FileIO.cpp | LEmilio14/Projects_in_C_PlusPlus | 3c004b0a7c958163243752a4903329d2e40517d4 | [
"MIT"
] | 2 | 2019-09-21T05:48:53.000Z | 2020-03-30T00:29:42.000Z | Data Structures Final C++/CIS22C-Final-Group3/CIS22C-Final-Group3/FileIO.cpp | LEmilio14/Projects_in_C_PlusPlus | 3c004b0a7c958163243752a4903329d2e40517d4 | [
"MIT"
] | null | null | null | Data Structures Final C++/CIS22C-Final-Group3/CIS22C-Final-Group3/FileIO.cpp | LEmilio14/Projects_in_C_PlusPlus | 3c004b0a7c958163243752a4903329d2e40517d4 | [
"MIT"
] | 1 | 2019-09-21T05:47:20.000Z | 2019-09-21T05:47:20.000Z | #include "FileIO.h"
#include <fstream>
namespace FileIO
{
namespace
{
const std::string DELIM_ITEM = "item";
const std::string DELIM_UID = "UID";
const std::string DELIM_UPC = "UPC";
const std::string DELIM_NAME = "name";
const std::string DELIM_SIZE = "size";
const std::string DELIM_CATEGORY = "categor... | 30.957516 | 169 | 0.642141 | LEmilio14 |
de63176edfd38e0490bd86abb93f4fd8d314789d | 2,822 | cpp | C++ | semester2/prog-basics/Lab3a SortComparison/src/DemoMode.cpp | gardenappl/uni | 5bc7110946caf16aae2a0c1ddae4e88bfbb25aa8 | [
"WTFPL"
] | null | null | null | semester2/prog-basics/Lab3a SortComparison/src/DemoMode.cpp | gardenappl/uni | 5bc7110946caf16aae2a0c1ddae4e88bfbb25aa8 | [
"WTFPL"
] | null | null | null | semester2/prog-basics/Lab3a SortComparison/src/DemoMode.cpp | gardenappl/uni | 5bc7110946caf16aae2a0c1ddae4e88bfbb25aa8 | [
"WTFPL"
] | null | null | null | #include <iostream>
#include "DemoMode.h"
#include "Point.h"
#include "Sort.h"
#include <algorithm>
#include <iterator>
namespace sort
{
void DemoMode::run()
{
char input = 0;
while(input != 'd' && input != 'c')
{
std::cout << "Print out coordinates for points (c) or only pr... | 35.275 | 121 | 0.608788 | gardenappl |
de644c9121d2c4979dc1e482b0ccf025b86ce39e | 638 | cpp | C++ | done/blist2.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/blist2.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/blist2.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | #include <algorithm>
#include <fstream>
#include <iostream>
using namespace std;
int N;
int S[101], T[101], B[101]; //start, end, buckets
int main(void) {
ifstream fin ("blist.in");
ofstream fout ("blist.out");
fin>>N;
for (int i=1; i<=N; i++) {
fin>>S[i]>>T[i]>>B[i];
}
int max_bucke... | 22.785714 | 68 | 0.504702 | birdhumming |
de667200b1edc16c4a6733f4a8050b9fb5ec4a99 | 22,013 | cpp | C++ | resultswindow.cpp | DOMjudge/DOMjura | 271e579713995b75be3d6fef289c6c714f26f1b4 | [
"MIT"
] | 9 | 2019-04-23T08:07:08.000Z | 2021-12-04T07:11:35.000Z | resultswindow.cpp | DOMjudge/DOMjura | 271e579713995b75be3d6fef289c6c714f26f1b4 | [
"MIT"
] | 5 | 2019-04-24T05:45:35.000Z | 2021-10-08T06:48:09.000Z | resultswindow.cpp | nickygerritsen/DOMjura | 271e579713995b75be3d6fef289c6c714f26f1b4 | [
"MIT"
] | 6 | 2015-06-26T14:00:23.000Z | 2019-04-22T02:59:31.000Z | #include "resultswindow.h"
#include <QKeyEvent>
#include <QApplication>
#include <QDesktopWidget>
#include <QPropertyAnimation>
#include <QtOpenGL/QtOpenGL>
#include <QTimer>
#include <QSettings>
#include <math.h>
#include "gradientcache.h"
#include "defines.h"
#include "contest.h"
namespace DJ {
nam... | 41.37782 | 135 | 0.592968 | DOMjudge |
de6c98ed7e226f6109bc8274ffbd2160d5e7e07c | 530 | cpp | C++ | src/skills/vision/vision.cpp | GiulianoWF/RIDGS | 4acde23988e088b4f9a82c27bae67100ed83de5b | [
"MIT"
] | null | null | null | src/skills/vision/vision.cpp | GiulianoWF/RIDGS | 4acde23988e088b4f9a82c27bae67100ed83de5b | [
"MIT"
] | null | null | null | src/skills/vision/vision.cpp | GiulianoWF/RIDGS | 4acde23988e088b4f9a82c27bae67100ed83de5b | [
"MIT"
] | null | null | null | #include <iostream>
#include <opencv2/core.hpp>
#include "RIDGS_com.hpp"
int main(){
auto server_communication = ridgs::ProcessServerCOM("vision");
std::cout << "vision::working" << std::endl;
auto mat = cv::Mat();
std::string read;
server_communication >> read;
std::cout << "vision:Recieved from serv... | 24.090909 | 75 | 0.639623 | GiulianoWF |
de6fbc5f6f6105bfb30d1270b51f1d446087c00e | 3,010 | cpp | C++ | libnaucrates/src/operators/CDXLScalarIndexCondList.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-03-05T10:08:56.000Z | 2019-03-05T10:08:56.000Z | libnaucrates/src/operators/CDXLScalarIndexCondList.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | libnaucrates/src/operators/CDXLScalarIndexCondList.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CDXLScalarIndexCondList.cpp
//
// @doc:
// Implementation of DXL index condition lists for DXL index scan operator
//-------------------------------------------------... | 25.083333 | 86 | 0.509635 | khannaekta |
de711760fec74ea2eb2739d540b16704726d40b8 | 8,384 | cpp | C++ | src/game/client/neotokyo/neo_hud_weapon.cpp | L-Leite/neotokyo-re | a45cdcb9027ffe8af72cf1f8e22976375e6b1e0a | [
"Unlicense"
] | 4 | 2017-08-29T15:39:53.000Z | 2019-06-04T07:37:48.000Z | src/game/client/neotokyo/neo_hud_weapon.cpp | Ochii/neotokyo | a45cdcb9027ffe8af72cf1f8e22976375e6b1e0a | [
"Unlicense"
] | null | null | null | src/game/client/neotokyo/neo_hud_weapon.cpp | Ochii/neotokyo | a45cdcb9027ffe8af72cf1f8e22976375e6b1e0a | [
"Unlicense"
] | 1 | 2021-08-10T20:01:00.000Z | 2021-08-10T20:01:00.000Z | #include "cbase.h"
#include "hud.h"
#include "hud_macros.h"
#include "view.h"
#include "iclientmode.h"
#include <KeyValues.h>
#include <vgui/ISystem.h>
#include <vgui/ISurface.h>
#include <vgui/ILocalize.h>
#include "hudelement.h"
#include "neo_hud_numericdisplay.h"
#include "c_neo_player.h"
#include "weapon_neobas... | 28.420339 | 128 | 0.671517 | L-Leite |
de71c7d92d2d698230ad1886dda2b7837b009675 | 4,392 | cpp | C++ | src/threadpool.cpp | lingFlya/MyWebServer | 6c87995e19c76c873c8385ccb847d76e3dc62bff | [
"MIT"
] | null | null | null | src/threadpool.cpp | lingFlya/MyWebServer | 6c87995e19c76c873c8385ccb847d76e3dc62bff | [
"MIT"
] | 1 | 2020-09-06T07:57:02.000Z | 2020-09-12T14:32:25.000Z | src/threadpool.cpp | lingFlya/MyWebServer | 6c87995e19c76c873c8385ccb847d76e3dc62bff | [
"MIT"
] | null | null | null | /************************************************************************************
*@author RedDragon
*@date 2020/9/5
*@brief 线程池实现
* 就是通过pthread_create()创建固定线程数,省去了来一个任务才创建线程和销毁线程
* 的开销,我这里创建了四个固定线程,通过互斥量mutex和条件变量cond和一个任务队列task_queue添加任务
* 和完成任务.
*
* addTask是生产者
* worker是消费者
*******************... | 24.4 | 87 | 0.502277 | lingFlya |
de7286095e21275895928729783b3c6f179f3ae9 | 2,897 | cpp | C++ | trunk/ProjectFootball/src/singlePlayer/db/bean/CPfPhaseTypes.cpp | dividio/projectfootball | 3c0b94937de2e3cd6e7daf9d3b4942fda974f20c | [
"Zlib"
] | null | null | null | trunk/ProjectFootball/src/singlePlayer/db/bean/CPfPhaseTypes.cpp | dividio/projectfootball | 3c0b94937de2e3cd6e7daf9d3b4942fda974f20c | [
"Zlib"
] | null | null | null | trunk/ProjectFootball/src/singlePlayer/db/bean/CPfPhaseTypes.cpp | dividio/projectfootball | 3c0b94937de2e3cd6e7daf9d3b4942fda974f20c | [
"Zlib"
] | null | null | null | /******************************************************************************
* Copyright (C) 2010 - Ikaro Games www.ikarogames.com *
* *
* This program is free software; you can redistribute it and/or *
... | 31.835165 | 79 | 0.509838 | dividio |
de74d7c4918fd6a20d3e7fa062ba1669a51ee5bc | 3,393 | hpp | C++ | include/parserFuncs.hpp | kleidibujari/doit | 5f566992f0dd1118def6ccdfdff47243f82e9ae1 | [
"MIT"
] | null | null | null | include/parserFuncs.hpp | kleidibujari/doit | 5f566992f0dd1118def6ccdfdff47243f82e9ae1 | [
"MIT"
] | null | null | null | include/parserFuncs.hpp | kleidibujari/doit | 5f566992f0dd1118def6ccdfdff47243f82e9ae1 | [
"MIT"
] | null | null | null | #include <string>
#include <fstream>
#include <vector>
#include <iostream>
#define CONFIG "$HOME/.config/do-it/doit.conf"
#include "usage.hpp"
std::string FILELOC;
//writing to file for strings (tasks)
void writeFile(std::string val)
{
std::ofstream ptr(FILELOC, std::ios_base::app);
ptr << ... | 21.074534 | 87 | 0.465665 | kleidibujari |
de7915917f0b394091ebc1d1b367b5f036ee7b41 | 494 | cpp | C++ | uva/c/11032a.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | uva/c/11032a.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | uva/c/11032a.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | #include<cstdio>
int sum,max,s[100];
void go(int n,int w,int i)
{
if(w>sum-w)return;
if(!n)
{
max>?=w;
return;
}
for(;i>=0;i--)
go(n-1,w+s[i],i-1);
}
main()
{
int i,n,T;
scanf("%d",&T);
while(T--)
{
scanf("%d",&n);
for(i=sum=0;i<n;i++)
... | 15.935484 | 38 | 0.364372 | dk00 |
de79da105fbc7421b93e2eb6900e99ba44d5293d | 1,968 | hpp | C++ | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_CBP_TARGET_TC_MIB.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_CBP_TARGET_TC_MIB.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_CBP_TARGET_TC_MIB.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z | #ifndef _CISCO_CBP_TARGET_TC_MIB_
#define _CISCO_CBP_TARGET_TC_MIB_
#include <memory>
#include <vector>
#include <string>
#include <ydk/types.hpp>
#include <ydk/errors.hpp>
namespace cisco_ios_xe {
namespace CISCO_CBP_TARGET_TC_MIB {
class CcbptTargetDirection : public ydk::Enum
{
public:
static const yd... | 27.333333 | 61 | 0.587398 | CiscoDevNet |
de7b7bed00d7886066295bde50de83dd9e7a33cb | 2,815 | hpp | C++ | pulsar/datastore/GenericBase.hpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | pulsar/datastore/GenericBase.hpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | pulsar/datastore/GenericBase.hpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | /*! \file
*
* \brief Base class for holding generic data
*/
#pragma once
#include "pulsar/util/Serialization_fwd.hpp"
#include <bphash/Hash.hpp>
#include <memory>
namespace pulsar {
namespace detail {
/* Developer note
*
* Why not just have serialize functions and let cereal handle the
* polymorphic seri... | 26.809524 | 88 | 0.601066 | pulsar-chem |
de863c9bcce16e963f2d95a55060694a965760d8 | 730 | hh | C++ | Geant4/include/NDDRunAction.hh | leenderthayen/NDP | ffc16ccff47da53326e9a83f98b675d5db24bc59 | [
"MIT"
] | 1 | 2022-02-08T20:10:10.000Z | 2022-02-08T20:10:10.000Z | Geant4/include/NDDRunAction.hh | leenderthayen/NDP | ffc16ccff47da53326e9a83f98b675d5db24bc59 | [
"MIT"
] | null | null | null | Geant4/include/NDDRunAction.hh | leenderthayen/NDP | ffc16ccff47da53326e9a83f98b675d5db24bc59 | [
"MIT"
] | 2 | 2021-01-11T20:44:30.000Z | 2021-06-02T17:27:43.000Z | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef NDDRunAction_h
#define NDDRunAction_h 1
#include "G4UserRunAction.hh"
#include "G4String.hh"
//class NDDRunMessenger;
class NDDAnalysisManager;
cla... | 23.548387 | 80 | 0.69863 | leenderthayen |
de869e63596bf166e298a1c6737f2c83eb299e06 | 2,747 | cpp | C++ | lib/flow/GrownGrid.cpp | RemiLacroix-IDRIS/VAPOR | 33c787b6089ad845f6f989176d839e117fcdb03f | [
"BSD-3-Clause"
] | null | null | null | lib/flow/GrownGrid.cpp | RemiLacroix-IDRIS/VAPOR | 33c787b6089ad845f6f989176d839e117fcdb03f | [
"BSD-3-Clause"
] | null | null | null | lib/flow/GrownGrid.cpp | RemiLacroix-IDRIS/VAPOR | 33c787b6089ad845f6f989176d839e117fcdb03f | [
"BSD-3-Clause"
] | 1 | 2021-12-04T15:35:46.000Z | 2021-12-04T15:35:46.000Z | #include "GrownGrid.h"
using VAPoR::GrownGrid;
// Constructor
GrownGrid::GrownGrid( const VAPoR::Grid* gp, VAPoR::DataMgr* mp, float z)
: _grid2d( gp ), _dataMgr( mp ), _defaultZ( z )
{}
// Destructor
GrownGrid::~GrownGrid()
{
if( _grid2d && _dataMgr )
{
_dataMgr->UnlockGrid( _grid2d ... | 19.621429 | 87 | 0.673098 | RemiLacroix-IDRIS |
de87008313d0f53b1e0ea3dabdd0a6baef8d04f2 | 12,977 | hpp | C++ | wax/hala_noengine_structs.hpp | LIBHALA/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T16:21:42.000Z | 2021-02-25T16:21:42.000Z | wax/hala_noengine_structs.hpp | mkstoyanov/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 9 | 2020-09-03T23:31:22.000Z | 2020-10-21T23:40:11.000Z | wax/hala_noengine_structs.hpp | mkstoyanov/hala | ff3950aef18b6cede48b45669be275b174f362a5 | [
"BSD-3-Clause"
] | 2 | 2020-03-03T17:39:37.000Z | 2020-11-05T16:01:28.000Z | #ifndef __HALA_NOENGINE_STRUCTS_HPP
#define __HALA_NOENGINE_STRUCTS_HPP
/*
* Code Author: Miroslav Stoyanov
*
* Copyright (C) 2018 Miroslav Stoyanov
*
* This file is part of
* Hardware Accelerated Linear Algebra (HALA)
*
*/
#include "hala_sparse_extensions.hpp"
namespace hala{
/*!
* \internal
* \file hala... | 40.301242 | 155 | 0.720968 | LIBHALA |
de87394e6105d98162a80b0871c3279630f002c7 | 1,907 | cpp | C++ | StringToInt.cpp | vibiu/SwordOfOffer | 6daa7d108a4f043353d372e835a1f8923c933dcc | [
"BSD-3-Clause"
] | 1 | 2020-05-14T13:59:11.000Z | 2020-05-14T13:59:11.000Z | StringToInt.cpp | vibiu/SwordOfOffer | 6daa7d108a4f043353d372e835a1f8923c933dcc | [
"BSD-3-Clause"
] | null | null | null | StringToInt.cpp | vibiu/SwordOfOffer | 6daa7d108a4f043353d372e835a1f8923c933dcc | [
"BSD-3-Clause"
] | null | null | null | #include "StringToInt.h"
#include <cstdio>
int g_nStatus = kValid;
long long StrToIntCore(const char *digit, bool minus)
{
long long num = 0;
while (*digit != '\0')
{
if (*digit >= '0' && *digit <= '9')
{
int flag = minus ? -1 : 1;
num = num * 10 + flag * (*digit -... | 18.881188 | 88 | 0.497116 | vibiu |
de89cab261393b40c494907099628b1cfd1e4f51 | 7,456 | cpp | C++ | testapp/scenes/physics/shakescene.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | 6 | 2015-12-08T05:38:03.000Z | 2021-04-09T13:45:59.000Z | testapp/scenes/physics/shakescene.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | testapp/scenes/physics/shakescene.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2007 by the members of PG 510, University of Dortmund: *
* d-collide-devel@lists.sourceforge.net *
*
* Andreas Beckermann, Christian Bode, Marcel Ens, Sebastian Ens, ... | 39.659574 | 114 | 0.51301 | ColinGilbert |
de90eead59c3ab1260386bb28a3889c8ea14ee16 | 7,361 | hpp | C++ | include/System/Xml/Schema/AttributeMatchState.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Xml/Schema/AttributeMatchState.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Xml/Schema/AttributeMatchState.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "System/Enum.h... | 65.723214 | 115 | 0.776253 | v0idp |
de944d3eea1531b4035a9ddc0c78c0761e00f7bd | 8,890 | cpp | C++ | QuadGeom.cpp | cleak/VoxelPerf | 02dad67747b113a3cd38cae6a2c307f877cab068 | [
"MIT"
] | 42 | 2017-07-30T17:50:16.000Z | 2022-03-27T09:27:04.000Z | QuadGeom.cpp | cleak/VoxelPerf | 02dad67747b113a3cd38cae6a2c307f877cab068 | [
"MIT"
] | 1 | 2019-03-13T07:09:44.000Z | 2019-03-15T07:02:23.000Z | QuadGeom.cpp | cleak/VoxelPerf | 02dad67747b113a3cd38cae6a2c307f877cab068 | [
"MIT"
] | 3 | 2018-05-10T20:38:29.000Z | 2020-06-21T21:12:39.000Z | #include "QuadGeom.h"
#include <iostream>
#include <cstddef>
#include <vector>
using namespace glm;
using namespace std;
#pragma pack(push, 1)
struct PointQuad {
//vec3 position;
uint8_t x;
uint8_t y;
uint8_t z;
//uint8_t pad0;
//PackedColor color;
uint8_t r;
uint8_t g;
uint8_t ... | 28.49359 | 139 | 0.534196 | cleak |
de95e3bdaf5dec6a0c3ab2e703b95a35ed6c046e | 9,055 | hpp | C++ | include/lug/Math/Matrix.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 275 | 2016-10-08T15:33:17.000Z | 2022-03-30T06:11:56.000Z | include/lug/Math/Matrix.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 24 | 2016-09-29T20:51:20.000Z | 2018-05-09T21:41:36.000Z | include/lug/Math/Matrix.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 37 | 2017-02-25T05:03:48.000Z | 2021-05-10T19:06:29.000Z | #pragma once
#include <cstdint>
#include <valarray>
#include <lug/Math/Export.hpp>
#include <lug/Math/ValArray.hpp>
#include <lug/System/Debug.hpp>
namespace lug {
namespace Math {
template <uint8_t Rows, uint8_t Columns, typename T = float>
class Matrix {
public:
// TODO: Use custom valarray with compile time s... | 38.206751 | 142 | 0.660298 | Lugdunum3D |
de97a2e85933d99eecd9920b7cbf6585da61d37e | 469 | cpp | C++ | problems/acmicpc_1946.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_1946.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_1946.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <utility>
#include <algorithm>
using namespace std;
int main() {
int t;
scanf("%d", &t);
while(t--) {
int n;
scanf("%d", &n);
auto a = new pair<int, int>[n];
for(int i = 0; i < n; i++) {
scanf("%d%d", &a[i].first, &a[i].second);
}
sort(a, a + n);
int x = a[0].second;
in... | 17.37037 | 44 | 0.479744 | qawbecrdtey |
de99adee4df621b0bdf1bdfaaa851877f2b72aca | 6,980 | cc | C++ | src/vnsw/agent/cmn/agent_cmn.cc | sysbot/contrail-controller | 893de3e41aa7b8e40092fba4a5da34284f5ee00f | [
"Apache-2.0"
] | 1 | 2015-11-08T07:28:10.000Z | 2015-11-08T07:28:10.000Z | src/vnsw/agent/cmn/agent_cmn.cc | sysbot/contrail-controller | 893de3e41aa7b8e40092fba4a5da34284f5ee00f | [
"Apache-2.0"
] | null | null | null | src/vnsw/agent/cmn/agent_cmn.cc | sysbot/contrail-controller | 893de3e41aa7b8e40092fba4a5da34284f5ee00f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <string>
#include <vector>
#include <base/logging.h>
#include <base/lifetime.h>
#include <io/event_manager.h>
#include <cmn/agent_cmn.h>
#include "cfg/init_config.h"
#include <oper/interface.h>
#include <oper/nexthop.h>
#include <oper/mi... | 34.384236 | 92 | 0.666332 | sysbot |
de9c61d6c8b97e1eac63891e58caadc4bb079554 | 6,422 | cpp | C++ | source/os/cmd_interface_win.cpp | inmoition-depthcamera/sdk | 11f4894295475f6adc896815878fbff9f49b4480 | [
"MIT"
] | 2 | 2018-12-03T03:46:08.000Z | 2020-05-24T04:02:39.000Z | source/os/cmd_interface_win.cpp | inmoition-depthcamera/sdk | 11f4894295475f6adc896815878fbff9f49b4480 | [
"MIT"
] | 1 | 2018-09-20T03:02:35.000Z | 2018-09-30T11:10:40.000Z | source/os/cmd_interface_win.cpp | inmoition-depthcamera/sdk | 11f4894295475f6adc896815878fbff9f49b4480 | [
"MIT"
] | null | null | null | #include "cmd_interface_win.h"
#include <cctype>
#include <algorithm>
#include <SetupAPI.h>
#include <Cfgmgr32.h>
#include "tchar.h"
#pragma comment(lib, "SetupAPI.lib")
#pragma comment(lib, "Cfgmgr32.lib")
#include "iostream"
using namespace std;
CmdInterfaceWin::CmdInterfaceWin()
{
mComHandle = INVAL... | 28.166667 | 142 | 0.677048 | inmoition-depthcamera |
de9f0148e647af62dac35bb1244d9fccfc910b79 | 4,141 | cpp | C++ | src/sink/asynchronous.p.cpp | JakariaBlaine/blackhole | e340329c6e2e3166858d8466656ad12300b686bd | [
"MIT"
] | 193 | 2015-01-05T08:48:05.000Z | 2022-01-31T22:04:01.000Z | src/sink/asynchronous.p.cpp | JakariaBlaine/blackhole | e340329c6e2e3166858d8466656ad12300b686bd | [
"MIT"
] | 135 | 2015-01-13T13:02:49.000Z | 2022-01-12T15:06:48.000Z | src/sink/asynchronous.p.cpp | JakariaBlaine/blackhole | e340329c6e2e3166858d8466656ad12300b686bd | [
"MIT"
] | 40 | 2015-01-21T16:37:30.000Z | 2022-01-25T15:54:04.000Z | #include "asynchronous.hpp"
#include <cmath>
#include <condition_variable>
#include <mutex>
namespace blackhole {
inline namespace v1 {
namespace sink {
namespace {
auto exp2(std::size_t factor) -> std::size_t {
if (factor < 2 || factor > 20) {
throw std::invalid_argument("factor should fit in [2; 20] ra... | 27.243421 | 96 | 0.596474 | JakariaBlaine |
dea0a1fb9a741d9064df11dad67398c83e52d92a | 1,738 | hpp | C++ | cpp/include/cuspatial/query.hpp | taureandyernv/cuspatial | 9dc7a4b9c353167e917015b4483a980a802cb581 | [
"Apache-2.0"
] | 2 | 2020-01-30T15:10:05.000Z | 2020-07-13T04:16:42.000Z | cpp/include/cuspatial/query.hpp | taureandyernv/cuspatial | 9dc7a4b9c353167e917015b4483a980a802cb581 | [
"Apache-2.0"
] | null | null | null | cpp/include/cuspatial/query.hpp | taureandyernv/cuspatial | 9dc7a4b9c353167e917015b4483a980a802cb581 | [
"Apache-2.0"
] | 1 | 2021-02-22T08:31:00.000Z | 2021-02-22T08:31:00.000Z | /*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 39.5 | 81 | 0.607595 | taureandyernv |
dea237dfea8efa14ff17503ac74369a0fbe400a7 | 1,201 | cpp | C++ | src/reactor.cpp | vladislavmarkov/sketch | 5afed3edd0245942ed2010df1d092fc7d1ed8610 | [
"MIT"
] | null | null | null | src/reactor.cpp | vladislavmarkov/sketch | 5afed3edd0245942ed2010df1d092fc7d1ed8610 | [
"MIT"
] | null | null | null | src/reactor.cpp | vladislavmarkov/sketch | 5afed3edd0245942ed2010df1d092fc7d1ed8610 | [
"MIT"
] | null | null | null | #include <sketch/reactor.hpp>
#include <iostream>
#include <sketch/window.hpp>
namespace sk {
namespace {
void
default_on_draw(gsl::not_null<window_t*>)
{
// do nothing
std::cout << __FUNCTION__ << '\n';
}
void
default_on_quit(gsl::not_null<window_t*> window)
{
// do nothing
std::cout << __FUNCTIO... | 15.802632 | 75 | 0.665279 | vladislavmarkov |
dea5f37108a6cba34b584995d6db22083219e47c | 1,021 | cpp | C++ | damc_common/Osc/OscDynamicVariable.cpp | amurzeau/waveplay | e0fc097137138c4a6985998db502468074bf739f | [
"MIT"
] | 5 | 2021-10-02T03:01:56.000Z | 2022-01-24T20:59:19.000Z | damc_common/Osc/OscDynamicVariable.cpp | amurzeau/waveplay | e0fc097137138c4a6985998db502468074bf739f | [
"MIT"
] | null | null | null | damc_common/Osc/OscDynamicVariable.cpp | amurzeau/waveplay | e0fc097137138c4a6985998db502468074bf739f | [
"MIT"
] | null | null | null | #include "OscDynamicVariable.h"
#include <spdlog/spdlog.h>
EXPLICIT_INSTANCIATE_OSC_VARIABLE(template, OscDynamicVariable)
template<typename T>
OscDynamicVariable<T>::OscDynamicVariable(OscContainer* parent, std::string name) : OscContainer(parent, name) {}
template<typename T> std::vector<T> OscDynamicVariable<T>::... | 26.179487 | 114 | 0.728697 | amurzeau |
dea84b5648da991e302dc63bcf4d54da31307b40 | 22,928 | hpp | C++ | libraries/belle/Source/Symbols/Chord.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 47 | 2017-09-05T02:49:22.000Z | 2022-01-20T08:11:47.000Z | libraries/belle/Source/Symbols/Chord.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 106 | 2018-05-16T14:58:52.000Z | 2022-01-12T13:57:24.000Z | libraries/belle/Source/Symbols/Chord.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 11 | 2018-05-16T06:44:51.000Z | 2021-11-10T07:04:46.000Z |
/*
Copyright (c) 2007-2013 William Andrew Burnson.
Copyright (c) 2013-2020 Nicolas Danet.
*/
/* < http://opensource.org/licenses/BSD-2-Clause > */
// -----------------------------------------------------------------------------------------------------------
// ------------------------------------------... | 32.942529 | 110 | 0.371293 | jogawebb |
dea89fd398cf96bb569d0f1b2240062e33740405 | 5,710 | cpp | C++ | src/ScriptProcs/Event/Keyboard.cpp | MichaelMCE/LCDMisc | 1d2a913d62fd4d940ad95b5f8463a5f06e683427 | [
"CC-BY-4.0"
] | null | null | null | src/ScriptProcs/Event/Keyboard.cpp | MichaelMCE/LCDMisc | 1d2a913d62fd4d940ad95b5f8463a5f06e683427 | [
"CC-BY-4.0"
] | null | null | null | src/ScriptProcs/Event/Keyboard.cpp | MichaelMCE/LCDMisc | 1d2a913d62fd4d940ad95b5f8463a5f06e683427 | [
"CC-BY-4.0"
] | null | null | null | #include "../../global.h"
#include "Keyboard.h"
#include "../../Unicode.h"
#include "../../vm.h"
#include "../../Config.h"
int GetKey(ScriptValue *args) {
if (args->type == SCRIPT_LIST && args->listVal->numVals) {
if (args->listVal->vals[0].type == SCRIPT_STRING) {
if (args->listVal->vals[0].stringVal->len) {
... | 25.605381 | 86 | 0.605954 | MichaelMCE |
deac547ad73748c5e87d2125b7fc3a022d4576e1 | 2,699 | cpp | C++ | src/T56_memoryManager/T56_memoryManager.cpp | RemiMattheyDoret/SimBit | ed0e64c0abb97c6c889bc0adeec1277cbc6cbe43 | [
"MIT"
] | 11 | 2017-06-06T23:02:48.000Z | 2021-08-17T20:13:05.000Z | src/T56_memoryManager/T56_memoryManager.cpp | RemiMattheyDoret/SimBit | ed0e64c0abb97c6c889bc0adeec1277cbc6cbe43 | [
"MIT"
] | 1 | 2017-06-06T23:08:05.000Z | 2017-06-07T09:28:08.000Z | src/T56_memoryManager/T56_memoryManager.cpp | RemiMattheyDoret/SimBit | ed0e64c0abb97c6c889bc0adeec1277cbc6cbe43 | [
"MIT"
] | null | null | null | void T56_memoryManager::doStuff(Haplotype& haplo)
{
auto& ntrl = haplo.T5ntrl_Alleles;
auto& sel = haplo.T5sel_Alleles;
/////////////////
// Record info //
/////////////////
if (shouldRecordInfo)
{
if (SSP->Gmap.T5ntrl_nbLoci && ntrl.size() > maxNtrlSizeLastGeneration)
m... | 31.022989 | 160 | 0.537607 | RemiMattheyDoret |
deb1711bc6acdcc92c3b6744d3b87893624f5c61 | 1,291 | cc | C++ | auxil/binpac/src/pac_enum.cc | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | 1 | 2021-03-06T19:51:07.000Z | 2021-03-06T19:51:07.000Z | auxil/binpac/src/pac_enum.cc | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | null | null | null | auxil/binpac/src/pac_enum.cc | hugolin615/zeek-4.0.0-ele420520-spring2021 | 258e9b2ee1f2a4bd45c6332a75304793b7d44d40 | [
"Apache-2.0"
] | null | null | null | #include "pac_exception.h"
#include "pac_enum.h"
#include "pac_expr.h"
#include "pac_exttype.h"
#include "pac_output.h"
#include "pac_typedecl.h"
Enum::Enum(ID* id, Expr* expr)
: id_(id), expr_(expr)
{
}
Enum::~Enum()
{
delete id_;
delete expr_;
}
void Enum::GenHeader(Output* out_h, int *pval)
{
ASSERT(pval... | 18.183099 | 59 | 0.643687 | hugolin615 |
deb6cfa20098fe6465e4cf57c429b2ae34bba38f | 891 | cpp | C++ | Source/ModularGameplayActors/Private/ModularAIController.cpp | TheEmidee/UEModularGameplayActors | 9f87c2e4a418f90a2735c823ccb94e43a7721aaf | [
"MIT"
] | 1 | 2022-02-16T10:44:28.000Z | 2022-02-16T10:44:28.000Z | Source/ModularGameplayActors/Private/ModularAIController.cpp | TheEmidee/UEModularGameplayActors | 9f87c2e4a418f90a2735c823ccb94e43a7721aaf | [
"MIT"
] | null | null | null | Source/ModularGameplayActors/Private/ModularAIController.cpp | TheEmidee/UEModularGameplayActors | 9f87c2e4a418f90a2735c823ccb94e43a7721aaf | [
"MIT"
] | null | null | null | #include "ModularAIController.h"
#include <Components/GameFrameworkComponentManager.h>
void AModularAIController::PreInitializeComponents()
{
Super::PreInitializeComponents();
if ( auto * gi = GetGameInstance() )
{
if ( auto * system = gi->GetSubsystem< UGameFrameworkComponentManager >(... | 27 | 139 | 0.67789 | TheEmidee |
6312197b3a45d40f0d3df1d3f1156ab513b3d9ce | 1,307 | hpp | C++ | include/oxu/beatmap/components/slider.hpp | oda404/oxu | 5df4755f796be976bed767cd889a2e71ed867f9b | [
"MIT"
] | null | null | null | include/oxu/beatmap/components/slider.hpp | oda404/oxu | 5df4755f796be976bed767cd889a2e71ed867f9b | [
"MIT"
] | null | null | null | include/oxu/beatmap/components/slider.hpp | oda404/oxu | 5df4755f796be976bed767cd889a2e71ed867f9b | [
"MIT"
] | null | null | null | #pragma once
#include<cstdint>
#include<vector>
#include<oxu/beatmap/sections/difficulty.hpp>
#include<oxu/beatmap/components/hitCircle.hpp>
#include<oxu/framework/utils/vector2.hpp>
namespace oxu
{
enum class SliderCurveType
{
LINEAR = 0,
BEZIER = 1,
CIRCLE = 2
};
struct Sli... | 26.14 | 115 | 0.644989 | oda404 |
631312d7b2678ed172f6f3ae98d26fe6dc006e13 | 326 | cpp | C++ | symbolinen_konekieli/Ratol_msdos/proj3/h53paa.cpp | tkukka/VariousContent | f7e7ae98ff8521c6c709dabe30855104afe3fe04 | [
"MIT"
] | null | null | null | symbolinen_konekieli/Ratol_msdos/proj3/h53paa.cpp | tkukka/VariousContent | f7e7ae98ff8521c6c709dabe30855104afe3fe04 | [
"MIT"
] | null | null | null | symbolinen_konekieli/Ratol_msdos/proj3/h53paa.cpp | tkukka/VariousContent | f7e7ae98ff8521c6c709dabe30855104afe3fe04 | [
"MIT"
] | null | null | null | //RaTol Symbolinen konekieli: Harjoitus 5, tehtävä 3
//Tero Kukka IY96A
//Tiedosto: h53paa.cpp
//Luotu: 25.4.1998
#include <constrea.h>
#include "header.h"
int main(void)
{
int taulu[100], lkm;
lkm = Lue(taulu, 100);
lajittele(taulu, lkm);
Tulosta(taulu, lkm);
return ... | 15.52381 | 60 | 0.592025 | tkukka |
631322d8229d61cf4bc8806c6550bc0689b4b3ff | 543 | hpp | C++ | Source/ThirdParty/tracy/server/TracySort.hpp | ValtoGameEngines/RBFX-Engine | f96fbeaea3a7c7a62d4bc430dc3dd4eff19ec086 | [
"MIT"
] | 1 | 2021-01-09T14:42:48.000Z | 2021-01-09T14:42:48.000Z | Source/ThirdParty/tracy/server/TracySort.hpp | ValtoGameEngines/RBFX-Engine | f96fbeaea3a7c7a62d4bc430dc3dd4eff19ec086 | [
"MIT"
] | null | null | null | Source/ThirdParty/tracy/server/TracySort.hpp | ValtoGameEngines/RBFX-Engine | f96fbeaea3a7c7a62d4bc430dc3dd4eff19ec086 | [
"MIT"
] | 1 | 2020-06-29T08:05:12.000Z | 2020-06-29T08:05:12.000Z | #ifndef __TRACYSORT_HPP__
#define __TRACYSORT_HPP__
#ifdef TRACY_NO_PARALLEL_ALGORITHMS // rbfx: Need a way to disable use of tbb. It is broken on any version of clang on ubuntu 18.04 (2020-02-20).
# define NO_PARALLEL_SORT
#elif ( defined _MSC_VER && _MSVC_LANG >= 201703L ) || __cplusplus >= 201703L
# if __has_incl... | 23.608696 | 145 | 0.742173 | ValtoGameEngines |
63160e547d733a2c8efac6c5f63f11d195f041f2 | 1,511 | hpp | C++ | include/managers/state_manager.hpp | zedrex/algosketch | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 16 | 2021-03-27T06:20:42.000Z | 2022-03-31T16:30:37.000Z | include/managers/state_manager.hpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 1 | 2021-07-13T07:57:41.000Z | 2021-07-13T07:57:41.000Z | include/managers/state_manager.hpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 3 | 2021-04-03T02:58:56.000Z | 2021-06-04T18:23:49.000Z | #pragma once
#include <iostream>
#include <managers/window_manager.hpp>
#include <managers/event_manager.hpp>
#include <managers/resource_manager.hpp>
class State;
enum class Action
{
ChangeToMainMenu,
ChangeToNewSketchMenu,
ChangeToLoadSketchMenu,
ChangeToHelpMenu,
ChangeToCreditsMenu,
Quit... | 19.881579 | 142 | 0.731304 | zedrex |
6319d76c16f2570a4f6e5a180ba9cdb8682a5e56 | 9,305 | hpp | C++ | include/standardese/cpp_function.hpp | Manu343726/standardese | 0f7d997f0141b63795b2585397e97973c54c2bbc | [
"MIT"
] | null | null | null | include/standardese/cpp_function.hpp | Manu343726/standardese | 0f7d997f0141b63795b2585397e97973c54c2bbc | [
"MIT"
] | null | null | null | include/standardese/cpp_function.hpp | Manu343726/standardese | 0f7d997f0141b63795b2585397e97973c54c2bbc | [
"MIT"
] | 1 | 2018-09-03T05:44:25.000Z | 2018-09-03T05:44:25.000Z | // Copyright (C) 2016 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef STANDARDESE_CPP_FUNCTION_HPP_INCLUDED
#define STANDARDESE_CPP_FUNCTION_HPP_INCLUDED
#include <string>
#include <stan... | 28.897516 | 103 | 0.616443 | Manu343726 |
63204c5730e690db4ecfa8622777acef7b5707d1 | 4,138 | cpp | C++ | src/util/Screenshotter.cpp | dat14jpe/mulen | 33beeb8a38e5556ddd44efba909e18aab9a3d401 | [
"MIT"
] | 5 | 2020-01-15T12:49:45.000Z | 2021-11-24T05:15:59.000Z | src/util/Screenshotter.cpp | dat14jpe/mulen | 33beeb8a38e5556ddd44efba909e18aab9a3d401 | [
"MIT"
] | null | null | null | src/util/Screenshotter.cpp | dat14jpe/mulen | 33beeb8a38e5556ddd44efba909e18aab9a3d401 | [
"MIT"
] | null | null | null | #include "Screenshotter.hpp"
#include "GLObject.hpp"
#include "lodepng.h"
#include <iostream>
namespace Util {
Screenshotter::Screenshotter()
: thread{ &Screenshotter::Thread, this }
{
}
Screenshotter::~Screenshotter()
{
{
std::lock_guard<std::mutex> lk(m);
... | 34.483333 | 145 | 0.545191 | dat14jpe |
63230a259fe05b0d4ae620550ca29fcd2de20843 | 313 | cpp | C++ | src/mainApp.cpp | ChayanonPitak/Uics | 0d78f57adcb779aebced8088057555be7def78dc | [
"MIT"
] | 1 | 2021-03-14T07:25:40.000Z | 2021-03-14T07:25:40.000Z | src/mainApp.cpp | ChayanonPitak/Uics | 0d78f57adcb779aebced8088057555be7def78dc | [
"MIT"
] | 13 | 2021-02-21T14:53:19.000Z | 2021-03-18T15:52:51.000Z | src/mainApp.cpp | ChayanonPitak/Uics | 0d78f57adcb779aebced8088057555be7def78dc | [
"MIT"
] | 1 | 2021-07-03T04:36:04.000Z | 2021-07-03T04:36:04.000Z | #include "mainApp.h"
#include "mainFrame.h"
#include <wx/wxprec.h>
wxIMPLEMENT_APP(mainApp);
bool mainApp::OnInit()
{
wxInitAllImageHandlers();
mainFrame* _mainFrame = new mainFrame();
_mainFrame->SetIcons(wxIconBundle("..\\resources\\icon.png", wxBITMAP_TYPE_PNG));
_mainFrame->Show(true);
return true;
} | 20.866667 | 82 | 0.738019 | ChayanonPitak |
63230eb064852458e2ae1afa5b139f4557eedace | 898 | cpp | C++ | src/main.cpp | jklee95/PBDEnergyProjection | 8608e2428d1e84fe129c28b1410940d6c66f85bb | [
"MIT"
] | 1 | 2022-01-25T07:26:24.000Z | 2022-01-25T07:26:24.000Z | src/main.cpp | jklee95/PBDEnergyProjection | 8608e2428d1e84fe129c28b1410940d6c66f85bb | [
"MIT"
] | null | null | null | src/main.cpp | jklee95/PBDEnergyProjection | 8608e2428d1e84fe129c28b1410940d6c66f85bb | [
"MIT"
] | null | null | null | #pragma once
// Console window is displayed in debug mode.
#ifdef _DEBUG
#pragma comment(linker, "/entry:WinMainCRTStartup /subsystem:console")
#endif
#include "SimulationManager.h" // This includes Win32App.h
using namespace DXViewer::xmint3;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, PSTR cmd... | 28.0625 | 90 | 0.694878 | jklee95 |
63231d3bb143da4450b56d8fa900de2afac244f3 | 4,080 | cc | C++ | tests/libport/containers.cc | jcbaillie/libport | b8192b177ae0ae63979c17ea7685a8617b03e11f | [
"BSD-3-Clause"
] | 3 | 2015-05-29T09:35:32.000Z | 2021-02-23T07:45:01.000Z | tests/libport/containers.cc | jcbaillie/libport | b8192b177ae0ae63979c17ea7685a8617b03e11f | [
"BSD-3-Clause"
] | 2 | 2019-01-31T10:23:47.000Z | 2019-01-31T10:35:06.000Z | tests/libport/containers.cc | jcbaillie/libport | b8192b177ae0ae63979c17ea7685a8617b03e11f | [
"BSD-3-Clause"
] | 7 | 2015-01-29T20:49:06.000Z | 2019-04-24T04:06:22.000Z | /*
* Copyright (C) 2009-2011, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <libport/container... | 27.2 | 73 | 0.706127 | jcbaillie |
632435e2806fcbfa4fc92254289c0fee4a01762b | 5,269 | hpp | C++ | include/base_pxfoundations/foundation/PsSortInternals.hpp | DeanoC/base_pxfoundations | 8150e24a606b184781bf1552e09f17c03e67e501 | [
"BSD-3-Clause"
] | null | null | null | include/base_pxfoundations/foundation/PsSortInternals.hpp | DeanoC/base_pxfoundations | 8150e24a606b184781bf1552e09f17c03e67e501 | [
"BSD-3-Clause"
] | null | null | null | include/base_pxfoundations/foundation/PsSortInternals.hpp | DeanoC/base_pxfoundations | 8150e24a606b184781bf1552e09f17c03e67e501 | [
"BSD-3-Clause"
] | null | null | null | //
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... | 27.442708 | 102 | 0.719681 | DeanoC |
632a1a8bdb863989ef53c67fc4cbb70db70f285c | 928 | cc | C++ | third_party/NNPACK/test/max-pooling-output/vgg-a.cc | gautamkmr/caffe2 | cde7f21d1e34ec714bc08dbfab945a1ad30e92ff | [
"MIT"
] | 1,695 | 2016-03-24T18:37:49.000Z | 2022-03-21T19:18:13.000Z | third_party/NNPACK/test/max-pooling-output/vgg-a.cc | gautamkmr/caffe2 | cde7f21d1e34ec714bc08dbfab945a1ad30e92ff | [
"MIT"
] | 200 | 2016-03-24T18:50:49.000Z | 2022-01-08T21:15:43.000Z | third_party/NNPACK/test/max-pooling-output/vgg-a.cc | gautamkmr/caffe2 | cde7f21d1e34ec714bc08dbfab945a1ad30e92ff | [
"MIT"
] | 355 | 2016-03-24T19:09:37.000Z | 2022-02-14T09:58:32.000Z | #include <gtest/gtest.h>
#include <nnpack.h>
#include <testers/pooling.h>
#include <models/vgg-a.h>
/*
* VGG model A pool1 layer
*/
TEST(MaxPooling2x2, pool1) {
VGG_A::pool1()
.batchSize(64)
.testOutput();
}
/*
* VGG model A pool2 layer
*/
TEST(MaxPooling2x2, pool2) {
VGG_A::pool2()
.batchSize(64)
.... | 14.276923 | 54 | 0.65194 | gautamkmr |
632a58b26141bab2df1347a041a015b87ccb8009 | 3,764 | cpp | C++ | tests/libcxx/ctor.brace-init.cpp | clayne/tight_pair | 1ba432f8130ee24698486569bb66f31b04d448e5 | [
"MIT"
] | 20 | 2017-10-19T23:30:52.000Z | 2021-12-23T06:00:21.000Z | tests/libcxx/ctor.brace-init.cpp | clayne/tight_pair | 1ba432f8130ee24698486569bb66f31b04d448e5 | [
"MIT"
] | 15 | 2018-12-05T03:46:53.000Z | 2021-09-11T11:36:29.000Z | tests/libcxx/ctor.brace-init.cpp | clayne/tight_pair | 1ba432f8130ee24698486569bb66f31b04d448e5 | [
"MIT"
] | 4 | 2018-12-06T02:33:00.000Z | 2020-08-01T05:35:34.000Z | /*
* Copyright (c) 2021 Morwenn
* SPDX-License-Identifier: MIT
*/
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifi... | 33.309735 | 120 | 0.593252 | clayne |
632adab311863609d20723efe439dc8030fa0e2e | 27,707 | cc | C++ | chrome/renderer/render_thread.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | chrome/renderer/render_thread.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | chrome/renderer/render_thread.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2009 The Chromium 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 "chrome/renderer/render_thread.h"
#include <v8.h>
#include <algorithm>
#include <map>
#include <vector>
#if defined(USE_SYSTEM_SQLITE)
#in... | 37.290713 | 89 | 0.751976 | rwatson |
632dce8665923163268a3209671695bfc84a2064 | 448 | cc | C++ | Semaphore.cc | mjhough/shopify-scraper | eeddd252881bd0d53eae0ab67c98d5f871f10dff | [
"MIT"
] | 2 | 2020-02-22T09:28:31.000Z | 2020-08-27T12:26:35.000Z | Semaphore.cc | mjhough/shopify-scraper | eeddd252881bd0d53eae0ab67c98d5f871f10dff | [
"MIT"
] | null | null | null | Semaphore.cc | mjhough/shopify-scraper | eeddd252881bd0d53eae0ab67c98d5f871f10dff | [
"MIT"
] | 1 | 2022-01-25T07:15:23.000Z | 2022-01-25T07:15:23.000Z | #include "Semaphore.h"
Semaphore::Semaphore(int count) {
this->count = count;
}
void Semaphore::post() {
std::unique_lock<std::mutex> lock(mtx);
count++;
cv.notify_one();
}
void Semaphore::wait() {
std::unique_lock<std::mutex> lock(mtx);
while(count == 0) {
cv.wait(lock);
}
count--;
}
bool Semap... | 15.448276 | 41 | 0.613839 | mjhough |
63306eab4231ddadc694dd8465a9771f2e866cdf | 2,928 | cpp | C++ | Button.cpp | alejandrocoria/MinerDisplay | e333c0d352965edf0d98024db254384e1f553314 | [
"MIT"
] | null | null | null | Button.cpp | alejandrocoria/MinerDisplay | e333c0d352965edf0d98024db254384e1f553314 | [
"MIT"
] | null | null | null | Button.cpp | alejandrocoria/MinerDisplay | e333c0d352965edf0d98024db254384e1f553314 | [
"MIT"
] | null | null | null | #include "Button.h"
#include <SFML/Graphics/RenderTarget.hpp>
#include <cmath>
Button::Button(const sf::Font* font):
font(font) {
text.setCharacterSize(16);
text.setFont(*font);
}
void Button::processEvents(const sf::Event& event) {
switch (event.type) {
case sf::Event::MouseButtonPressed:
... | 26.378378 | 115 | 0.557036 | alejandrocoria |
6333522daaeb66929f021a8c92aa2286f05b56a5 | 744 | cpp | C++ | July LeetCode Challenge/Day_22.cpp | mishrraG/100DaysOfCode | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 13 | 2020-08-10T14:06:37.000Z | 2020-09-24T14:21:33.000Z | July LeetCode Challenge/Day_22.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | null | null | null | July LeetCode Challenge/Day_22.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 1 | 2020-05-31T21:09:14.000Z | 2020-05-31T21:09:14.000Z | class Solution {
public:
vector<vector<int> > zigzagLevelOrder(TreeNode* root) {
if (root == NULL) {
return vector<vector<int> > ();
}
vector<vector<int> > result;
queue<TreeNode*> nodesQueue;
nodesQueue.push(root);
bool leftToRight = true;
while ( !nodesQueue.empty()) {
int size = nodesQueue.siz... | 22.545455 | 56 | 0.596774 | mishrraG |
6333c0855bd17963f575ef2fcc52a098d99449a3 | 6,809 | cpp | C++ | interval_shim.cpp | zaimoni/Iskandria | b056d2ba359b814db02aab42eba8d5f7f5ca7a1a | [
"BSL-1.0"
] | 2 | 2019-11-23T12:35:49.000Z | 2022-02-10T08:27:54.000Z | interval_shim.cpp | zaimoni/Iskandria | b056d2ba359b814db02aab42eba8d5f7f5ca7a1a | [
"BSL-1.0"
] | 8 | 2019-11-15T08:13:48.000Z | 2020-04-29T00:35:42.000Z | interval_shim.cpp | zaimoni/Iskandria | b056d2ba359b814db02aab42eba8d5f7f5ca7a1a | [
"BSL-1.0"
] | null | null | null | #include "interval_shim.hpp"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#include "test_driver.h"
int main(int argc, char* argv[])
{ // parse options
char buf[100];
STRING_LITERAL_TO_STDOUT("starting main\n");
const interval_shim::interval ref_pi(M_PI, nextafter(M_PI, 4)); // CRC Handb... | 36.026455 | 148 | 0.689382 | zaimoni |
63353bcc292e4c3ab006782fb536e8cb6f3b157f | 196,967 | cpp | C++ | source/D2Common/src/Items/Items.cpp | raumuongluoc/D2MOO | 169de1bd24151cda4c654ef0f8027896a14552ec | [
"MIT"
] | 1 | 2022-03-20T12:12:15.000Z | 2022-03-20T12:12:15.000Z | source/D2Common/src/Items/Items.cpp | raumuongluoc/D2MOO | 169de1bd24151cda4c654ef0f8027896a14552ec | [
"MIT"
] | null | null | null | source/D2Common/src/Items/Items.cpp | raumuongluoc/D2MOO | 169de1bd24151cda4c654ef0f8027896a14552ec | [
"MIT"
] | 1 | 2022-03-20T12:12:18.000Z | 2022-03-20T12:12:18.000Z | #include "D2Items.h"
#include <Units/Item.h>
#include "D2BitManip.h"
#include "D2Composit.h"
#include "D2DataTbls.h"
#include "D2Inventory.h"
#include "D2ItemMods.h"
#include "D2QuestRecord.h"
#include "D2Seed.h"
#include "D2States.h"
#include "D2StatList.h"
#include "Units/Units.h"
#include <D2CMP.h>
#include <DataTbl... | 25.696934 | 232 | 0.702981 | raumuongluoc |
6335d7f36b845fd556117015a46314f05aeccb04 | 440 | cc | C++ | lib/lf/base/lf_assert.cc | Pascal-So/lehrfempp | e2716e914169eec7ee59e822ea3ab303143eacd1 | [
"MIT"
] | null | null | null | lib/lf/base/lf_assert.cc | Pascal-So/lehrfempp | e2716e914169eec7ee59e822ea3ab303143eacd1 | [
"MIT"
] | null | null | null | lib/lf/base/lf_assert.cc | Pascal-So/lehrfempp | e2716e914169eec7ee59e822ea3ab303143eacd1 | [
"MIT"
] | null | null | null | /** @file lf_assert.cc */
#include "lf_assert.h"
#include <iostream>
namespace lf::base {
// Output for assertions
void AssertionFailed(const std::string& expr, const std::string& file, int line,
const std::string& msg) {
std::cerr << "***** Internal Program Error - assertion (" << expr
... | 25.882353 | 80 | 0.552273 | Pascal-So |
63365c091173ab941fac5cf8a42e8a1fb9a587e9 | 11,052 | hxx | C++ | tests/testing_factor_node_unsym.hxx | tasseff/SyLVER | 35cb652ece05447ddf12e530e97428078446eaf4 | [
"BSD-3-Clause"
] | 9 | 2019-07-02T12:46:22.000Z | 2021-07-08T11:54:46.000Z | tests/testing_factor_node_unsym.hxx | tasseff/SyLVER | 35cb652ece05447ddf12e530e97428078446eaf4 | [
"BSD-3-Clause"
] | 2 | 2020-03-23T22:55:52.000Z | 2020-03-24T11:15:16.000Z | tests/testing_factor_node_unsym.hxx | tasseff/SyLVER | 35cb652ece05447ddf12e530e97428078446eaf4 | [
"BSD-3-Clause"
] | 5 | 2019-06-10T11:11:14.000Z | 2020-03-22T02:38:12.000Z | #pragma once
// SpLDLT
#include "SymbolicFront.hxx"
#include "NumericFront.hxx"
#include "factor_unsym.hxx"
#include "kernels/lu_nopiv.hxx"
#include "sylver_ciface.hxx"
// SSIDS
#include "ssids/cpu/cpu_iface.hxx"
namespace sylver {
namespace splu {
namespace tests {
/// @param T working precision
/// ... | 32.795252 | 92 | 0.491857 | tasseff |
6336af14cb080015d674299c2b778c6597206349 | 692 | cpp | C++ | Arrays & Strings/BreakWords.cpp | tanmayagarwal06/CompetitiveProgramming | ce1df2dbe829a0babfb18e65beee8604eb80915c | [
"MIT"
] | null | null | null | Arrays & Strings/BreakWords.cpp | tanmayagarwal06/CompetitiveProgramming | ce1df2dbe829a0babfb18e65beee8604eb80915c | [
"MIT"
] | null | null | null | Arrays & Strings/BreakWords.cpp | tanmayagarwal06/CompetitiveProgramming | ce1df2dbe829a0babfb18e65beee8604eb80915c | [
"MIT"
] | 3 | 2020-10-06T02:57:41.000Z | 2020-10-20T06:54:04.000Z | #include<iostream>
#include<string.h>
using namespace std;
void breakWords(char* S)
{
int j = 0;
int count = 0;
int i = 0;
int n = strlen(S);
while(i<=n){
n = strlen(S);
j = i;
while(S[i] != ' ' || S[i] != '\0'){
i++;
}
count = i-j... | 16.878049 | 44 | 0.348266 | tanmayagarwal06 |
6336bff2c15bf517640b3ca2e8bf426c31964250 | 425 | cpp | C++ | 0001.TwoSum/main.cpp | SumanSudhir/LeetCode | cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6 | [
"MIT"
] | 1 | 2020-01-13T11:10:35.000Z | 2020-01-13T11:10:35.000Z | 0001.TwoSum/main.cpp | SumanSudhir/LeetCode | cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6 | [
"MIT"
] | 4 | 2020-01-01T09:47:39.000Z | 2020-04-08T08:34:29.000Z | 0001.TwoSum/main.cpp | SumanSudhir/LeetCode | cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
vector<int> out;
for(int i=0;i<nums.size()-1;i++){
for(int j = i+1;j<nums.size();j++){
if((nums[i] + nums[j]) == target){
out.push_back(i);
out.push_bac... | 20.238095 | 55 | 0.385882 | SumanSudhir |
633812fca97251f92e2181fe6fb38e5394c4015c | 453 | cpp | C++ | android/EuhatExpert/app/src/main/cpp/macHdd.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | android/EuhatExpert/app/src/main/cpp/macHdd.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | android/EuhatExpert/app/src/main/cpp/macHdd.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | #include "macHdd.h"
#include <common/OpCommon.h>
#include <common/WhCommon.h>
#define INI_SECTION_LOCAL "local"
int isMacHddChanged(DbOpIni &ini, const char *mac)
{
string macsOld = ini.readStr(INI_SECTION_LOCAL, "mac");
if (macsOld.empty())
{
ini.write(INI_SECTION_LOCAL, "mac", mac);
ret... | 19.695652 | 59 | 0.613687 | euhat |
6338c7e8c42fc5400a25449a33d690cf9f59cc55 | 8,304 | cpp | C++ | src/retroplug/luawrapper/Common.cpp | fossabot/RetroPlug | 5a39379bd10d2e2c0b13a0850380db4d5a58cdd3 | [
"MIT"
] | 186 | 2019-05-14T15:15:33.000Z | 2022-03-21T22:27:10.000Z | src/retroplug/luawrapper/Common.cpp | fossabot/RetroPlug | 5a39379bd10d2e2c0b13a0850380db4d5a58cdd3 | [
"MIT"
] | 24 | 2019-05-14T14:27:24.000Z | 2022-02-17T19:23:19.000Z | src/retroplug/luawrapper/Common.cpp | fossabot/RetroPlug | 5a39379bd10d2e2c0b13a0850380db4d5a58cdd3 | [
"MIT"
] | 9 | 2019-05-17T08:24:42.000Z | 2021-11-14T12:00:11.000Z | #include "Wrappers.h"
#include <sol/sol.hpp>
#include <iPlug2/IPlug/IPlugConstants.h>
#include "platform/Logger.h"
#include "model/Project.h"
#include "config.h"
#include "platform/Menu.h"
#include "model/ButtonStream.h"
#include "platform/FileDialog.h"
#include "platform/Os.h"
bool isNullPtr(const sol::object o) {
... | 33.349398 | 179 | 0.710983 | fossabot |
633b0d506075e1dfce4c71be4bf01f93c08ec35f | 7,411 | cpp | C++ | src/BldRecons/SPB2BP/ConvertGrid.cpp | liuxinren/UrbanReconstruction | 079d9b0c9089aa9cdb15d31d76155e50a5e72f00 | [
"MIT"
] | 94 | 2017-07-20T05:32:07.000Z | 2022-03-02T03:38:54.000Z | src/BldRecons/SPB2BP/ConvertGrid.cpp | GucciPrada/UrbanReconstruction | 8b058349fd860ea9029623a92d705dd93a4e4878 | [
"MIT"
] | 3 | 2017-09-12T00:07:05.000Z | 2020-03-08T21:12:36.000Z | src/BldRecons/SPB2BP/ConvertGrid.cpp | GucciPrada/UrbanReconstruction | 8b058349fd860ea9029623a92d705dd93a4e4878 | [
"MIT"
] | 38 | 2017-07-25T06:00:52.000Z | 2022-03-19T10:01:06.000Z | #include "StdAfx.h"
#include "ConvertGrid.h"
#include "ParamManager.h"
#include "Miscs\TimeMeter.h"
CConvertGrid::CConvertGrid(void)
{
}
CConvertGrid::~CConvertGrid(void)
{
}
void CConvertGrid::Convert()
{
CParamManager * manager = CParamManager::GetParamManager();
CTimeMeter timer;
timer.Start();
fprintf_s( st... | 23.378549 | 134 | 0.622048 | liuxinren |
633bf75ea0674cf4e9ceab5fd13be62ffbc0d4fa | 433 | hpp | C++ | include/particle-system/core/emptyattractor.hpp | semitro/Particle-system | f29e4f6d45132f98b3089f39e0d6c76a1bd63e86 | [
"MIT"
] | null | null | null | include/particle-system/core/emptyattractor.hpp | semitro/Particle-system | f29e4f6d45132f98b3089f39e0d6c76a1bd63e86 | [
"MIT"
] | null | null | null | include/particle-system/core/emptyattractor.hpp | semitro/Particle-system | f29e4f6d45132f98b3089f39e0d6c76a1bd63e86 | [
"MIT"
] | null | null | null | #ifndef EMTPY_ATTRACTOR_HPP
#define EMPTY_ATTRACTOR_HPP
#include "particle-system/core/particle.hpp"
#include "particle-system/core/attractor.hpp"
#include <vector>
#include <cstdlib>
using std::vector;
class EmptyAttractor : public Attractor
{
public:
EmptyAttractor():Attractor(0, 0){}
virtual ~EmptyAttractor(){}... | 20.619048 | 50 | 0.762125 | semitro |
6342a63a5a2c6a869687ad8acb3085a1f4174e46 | 9,579 | cpp | C++ | tests/unittest/test_hetercallbacklist_basic.cpp | digital-stage/eventpp | a0978f91f9d74a5943ed668b3fe15d64b0675b5c | [
"Apache-2.0"
] | 685 | 2018-05-13T03:59:19.000Z | 2022-03-31T22:43:43.000Z | tests/unittest/test_hetercallbacklist_basic.cpp | digital-stage/eventpp | a0978f91f9d74a5943ed668b3fe15d64b0675b5c | [
"Apache-2.0"
] | 32 | 2018-06-01T03:15:13.000Z | 2022-01-18T09:23:06.000Z | tests/unittest/test_hetercallbacklist_basic.cpp | digital-stage/eventpp | a0978f91f9d74a5943ed668b3fe15d64b0675b5c | [
"Apache-2.0"
] | 128 | 2018-05-13T06:41:58.000Z | 2022-03-30T16:58:10.000Z | // eventpp library
// Copyright (C) 2018 Wang Qi (wqking)
// Github: https://github.com/wqking/eventpp
// 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/LIC... | 25.408488 | 114 | 0.649024 | digital-stage |
6345730d11666a9992159533a2677a96ed7e8752 | 347 | cpp | C++ | TrainingWithBook/JumpingBinarySearch.cpp | andzh1/Competitive-programming | babb9494e03fe0feb2130e50887996d0ffc92c4e | [
"MIT"
] | null | null | null | TrainingWithBook/JumpingBinarySearch.cpp | andzh1/Competitive-programming | babb9494e03fe0feb2130e50887996d0ffc92c4e | [
"MIT"
] | null | null | null | TrainingWithBook/JumpingBinarySearch.cpp | andzh1/Competitive-programming | babb9494e03fe0feb2130e50887996d0ffc92c4e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define loop(a,b) for(int i = a; i < b; i++)
int main(){
int n = 5, wanted = 5;
int array[] = {1,2,3,4,5};
int k = 0;
for(int b = n/2; b >= 1; b /= 2){
while(k + b < n && array[k+b] <= wanted) k += b;
}
if(array[k] == wanted){
//we... | 20.411765 | 56 | 0.458213 | andzh1 |
63489ad56bf0b0d5a22c5bbb6c18274404087dd7 | 2,306 | cpp | C++ | STM32F1/libraries/MakeArduino_Examples/examples/MakeArduino_F103Rx_UsbCardReader/app_usb_mass.cpp | iamdev/MakeArduino_STM32 | 3dba2f132082d63cdbb318ba0fcc1df6d382227a | [
"Unlicense"
] | null | null | null | STM32F1/libraries/MakeArduino_Examples/examples/MakeArduino_F103Rx_UsbCardReader/app_usb_mass.cpp | iamdev/MakeArduino_STM32 | 3dba2f132082d63cdbb318ba0fcc1df6d382227a | [
"Unlicense"
] | null | null | null | STM32F1/libraries/MakeArduino_Examples/examples/MakeArduino_F103Rx_UsbCardReader/app_usb_mass.cpp | iamdev/MakeArduino_STM32 | 3dba2f132082d63cdbb318ba0fcc1df6d382227a | [
"Unlicense"
] | null | null | null | #include "app_usb_mass.h"
#include "app_sdfat.h"
#define DEBUG_READ_WRITE 0
bool sd_write_buffer(uint32_t memoryOffset, const uint8_t *writebuff, uint16_t transferLength)
{
digitalWrite(LED_BUILTIN,LOW);
#if SERIAL_DEBUG >0 && DEBUG_SD_INFO > 0 && DEBUG_READ_WRITE > 0
Serial.print("Write [0x");
Serial.print(... | 26.813953 | 95 | 0.691674 | iamdev |
634c5a28e779a93d5770eaecfa8fbc46d2f4cad5 | 3,852 | cpp | C++ | src/skylines_engine/queries/algorithms/single_thread_sorting.cpp | gggprojects/skylines | 1b0d204f1fbb8e24af026723ba9887988798c974 | [
"MIT"
] | null | null | null | src/skylines_engine/queries/algorithms/single_thread_sorting.cpp | gggprojects/skylines | 1b0d204f1fbb8e24af026723ba9887988798c974 | [
"MIT"
] | null | null | null | src/skylines_engine/queries/algorithms/single_thread_sorting.cpp | gggprojects/skylines | 1b0d204f1fbb8e24af026723ba9887988798c974 | [
"MIT"
] | 1 | 2018-08-31T15:53:36.000Z | 2018-08-31T15:53:36.000Z | #include <iostream>
#include "queries/algorithms/single_thread_sorting.hpp"
#include "common/time.hpp"
namespace sl { namespace queries { namespace algorithms {
data::Statistics SingleThreadSorting::Run(NonConstData<data::WeightedPoint> *output, DistanceType distance_type) {
if (!Init(output)) return data... | 43.280899 | 167 | 0.631101 | gggprojects |
634d33823e408bf68ace8adaac3ef32e177f3b99 | 3,059 | cpp | C++ | fboss/agent/hw/bcm/tests/BcmVlanTests.cpp | dendisuhubdy/fboss | 89deb9468f647f2a56da55c7ed8f36e7e1151b4e | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/hw/bcm/tests/BcmVlanTests.cpp | dendisuhubdy/fboss | 89deb9468f647f2a56da55c7ed8f36e7e1151b4e | [
"BSD-3-Clause"
] | null | null | null | fboss/agent/hw/bcm/tests/BcmVlanTests.cpp | dendisuhubdy/fboss | 89deb9468f647f2a56da55c7ed8f36e7e1151b4e | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... | 28.06422 | 79 | 0.700556 | dendisuhubdy |
634dcd61e03217413826471232eb547feeee1daa | 1,145 | cpp | C++ | vegastrike/src/cmd/script/pythonmission.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/src/cmd/script/pythonmission.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/src/cmd/script/pythonmission.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | #include <Python.h>
#include <math.h>
#include "pythonmission.h"
#include "python/python_compile.h"
#include <string>
#include "pythonmission.h"
#include "python/init.h"
#include <boost/version.hpp>
#if BOOST_VERSION == 102800
#include <boost/python/reference.hpp>
#include <boost/python/callback.hpp>
#endif
#include "v... | 27.926829 | 106 | 0.702183 | Ezeer |
634ff123129d4b1a5fc42ca350d23c31bf9127b1 | 7,922 | cpp | C++ | cocos2d-x-2.2/extensions/CocoStudio/ActionTimeline/CCActionTimeline.cpp | centrallydecentralized/ufo | 29e8f9ce4ce92635ed22f8a051c917cfe6e0313d | [
"BSD-3-Clause"
] | 58 | 2015-01-05T04:40:48.000Z | 2021-12-17T06:01:28.000Z | cocos2d-x-2.2/extensions/CocoStudio/ActionTimeline/CCActionTimeline.cpp | centrallydecentralized/ufo | 29e8f9ce4ce92635ed22f8a051c917cfe6e0313d | [
"BSD-3-Clause"
] | 4 | 2021-04-29T06:20:51.000Z | 2021-04-29T15:20:13.000Z | cocos2d-x-2.2/extensions/CocoStudio/ActionTimeline/CCActionTimeline.cpp | centrallydecentralized/ufo | 29e8f9ce4ce92635ed22f8a051c917cfe6e0313d | [
"BSD-3-Clause"
] | 46 | 2015-01-03T06:20:54.000Z | 2020-04-18T13:32:52.000Z | /****************************************************************************
Copyright (c) 2013 cocos2d-x.org
http://www.cocos2d-x.org
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 res... | 25.554839 | 103 | 0.662964 | centrallydecentralized |
635a2d20960c28bd98e165dbecc1334fa1439da0 | 3,102 | cpp | C++ | server/src/server.cpp | fruityloops1/smo-duktape | b840048b9f682eb5d46c3d48c3fa870a7509e55c | [
"MIT"
] | 2 | 2021-12-03T17:41:19.000Z | 2022-02-26T05:57:11.000Z | server/src/server.cpp | fruityloops1/smo-duktape | b840048b9f682eb5d46c3d48c3fa870a7509e55c | [
"MIT"
] | null | null | null | server/src/server.cpp | fruityloops1/smo-duktape | b840048b9f682eb5d46c3d48c3fa870a7509e55c | [
"MIT"
] | null | null | null | #include <ratio>
#include <server.h>
#include <packet.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <thread>
#include <iostream>
#include <fstream>
#define MAX_PACKET_SIZE 0x400
#define IN_PACKET(TYPE) case smo::InPacketType::TYPE: {\
InPacket##TYPE p;\
... | 25.016129 | 119 | 0.527724 | fruityloops1 |
635aa647c9ec6bc5da9f8b2bbf52d806786aa6b9 | 4,235 | cpp | C++ | examples/HelloWorld.cpp | pchabermann/EosSdk | c7f96a18bb06d0bbdb0b15a9de501f2518102651 | [
"BSD-3-Clause"
] | 132 | 2015-02-04T20:25:20.000Z | 2022-03-10T03:50:32.000Z | examples/HelloWorld.cpp | pchabermann/EosSdk | c7f96a18bb06d0bbdb0b15a9de501f2518102651 | [
"BSD-3-Clause"
] | 57 | 2015-05-20T22:34:28.000Z | 2022-03-16T21:52:28.000Z | examples/HelloWorld.cpp | pchabermann/EosSdk | c7f96a18bb06d0bbdb0b15a9de501f2518102651 | [
"BSD-3-Clause"
] | 39 | 2015-02-17T21:04:47.000Z | 2021-06-18T00:38:46.000Z | // Copyright (c) 2014 Arista Networks, Inc. All rights reserved.
// Arista Networks, Inc. Confidential and Proprietary.
#include <eos/agent.h>
#include <eos/sdk.h>
#include <eos/tracing.h>
// This simple agent says "hi" to a user when the user configures his
// or her name, and demonstrates how to use the various co... | 38.5 | 80 | 0.675797 | pchabermann |
635f1c293fa074f158292cee2f3ec52e8ba7c145 | 1,707 | cpp | C++ | src/Compiler/Parser/ParseHelper.cpp | feral-lang/feral | 1ce8eb72eec7c8a5ac19d3767e907b86387e29e0 | [
"MIT"
] | 131 | 2020-03-19T15:22:37.000Z | 2021-12-19T02:37:01.000Z | src/Compiler/Parser/ParseHelper.cpp | Electrux/feral | 1ce8eb72eec7c8a5ac19d3767e907b86387e29e0 | [
"BSD-3-Clause"
] | 14 | 2020-04-06T05:50:15.000Z | 2021-06-26T06:19:04.000Z | src/Compiler/Parser/ParseHelper.cpp | Electrux/feral | 1ce8eb72eec7c8a5ac19d3767e907b86387e29e0 | [
"BSD-3-Clause"
] | 20 | 2020-04-06T07:28:30.000Z | 2021-09-05T14:46:25.000Z | /*
MIT License
Copyright (c) 2020 Feral Language repositories
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, modi... | 24.73913 | 78 | 0.70123 | feral-lang |
6360c83106eccf789b6fa68dbb1a18def5e4ced4 | 6,030 | hpp | C++ | Spark/Buffer.hpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | 1 | 2022-02-15T19:50:01.000Z | 2022-02-15T19:50:01.000Z | Spark/Buffer.hpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | Spark/Buffer.hpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <optional>
#include <set>
#include <vector>
#include <glad/glad.h>
template<GLenum BUFFER_TYPE>
class Buffer
{
public:
GLuint ID{0};
GLint binding{-1};
GLsizei size{0};
Buffer(std::size_t sizeInBytes = 0, GLenum usage = GL_DYNAMIC_DRAW);
Buffer(cons... | 25.550847 | 145 | 0.670813 | MickAlmighty |
6361822b2c2cfbd7b223eea9ef426877359fa128 | 29,603 | cpp | C++ | LeeMain.cpp | fanhubgt/Leemapper | 4182ca298824279eb74a2951e8f3bb5f892ffe2c | [
"CC0-1.0"
] | null | null | null | LeeMain.cpp | fanhubgt/Leemapper | 4182ca298824279eb74a2951e8f3bb5f892ffe2c | [
"CC0-1.0"
] | null | null | null | LeeMain.cpp | fanhubgt/Leemapper | 4182ca298824279eb74a2951e8f3bb5f892ffe2c | [
"CC0-1.0"
] | null | null | null | //
// File: LeeMain.cc
// Author: appiah
//
//
#include <iostream>
#include <cstdlib>
#include <string>
#include <map>
#include <map>
#include <list>
#include <stack>
#include <queue>
#include <vector>
#include <ctime>
#include <set>
#include <cmath>
#include <stdio.h>
#include <iomanip>
#include <iterator>
#include... | 45.403374 | 230 | 0.554268 | fanhubgt |
636631e3e1982ba0dd8e17db01f3bbd2da46b3f8 | 973 | cpp | C++ | docs/template_plugin/tests/functional/shared_tests_instances/behavior/ov_plugin/caching_tests.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1 | 2022-02-07T09:14:15.000Z | 2022-02-07T09:14:15.000Z | docs/template_plugin/tests/functional/shared_tests_instances/behavior/ov_plugin/caching_tests.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 2 | 2022-03-28T13:18:55.000Z | 2022-03-28T13:18:57.000Z | docs/template_plugin/tests/functional/shared_tests_instances/behavior/ov_plugin/caching_tests.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "behavior/ov_plugin/caching_tests.hpp"
using namespace ov::test::behavior;
namespace {
static const std::vector<ov::element::Type> precisionsTemplate = {
ov::element::f32,
};
static const std::vec... | 37.423077 | 107 | 0.590956 | ryanloney |
63671d1240dc16daf9cf31de2d059475a5d5d032 | 16,303 | cxx | C++ | Examples/ANTSIntegrateVectorField.cxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | null | null | null | Examples/ANTSIntegrateVectorField.cxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | null | null | null | Examples/ANTSIntegrateVectorField.cxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | 1 | 2019-10-06T07:31:58.000Z | 2019-10-06T07:31:58.000Z |
#include "antsUtilities.h"
#include "antsAllocImage.h"
#include <algorithm>
#include "itkVectorIndexSelectionCastImageFilter.h"
#include "itkImageRegionIteratorWithIndex.h"
#include "vnl/algo/vnl_determinant.h"
#include "itkWarpImageFilter.h"
#include "itkImageFileWriter.h"
#include "itkRescaleIntensityImageFilter.... | 33.203666 | 126 | 0.635098 | KevinScholtes |
636af685bcd7ad025e660a410b114e639536321f | 5,672 | cpp | C++ | source/mclib/mlr/mlrinfinitelightwithfalloff.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 38 | 2015-04-10T13:31:03.000Z | 2021-09-03T22:34:05.000Z | source/mclib/mlr/mlrinfinitelightwithfalloff.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 1 | 2020-07-09T09:48:44.000Z | 2020-07-12T12:41:43.000Z | source/mclib/mlr/mlrinfinitelightwithfalloff.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 12 | 2015-06-29T08:06:57.000Z | 2021-10-13T13:11:41.000Z | //===========================================================================//
// Copyright (C) Microsoft Corporation. All rights reserved. //
//===========================================================================//
#include "stdinc.h"
#include "mlr/mlrinfinitelightwithfalloff.h"
namespace Mi... | 29.696335 | 100 | 0.540197 | mechasource |
636b5aff0ad61ecc4287300b959542bb1bde3573 | 982 | cpp | C++ | uva/524.cpp | larc/competitive_programming | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | 1 | 2019-05-23T19:05:39.000Z | 2019-05-23T19:05:39.000Z | uva/524.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | uva/524.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | // 524 - Prime Ring Problem
#include <cstdio>
#include <cstring>
#define N 16
#define M 32
int ring[N];
bool not_prime[M];
bool selected[N];
void init_prime()
{
memset(not_prime, 0, sizeof(not_prime));
for(int i = 2; i < M; ++i)
if(!not_prime[i])
for(int j = i * i; j < M; j += i)
not_prime[j] = 1;
}
vo... | 14.441176 | 49 | 0.525458 | larc |