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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a95a6c84ea34e32097921b761d979eb39bc97e1 | 2,931 | cc | C++ | xdl/xdl/data_io/op/feature_op/expr/dsl_parser.cc | hitflame/x-deeplearning | c8029396c6ae6dbf397a34a1801ceadc824e4f8d | [
"Apache-2.0"
] | 2 | 2021-02-23T03:11:44.000Z | 2021-02-23T03:13:39.000Z | xdl/xdl/data_io/op/feature_op/expr/dsl_parser.cc | hitflame/x-deeplearning | c8029396c6ae6dbf397a34a1801ceadc824e4f8d | [
"Apache-2.0"
] | 1 | 2019-11-29T14:52:53.000Z | 2019-11-29T14:52:53.000Z | xdl/xdl/data_io/op/feature_op/expr/dsl_parser.cc | hitflame/x-deeplearning | c8029396c6ae6dbf397a34a1801ceadc824e4f8d | [
"Apache-2.0"
] | 1 | 2019-08-03T05:22:19.000Z | 2019-08-03T05:22:19.000Z | /* Copyright (C) 2016-2018 Alibaba Group Holding Limited
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 ... | 36.185185 | 80 | 0.675537 | hitflame |
6a95c5b25e1fd6fd0e10a612a72b2472515a10e1 | 224 | cpp | C++ | chap06/Exer06_03.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 50 | 2016-01-08T14:28:53.000Z | 2022-01-21T12:55:00.000Z | chap06/Exer06_03.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 2 | 2017-06-05T16:45:20.000Z | 2021-04-17T13:39:24.000Z | chap06/Exer06_03.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 18 | 2016-08-17T15:23:51.000Z | 2022-03-26T18:08:43.000Z | #include <iostream>
using std::cout;
using std::endl;
int fact(int val)
{
int ret = 1;
while(val > 1)
ret *= val--;
return ret;
}
int main()
{
int j = fact(12);
cout << j << endl;
return 0;
}
| 13.176471 | 22 | 0.517857 | sjbarigye |
6a964233022da5eb287d844772c5cc25a0450aa4 | 929 | cpp | C++ | src/model/Role.cpp | sptrakesh/crrc | 121176f1bc7b1c6c2315ad830dd44cf291b2b568 | [
"Apache-2.0"
] | 2 | 2018-04-19T12:52:26.000Z | 2018-06-07T03:48:01.000Z | src/model/Role.cpp | sptrakesh/crrc | 121176f1bc7b1c6c2315ad830dd44cf291b2b568 | [
"Apache-2.0"
] | 1 | 2018-04-07T02:40:57.000Z | 2018-04-07T02:40:57.000Z | src/model/Role.cpp | sptrakesh/crrc | 121176f1bc7b1c6c2315ad830dd44cf291b2b568 | [
"Apache-2.0"
] | 1 | 2018-04-07T02:33:44.000Z | 2018-04-07T02:33:44.000Z | #include "Role.h"
using crrc::model::Role;
Role::Ptr Role::create( QSqlQuery& query )
{
auto ptr = std::make_unique<Role>();
ptr->id = query.value( 0 ).toUInt();
ptr->role = query.value( 1 ).toString();
return ptr;
}
Role::Ptr Role::create( Cutelyst::Context* context )
{
auto ptr = std::make... | 24.447368 | 73 | 0.589882 | sptrakesh |
6a96902e4ef4644e40b64ba337b98b86deefbce6 | 862 | cpp | C++ | src/dotenv.cpp | lukaszlaszko/cpp-dotenv | 03b7e2a89ebf9537589095aa782f0602969b420e | [
"BSD-3-Clause"
] | null | null | null | src/dotenv.cpp | lukaszlaszko/cpp-dotenv | 03b7e2a89ebf9537589095aa782f0602969b420e | [
"BSD-3-Clause"
] | null | null | null | src/dotenv.cpp | lukaszlaszko/cpp-dotenv | 03b7e2a89ebf9537589095aa782f0602969b420e | [
"BSD-3-Clause"
] | null | null | null | #include "dotenv.h"
#include "environ.h"
#include "Parser.h"
#include <fstream>
#include <utility>
using namespace std;
using namespace cppdotenv;
cppdotenv::dotenv& cppdotenv::dotenv::load_dotenv(const string& dotenv_path, const bool overwrite, const bool interpolate)
{
ifstream env_file;
env_file.open(d... | 18.73913 | 122 | 0.700696 | lukaszlaszko |
6a96cab43d06be7a55468f57d9f3a7cad64e8080 | 26,444 | cpp | C++ | lugre/src/lugre_gfx2D_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | 1 | 2020-10-18T14:33:05.000Z | 2020-10-18T14:33:05.000Z | lugre/src/lugre_gfx2D_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | lugre/src/lugre_gfx2D_L.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | #include "lugre_prefix.h"
#include "lugre_scripting.h"
#include "lugre_luabind.h"
#include "lugre_gfx2D.h"
#include "lugre_BorderColourClipPaneOverlay.h"
#include "lugre_CompassOverlay.h"
#include "lugre_RobRenderableOverlay.h"
#include "lugre_SortedOverlayContainer.h"
#include "lugre_gfx3D.h"
#include "lugre_ogrewrapp... | 39.35119 | 184 | 0.70568 | ghoulsblade |
6a98c5d1ea22e248c59ac1b66a99febb64a01c1d | 1,732 | hpp | C++ | apps/src/videostitch-studio-gui/src/widgets/stabilizationwidget.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | apps/src/videostitch-studio-gui/src/widgets/stabilizationwidget.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | apps/src/videostitch-studio-gui/src/widgets/stabilizationwidget.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#pragma once
#include "computationwidget.hpp"
#include "itoolwidget.hpp"
#include <memory>
namespace Ui {
class StabilizationWidget;
}
class QAbstractButton;
class StabilizationWidget : public ComputationWidget, public IToolWidget {
Q_OBJEC... | 28.866667 | 100 | 0.782333 | tlalexander |
6a9bdb256c9ecc5b41ab9cc515e3752e2964d59d | 776 | cpp | C++ | work05/2.cpp | kashapovd/basic_prog_1semester | 0c45a564f50b668e37d7ff0717e18f68e79ab200 | [
"Unlicense"
] | 1 | 2019-12-08T07:21:45.000Z | 2019-12-08T07:21:45.000Z | work05/2.cpp | kashapovd/basic_prog_1semester | 0c45a564f50b668e37d7ff0717e18f68e79ab200 | [
"Unlicense"
] | null | null | null | work05/2.cpp | kashapovd/basic_prog_1semester | 0c45a564f50b668e37d7ff0717e18f68e79ab200 | [
"Unlicense"
] | null | null | null | /*
* 4. Для заданного натурального числа N вывести в столбик все простые числа меньшие N.
* Простое число – это натуральное число, имеющее ровно два различных натуральных делителя,
* то есть простое число делится нацело только на самого себя и единицу. Является ли число простым оформить как функцию
*/
#include <io... | 22.171429 | 119 | 0.546392 | kashapovd |
6a9d75980af87db53e8b2b43004e63f87c6dbb6e | 805 | cpp | C++ | source/omni/ui/blueprint.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 33 | 2015-03-21T04:12:45.000Z | 2021-04-18T21:44:33.000Z | source/omni/ui/blueprint.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | null | null | null | source/omni/ui/blueprint.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 2 | 2016-03-05T12:57:05.000Z | 2017-09-12T10:11:52.000Z | #include <omni/ui/blueprint.hpp>
#include <QPainter>
omni::ui::blueprint::blueprint (QWidget * parent) :
QWidget (parent)
{
setAutoFillBackground (true);
QPalette pal;
pal.setColor (QPalette::Background, QColor::fromRgb (0xFF, 0xFF, 0xFF));
// pal.setColor (QPalette::Background, QColor::fromRgb (0x... | 25.967742 | 78 | 0.582609 | daniel-kun |
6a9da998e269cfcb5cedd97c57a18dda82ce8570 | 322 | cpp | C++ | src/States/State.cpp | sarahkittyy/Boxgirl | 06f9d23a43e42d999c0bb76936a69fa973e42e06 | [
"MIT"
] | null | null | null | src/States/State.cpp | sarahkittyy/Boxgirl | 06f9d23a43e42d999c0bb76936a69fa973e42e06 | [
"MIT"
] | null | null | null | src/States/State.cpp | sarahkittyy/Boxgirl | 06f9d23a43e42d999c0bb76936a69fa973e42e06 | [
"MIT"
] | null | null | null | #include "States/State.hpp"
namespace State
{
State::State()
{
}
State::~State()
{
}
void State::init()
{
}
void State::update()
{
}
sf::RenderWindow& State::window()
{
return *mWindow;
}
ResourceManager& State::resource()
{
return *mResource;
}
void State::setState(State* newState)
{
mSetState(newState);
}
... | 8.702703 | 37 | 0.65528 | sarahkittyy |
6aa2a636762ed664fce5e15f6b02744cce920e23 | 8,480 | cpp | C++ | src/Graphics/World.cpp | boudra/darkmatter | 807ef3dc0d10e3ddff75fb4cf965acfa86423624 | [
"MIT"
] | 7 | 2015-07-29T15:04:56.000Z | 2021-07-23T13:59:30.000Z | src/Graphics/World.cpp | boudra/darkmatter | 807ef3dc0d10e3ddff75fb4cf965acfa86423624 | [
"MIT"
] | null | null | null | src/Graphics/World.cpp | boudra/darkmatter | 807ef3dc0d10e3ddff75fb4cf965acfa86423624 | [
"MIT"
] | 1 | 2015-08-27T14:31:22.000Z | 2015-08-27T14:31:22.000Z | #include "Graphics/World.hpp"
#include "Core/EntityManager.hpp"
#include "Animation/Animation.hpp"
#include "Core/Engine.hpp"
#include "Components/PhysicsComponent.hpp"
#include "Components/Cursor.hpp"
#include "Graphics/RenderSystem.hpp"
#include "Resource/ResourceManager.hpp"
#include <GL/glew.h>
#ifdef _WIN32
#inc... | 38.371041 | 80 | 0.440802 | boudra |
6aa3c3bd35796f80c044e3588138073ae8dea1b9 | 1,971 | cpp | C++ | ctest/tests/Serializer.cpp | mgradysaunders/Precept | 0677c70ac4ed9e0a8c5aad7b049daad22998de9e | [
"BSD-2-Clause"
] | null | null | null | ctest/tests/Serializer.cpp | mgradysaunders/Precept | 0677c70ac4ed9e0a8c5aad7b049daad22998de9e | [
"BSD-2-Clause"
] | null | null | null | ctest/tests/Serializer.cpp | mgradysaunders/Precept | 0677c70ac4ed9e0a8c5aad7b049daad22998de9e | [
"BSD-2-Clause"
] | null | null | null | #include "../testing.h"
#include <pre/Serializer>
#include <pre/StringID>
using namespace pre;
static int Serial_ctor_calls = 0;
static int Serial_dtor_calls = 0;
static int Serial_serialize_calls = 0;
class Serial : public Serializable {
public:
Serial() { ++Serial_ctor_calls; }
~Serial() { ++Serial_dtor... | 26.635135 | 70 | 0.632674 | mgradysaunders |
6aa5eac7415ca832d080ed5c0db31a010e77bca3 | 2,012 | cpp | C++ | test/cpp/main.cpp | moritzmhmk/charls-js | 73fed2d8165a2385809700f9d8ae2ac12ff24269 | [
"MIT"
] | 8 | 2020-04-17T18:01:38.000Z | 2022-03-01T08:48:21.000Z | test/cpp/main.cpp | moritzmhmk/charls-js | 73fed2d8165a2385809700f9d8ae2ac12ff24269 | [
"MIT"
] | 2 | 2020-04-30T02:51:01.000Z | 2022-01-12T22:39:11.000Z | test/cpp/main.cpp | moritzmhmk/charls-js | 73fed2d8165a2385809700f9d8ae2ac12ff24269 | [
"MIT"
] | 6 | 2020-04-17T18:01:48.000Z | 2022-03-16T06:32:06.000Z | #include "../../extern/charls/include/charls/charls.h"
#include <fstream>
#include <iostream>
#include <vector>
#include <iterator>
#include <time.h>
void readFile(std::string fileName, std::vector<unsigned char>& vec) {
// open the file:
std::ifstream file(fileName, std::ios::binary);
// Stop eating new... | 27.561644 | 78 | 0.630716 | moritzmhmk |
6aab2280ea1e13e846d3fceb9280fa62cea5ba77 | 6,280 | cpp | C++ | test/vmtester/tests.cpp | Palem1988/evmc | 10f038b57d5c032a70e6b8b398446240e7fadcb3 | [
"Apache-2.0"
] | null | null | null | test/vmtester/tests.cpp | Palem1988/evmc | 10f038b57d5c032a70e6b8b398446240e7fadcb3 | [
"Apache-2.0"
] | null | null | null | test/vmtester/tests.cpp | Palem1988/evmc | 10f038b57d5c032a70e6b8b398446240e7fadcb3 | [
"Apache-2.0"
] | null | null | null | // EVMC: Ethereum Client-VM Connector API
// Copyright 2018-2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.
#include "../../examples/example_host.h"
#include "vmtester.hpp"
#include <evmc/evmc.hpp>
#include <array>
#include <cstring>
namespace
{
// NOTE: this is to avoid compiler optimisat... | 28.41629 | 98 | 0.653822 | Palem1988 |
6aac21d5f6239895a60440bc3aa034aac960dd08 | 8,446 | cpp | C++ | FloatingMeasure_Test/FloatingMeasure_Test.cpp | github-baron/FloatingMeasure | 1419d95c168bd7c9927854f0fc8e7c3681b93d2d | [
"MIT"
] | 1 | 2020-11-09T07:13:03.000Z | 2020-11-09T07:13:03.000Z | FloatingMeasure_Test/FloatingMeasure_Test.cpp | github-baron/FloatingMeasure | 1419d95c168bd7c9927854f0fc8e7c3681b93d2d | [
"MIT"
] | 3 | 2020-01-27T16:20:50.000Z | 2020-01-31T23:13:53.000Z | FloatingMeasure_Test/FloatingMeasure_Test.cpp | github-baron/FloatingMeasure | 1419d95c168bd7c9927854f0fc8e7c3681b93d2d | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Michael von Mengershausen
*
* 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... | 37.207048 | 115 | 0.608335 | github-baron |
6aadb9a01efd13a31dbde8e7753453cb9fcd3936 | 652 | cpp | C++ | gameMainDriver/gameMainDriver.cpp | FullSiliconAlchemist/comp345-V2 | 459ed4490139360d8ec7816523191ca95ccaded3 | [
"MIT"
] | 1 | 2019-10-10T15:16:12.000Z | 2019-10-10T15:16:12.000Z | gameMainDriver/gameMainDriver.cpp | FullSiliconAlchemist/comp345-V2 | 459ed4490139360d8ec7816523191ca95ccaded3 | [
"MIT"
] | null | null | null | gameMainDriver/gameMainDriver.cpp | FullSiliconAlchemist/comp345-V2 | 459ed4490139360d8ec7816523191ca95ccaded3 | [
"MIT"
] | null | null | null |
#include "pch.h"
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <string>
#include <iterator>
#include "../MapProject/Map.h"
#include "../MapProject/Map.cpp"
#include "../MapProject/Country.h"
#include "../MapProject/Country.cpp"
#include "../MapLoaderProject/MapLoader.h"
#include... | 23.285714 | 85 | 0.693252 | FullSiliconAlchemist |
6aadc74baf75e7314e9ac1133865ea3fd2b607af | 1,930 | cpp | C++ | 3DEngine2/src/common/Window.cpp | rainnymig/ThreeDeeEngine-2 | 3f4c00cbf1c816072a020d850095295da6c29ccb | [
"BSD-3-Clause"
] | null | null | null | 3DEngine2/src/common/Window.cpp | rainnymig/ThreeDeeEngine-2 | 3f4c00cbf1c816072a020d850095295da6c29ccb | [
"BSD-3-Clause"
] | null | null | null | 3DEngine2/src/common/Window.cpp | rainnymig/ThreeDeeEngine-2 | 3f4c00cbf1c816072a020d850095295da6c29ccb | [
"BSD-3-Clause"
] | null | null | null | #include "pch.h"
#include "common/Window.h"
namespace tde
{
Window::Window(
ConstructorTag aConstructorTag,
HWND aWindowHandle)
: mWindowHandle(aWindowHandle)
{}
bool Window::RegisterWindow(const WNDCLASSEX* apWndClassEx)
{
if (!RegisterClassExW(apWndClassEx))
{
return false;
}
return true;
}
... | 20.752688 | 137 | 0.717098 | rainnymig |
6ab566e45d3d0de06005dd8cbd8be549e3ebddf6 | 1,385 | cpp | C++ | RainbowNoise/src/Library/ColorTransformer.cpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 24 | 2016-12-13T09:48:17.000Z | 2022-01-13T03:24:45.000Z | RainbowNoise/src/Library/ColorTransformer.cpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 2 | 2019-03-29T06:44:41.000Z | 2019-11-12T03:14:25.000Z | RainbowNoise/src/Library/ColorTransformer.cpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 8 | 2016-11-09T15:54:19.000Z | 2021-04-08T14:04:17.000Z | /*
ColorTransformer.cpp
Li-Yi Wei
09/26/2009
*/
#include "ColorTransformer.hpp"
#include "Exception.hpp"
ColorTransformer::ColorTransformer(const int input_dimension, const vector<Vector> & output_basis) : _input_dimension(input_dimension), _output_basis(output_basis)
{
// consistency check
if((input_... | 25.648148 | 163 | 0.631047 | 1iyiwei |
6aba928d373701e495b9efde71a0de9f91d7fdf1 | 124 | cpp | C++ | questions/cmake-moc-50453265/main.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | 54 | 2015-09-13T07:29:52.000Z | 2022-03-16T07:43:50.000Z | questions/cmake-moc-50453265/main.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | null | null | null | questions/cmake-moc-50453265/main.cpp | SammyEnigma/stackoverflown | 0f70f2534918b2e65cec1046699573091d9a40b5 | [
"Unlicense"
] | 31 | 2016-08-26T13:35:01.000Z | 2022-03-13T16:43:12.000Z | #include "header.h"
struct Foo {};
int main() {
Class c;
Foo d;
Q_UNUSED((d = {}));
}
#include "moc_header.cpp"
| 10.333333 | 25 | 0.556452 | SammyEnigma |
6ac268fc983ab2cdcbc1b999ea5b9fc6ef3f3695 | 44,723 | cpp | C++ | Infrastructure/src/aas/aas_animated_model.cpp | mercurier/TemplePlus | 244f83346d1f1afb64017ee2a8d6e3639e43320d | [
"MIT"
] | null | null | null | Infrastructure/src/aas/aas_animated_model.cpp | mercurier/TemplePlus | 244f83346d1f1afb64017ee2a8d6e3639e43320d | [
"MIT"
] | null | null | null | Infrastructure/src/aas/aas_animated_model.cpp | mercurier/TemplePlus | 244f83346d1f1afb64017ee2a8d6e3639e43320d | [
"MIT"
] | null | null | null |
#define _SCL_SECURE_NO_WARNINGS
#include <DirectXMath.h>
#include <fmt/format.h>
#include <infrastructure/exception.h>
#include "aas_animated_model.h"
#include "aas_mesh.h"
#include "aas_skeleton.h"
#include "aas_cloth_collision.h"
#include "aas_cloth_sim.h"
#include "aas_cloth_sim_mesh.h"
#include "aas_anim_player.... | 28.946926 | 260 | 0.684167 | mercurier |
6ac3ee17d1bef7c12d793d3534e8b1162899fd1e | 2,744 | cpp | C++ | src/profiling/BufferManager.cpp | tom-gall/armnn | a21620d32a8a0a8d527c061e2a22d51009d75877 | [
"MIT"
] | null | null | null | src/profiling/BufferManager.cpp | tom-gall/armnn | a21620d32a8a0a8d527c061e2a22d51009d75877 | [
"MIT"
] | null | null | null | src/profiling/BufferManager.cpp | tom-gall/armnn | a21620d32a8a0a8d527c061e2a22d51009d75877 | [
"MIT"
] | null | null | null | //
// Copyright © 2019 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "BufferManager.hpp"
#include "PacketBuffer.hpp"
#include "ProfilingUtils.hpp"
#include <armnn/Exceptions.hpp>
namespace armnn
{
namespace profiling
{
BufferManager::BufferManager(unsigned int numberOfBuffers, unsigned ... | 28.884211 | 109 | 0.722668 | tom-gall |
6ac3ef07e2b2e402047f6cc48b9607c5ec8d4e93 | 3,650 | cc | C++ | src/test_utf.cc | jdavidberger/mxcomp | 5b846711b8df061ee8ab4eb575400802baee8b92 | [
"MIT"
] | 1 | 2015-10-25T09:18:54.000Z | 2015-10-25T09:18:54.000Z | src/test_utf.cc | jdavidberger/mxcomp | 5b846711b8df061ee8ab4eb575400802baee8b92 | [
"MIT"
] | null | null | null | src/test_utf.cc | jdavidberger/mxcomp | 5b846711b8df061ee8ab4eb575400802baee8b92 | [
"MIT"
] | null | null | null | #include <mxcomp/utf.h>
#include <iostream>
#include <QUnit.hpp>
#include <sstream>
template <class T>
std::string asHex(const T& str) {
std::stringstream ss;
ss << std::endl;
for(auto it : str)
ss << std::hex << (uint32_t)it << " ";
ss << std::endl;
return ss.str();
}
using namespace std;
using namespa... | 32.300885 | 136 | 0.576164 | jdavidberger |
6ac41f844e5928db385b038af07ed3501e5aac8a | 40,285 | cpp | C++ | ds/security/cryptoapi/ui/cryptui/ctlgen.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/security/cryptoapi/ui/cryptui/ctlgen.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/security/cryptoapi/ui/cryptui/ctlgen.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1999
//
// File: ctlgen.cpp
//
//--------------------------------------------------------------------------
#include "global.hxx"
#include <dbgdef.h... | 34.490582 | 131 | 0.519896 | npocmaka |
6ac4606b5a845a539f5713440ccc2565dcbb7aeb | 9,109 | cpp | C++ | lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | //===-- PythonTestSuite.cpp -----------------------------------------------===//
//
// 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-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 34.116105 | 80 | 0.746514 | ornata |
6ac4e8de5c47bbd2fb6772af1c879fa185f3e8a5 | 8,638 | cpp | C++ | cpp/src/network-data.cpp | luckiday/ndnrtc | ea224ce8d9f01d164925448c7424cf0f0caa4b07 | [
"BSD-2-Clause"
] | null | null | null | cpp/src/network-data.cpp | luckiday/ndnrtc | ea224ce8d9f01d164925448c7424cf0f0caa4b07 | [
"BSD-2-Clause"
] | null | null | null | cpp/src/network-data.cpp | luckiday/ndnrtc | ea224ce8d9f01d164925448c7424cf0f0caa4b07 | [
"BSD-2-Clause"
] | null | null | null | //
// network-data.cpp
//
// Created by Peter Gusev on 11 October 2018.
// Copyright 2013-2018 Regents of the University of California
//
#include "network-data.hpp"
#include <ndn-cpp/data.hpp>
#include <ndn-cpp/interest.hpp>
#include "fec.hpp"
using namespace ndnrtc;
using namespace std;
//**********************... | 30.85 | 123 | 0.617388 | luckiday |
6ac5c319f2297f88b69f89b33cc81c38004b4e0c | 102,443 | cpp | C++ | test/make_matrix.cpp | bebuch/Mitrax | bc33a1b93058886daab3e4ef736ef9b519111454 | [
"BSL-1.0"
] | null | null | null | test/make_matrix.cpp | bebuch/Mitrax | bc33a1b93058886daab3e4ef736ef9b519111454 | [
"BSL-1.0"
] | null | null | null | test/make_matrix.cpp | bebuch/Mitrax | bc33a1b93058886daab3e4ef736ef9b519111454 | [
"BSL-1.0"
] | null | null | null | // -----------------------------------------------------------------------------
// Copyright (c) 2015-2018 Benjamin Buch
//
// https://github.com/bebuch/mitrax
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
//... | 39.50752 | 80 | 0.642513 | bebuch |
6ac7330989b62119aec9373de3f5a7a6193f1709 | 2,989 | cpp | C++ | GetLowEngine.Engine/TextureResourceLoader.cpp | ticticboooom/GetLowEngine | 3303bc414a8b89c605161193d7284b6f91c4a5b6 | [
"MIT"
] | 3 | 2021-03-05T01:56:44.000Z | 2021-08-01T10:18:47.000Z | GetLowEngine.Engine/TextureResourceLoader.cpp | ticticboooom/GetLowEngine | 3303bc414a8b89c605161193d7284b6f91c4a5b6 | [
"MIT"
] | null | null | null | GetLowEngine.Engine/TextureResourceLoader.cpp | ticticboooom/GetLowEngine | 3303bc414a8b89c605161193d7284b6f91c4a5b6 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "TextureResourceLoader.h"
#include "TextureLoader.h"
/**
* @brief Construct a new Texture Resource Manager:: Texture Resource Manager object
* Creates the resource for putting the texture onto the graphics card
* @param fileName path and filename of the texture
* @param deviceResources
... | 39.328947 | 180 | 0.802944 | ticticboooom |
6ac9c5ab9d5b4e0371bd3f1ea3833b33a2785c80 | 888 | cpp | C++ | Online Judges/LeetCode/July LeetCoding Challenge/Week-2/Maximum Width of Binary Tree.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | 4 | 2017-02-20T17:41:14.000Z | 2019-07-15T14:15:34.000Z | Online Judges/LeetCode/July LeetCoding Challenge/Week-2/Maximum Width of Binary Tree.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | Online Judges/LeetCode/July LeetCoding Challenge/Week-2/Maximum Width of Binary Tree.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 30.62069 | 123 | 0.556306 | moni-roy |
6acef2437221bebb4288c09ee6b56adb49473443 | 21,536 | hpp | C++ | include/amtrs/.inc/net-uri.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-10T02:12:49.000Z | 2019-12-10T02:12:49.000Z | include/amtrs/.inc/net-uri.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | include/amtrs/.inc/net-uri.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
#ifndef __libamtrs__net__uri__hpp
#define __libamtrs__net__uri__hpp
AMTRS_NET_NAMESPACE_BEGIN namespac... | 20.432638 | 101 | 0.517366 | isaponsoft |
6ad15169a9175292dc8d45aab821b47f0f16bdb5 | 8,307 | hpp | C++ | include/byom/dynamic_view.hpp | purpleKarrot/BYOM | 1de5f53a1185b37676d76399bd67ff9e08ad828a | [
"0BSD"
] | 2 | 2015-12-02T15:02:06.000Z | 2015-12-03T22:41:19.000Z | include/byom/dynamic_view.hpp | purpleKarrot/BYOM | 1de5f53a1185b37676d76399bd67ff9e08ad828a | [
"0BSD"
] | null | null | null | include/byom/dynamic_view.hpp | purpleKarrot/BYOM | 1de5f53a1185b37676d76399bd67ff9e08ad828a | [
"0BSD"
] | null | null | null | // Copyright (c) 2015, Daniel Pfeifer <daniel@pfeifer-mail.de>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS ... | 22.152 | 79 | 0.633081 | purpleKarrot |
6ad4c1c00212ff4bd747090827d0434244f4f36b | 826 | cpp | C++ | engine/source/engine/_gl.cpp | n4n0lix/Kerosene | cd65f5e4b374a91259e22d41153f44c141d79af3 | [
"0BSD"
] | 2 | 2016-01-17T03:35:39.000Z | 2019-12-23T15:04:47.000Z | engine/source/engine/_gl.cpp | n4n0lix/Kerosene | cd65f5e4b374a91259e22d41153f44c141d79af3 | [
"0BSD"
] | null | null | null | engine/source/engine/_gl.cpp | n4n0lix/Kerosene | cd65f5e4b374a91259e22d41153f44c141d79af3 | [
"0BSD"
] | 2 | 2016-03-23T09:13:14.000Z | 2019-12-23T15:04:53.000Z | #include "stdafx.h"
#include "_gl.h"
#ifdef GL_DEBUG
std::string gl_err_to_string(GLenum err) {
switch (err) {
case GL_INVALID_ENUM: return "Invalid enum.";
case GL_INVALID_VALUE: return "Invalid value.";
case GL_INVALID_OPERATION: return "Invalid operation.";
case GL_STACK_OVERFLO... | 31.769231 | 98 | 0.688862 | n4n0lix |
6ad65654e57b79d98b1d94f06e1ccac699c33c72 | 5,057 | cpp | C++ | applications/command_line_tools/simple_embedding_viewer.cpp | kevlim83/High-Dimensional-Inspector | 1ad9cdf7712fb497c88051bdff32ce27350433ed | [
"MIT"
] | 68 | 2017-10-05T16:18:21.000Z | 2022-03-22T14:35:48.000Z | applications/command_line_tools/simple_embedding_viewer.cpp | kevlim83/High-Dimensional-Inspector | 1ad9cdf7712fb497c88051bdff32ce27350433ed | [
"MIT"
] | 8 | 2018-04-27T20:52:00.000Z | 2020-01-17T12:28:35.000Z | applications/command_line_tools/simple_embedding_viewer.cpp | kevlim83/High-Dimensional-Inspector | 1ad9cdf7712fb497c88051bdff32ce27350433ed | [
"MIT"
] | 18 | 2017-10-31T13:09:05.000Z | 2020-07-20T16:50:53.000Z | /*
*
* Copyright (c) 2014, Nicola Pezzotti (Delft University of Technology)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyrig... | 39.20155 | 98 | 0.688946 | kevlim83 |
6ad75925b51f790b6462833b9860941b4e982a90 | 4,721 | cpp | C++ | NES/Mapper/Mapper115.cpp | chittleskuny/virtuanes | f2528f24108ebde6c2e123920423d95e086d86bc | [
"MIT"
] | null | null | null | NES/Mapper/Mapper115.cpp | chittleskuny/virtuanes | f2528f24108ebde6c2e123920423d95e086d86bc | [
"MIT"
] | null | null | null | NES/Mapper/Mapper115.cpp | chittleskuny/virtuanes | f2528f24108ebde6c2e123920423d95e086d86bc | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
// Mapper115 CartSaint : Yuu Yuu Hakusho Final //
// JusticePao(?) //
//////////////////////////////////////////////////////////////////////////
void Mapper115... | 19.670833 | 75 | 0.500106 | chittleskuny |
6ad7c09502500ceda52db13e0edc73b64938d9d3 | 6,975 | hpp | C++ | framework/mcrouter/tcp/private/ServerServiceEvent.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 70 | 2021-07-20T11:26:16.000Z | 2022-03-27T11:17:43.000Z | framework/mcrouter/tcp/private/ServerServiceEvent.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 32 | 2021-07-31T05:20:44.000Z | 2022-03-20T10:11:52.000Z | framework/mcrouter/tcp/private/ServerServiceEvent.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 40 | 2021-11-02T09:45:38.000Z | 2022-03-27T11:17:46.000Z | #pragma once
/************************************************************************
* This file is part of the AREG SDK core engine.
* AREG SDK is dual-licensed under Free open source (Apache version 2.0
* License) and Commercial (with various pricing models) licenses, depending
* on the nature of the project (c... | 42.018072 | 122 | 0.558566 | Ali-Nasrolahi |
6ad96a3c25039f9b0c9cebe4467dc532294ef7a0 | 31,211 | cxx | C++ | PWGPP/HMTFqa/AliAnalysisTaskLeadingPt.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWGPP/HMTFqa/AliAnalysisTaskLeadingPt.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWGPP/HMTFqa/AliAnalysisTaskLeadingPt.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | /*************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors a... | 26.906034 | 151 | 0.637628 | maroozm |
6adecafe2b758935fe01c35eb3c3f679b3d86ebe | 3,146 | cpp | C++ | catboost/cuda/cuda_lib/cuda_manager.cpp | mityada/test2 | 00df18ecbac8fb724c06b68474df067e81a3d7dd | [
"Apache-2.0"
] | null | null | null | catboost/cuda/cuda_lib/cuda_manager.cpp | mityada/test2 | 00df18ecbac8fb724c06b68474df067e81a3d7dd | [
"Apache-2.0"
] | null | null | null | catboost/cuda/cuda_lib/cuda_manager.cpp | mityada/test2 | 00df18ecbac8fb724c06b68474df067e81a3d7dd | [
"Apache-2.0"
] | 1 | 2018-08-06T14:13:12.000Z | 2018-08-06T14:13:12.000Z | #include "cuda_manager.h"
#include "cuda_profiler.h"
#include <catboost/cuda/cuda_lib/tasks_impl/single_host_memory_copy_tasks.h>
using namespace NCudaLib;
void TCudaManager::CreateProfiler() {
Profiler = new TCudaProfiler;
}
TCudaManager::~TCudaManager() {
Y_VERIFY(Profiler == nullptr, "Reset profile before... | 31.148515 | 104 | 0.641132 | mityada |
6adf152f2f8e2fc78e4b5a2d28a2b547d5c487dd | 2,602 | cpp | C++ | src/runtime_src/core/pcie/common/system_pcie.cpp | cellery/XRT | a5c908d18dd8cd99d922ec8c847f869477d21079 | [
"Apache-2.0"
] | null | null | null | src/runtime_src/core/pcie/common/system_pcie.cpp | cellery/XRT | a5c908d18dd8cd99d922ec8c847f869477d21079 | [
"Apache-2.0"
] | null | null | null | src/runtime_src/core/pcie/common/system_pcie.cpp | cellery/XRT | a5c908d18dd8cd99d922ec8c847f869477d21079 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2019 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 28.911111 | 92 | 0.656034 | cellery |
6ae0da4e82f7f4bbb6f49165dad6999532ebeea9 | 211 | hpp | C++ | include/generic/math/algorithm.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | 4 | 2022-01-06T14:06:03.000Z | 2022-01-07T01:13:58.000Z | include/generic/math/algorithm.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | null | null | null | include/generic/math/algorithm.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | null | null | null | #pragma once
namespace gfx {
namespace generic {
template <typename float_system>
class algorithm {
public:
typedef float_system float_system_t;
typedef typename float_system::float_t float_t;
};
}
}
| 14.066667 | 51 | 0.758294 | shikanle |
6ae1a9022737b064b4d83fedb92ce2e5ee877405 | 852 | cpp | C++ | ONLINE JUDGE/LeetCode/#84-Largest_area_Histogram.cpp | theneek14/C-plus-plus-Algorithms | ee265db0f24fcc91c8df0c5c584b651e07c4886e | [
"MIT"
] | 21 | 2020-10-03T03:57:19.000Z | 2022-03-25T22:41:05.000Z | ONLINE JUDGE/LeetCode/#84-Largest_area_Histogram.cpp | theneek14/C-plus-plus-Algorithms | ee265db0f24fcc91c8df0c5c584b651e07c4886e | [
"MIT"
] | 40 | 2020-10-02T07:02:34.000Z | 2021-10-30T16:00:07.000Z | ONLINE JUDGE/LeetCode/#84-Largest_area_Histogram.cpp | theneek14/C-plus-plus-Algorithms | ee265db0f24fcc91c8df0c5c584b651e07c4886e | [
"MIT"
] | 90 | 2020-10-02T07:06:22.000Z | 2022-03-25T22:41:17.000Z | //https://leetcode.com/problems/largest-rectangle-in-histogram/
class Solution {
public:
int largestRectangleArea(vector<int>& heights) {
stack<int>s;
int area_with_top=0;
int area=0;
int i=0;
int n=heights.size();
while(i<n){
if(s.empty() || heights[s.to... | 26.625 | 68 | 0.450704 | theneek14 |
6ae25f78a8b2e5aa90652d14ab634531984ef49c | 4,693 | cpp | C++ | src/graphics/g_pipeline.cpp | thefishlive/VkFPS | 42d66070f95285bef144300bd14c9927f30d32fe | [
"MIT"
] | null | null | null | src/graphics/g_pipeline.cpp | thefishlive/VkFPS | 42d66070f95285bef144300bd14c9927f30d32fe | [
"MIT"
] | null | null | null | src/graphics/g_pipeline.cpp | thefishlive/VkFPS | 42d66070f95285bef144300bd14c9927f30d32fe | [
"MIT"
] | null | null | null | /******************************************************************************
* Copyright 2017 James Fitzpatrick <james_fitzpatrick@outlook.com> *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* c... | 51.01087 | 261 | 0.711059 | thefishlive |
6ae30dcb52b339375126fa5484b663872c8911b9 | 8,375 | cpp | C++ | src/libsolver/Solver.cpp | selavy/word-brain-solver | 2c011053f560a9e5b388f2ae809e17d872ce914e | [
"MIT"
] | null | null | null | src/libsolver/Solver.cpp | selavy/word-brain-solver | 2c011053f560a9e5b388f2ae809e17d872ce914e | [
"MIT"
] | null | null | null | src/libsolver/Solver.cpp | selavy/word-brain-solver | 2c011053f560a9e5b388f2ae809e17d872ce914e | [
"MIT"
] | null | null | null | //
// Created by peter on 4/5/15.
//
#include "Solver.h"
#include "Logger.h"
#include <cstddef>
#include <unordered_set>
//#define EXTRA_LOGGING
Solver::Solver(const BoardPtr& board, const DictionaryPtr& dictionary, const std::vector<int>& wordLengths)
: board_(board), dictionary_(dictionary), wordLengths_(w... | 33.5 | 120 | 0.502567 | selavy |
6ae3616444501a150bc74e6264e7af0e20c304c4 | 4,622 | cpp | C++ | src/qt/src/3rdparty/webkit/Source/WebCore/storage/IDBCursorBackendImpl.cpp | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 46 | 2015-01-08T14:32:34.000Z | 2022-02-05T16:48:26.000Z | src/qt/src/3rdparty/webkit/Source/WebCore/storage/IDBCursorBackendImpl.cpp | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 7 | 2015-01-20T14:28:12.000Z | 2017-01-18T17:21:44.000Z | src/qt/src/3rdparty/webkit/Source/WebCore/storage/IDBCursorBackendImpl.cpp | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 14 | 2015-10-27T06:17:48.000Z | 2020-03-03T06:15:50.000Z | /*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | 36.68254 | 231 | 0.759628 | ant0ine |
6ae4f883c5cdca16b5da44aa1cdd8ca06cc00819 | 4,071 | cpp | C++ | codebase/HDP_TopicModel/testHDP.cpp | JimmyLin192/ConvexLatentVariable | d81d2c465796ada22b370e76eaf22065c5823633 | [
"BSD-3-Clause"
] | 1 | 2015-03-18T00:44:26.000Z | 2015-03-18T00:44:26.000Z | codebase/HDP_TopicModel/testHDP.cpp | JimmyLin192/ConvexLatentVariable | d81d2c465796ada22b370e76eaf22065c5823633 | [
"BSD-3-Clause"
] | null | null | null | codebase/HDP_TopicModel/testHDP.cpp | JimmyLin192/ConvexLatentVariable | d81d2c465796ada22b370e76eaf22065c5823633 | [
"BSD-3-Clause"
] | null | null | null | /*###############################################################
## MODULE: testHDP.cpp
## VERSION: 1.0
## SINCE 2014-07-26
## AUTHOR Jimmy Lin (xl5224) - JimmyLin@utexas.edu
## DESCRIPTION:
##
#################################################################
## Edited by MacVim
## Class Info auto-generated ... | 35.710526 | 90 | 0.573815 | JimmyLin192 |
6ae7c0dabcee283b974222a76a5d3e73c3ca3d85 | 4,458 | cpp | C++ | src/mongo/client/remote_command_targeter_mock.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/client/remote_command_targeter_mock.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/client/remote_command_targeter_mock.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 37.779661 | 100 | 0.725662 | benety |
6aebe6525be97d55d023b8dcf1e00f5e12668c45 | 3,278 | cpp | C++ | Source/bin/opennwa/print-stats.cpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | src/wpds/Source/bin/opennwa/print-stats.cpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | src/wpds/Source/bin/opennwa/print-stats.cpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <fstream>
#include "opennwa/Nwa.hpp"
#include "opennwa/NwaParser.hpp"
#include "opennwa/query/automaton.hpp"
using std::string;
using std::ifstream;
using std::ofstream;
using std::cout;
using std::cerr;
using std::endl... | 38.116279 | 97 | 0.458206 | jusito |
6aedd8614c34c50d9a153f367f5d6875ff09208c | 7,512 | cpp | C++ | tests/envelope/envelope_segment_tests.cpp | Frank-Krick/fr-musp | 4f8f8e4764fd411158e63e4b37d6285d8e1a2885 | [
"MIT"
] | null | null | null | tests/envelope/envelope_segment_tests.cpp | Frank-Krick/fr-musp | 4f8f8e4764fd411158e63e4b37d6285d8e1a2885 | [
"MIT"
] | null | null | null | tests/envelope/envelope_segment_tests.cpp | Frank-Krick/fr-musp | 4f8f8e4764fd411158e63e4b37d6285d8e1a2885 | [
"MIT"
] | null | null | null | #include <catch2/catch_test_macros.hpp>
#include <fr_musp/envelope/envelope_segment.h>
using namespace fr_musp::envelope;
using namespace std::chrono;
using namespace Catch;
TEST_CASE("The empty envelope segment") {
EnvelopeSegment envelopeSegment;
SECTION("Should be size 0") {
REQUIRE(envelopeSegme... | 30.536585 | 73 | 0.622737 | Frank-Krick |
6aeec1f47e524c8b0b28f947348e2e59f4cd7de3 | 1,177 | cpp | C++ | tests/utils/test_partitioning.cpp | FreshDISKANN/FreshDISKANN | c7750ed7ae2df202b3f3a98477199963245c8ba7 | [
"MIT"
] | 6 | 2020-10-13T11:30:53.000Z | 2021-12-03T15:50:15.000Z | tests/utils/test_partitioning.cpp | FreshDISKANN/FreshDISKANN | c7750ed7ae2df202b3f3a98477199963245c8ba7 | [
"MIT"
] | null | null | null | tests/utils/test_partitioning.cpp | FreshDISKANN/FreshDISKANN | c7750ed7ae2df202b3f3a98477199963245c8ba7 | [
"MIT"
] | 3 | 2020-10-13T11:30:55.000Z | 2021-12-02T14:29:42.000Z | //#include <distances.h>
//#include <indexing.h>
#include <index.h>
#include <math_utils.h>
#include "partition_and_pq.h"
// DEPRECATED: NEED TO REPROGRAM
int main(int argc, char** argv) {
auto s = std::chrono::high_resolution_clock::now();
if (argc != 8) {
std::cout << argv[0]
<< " format: dat... | 34.617647 | 80 | 0.598131 | FreshDISKANN |
6aef1dd615b2fcaa3338b0757aeccf81676b8146 | 845 | cpp | C++ | Aoba/src/Constraint/Constraint.cpp | KondoA9/OpenSiv3d-GUIKit | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | null | null | null | Aoba/src/Constraint/Constraint.cpp | KondoA9/OpenSiv3d-GUIKit | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | 32 | 2021-10-09T10:04:11.000Z | 2022-02-25T06:10:13.000Z | Aoba/src/Constraint/Constraint.cpp | athnomedical/Aoba | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | null | null | null | #include "Aoba/Constraint.hpp"
namespace s3d::aoba {
void Constraint::setConstraint(double constant, double multiplier) {
m_constant = constant;
m_multiplier = multiplier;
m_exists = true;
}
void Constraint::setConstraint(double* const watchingValue, double constant, double ... | 30.178571 | 109 | 0.623669 | KondoA9 |
6af04d8ebae37eb836509402d8cec780054ef609 | 6,081 | cpp | C++ | test/test_parallel.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | 2 | 2021-12-31T08:28:17.000Z | 2022-01-12T14:48:49.000Z | test/test_parallel.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | null | null | null | test/test_parallel.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include "pitts_parallel.hpp"
namespace
{
// helper function to determine the currently default number of threads in a parallel region
int get_default_num_threads()
{
int numThreads = 1;
#pragma omp parallel
{
#pragma omp critical (PITTS_TEST_PARALLEL)
numThreads = omp_get_... | 25.766949 | 112 | 0.659924 | melven |
6af13b92c6480f15ebba7901e01d72b097c32f9f | 1,697 | cpp | C++ | src/IParticleBatch2D.cpp | ndongmo/Zombies-Game | 739a0b759c36ab6974af2e50db99c2b736e00964 | [
"MIT"
] | 13 | 2019-02-21T09:05:11.000Z | 2021-12-03T09:11:00.000Z | src/IParticleBatch2D.cpp | ndongmo/Zombies-Game | 739a0b759c36ab6974af2e50db99c2b736e00964 | [
"MIT"
] | null | null | null | src/IParticleBatch2D.cpp | ndongmo/Zombies-Game | 739a0b759c36ab6974af2e50db99c2b736e00964 | [
"MIT"
] | 2 | 2019-09-03T05:45:40.000Z | 2020-03-25T06:10:37.000Z | #include "IParticleBatch2D.h"
namespace NS2
{
IParticleBatch2D::IParticleBatch2D() :
m_decayRate(0),
m_particles(nullptr),
m_maxParticles(0),
m_lastFreeParticle(0)
{
}
IParticleBatch2D::~IParticleBatch2D()
{
delete[] m_particles;
}
void IParticleBatch2D::init(int maxParticles, float decayRate, std... | 19.505747 | 125 | 0.662935 | ndongmo |
6af21752bd63d677c5e8a9ce12de3df5266c878c | 2,223 | cpp | C++ | sandbox/plc4cpp/utils/logger/src/main/cpp/org/apache/plc4x/cpp/utils/logger/ErrorCategory.cpp | apache/incubator-plc4x | e6899ef63e2456a64ef0bd1189d9a7c4472ef04c | [
"Apache-2.0"
] | 60 | 2017-12-20T12:46:34.000Z | 2019-04-15T13:42:45.000Z | sandbox/plc4cpp/utils/logger/src/main/cpp/org/apache/plc4x/cpp/utils/logger/ErrorCategory.cpp | apache/incubator-plc4x | e6899ef63e2456a64ef0bd1189d9a7c4472ef04c | [
"Apache-2.0"
] | 26 | 2018-01-08T22:48:29.000Z | 2019-04-10T08:39:44.000Z | sandbox/plc4cpp/utils/logger/src/main/cpp/org/apache/plc4x/cpp/utils/logger/ErrorCategory.cpp | apache/incubator-plc4x | e6899ef63e2456a64ef0bd1189d9a7c4472ef04c | [
"Apache-2.0"
] | 30 | 2018-01-08T14:04:22.000Z | 2019-04-05T09:43:28.000Z | /*
* 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 ... | 30.875 | 96 | 0.472785 | apache |
6af4d9225e8361d07bb85625579c3e835922c59b | 5,492 | cpp | C++ | CppProject5_3D/CppProject5/src/world/Level1.cpp | Damoy/Tower3D | a6f1ec9fd5e7c26ade5528828cc576f5ed45394a | [
"MIT"
] | 1 | 2019-08-25T03:04:35.000Z | 2019-08-25T03:04:35.000Z | CppProject5_3D/CppProject5/src/world/Level1.cpp | Damoy/Tower3D | a6f1ec9fd5e7c26ade5528828cc576f5ed45394a | [
"MIT"
] | null | null | null | CppProject5_3D/CppProject5/src/world/Level1.cpp | Damoy/Tower3D | a6f1ec9fd5e7c26ade5528828cc576f5ed45394a | [
"MIT"
] | null | null | null | #include "Level1.h"
#include "entities\enemies\SampleAsteroid.h"
#include "utils\maths\Maths.h"
#include "input\InputController.h"
// Level can be configured by Configs
Level1::Level1()
: Level(Configs::LEVEL1_X, Configs::LEVEL1_Y, Configs::LEVEL1_Z, Configs::LEVEL1_WIDTH, Configs::LEVEL1_HEIGHT, Configs::LEVEL1_ENEM... | 25.663551 | 188 | 0.672433 | Damoy |
6af5230f6d4614cdc323851415a78e41522b15c9 | 1,431 | cpp | C++ | stm32f429-ram/Src/PAW_3D_Projection.cpp | sterowniki-robotow-projekt/main-repo | 744252ffa1cc05c18705d3ea5ec0b725f4b62759 | [
"MIT"
] | null | null | null | stm32f429-ram/Src/PAW_3D_Projection.cpp | sterowniki-robotow-projekt/main-repo | 744252ffa1cc05c18705d3ea5ec0b725f4b62759 | [
"MIT"
] | null | null | null | stm32f429-ram/Src/PAW_3D_Projection.cpp | sterowniki-robotow-projekt/main-repo | 744252ffa1cc05c18705d3ea5ec0b725f4b62759 | [
"MIT"
] | null | null | null | #include "PAW_3D_Projection.h"
PAW_Vector project_3D_to_2D(const PAW_Vector point_position)
{
PAW_Vector r_value(4);
PAW_Matrix P(4);
P = projection_matrix(0.0f, 239.0f, 0.0f, 319.0f, 160.0f, 0.0f);
PAW_Matrix Rx(4, 1.0f), Ry(4, 1.0f), Rz(4, 1.0f), Rx2(4, 1.0f);
Rx.to_rotation_matrix(y, z, 0 * 0.0f); //x r... | 30.446809 | 137 | 0.658281 | sterowniki-robotow-projekt |
6af6955d87d82480808275c49a9b88a2f00ee55e | 585 | hpp | C++ | include/ActuationSystem.hpp | AhmedHumais/flight_controller_temp | 2836b4f99b76e856ef0ba0e7ee673669c1c3db7b | [
"BSD-3-Clause"
] | null | null | null | include/ActuationSystem.hpp | AhmedHumais/flight_controller_temp | 2836b4f99b76e856ef0ba0e7ee673669c1c3db7b | [
"BSD-3-Clause"
] | null | null | null | include/ActuationSystem.hpp | AhmedHumais/flight_controller_temp | 2836b4f99b76e856ef0ba0e7ee673669c1c3db7b | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "common_srv/MsgEmitter.hpp"
#include "common_srv/MsgReceiver.hpp"
#include "Actuator.hpp"
#include <vector>
#include "common_srv/Block.hpp"
class ActuationSystem : public MsgEmitter, public Block{
public:
virtual void receiveMsgData(DataMessage* t_msg) = 0;
ActuationSystem(std::ve... | 24.375 | 56 | 0.700855 | AhmedHumais |
6af6fa9e2dbe0164ee1b9692a6b266e8d7aa6e23 | 6,954 | cpp | C++ | Toast-Core/src/ipc.cpp | JacisNonsense/ToastCPP | e4879902aacfcbadff87f1bdce021befee72882a | [
"MIT"
] | 4 | 2016-07-18T13:21:07.000Z | 2017-01-05T05:47:56.000Z | Toast-Core/src/ipc.cpp | JacisNonsense/ToastCPP | e4879902aacfcbadff87f1bdce021befee72882a | [
"MIT"
] | null | null | null | Toast-Core/src/ipc.cpp | JacisNonsense/ToastCPP | e4879902aacfcbadff87f1bdce021befee72882a | [
"MIT"
] | null | null | null | #include "toast/net/socket.hpp"
#include "toast/ipc.hpp"
#include "toast/logger.hpp"
#include <thread>
#include <map>
#include <regex>
#include <queue>
#include "toast/crash.hpp"
#include "toast/concurrent/mutex.hpp"
#include "toast/concurrent/condition.hpp"
using namespace Toast;
static bool started = false;
stati... | 28.617284 | 122 | 0.675726 | JacisNonsense |
6af7b0ba9ac980dab112c48d15ea81c45c526ea6 | 751 | cc | C++ | libs/logger/src/logger.cc | mbits-os/http-router | c02b6a9cf8dd9daadff64d99ae775d9833a5e8de | [
"MIT"
] | null | null | null | libs/logger/src/logger.cc | mbits-os/http-router | c02b6a9cf8dd9daadff64d99ae775d9833a5e8de | [
"MIT"
] | null | null | null | libs/logger/src/logger.cc | mbits-os/http-router | c02b6a9cf8dd9daadff64d99ae775d9833a5e8de | [
"MIT"
] | null | null | null | // Copyright (c) 2022 midnightBITS
// This code is licensed under MIT license (see LICENSE for details)
#include <fmt/format.h>
#include <http-router/filters/logger.hh>
#include <http-router/request.hh>
namespace http_router::filters {
void logger::postproc(request const& req,
header& resp,
... | 35.761905 | 68 | 0.628495 | mbits-os |
6af7b2acec8dca9064c067d32258e313ad5fa91f | 1,667 | hpp | C++ | plugins/YukonOptimizerPlugin/src/base/solver/YukonOutput.hpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | plugins/YukonOptimizerPlugin/src/base/solver/YukonOutput.hpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | plugins/YukonOptimizerPlugin/src/base/solver/YukonOutput.hpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | //$Id$
//------------------------------------------------------------------------------
// YukonOutput
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2020 United States Government as represen... | 35.468085 | 80 | 0.621476 | IncompleteWorlds |
6af9d02de8b6d27999b35e9b533fbd051c38b7b2 | 114 | cpp | C++ | unit_test/cuda/Test_Cuda_Batched_SerialMatUtil_Real.cpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 156 | 2017-03-01T23:38:10.000Z | 2022-03-27T21:28:03.000Z | unit_test/cuda/Test_Cuda_Batched_SerialMatUtil_Real.cpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 1,257 | 2017-03-03T15:25:16.000Z | 2022-03-31T19:46:09.000Z | unit_test/cuda/Test_Cuda_Batched_SerialMatUtil_Real.cpp | dialecticDolt/kokkos-kernels | 00189c0be23a70979aeaa162f0abd4c0e4d1c479 | [
"BSD-3-Clause"
] | 76 | 2017-03-01T17:03:59.000Z | 2022-03-03T21:04:41.000Z | #include "Test_Cuda.hpp"
#include "Test_Batched_SerialMatUtil.hpp"
#include "Test_Batched_SerialMatUtil_Real.hpp"
| 28.5 | 46 | 0.842105 | dialecticDolt |
1390a4ac5c31a33c204aaee203b53eca5dbe0338 | 2,539 | hpp | C++ | Includes/Rosetta/Battlegrounds/Cards/Card.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 62 | 2017-08-21T14:11:00.000Z | 2018-04-23T16:09:02.000Z | Includes/Rosetta/Battlegrounds/Cards/Card.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 37 | 2017-08-21T11:13:07.000Z | 2018-04-30T08:58:41.000Z | Includes/Rosetta/Battlegrounds/Cards/Card.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 10 | 2017-08-21T03:44:12.000Z | 2018-01-10T22:29:10.000Z | // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#ifndef ROSETTASTONE_BATTLEGROUNDS_CARD_HPP
#define ROSETTASTONE_BATTL... | 28.211111 | 77 | 0.704608 | Hearthstonepp |
1392513fd74497e6282b84bbde11025458e2c6b8 | 8,437 | cpp | C++ | ui/src/audiobar.cpp | hveld/qlcplus | 1dd61a5a3a2c93d7fe88cd2a90574c4849b64829 | [
"Apache-2.0"
] | 1 | 2015-03-03T17:30:10.000Z | 2015-03-03T17:30:10.000Z | ui/src/audiobar.cpp | bjlupo/rcva_qlcplus | d367d33f5446c30d5201625e72946cc27f55ae5d | [
"Apache-2.0"
] | null | null | null | ui/src/audiobar.cpp | bjlupo/rcva_qlcplus | d367d33f5446c30d5201625e72946cc27f55ae5d | [
"Apache-2.0"
] | null | null | null | /*
Q Light Controller Plus
audiobar.cpp
Copyright (c) Massimo Callegari
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.txt
Unless r... | 27.937086 | 97 | 0.596065 | hveld |
139370d3d074b2d45342eca6ee94d72757b4e0ec | 3,654 | cpp | C++ | src/jc/JMap.cpp | andrelo1/gotobed-ae | 9b2001e89de0ac479e9b979f01fa3a6475c8cd79 | [
"MIT"
] | 1 | 2022-03-03T17:01:38.000Z | 2022-03-03T17:01:38.000Z | src/jc/JMap.cpp | andrelo1/gotobed-ae | 9b2001e89de0ac479e9b979f01fa3a6475c8cd79 | [
"MIT"
] | null | null | null | src/jc/JMap.cpp | andrelo1/gotobed-ae | 9b2001e89de0ac479e9b979f01fa3a6475c8cd79 | [
"MIT"
] | null | null | null | #include "JMap.h"
#include "jcapistorage.h"
namespace jc::JMap
{
using ApiStorage = jc::api::detail::Storage;
std::int32_t object(void* a_domain)
{
return ApiStorage::get().JMap_object(a_domain);
}
std::int32_t getInt(void* a_domain, std::int32_t a_obj, RE::BSFixedString a_key, std::int32_t a_default)
{
re... | 31.230769 | 123 | 0.735632 | andrelo1 |
1396d8f76b1f38df30410d11c9a91d9edfb0aa01 | 19,668 | cxx | C++ | ds/adsi/nw312/extension.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/adsi/nw312/extension.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/adsi/nw312/extension.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1993.
//
// File: libmain.cxx
//
// Contents: LibMain for ADs.dll
//
// Functions: LibMain, DllGetClassObject
//
// History: 25-Oct-94 Kris... | 23.897934 | 85 | 0.530761 | npocmaka |
139880d9c286eb56c01c125e9c8f234ee9328a71 | 1,632 | hpp | C++ | module-utils/log/api/log/debug.hpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-utils/log/api/log/debug.hpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-utils/log/api/log/debug.hpp | GravisZro/MuditaOS | 4230da15e69350c3ef9e742ec587e5f70154fabd | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#define DEBUG_APPLICATION_MANAGEMENT 0 /// show verbose logs in ApplicationManager
#define DEBUG_SCOPED_TIMINGS 0 /// show timings in measured functions
#define D... | 70.956522 | 116 | 0.723652 | GravisZro |
139967653bc972b520d6fa8224d5c03c3645efc6 | 2,733 | cpp | C++ | Source/WebCore/bindings/js/JSDOMWrapper.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/WebCore/bindings/js/JSDOMWrapper.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/WebCore/bindings/js/JSDOMWrapper.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2010-2018 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... | 44.803279 | 122 | 0.767655 | jacadcaps |
139d39fb44bde055c64e7a5c05f1e4dee59b6216 | 1,035 | cpp | C++ | 02/c++/main.cpp | flopp/aoc2017 | f3a8af48b5df302c9b7b0598f88826d412ac482b | [
"MIT"
] | null | null | null | 02/c++/main.cpp | flopp/aoc2017 | f3a8af48b5df302c9b7b0598f88826d412ac482b | [
"MIT"
] | null | null | null | 02/c++/main.cpp | flopp/aoc2017 | f3a8af48b5df302c9b7b0598f88826d412ac482b | [
"MIT"
] | null | null | null | #include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include <vector>
std::vector<int> split(const std::string& s) {
std::istringstream iss{s};
return std::vector<int>{std::istream_iterator<int>{iss}, {}};
}
int diff_max_min(const std::vector<int>& v) {
int min{v[0]};
int max{... | 21.122449 | 65 | 0.479227 | flopp |
139e6c379b1a3be486138727e769472c69ff126c | 998 | hpp | C++ | include/XP++/Exceptions/XPException.hpp | Andy260/xp-plus-plus | 48f469d333eb50c0d7a4c914644217639084fda6 | [
"MIT"
] | null | null | null | include/XP++/Exceptions/XPException.hpp | Andy260/xp-plus-plus | 48f469d333eb50c0d7a4c914644217639084fda6 | [
"MIT"
] | null | null | null | include/XP++/Exceptions/XPException.hpp | Andy260/xp-plus-plus | 48f469d333eb50c0d7a4c914644217639084fda6 | [
"MIT"
] | null | null | null | #pragma once
// STL includes
#include <exception>
#include <string>
namespace XP
{
/// <summary>
/// Thrown when an error was encountered while calling X-Plane SDK functions
/// </summary>
class XPException : public std::exception
{
public:
/// <summary>
/// Constructs new a XPException
/// </summary>
/... | 26.263158 | 83 | 0.690381 | Andy260 |
13a01fff00ae96fce65edd28156224d88f84f5bc | 3,093 | hxx | C++ | main/toolkit/inc/toolkit/awt/vclxpointer.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/toolkit/inc/toolkit/awt/vclxpointer.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/toolkit/inc/toolkit/awt/vclxpointer.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* 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 y... | 37.719512 | 158 | 0.648885 | Grosskopf |
13a65a66f886c1ea6e3970a4d171ed4748f42ffe | 4,733 | cxx | C++ | Remoting/Views/vtkChartSelectionRepresentation.cxx | kevinsmia1939/ParaView | 06fd014b7fd5c222a4f3fd750531204d0c6988ce | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Remoting/Views/vtkChartSelectionRepresentation.cxx | kevinsmia1939/ParaView | 06fd014b7fd5c222a4f3fd750531204d0c6988ce | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Remoting/Views/vtkChartSelectionRepresentation.cxx | kevinsmia1939/ParaView | 06fd014b7fd5c222a4f3fd750531204d0c6988ce | [
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2019-08-28T09:04:43.000Z | 2020-08-18T11:45:17.000Z | /*=========================================================================
Program: ParaView
Module: vtkChartSelectionRepresentation.cxx
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WIT... | 34.05036 | 98 | 0.601733 | kevinsmia1939 |
13aa76b5e45608ad84cea2bdfb10da10f39159d2 | 6,280 | cpp | C++ | src/reyes/reyes_virtual_machine/not_equal.cpp | cwbaker/sweet_render | 259830adba09fabe4de2eef3537f4a95828965d3 | [
"MIT"
] | 9 | 2019-01-10T21:37:24.000Z | 2021-05-26T23:59:05.000Z | src/reyes/reyes_virtual_machine/not_equal.cpp | cwbaker/sweet_render | 259830adba09fabe4de2eef3537f4a95828965d3 | [
"MIT"
] | null | null | null | src/reyes/reyes_virtual_machine/not_equal.cpp | cwbaker/sweet_render | 259830adba09fabe4de2eef3537f4a95828965d3 | [
"MIT"
] | 1 | 2018-09-05T01:40:09.000Z | 2018-09-05T01:40:09.000Z | //
// not_equal.cpp
// Copyright (c) Charles Baker. All rights reserved.
//
#include "not_equal.hpp"
#include "Dispatch.hpp"
#include "Instruction.hpp"
#include <reyes/assert.hpp>
namespace reyes
{
void not_equal_u1u1( int* result, const float* lhs, const float* rhs, unsigned int /*length*/ )
{
result[0] = lhs[0... | 27.423581 | 100 | 0.516401 | cwbaker |
13aac82aaf1ba28bd4dcdb9f906f134ccc9a9eac | 314 | hpp | C++ | framework/MatrixInterpolation.hpp | aosterthun/rgbdri | 8e513172f512c902f7d6d8631c7580b5b62277c4 | [
"MIT"
] | null | null | null | framework/MatrixInterpolation.hpp | aosterthun/rgbdri | 8e513172f512c902f7d6d8631c7580b5b62277c4 | [
"MIT"
] | null | null | null | framework/MatrixInterpolation.hpp | aosterthun/rgbdri | 8e513172f512c902f7d6d8631c7580b5b62277c4 | [
"MIT"
] | null | null | null | #ifndef GLM_MATRIXINTERPOLATION_H
#define GLM_MATRIXINTERPOLATION_H
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtc/matrix_transform.hpp>
glm::mat4 interpolate(const glm::mat4& a, const glm::mat4& b, float t);
#endif // #ifndef GLM_MATRIXINTERPOLATION_H
| 19.625 | 71 | 0.780255 | aosterthun |
13ac098ed5626641210e97467a834ae10a1f74bc | 405 | cpp | C++ | src/house.cpp | phoemur/cannonball | f30d38839ecc840798a3067406b5a3f6cce417b6 | [
"Unlicense"
] | null | null | null | src/house.cpp | phoemur/cannonball | f30d38839ecc840798a3067406b5a3f6cce417b6 | [
"Unlicense"
] | null | null | null | src/house.cpp | phoemur/cannonball | f30d38839ecc840798a3067406b5a3f6cce417b6 | [
"Unlicense"
] | 2 | 2019-11-11T19:47:36.000Z | 2019-11-22T05:07:19.000Z | #include "house.h"
House::House()
: t{}, mPosX{0}, mPosY{0}
{
t.loadFromFile("./cannonball_assets/house.png");
}
void House::setPos(int x, int y)
{
mPosX = x;
mPosY = y;
}
void House::render()
{
t.render(mPosX, mPosY);
}
SDL_Rect House::getCollider()
{
SDL_Rect res;
res.x = mPosX;
re... | 13.5 | 52 | 0.567901 | phoemur |
13ac348230a5f4c53e58a86c9009f598b0734dc6 | 690 | cpp | C++ | source/mazegenerator/DistanceGrid.cpp | danielplawrence/MazeGeneration | d9d0e878c94226aa379e6ee2a2681f1c99b2f792 | [
"Unlicense"
] | null | null | null | source/mazegenerator/DistanceGrid.cpp | danielplawrence/MazeGeneration | d9d0e878c94226aa379e6ee2a2681f1c99b2f792 | [
"Unlicense"
] | null | null | null | source/mazegenerator/DistanceGrid.cpp | danielplawrence/MazeGeneration | d9d0e878c94226aa379e6ee2a2681f1c99b2f792 | [
"Unlicense"
] | null | null | null |
#include <mazegenerator/DistanceGrid.h>
#include <algorithm>
std::tuple<int, int, int, int, Color> DistanceGrid::contentsOf(CellPtr cell, int cellSize) {
if (distances == nullptr) {
return {};
}
auto location = cell->getLocation();
auto x1 = location.second * cellSize;
auto y1 = location.first * cellSi... | 30 | 92 | 0.646377 | danielplawrence |
13ad1f3cb8a403eddb1d3563f437812f2230cb6c | 3,188 | cpp | C++ | Ouroboros/Source/oLauncher/oLauncher.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oLauncher/oLauncher.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oLauncher/oLauncher.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | // Copyright (c) 2014 Antony Arciuolo. See License.txt regarding use.
#include <oBase/throw.h>
#include <oString/opttok.h>
#include <oGUI/msgbox.h>
//#include <oPlatform/oVersionUpdate.h>
using namespace ouro;
static option sCmdOptions[] =
{
{ 'w', "launcher-wait", "process-id", "Wait for process to ter... | 33.557895 | 276 | 0.668758 | jiangzhu1212 |
13ae086eca08d106484c201a5588ee2026408d57 | 482 | cc | C++ | media/webm/webm_constants.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2017-04-05T01:51:34.000Z | 2018-02-15T03:11:54.000Z | media/webm/webm_constants.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-12-13T19:44:12.000Z | 2021-12-13T19:44:12.000Z | media/webm/webm_constants.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2017-04-05T01:52:03.000Z | 2022-02-13T17:58:45.000Z | // Copyright (c) 2013 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 "media/webm/webm_constants.h"
namespace media {
const char kWebMCodecSubtitles[] = "D_WEBVTT/SUBTITLES";
const char kWebMCodecCaptions[] = ... | 32.133333 | 73 | 0.761411 | nagineni |
13ae1bcdfbff219bffcd1373a67950d465f2c2a7 | 13,347 | cpp | C++ | Source/Readers/ReaderLib/IndexBuilder.cpp | shyamalschandra/CNTK | 0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d | [
"MIT"
] | 17,702 | 2016-01-25T14:03:01.000Z | 2019-05-06T09:23:41.000Z | Source/Readers/ReaderLib/IndexBuilder.cpp | shyamalschandra/CNTK | 0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d | [
"MIT"
] | 3,489 | 2016-01-25T13:32:09.000Z | 2019-05-03T11:29:15.000Z | Source/Readers/ReaderLib/IndexBuilder.cpp | shyamalschandra/CNTK | 0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d | [
"MIT"
] | 5,180 | 2016-01-25T14:02:12.000Z | 2019-05-06T04:24:28.000Z | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#define __STDC_FORMAT_MACROS
#define _CRT_SECURE_NO_WARNINGS
#include <inttypes.h>
#include <future>
#include "IndexBuilder.h"
#include "ReaderConstants.h"
#in... | 29.726058 | 120 | 0.592493 | shyamalschandra |
13ae6c1d193c6b9c313226f1722ce9b72f6f5b0e | 1,625 | cpp | C++ | CF/contests/670d2/d.cpp | death-shadow/Competitive-Coding-Solutions | fc4f7cbcac275d263f3356e2cc901e676b97c257 | [
"MIT"
] | 2 | 2019-07-12T14:56:19.000Z | 2020-05-01T20:04:41.000Z | CF/contests/670d2/d.cpp | death-shadow/Competitive-Coding-Solutions | fc4f7cbcac275d263f3356e2cc901e676b97c257 | [
"MIT"
] | 7 | 2020-09-21T16:52:23.000Z | 2020-11-07T09:12:24.000Z | CF/contests/670d2/d.cpp | death-shadow/Competitive-Coding-Solutions | fc4f7cbcac275d263f3356e2cc901e676b97c257 | [
"MIT"
] | 5 | 2020-10-01T16:51:49.000Z | 2020-10-02T06:00:56.000Z | #include <bits/stdc++.h>
#define FAST_IO ios_base::sync_with_stdio(false); cin.tie(NULL)
#define endl "\n"
#define CPrint(c) for(auto i:(c)) { cout<<i<<" "; } nl
#define eb emplace_back
#define ef emplace_front
#define pb push_back
#define pf push_front
#define popb pop_back
#define popf pop_front
#define mp ... | 22.260274 | 105 | 0.626462 | death-shadow |
13af13cf296f0cfd48e1a54b3a4bb465bf898961 | 504 | cpp | C++ | HackerEarth/sorting/sorting using cmp function.cpp | vivekagal1998/Competitve_Coding | 80443d4db0410400d3af2b641f563d30e40da78c | [
"MIT"
] | null | null | null | HackerEarth/sorting/sorting using cmp function.cpp | vivekagal1998/Competitve_Coding | 80443d4db0410400d3af2b641f563d30e40da78c | [
"MIT"
] | null | null | null | HackerEarth/sorting/sorting using cmp function.cpp | vivekagal1998/Competitve_Coding | 80443d4db0410400d3af2b641f563d30e40da78c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long int
#define rep(i,a,b) for (ll i = a; i<b; ++i)
using namespace std;
struct pai
{
int a;
int b;
};
bool cmp(struct pai s){
if (s.a>s.b)
{
return true;
}
return false;
}
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n... | 13.621622 | 44 | 0.505952 | vivekagal1998 |
13af46a8f34f2fb85674b43d8d262cb27f6271c3 | 3,665 | cpp | C++ | src/metafs/mim/mfs_mim_top.cpp | mjlee34/poseidonos | 8eff75c5ba7af8090d3ff4ac51d7507b37571f9b | [
"BSD-3-Clause"
] | null | null | null | src/metafs/mim/mfs_mim_top.cpp | mjlee34/poseidonos | 8eff75c5ba7af8090d3ff4ac51d7507b37571f9b | [
"BSD-3-Clause"
] | null | null | null | src/metafs/mim/mfs_mim_top.cpp | mjlee34/poseidonos | 8eff75c5ba7af8090d3ff4ac51d7507b37571f9b | [
"BSD-3-Clause"
] | null | null | null | /*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain th... | 29.796748 | 75 | 0.681855 | mjlee34 |
13affb5f7fd1824bbfae9033c7b7dd8f3a4c2865 | 82,300 | cpp | C++ | external/openglcts/modules/common/glcPackedDepthStencilTests.cpp | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | 20 | 2019-04-18T07:37:34.000Z | 2022-02-02T21:43:47.000Z | external/openglcts/modules/common/glcPackedDepthStencilTests.cpp | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | 11 | 2019-10-21T13:39:41.000Z | 2021-11-05T08:11:54.000Z | external/openglcts/modules/common/glcPackedDepthStencilTests.cpp | tarceri/VK-GL-CTS | 22389a0e44f458492f594ca0553a5a67cf6c7ada | [
"Apache-2.0"
] | 1 | 2021-12-03T18:11:36.000Z | 2021-12-03T18:11:36.000Z | /*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2017 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | 29.721921 | 117 | 0.728493 | tarceri |
13b2390b822b62ab1474de3490808be550991b84 | 1,550 | cpp | C++ | ipc/src/platform/win32/win_semaphore.cpp | c-liang/inter-process-communication | 3ce322a425808f6c7ab180b335cbf4cdc02f121a | [
"MIT"
] | 1 | 2021-01-05T08:50:57.000Z | 2021-01-05T08:50:57.000Z | ipc/src/platform/win32/win_semaphore.cpp | c-liang/inter-process-communication | 3ce322a425808f6c7ab180b335cbf4cdc02f121a | [
"MIT"
] | null | null | null | ipc/src/platform/win32/win_semaphore.cpp | c-liang/inter-process-communication | 3ce322a425808f6c7ab180b335cbf4cdc02f121a | [
"MIT"
] | null | null | null | #include "win_semaphore.h"
#include "pch.h"
_IPC_BEGIN
Semaphore::Semaphore(std::wstring const& const name) : semaphore_name(name) {}
Semaphore::~Semaphore() {
this->close();
}
auto Semaphore::create() -> HRESULT {
// disable security
SECURITY_ATTRIBUTES sa;
SECURITY_DESCRIPTOR sd;
InitializeSecurityDescri... | 25 | 80 | 0.694839 | c-liang |
13b43e0aea82e83147f200372dead373675e5bfa | 9,048 | cpp | C++ | VS2005/GeneralCtrl/DxButton.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | VS2005/GeneralCtrl/DxButton.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | VS2005/GeneralCtrl/DxButton.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | 1 | 2020-06-13T08:34:26.000Z | 2020-06-13T08:34:26.000Z | // DxButton.cpp : implementation file
//
#include "stdafx.h"
#include "DxButton.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDxButton
CDxButton::CDxButton()
{
m_... | 22.790932 | 99 | 0.65252 | cuongquay |
13b785434c604bb265b59a736c395c088dbb5539 | 5,658 | cpp | C++ | recolumn.cpp | shawnw/unicode-text-utils | 9bf33bfe367c0bf81f1574bb632fe38747af6668 | [
"MIT"
] | null | null | null | recolumn.cpp | shawnw/unicode-text-utils | 9bf33bfe367c0bf81f1574bb632fe38747af6668 | [
"MIT"
] | null | null | null | recolumn.cpp | shawnw/unicode-text-utils | 9bf33bfe367c0bf81f1574bb632fe38747af6668 | [
"MIT"
] | null | null | null | /*
* Copyright © 2021 Shawn Wagner
*
* 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, merge, publish,... | 29.015385 | 80 | 0.610817 | shawnw |
13b7896a8048225540c73ee7b5c88a6c9598b4c5 | 2,874 | hpp | C++ | source/nth_fibonacci_number.hpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | source/nth_fibonacci_number.hpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | source/nth_fibonacci_number.hpp | pawel-kieliszczyk/algorithms | 0703ec99ce9fb215709b56fb0eefbdd576c71ed2 | [
"MIT"
] | null | null | null | #ifndef PK_NTHFIBONACCINUMBER_HPP
#define PK_NTHFIBONACCINUMBER_HPP
#include <algorithm>
namespace pk
{
int nth_fibonacci_number(int n)
{
if(n == 0)
return 0;
int m_prev[2][2] = {{1, 0}, {0, 1}};
int m_next[2][2];
int (*m_prev_p)[2] = m_prev;
int (*m_next_p)[2] = m_next;
int c_n... | 27.371429 | 103 | 0.504175 | pawel-kieliszczyk |
13b81957e3c23335c4e4f5dfeae6f4c204624eb5 | 10,759 | cpp | C++ | project/source/game/panels/SaveLoadPanel.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | 1 | 2016-04-30T15:34:11.000Z | 2016-04-30T15:34:11.000Z | project/source/game/panels/SaveLoadPanel.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | null | null | null | project/source/game/panels/SaveLoadPanel.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | 1 | 2018-11-30T23:32:58.000Z | 2018-11-30T23:32:58.000Z | #include "Pch.h"
#include "GameCore.h"
#include "SaveLoadPanel.h"
#include "SaveState.h"
#include "Language.h"
#include "KeyStates.h"
#include "Class.h"
#include "Scrollbar.h"
#include "Net.h"
#include "World.h"
#include "Level.h"
#include "Game.h"
#include "GlobalGui.h"
#include "GetTextDialog.h"
#include "GameMenu.h"... | 25.555819 | 115 | 0.549215 | ntnt |
13b822e2ff9202767f156fd5308495b394ca2378 | 241 | hpp | C++ | src/adjustment/rotate.hpp | corneliusyan/Protoshop | 66fb204554822e6da6416f495622a2b7d5be73ec | [
"MIT"
] | 1 | 2020-09-23T19:18:23.000Z | 2020-09-23T19:18:23.000Z | src/adjustment/rotate.hpp | corneliusyan/Protoshop | 66fb204554822e6da6416f495622a2b7d5be73ec | [
"MIT"
] | null | null | null | src/adjustment/rotate.hpp | corneliusyan/Protoshop | 66fb204554822e6da6416f495622a2b7d5be73ec | [
"MIT"
] | 2 | 2020-09-15T13:52:59.000Z | 2021-12-15T02:44:36.000Z | #ifndef PROTOSHOP_ADJUSTMENT_ROTATE
#define PROTOSHOP_ADJUSTMENT_ROTATE
#include "base.hpp"
class AdjustmentRotate : public Adjustment {
public:
static void rotate90CCW(Image* target);
static void rotate90CW(Image* target);
};
#endif
| 18.538462 | 44 | 0.792531 | corneliusyan |
13b8a89c31b349cae47a430a26e18557deec8049 | 3,173 | cpp | C++ | examples/TX2/c/tx2_camera_scale_appsink.cpp | jolibrain/libvnn | 0b7869c95dd0037db716157827659cfca6148443 | [
"Apache-2.0"
] | 3 | 2019-04-23T13:05:04.000Z | 2020-06-11T10:53:58.000Z | examples/TX2/c/tx2_camera_scale_appsink.cpp | jolibrain/libvnn | 0b7869c95dd0037db716157827659cfca6148443 | [
"Apache-2.0"
] | null | null | null | examples/TX2/c/tx2_camera_scale_appsink.cpp | jolibrain/libvnn | 0b7869c95dd0037db716157827659cfca6148443 | [
"Apache-2.0"
] | null | null | null | #include <cstdlib>
#include <gst/gst.h>
#include <gst/gstinfo.h>
#include <gst/app/gstappsink.h>
#include <glib-unix.h>
#include <dlfcn.h>
#include <iostream>
#include <sstream>
#include <thread>
using namespace std;
#define USE(x) ((void)(x))
static GstPipeline *gst_pipeline = nullptr;
static string launch_string;... | 26.441667 | 98 | 0.647022 | jolibrain |
13ba4210c70a9164a07606e01c1b43e3e9a45206 | 10,144 | cpp | C++ | Chapter16/FDMCPPBOOK2004/ParabolicFDM.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter16/FDMCPPBOOK2004/ParabolicFDM.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter16/FDMCPPBOOK2004/ParabolicFDM.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | // parabolicFDM.cpp
//
// Finite difference method for Parabolic PDE.
//
// Last modification dates:
//
// 2000-7-30 DD kick-off code. The member 'theta' is for a future version
// 2000-8-1 DD more improvements, specific use of Array code
// 2000-8-2 DD getting ready for Robert and Jasmin
// 2001-1-30 DD debugging and ... | 26.554974 | 121 | 0.651518 | alamlam1982 |
13bc7c9db02a800bd632b458194e37aabdeca05f | 3,760 | cpp | C++ | VST3 SDK/public.sdk/samples/vst/mda-vst3/source/mdaRingModProcessor.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | 2 | 2020-10-25T09:03:03.000Z | 2021-06-24T13:20:01.000Z | VST3 SDK/public.sdk/samples/vst/mda-vst3/source/mdaRingModProcessor.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | null | null | null | VST3 SDK/public.sdk/samples/vst/mda-vst3/source/mdaRingModProcessor.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | 1 | 2021-12-18T06:30:51.000Z | 2021-12-18T06:30:51.000Z | /*
* mdaRingModProcessor.cpp
* mda-vst3
*
* Created by Arne Scheffler on 6/14/08.
*
* mda VST Plug-ins
*
* Copyright (c) 2008 Paul Kellett
*
* 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... | 29.606299 | 464 | 0.577394 | jagilley |
13bc898cfd5a5c119b63231738fa9b048ea9e8ac | 4,835 | cc | C++ | chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_fetcher_win_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_fetcher_win_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_fetcher_win_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 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/browser/safe_browsing/chrome_cleaner/chrome_cleaner_fetcher_win.h"
#include "base/base_paths.h"
#include "base/bind.h"
#include "base/bi... | 34.784173 | 83 | 0.748501 | metux |
13be01130bca7b9b3d5ef931e076d9dc9b369f7a | 349 | cpp | C++ | Languages/C++/hanoi.cpp | bluey-crypto/Hacktoberfest | c826d5faf1d1c860dbffe665e6a7cf1e35ba76ba | [
"MIT"
] | 1 | 2020-10-03T03:17:03.000Z | 2020-10-03T03:17:03.000Z | Languages/C++/hanoi.cpp | bluey-crypto/Hacktoberfest | c826d5faf1d1c860dbffe665e6a7cf1e35ba76ba | [
"MIT"
] | 1 | 2020-10-01T18:03:45.000Z | 2020-10-01T18:03:45.000Z | Languages/C++/hanoi.cpp | bluey-crypto/Hacktoberfest | c826d5faf1d1c860dbffe665e6a7cf1e35ba76ba | [
"MIT"
] | 4 | 2020-10-07T14:58:50.000Z | 2020-10-24T10:13:17.000Z | #include<iostream>
using namespace std;
void TowerOfHanoi(int n,char src,char help,char dest){
if(n==0)
return;
TowerOfHanoi(n-1,src,dest,help);
cout<<"Moving "<<n<<"th disk from "<<src<<" to "<<dest<<"\n";
TowerOfHanoi(n-1,help,src,dest);
}
int main(){
int n;
cin>>n;
TowerOfHanoi(n,... | 23.266667 | 65 | 0.584527 | bluey-crypto |
13be9ce0fa7b9780567a5c94aba0cac633b8e3d8 | 14,155 | cpp | C++ | ConsensusCore/src/Tests/TestRecursors.cpp | pb-cdunn/pbccs | fb327a7145791d3c023bc63717f5de2925225ccc | [
"BSD-3-Clause-Clear"
] | null | null | null | ConsensusCore/src/Tests/TestRecursors.cpp | pb-cdunn/pbccs | fb327a7145791d3c023bc63717f5de2925225ccc | [
"BSD-3-Clause-Clear"
] | null | null | null | ConsensusCore/src/Tests/TestRecursors.cpp | pb-cdunn/pbccs | fb327a7145791d3c023bc63717f5de2925225ccc | [
"BSD-3-Clause-Clear"
] | null | null | null | // Copyright (c) 2011-2013, Pacific Biosciences of California, Inc.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted (subject to the limitations in the
// disclaimer below) provided that the following conditions are met:
//
// * Redistri... | 31.952596 | 92 | 0.609255 | pb-cdunn |
13c0bf59bb43fd5df9396767cca156db76a4f24a | 793 | cpp | C++ | src/SFECS/TagManager.cpp | allindevelopers/sfecs | f6ce97dbd5e3bcf90475c3d68bf33211db7a2fbe | [
"Zlib"
] | 1 | 2022-03-19T14:00:38.000Z | 2022-03-19T14:00:38.000Z | src/SFECS/TagManager.cpp | iamandrewluca/sfecs | f6ce97dbd5e3bcf90475c3d68bf33211db7a2fbe | [
"Zlib"
] | null | null | null | src/SFECS/TagManager.cpp | iamandrewluca/sfecs | f6ce97dbd5e3bcf90475c3d68bf33211db7a2fbe | [
"Zlib"
] | 1 | 2020-09-23T20:12:30.000Z | 2020-09-23T20:12:30.000Z | #include "SFECS/TagManager.hpp"
//#include "Manager.hpp"
#include "SFECS/Entity.hpp"
namespace sfecs {
TagManager::TagManager() {
//this->world = &world;
}
Entity& TagManager::getEntity(const std::string tag) {
return *tagByEntity[tag];
}
bool TagManager::isSubscribed(const std::string tag) {
return (tag... | 18.44186 | 56 | 0.656999 | allindevelopers |
13c0d73a0b1ec553bc6a96ef93664bd47e2a53cb | 2,797 | cpp | C++ | src/demos/ChainDemo.cpp | danielroth1/CAE | 7eaa096e45fd32f55bd6de94c30dcf706c6f2093 | [
"MIT"
] | 5 | 2019-04-20T17:48:10.000Z | 2022-01-06T01:39:33.000Z | src/demos/ChainDemo.cpp | danielroth1/CAE | 7eaa096e45fd32f55bd6de94c30dcf706c6f2093 | [
"MIT"
] | null | null | null | src/demos/ChainDemo.cpp | danielroth1/CAE | 7eaa096e45fd32f55bd6de94c30dcf706c6f2093 | [
"MIT"
] | 2 | 2020-08-04T20:21:00.000Z | 2022-03-16T15:01:04.000Z | #include "ChainDemo.h"
#include <ApplicationControl.h>
#include <simulation/rigid/RigidBody.h>
#include <simulation/constraints/BallJoint.h>
#include <simulation/forces/LinearForce.h>
#include <scene/data/geometric/GeometricPoint.h>
using namespace Eigen;
ChainDemo::ChainDemo(ApplicationControl& ac)
: mAc(ac... | 33.297619 | 93 | 0.561316 | danielroth1 |
13c6d47b53ee75816edaac3d4ad9dd683851b300 | 6,770 | cc | C++ | bootid-logger/bootid_logger.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | bootid-logger/bootid_logger.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | bootid-logger/bootid_logger.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 The Chromium OS 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 <deque>
#include <fstream>
#include <sstream>
#include <string>
#include <utility>
#include <fcntl.h>
#include <stdio.h>
#include <sys/file.h... | 29.692982 | 79 | 0.666765 | dgreid |
13c88010fdb10ed41197f7db26bbc1c62f2434b7 | 1,522 | hpp | C++ | src/jadx/api/JadxArgs.hpp | oyamoh-brian/pyjadx | ecdd9f9e5e70de7fe4168ed028a27b667170ef32 | [
"Apache-2.0"
] | 3 | 2021-06-17T03:07:33.000Z | 2022-02-12T14:12:12.000Z | src/jadx/api/JadxArgs.hpp | oyamoh-brian/pyjadx | ecdd9f9e5e70de7fe4168ed028a27b667170ef32 | [
"Apache-2.0"
] | null | null | null | src/jadx/api/JadxArgs.hpp | oyamoh-brian/pyjadx | ecdd9f9e5e70de7fe4168ed028a27b667170ef32 | [
"Apache-2.0"
] | 5 | 2020-09-24T09:42:30.000Z | 2021-06-04T12:03:20.000Z | /* Copyright 2018 R. Thomas
*
* 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 wr... | 25.79661 | 78 | 0.724047 | oyamoh-brian |
13c8d65fb112b1531bb586ac9d78aad167bb2c1b | 73,447 | cpp | C++ | smallvm/runtime/builtinmethods.cpp | mobadarah/kalimat-lang | 9eb6c64dd5380efaf863b619a506ebf000be7fd9 | [
"Apache-2.0"
] | 6 | 2021-07-05T15:35:33.000Z | 2022-03-25T21:21:43.000Z | smallvm/runtime/builtinmethods.cpp | anasawad/kalimat | 830cbe9ddde13865bc1f77a2f74efd3dac3b58cc | [
"Apache-2.0"
] | null | null | null | smallvm/runtime/builtinmethods.cpp | anasawad/kalimat | 830cbe9ddde13865bc1f77a2f74efd3dac3b58cc | [
"Apache-2.0"
] | 1 | 2022-03-25T21:15:33.000Z | 2022-03-25T21:15:33.000Z | /**************************************************************************
** The Kalimat programming language
** Copyright 2010 Mohamed Samy Ali - samy2004@gmail.com
** This project is released under the Apache License version 2.0
** as described in the included license.txt file
*************************... | 32.398324 | 125 | 0.626588 | mobadarah |
13c9ea198c307d2022e1ff3d0e5f3797e3150574 | 550 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlDocument.PreserveWhitespace Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlDocument.PreserveWhitespace Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlDocument.PreserveWhitespace Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
// <Snippet1>
#using <System.Xml.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
int main()
{
//Load XML data which includes white space, but ignore
//any white space in the file.
XmlDocument^ doc = gcnew XmlDocument;
doc->PreserveWhitespace = false... | 22 | 58 | 0.636364 | hamarb123 |
13cb1f57f15f7fc9675cc13b4e8d934bb7121c62 | 7,934 | cpp | C++ | Firmware/or_firmware/ideas/ideas.cpp | razanskylab/Quadrature_Decoder_Board | d12b3d4c3254913a3005cdd44f546e1326324a30 | [
"MIT"
] | null | null | null | Firmware/or_firmware/ideas/ideas.cpp | razanskylab/Quadrature_Decoder_Board | d12b3d4c3254913a3005cdd44f546e1326324a30 | [
"MIT"
] | 2 | 2020-10-25T16:15:04.000Z | 2020-10-31T16:30:16.000Z | Firmware/or_firmware/ideas/ideas.cpp | razanskylab/Quadrature_Decoder_Board | d12b3d4c3254913a3005cdd44f546e1326324a30 | [
"MIT"
] | null | null | null | #include "teensy_lib.h"
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
void setup_io_pins() {
for (uint8_t i=0; i<8; i++)
{
pinMode(pinTable[i],INPUT_PULLUP);
}
pinMode(HCTL_RST_PIN, OUTPUT);
pinMode(HCTL_OE_PIN, OUTPUT);
pinMode(HCTL_SEL_PIN, OUTPUT);
pinMode(BUSY... | 33.618644 | 88 | 0.582052 | razanskylab |
13cb7ca4ad6e78c400553c1866f4fe7597d4f442 | 14,401 | cc | C++ | components/subresource_filter/content/browser/content_subresource_filter_web_contents_helper.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 76 | 2020-09-02T03:05:41.000Z | 2022-03-30T04:40:55.000Z | components/subresource_filter/content/browser/content_subresource_filter_web_contents_helper.cc | blueboxd/chromium-legacy | 07223bc94bd97499909c9ed3c3f5769d718fe2e0 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 45 | 2020-09-02T03:21:37.000Z | 2022-03-31T22:19:45.000Z | components/subresource_filter/content/browser/content_subresource_filter_web_contents_helper.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2020-07-22T18:49:18.000Z | 2022-02-08T10:27:16.000Z | // Copyright 2021 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 "components/subresource_filter/content/browser/content_subresource_filter_web_contents_helper.h"
#include <memory>
#include <utility>
#include ... | 40.911932 | 105 | 0.75467 | Yannic |
13cd91429a6fa92865fb68a00bd30cce641f2a30 | 5,774 | cpp | C++ | FTSE/GenericPatcher.cpp | melindil/FTSE | c0b54194900ac45ce1ecc778d838a72d09278bab | [
"MIT"
] | 3 | 2019-10-05T15:51:12.000Z | 2021-01-08T21:58:48.000Z | FTSE/GenericPatcher.cpp | melindil/FTSE | c0b54194900ac45ce1ecc778d838a72d09278bab | [
"MIT"
] | 2 | 2021-06-04T13:42:16.000Z | 2021-07-27T10:38:38.000Z | FTSE/GenericPatcher.cpp | melindil/FTSE | c0b54194900ac45ce1ecc778d838a72d09278bab | [
"MIT"
] | 2 | 2018-07-03T11:31:11.000Z | 2021-06-16T21:05:38.000Z | /* MIT License
Copyright (c) 2018 melindil
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, merge, publish, distr... | 25.436123 | 116 | 0.663665 | melindil |
13cdd59b5541a4979404d583295c43a6e54f437a | 489 | cpp | C++ | book/cpp_templates/tmplbook/traits/issame.cpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | book/cpp_templates/tmplbook/traits/issame.cpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | book/cpp_templates/tmplbook/traits/issame.cpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | #include "issame.hpp"
#include <iostream>
template<typename T>
void fooImpl(T, TrueType)
{
std::cout << "fooImpl(T,true) for int called\n";
}
template<typename T>
void fooImpl(T, FalseType)
{
std::cout << "fooImpl(T,false) for other type called\n";
}
template<typename T>
void foo(T t)
{
fooImpl(t, IsSameT<T,in... | 18.111111 | 78 | 0.654397 | houruixiang |