hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f0c3c448ae36049015e4ee6600dd6f8106476b5c | 3,980 | cpp | C++ | HamurEngine/Hamur/src/game/hamurObject.cpp | ttesla/hamur | 02a31b4fec9bb3527289a38cdde842a93772be41 | [
"MIT"
] | null | null | null | HamurEngine/Hamur/src/game/hamurObject.cpp | ttesla/hamur | 02a31b4fec9bb3527289a38cdde842a93772be41 | [
"MIT"
] | null | null | null | HamurEngine/Hamur/src/game/hamurObject.cpp | ttesla/hamur | 02a31b4fec9bb3527289a38cdde842a93772be41 | [
"MIT"
] | null | null | null | #include "hamurObject.h"
#include "../hamurTextureManager.h"
#include "../helper/hamurMath.h"
#include "../helper/hamurLog.h"
#include "../hamurDefinitions.h"
#include "../helper/hamurColor.h"
#include "hamurAnimation.h"
namespace hamur
{
HamurObject::HamurObject(const string& name)
:mName(name), m... | 25.512821 | 111 | 0.661558 | ttesla |
f0ca1e07c5a7a1fc9f53bccc831b79b8de6de891 | 827 | hpp | C++ | src/lib/sampling/sampler_primitives.hpp | idangerichter/CryptoWorkshop | c8d5e202fe3d02c85e58c8c01978db013a81eccd | [
"WTFPL"
] | null | null | null | src/lib/sampling/sampler_primitives.hpp | idangerichter/CryptoWorkshop | c8d5e202fe3d02c85e58c8c01978db013a81eccd | [
"WTFPL"
] | null | null | null | src/lib/sampling/sampler_primitives.hpp | idangerichter/CryptoWorkshop | c8d5e202fe3d02c85e58c8c01978db013a81eccd | [
"WTFPL"
] | null | null | null | #pragma once
#include "sampler_primitive.hpp"
//------------------------------------------------------------------------
// This file contains implementation of several useful sampler primitives.
//------------------------------------------------------------------------
// Simple sampler primitive. Preparation is no-... | 31.807692 | 79 | 0.650544 | idangerichter |
f0cd3f7de6c7d5dd50a62402017a28cf814709dc | 493 | cpp | C++ | lib/strmm.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | 6 | 2015-12-13T09:10:11.000Z | 2022-02-09T23:18:22.000Z | lib/strmm.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | lib/strmm.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | 2 | 2019-02-01T06:46:36.000Z | 2022-02-09T23:18:24.000Z | //
// strmm.cpp
// Linear Algebra Template Library
//
// Created by Rodney James on 1/1/13.
// Copyright (c) 2013 University of Colorado Denver. All rights reserved.
//
#include "blas.h"
#include "trmm.h"
using LATL::TRMM;
int strmm_(char& side, char& uplo, char& trans, char& diag, int &m, int &n, float& alpha, ... | 22.409091 | 129 | 0.64503 | langou |
f0d689720d417ebda71d44526c4debbef0b702a6 | 1,922 | cpp | C++ | glhelper/utils/pathutils.cpp | Wumpf/glhelper | de4658f4918533dfac25acf99fc3e5802743210b | [
"MIT"
] | 14 | 2015-01-18T21:13:21.000Z | 2021-12-21T01:03:16.000Z | glhelper/utils/pathutils.cpp | Jojendersie/glhelper | 7e59fcb09bb7332cf48c1831db1ff5f59de0af81 | [
"MIT"
] | 7 | 2015-06-15T19:09:13.000Z | 2015-11-26T09:22:10.000Z | glhelper/utils/pathutils.cpp | Wumpf/glhelper | de4658f4918533dfac25acf99fc3e5802743210b | [
"MIT"
] | 5 | 2015-06-15T13:22:18.000Z | 2021-10-31T00:26:01.000Z | #include "pathutils.hpp"
#include <glhelperconfig.hpp>
namespace PathUtils
{
/// Concats to paths.
std::string AppendPath(const std::string& _leftPath, const std::string& _rightPath)
{
return CanonicalizePath(_leftPath + "/" + _rightPath);
}
std::string CanonicalizePath(const std::string& _path)
{
std::stri... | 28.264706 | 118 | 0.676899 | Wumpf |
f0d7a552dab581c95d8235232326542d50d3acde | 1,168 | cpp | C++ | Cpp_AcceleratedRT03/src/Lights/CuboidLight.cpp | afritz1/CppRayTracer | 0b69c7713680e7d9540478a6d743908fe794bdba | [
"MIT"
] | 1 | 2020-11-28T22:10:16.000Z | 2020-11-28T22:10:16.000Z | Cpp_AcceleratedRT03/src/Lights/CuboidLight.cpp | afritz1/CppRayTracer | 0b69c7713680e7d9540478a6d743908fe794bdba | [
"MIT"
] | null | null | null | Cpp_AcceleratedRT03/src/Lights/CuboidLight.cpp | afritz1/CppRayTracer | 0b69c7713680e7d9540478a6d743908fe794bdba | [
"MIT"
] | null | null | null | #include "CuboidLight.h"
#include "../Accelerators/BoundingBox.h"
#include "../Intersections/Intersection.h"
#include "../Materials/Flat.h"
#include "../Materials/Material.h"
#include "../Rays/Ray.h"
CuboidLight::CuboidLight(const Vector3 &point)
: CuboidLight(point, 0.5 + Utility::rand0To1(), 0.5 + Utility::... | 25.955556 | 90 | 0.700342 | afritz1 |
f0eeac6b3152ddb0d56933f796865fd99b9053b6 | 221 | cpp | C++ | Workshop4-Inheritence/task4/rectangle.cpp | mathewsjoyy/c-Practise-Files | 4367555c3f4aa2b2d084b57791eae853f47ad36c | [
"MIT"
] | null | null | null | Workshop4-Inheritence/task4/rectangle.cpp | mathewsjoyy/c-Practise-Files | 4367555c3f4aa2b2d084b57791eae853f47ad36c | [
"MIT"
] | null | null | null | Workshop4-Inheritence/task4/rectangle.cpp | mathewsjoyy/c-Practise-Files | 4367555c3f4aa2b2d084b57791eae853f47ad36c | [
"MIT"
] | null | null | null | #include "rectangle.h"
double Rectangle::area() const {
return width * height;
}
Rectangle Rectangle::operator+(const Rectangle& r) const
{
return Rectangle(this -> width + r.width, this -> height + r.height);
} | 22.1 | 73 | 0.683258 | mathewsjoyy |
e7c4039ff960d41dca343bf3dd3d2c2a439e95b9 | 35,271 | cc | C++ | src/Distributed/RedistributeNodes.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Distributed/RedistributeNodes.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Distributed/RedistributeNodes.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// RedistributeNodes -- An abstract base class for methods that repartition
// the Spheral++ NodeLists among domains.
//
// Created by JMO, Tue Feb 4 14:23:11 PST 2003
//--------------------------------------------------------------------... | 41.59316 | 183 | 0.631454 | jmikeowen |
e7c62bd17fb0219b69e0cea3be5ff7e18e9587a9 | 4,630 | cpp | C++ | src/CPluginWeatherSystem.cpp | omggomb/Plugin_WeatherSystem | c616ebb42101f8aacc2abae4f45c50918baf281b | [
"BSD-2-Clause"
] | 4 | 2016-03-16T21:16:47.000Z | 2021-04-13T22:22:47.000Z | src/CPluginWeatherSystem.cpp | omggomb/Plugin_WeatherSystem | c616ebb42101f8aacc2abae4f45c50918baf281b | [
"BSD-2-Clause"
] | 1 | 2017-11-12T21:09:21.000Z | 2017-12-16T06:18:46.000Z | src/CPluginWeatherSystem.cpp | omggomb/Plugin_WeatherSystem | c616ebb42101f8aacc2abae4f45c50918baf281b | [
"BSD-2-Clause"
] | 2 | 2019-03-07T21:11:08.000Z | 2021-04-13T22:22:50.000Z | /* WeatherSystem_Plugin - for licensing and copyright see license.txt */
#include <StdAfx.h>
#include "CPluginWeatherSystem.h"
namespace WeatherSystemPlugin
{
CPluginWeatherSystem *gPlugin = NULL;
CPluginWeatherSystem::CPluginWeatherSystem()
{
gPlugin = this;
m_pWeatherSystem = new CWeatherSystem();
}
CPluginWeat... | 22.259615 | 155 | 0.700864 | omggomb |
e7c926cadff767d9424c88a77fecbb729ce4dfd4 | 551 | cpp | C++ | impl/gui/sdl/src/gui_sdl.cpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 50 | 2015-01-15T10:00:31.000Z | 2022-02-04T20:45:25.000Z | impl/gui/sdl/src/gui_sdl.cpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 88 | 2020-03-15T17:40:04.000Z | 2022-03-15T08:21:44.000Z | impl/gui/sdl/src/gui_sdl.cpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 19 | 2017-03-11T04:32:01.000Z | 2022-01-12T22:47:12.000Z | #include "lxgui/impl/gui_sdl.hpp"
#include <lxgui/impl/input_sdl_source.hpp>
#include <lxgui/gui_manager.hpp>
namespace lxgui {
namespace gui {
namespace sdl
{
utils::owner_ptr<gui::manager> create_manager(SDL_Window* pWindow, SDL_Renderer* pRenderer,
bool bInitialiseSDLImage)
{
return utils::make... | 26.238095 | 105 | 0.700544 | cschreib |
e7d8d85e290d7bf18b8c1a9aaa17ad2d8fb5ab8d | 567 | cpp | C++ | arrays&string/question9.cpp | kgajwan1/CTCI_practice | 2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39 | [
"MIT"
] | null | null | null | arrays&string/question9.cpp | kgajwan1/CTCI_practice | 2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39 | [
"MIT"
] | null | null | null | arrays&string/question9.cpp | kgajwan1/CTCI_practice | 2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39 | [
"MIT"
] | null | null | null | //question 9 CTCI arrays & strings
#include<bits/stdc++.h>
//is s2 a rotation of s1?
//best way is to check if s2 is subset if s1s1
bool isRotation(std::string s1, std::string s2){
int len = s1.length();
/*check if length of s1 and s2 aer same or not */
if(len = s2.length() && len >0){
std::string ... | 23.625 | 53 | 0.592593 | kgajwan1 |
e7d9dac005ed735e751f3f9027de9281fcf03156 | 29,676 | cpp | C++ | server/lineardb.cpp | Valaras/OneLife | 0f83ffb8edf8362ff3bf0ca87a73bba21be20446 | [
"Linux-OpenIB"
] | 69 | 2018-10-05T23:29:10.000Z | 2022-03-29T22:34:24.000Z | server/lineardb.cpp | Valaras/OneLife | 0f83ffb8edf8362ff3bf0ca87a73bba21be20446 | [
"Linux-OpenIB"
] | 62 | 2018-11-08T14:14:40.000Z | 2022-03-01T20:38:01.000Z | server/lineardb.cpp | Valaras/OneLife | 0f83ffb8edf8362ff3bf0ca87a73bba21be20446 | [
"Linux-OpenIB"
] | 24 | 2018-10-11T09:20:27.000Z | 2021-11-06T19:23:17.000Z | #define _FILE_OFFSET_BITS 64
#include "lineardb.h"
#include <string.h>
#include <stdlib.h>
#include <math.h>
#ifdef _WIN32
#define fseeko fseeko64
#define ftello ftello64
#endif
#define DEFAULT_MAX_LOAD 0.5
#include "murmurhash2_64.cpp"
/*
// djb2 hash function
static uint64_t djb2( const void *inB, unsigned in... | 26.615247 | 80 | 0.490194 | Valaras |
e7e64a1e3b3e19cb93bafee7a75209a3390350cc | 280 | cpp | C++ | src/range_based_for_loop.cpp | mwerlberger/cpp11_tutorial | e02e7a1fb61b029681060db97ff16e1b8be53ad1 | [
"BSD-3-Clause"
] | null | null | null | src/range_based_for_loop.cpp | mwerlberger/cpp11_tutorial | e02e7a1fb61b029681060db97ff16e1b8be53ad1 | [
"BSD-3-Clause"
] | null | null | null | src/range_based_for_loop.cpp | mwerlberger/cpp11_tutorial | e02e7a1fb61b029681060db97ff16e1b8be53ad1 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <vector>
int main()
{
std::vector<int> ivec = {0, 1, 2, 3, 4, 5};
for (auto i : ivec)
{
std::cout << i << ", ";
}
std::cout << std::endl;
for(auto j : {0,2,4,6,8,10})
{
std::cout << j << ", ";
}
std::cout << std::endl;
}
| 13.333333 | 45 | 0.457143 | mwerlberger |
e7e7d00961663b3da155a1b0d6692c1f5ef3e367 | 3,547 | cpp | C++ | src/IntroductionLevel.cpp | dantehemerson/Arkanoid-Returns | 478ae8df92f978dce95fd227a9047e83dea9a855 | [
"MIT"
] | 3 | 2018-09-25T07:59:06.000Z | 2019-08-24T09:35:43.000Z | src/IntroductionLevel.cpp | dantehemerson/Arkanoid-Returns | 478ae8df92f978dce95fd227a9047e83dea9a855 | [
"MIT"
] | 1 | 2018-05-08T11:34:05.000Z | 2018-05-08T11:34:05.000Z | src/IntroductionLevel.cpp | dantehemerson/Arkanoid-Returns | 478ae8df92f978dce95fd227a9047e83dea9a855 | [
"MIT"
] | 1 | 2020-06-07T21:23:24.000Z | 2020-06-07T21:23:24.000Z | #include "IntroductionLevel.hpp"
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_primitives.h>
#include "Gallery.hpp"
#include "R.hpp"
#include "Level.hpp"
const int IntroductionLevel::waitTime = 85;
const int IntroductionLevel::animationStart = 310;
IntroductionLevel::IntroductionLevel(Level* level)... | 29.31405 | 176 | 0.674373 | dantehemerson |
e7eaa66765589fa41db55d729629e7030c75eb31 | 2,258 | cc | C++ | src/Rtsp.cc | philberty/overflow | 7370cd4d145f290c32a8c020ae849241ac9b1082 | [
"MIT"
] | 4 | 2020-03-27T21:17:06.000Z | 2022-02-11T15:20:17.000Z | src/Rtsp.cc | philberty/overflow | 7370cd4d145f290c32a8c020ae849241ac9b1082 | [
"MIT"
] | null | null | null | src/Rtsp.cc | philberty/overflow | 7370cd4d145f290c32a8c020ae849241ac9b1082 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 Philip Herron.
//
// 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... | 28.582278 | 80 | 0.666076 | philberty |
e7ef2ea6b47ffd901a7f1941bb904ee11833a8f1 | 2,523 | cpp | C++ | sys/dev/arm/armv7m-systick/armv7m-systick.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 15 | 2020-05-08T06:21:58.000Z | 2021-12-11T18:10:43.000Z | sys/dev/arm/armv7m-systick/armv7m-systick.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 11 | 2020-05-08T06:46:37.000Z | 2021-03-30T05:46:03.000Z | sys/dev/arm/armv7m-systick/armv7m-systick.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 5 | 2020-08-31T17:05:03.000Z | 2021-12-08T07:09:00.000Z | #include "init.h"
#include <arch/mmio.h>
#include <atomic>
#include <cpu.h>
#include <debug.h>
#include <irq.h>
#include <sections.h>
#include <timer.h>
#include <v7m/bitfield.h>
namespace {
/*
* SysTick registers
*/
struct syst {
union csr {
using S = uint32_t;
struct { S r; };
bitfield::armbit<S, bool, 16... | 20.02381 | 72 | 0.673405 | apexrtos |
e7f4aa77455816c3abbe4c34adbf962e940377f5 | 6,411 | cpp | C++ | source/backend/cpu/CPUGridSample.cpp | zhangzan1997/MNN | 2860411058fcd5f5d4848b92b571276bda00e12b | [
"Apache-2.0"
] | 1 | 2021-06-01T03:02:29.000Z | 2021-06-01T03:02:29.000Z | source/backend/cpu/CPUGridSample.cpp | zhangzan1997/MNN | 2860411058fcd5f5d4848b92b571276bda00e12b | [
"Apache-2.0"
] | null | null | null | source/backend/cpu/CPUGridSample.cpp | zhangzan1997/MNN | 2860411058fcd5f5d4848b92b571276bda00e12b | [
"Apache-2.0"
] | null | null | null | //
// CPUGridSample.cpp
// MNN
//
// Created by MNN on 2021/03/24.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "backend/cpu/CPUGridSample.hpp"
#include <math.h>
#include <string.h>
#include "core/Concurrency.h"
#include <algorithm>
#include "backend/cpu/CPUBackend.hpp"
#include "backend/cpu/comp... | 37.057803 | 124 | 0.599282 | zhangzan1997 |
e7f92df8112aa20a087be331e4f1abdf21c18529 | 2,000 | cpp | C++ | src/diskFile.cpp | Rocik/btree-file-index | 04cb787c903a18e606b2f03f0cce345d879086f5 | [
"MIT"
] | null | null | null | src/diskFile.cpp | Rocik/btree-file-index | 04cb787c903a18e606b2f03f0cce345d879086f5 | [
"MIT"
] | null | null | null | src/diskFile.cpp | Rocik/btree-file-index | 04cb787c903a18e606b2f03f0cce345d879086f5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <cassert>
#include <cstring>
#include "diskFile.h"
int DiskFile::statRead = 0;
int DiskFile::statWrite = 0;
DiskFile::DiskFile(string filename, int pageSize)
: filename(filename), pageSizeInBytes(pageSize) {
binaryInOut = fstream::in | fstream::out | fstream::bina... | 21.73913 | 79 | 0.7145 | Rocik |
e7fef3d6df5d8d706514527c0023aa049decc9c9 | 6,986 | cpp | C++ | storage/tests/EvictionPolicy_unittest.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 82 | 2016-04-18T03:59:06.000Z | 2019-02-04T11:46:08.000Z | storage/tests/EvictionPolicy_unittest.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 265 | 2016-04-19T17:52:43.000Z | 2018-10-11T17:55:08.000Z | storage/tests/EvictionPolicy_unittest.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 68 | 2016-04-18T05:00:34.000Z | 2018-10-30T12:41:02.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... | 34.245098 | 110 | 0.68623 | Hacker0912 |
f0023820823cf54a5a0e857940730910d797df64 | 4,136 | cpp | C++ | tool/procedural/distributedsquaregenerator.cpp | monadgroup/sy17 | 2901438fcca6be69d30ff9c316097deb37a85613 | [
"MIT"
] | 18 | 2021-10-04T14:05:28.000Z | 2021-12-26T21:18:06.000Z | tool/procedural/distributedsquaregenerator.cpp | monadgroup/sy17 | 2901438fcca6be69d30ff9c316097deb37a85613 | [
"MIT"
] | null | null | null | tool/procedural/distributedsquaregenerator.cpp | monadgroup/sy17 | 2901438fcca6be69d30ff9c316097deb37a85613 | [
"MIT"
] | null | null | null | #include "distributedsquaregenerator.h"
#include "util.h"
using namespace monad;
DistributedSquareGenerator::DistributedSquareGenerator(ivec2 size) : size(size) {
cells = new bool*[size.y];
for (auto y = 0; y < size.y; y++) {
cells[y] = new bool[size.x];
}
maxSize = size.x > size.y ? size.x :... | 29.126761 | 83 | 0.525145 | monadgroup |
f006e32d05ab5161b8d32f645e442589754ef14a | 4,233 | cc | C++ | google/cloud/bigquery/samples/read.cc | orinem/google-cloud-cpp | c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1 | [
"Apache-2.0"
] | 5 | 2019-10-24T04:58:21.000Z | 2021-06-04T06:15:38.000Z | google/cloud/bigquery/samples/read.cc | orinem/google-cloud-cpp | c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1 | [
"Apache-2.0"
] | 24 | 2019-10-14T12:33:41.000Z | 2020-04-16T19:17:34.000Z | google/cloud/bigquery/samples/read.cc | orinem/google-cloud-cpp | c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1 | [
"Apache-2.0"
] | 10 | 2019-10-12T00:35:55.000Z | 2021-10-07T21:31:13.000Z | // Copyright 2019 Google LLC
//
// 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 w... | 33.330709 | 80 | 0.649894 | orinem |
f01007c18ea7a7a5e19d354b4ac5cb158829bab5 | 1,725 | hpp | C++ | tau/TauEngine/include/dx/dx10/DX10GraphicsAccelerator.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | tau/TauEngine/include/dx/dx10/DX10GraphicsAccelerator.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | tau/TauEngine/include/dx/dx10/DX10GraphicsAccelerator.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | #pragma once
#include "system/GraphicsAccelerator.hpp"
#ifdef _WIN32
#include <dxgi.h>
class TAU_DLL DX10GraphicsAccelerator final : public IGraphicsAccelerator
{
DELETE_CM(DX10GraphicsAccelerator);
private:
IDXGIAdapter* _dxgiAdapter;
public:
DX10GraphicsAccelerator(const DynString& vendor,... | 37.5 | 99 | 0.721159 | hyfloac |
f016ad41b6a8146fca7c4e0b999da41d1706fa97 | 1,233 | cpp | C++ | src/ImageView/line_reader.cpp | miere43/imageview | a264fa44ba0140a8171913be763abdddbc531b4a | [
"Unlicense"
] | 1 | 2021-06-24T12:19:41.000Z | 2021-06-24T12:19:41.000Z | src/ImageView/line_reader.cpp | miere43/imageview | a264fa44ba0140a8171913be763abdddbc531b4a | [
"Unlicense"
] | null | null | null | src/ImageView/line_reader.cpp | miere43/imageview | a264fa44ba0140a8171913be763abdddbc531b4a | [
"Unlicense"
] | null | null | null | #include "line_reader.hpp"
#include "error.hpp"
void Line_Reader::set_string_builder(String_Builder* sb)
{
this->line = sb;
}
void Line_Reader::set_source(const char* source, int source_count)
{
this->source = source;
this->source_count = source_count;
this->index = 0;
}
bool Line_Reader::next_line... | 22.017857 | 71 | 0.583942 | miere43 |
f018339a65f00e68a0847433e3d5c05c6a368f41 | 6,596 | cpp | C++ | Source/Modules/MMOEngine/Scenario/ScLoginClient_SlaveImpl.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 27 | 2015-01-08T08:26:29.000Z | 2019-02-10T03:18:05.000Z | Source/Modules/MMOEngine/Scenario/ScLoginClient_SlaveImpl.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 1 | 2017-04-05T02:02:14.000Z | 2017-04-05T02:02:14.000Z | Source/Modules/MMOEngine/Scenario/ScLoginClient_SlaveImpl.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 17 | 2015-01-18T02:50:01.000Z | 2019-02-08T21:00:53.000Z | /*
Author: Gudakov Ramil Sergeevich a.k.a. Gauss
Гудаков Рамиль Сергеевич
Contacts: [ramil2085@mail.ru, ramil2085@gmail.com]
See for more information LICENSE.md.
*/
#include "ScLoginClient_SlaveImpl.h"
#include "ContextScLoginClient.h"
#include "SessionManager.h"
#include "Base.h"
#include "Logger.h"
#incl... | 31.864734 | 97 | 0.604457 | RamilGauss |
f01aca7fa6f0bb169b4c16a05a9389286c367568 | 6,249 | cpp | C++ | library/src/blas1/rocblas_rotmg.cpp | rosenrodt/rocBLAS | e24058b09239814bea61b74bd736bcb6659d0915 | [
"MIT"
] | null | null | null | library/src/blas1/rocblas_rotmg.cpp | rosenrodt/rocBLAS | e24058b09239814bea61b74bd736bcb6659d0915 | [
"MIT"
] | 1 | 2019-09-26T01:51:09.000Z | 2019-09-26T18:09:56.000Z | library/src/blas1/rocblas_rotmg.cpp | mahmoodw/rocBLAS | 53b1271e4881ef7473b78e8783e4d55740e9b933 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2016-2019 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "handle.h"
#include "logging.h"
#include "rocblas.h"
#include "utility.h"
namespace
{
template <typ... | 28.148649 | 99 | 0.351416 | rosenrodt |
f021a2c5758d89932548211b571059623e22f2ee | 511 | hpp | C++ | src/event_handler/event_thread.hpp | Morilli/LeagueModel | a364206a9115ffe7eea31bbddf94a646d13552da | [
"MIT"
] | 26 | 2018-12-09T15:35:02.000Z | 2021-05-02T11:36:19.000Z | src/event_handler/event_thread.hpp | Morilli/LeagueModel | a364206a9115ffe7eea31bbddf94a646d13552da | [
"MIT"
] | 19 | 2018-12-09T20:14:36.000Z | 2021-11-10T07:04:52.000Z | src/event_handler/event_thread.hpp | Morilli/LeagueModel | a364206a9115ffe7eea31bbddf94a646d13552da | [
"MIT"
] | 5 | 2018-11-14T10:41:56.000Z | 2022-02-19T22:22:32.000Z | #pragma once
#include <thread>
#define MAX_EVENT_THREAD_EVENT_COUNT 64
class EventHandler;
class Event;
class EventThread
{
private:
enum StateType
{
NoState,
Idle,
Running,
ForceQuit,
ThreadEnded
};
friend class EventHandler;
protected:
EventThread();
~EventThread();
void Detach();
void Join();... | 12.775 | 46 | 0.733855 | Morilli |
f02b5ddb7270d9ce2b5d296d808c47dee529bbf8 | 40,026 | cpp | C++ | scripts/DBScripts.cpp | mpforums/RenSharp | 5b3fb8bff2a1772a82a4148bcf3e1265a11aa097 | [
"Apache-2.0"
] | 1 | 2021-10-04T02:34:33.000Z | 2021-10-04T02:34:33.000Z | scripts/DBScripts.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 9 | 2019-07-03T19:19:59.000Z | 2020-03-02T22:00:21.000Z | scripts/DBScripts.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 2 | 2019-08-14T08:37:36.000Z | 2020-09-29T06:44:26.000Z | #include "General.h"
#include "engine_tt.h"
#include "engine_def.h"
#include "VehicleGameObjDef.h"
#include "BeaconGameObjDef.h"
#include "TeamPurchaseSettingsDefClass.h"
#include "PurchaseSettingsDefClass.h"
#include "PowerupGameObj.h"
#include "PowerupGameObjDef.h"
#include "SoldierGameObj.h"
#include "VehicleGameObj... | 30.741935 | 386 | 0.717908 | mpforums |
f02c708484649ea53ac11744c812b003f91e0706 | 12,931 | cpp | C++ | lib/src/gtoplus/serialize.cpp | theodelrieu/prc | 199942ed8365f6e49a7e9667d587d1ae06f14999 | [
"BSL-1.0"
] | 1 | 2022-01-04T22:37:00.000Z | 2022-01-04T22:37:00.000Z | lib/src/gtoplus/serialize.cpp | theodelrieu/prc | 199942ed8365f6e49a7e9667d587d1ae06f14999 | [
"BSL-1.0"
] | null | null | null | lib/src/gtoplus/serialize.cpp | theodelrieu/prc | 199942ed8365f6e49a7e9667d587d1ae06f14999 | [
"BSL-1.0"
] | null | null | null | #include <prc/gtoplus/serialize.hpp>
#include <prc/detail/unicode.hpp>
#include <prc/range_elem.hpp>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <optional>
#include <sstream>
namespace prc::gtoplus
{
namespace
{
struct group_name_rgb
{
std::string name;
in... | 30.283372 | 134 | 0.607996 | theodelrieu |
f02d4b30a4d7e005ddb192d575ccb0b02eb80c96 | 29,715 | cpp | C++ | src/types.cpp | Javyre/wf-config | c9603754c650c2121582735c469e9cb9117e309e | [
"MIT"
] | 10 | 2019-02-20T08:52:26.000Z | 2022-03-27T00:23:52.000Z | src/types.cpp | Javyre/wf-config | c9603754c650c2121582735c469e9cb9117e309e | [
"MIT"
] | 43 | 2018-09-05T18:03:58.000Z | 2022-03-31T15:18:46.000Z | src/types.cpp | Javyre/wf-config | c9603754c650c2121582735c469e9cb9117e309e | [
"MIT"
] | 14 | 2019-02-13T12:54:26.000Z | 2021-07-16T21:23:12.000Z | #include <wayfire/config/types.hpp>
#include <vector>
#include <map>
#include <cmath>
#include <algorithm>
#include <libevdev/libevdev.h>
#include <sstream>
/* --------------------------- Primitive types ------------------------------ */
template<>
stdx::optional<bool> wf::option_type::from_string(const std::string& ... | 23.658439 | 84 | 0.592798 | Javyre |
f0394df5f58e67b770fa28fc4b739da94b2752d6 | 1,756 | cpp | C++ | Practice/2017/2017.8.17/HDU4289.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2017/2017.8.17/HDU4289.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2017/2017.8.17/HDU4289.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
const int maxN=600;
const int maxM=20001*20;
const int inf=2147483647;
class Edge
{
public:
int u,v,flow;
};
int n,m;
int S,T;
int cnt=-1;
int Head[maxN];
int Next[maxM];
Edge E[maxM];
int depth[maxN];
i... | 13.40458 | 44 | 0.530182 | SYCstudio |
f03bd8d993f42592cc5cff9722b46427abb9ea62 | 11,077 | cpp | C++ | Source/Engine/SDLEngine.cpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | Source/Engine/SDLEngine.cpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | Source/Engine/SDLEngine.cpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | //
// SDLEngine.cpp
//
// @author Roberto Cano
//
#include "SDLEngine.hpp"
#include "Framework/Core/GameObject.hpp"
#include <stdexcept>
#include <algorithm>
#define GLM_FORCE_RADIANS
#include <glm/gtc/matrix_transform.hpp>
#include <glew/glew.h>
#include <glm/glm.hpp>
#include <sdl/Sdl.h>
#include <sdl/SDL_image.... | 28.257653 | 187 | 0.737384 | gabr1e11 |
f03e9404d821b0d336e0128af0599b751ac4b67d | 953 | hpp | C++ | drivers/LightDriver.hpp | jpmorris33/syntheyes3 | 36b0312616145e8da44868897f231cbe7702a64f | [
"BSD-3-Clause"
] | 2 | 2022-01-24T23:00:43.000Z | 2022-03-01T01:39:08.000Z | drivers/LightDriver.hpp | jpmorris33/syntheyes3 | 36b0312616145e8da44868897f231cbe7702a64f | [
"BSD-3-Clause"
] | null | null | null | drivers/LightDriver.hpp | jpmorris33/syntheyes3 | 36b0312616145e8da44868897f231cbe7702a64f | [
"BSD-3-Clause"
] | null | null | null | #ifndef __LIGHTDRIVER_HPP__
#define __LIGHTDRIVER_HPP__
#include <stdint.h>
#include "../gpio.hpp"
#define LIGHTMODE_NORMAL 0
#define LIGHTMODE_UNISON 1
#define LIGHTMODE_STOP 2
class LightDriver {
public:
virtual void init(int ledcount, const char *param);
virtual void draw();
void update();
void force(i... | 23.243902 | 71 | 0.749213 | jpmorris33 |
f03ffe50c467b584222e8654ef6121c1798d50b0 | 1,037 | cpp | C++ | MetalTrainer/src/WorkoutThread.cpp | eperiod-software/metal-trainer | 9a9307d15eda4c071357a0259069d2ddd6358d89 | [
"BSD-3-Clause"
] | null | null | null | MetalTrainer/src/WorkoutThread.cpp | eperiod-software/metal-trainer | 9a9307d15eda4c071357a0259069d2ddd6358d89 | [
"BSD-3-Clause"
] | null | null | null | MetalTrainer/src/WorkoutThread.cpp | eperiod-software/metal-trainer | 9a9307d15eda4c071357a0259069d2ddd6358d89 | [
"BSD-3-Clause"
] | null | null | null | /*
* WorkoutThread.cpp
*
* Created on: Jul 9, 2013
* Author: Vaughn Friesen
*/
#include <QThread>
#include <iostream>
#include "WorkoutThread.h"
#include "interval/IntervalManager.h"
using namespace std;
WorkoutThread::WorkoutThread(int workout) {
this->workout = workout;
}
WorkoutThread::~WorkoutThrea... | 22.06383 | 66 | 0.708775 | eperiod-software |
f0440fd02aa633860690289c79634eadccb8c151 | 6,026 | cpp | C++ | ledger/environment.cpp | michealbrownm/phantom | a1a41a6f9317c26e621952637c7e331c8dacf79d | [
"Apache-2.0"
] | 27 | 2020-09-24T03:14:13.000Z | 2021-11-29T14:00:36.000Z | ledger/environment.cpp | david2011dzha/phantom | eff76713e03966eb44e20a07806b8d47ec73ad09 | [
"Apache-2.0"
] | null | null | null | ledger/environment.cpp | david2011dzha/phantom | eff76713e03966eb44e20a07806b8d47ec73ad09 | [
"Apache-2.0"
] | 10 | 2020-09-24T14:34:30.000Z | 2021-02-22T06:50:31.000Z | /*
phantom is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
phantom is distributed in the hope that it will be useful,
but WITHOUT ANY ... | 27.022422 | 122 | 0.694656 | michealbrownm |
f047a96fd00fb9d967cd4ca6b208e1a7f20b78e3 | 1,208 | cpp | C++ | sources/systems/transform.cpp | wonderwombatgames/hydrogine | c44c113090a7a3e9357775c69b3e94adb9d6569d | [
"MIT"
] | null | null | null | sources/systems/transform.cpp | wonderwombatgames/hydrogine | c44c113090a7a3e9357775c69b3e94adb9d6569d | [
"MIT"
] | null | null | null | sources/systems/transform.cpp | wonderwombatgames/hydrogine | c44c113090a7a3e9357775c69b3e94adb9d6569d | [
"MIT"
] | null | null | null | /**
*
*/
#include "systems/transform.hpp"
namespace W2E
{
namespace System
{
Transform::Transform()
: SystemsInterface{"Transform"}
, components_{}
{
}
Transform::Transform(const char* name)
: SystemsInterface{name}
, components_{}
{
}
Transform::~Transform() {}
void Transform::insert(Compone... | 21.192982 | 80 | 0.70447 | wonderwombatgames |
f04dc3b81b1621fa408dc81c34f342db99e6091b | 7,504 | cpp | C++ | SummedAreaTable.cpp | xkong/envtools | 682eeac42a7f173e24333ec4e94f87251ce6d579 | [
"MIT"
] | 68 | 2015-01-22T14:26:42.000Z | 2022-02-17T23:39:20.000Z | SummedAreaTable.cpp | xkong/envtools | 682eeac42a7f173e24333ec4e94f87251ce6d579 | [
"MIT"
] | 10 | 2015-03-15T19:34:25.000Z | 2019-01-29T09:46:02.000Z | SummedAreaTable.cpp | xkong/envtools | 682eeac42a7f173e24333ec4e94f87251ce6d579 | [
"MIT"
] | 11 | 2016-06-03T16:20:23.000Z | 2020-07-13T11:29:42.000Z | #include <cassert>
#include "SummedAreaTable"
void SummedAreaTable::createLum(float* rgb, const uint width, const uint height, const uint nc)
{
assert(nc > 2);
_width = width;
_height = height;
const uint imgSize = width * height;
_sat.clear();
_sat.resize(imgSize);
_sat1.clear();
_s... | 28.861538 | 100 | 0.457756 | xkong |
f05441f5e8f1416f9568bf4e879cfae1229eab01 | 5,153 | hpp | C++ | include/lvr2/geometry/BoundingBox.hpp | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 38 | 2019-06-19T15:10:35.000Z | 2022-02-16T03:08:24.000Z | include/lvr2/geometry/BoundingBox.hpp | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 9 | 2019-06-19T16:19:51.000Z | 2021-09-17T08:31:25.000Z | include/lvr2/geometry/BoundingBox.hpp | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 13 | 2019-04-16T11:50:32.000Z | 2020-11-26T07:47:44.000Z | /**
* Copyright (c) 2018, University Osnabrück
* 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 the above copyright
* notice, this li... | 28.469613 | 86 | 0.649525 | uos |
f05b735b9fe46ff40ef491d8f7af6364ad43db50 | 3,643 | cpp | C++ | src/ofApp.cpp | carlesgutierrez/ofxVjMatics | 8f7d1f3e7ef9a3b9db899f0f8549525303771f90 | [
"MIT"
] | null | null | null | src/ofApp.cpp | carlesgutierrez/ofxVjMatics | 8f7d1f3e7ef9a3b9db899f0f8549525303771f90 | [
"MIT"
] | null | null | null | src/ofApp.cpp | carlesgutierrez/ofxVjMatics | 8f7d1f3e7ef9a3b9db899f0f8549525303771f90 | [
"MIT"
] | null | null | null | #include "ofApp.h"
#include "ofxPublishScreen.h"
ofxPublishScreen::FboPublisher myPublishScreen;
//--------------------------------------------------------------
void ofApp::setup(){
ofSetFrameRate(30);
ofBackground(0, 255, 0);
//Load oll examples
myRandomVideosPlayers.setup();
myParticles.setup();
... | 21.556213 | 106 | 0.534999 | carlesgutierrez |
f05bbb4e23acf2d31bf9fcacecffd1054fbbf995 | 6,216 | hpp | C++ | Source/AllProjects/DataUtils/CIDXML/CIDXML_Attr.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/DataUtils/CIDXML/CIDXML_Attr.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/DataUtils/CIDXML/CIDXML_Attr.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDXML_Attr.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 10/10/1999
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensource.or... | 31.876923 | 78 | 0.444981 | MarkStega |
f05edfab1e8a1275eee582e969793b1adac692aa | 53,865 | cpp | C++ | bench/ml2cpp-demo/BaggingRegressor_Pipeline/freidman3/ml2cpp-demo_BaggingRegressor_Pipeline_freidman3.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | null | null | null | bench/ml2cpp-demo/BaggingRegressor_Pipeline/freidman3/ml2cpp-demo_BaggingRegressor_Pipeline_freidman3.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | 33 | 2020-09-13T09:55:01.000Z | 2022-01-06T11:53:55.000Z | bench/ml2cpp-demo/BaggingRegressor_Pipeline/freidman3/ml2cpp-demo_BaggingRegressor_Pipeline_freidman3.cpp | antoinecarme/ml2cpp | 2b241d44de00eafda620c2b605690276faf5f8fb | [
"BSD-3-Clause"
] | 1 | 2021-01-26T14:41:58.000Z | 2021-01-26T14:41:58.000Z | // ********************************************************
// This C++ code was automatically generated by ml2cpp (development version).
// Copyright 2020
// https://github.com/antoinecarme/ml2cpp
// Model : BaggingRegressor_Pipeline
// Dataset : freidman3
// This CPP code can be compiled using any C++-17 compiler... | 42.954545 | 1,191 | 0.619605 | antoinecarme |
f06c3df9f58062bc9129e3c3c1e6fda77bb6108c | 266 | hpp | C++ | include/mpp.hpp | tbs1980/mpp | 5a704b48d5ab2386588c71987a7616a276380a99 | [
"MIT"
] | null | null | null | include/mpp.hpp | tbs1980/mpp | 5a704b48d5ab2386588c71987a7616a276380a99 | [
"MIT"
] | null | null | null | include/mpp.hpp | tbs1980/mpp | 5a704b48d5ab2386588c71987a7616a276380a99 | [
"MIT"
] | null | null | null | #ifndef MPP_MPP_HPP
#define MPP_MPP_HPP
#include "mpp/version.hpp"
#include "mpp/config.hpp"
#include "mpp/chains/mcmc_chain.hpp"
#include "mpp/hamiltonian/kinetic_energy_multivar_normal.hpp"
#include "mpp/hamiltonian/classic_hamiltonian.hpp"
#endif //MPP_MPP_HPP
| 24.181818 | 61 | 0.808271 | tbs1980 |
f06efdd728a5ec5bea585997bf77a2bfcc579fc3 | 4,472 | cpp | C++ | build/cpp_test/src/massive/munit/async/AsyncTimeoutException.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | build/cpp_test/src/massive/munit/async/AsyncTimeoutException.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | build/cpp_test/src/massive/munit/async/AsyncTimeoutException.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | // Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_massive_haxe_Exception
#include <massive/haxe/Exception.h>
#endif
#ifndef INCLUDED_massive_haxe_util_ReflectUtil
#include <massive/haxe/util/ReflectUtil.h>
#endif
#ifndef INCLUDED_massive_munit_MUnitException
#include <massive/munit/MUnitException.h>
#endi... | 38.222222 | 291 | 0.792039 | TomBebb |
f07126828164706da3c5200aa5f5be8bc01b76ba | 1,219 | cpp | C++ | bellmanFord.cpp | PAlexcom/Algorithms | 02cc55ad9b6975ebd1305a82cd9dbcf4ab4caa4d | [
"MIT"
] | 1 | 2019-03-09T05:51:45.000Z | 2019-03-09T05:51:45.000Z | bellmanFord.cpp | PAlexcom/Algorithms | 02cc55ad9b6975ebd1305a82cd9dbcf4ab4caa4d | [
"MIT"
] | null | null | null | bellmanFord.cpp | PAlexcom/Algorithms | 02cc55ad9b6975ebd1305a82cd9dbcf4ab4caa4d | [
"MIT"
] | 1 | 2020-05-20T19:31:07.000Z | 2020-05-20T19:31:07.000Z | #include <vector>
using namespace std;
void relax(vector<int> &parent, vector<int> &pathCost, vector<vector<int>> &matrix, int a, int b) {
if (pathCost[b] > (pathCost[a] + matrix[a][b])) {
pathCost[b] = pathCost[a] + matrix[a][b];
parent[b] = a;
}
}
pair<vector<int>, vector<int>> bellmanFord(vector<Linke... | 27.704545 | 116 | 0.578343 | PAlexcom |
7eb6e9d2647a5ecb9b3c2fc578ec3d64c81209a2 | 554 | cpp | C++ | Motor2D/DynamicLabel.cpp | kistofe/Ramona-Flowers-vs-The-Code | dc87262279583b21fcb7de7231d7e16cfe6d477e | [
"MIT"
] | null | null | null | Motor2D/DynamicLabel.cpp | kistofe/Ramona-Flowers-vs-The-Code | dc87262279583b21fcb7de7231d7e16cfe6d477e | [
"MIT"
] | 7 | 2017-11-13T13:24:15.000Z | 2017-12-10T20:45:08.000Z | Motor2D/DynamicLabel.cpp | kistofe/Basic-Platformer | dc87262279583b21fcb7de7231d7e16cfe6d477e | [
"MIT"
] | null | null | null | #include "j1App.h"
#include "DynamicLabel.h"
#include "j1Fonts.h"
#include "j1Textures.h"
DynamicLabel::DynamicLabel(iPoint pos, j1Module* callback) : Label(pos, callback)
{}
DynamicLabel::~DynamicLabel()
{
}
void DynamicLabel::ChangeContent(const char* new_content)
{
if (text_texture != nullptr)
App->tex->UnLo... | 17.870968 | 81 | 0.709386 | kistofe |
7eba4f91f4f594fbc273bc7d1f8e8ce79b52e930 | 5,628 | cpp | C++ | examples/detectnet/utility.cpp | nFeus/reverse_detectnet | c25db99943763864398d08aa2ab69b8343d85db1 | [
"MIT"
] | null | null | null | examples/detectnet/utility.cpp | nFeus/reverse_detectnet | c25db99943763864398d08aa2ab69b8343d85db1 | [
"MIT"
] | null | null | null | examples/detectnet/utility.cpp | nFeus/reverse_detectnet | c25db99943763864398d08aa2ab69b8343d85db1 | [
"MIT"
] | null | null | null | #include "function.hpp"
std::vector <cv::Point> RoiVtx;
extern int number_frame;
extern int foggy_or_storm_frame;
extern int normal_frame;
std::chrono::system_clock::time_point start;
std::chrono::system_clock::time_point end;
bool reverse_detected = 0;
bool on_timer = 0;
int cnt_sec_tracking = 0;
void stddev_mod... | 31.617978 | 117 | 0.519545 | nFeus |
7eba769cca233e0de7f8a103dd42f2d98f2ac856 | 739 | hpp | C++ | source/include/FlopTexturePuzzle.hpp | jane8384/seven-monkeys | 119cb7312f25d54e88f212a8710a512b893b046d | [
"MIT"
] | 3 | 2017-11-16T01:54:09.000Z | 2018-05-20T15:33:21.000Z | include/FlopTexturePuzzle.hpp | aitorfernandez/seven-monkeys | 8f2440fd5ae7a9e86bb71dba800efe9424f3792e | [
"MIT"
] | null | null | null | include/FlopTexturePuzzle.hpp | aitorfernandez/seven-monkeys | 8f2440fd5ae7a9e86bb71dba800efe9424f3792e | [
"MIT"
] | 3 | 2017-09-18T11:44:41.000Z | 2019-12-25T11:30:26.000Z | //
// FlopTexturePuzzle.hpp
// SevenMonkeys
//
#ifndef FlopTexturePuzzle_hpp
#define FlopTexturePuzzle_hpp
#include "SevenMonkeys.hpp"
#include "Deck.hpp"
#include "FlopEvaluator.hpp"
#include "PuzzleLayer.hpp"
class FlopTexturePuzzle : public PuzzleLayer
{
public:
FlopTexturePuzzle();
virtual ~FlopText... | 15.081633 | 45 | 0.699594 | jane8384 |
7ec12a41a69692ef9d415572ae101b41adbf8280 | 13,036 | cc | C++ | wrappers/8.1.1/vtkDelimitedTextWriterWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/8.1.1/vtkDelimitedTextWriterWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/8.1.1/vtkDelimitedTextWriterWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkWriterWrap.h"
#include "vtkDelimitedTextWriterWrap.h"
#include "vtkObjectBaseWrap.h"
#include "../../plus/plus.h"
using namespace v8;
exte... | 33.684755 | 109 | 0.755216 | axkibe |
7ec62584c94a09d90f485e85bf04f805f968e887 | 4,776 | cpp | C++ | Widget/MagnifierWidget.cpp | devonchenc/NovaImage | 3d17166f9705ba23b89f1aefd31ac2db97385b1c | [
"MIT"
] | null | null | null | Widget/MagnifierWidget.cpp | devonchenc/NovaImage | 3d17166f9705ba23b89f1aefd31ac2db97385b1c | [
"MIT"
] | null | null | null | Widget/MagnifierWidget.cpp | devonchenc/NovaImage | 3d17166f9705ba23b89f1aefd31ac2db97385b1c | [
"MIT"
] | null | null | null | #include "MagnifierWidget.h"
#include <QApplication>
#include <QDesktopWidget>
#include <QPainter>
#include <QCursor>
#include <QWindow>
#include <QScreen>
#include <QTimer>
#include <QMouseEvent>
const int grabInterval = 50;
const int sizeOfMouseIcon = 20;
MagnifierWidget::MagnifierWidget(QWidget* parent)
: QWi... | 31.215686 | 157 | 0.65557 | devonchenc |
7ec70cbc87ab3664aa68f470b0b5f1d05a620657 | 6,654 | hpp | C++ | detail/utility.hpp | storm-ptr/bark | e4cd481183aba72ec6cf996eff3ac144c88b79b6 | [
"MIT"
] | 3 | 2019-11-05T10:27:35.000Z | 2019-12-02T06:25:53.000Z | detail/utility.hpp | storm-ptr/bark | e4cd481183aba72ec6cf996eff3ac144c88b79b6 | [
"MIT"
] | null | null | null | detail/utility.hpp | storm-ptr/bark | e4cd481183aba72ec6cf996eff3ac144c88b79b6 | [
"MIT"
] | 2 | 2019-12-01T18:01:02.000Z | 2021-04-07T08:34:04.000Z | // Andrew Naplavkov
#ifndef BARK_UTILITY_HPP
#define BARK_UTILITY_HPP
#include <algorithm>
#include <chrono>
#include <condition_variable>
#include <cstddef>
#include <functional>
#include <initializer_list>
#include <iterator>
#include <mutex>
#include <random>
#include <sstream>
#include <stdexcept>
#include <strin... | 24.463235 | 80 | 0.627142 | storm-ptr |
7eca43f0de1cb1001ca82d483f9dc2efd86bf72b | 28,630 | cpp | C++ | src/app/ext/com/ux/ux.cpp | indigoabstract/techno-globe | 1f01b231bece534282344fa660d5f9a8cc07262e | [
"MIT"
] | null | null | null | src/app/ext/com/ux/ux.cpp | indigoabstract/techno-globe | 1f01b231bece534282344fa660d5f9a8cc07262e | [
"MIT"
] | null | null | null | src/app/ext/com/ux/ux.cpp | indigoabstract/techno-globe | 1f01b231bece534282344fa660d5f9a8cc07262e | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "appplex-conf.hpp"
#if defined MOD_UX
#include "ux.hpp"
#include "ux-camera.hpp"
#include "ux-font.hpp"
#include "gfx.hpp"
#include "gfx-tex.hpp"
#include "unit.hpp"
#include "com/unit/transitions.hpp"
#include <algorithm>
using std::string;
using std::vector;
slide_scrolling::scroll_... | 20.989736 | 152 | 0.673175 | indigoabstract |
7ed3ce21721bf726f2d4ce746416c72d1ffb44fd | 1,784 | cpp | C++ | native/ui/ui_slider.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | null | null | null | native/ui/ui_slider.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | 7 | 2021-09-02T05:58:24.000Z | 2022-02-27T07:06:43.000Z | native/ui/ui_slider.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | 2 | 2020-02-06T02:05:15.000Z | 2021-11-25T11:35:14.000Z | #include "ui_slider.h"
void UiSlider::initImpl() {
mIsClickable = true;
mAcceptInputs = true;
mStartValue = 0;
mEndValue = 1;
}
void UiSlider::setValuesRange( const int _vstart, const int _vend, const int _curr ) {
mStartValue = _vstart;
mEndValue = _vend;
mCurrValue = _curr;
}
//TouchResult UiSlider::onTouc... | 27.875 | 128 | 0.670404 | 49View |
7ed96885c6be588b5422c1ea2e46acccdbde89af | 11,884 | cpp | C++ | pkg/Bfdp/source/Lexer/Symbolizer.cpp | dpkristensen/bfdm | 1fdbdb89263b35b5ecd3bd7e24bce700910b38f9 | [
"BSD-3-Clause"
] | 1 | 2018-07-27T17:20:59.000Z | 2018-07-27T17:20:59.000Z | pkg/Bfdp/source/Lexer/Symbolizer.cpp | dpkristensen/bfdm | 1fdbdb89263b35b5ecd3bd7e24bce700910b38f9 | [
"BSD-3-Clause"
] | 10 | 2018-07-28T03:21:05.000Z | 2019-02-21T07:09:36.000Z | pkg/Bfdp/source/Lexer/Symbolizer.cpp | dpkristensen/bfdm | 1fdbdb89263b35b5ecd3bd7e24bce700910b38f9 | [
"BSD-3-Clause"
] | null | null | null | /**
BFDP Lexer Symbolizer Definition
Copyright 2016-2019, Daniel Kristensen, Garmin Ltd, or its subsidiaries.
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 o... | 35.903323 | 121 | 0.507826 | dpkristensen |
7edd4785ac326e0efbc18768ea04fa9c3d3dea86 | 3,087 | hpp | C++ | tests/tdd/generator.hpp | tjahn/mbedcrypto | 23ea27d1d7602e0f2c4e8c8c148b73ca7b4f1425 | [
"MIT"
] | 40 | 2016-04-01T15:20:24.000Z | 2022-03-24T08:38:12.000Z | tests/tdd/generator.hpp | tjahn/mbedcrypto | 23ea27d1d7602e0f2c4e8c8c148b73ca7b4f1425 | [
"MIT"
] | 4 | 2017-12-12T09:04:38.000Z | 2021-01-30T04:19:05.000Z | tests/tdd/generator.hpp | tjahn/mbedcrypto | 23ea27d1d7602e0f2c4e8c8c148b73ca7b4f1425 | [
"MIT"
] | 15 | 2016-07-22T02:46:23.000Z | 2020-12-23T15:57:37.000Z | /** @file generator.hpp
*
* @copyright (C) 2016
* @date 2016.03.06
* @version 1.0.0
* @author amir zamani <azadkuh@live.com>
*
*/
#ifndef TESTS_GENERATOR_HPP
#define TESTS_GENERATOR_HPP
#include "mbedcrypto/types.hpp"
///////////////////////////////////////////////////////////////////////////////
namespace mbe... | 31.5 | 79 | 0.530936 | tjahn |
7ede1883cfc96480d622e9052c04a386389c3f2c | 3,258 | hpp | C++ | inc/Fluke8050A.hpp | farlepet/8050a-display | 0df434816bc371ca80c2757c99ae97aa326d3894 | [
"MIT"
] | 1 | 2020-12-24T03:55:45.000Z | 2020-12-24T03:55:45.000Z | inc/Fluke8050A.hpp | farlepet/8050a-display | 0df434816bc371ca80c2757c99ae97aa326d3894 | [
"MIT"
] | null | null | null | inc/Fluke8050A.hpp | farlepet/8050a-display | 0df434816bc371ca80c2757c99ae97aa326d3894 | [
"MIT"
] | null | null | null | #ifndef FLUKE8050A_HPP
#define FLUKE8080A_HPP
#include <stdint.h>
typedef struct {
uint8_t dp; /*!< Decimal point / relative */
uint8_t hv; /*!< High Voltage */
uint8_t w; /*!< BCD 0 / - */
uint8_t x; /*!< BCD 1 / + */
uint8_t y; /*!< BCD 2 / dB */
uint8_t z; /*!< BCD 3 / 1 ... | 28.330435 | 129 | 0.574893 | farlepet |
7ee5d172003adc97d26066b70635b0d7c922db19 | 35,859 | cpp | C++ | source/plugin/PluginVst2x.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | 404 | 2015-01-02T18:37:30.000Z | 2022-03-31T17:38:39.000Z | source/plugin/PluginVst2x.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | 101 | 2015-01-12T08:14:13.000Z | 2021-03-16T12:36:19.000Z | source/plugin/PluginVst2x.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | 96 | 2015-01-06T08:05:12.000Z | 2022-03-08T16:18:49.000Z | //
// PluginVst2x.cpp - MrsWatson
// Copyright (c) 2016 Teragon Audio. 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 the above copyright notic... | 35.680597 | 80 | 0.698569 | jagilley |
7eea21d243efcfab044d4cf893569701dd9eb485 | 1,046 | cpp | C++ | dp_coin_change.cpp | DeeptanshuM/Algorithms | 48f91e952b71370127db33fa42d642062690f9d9 | [
"MIT"
] | null | null | null | dp_coin_change.cpp | DeeptanshuM/Algorithms | 48f91e952b71370127db33fa42d642062690f9d9 | [
"MIT"
] | null | null | null | dp_coin_change.cpp | DeeptanshuM/Algorithms | 48f91e952b71370127db33fa42d642062690f9d9 | [
"MIT"
] | null | null | null | /*
My dynammic programming approach to the coin change problem.
int amount is the change to be obtained using as few coins as possible given in the coins vector
if it's not possible to get change for amount with the coins given
(for eg, trying to get change for 30 cents with only quarters available)
then -1 must be ret... | 30.764706 | 103 | 0.630019 | DeeptanshuM |
7eebd511517291d25c8dac2c2a1be7a9d118db2b | 2,162 | cpp | C++ | Source/Modules/SampleAndHoldModule.cpp | JanMalitschek/ParkerSynth | ff9e14ff8b806350667ff7236e5065cc66651260 | [
"MIT"
] | 1 | 2020-03-03T23:41:21.000Z | 2020-03-03T23:41:21.000Z | Source/Modules/SampleAndHoldModule.cpp | JanMalitschek/ParkerSynth | ff9e14ff8b806350667ff7236e5065cc66651260 | [
"MIT"
] | null | null | null | Source/Modules/SampleAndHoldModule.cpp | JanMalitschek/ParkerSynth | ff9e14ff8b806350667ff7236e5065cc66651260 | [
"MIT"
] | null | null | null | #include "SampleAndHoldModule.hpp"
#include "..\LookAndFeel\Colors.hpp"
#include "..\NodeGraphEditor.h"
#include "..\NodeGraphProcessor.h"
SampleAndHoldModule::SampleAndHoldModule() : Module(ModuleColorScheme::Grey, "SaH", 2, 1, 0, Point<int>(4, 4), 0) {
inputSocketButtons[0]->button.setTooltip("Signal");
inputSocke... | 26.691358 | 125 | 0.725717 | JanMalitschek |
7ef47b215909eead2a7c407b20c70c6520a74b6e | 3,674 | hpp | C++ | include/bytes_reader.hpp | gwisp2/BytesIO | 6ebf97073648e2ab38f890429faad0a0d1a35732 | [
"Unlicense"
] | 2 | 2021-07-07T04:37:22.000Z | 2021-07-08T17:06:25.000Z | include/bytes_reader.hpp | gwisp2/BytesIO | 6ebf97073648e2ab38f890429faad0a0d1a35732 | [
"Unlicense"
] | null | null | null | include/bytes_reader.hpp | gwisp2/BytesIO | 6ebf97073648e2ab38f890429faad0a0d1a35732 | [
"Unlicense"
] | null | null | null | #pragma once
#include "bytes_io_common.hpp"
#include <assert.h>
#include <boost/endian/conversion.hpp>
#include <cstdint>
#include <cstring>
#include <stdexcept>
#include <type_traits>
namespace BytesIO {
class BytesReaderError : public std::runtime_error {
public:
BytesReaderError(const char *what) : std::runtime... | 27.214815 | 138 | 0.677735 | gwisp2 |
7efa2880554ac0ece50e37588a9c57d5022c2c31 | 1,228 | hpp | C++ | cpp_module_02/ex00/Fixed.hpp | AbderrSfa/cpp_modules | 2465e31853af87f9bf9faba57ac0470b43918607 | [
"Apache-2.0"
] | 1 | 2021-11-05T13:46:36.000Z | 2021-11-05T13:46:36.000Z | cpp_module_02/ex00/Fixed.hpp | AbderrSfa/cpp_modules | 2465e31853af87f9bf9faba57ac0470b43918607 | [
"Apache-2.0"
] | null | null | null | cpp_module_02/ex00/Fixed.hpp | AbderrSfa/cpp_modules | 2465e31853af87f9bf9faba57ac0470b43918607 | [
"Apache-2.0"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fixed.hpp :+: :+: :+: ... | 36.117647 | 80 | 0.254072 | AbderrSfa |
7efb240527b0eeba7eb8dcfbc45f65e1311f6132 | 120 | cpp | C++ | test/example_greaterthanequals.cpp | patelh63/gtest-demo | 6feca30d05cd3a81c99baccd9f17f2a6a0628a97 | [
"BSD-3-Clause"
] | null | null | null | test/example_greaterthanequals.cpp | patelh63/gtest-demo | 6feca30d05cd3a81c99baccd9f17f2a6a0628a97 | [
"BSD-3-Clause"
] | null | null | null | test/example_greaterthanequals.cpp | patelh63/gtest-demo | 6feca30d05cd3a81c99baccd9f17f2a6a0628a97 | [
"BSD-3-Clause"
] | 1 | 2021-11-20T18:48:23.000Z | 2021-11-20T18:48:23.000Z | #include <gtest/gtest.h>
#include "example.h"
TEST(example, greaterthanequals)
{
ASSERT_TRUE(greaterthanequals());
} | 15 | 35 | 0.741667 | patelh63 |
7efcd78208bb4caf682b8979ca673cb4bf49a2d9 | 7,853 | cpp | C++ | SDK/Galil PlugIn/MachDevImplementation.cpp | mariusl/step2mach | 3ac7ff6c3b29a25f4520e4325e7922f2d34c547a | [
"MIT"
] | 6 | 2019-05-22T03:18:38.000Z | 2022-02-07T20:54:38.000Z | SDK/Galil PlugIn/MachDevImplementation.cpp | mariusl/step2mach | 3ac7ff6c3b29a25f4520e4325e7922f2d34c547a | [
"MIT"
] | 1 | 2019-11-10T05:57:09.000Z | 2020-07-01T05:50:49.000Z | SDK/Galil PlugIn/MachDevImplementation.cpp | mariusl/step2mach | 3ac7ff6c3b29a25f4520e4325e7922f2d34c547a | [
"MIT"
] | 9 | 2019-05-20T06:03:55.000Z | 2022-02-01T10:16:41.000Z | // MachDevImplementation.cpp
// This is the place where the implementor puts his/her code to actually implement the plugin
//
// -----------------------------------------------------------------------------------------------------
// Revision History:
// 7 June 2006 - Separated from MachDevice by JAP
// --------------... | 34.594714 | 128 | 0.632752 | mariusl |
7d02df629091e704ddce2d51ac38ff9da4e948af | 626 | cpp | C++ | games.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 264 | 2015-01-08T10:07:01.000Z | 2022-03-26T04:11:51.000Z | games.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 17 | 2016-04-15T03:38:07.000Z | 2020-10-30T00:33:57.000Z | games.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 127 | 2015-01-08T04:56:44.000Z | 2022-02-25T18:40:37.000Z | // 2014-09-22
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int gcd(int x, int y) {
if (x == 0) return y;
else return gcd(y%x, x);
}
int main() {
ios::sync_with_stdio(false);
int t; cin >> t;
while (t--) {
string s; cin >> s;
int p = s.find(".");
... | 22.357143 | 51 | 0.453674 | ohmyjons |
7d044f13ccff48af4ba264949deb4cfb96d9acc5 | 677 | cpp | C++ | ch19-Class_&_Objects/19.3_box.cpp | theoryofcpp/CppTheory-Codes | d7ed8732890ab77444a93c7d3c04bcab4e36370b | [
"MIT"
] | null | null | null | ch19-Class_&_Objects/19.3_box.cpp | theoryofcpp/CppTheory-Codes | d7ed8732890ab77444a93c7d3c04bcab4e36370b | [
"MIT"
] | null | null | null | ch19-Class_&_Objects/19.3_box.cpp | theoryofcpp/CppTheory-Codes | d7ed8732890ab77444a93c7d3c04bcab4e36370b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class Box {
public:
double length;
double breadth;
double height;
};
int main() {
Box box1;
Box box2;
double volume = 0.0;
// box1 specs
box1.length = 3.0;
box1.breadth = 5.0;
box1.height = 7.0;
// box2 spec... | 19.342857 | 54 | 0.543575 | theoryofcpp |
7d05f4e5aca7e2d1e83dc37c1763321fcb5c5533 | 10,434 | hh | C++ | packages/Alea/mc_solvers/AdjointMcParallelFor.i.hh | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 19 | 2015-06-04T09:02:41.000Z | 2021-04-27T19:32:55.000Z | packages/Alea/mc_solvers/AdjointMcParallelFor.i.hh | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | null | null | null | packages/Alea/mc_solvers/AdjointMcParallelFor.i.hh | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 5 | 2016-10-05T20:48:28.000Z | 2021-06-21T12:00:54.000Z | //----------------------------------*-C++-*----------------------------------//
/*!
* \file Alea/mc_solvers/AdjointMcParallelFor.i.hh
* \author Steven Hamilton
* \brief Perform single history of adjoint MC
*/
//---------------------------------------------------------------------------//
#ifndef Alea_mc_solvers... | 32.811321 | 86 | 0.523002 | GCZhang |
7d103e521ff8c7706bf0333674aa732e9e74c175 | 1,597 | hpp | C++ | misc/hardware/headers/FunnyOS/Hardware/GFX/VGA.hpp | LetsPlaySomeUbuntu/XitongOS-test-1 | 792d0c76f9aa4bb2b579d47c2c728394a3acf9f9 | [
"MIT"
] | null | null | null | misc/hardware/headers/FunnyOS/Hardware/GFX/VGA.hpp | LetsPlaySomeUbuntu/XitongOS-test-1 | 792d0c76f9aa4bb2b579d47c2c728394a3acf9f9 | [
"MIT"
] | null | null | null | misc/hardware/headers/FunnyOS/Hardware/GFX/VGA.hpp | LetsPlaySomeUbuntu/XitongOS-test-1 | 792d0c76f9aa4bb2b579d47c2c728394a3acf9f9 | [
"MIT"
] | null | null | null | #ifndef FUNNYOS_BOOTLOADER_COMMONS_HEADERS_FUNNYOS_BOOTLOADERCOMMONS_GFX_VGAINTERFACE_HPP
#define FUNNYOS_BOOTLOADER_COMMONS_HEADERS_FUNNYOS_BOOTLOADERCOMMONS_GFX_VGAINTERFACE_HPP
#include <FunnyOS/Misc/TerminalManager/ITerminalInterface.hpp>
namespace FunnyOS::HW {
/**
* Implementation of ITerminalInterfac... | 38.95122 | 105 | 0.76268 | LetsPlaySomeUbuntu |
7d148641d320c570b1e5a53221756b7cc059922c | 79 | hxx | C++ | ovalsidingControl_nucleo_io/targets/freertos.armv7m.st-stm32f303re-nucleo-dev-board/NODEID.hxx | RobertPHeller/RPi-RRCircuits | 19aff23e20eebdbd028c0407d68eef77cc6ee0ec | [
"CC-BY-4.0"
] | 10 | 2018-09-04T02:12:39.000Z | 2022-03-17T20:29:32.000Z | ovalsidingControl_nucleo_io/targets/freertos.armv7m.st-stm32f303re-nucleo-dev-board/NODEID.hxx | RobertPHeller/RPi-RRCircuits | 19aff23e20eebdbd028c0407d68eef77cc6ee0ec | [
"CC-BY-4.0"
] | null | null | null | ovalsidingControl_nucleo_io/targets/freertos.armv7m.st-stm32f303re-nucleo-dev-board/NODEID.hxx | RobertPHeller/RPi-RRCircuits | 19aff23e20eebdbd028c0407d68eef77cc6ee0ec | [
"CC-BY-4.0"
] | 1 | 2018-12-26T00:32:27.000Z | 2018-12-26T00:32:27.000Z | extern const openlcb::NodeID NODE_ID = 0x050101012291ULL; // 05 01 01 01 22 91
| 39.5 | 78 | 0.759494 | RobertPHeller |
7d17cfa805b2f91dd6c988034df6db6db54ecad1 | 3,043 | cpp | C++ | serveur/Youcef/fuelgauge.cpp | de-souza/car-dashboard | ba3a6658887710a91d2d7095c9f2bb8e5f35b314 | [
"Apache-2.0"
] | 1 | 2020-02-23T04:34:05.000Z | 2020-02-23T04:34:05.000Z | serveur/Youcef/fuelgauge.cpp | de-souza/car-dashboard | ba3a6658887710a91d2d7095c9f2bb8e5f35b314 | [
"Apache-2.0"
] | 1 | 2019-11-12T14:18:19.000Z | 2019-11-12T14:27:52.000Z | serveur/Youcef/fuelgauge.cpp | de-souza/car-dashboard | ba3a6658887710a91d2d7095c9f2bb8e5f35b314 | [
"Apache-2.0"
] | 2 | 2019-11-12T14:15:09.000Z | 2021-04-12T05:10:35.000Z | #include "fuelgauge.h"
#include <QtMath>
#include <QGraphicsTextItem>
#include <QStringList>
FuelGauge::FuelGauge(objet_virtuel *)
{
value=0;
valueMax =100;
}
QRectF FuelGauge::boundingRect() const
{
return QRectF(-600, -400, 1200, 800);
}
void FuelGauge::paint(QPainter *painter, const QStyleOptionGraphicsItem*, ... | 28.439252 | 91 | 0.586592 | de-souza |
7d1a97b08c6e29abb0d14916751d499dfd8d433d | 640 | cpp | C++ | Chapter 2/2.1_myfirst.cpp | Reavolt/Cpp-Primer-Plus | 491876ca0808d55cb688d575ec4688b087387810 | [
"Unlicense"
] | 3 | 2021-10-04T11:59:10.000Z | 2022-01-05T22:26:12.000Z | Chapter 2/2.1_myfirst.cpp | Hitoku/Cpp-Primer-Plus | 491876ca0808d55cb688d575ec4688b087387810 | [
"Unlicense"
] | null | null | null | Chapter 2/2.1_myfirst.cpp | Hitoku/Cpp-Primer-Plus | 491876ca0808d55cb688d575ec4688b087387810 | [
"Unlicense"
] | 3 | 2018-11-22T17:34:42.000Z | 2020-09-19T09:39:19.000Z | //myfirst.срр -- выводит сообщение на экран
//#include "stdafx.h" --- Visual Studio --- precompiled headers
#include <iostream>
using namespace std;
//-------------------------------------------------------------------------------------------------
int main()
{ ... | 33.684211 | 99 | 0.30625 | Reavolt |
7d1d43912662d8b3cb8c77c6f4fa52ffcf555527 | 3,451 | cpp | C++ | Library/Sources/Stroika/Foundation/IO/FileSystem/ThroughTmpFileWriter.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Library/Sources/Stroika/Foundation/IO/FileSystem/ThroughTmpFileWriter.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Library/Sources/Stroika/Foundation/IO/FileSystem/ThroughTmpFileWriter.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "../../StroikaPreComp.h"
#include <cstdio>
#if qPlatform_Windows
#include <windows.h>
#elif qPlatform_POSIX
#include <unistd.h>
#endif
#include "../../Characters/Format.h"
#include "../../Characters/ToString.h"
#include "../../Co... | 35.57732 | 233 | 0.661547 | SophistSolutions |
7d1f960459ef009a467713317fd909660060ad23 | 6,323 | hpp | C++ | src/database/src/Index.hpp | maciejjablonsky/indexed-sequential-file | 50898dbe0c1864dd0a86aed6cac4ed56bf4abd33 | [
"MIT"
] | null | null | null | src/database/src/Index.hpp | maciejjablonsky/indexed-sequential-file | 50898dbe0c1864dd0a86aed6cac4ed56bf4abd33 | [
"MIT"
] | null | null | null | src/database/src/Index.hpp | maciejjablonsky/indexed-sequential-file | 50898dbe0c1864dd0a86aed6cac4ed56bf4abd33 | [
"MIT"
] | null | null | null | #pragma once
#include "Link.hpp"
#include "Memory.hpp"
#include "PageDispositor.hpp"
#include <algorithm>
#include <concepts/comparable.hpp>
#include <map>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>
namespace index {
struct IndexHeader {
size_t links;
size_... | 38.554878 | 84 | 0.564922 | maciejjablonsky |
7d22c09eaef73e1615a9168ad52bda1a0d99fbac | 3,403 | cpp | C++ | src/StatsWindow.cpp | whitearsenic/Kdd99-Feature-Extractor-Prebuilt | a6128bdbc81a1fbfd9bdf76586e70c562b59fa3a | [
"MIT"
] | 99 | 2017-03-07T08:56:15.000Z | 2022-03-29T05:29:43.000Z | src/StatsWindow.cpp | cainsmile/kdd99_feature_extractor | f3d40e3f8df78a3ed7ccdbfabb1b763e9e4d87c0 | [
"MIT"
] | 19 | 2017-04-08T08:22:44.000Z | 2021-11-09T03:05:28.000Z | src/StatsWindow.cpp | cainsmile/kdd99_feature_extractor | f3d40e3f8df78a3ed7ccdbfabb1b763e9e4d87c0 | [
"MIT"
] | 46 | 2016-07-07T15:49:49.000Z | 2022-03-15T21:57:28.000Z | #include "StatsWindow.h"
#include "StatsPerHost.h"
#include "StatsPerService.h"
#include "StatsPerServiceWithSrcPort.h"
#include <assert.h>
namespace FeatureExtractor {
template<class TStatsPerHost, class TStatsPerService>
StatsWindow<TStatsPerHost, TStatsPerService>::StatsWindow(FeatureUpdater *feature_updater)
... | 33.362745 | 119 | 0.752571 | whitearsenic |
7d250d55e815e84233ca30041068460805ebf9aa | 2,633 | cpp | C++ | MaterialLib/MPL/Properties/LinearProperty.cpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | 1 | 2020-03-24T13:33:52.000Z | 2020-03-24T13:33:52.000Z | MaterialLib/MPL/Properties/LinearProperty.cpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | null | null | null | MaterialLib/MPL/Properties/LinearProperty.cpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | 1 | 2020-07-15T05:55:55.000Z | 2020-07-15T05:55:55.000Z | /**
* \file
*
* \copyright
* Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#include <numeric>
#include "MaterialLib... | 35.106667 | 80 | 0.612989 | OlafKolditz |
7d2525ef5e6735a00d7300e326023226fec7c289 | 1,795 | cpp | C++ | oli/viii2013puncte/main.cpp | rockoanna/nirvana | 81fadbe66b0a24244feec312c6f7fe5c8effccaa | [
"MIT"
] | null | null | null | oli/viii2013puncte/main.cpp | rockoanna/nirvana | 81fadbe66b0a24244feec312c6f7fe5c8effccaa | [
"MIT"
] | 12 | 2019-09-04T10:38:24.000Z | 2019-12-08T18:09:41.000Z | oli/viii2013puncte/main.cpp | rockoanna/nirvana | 81fadbe66b0a24244feec312c6f7fe5c8effccaa | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef int64_t i64;
typedef int32_t i32;
typedef uint64_t u64;
typedef uint32_t u32;
typedef string st;
typedef stringstream ss;
typedef double db;
typedef vector<i64> vl;
typedef vector<i32> vi;
typedef vector<char> vc;
typedef vector<db> vd;
typedef vector<st> vs;
t... | 18.316327 | 96 | 0.458496 | rockoanna |
7d2574a973d349b7ada6b51a8df73b9c76cf880d | 3,317 | cpp | C++ | Source/Voxel/Private/Octree.cpp | nwiswakarma/Voxel | cd53ef8c85c84c465ad771efefeeb539258c6b02 | [
"MIT"
] | 5 | 2020-05-28T00:29:22.000Z | 2021-04-15T11:14:39.000Z | Source/Voxel/Private/Octree.cpp | nwiswakarma/Voxel | cd53ef8c85c84c465ad771efefeeb539258c6b02 | [
"MIT"
] | null | null | null | Source/Voxel/Private/Octree.cpp | nwiswakarma/Voxel | cd53ef8c85c84c465ad771efefeeb539258c6b02 | [
"MIT"
] | 1 | 2020-05-28T00:32:25.000Z | 2020-05-28T00:32:25.000Z | // Copyright 2017 Phyronnaz
#include "Octree.h"
FOctree::FOctree(FIntVector Position, uint8 Depth, uint64 Id /*= -1*/) : Position(Position), Depth(Depth), Id(Id), bHasChilds(false)
{
// Max for Id
check(Depth <= 19);
}
bool FOctree::operator==(const FOctree& Other) const
{
check((Id == Other.Id) == (Position == O... | 24.93985 | 132 | 0.586675 | nwiswakarma |
7d27607a13e8632c8903d331bd2035453881ea2d | 1,876 | cpp | C++ | plugins/cmd-command/cmd_command.cpp | pozitiffcat/build-disp | 73727e17e2eba8f488a749a6daa412362a426613 | [
"MIT"
] | null | null | null | plugins/cmd-command/cmd_command.cpp | pozitiffcat/build-disp | 73727e17e2eba8f488a749a6daa412362a426613 | [
"MIT"
] | null | null | null | plugins/cmd-command/cmd_command.cpp | pozitiffcat/build-disp | 73727e17e2eba8f488a749a6daa412362a426613 | [
"MIT"
] | null | null | null | #include <boost/process.hpp>
#include "plugins_manager_api.hpp"
class cmd_command : public command
{
public:
cmd_command(boost::asio::io_service &service, const std::string &command)
: _service(service),
_command(command)
{
}
void execute(const boost::filesystem::path &workspace_path... | 30.258065 | 130 | 0.633795 | pozitiffcat |
7d2ab9ea11b4d640d50dd1bcbb313739c87f8650 | 53,944 | cxx | C++ | osprey/ipa/common/ipc_compile.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/ipa/common/ipc_compile.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/ipa/common/ipc_compile.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright 2014 University of Houston. All Rights Reserved.
*/
/*
Copyright UT-Battelle, LLC. All Rights Reserved. 2014
Oak Ridge National Laboratory
*/
/*
* Copyright (C) 2010 Advanced Micro Devices, Inc. All Rights Reserved.
*/
/*
* Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved... | 32.186158 | 176 | 0.6146 | sharugupta |
7d2b0085f8e752aed06ec9875eaf646db8b653cd | 6,702 | cpp | C++ | FSE/Input.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | 17 | 2017-04-02T00:17:47.000Z | 2021-11-23T21:42:48.000Z | FSE/Input.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | null | null | null | FSE/Input.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | 5 | 2017-08-06T12:47:18.000Z | 2020-08-14T14:16:22.000Z | #include "Input.h"
#include <SFML/Window/Keyboard.hpp>
#include <iostream>
#include <fstream>
#include <codecvt>
#include <imgui.h>
#ifdef _WIN32
#include <Windows.h>
#endif
namespace fse
{
Input::Input()
{
}
Input::~Input()
{
}
void Input::init()
{
KeyMap m =
{
{ L"ShowMenu", sf::Keyboard::Key... | 24.370909 | 90 | 0.633542 | Alia5 |
7d2dac22b74d9f442ae84a5f73042b2226741b58 | 3,457 | cc | C++ | MassRecoCompare/bin/CompareMethods.cc | NTUHEP-Tstar/TstarAnalysis | d3bcdf6f0fd19b9a34bbacb1052143856917bea7 | [
"MIT"
] | null | null | null | MassRecoCompare/bin/CompareMethods.cc | NTUHEP-Tstar/TstarAnalysis | d3bcdf6f0fd19b9a34bbacb1052143856917bea7 | [
"MIT"
] | null | null | null | MassRecoCompare/bin/CompareMethods.cc | NTUHEP-Tstar/TstarAnalysis | d3bcdf6f0fd19b9a34bbacb1052143856917bea7 | [
"MIT"
] | null | null | null | /*******************************************************************************
*
* Filename : CompareMethods
* Description : Make Plots for Comparision of reconstruction methods
* Author : Yi-Mu "Enoch" Chen [ ensc@hep1.phys.ntu.edu.tw ]
*
*******************************************************************... | 34.919192 | 107 | 0.505062 | NTUHEP-Tstar |
7d2e36069972f82849c757cc5fa65fac9363f7dd | 1,283 | cpp | C++ | msvc/libnature_staticreg.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | msvc/libnature_staticreg.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | msvc/libnature_staticreg.cpp | GarethNelson/ares | fb2b2d25f000a3e0aa974ff08a3f0ec8fc89845e | [
"MIT"
] | null | null | null | // This file is automatically generated.
#include "cssysdef.h"
#include "csutil/scf.h"
// Put static linking stuff into own section.
// The idea is that this allows the section to be swapped out but not
// swapped in again b/c something else in it was needed.
#if !defined(CS_DEBUG) && defined(CS_COMPILER_MSVC)
#pragma... | 25.156863 | 69 | 0.708496 | GarethNelson |
7d3371311b9488a2f769aa811a8b358a23d9da30 | 7,207 | hpp | C++ | SW4STM32/ssd1306/SSD1306/Inc/SSD1306.hpp | ironiron/ssd1306-stm32HAL | 468d3ae1335cf7f41f3ec703ed3abbfa4bdbb15b | [
"MIT"
] | null | null | null | SW4STM32/ssd1306/SSD1306/Inc/SSD1306.hpp | ironiron/ssd1306-stm32HAL | 468d3ae1335cf7f41f3ec703ed3abbfa4bdbb15b | [
"MIT"
] | null | null | null | SW4STM32/ssd1306/SSD1306/Inc/SSD1306.hpp | ironiron/ssd1306-stm32HAL | 468d3ae1335cf7f41f3ec703ed3abbfa4bdbb15b | [
"MIT"
] | null | null | null | /**
******************************************************************************
* @file SSD1306.hpp
* @author Olivier Van den Eede - ovde.be
* @author Rafał Mazurkiewicz
* @date 13.08.2019
* @brief Library for OLED display
*****************************************************************************... | 30.668085 | 119 | 0.669488 | ironiron |
7d39cb3dcb628c85a33d22af45d7af4c0ab1af99 | 957 | cpp | C++ | cpp/11reference.cpp | yaswanthsaivendra/CP | 742ba2f89180f79837fb8b32ce43df215f7b7fa1 | [
"MIT"
] | null | null | null | cpp/11reference.cpp | yaswanthsaivendra/CP | 742ba2f89180f79837fb8b32ce43df215f7b7fa1 | [
"MIT"
] | null | null | null | cpp/11reference.cpp | yaswanthsaivendra/CP | 742ba2f89180f79837fb8b32ce43df215f7b7fa1 | [
"MIT"
] | null | null | null | // //Reference variables
// //these can be used to call a single variable with different names.
// //reference is a alias of variable
// //it must be intialised when declared.
// //it cannot be modified to refer other variable.
// #include<iostream>
// using namespace std;
// int main(){
// int x = 45;
// in... | 20.361702 | 115 | 0.547544 | yaswanthsaivendra |
7d3ecf4e7084f243e00b9e9e2addab111d3b09b0 | 6,019 | cpp | C++ | Saturn/src/Saturn/Vulkan/VulkanDebugMessenger.cpp | BEASTSM96/Sparky-Engine | 234afce5572a1b0240cb8b59d0b25a9259c5572a | [
"MIT"
] | null | null | null | Saturn/src/Saturn/Vulkan/VulkanDebugMessenger.cpp | BEASTSM96/Sparky-Engine | 234afce5572a1b0240cb8b59d0b25a9259c5572a | [
"MIT"
] | 3 | 2020-08-14T17:09:06.000Z | 2020-08-14T17:10:10.000Z | Saturn/src/Saturn/Vulkan/VulkanDebugMessenger.cpp | BEASTSM96/Sparky-Engine | 234afce5572a1b0240cb8b59d0b25a9259c5572a | [
"MIT"
] | null | null | null | /********************************************************************************************
* *
* *
* ... | 53.265487 | 228 | 0.617212 | BEASTSM96 |
7d481e65c34703fb68f36e222813ad37fc593bb3 | 462 | cpp | C++ | src/Replacement.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | 8 | 2021-04-16T02:05:54.000Z | 2022-03-16T13:56:23.000Z | src/Replacement.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | null | null | null | src/Replacement.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | 2 | 2021-04-17T10:49:58.000Z | 2021-07-21T20:39:52.000Z | /*
*
* Created on: Apr 4, 2015
* Author: lingnan
*/
#include <Replacement.h>
QDebug operator<<(QDebug dbg, const TextSelection &selection)
{
dbg.nospace() << "TextSelection(" << selection.start << "," << selection.end << ")";
return dbg.space();
}
QDebug operator<<(QDebug dbg, const Replacement &rep... | 24.315789 | 103 | 0.625541 | lingnand |
7d4ca9c1801db5e3ca43836a69097d892f41dc28 | 3,973 | cpp | C++ | Lab4/RSA.cpp | Gnomus042/crypto | eaea809886c99234484170376c8c20bf11436807 | [
"MIT"
] | null | null | null | Lab4/RSA.cpp | Gnomus042/crypto | eaea809886c99234484170376c8c20bf11436807 | [
"MIT"
] | null | null | null | Lab4/RSA.cpp | Gnomus042/crypto | eaea809886c99234484170376c8c20bf11436807 | [
"MIT"
] | null | null | null | //
// Created by anast on 11/14/2020.
//
#include <cassert>
#include "RSA.h"
#include "../Lab3/Kupyna.h"
#include "../Lab3/SHA256.h"
const int RSA_SIZE = 1024;
pair<Key, Key> RSA::keygen(int prime_size) {
std::cout << "Generating primes" << std::endl;
BigInt p = get_prime(prime_size);
std::cout << "Prime... | 35.792793 | 112 | 0.559779 | Gnomus042 |
7d503e73c944bffbffb3a94b31da9a2ec2a3a98a | 6,968 | cpp | C++ | sources/Database.cpp | eubrunomiguel/garuna | e18d54213b561fbc7075eaf2acb131b2084a6434 | [
"MIT"
] | 57 | 2018-05-16T17:04:01.000Z | 2022-03-22T00:18:42.000Z | sources/Database.cpp | eubrunomiguel/garuna | e18d54213b561fbc7075eaf2acb131b2084a6434 | [
"MIT"
] | null | null | null | sources/Database.cpp | eubrunomiguel/garuna | e18d54213b561fbc7075eaf2acb131b2084a6434 | [
"MIT"
] | 17 | 2019-01-25T04:04:59.000Z | 2022-03-13T11:54:08.000Z | //
// Database.cpp
// server
//
// Created by Bruno Macedo Miguel on 3/23/17.
// Copyright © 2017 d2server. All rights reserved.
//
#include "Database.hpp"
uint8_t DatabaseIO::numinstantiated = 0;
bool DatabaseIO::loadPlayer(const uint32_t& databaseid, Player& player)
{
if (players_cache.count(databaseid) ==... | 34.156863 | 278 | 0.575918 | eubrunomiguel |
7d53dc2aa3fc66807c88a01077ede4b0ada3f338 | 3,741 | cc | C++ | shell/platform/darwin/common/platform_service_provider.cc | smallZh/flutter_engine | 166f44c0f7a84f221df8af66637e3672edbf143c | [
"BSD-3-Clause"
] | 1 | 2021-06-12T00:46:41.000Z | 2021-06-12T00:46:41.000Z | shell/platform/darwin/common/platform_service_provider.cc | smallZh/flutter_engine | 166f44c0f7a84f221df8af66637e3672edbf143c | [
"BSD-3-Clause"
] | null | null | null | shell/platform/darwin/common/platform_service_provider.cc | smallZh/flutter_engine | 166f44c0f7a84f221df8af66637e3672edbf143c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 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 "flutter/shell/platform/darwin/common/platform_service_provider.h"
#if TARGET_OS_IPHONE
#include "flutter/services/activity/ios/activity_impl.h"... | 37.787879 | 78 | 0.718792 | smallZh |
7d563fd3e8a01543274231520fe053ab68adfddc | 1,030 | cpp | C++ | core/src/core/algebra/util.cpp | fionser/CODA | db234a1e9761d379fb96ae17eef3b77254f8781c | [
"MIT"
] | 12 | 2017-02-24T19:28:07.000Z | 2021-02-05T04:40:47.000Z | core/src/core/algebra/util.cpp | fionser/CODA | db234a1e9761d379fb96ae17eef3b77254f8781c | [
"MIT"
] | 1 | 2017-04-15T03:41:18.000Z | 2017-04-24T09:06:15.000Z | core/src/core/algebra/util.cpp | fionser/CODA | db234a1e9761d379fb96ae17eef3b77254f8781c | [
"MIT"
] | 6 | 2017-05-14T10:12:50.000Z | 2021-02-07T03:50:56.000Z | //
// Created by Lu WJ on 14/02/2017.
//
#include "core/algebra/util.hpp"
#include <cassert>
namespace algebra {
NTL::ZZ _InvMod(NTL::ZZ a, NTL::ZZ p)
{
NTL::ZZ p0(p), t, q;
NTL::ZZ x0(0), x1(1);
if (p == 1) return NTL::to_ZZ(1);
while (a > 1) {
q = a / p;
t = p; p = a % p; a = t;
... | 22.391304 | 55 | 0.485437 | fionser |
7d5e138701f9720ebfbba9b72a8051a9d1e89eb5 | 5,639 | cpp | C++ | src/model/AddressBookModel.cpp | Midar/feather | ac9693077c338527a4b31ca6b2d85514f8fe739a | [
"BSD-3-Clause"
] | 22 | 2022-02-03T16:22:35.000Z | 2022-03-27T14:06:38.000Z | src/model/AddressBookModel.cpp | Midar/feather | ac9693077c338527a4b31ca6b2d85514f8fe739a | [
"BSD-3-Clause"
] | 9 | 2022-02-11T06:23:59.000Z | 2022-03-25T03:42:02.000Z | src/model/AddressBookModel.cpp | Midar/feather | ac9693077c338527a4b31ca6b2d85514f8fe739a | [
"BSD-3-Clause"
] | 8 | 2022-02-06T06:57:49.000Z | 2022-03-24T11:58:30.000Z | // SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2014-2022 The Monero Project
#include "AddressBookModel.h"
#include "AddressBook.h"
#include "ModelUtils.h"
#include "utils/Utils.h"
#include "utils/Icons.h"
AddressBookModel::AddressBookModel(QObject *parent, AddressBook *addressBook)
: QAbstrac... | 29.678947 | 141 | 0.583259 | Midar |
7d5e35ce46eb1eb3b51c53e4a32e23080707f448 | 2,199 | cc | C++ | vision/fiducial_detection_balsaq.cc | sentree/hover-jet | 7c0f03e57ecfd07a7a167b3ae509700fb48b8764 | [
"MIT"
] | null | null | null | vision/fiducial_detection_balsaq.cc | sentree/hover-jet | 7c0f03e57ecfd07a7a167b3ae509700fb48b8764 | [
"MIT"
] | null | null | null | vision/fiducial_detection_balsaq.cc | sentree/hover-jet | 7c0f03e57ecfd07a7a167b3ae509700fb48b8764 | [
"MIT"
] | null | null | null | //%bin(fiducial_detection_balsaq_main)
//%deps(balsa_queue)
#include "vision/fiducial_detection_balsaq.hh"
#include "camera/camera_image_message.hh"
#include "config/fiducial_map/read_fiducial_map.hh"
#include "infrastructure/balsa_queue/bq_main_macro.hh"
#include "infrastructure/comms/mqtt_comms_factory.hh"
#include ... | 34.359375 | 111 | 0.738518 | sentree |
7d6720b2ea7aa3c176dc47f30f94a7dcb720e4b1 | 31,757 | cpp | C++ | FastImplementation-BilateralFilter/color.cpp | yoshihiromaed/FastImplementation-BilateralFilter | d81d0cec1ef2304dfa12297c63b59357def04d0f | [
"MIT"
] | 16 | 2018-10-25T11:51:46.000Z | 2021-08-02T08:09:34.000Z | FastImplementation-BilateralFilter/color.cpp | yoshihiromaed/FastImplementation-BilateralFilter | d81d0cec1ef2304dfa12297c63b59357def04d0f | [
"MIT"
] | null | null | null | FastImplementation-BilateralFilter/color.cpp | yoshihiromaed/FastImplementation-BilateralFilter | d81d0cec1ef2304dfa12297c63b59357def04d0f | [
"MIT"
] | 3 | 2018-10-25T12:48:33.000Z | 2019-09-09T10:08:45.000Z | #include "color.h"
#pragma warning(disable:4309)
using namespace std;
using namespace cv;
void mergeLineInterleaveBGRAVX_8u(const Mat& src, Mat& dest)
{
const int sstep = src.cols * 3;
const int dstep = dest.cols * 3;
const uchar* bptr = src.ptr<uchar>(0);
const uchar* gptr = src.ptr<uchar>(1);
const uchar* rp... | 31.980866 | 160 | 0.623642 | yoshihiromaed |
7d676898e08ff703577bf9b32b4270822f4c2ad1 | 586 | cpp | C++ | test/geometry/geometry.05.test.cpp | emthrm/library | 0876ba7ec64e23b5ec476a7a0b4880d497a36be1 | [
"Unlicense"
] | 1 | 2021-12-26T14:17:29.000Z | 2021-12-26T14:17:29.000Z | test/geometry/geometry.05.test.cpp | emthrm/library | 0876ba7ec64e23b5ec476a7a0b4880d497a36be1 | [
"Unlicense"
] | 3 | 2020-07-13T06:23:02.000Z | 2022-02-16T08:54:26.000Z | test/geometry/geometry.05.test.cpp | emthrm/library | 0876ba7ec64e23b5ec476a7a0b4880d497a36be1 | [
"Unlicense"
] | null | null | null | /*
* @brief 計算幾何学/計算幾何学 (平行 / 垂直)
*/
#define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_2_A"
#include <iostream>
#include "../../geometry/geometry.hpp"
int main() {
int q;
std::cin >> q;
while (q--) {
geometry::Point p0, p1, p2, p3;
std::cin >> p0 >> p1 >> p2 >>... | 22.538462 | 83 | 0.515358 | emthrm |
de102716c61d2982fb162cebeecb7ede7fb07993 | 1,738 | cpp | C++ | aws-cpp-sdk-sagemaker-edge/source/model/SendHeartbeatRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-sagemaker-edge/source/model/SendHeartbeatRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-sagemaker-edge/source/model/SendHeartbeatRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/sagemaker-edge/model/SendHeartbeatRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::SagemakerEdgeManager::Model;
using namespace Aws::U... | 23.486486 | 113 | 0.74626 | perfectrecall |
de116c4ff6fb4bf9ae831be22c03d5b3e5cbe3c0 | 252 | cpp | C++ | Advance Recursion/tiling.cpp | Mythical-stack/C-Crash-Course | 323b7f5b1e0b270138e54a1a18fb1e81015a1763 | [
"Apache-2.0"
] | 1 | 2021-08-10T11:45:13.000Z | 2021-08-10T11:45:13.000Z | Advance Recursion/tiling.cpp | jkbells/C-Crash-Course | 323b7f5b1e0b270138e54a1a18fb1e81015a1763 | [
"Apache-2.0"
] | null | null | null | Advance Recursion/tiling.cpp | jkbells/C-Crash-Course | 323b7f5b1e0b270138e54a1a18fb1e81015a1763 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int tilingways(int n){
if(n==0){
return 0;
}
if(n==1){
return 1;
}
return tilingways(n-1) + tilingways(n-2);
}
int main()
{
cout << tilingways(4) << endl;
return 0;
} | 14 | 45 | 0.531746 | Mythical-stack |
de135c7f40ad0a4a983c9c4a12446592e669ab99 | 34,216 | cpp | C++ | WRK-V1.2/palrt/src/crypt.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/palrt/src/crypt.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/palrt/src/crypt.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | // ==++==
//
//
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// named license.txt, which can be found in the root of this distribution.
// By using this software in any fashion, you are agreeing to ... | 21.425172 | 105 | 0.603168 | intj-t |
de14006aadce629e04f053adafdb5bc6394c0d07 | 11,306 | cpp | C++ | SimTest/geoTest.cpp | doplusplus/Physics_Simulator | f562b07fe7c3e245c0ebc9d5618fe0c09114126c | [
"MIT"
] | null | null | null | SimTest/geoTest.cpp | doplusplus/Physics_Simulator | f562b07fe7c3e245c0ebc9d5618fe0c09114126c | [
"MIT"
] | 1 | 2015-09-03T08:03:12.000Z | 2015-10-06T20:11:48.000Z | SimTest/geoTest.cpp | doplusplus/PointSimulator | f562b07fe7c3e245c0ebc9d5618fe0c09114126c | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CppUnitTest.h"
#include "..\SimModule\Geo.h"
#include <limits>
#include <iostream>
//#include <functional>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace UnitTesting
{
const double accuracy = double(1e-10); //approximately the diameter of an hydrogen atom in m... | 22.748491 | 124 | 0.600566 | doplusplus |
de225012c6fd445c0e43e312708646c96b1afeeb | 1,212 | hpp | C++ | FPSWidget.hpp | karol57/HBreakout | edbae192dc8e8dfe564c2e011d9090703b3b0ab0 | [
"MIT"
] | null | null | null | FPSWidget.hpp | karol57/HBreakout | edbae192dc8e8dfe564c2e011d9090703b3b0ab0 | [
"MIT"
] | null | null | null | FPSWidget.hpp | karol57/HBreakout | edbae192dc8e8dfe564c2e011d9090703b3b0ab0 | [
"MIT"
] | null | null | null | //
// Created by Karol on 03.09.2016.
//
#ifndef SDLTEST_FPSWIDGET_HPP
#define SDLTEST_FPSWIDGET_HPP
#include <SDL_render.h>
#include "FontMenager.hpp"
#include "SDL_memory.hpp"
#include "BasicDTMenager.hpp"
class FPSWidget {
public:
FPSWidget();
~FPSWidget();
bool init(SDL_Renderer * re... | 30.3 | 103 | 0.670792 | karol57 |
de22b7f8bd845ae18bf0fcfa8ce2484254f8c5c8 | 8,187 | cpp | C++ | LJ2/City.cpp | huwlloyd-mmu/LockdownEngine | 34a6c3a797173cfc2ce98b01643c64d4ec3bcec2 | [
"MIT"
] | null | null | null | LJ2/City.cpp | huwlloyd-mmu/LockdownEngine | 34a6c3a797173cfc2ce98b01643c64d4ec3bcec2 | [
"MIT"
] | null | null | null | LJ2/City.cpp | huwlloyd-mmu/LockdownEngine | 34a6c3a797173cfc2ce98b01643c64d4ec3bcec2 | [
"MIT"
] | null | null | null | #include "City.h"
#include "LockdownEngine.h"
#include "IsoMap.h"
#include "Walkways.h"
#include "roads.h"
#include "AnimatedSprite.h"
#include "DbgPosition.h"
#include "Vehicle.h"
void CityUpdater::Update(float dt)
{
city->Update(dt);
}
int City::GetTextureForTile( int i, int j)
{
// used for building the base map... | 23.938596 | 183 | 0.58654 | huwlloyd-mmu |
de2a411bfc13f4b4ade1f457efb6cbed9069cb98 | 862 | cpp | C++ | tutorial/int-vector-tutorial.cpp | qPCR4vir/sdsl-lite | 3ae7ac30c3837553cf20243cc3df8ee658b9f00f | [
"BSD-3-Clause"
] | 20 | 2017-12-26T16:04:18.000Z | 2022-02-09T03:30:13.000Z | tutorial/int-vector-tutorial.cpp | Irallia/sdsl-lite | 9a0d5676fd09fb8b52af214eca2d5809c9a32dbe | [
"BSD-3-Clause"
] | 6 | 2018-11-12T15:14:24.000Z | 2021-04-29T14:07:13.000Z | tutorial/int-vector-tutorial.cpp | Irallia/sdsl-lite | 9a0d5676fd09fb8b52af214eca2d5809c9a32dbe | [
"BSD-3-Clause"
] | 4 | 2018-11-12T14:36:34.000Z | 2021-01-26T22:16:32.000Z | #include <sdsl/vectors.hpp>
#include <iostream>
using namespace sdsl;
using namespace std;
int main()
{
std::string tmp_file = "tmp_file.sdsl";
{
// generate int_vector and store to a file
int_vector<> v = {1,3,5,7,2,3,4,9,8,7,10,1};
store_to_file(v, tmp_file);
}
{
// ... | 24.628571 | 57 | 0.564965 | qPCR4vir |
de3453ed179287a0898b8d9239d2962527ed96f8 | 475 | cpp | C++ | 2018/2018020401-delta/main.cpp | maku693/daily-snippets | 53e3a516eeb293b3c11055db1b87d54284e6ac52 | [
"MIT"
] | null | null | null | 2018/2018020401-delta/main.cpp | maku693/daily-snippets | 53e3a516eeb293b3c11055db1b87d54284e6ac52 | [
"MIT"
] | null | null | null | 2018/2018020401-delta/main.cpp | maku693/daily-snippets | 53e3a516eeb293b3c11055db1b87d54284e6ac52 | [
"MIT"
] | null | null | null | #include <iostream>
#include <chrono>
template <class T>
void put_delta(const T& delta) {
std::cout
<< "delta: "
<< std::chrono::duration_cast<std::chrono::milliseconds>(delta).count()
<< " msec\n";
}
int main() {
auto last_time = std::chrono::high_resolution_clock::now();
while(s... | 21.590909 | 79 | 0.591579 | maku693 |
de37e23b404644f88403c2cdf810f7fd060d7492 | 5,186 | cpp | C++ | samples/SpeechRecognition/src/Main.cpp | sahilbandar/armnn | 249950645b7bc0593582182097c7e2f1d6d97442 | [
"MIT"
] | 856 | 2018-03-09T17:26:23.000Z | 2022-03-24T21:31:33.000Z | samples/SpeechRecognition/src/Main.cpp | sahilbandar/armnn | 249950645b7bc0593582182097c7e2f1d6d97442 | [
"MIT"
] | 623 | 2018-03-13T04:40:42.000Z | 2022-03-31T09:45:17.000Z | samples/SpeechRecognition/src/Main.cpp | sahilbandar/armnn | 249950645b7bc0593582182097c7e2f1d6d97442 | [
"MIT"
] | 284 | 2018-03-09T23:05:28.000Z | 2022-03-29T14:42:28.000Z | //
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <iostream>
#include <map>
#include <vector>
#include <algorithm>
#include <cmath>
#include "CmdArgsParser.hpp"
#include "ArmnnNetworkExecutor.hpp"
#include "AudioCapture.hpp"
#include "Preprocess.hpp"
#inc... | 33.031847 | 115 | 0.60297 | sahilbandar |
de3947086780d2058509bfee647d1b3d1cb5fa2a | 192 | cpp | C++ | Tests/TestProjects/VS2010/C++/DynamicallyLinkedLibrary/App/main.cpp | veganaize/make-it-so | e1f8a0c6c372891dfda3a807e80f3797efdc4a99 | [
"MIT"
] | null | null | null | Tests/TestProjects/VS2010/C++/DynamicallyLinkedLibrary/App/main.cpp | veganaize/make-it-so | e1f8a0c6c372891dfda3a807e80f3797efdc4a99 | [
"MIT"
] | null | null | null | Tests/TestProjects/VS2010/C++/DynamicallyLinkedLibrary/App/main.cpp | veganaize/make-it-so | e1f8a0c6c372891dfda3a807e80f3797efdc4a99 | [
"MIT"
] | null | null | null | #include <TextUtils.h>
#include <stdio.h>
int main(int argc, char** argv)
{
std::string message = TextUtils::getHello() + ", " + TextUtils::getWorld();
printf(message.c_str());
}
| 19.2 | 77 | 0.625 | veganaize |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.