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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c25c9a2ea1230cac03b49d9e3bdf7ce5de0fd6cd | 834 | hpp | C++ | libs/tti/test/test_mf_has_type.hpp | juslee/boost-svn | 6d5a03c1f5ed3e2b23bd0f3ad98d13ff33d4dcbb | [
"BSL-1.0"
] | null | null | null | libs/tti/test/test_mf_has_type.hpp | juslee/boost-svn | 6d5a03c1f5ed3e2b23bd0f3ad98d13ff33d4dcbb | [
"BSL-1.0"
] | null | null | null | libs/tti/test/test_mf_has_type.hpp | juslee/boost-svn | 6d5a03c1f5ed3e2b23bd0f3ad98d13ff33d4dcbb | [
"BSL-1.0"
] | null | null | null |
// (C) Copyright Edward Diener 2011
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#if !defined(TEST_MF_HAS_TYPE_HPP)
#define TEST_MF_HAS_TYPE_HPP
#include "test_structs.h... | 28.758621 | 81 | 0.833333 | juslee |
c25e3c411cc66e90c8db97208827ca8bae5eac11 | 1,564 | cpp | C++ | src/lib/reseau_graphe/ospf/PaquetLSAck.cpp | EXsky51/in608-tcp_ip_simulation | 98376c152a062ce2a23cfab775c89d31a156e2e6 | [
"MIT"
] | 2 | 2021-05-25T22:44:15.000Z | 2021-05-31T00:19:30.000Z | src/lib/reseau_graphe/ospf/PaquetLSAck.cpp | EXsky51/in608-tcp_ip_simulation | 98376c152a062ce2a23cfab775c89d31a156e2e6 | [
"MIT"
] | 3 | 2021-05-17T12:46:46.000Z | 2021-05-24T10:18:11.000Z | src/lib/reseau_graphe/ospf/PaquetLSAck.cpp | EXsky51/in608-tcp_ip_simulation | 98376c152a062ce2a23cfab775c89d31a156e2e6 | [
"MIT"
] | 32 | 2021-05-03T12:05:42.000Z | 2021-05-25T16:15:45.000Z | /**
* @file PaquetLSAck.hpp
* @brief Implementation de la classe PaquetLSAck.
* @author Gabriel Dos Santos
* @date Mai 2021
*/
#include "PaquetLSAck.hpp"
/**
* @brief Cree un objet PaquetLSAck.
*
* @param idLSARecus La liste d'identifiants des LSAs qui ont ete recu.
*/
PaquetLSAck::PaquetLSAck(const... | 23.343284 | 80 | 0.694373 | EXsky51 |
c25ef61f0ea85ad254e07b96200f6e7fb380d2ca | 786 | cpp | C++ | string/kmp.cpp | defiant-phreak/algo | 907445bdbebe720e71a44e6b69422b595805c910 | [
"MIT"
] | null | null | null | string/kmp.cpp | defiant-phreak/algo | 907445bdbebe720e71a44e6b69422b595805c910 | [
"MIT"
] | null | null | null | string/kmp.cpp | defiant-phreak/algo | 907445bdbebe720e71a44e6b69422b595805c910 | [
"MIT"
] | null | null | null |
template <typename T>
vector<int> kmp_list(const T &s){
int n = s.size();
vector<int> lps(n, 0);
for(int i = 1; i < n; i++){
int j = lps[i-1];
while(j > 0 && s[i] != s[j])
j = lps[j-1];
if(s[i]==s[j]) j++;
lps[i] = j;
}
return lps;
}
template <typename T>
vector<int> kmp_search(const T &s, const T &p, ... | 21.243243 | 65 | 0.535623 | defiant-phreak |
c26267b20444205b1a489ee908fa0d88a2a5c5b5 | 1,384 | cpp | C++ | gameimg.cpp | hankrof/minesweeper | b76383bc94f40fc16988661398db71ba2f040091 | [
"MIT"
] | null | null | null | gameimg.cpp | hankrof/minesweeper | b76383bc94f40fc16988661398db71ba2f040091 | [
"MIT"
] | null | null | null | gameimg.cpp | hankrof/minesweeper | b76383bc94f40fc16988661398db71ba2f040091 | [
"MIT"
] | null | null | null | #include "gameimg.h"
namespace ms
{
GameImage::GameImage()
: pImplImg(nullptr)
{
}
GameImage::GameImage(const std::string filename)
: pImplImg(nullptr)
{
if(!open(filename))
throw std::logic_error(std::string("Could not load image from [")
+ file... | 26.113208 | 77 | 0.577312 | hankrof |
c262c2377d4b636d8c113e86d57a9eb92221806d | 5,314 | cpp | C++ | unit_tests/linear_allocator.cpp | obhi-d/acl | 8860227ffceff559b32425bdab7419fb99a807d4 | [
"MIT"
] | null | null | null | unit_tests/linear_allocator.cpp | obhi-d/acl | 8860227ffceff559b32425bdab7419fb99a807d4 | [
"MIT"
] | null | null | null | unit_tests/linear_allocator.cpp | obhi-d/acl | 8860227ffceff559b32425bdab7419fb99a807d4 | [
"MIT"
] | null | null | null | #include <acl/linear_allocator.hpp>
#include <acl/linear_arena_allocator.hpp>
#include <acl/linear_stack_allocator.hpp>
#include <catch2/catch.hpp>
TEST_CASE("Validate linear_allocator", "[linear_allocator]")
{
using namespace acl;
using allocator_t = linear_allocator<default_allocator<std::uint32_t, true>, true>;... | 38.788321 | 96 | 0.652616 | obhi-d |
c266ccb5037f88d306b4a514c92e89957bb62522 | 4,165 | cpp | C++ | tests/math.cpp | patrick-lafferty/aitu | 55601253d95936aaa72da68cf300cd897305bfa5 | [
"MIT"
] | 4 | 2018-01-02T08:08:56.000Z | 2018-07-24T16:48:07.000Z | tests/math.cpp | patrick-lafferty/aitu | 55601253d95936aaa72da68cf300cd897305bfa5 | [
"MIT"
] | null | null | null | tests/math.cpp | patrick-lafferty/aitu | 55601253d95936aaa72da68cf300cd897305bfa5 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2016 Patrick Lafferty
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, publis... | 27.582781 | 78 | 0.564946 | patrick-lafferty |
c26841fa399fa8f02ad4218d9bb2f86799113a0f | 861 | cpp | C++ | code/src/world.cpp | eirbot/eirbot2021-2A | 8f4ada8a79ac641606deb72cca1c68e73d0d1cad | [
"MIT"
] | 1 | 2020-12-13T22:19:55.000Z | 2020-12-13T22:19:55.000Z | code/src/world.cpp | eirbot/eirbot2021-2A | 8f4ada8a79ac641606deb72cca1c68e73d0d1cad | [
"MIT"
] | 1 | 2020-12-13T22:27:13.000Z | 2020-12-13T22:27:13.000Z | code/src/world.cpp | eirbot/eirbot2021-2A | 8f4ada8a79ac641606deb72cca1c68e73d0d1cad | [
"MIT"
] | null | null | null | #include "world.hpp"
World::World():_width(200),_length(300),_obstacle(),_side(BLUE){}
World::World(int width, int length, std::vector<Position> position, enum Side side):_width(width),_length(length),_obstacle(position),_side(side){
}
World::~World(){}
const void World::printDebug(){
std::cout << "\033[33mDébug... | 29.689655 | 146 | 0.641115 | eirbot |
c2718f9fa34ad9449c7144fc2a77d85c42acc6cc | 19,431 | cpp | C++ | editor/editor_runtime/system/app.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 791 | 2016-11-04T14:13:41.000Z | 2022-03-20T20:47:31.000Z | editor/editor_runtime/system/app.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 28 | 2016-12-01T05:59:30.000Z | 2021-03-20T09:49:26.000Z | editor/editor_runtime/system/app.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 151 | 2016-12-21T09:44:43.000Z | 2022-03-31T13:42:18.000Z | #include "app.h"
#include "../console/console_log.h"
#include "../editing/editing_system.h"
#include "../editing/picking_system.h"
#include "../interface/docks/console_dock.h"
#include "../interface/docks/docking.h"
#include "../interface/docks/game_dock.h"
#include "../interface/docks/hierarchy_dock.h"
#include "../in... | 27.561702 | 107 | 0.689414 | ValtoForks |
c2777d4a62db05493a3d9b437f1346f0ff2241e3 | 61 | cpp | C++ | test/include/lstm/detail/compiler.cpp | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | 9 | 2016-11-14T23:35:30.000Z | 2019-01-18T23:21:08.000Z | test/include/lstm/detail/compiler.cpp | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | 3 | 2017-01-09T01:22:57.000Z | 2017-03-20T04:50:05.000Z | test/include/lstm/detail/compiler.cpp | mtak-/lockfree-stm | 00cd5f9a056e999f0cd140106c1d66b321d6fd47 | [
"MIT"
] | null | null | null | #include <lstm/detail/compiler.hpp>
int main() { return 0; } | 20.333333 | 35 | 0.688525 | mtak- |
c278afe8d174032e98319b36d2e250abd4e1e885 | 79,063 | cpp | C++ | source/core/Array.cpp | PicoG/MicroVireo | ffce8fb7d20bb1accfaebff9d97614e84f78018e | [
"MIT"
] | 1 | 2021-08-24T02:59:30.000Z | 2021-08-24T02:59:30.000Z | source/core/Array.cpp | PicoG/PicoVireo | ffce8fb7d20bb1accfaebff9d97614e84f78018e | [
"MIT"
] | 1 | 2021-08-19T14:00:55.000Z | 2021-08-19T14:00:55.000Z | source/core/Array.cpp | PicoG/PicoVireo | ffce8fb7d20bb1accfaebff9d97614e84f78018e | [
"MIT"
] | null | null | null | // Copyright (c) 2020 National Instruments
// SPDX-License-Identifier: MIT
/*! \file
\brief Native Vireo array functions
*/
#include "TypeDefiner.h"
#include "ExecutionContext.h"
#include "TypeAndDataManager.h"
#include "VirtualInstrument.h"
#include "Array.h"
#include <vector>
#include <algorithm>
#include <cma... | 40.922878 | 135 | 0.61685 | PicoG |
c27909590f26c09dfca3b2a028aaecaf539d9246 | 1,316 | cpp | C++ | leetcode/307. Range Sum Query - Mutable/s3.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | 1 | 2021-02-09T11:38:51.000Z | 2021-02-09T11:38:51.000Z | leetcode/307. Range Sum Query - Mutable/s3.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | null | null | null | leetcode/307. Range Sum Query - Mutable/s3.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | null | null | null | // https://leetcode.com/articles/range-sum-query-mutable/
class NumArray {
private:
vector<int> tree;
int n;
void buildTree(vector<int> &nums) {
for (int i = n, j = 0; j < n; ++i, ++j) tree[i] = nums[j];
for (int i = n - 1; i > 0; --i) tree[i] = tree[i * 2] + tree[i * 2 + 1];
}
publ... | 23.927273 | 80 | 0.403495 | contacttoakhil |
c27b2375ba9eb8b4d12b585ab60b093b535cfbd7 | 3,526 | cc | C++ | src/server/kv_worker.cc | sensssz/SQPKV | 828f2afec14db104f090ae2b4ed4729b97d3d9b6 | [
"Apache-2.0"
] | 1 | 2020-06-15T10:35:20.000Z | 2020-06-15T10:35:20.000Z | src/server/kv_worker.cc | sensssz/SQPKV | 828f2afec14db104f090ae2b4ed4729b97d3d9b6 | [
"Apache-2.0"
] | null | null | null | src/server/kv_worker.cc | sensssz/SQPKV | 828f2afec14db104f090ae2b4ed4729b97d3d9b6 | [
"Apache-2.0"
] | null | null | null | #include "kv_worker.h"
#include "protocol/protocol.h"
#include "spdlog/spdlog.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
namespace sqpkv {
KvWorker::KvWorker(rocksdb::DB *db, int clientfd) :
clientfd_(clientfd),
thread_(HandleClient, db, clientfd) {}
void KvWorker::HandleClient(r... | 33.264151 | 98 | 0.600397 | sensssz |
c27b6f6efbf28c93513c1773b71e4825963c8d27 | 3,675 | cpp | C++ | CORE/ARCH/timer.cpp | kulseran/FISHY | d01d05c03404a0c95d864a8cde899d355873592b | [
"MIT"
] | 3 | 2016-12-30T23:19:15.000Z | 2018-07-04T15:17:26.000Z | CORE/ARCH/timer.cpp | kulseran/FISHY | d01d05c03404a0c95d864a8cde899d355873592b | [
"MIT"
] | 7 | 2015-11-27T16:34:42.000Z | 2016-05-07T18:29:24.000Z | CORE/ARCH/timer.cpp | kulseran/FISHY | d01d05c03404a0c95d864a8cde899d355873592b | [
"MIT"
] | 1 | 2016-12-31T03:59:46.000Z | 2016-12-31T03:59:46.000Z | #include "timer.h"
#if defined(PLAT_WIN32)
# include <windows.h>
# pragma comment(lib, "Winmm.lib")
#elif defined(PLAT_LINUX)
# include <sys/time.h>
#endif
#include <ctime>
#include <sstream>
#include <chrono>
namespace core {
namespace timer {
bool g_timer_PerformanceTimerEnabled = false;
f64 g_timer_sec_per_t... | 20.646067 | 77 | 0.670204 | kulseran |
c27df04eb3b915f0a14bf0a21146133ca6139c17 | 340 | hpp | C++ | src/global.hpp | crapp/sevseg | 186ae7c0a928878d894f330eed6eda4511a14124 | [
"BSD-3-Clause"
] | null | null | null | src/global.hpp | crapp/sevseg | 186ae7c0a928878d894f330eed6eda4511a14124 | [
"BSD-3-Clause"
] | null | null | null | src/global.hpp | crapp/sevseg | 186ae7c0a928878d894f330eed6eda4511a14124 | [
"BSD-3-Clause"
] | 1 | 2018-03-22T14:24:26.000Z | 2018-03-22T14:24:26.000Z | #include <Arduino.h>
const uint8_t DATA_PIN = 7;
const uint8_t CLOCK_PIN = 6;
const uint8_t LATCH_PIN = 5;
const byte sev_seg_reg[10] {
B11111100, // 0
B01100000, // 1
B11011010, // 2
B11110010, // 3
B01100110, // 4
B10110110, // 5
B10111110, // 6
B11100000, // 7
B11111110, // 8
... | 18.888889 | 28 | 0.594118 | crapp |
c281d7a96a9b94e80462d2c8c2c1a99dabe9145f | 1,151 | cpp | C++ | bitArray.cpp | mreff555/bitArray | d685ceedc4914671d3c87cf8332fb509b0e4aa12 | [
"MIT"
] | null | null | null | bitArray.cpp | mreff555/bitArray | d685ceedc4914671d3c87cf8332fb509b0e4aa12 | [
"MIT"
] | null | null | null | bitArray.cpp | mreff555/bitArray | d685ceedc4914671d3c87cf8332fb509b0e4aa12 | [
"MIT"
] | null | null | null | #include <iostream>
class bitArray {
public:
bitArray() { bits = 0; }
~bitArray() { bits = 0; }
bool set(const unsigned int n) {
if (n <= sizeof(unsigned int) * 8) {
bits |= 1 << n;
return true;
}
else {
return false;
}
}
bool uns... | 19.508475 | 44 | 0.442224 | mreff555 |
c28215d2d6fc5784d71fae5b3cc79089ce13ad65 | 2,129 | cpp | C++ | spoj0/contest-034/kavarna.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | spoj0/contest-034/kavarna.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | spoj0/contest-034/kavarna.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <climits>
#include <functional>
#include <iostream>
#include <queue>
#include <utility>
#include <vector>
using namespace std;
const int infinity {INT_MAX};
const int sofia {1};
inline void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
void dijkstra(const vector<... | 22.892473 | 79 | 0.564584 | Rkhoiwal |
c28301f31ecb94fa5ee85369b81e6578e14313ca | 7,093 | cpp | C++ | StriderPassGen.cpp | sleepy9090/StriderPasswordGenerator | ac2bceecd768a9625b37843b8a30e39baa922c43 | [
"MIT"
] | null | null | null | StriderPassGen.cpp | sleepy9090/StriderPasswordGenerator | ac2bceecd768a9625b37843b8a30e39baa922c43 | [
"MIT"
] | null | null | null | StriderPassGen.cpp | sleepy9090/StriderPasswordGenerator | ac2bceecd768a9625b37843b8a30e39baa922c43 | [
"MIT"
] | null | null | null | /**
************************************************************************************************************************
*
* @file StriderPassGen.cpp
* @brief Strider Password Generator
* @copyright 2019 Shawn M. Crawford
* @date March 20th... | 27.072519 | 121 | 0.436346 | sleepy9090 |
c28b054ff12aefbba4ca4cbad8d8f4573bb48ace | 832 | hpp | C++ | MyTilemapEditor/Core/TilePalette.hpp | sam830917/MyTilemapEditor | ef5524f816984c34e1cf2b4b5f75f5ed88666a00 | [
"BSD-2-Clause"
] | 6 | 2021-04-06T21:12:29.000Z | 2021-05-31T21:54:51.000Z | MyTilemapEditor/Core/TilePalette.hpp | sam830917/MyTilemapEditor | ef5524f816984c34e1cf2b4b5f75f5ed88666a00 | [
"BSD-2-Clause"
] | null | null | null | MyTilemapEditor/Core/TilePalette.hpp | sam830917/MyTilemapEditor | ef5524f816984c34e1cf2b4b5f75f5ed88666a00 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "Core/Tileset.h"
#include "Core/TileInfo.h"
#include <QGraphicsScene>
#include <QPoint>
#include <QSize>
enum class ePaletteSelectMode
{
PALETTE_SINGLE_SELECT,
PALETTE_MULTI_SELECT,
};
class TilePalette : public QGraphicsScene
{
public:
TilePalette( Tileset* tileset, QObject* parent = Q_NULL... | 23.771429 | 76 | 0.795673 | sam830917 |
c28c309dd42ab78cb2d59df85a5bbf7750a2b156 | 2,273 | cpp | C++ | engine/description/codex/source/CodexDescriberFactory.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/description/codex/source/CodexDescriberFactory.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/description/codex/source/CodexDescriberFactory.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "ArmourCodexDescriber.hpp"
#include "CodexDescriberFactory.hpp"
#include "CodexDescriber.hpp"
#include "ConsumableCodexDescriber.hpp"
#include "SpellbookCodexDescriber.hpp"
#include "WandCodexDescriber.hpp"
#include "WeaponCodexDescriber.hpp"
#include "WearableCodexDescriber.hpp"
#include "Armour.hpp"
... | 29.519481 | 84 | 0.654641 | prolog |
c2969e32d86be8cfec2c8d897287927a085966bf | 3,529 | hpp | C++ | A3_GW_Existence.Altis/GUI/hpp/displayExperience.hpp | Hootsir/A3RPGFramework | 9eaa1c285751ee00ba460cb692dcc759eaa1f149 | [
"MIT"
] | 36 | 2018-04-22T19:34:58.000Z | 2021-05-27T20:51:58.000Z | A3_GW_Existence.Altis/GUI/hpp/displayExperience.hpp | Hootsir/A3RPGFramework | 9eaa1c285751ee00ba460cb692dcc759eaa1f149 | [
"MIT"
] | 12 | 2018-04-21T14:33:29.000Z | 2020-05-20T18:16:22.000Z | A3_GW_Existence.Altis/GUI/hpp/displayExperience.hpp | Hootsir/A3RPGFramework | 9eaa1c285751ee00ba460cb692dcc759eaa1f149 | [
"MIT"
] | 33 | 2018-04-22T15:15:54.000Z | 2020-04-02T23:30:24.000Z | /**
* Copyright (c) 2017 SimZor, SimZor Studios
* All Rights Reserved
*
* Filename: displayExperience.hpp
*/
#define EXPERIENCE_WINDOW_H 20
#define EXPERIENCE_WINDOW_W 160
#define EXPERIENCE_POS_X (CENTER_X - (EXPERIENCE_WINDOW_W * 0.5) * GRID_W)
#define EXPERIENCE_POS_Y (0.415 - (EXPERIENCE_WINDOW_H * 0.5 - SIZE... | 41.517647 | 104 | 0.506376 | Hootsir |
c29b37ee6bbcda13011bf5049d564c0c9f8de79c | 12,804 | cc | C++ | Source/Plugins/SubsystemPlugins/BladeGraphics/source/interface_imp/RenderScheme/ImageEffectBase.cc | OscarGame/blade | 6987708cb011813eb38e5c262c7a83888635f002 | [
"MIT"
] | 146 | 2018-12-03T08:08:17.000Z | 2022-03-21T06:04:06.000Z | Source/Plugins/SubsystemPlugins/BladeGraphics/source/interface_imp/RenderScheme/ImageEffectBase.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 1 | 2019-01-18T03:35:49.000Z | 2019-01-18T03:36:08.000Z | Source/Plugins/SubsystemPlugins/BladeGraphics/source/interface_imp/RenderScheme/ImageEffectBase.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 31 | 2018-12-03T10:32:43.000Z | 2021-10-04T06:31:44.000Z | /********************************************************************
created: 2017/01/28
filename: ImageffectBase.cc
author: Crazii
purpose:
*********************************************************************/
#include <BladePCH.h>
#include <interface/public/graphics/IRenderDevice.h>
#include <interface/pub... | 32.746803 | 180 | 0.585442 | OscarGame |
c29cbbc6608d274ab7c970f280c7baee0a65e9b1 | 590 | cpp | C++ | src/main.cpp | suaretjorge/virtualmapper | 052239503681890e5c51ca805ab3f4f1ee922f6c | [
"MIT"
] | 216 | 2015-02-28T04:49:48.000Z | 2022-03-29T00:00:34.000Z | src/main.cpp | suaretjorge/virtualmapper | 052239503681890e5c51ca805ab3f4f1ee922f6c | [
"MIT"
] | 10 | 2015-06-17T20:13:20.000Z | 2021-09-16T19:16:06.000Z | src/main.cpp | suaretjorge/virtualmapper | 052239503681890e5c51ca805ab3f4f1ee922f6c | [
"MIT"
] | 24 | 2015-01-26T10:40:52.000Z | 2021-01-11T19:04:19.000Z | #pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"")
#include "ofMain.h"
#include "ofApp.h"
#include "ofAppGLFWWindow.h"
#include "WindowUtils.h"
//========================================================================
int main( ){
ofAppGLFWWindow win;
GLFWwindow *gw = win.getGLFWWindo... | 23.6 | 77 | 0.608475 | suaretjorge |
c29f9cc1aa87d54a3ce930f6b4bf8a2660ea1770 | 2,205 | cc | C++ | Reco/Reco.cc | chanchoen/eic-dual-readout | 8cea1f6df9f837c9355416ad84df33a8de2ab600 | [
"Apache-2.0"
] | 1 | 2021-04-19T02:33:00.000Z | 2021-04-19T02:33:00.000Z | Reco/Reco.cc | chanchoen/eic-dual-readout | 8cea1f6df9f837c9355416ad84df33a8de2ab600 | [
"Apache-2.0"
] | 1 | 2021-04-16T05:37:08.000Z | 2021-07-21T12:05:07.000Z | Reco/Reco.cc | chanchoen/eic-dual-readout | 8cea1f6df9f837c9355416ad84df33a8de2ab600 | [
"Apache-2.0"
] | 3 | 2021-04-25T23:02:22.000Z | 2021-07-19T08:14:49.000Z | #include "DRsimInterface.h"
#include "RootInterface.h"
#include "fastjetInterface.h"
#include "RecoTower.h"
#include <iostream>
int main(int argc, char* argv[]) {
std::string filenum = std::string(argv[1]);
std::string filename = std::string(argv[2]);
RootInterface<RecoInterface::RecoEventData>* recoInterface ... | 33.923077 | 143 | 0.711565 | chanchoen |
c2a22df0dfbd0d83db1d05a8d5ca8b036aaa8765 | 4,980 | hpp | C++ | tools/CodePolygons/src/Utils/Polygon2D.hpp | wallarelvo/CRoPS | 12ecd0afefa6528fc8b2c7d2667ed3b73301d5ec | [
"Apache-2.0"
] | null | null | null | tools/CodePolygons/src/Utils/Polygon2D.hpp | wallarelvo/CRoPS | 12ecd0afefa6528fc8b2c7d2667ed3b73301d5ec | [
"Apache-2.0"
] | null | null | null | tools/CodePolygons/src/Utils/Polygon2D.hpp | wallarelvo/CRoPS | 12ecd0afefa6528fc8b2c7d2667ed3b73301d5ec | [
"Apache-2.0"
] | null | null | null | #ifndef ABETARE__POLYGON2D_HPP_
#define ABETARE__POLYGON2D_HPP_
#include "Utils/Grid.hpp"
#include "Utils/Geometry.hpp"
#include "Utils/PseudoRandom.hpp"
#include <vector>
#include <cstdio>
#include <cstdlib>
namespace Abetare
{
class Polygon2D
{
public:
Polygon2D(void)
{
m_bboxRecompute = true;
... | 23.827751 | 106 | 0.64759 | wallarelvo |
c2a5b4847ce6db315e55357d1a56a55a6ba6156b | 4,885 | cpp | C++ | src/Texture/TextureWriters/TextureWriterEXR.cpp | thennequin/Texeled | f182186725e6854835e2ef8b49b7e63b5c427094 | [
"MIT"
] | 49 | 2019-10-02T15:46:14.000Z | 2022-03-13T14:28:26.000Z | src/Texture/TextureWriters/TextureWriterEXR.cpp | thennequin/Texeled | f182186725e6854835e2ef8b49b7e63b5c427094 | [
"MIT"
] | 8 | 2019-03-23T16:11:49.000Z | 2021-10-31T14:13:18.000Z | src/Texture/TextureWriters/TextureWriterEXR.cpp | thennequin/Texeled | f182186725e6854835e2ef8b49b7e63b5c427094 | [
"MIT"
] | 4 | 2019-08-19T00:07:02.000Z | 2021-05-07T13:41:44.000Z | #include "Texture/TextureWriters/TextureWriterEXR.h"
#include "Texture/TextureWriter.h"
#include "Graphics/TextureUtils.h"
#include "tinyexr.h"
namespace Texture
{
namespace TextureWriter
{
ESupportedWriter TextureWriterSupportedEXR(const Graphics::Texture* pTexture)
{
if (pTexture->GetMipCount() != 1 || pT... | 31.11465 | 167 | 0.6913 | thennequin |
c2a6bfa148edaf20caf2c00de26e6519d391c27b | 1,023 | cpp | C++ | 07. Matrix/05 Rotate/05 Rotate.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | 190 | 2021-02-10T17:01:01.000Z | 2022-03-20T00:21:43.000Z | 07. Matrix/05 Rotate/05 Rotate.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | null | null | null | 07. Matrix/05 Rotate/05 Rotate.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | 27 | 2021-03-26T11:35:15.000Z | 2022-03-06T07:34:54.000Z | #include<bits/stdc++.h>
using namespace std;
vector<vector<int>> rotate(vector<vector<int>> v, int row, int col)
{
//reverse each row
for (int p = 0; p < row; p++)
{
int i = 0;
int j = col - 1;
while (i < j)
{
swap(v[i][j], v[j][i]);
}
}
//take transpose of above matrix
vector<vector<int>> res(col... | 14.614286 | 67 | 0.512219 | VivekYadav105 |
c2b2534b7cfb30debbeb1dbb0a163a291c012913 | 5,332 | cpp | C++ | Client/ui/FriendListWidget.cpp | LiardeauxQ/Babel | 6cdd475b8947f6a8b0d1c4325a06dfd9bfa65e72 | [
"MIT"
] | 1 | 2020-02-12T12:02:19.000Z | 2020-02-12T12:02:19.000Z | Client/ui/FriendListWidget.cpp | LiardeauxQ/Babel | 6cdd475b8947f6a8b0d1c4325a06dfd9bfa65e72 | [
"MIT"
] | null | null | null | Client/ui/FriendListWidget.cpp | LiardeauxQ/Babel | 6cdd475b8947f6a8b0d1c4325a06dfd9bfa65e72 | [
"MIT"
] | 3 | 2020-02-12T12:02:22.000Z | 2021-10-11T11:00:24.000Z | //
// Created by Quentin Liardeaux on 9/27/19.
//
#include "FriendListWidget.hpp"
#include "BabelMainWindow.hpp"
#include <cstring>
ui::FriendListWidget::FriendListWidget(boost::shared_ptr<NotificationHandler> notifHandler, QWidget* parent)
: QWidget(parent)
, notifHandler_(notifHandler)
, fetchFriend... | 34.179487 | 110 | 0.707052 | LiardeauxQ |
c2bc600390500bb11d20d42a90ba7212aaad8ba6 | 1,189 | hpp | C++ | Server/relatko-ba-graph-52fc092b557e/include/util/system.hpp | RadoslavSmarzik/graph-editor | 7441f4768269131e5e9636819f1bf27ae9d6013d | [
"MIT"
] | null | null | null | Server/relatko-ba-graph-52fc092b557e/include/util/system.hpp | RadoslavSmarzik/graph-editor | 7441f4768269131e5e9636819f1bf27ae9d6013d | [
"MIT"
] | null | null | null | Server/relatko-ba-graph-52fc092b557e/include/util/system.hpp | RadoslavSmarzik/graph-editor | 7441f4768269131e5e9636819f1bf27ae9d6013d | [
"MIT"
] | null | null | null | #ifndef BA_GRAPH_UTIL_SYSTEM_HPP
#define BA_GRAPH_UTIL_SYSTEM_HPP
#include <filesystem>
#include <memory>
#include <stdexcept>
namespace ba_graph
{
namespace internal
{
inline std::string execute_command(const char *cmd)
{
std::array<char, 128> buffer;
std::string result;
std::shared_ptr<FILE> pipe(pope... | 22.018519 | 77 | 0.666947 | RadoslavSmarzik |
c2c89dd4f622d0d44c05d44e658f9b65cf1d0f3e | 1,503 | cpp | C++ | modules/tyrannosaurus_lex/src/main.cpp | DeepBlue14/rqt_ide | 853964dc429d61c9afb6f1fe827f2e3e83f92713 | [
"MIT"
] | null | null | null | modules/tyrannosaurus_lex/src/main.cpp | DeepBlue14/rqt_ide | 853964dc429d61c9afb6f1fe827f2e3e83f92713 | [
"MIT"
] | null | null | null | modules/tyrannosaurus_lex/src/main.cpp | DeepBlue14/rqt_ide | 853964dc429d61c9afb6f1fe827f2e3e83f92713 | [
"MIT"
] | null | null | null | //Reff: http://clang.llvm.org/docs/LibASTMatchersReference.html
#include <clang/Frontend/FrontendActions.h>
#include <clang/Tooling/CommonOptionsParser.h>
#include <clang/Tooling/Tooling.h>
#include <clang/ASTMatchers/ASTMatchers.h>
#include <llvm/Support/CommandLine.h>
#include <clang/ASTMatchers/ASTMatchers.h>
#incl... | 30.06 | 87 | 0.745176 | DeepBlue14 |
c2d5dd7b193f4e9314456dbe7b305f0a2501cf59 | 42,623 | cc | C++ | tensorflow/core/framework/remote_fused_graph_execute_info.pb.cc | 1250281649/tensorflow | fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c | [
"Apache-2.0"
] | null | null | null | tensorflow/core/framework/remote_fused_graph_execute_info.pb.cc | 1250281649/tensorflow | fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c | [
"Apache-2.0"
] | 2 | 2021-08-25T15:57:35.000Z | 2022-02-10T01:09:32.000Z | tensorflow/core/framework/remote_fused_graph_execute_info.pb.cc | 1250281649/tensorflow | fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c | [
"Apache-2.0"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/remote_fused_graph_execute_info.proto
#include "tensorflow/core/framework/remote_fused_graph_execute_info.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>... | 49.332176 | 326 | 0.788189 | 1250281649 |
c2d870f729a984c8317325c2a4d19a86ed880304 | 6,779 | cc | C++ | src/python_bindings/sparse_matrices.cc | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | null | null | null | src/python_bindings/sparse_matrices.cc | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | null | null | null | src/python_bindings/sparse_matrices.cc | pbedenbaugh/MeshFEM | 742d609d4851582ffb9c5616774fc2ef489e2f88 | [
"MIT"
] | null | null | null | #include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/eigen.h>
#include <pybind11/iostream.h>
namespace py = pybind11;
#include <MeshFEM/Types.hh>
#include <MeshFEM/SparseMatrices.hh>
PYBIND11_MODULE(sparse_matrices, m) {
m.doc() = "Sparse Representations and Solvers";
// Bind TripletMat... | 60.526786 | 246 | 0.601416 | pbedenbaugh |
c2dd810e590f11031e6d49f518d2879a3615e4ef | 28,165 | cpp | C++ | sci/libsci/api.cpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 69 | 2019-04-17T04:03:31.000Z | 2021-11-08T10:29:54.000Z | sci/libsci/api.cpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 113 | 2019-04-13T06:46:32.000Z | 2021-11-02T01:45:06.000Z | sci/libsci/api.cpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 46 | 2019-04-17T04:03:36.000Z | 2021-09-26T13:11:37.000Z | #ifndef _PRAGMA_COPYRIGHT_
#define _PRAGMA_COPYRIGHT_
#pragma comment(copyright, "%Z% %I% %W% %D% %T%\0")
#endif /* _PRAGMA_COPYRIGHT_ */
/****************************************************************************
* Copyright (c) 2008, 2010 IBM Corporation.
* All rights reserved. This program and the accompanying ma... | 30.090812 | 100 | 0.594248 | hongsenliu |
123d38ff1179d8c914cef9cda9023effc1435e72 | 632 | cpp | C++ | ForData/ForBuild4/analysis.cpp | FantasticGold/MCM-VIPS | c145e391e03132bd59f15b30840037bc18c0347e | [
"Apache-2.0"
] | null | null | null | ForData/ForBuild4/analysis.cpp | FantasticGold/MCM-VIPS | c145e391e03132bd59f15b30840037bc18c0347e | [
"Apache-2.0"
] | null | null | null | ForData/ForBuild4/analysis.cpp | FantasticGold/MCM-VIPS | c145e391e03132bd59f15b30840037bc18c0347e | [
"Apache-2.0"
] | null | null | null | /*
Suppose min, max, p
Then s = ((1 - p) * min^2 + p * max^2)^0.5
*/
#include <iostream>
#include <fstream>
int main(void) {
std::ofstream data("../../../NewData/build4/analysis.txt");
for (double bound = 0.4; bound >= 0.1; bound -= 0.1) {
data << "For each value of <min>, to satisfy s <= " << bound
... | 27.478261 | 70 | 0.509494 | FantasticGold |
123e2c4138213e3f6190d88a99ea72115cdf3756 | 4,875 | cpp | C++ | lbsr/lbsr_client/lbsr_client_psp_client.cpp | eduam/lbsRecommend | eaf2fd8566b0c31ba7c550ab0f5e6327fb5f4050 | [
"Apache-2.0"
] | 4 | 2019-03-29T11:50:13.000Z | 2021-10-19T03:26:38.000Z | lbsr/lbsr_client/lbsr_client_psp_client.cpp | eduam/lbsRecommend | eaf2fd8566b0c31ba7c550ab0f5e6327fb5f4050 | [
"Apache-2.0"
] | 1 | 2019-06-13T13:16:16.000Z | 2019-06-13T13:16:16.000Z | lbsr/lbsr_client/lbsr_client_psp_client.cpp | eduam/lbsRecommend | eaf2fd8566b0c31ba7c550ab0f5e6327fb5f4050 | [
"Apache-2.0"
] | 1 | 2019-06-12T14:12:33.000Z | 2019-06-12T14:12:33.000Z | /*
* Copyright 2018 Yamana Laboratory, Waseda University
* Supported by JST CREST Grant Number JPMJCR1503, Japan.
*
* 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... | 29.36747 | 80 | 0.639179 | eduam |
1243b2df30f0cfa34e5bbb440becc60dba7c9b30 | 11,738 | cpp | C++ | Sound/XRSound/XRSound/src/Utils/ConfigFileParser.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 1,040 | 2021-07-27T12:12:06.000Z | 2021-08-02T14:24:49.000Z | Sound/XRSound/XRSound/src/Utils/ConfigFileParser.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 20 | 2021-07-27T12:25:22.000Z | 2021-08-02T12:22:19.000Z | Sound/XRSound/XRSound/src/Utils/ConfigFileParser.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 71 | 2021-07-27T14:19:49.000Z | 2021-08-02T05:51:52.000Z | // ==============================================================
// From the XR Vessel Framework
//
// Copyright (c) 2006-2021 Douglas Beachy
// Licensed under the MIT License
//
// ConfigFileParser.cpp
// Abstract base class to parse a configuration file.
// Blank lines and lines beginning with "#" are ignored.
//
/... | 32.879552 | 143 | 0.57054 | Ybalrid |
1243f663f56aff599c39993b3a5709a319d4f1ff | 10,923 | cpp | C++ | Core/ManageAvailableResources/ResourceQueues.cpp | adinaneda/part2proj | 6029defd1ef87e598bb0ee1204cd22885e57d219 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | Core/ManageAvailableResources/ResourceQueues.cpp | adinaneda/part2proj | 6029defd1ef87e598bb0ee1204cd22885e57d219 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | Core/ManageAvailableResources/ResourceQueues.cpp | adinaneda/part2proj | 6029defd1ef87e598bb0ee1204cd22885e57d219 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2020-05-07T12:18:04.000Z | 2020-05-07T12:18:04.000Z | //
// Created by Adina Neda on 22/02/2020.
// Released under license: Apache-2.0 License
//
#include "ResourceQueues.h"
// Resources in Resource Queue are sorted by memory, then number of operations per second
bool sort_by_memory_then_operations(
const tuple<string, priority_queue<int>, int, float, float>& r... | 36.41 | 110 | 0.580701 | adinaneda |
124bfbc4537195484035f952ab82f668f81c0d8c | 2,270 | cpp | C++ | W8/tournament.cpp | mohdomama/CO292-4th-Sem- | 81463606242e860c9c89a99e0b2128ac008340ec | [
"MIT"
] | null | null | null | W8/tournament.cpp | mohdomama/CO292-4th-Sem- | 81463606242e860c9c89a99e0b2128ac008340ec | [
"MIT"
] | null | null | null | W8/tournament.cpp | mohdomama/CO292-4th-Sem- | 81463606242e860c9c89a99e0b2128ac008340ec | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <bits/stdc++.h>
using namespace std;
class Pool {
private:
int *array;
int *team_name;
int size;
public:
Pool (int size) {
array = new int[size];
team_name = new int[size];
this->size = size;
for (int i = 0; i < size; i++) {
array[i] = 0;
}
for (int... | 18.16 | 70 | 0.497797 | mohdomama |
125a721b372cdf14ed48eb5986d618b7e4928040 | 256 | cpp | C++ | hw1/hw1-vs/hw1-vs/main.cpp | tron32213021/ee569-Image-Processing | c0689ebc06d401a636db46111d41514fee1cd6cd | [
"MIT"
] | null | null | null | hw1/hw1-vs/hw1-vs/main.cpp | tron32213021/ee569-Image-Processing | c0689ebc06d401a636db46111d41514fee1cd6cd | [
"MIT"
] | null | null | null | hw1/hw1-vs/hw1-vs/main.cpp | tron32213021/ee569-Image-Processing | c0689ebc06d401a636db46111d41514fee1cd6cd | [
"MIT"
] | null | null | null | /*
copyright: Zhenye Jiang
Name: Zhenye Jiang
USC_ID: 5553039273
Email: zhenyeji@usc.edu
Submission date: Jan 22 2019
*/
#include "hw1.h"
#include "uni.h"
using namespace hw1;
int main()
{
q1_a();
q1_b();
q1_c();
q2_a();
q2_b();
q2_c();
return 0;
} | 12.190476 | 28 | 0.664063 | tron32213021 |
125c4ba7e9ed7f5e842a20e6eea57e1b82765394 | 30,364 | cpp | C++ | src/FocalPointShadowMap.cpp | ravidavi/OpenFrames | 67cce87f1ccd23df91d6d070d86c06ceb180dadb | [
"Apache-2.0"
] | 26 | 2017-08-16T18:17:50.000Z | 2022-03-11T10:23:52.000Z | src/FocalPointShadowMap.cpp | ravidavi/OpenFrames | 67cce87f1ccd23df91d6d070d86c06ceb180dadb | [
"Apache-2.0"
] | 4 | 2018-10-18T12:31:19.000Z | 2020-08-12T08:59:25.000Z | src/FocalPointShadowMap.cpp | ravidavi/OpenFrames | 67cce87f1ccd23df91d6d070d86c06ceb180dadb | [
"Apache-2.0"
] | 11 | 2018-09-10T18:29:07.000Z | 2022-03-09T13:53:52.000Z | /***********************************
Copyright 2020 Ravishankar Mathur
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 applic... | 43.563845 | 210 | 0.674022 | ravidavi |
125d07c6378e901b4baa23bd87bb19120ca9b67e | 4,242 | hpp | C++ | src/Simulator/Simulator.hpp | Zeken/ofxTableGestures | cab4d536486414cf599c57b1da28c706ea917780 | [
"MIT"
] | null | null | null | src/Simulator/Simulator.hpp | Zeken/ofxTableGestures | cab4d536486414cf599c57b1da28c706ea917780 | [
"MIT"
] | null | null | null | src/Simulator/Simulator.hpp | Zeken/ofxTableGestures | cab4d536486414cf599c57b1da28c706ea917780 | [
"MIT"
] | null | null | null | /*
ofxTableGestures (formerly OF-TangibleFramework)
Developed for Taller de Sistemes Interactius I
Universitat Pompeu Fabra
Copyright (c) 2010 Daniel Gallardo Grassot <daniel.gallardo@upf.edu>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and as... | 32.381679 | 76 | 0.632013 | Zeken |
125e12d6dab30ac4eae02273d81c88e141462de9 | 5,711 | cpp | C++ | app/bfs.cpp | shivaang12/808x_midterm_project | 07b991973f12559a34be1a905e0e937ed22dd4c7 | [
"MIT"
] | null | null | null | app/bfs.cpp | shivaang12/808x_midterm_project | 07b991973f12559a34be1a905e0e937ed22dd4c7 | [
"MIT"
] | null | null | null | app/bfs.cpp | shivaang12/808x_midterm_project | 07b991973f12559a34be1a905e0e937ed22dd4c7 | [
"MIT"
] | null | null | null | /**
* @file bfs.cpp
* @author Shivang Patel
* @copyright MIT license
*
* @brief DESCRIPTION
* This file implements Bfs class.
*
*/
#include <queue>
#include <map>
#include <iostream>
#include <algorithm>
#include <bfs.hpp>
Bfs::Bfs(int width, int height, std::pair<int, int> start_point,
std::... | 31.379121 | 79 | 0.588163 | shivaang12 |
12622ab9f7c1a103d5f1230581d0df4ddfd2c66a | 6,563 | hpp | C++ | patterns/20211120/publisher.hpp | liff-engineer/articles | ad3386ef9cda5083793f485e309a9f85ab36f664 | [
"MIT"
] | 2 | 2020-12-01T06:44:41.000Z | 2021-11-22T06:07:52.000Z | patterns/20211120/publisher.hpp | liff-engineer/articles | ad3386ef9cda5083793f485e309a9f85ab36f664 | [
"MIT"
] | null | null | null | patterns/20211120/publisher.hpp | liff-engineer/articles | ad3386ef9cda5083793f485e309a9f85ab36f664 | [
"MIT"
] | null | null | null | #pragma once
#include <type_traits>
#include <string_view>
#include <functional>
#include <memory>
#include <vector>
#include <cassert>
//编译期类型ID机制可参考 https://stackoverflow.com/a/56600402
//这里只是演示
using type_code = std::string_view;
template<typename T>
constexpr type_code type_code_of() noexcept {
#ifdef __clang__
... | 26.46371 | 87 | 0.595917 | liff-engineer |
1265c7fa47bae175df1ff3000db2ca4785557b20 | 4,723 | cpp | C++ | Boss2D/addon/boss_integration_dlib-19.17.cpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | Boss2D/addon/boss_integration_dlib-19.17.cpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | Boss2D/addon/boss_integration_dlib-19.17.cpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | #include <boss.h>
#if BOSS_NEED_ADDON_DLIB
#include "boss_integration_dlib-19.17.h"
// ISO C++ code
#include <addon/dlib-19.17_for_boss/dlib/base64/base64_kernel_1.cpp>
#include <addon/dlib-19.17_for_boss/dlib/bigint/bigint_kernel_1.cpp>
#include <addon/dlib-19.17_for_boss/dlib/bigint/bigint_kernel_2.cpp>
#... | 57.597561 | 89 | 0.771967 | Yash-Wasalwar-07 |
1266c76df25d7f980006c07e436eaed8d608fdb6 | 724 | cpp | C++ | Week-1/Editorials/Contest_2/problem-1/solution2.cpp | tanayduggad0299/CP-Buddy-Series | 29b85801f216e10e1817ce0769dd2d9d98856163 | [
"MIT"
] | 58 | 2020-08-02T16:38:43.000Z | 2021-04-11T15:17:07.000Z | Week-1/Editorials/Contest_2/problem-1/solution2.cpp | tanayduggad0299/CP-Buddy-Series | 29b85801f216e10e1817ce0769dd2d9d98856163 | [
"MIT"
] | 29 | 2020-08-03T08:48:05.000Z | 2020-10-05T08:25:09.000Z | Week-1/Editorials/Contest_2/problem-1/solution2.cpp | tanayduggad0299/CP-Buddy-Series | 29b85801f216e10e1817ce0769dd2d9d98856163 | [
"MIT"
] | 44 | 2020-08-02T16:51:08.000Z | 2021-03-04T13:51:01.000Z | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
string input;
cin >> input;
vector<char> v1;
v1.push_back('#');
... | 19.567568 | 81 | 0.448895 | tanayduggad0299 |
126a9f2cd528a4b3e9d9e595cf97a3a883929b4f | 7,109 | cpp | C++ | Smark/src/Smark/SmkHtmlHighlighter.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | 1 | 2016-01-05T07:24:32.000Z | 2016-01-05T07:24:32.000Z | Smark/src/Smark/SmkHtmlHighlighter.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | null | null | null | Smark/src/Smark/SmkHtmlHighlighter.cpp | mickelfeng/qt_learning | 1f565754c36f0c09888cf4fbffa6271298d0678b | [
"Apache-2.0"
] | null | null | null | #include "Smark/SmkConfig.h"
#include "Smark/SmkHtmlHighlighter.h"
enum Construct {
DocType,
Entity,
Tag,
Comment,
AttributeName,
AttributeValue
};
enum State {
State_Text = -1,
State_DocType,
State_Comment,
State_TagStart,
State_TagName,
State_InsideTag,
State_Att... | 29.016327 | 71 | 0.37769 | mickelfeng |
126bee03a710df88da532b41150b3d131d1e84ad | 1,164 | hh | C++ | Archive/Stroika_FINAL_for_STERL_1992/Library/Graphix/Headers/Sound.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Graphix/Headers/Sound.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Graphix/Headers/Sound.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
#ifndef __Sound__
#define __Sound__
/*
* $Header: /fuji/lewis/RCS/Sound.hh,v 1.2 1992/07/01 03:57:21 lewis Exp $
*
* Description:
*
*
* TODO:
*
*
* Notes:
*
*
* Changes:
* $Log: Sound.hh,v $
* Revision 1.2 1992/07/01 03:57:21 l... | 17.636364 | 81 | 0.492268 | SophistSolutions |
126ce08db50b9b04cd25b4a76ef0ae4ee2cfb516 | 9,869 | cpp | C++ | source/LibFgBase/src/FgDepGraphTest.cpp | maamountki/FaceGenBaseLibrary | 0c647920e913354028ed09fff3293555e84d2b94 | [
"MIT"
] | null | null | null | source/LibFgBase/src/FgDepGraphTest.cpp | maamountki/FaceGenBaseLibrary | 0c647920e913354028ed09fff3293555e84d2b94 | [
"MIT"
] | null | null | null | source/LibFgBase/src/FgDepGraphTest.cpp | maamountki/FaceGenBaseLibrary | 0c647920e913354028ed09fff3293555e84d2b94 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2015 Singular Inversions Inc. (facegen.com)
// Use, modification and distribution is subject to the MIT License,
// see accompanying file LICENSE.txt or facegen.com/base_library_license.txt
//
// Authors: Andrew Beatty, Sohail Somani
// Created: March 29, 2008
//
#include "stdafx.h"
#inclu... | 28.440922 | 99 | 0.608066 | maamountki |
126dba976eab04ab631e54f88df7219aa8b183b3 | 2,133 | cc | C++ | src/ft_open_ex_op.cc | raupp/n-ftdi | 3edad728a4d93b69c47a08b81e7efffc780d1364 | [
"MIT"
] | 2 | 2019-09-30T09:22:06.000Z | 2019-09-30T14:40:11.000Z | src/ft_open_ex_op.cc | raupp/n-ftdi | 3edad728a4d93b69c47a08b81e7efffc780d1364 | [
"MIT"
] | 8 | 2019-09-05T05:18:45.000Z | 2021-07-11T11:45:30.000Z | src/ft_open_ex_op.cc | Robo-Mike/n-ftdi-rm | 50f1b1458d25158331c246656f5b004664518d58 | [
"MIT"
] | 3 | 2020-05-25T09:49:25.000Z | 2020-06-29T18:34:47.000Z | #include "ft_open_ex_op.h"
Napi::Object FtOpenExOp::Init(Napi::Env env, Napi::Object exports)
{
exports.Set("openExSync", Napi::Function::New(env, FtOpenExOp::InvokeSync));
exports.Set("openEx", Napi::Function::New(env, FtOpenExOp::Invoke));
return exports;
}
Napi::Object FtOpenExOp::InvokeSync(const Napi... | 26.333333 | 97 | 0.631974 | raupp |
12726172d08df57d94d44488730a9f5cbfb0c90e | 25,065 | cpp | C++ | src/json_printer.cpp | gsbecerrag/cppagent | f64b1906be32b43656b905e1f5d17c4e7ccbf094 | [
"Apache-2.0"
] | null | null | null | src/json_printer.cpp | gsbecerrag/cppagent | f64b1906be32b43656b905e1f5d17c4e7ccbf094 | [
"Apache-2.0"
] | null | null | null | src/json_printer.cpp | gsbecerrag/cppagent | f64b1906be32b43656b905e1f5d17c4e7ccbf094 | [
"Apache-2.0"
] | null | null | null | //
// Copyright Copyright 2009-2019, AMT – The Association For Manufacturing Technology (“AMT”)
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 28.418367 | 100 | 0.582885 | gsbecerrag |
1277da3aa2a9d80d249dba8f1c64fa93fdab703a | 3,366 | cc | C++ | Archive/Stroika_FINAL_for_STERL_1992/TestSuites/Foundation/Sources/tDoubleLinkList.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/TestSuites/Foundation/Sources/tDoubleLinkList.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/TestSuites/Foundation/Sources/tDoubleLinkList.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/tDoubleLinkList.cc,v 1.2 1992/12/03 07:46:54 lewis Exp $
*
* TODO:
*
* Changes:
* $Log: tDoubleLinkList.cc,v $
* Revision 1.2 1992/12/03 07:46:54 lewis
* Work around qGCC_SimpleClassStaticInitializerBug... | 20.4 | 92 | 0.68568 | SophistSolutions |
127a44925efbfee46f4dac5fe50af43a911c166d | 4,388 | cpp | C++ | doc/src/tutorial/spellcheckclient/Activator.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 588 | 2015-10-07T15:55:08.000Z | 2022-03-29T00:35:44.000Z | doc/src/tutorial/spellcheckclient/Activator.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 459 | 2015-10-05T23:29:59.000Z | 2022-03-29T14:13:37.000Z | doc/src/tutorial/spellcheckclient/Activator.cpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 218 | 2015-11-04T08:19:48.000Z | 2022-03-24T02:17:08.000Z | /*=============================================================================
Library: CppMicroServices
Copyright (c) The CppMicroServices developers. See the COPYRIGHT
file at the top-level directory of this distribution and at
https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT .
Licensed un... | 32.029197 | 86 | 0.657247 | fmilano |
1282c9ea1eaa60eff248b1d28932866524085cb7 | 924 | hh | C++ | TrkFitter/TrkDeadMaker.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkFitter/TrkDeadMaker.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkFitter/TrkDeadMaker.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// File and Version Information:
// $Id: TrkDeadMaker.hh 104 2010-01-15 12:13:14Z stroili $
//
// Description:
// Used to add a DeadRep to an existing track
//
// Environment:
// Software developed for the BaBar Detector at the S... | 23.692308 | 76 | 0.583333 | brownd1978 |
12834b63fc22db9a2671cdf023e13fedda6b2e1e | 333 | cpp | C++ | Genetic/code/src/machin.cpp | ebraheemk/scheduling | 06d7ac83b406cab8d507a7a467a62430cf6f3576 | [
"MIT"
] | null | null | null | Genetic/code/src/machin.cpp | ebraheemk/scheduling | 06d7ac83b406cab8d507a7a467a62430cf6f3576 | [
"MIT"
] | null | null | null | Genetic/code/src/machin.cpp | ebraheemk/scheduling | 06d7ac83b406cab8d507a7a467a62430cf6f3576 | [
"MIT"
] | null | null | null | #include "machin.h"
machin::machin(const machin& old) {
this->index = old.index;
this->speed = old.speed;
this->Tasks = old.Tasks;
this->TasksTime = old.TasksTime;
for (int i = 0; i < old.tasksidx.size(); i++)
this->tasksidx.push_back(old.tasksidx.at(i));
}
machin::~machin()
{
Tasks.clear();
tasksid... | 15.136364 | 47 | 0.633634 | ebraheemk |
128a02b4472847f175d9fd453500bda824ed8ae4 | 64 | cpp | C++ | D3D12Backend/APIWrappers/Resources/Textures/Texture.cpp | bestdark/BoolkaEngine | 35ae68dedb42baacb19908c0aaa047fe7f71f6b2 | [
"MIT"
] | 27 | 2021-02-12T10:13:55.000Z | 2022-03-24T14:44:06.000Z | D3D12Backend/APIWrappers/Resources/Textures/Texture.cpp | bestdark/BoolkaEngine | 35ae68dedb42baacb19908c0aaa047fe7f71f6b2 | [
"MIT"
] | null | null | null | D3D12Backend/APIWrappers/Resources/Textures/Texture.cpp | bestdark/BoolkaEngine | 35ae68dedb42baacb19908c0aaa047fe7f71f6b2 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Texture.h"
namespace Boolka
{
} | 8 | 20 | 0.6875 | bestdark |
128a3b108e785c8eb909b9e49180d8fe116be3fd | 3,379 | hpp | C++ | include/default_allocator.hpp | obhi-d/cppalloc | 687adc021380c979aceda56c068917a8dce7f7f5 | [
"MIT"
] | null | null | null | include/default_allocator.hpp | obhi-d/cppalloc | 687adc021380c979aceda56c068917a8dce7f7f5 | [
"MIT"
] | null | null | null | include/default_allocator.hpp | obhi-d/cppalloc | 687adc021380c979aceda56c068917a8dce7f7f5 | [
"MIT"
] | null | null | null | #pragma once
#include <detail/cppalloc_common.hpp>
#include <detail/memory_tracker.hpp>
namespace cppalloc
{
struct default_allocator_tag
{
};
namespace traits
{
template <>
struct is_static<default_allocator_tag>
{
constexpr inline static bool value = true;
};
} // namespace traits
namespace detail
{
template <bo... | 26.193798 | 115 | 0.704054 | obhi-d |
128f3bacd9d272873b7a414924f9a4ca2badb207 | 5,765 | cpp | C++ | src/prod/src/Common/ComAsyncOperationContext.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 1 | 2018-03-15T02:09:21.000Z | 2018-03-15T02:09:21.000Z | src/prod/src/Common/ComAsyncOperationContext.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | src/prod/src/Common/ComAsyncOperationContext.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
namespace... | 26.939252 | 112 | 0.587337 | AnthonyM |
128f9320eae6dcf7fa59ead7bfa9e9cd7434674b | 4,727 | cpp | C++ | HiLens_framework/libhilens/rtsp_puller.cpp | xiongzxin/HiLens-Lab | 1dc6c82f2fdb8ede7f90de85c7ed9579424d3581 | [
"Apache-2.0"
] | 31 | 2020-01-09T11:11:35.000Z | 2022-02-25T06:19:19.000Z | HiLens_framework/libhilens/rtsp_puller.cpp | xiongzxin/HiLens-Lab | 1dc6c82f2fdb8ede7f90de85c7ed9579424d3581 | [
"Apache-2.0"
] | null | null | null | HiLens_framework/libhilens/rtsp_puller.cpp | xiongzxin/HiLens-Lab | 1dc6c82f2fdb8ede7f90de85c7ed9579424d3581 | [
"Apache-2.0"
] | 12 | 2020-01-09T16:00:32.000Z | 2021-05-24T07:33:08.000Z | /* *
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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 appl... | 26.407821 | 107 | 0.576264 | xiongzxin |
1295b59635dc7ad7181d85436b32d97b8bfa0fb6 | 912 | cpp | C++ | 10679.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | 1 | 2018-03-19T05:18:49.000Z | 2018-03-19T05:18:49.000Z | 10679.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | null | null | null | 10679.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | null | null | null | //2012/04/03
//10679.cpp
//Run time: 2.380
#include <stdio.h>
char String[100005];
char Sub[1005];
int Fail[1005];
int kmp(){
static int m, next, i, k, len;
Fail[0] = k = -1;
for (i = 1 ; Sub[i] != '\0'; ++i) {
while(k >= 0 && Sub[i] != Sub[k+1])
k = Fail[k];
if(Sub[i] == Sub[k+1])
++k;... | 15.2 | 45 | 0.463816 | abraxaslee |
129a90fe068093889f385d93210392efaf28e293 | 6,760 | cpp | C++ | thirdparty/graph-tools-master/tests/GaplessAlignerTest.cpp | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | thirdparty/graph-tools-master/tests/GaplessAlignerTest.cpp | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | thirdparty/graph-tools-master/tests/GaplessAlignerTest.cpp | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | //
// GraphTools library
// Copyright 2017-2019 Illumina, Inc.
// All rights reserved.
//
// Author: Egor Dolzhenko <edolzhenko@illumina.com>
//
// 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 ... | 36.939891 | 116 | 0.689201 | AlesMaver |
129d7fdee54766a52e1d151aabbd86196ba10f3b | 2,481 | hpp | C++ | src/snabl/atype.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 22 | 2018-08-27T15:28:10.000Z | 2022-02-13T08:18:00.000Z | src/snabl/atype.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 3 | 2018-08-27T01:44:51.000Z | 2020-06-28T20:07:42.000Z | src/snabl/atype.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 2 | 2018-08-26T18:55:47.000Z | 2018-09-29T01:04:36.000Z | #ifndef SNABL_ATYPE_HPP
#define SNABL_ATYPE_HPP
#include "snabl/cmp.hpp"
#include "snabl/def.hpp"
#include "snabl/error.hpp"
#include "snabl/fmt.hpp"
#include "snabl/iter.hpp"
#include "snabl/ptrs.hpp"
#include "snabl/pos.hpp"
#include "snabl/std.hpp"
namespace snabl {
struct Box;
struct Lib;
struct AType: Def... | 25.57732 | 79 | 0.571947 | codr4life |
12a8e8efae8672696d0a2d318e3233eaba4c08e5 | 357 | cpp | C++ | main.cpp | aamatevosyan/ispras_cpp_3 | 7c0f9e2c75d3f7f8fe6f0d0a5a478a35b1c6b542 | [
"MIT"
] | null | null | null | main.cpp | aamatevosyan/ispras_cpp_3 | 7c0f9e2c75d3f7f8fe6f0d0a5a478a35b1c6b542 | [
"MIT"
] | null | null | null | main.cpp | aamatevosyan/ispras_cpp_3 | 7c0f9e2c75d3f7f8fe6f0d0a5a478a35b1c6b542 | [
"MIT"
] | null | null | null | #include <iostream>
#include "mstack.hpp"
using namespace std;
unsigned long f(unsigned long x) {
return x;
}
int main() {
mstack<unsigned long> st(f, 10);
st.push(1);
st.push(2);
st.push(30);
st.push(60);
cout << st.dump() << endl;
cout << st.hashChanged() << endl;
cout << st.ha... | 16.227273 | 37 | 0.571429 | aamatevosyan |
12ac3b4a70631e7c82dbc860e4eb178d0efbd0db | 656 | cpp | C++ | src/vm/mix_field_specification.cpp | aligusnet/mixvm | 1c260f998e1bf187d8ed84b74b19bac8029fe64c | [
"BSD-3-Clause"
] | 2 | 2020-09-14T21:25:35.000Z | 2021-07-14T16:30:06.000Z | src/vm/mix_field_specification.cpp | Alexander-Ignatyev/mixvm | 1c260f998e1bf187d8ed84b74b19bac8029fe64c | [
"BSD-3-Clause"
] | null | null | null | src/vm/mix_field_specification.cpp | Alexander-Ignatyev/mixvm | 1c260f998e1bf187d8ed84b74b19bac8029fe64c | [
"BSD-3-Clause"
] | 1 | 2021-07-14T16:30:08.000Z | 2021-07-14T16:30:08.000Z | #include "mix_field_specification.h"
#include <sstream>
namespace mix {
namespace {
const byte BASE = 8;
}
const FieldSpecification FieldSpecification::DEFAULT{0, 5};
FieldSpecification FieldSpecification::decode(byte f) {
FieldSpecification fmt;
fmt.low = f / BASE;
fmt.high = f - fmt.low * BASE;
return fm... | 19.294118 | 77 | 0.679878 | aligusnet |
12af3cae6693ca63d2060428607d4d220ab2dce4 | 4,613 | cpp | C++ | src/SingleLayerOptics/tst/RectangularPerforatedShade2.unit.cpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | 15 | 2018-04-20T19:16:50.000Z | 2022-02-11T04:11:41.000Z | src/SingleLayerOptics/tst/RectangularPerforatedShade2.unit.cpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | 31 | 2016-04-05T20:56:28.000Z | 2022-03-31T22:02:46.000Z | src/SingleLayerOptics/tst/RectangularPerforatedShade2.unit.cpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | 6 | 2018-04-20T19:38:58.000Z | 2020-04-06T00:30:47.000Z | #include <memory>
#include <gtest/gtest.h>
#include "WCESingleLayerOptics.hpp"
#include "WCECommon.hpp"
using namespace SingleLayerOptics;
using namespace FenestrationCommon;
class TestRectangularPerforatedShade2 : public testing::Test
{
private:
std::shared_ptr<CBSDFLayer> m_Shade;
protected:
virtual void... | 34.684211 | 95 | 0.615651 | bakonyidani |
12b6c7eba86b94d7f73f7dc90bd4b7a38c1f3a73 | 38 | cpp | C++ | src/main/Options.cpp | ElSaico/vgmtrans | 8fa6f4adf6437e47c2bddf0e8a96bef7cd13ff88 | [
"Zlib"
] | null | null | null | src/main/Options.cpp | ElSaico/vgmtrans | 8fa6f4adf6437e47c2bddf0e8a96bef7cd13ff88 | [
"Zlib"
] | null | null | null | src/main/Options.cpp | ElSaico/vgmtrans | 8fa6f4adf6437e47c2bddf0e8a96bef7cd13ff88 | [
"Zlib"
] | null | null | null | #include "pch.h"
#include "Options.h"
| 12.666667 | 20 | 0.684211 | ElSaico |
12b8becd32a65112ca6944ecc355675e40171903 | 2,009 | cpp | C++ | project/OFEC_sc2/instance/problem/continuous/multi_modal/classical/center_peak.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/problem/continuous/multi_modal/classical/center_peak.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/problem/continuous/multi_modal/classical/center_peak.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | /*************************************************************************
* Project:Open Frameworks for Evolutionary Computation (OFEC)
*************************************************************************
* Author: Changhe Li
* Email: changhe.lw@gmail.com
* Language: C++
*****************************************... | 34.637931 | 122 | 0.545047 | BaiChunhui-9803 |
12b9c59582e3de0a523b8621ff1103b3deac09b0 | 1,438 | cpp | C++ | Algorithms/optimization.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | 1 | 2022-03-25T10:20:25.000Z | 2022-03-25T10:20:25.000Z | Algorithms/optimization.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | null | null | null | Algorithms/optimization.cpp | hendry19901990/AlgorithmsUnlocked | e85b6dea4b3aea9b8015db24384b1527d828395d | [
"Xnet",
"X11"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <limits>
#include <string.h>
#include <math.h>
#include <vector>
#include <map>
using namespace std;
int a[250000001];
int count = 0;
void process()
{
for(auto i = 0; i <= 250000000; i++)
{
a[i] = i;
}
}
void OptimizeSearch(int* A, ... | 21.787879 | 88 | 0.486092 | hendry19901990 |
52124fbffa91886e8c9ea571f4ff6cf7433109f1 | 5,744 | cpp | C++ | SpacebrewToArduino-CINDER/src/ArduinoSpaceBrewApp.cpp | redpaperheart/Prototype-Ball-tracking | 11702b15a856f04d76c7c194c5d9df1254931034 | [
"CC0-1.0"
] | null | null | null | SpacebrewToArduino-CINDER/src/ArduinoSpaceBrewApp.cpp | redpaperheart/Prototype-Ball-tracking | 11702b15a856f04d76c7c194c5d9df1254931034 | [
"CC0-1.0"
] | null | null | null | SpacebrewToArduino-CINDER/src/ArduinoSpaceBrewApp.cpp | redpaperheart/Prototype-Ball-tracking | 11702b15a856f04d76c7c194c5d9df1254931034 | [
"CC0-1.0"
] | null | null | null | #include "cinder/app/AppNative.h"
#include "cinder/gl/gl.h"
#include "cinder/Serial.h"
#include "ciSpacebrew.h"
#include "cinder/Utilities.h"
#include "cinder/Json.h"
#include "cinder/gl/Texture.h"
#include "cinder/params/Params.h"
#include <boost/regex.hpp>
#include "cinder/Text.h"
#include "WebSocketClient.h"
#inclu... | 29.306122 | 114 | 0.596971 | redpaperheart |
52145d7199962855220eca470c7ed35b48abbdb1 | 4,074 | cpp | C++ | classes/basic/object.cpp | Patriccollu/smooth | 8673d4702c55b1008bbcabddf7907da0e50505e4 | [
"Artistic-2.0"
] | 24 | 2017-08-22T15:55:34.000Z | 2022-03-06T11:41:31.000Z | classes/basic/object.cpp | Patriccollu/smooth | 8673d4702c55b1008bbcabddf7907da0e50505e4 | [
"Artistic-2.0"
] | 6 | 2018-07-21T12:17:55.000Z | 2021-08-12T11:27:27.000Z | classes/basic/object.cpp | Patriccollu/smooth | 8673d4702c55b1008bbcabddf7907da0e50505e4 | [
"Artistic-2.0"
] | 9 | 2017-09-13T02:32:18.000Z | 2022-03-06T11:41:32.000Z | /* The smooth Class Library
* Copyright (C) 1998-2018 Robert Kausch <robert.kausch@gmx.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of "The Artistic License, Version 2.0".
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRA... | 20.785714 | 84 | 0.663476 | Patriccollu |
5216b5ad453a4b113099857343d9891e53c4effe | 1,722 | cc | C++ | nnmlp/persist.cc | janwieners/TED | 62b05dc34c0c91b272c176c01de46b27dd9440d2 | [
"MIT"
] | null | null | null | nnmlp/persist.cc | janwieners/TED | 62b05dc34c0c91b272c176c01de46b27dd9440d2 | [
"MIT"
] | null | null | null | nnmlp/persist.cc | janwieners/TED | 62b05dc34c0c91b272c176c01de46b27dd9440d2 | [
"MIT"
] | null | null | null | /*
Copyright (C) 2002 John Darrington
This program is free software; you can redistibute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program i... | 28.229508 | 81 | 0.670151 | janwieners |
521c46c5184f8a45c85ad67d8828360ffe82e4ea | 4,983 | cc | C++ | src/memo/cli/Journal.cc | infinit/memo | 3a8394d0f647efe03ccb8bfe885a7279cb8be8a6 | [
"Apache-2.0"
] | 124 | 2017-06-22T19:20:54.000Z | 2021-12-23T21:36:37.000Z | src/memo/cli/Journal.cc | infinit/memo | 3a8394d0f647efe03ccb8bfe885a7279cb8be8a6 | [
"Apache-2.0"
] | 4 | 2017-08-21T15:57:29.000Z | 2019-01-10T02:52:35.000Z | src/memo/cli/Journal.cc | infinit/memo | 3a8394d0f647efe03ccb8bfe885a7279cb8be8a6 | [
"Apache-2.0"
] | 12 | 2017-06-29T09:15:35.000Z | 2020-12-31T12:39:52.000Z | #include <memo/cli/Journal.hh>
#include <elle/bytes.hh>
#include <elle/printf.hh>
#include <memo/cli/Memo.hh>
#include <memo/model/doughnut/ACB.hh>
#include <memo/model/doughnut/Async.hh>
#include <memo/model/doughnut/OKB.hh>
ELLE_LOG_COMPONENT("cli.journal");
namespace bfs = boost::filesystem;
namespace memo
{
... | 30.384146 | 87 | 0.526992 | infinit |
521d2ac2909e1efcc8d2d95471ffa02fea4d2365 | 4,018 | cpp | C++ | src/main.cpp | LaurentValette/BulletGL | 1272fa305b0e2818b98b44c481ae90d76b2f06f0 | [
"MIT"
] | null | null | null | src/main.cpp | LaurentValette/BulletGL | 1272fa305b0e2818b98b44c481ae90d76b2f06f0 | [
"MIT"
] | null | null | null | src/main.cpp | LaurentValette/BulletGL | 1272fa305b0e2818b98b44c481ae90d76b2f06f0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <chrono>
#include <thread>
#include <btBulletDynamicsCommon.h>
#define GLEW_STATIC
#include <GL/glew.h>
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <GLFW/glfw3.h>
#include "shaderloader.h"
#include "g... | 30.439394 | 129 | 0.683922 | LaurentValette |
521fb240e88b04e51d7138b41b99e86564341a4e | 5,717 | cpp | C++ | tests/sources/spec/routing/middleware_chain_spec.cpp | Cylix/NetFlex | 6ce8bf2167c24cc02a941a74a71107faf5e12d20 | [
"MIT"
] | 40 | 2017-07-05T08:43:57.000Z | 2020-09-22T11:38:15.000Z | tests/sources/spec/routing/middleware_chain_spec.cpp | Cylix/NetFlex | 6ce8bf2167c24cc02a941a74a71107faf5e12d20 | [
"MIT"
] | 1 | 2018-01-06T01:19:09.000Z | 2018-01-16T21:25:40.000Z | tests/sources/spec/routing/middleware_chain_spec.cpp | Cylix/NetFlex | 6ce8bf2167c24cc02a941a74a71107faf5e12d20 | [
"MIT"
] | 10 | 2017-07-05T01:23:04.000Z | 2020-06-01T13:31:51.000Z | // The MIT License (MIT)
//
// Copyright (c) 2015-2017 Simon Ninon <simon.ninon@gmail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitat... | 31.412088 | 139 | 0.693546 | Cylix |
522547370555d6fc96f43ed9f463a387961f8a9d | 4,468 | cpp | C++ | src/main.cpp | yo123abxd/fork_timer | 5a684eceb80d4b40152053df176249ae4a2c3a2a | [
"MIT"
] | null | null | null | src/main.cpp | yo123abxd/fork_timer | 5a684eceb80d4b40152053df176249ae4a2c3a2a | [
"MIT"
] | null | null | null | src/main.cpp | yo123abxd/fork_timer | 5a684eceb80d4b40152053df176249ae4a2c3a2a | [
"MIT"
] | 1 | 2021-05-06T14:41:48.000Z | 2021-05-06T14:41:48.000Z | #include <iostream>
#include <signal.h>
#include <string>
#include <sys/prctl.h>
#include <unistd.h>
#include <vector>
#include <wait.h>
#include "../include/Limiter.h" // https://github.com/yo123abxd/cpp_rate_limiter
#include "../include/execl_args.h"
using std::vector;
using std::string;
using token_bucket::Limiter... | 34.10687 | 83 | 0.536929 | yo123abxd |
5225c8dd2c43d8af1ba6f41a60bdcc678241c6f2 | 523 | cc | C++ | 0_leetcode/752_open-the-lock/test.cc | amdfansheng/alogrithm | b2e1dd4094b766895dda8c8fc2cbb2e37e6aa22d | [
"MIT"
] | null | null | null | 0_leetcode/752_open-the-lock/test.cc | amdfansheng/alogrithm | b2e1dd4094b766895dda8c8fc2cbb2e37e6aa22d | [
"MIT"
] | null | null | null | 0_leetcode/752_open-the-lock/test.cc | amdfansheng/alogrithm | b2e1dd4094b766895dda8c8fc2cbb2e37e6aa22d | [
"MIT"
] | null | null | null | // swap (unordered_set specialization)
#include <iostream>
#include <string>
#include <unordered_set>
int main ()
{
std::unordered_set<std::string>
first = {"Metropolis","Solaris","Westworld"},
second = {"Avatar","Inception"};
//swap(first,second);
first = second;
std::cout << "first:";
for (con... | 20.92 | 59 | 0.596558 | amdfansheng |
522b9cb9c7e8e84ae501c444e7309e853beae689 | 31,359 | cpp | C++ | Deps/PhysFS/physfs_platform_windows.cpp | nalexandru/NekoEngine | 27b13202d00523506fc74225196837d1171d3126 | [
"BSD-3-Clause"
] | 8 | 2016-04-17T17:46:13.000Z | 2022-01-31T15:49:47.000Z | Deps/PhysFS/physfs_platform_windows.cpp | nalexandru/NekoEngine | 27b13202d00523506fc74225196837d1171d3126 | [
"BSD-3-Clause"
] | 1 | 2021-07-13T15:05:13.000Z | 2021-08-24T23:46:59.000Z | Deps/PhysFS/physfs_platform_windows.cpp | nalexandru/NekoEngine | 27b13202d00523506fc74225196837d1171d3126 | [
"BSD-3-Clause"
] | 4 | 2016-08-25T06:41:05.000Z | 2021-03-31T12:04:31.000Z | /*
* Windows support routines for PhysicsFS.
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by Ryan C. Gordon, and made sane by Gregory S. Read.
*/
#define __PHYSICSFS_INTERNAL__
#include "physfs_platforms.h"
#ifdef PHYSFS_PLATFORM_WINDOWS
/* Forcibly disable UNICODE... | 30.475219 | 94 | 0.64055 | nalexandru |
522d43eb9f19eac1763edc347d4bfaad7cd0345e | 144 | cpp | C++ | examples/shared-sources/Source/Hello.cpp | chaos0x8/rake-builder | 6320739bc1f4e9a9ec31af5cb12bf813b30eed66 | [
"MIT"
] | 2 | 2020-10-27T11:32:42.000Z | 2020-10-28T21:12:20.000Z | examples/shared-sources/Source/Hello.cpp | chaos0x8/rake-builder | 6320739bc1f4e9a9ec31af5cb12bf813b30eed66 | [
"MIT"
] | null | null | null | examples/shared-sources/Source/Hello.cpp | chaos0x8/rake-builder | 6320739bc1f4e9a9ec31af5cb12bf813b30eed66 | [
"MIT"
] | null | null | null | #include "Hello.hpp"
#include <iostream>
namespace lib {
void hello() {
std::cout << "Hello world!" << std::endl;
}
} // namespace lib
| 16 | 45 | 0.604167 | chaos0x8 |
5238640b029cf04d3ca5e642c8556ac5fb8851ea | 5,586 | cpp | C++ | sadx-online/PacketBroker.cpp | SonicFreak94/sadx-online | 5ef6d82ea83e5d61135f76f41b903b8a93630056 | [
"MIT"
] | 1 | 2020-03-17T07:36:14.000Z | 2020-03-17T07:36:14.000Z | sadx-online/PacketBroker.cpp | SonicFreak94/sadx-online | 5ef6d82ea83e5d61135f76f41b903b8a93630056 | [
"MIT"
] | null | null | null | sadx-online/PacketBroker.cpp | SonicFreak94/sadx-online | 5ef6d82ea83e5d61135f76f41b903b8a93630056 | [
"MIT"
] | 1 | 2019-12-09T02:46:17.000Z | 2019-12-09T02:46:17.000Z | #include "stdafx.h"
#include <chrono>
#include <thread>
#include <SADXModLoader.h>
#include "PacketBroker.h"
#include "packet_overloads.h"
#include "Listener.h"
using namespace std::chrono;
void spawn_character(const int index, const Characters character)
{
if (GetCharObj2(index) != nullptr)
{
return;
}
Obj... | 19.738516 | 120 | 0.694952 | SonicFreak94 |
523f9cdc57392d629a04861778481aad606ac874 | 1,044 | cpp | C++ | lib/os/thread.cpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | lib/os/thread.cpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | lib/os/thread.cpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- lib/os/thread.cpp --------------------------------------------------===//
//* _ _ _ *
//* | |_| |__ _ __ ___ __ _ __| | *
//* | __| '_ \| '__/ _ \/ _` |/ _` | *
//* | |_| | | | | | __/ (_| | (_| | *
//* \__|_| |_|_| \___|\__,_|\__,_| *
//* *
//===... | 32.625 | 82 | 0.415709 | paulhuggett |
524001c1fd7cb16b1708f593bcdc68c8857decba | 840 | cpp | C++ | print/XPSDrvSmpl/src/common/porientschema.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 3,084 | 2015-03-18T04:40:32.000Z | 2019-05-06T17:14:33.000Z | print/XPSDrvSmpl/src/common/porientschema.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 275 | 2015-03-19T18:44:41.000Z | 2019-05-06T14:13:26.000Z | print/XPSDrvSmpl/src/common/porientschema.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 3,091 | 2015-03-19T00:08:54.000Z | 2019-05-06T16:42:01.000Z | /*++
Copyright (c) 2005 Microsoft Corporation
All rights reserved.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
File Name:
pori... | 24 | 87 | 0.74881 | ixjf |
5240ba5350b2e7f279a32dc38f75894ada93d64c | 3,867 | cpp | C++ | sources/calibn/calibn.cpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | null | null | null | sources/calibn/calibn.cpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | null | null | null | sources/calibn/calibn.cpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | 1 | 2018-11-01T13:11:39.000Z | 2018-11-01T13:11:39.000Z | #include "args.hpp"
#include "calibgraphbuilder.hpp"
void version()
{
std::cout << "calibn 1.0.0" << std::endl;
}
int main(int argc, char* argv[])
{
CalibGraph graph;
Args args(argc, argv);
if (!args.logfilePath.empty()) initLogFile(args.logfilePath);
if (!args.IsOkay())
{
if (args.ve... | 28.433824 | 112 | 0.586243 | SimonsRoad |
5241505d46a79c3552db129b1ca461cd990dbc4c | 7,452 | cpp | C++ | src/Test/buildKKRMatrixTest_kokkos/makegij_new.cpp | rdietric/lsms | 8d0d5f01186abf9a1cc54db3f97f9934b422cf92 | [
"BSD-3-Clause"
] | 28 | 2020-01-05T20:05:31.000Z | 2022-03-07T09:08:01.000Z | src/Test/buildKKRMatrixTest_kokkos/makegij_new.cpp | rdietric/lsms | 8d0d5f01186abf9a1cc54db3f97f9934b422cf92 | [
"BSD-3-Clause"
] | 8 | 2019-07-30T13:59:18.000Z | 2022-03-31T17:43:35.000Z | lsms/src/Test/buildKKRMatrixTest_kokkos/makegij_new.cpp | hkershaw-brown/MuST | 9db4bc5061c2f2c4d7dfd92f53b4ef952602c070 | [
"BSD-3-Clause"
] | 13 | 2020-02-11T17:04:45.000Z | 2022-03-28T09:23:46.000Z | #include <cstdlib>
#include <stdlib.h>
#include "Real.hpp"
#include "Complex.hpp"
#include "Matrix.hpp"
#include "Array3d.hpp"
// #define INLINE_PLGLMAX
extern "C"
{
void plglmax_(int *lend, Real*costheta, Real*plm);
}
// void plglmax_new(int lmax, Real x, Real*plm);
// #include "plglmax_new.cpp"
#include "associ... | 30.666667 | 94 | 0.410896 | rdietric |
5244daa53a2314e3e951badcd46da1cd9cae6bf1 | 4,952 | cpp | C++ | communicator/api/src/CPayload.cpp | esOdysseus/common_communicator | 987abf2d568008421efc52bcb93408dc3270118c | [
"Apache-2.0"
] | null | null | null | communicator/api/src/CPayload.cpp | esOdysseus/common_communicator | 987abf2d568008421efc52bcb93408dc3270118c | [
"Apache-2.0"
] | null | null | null | communicator/api/src/CPayload.cpp | esOdysseus/common_communicator | 987abf2d568008421efc52bcb93408dc3270118c | [
"Apache-2.0"
] | 1 | 2019-12-12T07:57:27.000Z | 2019-12-12T07:57:27.000Z | /***
* CPayload.cpp
* Copyright [2019-]
* Written by EunSeok Kim <es.odysseus@gmail.com>
*
* This file is part of the Common-Communicator framework.
*/
#include <cassert>
#include <logger.h>
#include <CPayload.h>
#include <IProtocolInf.h>
#include <CRawMessage.h>
namespace payload
{
typedef enum E_ERROR {
... | 25.394872 | 102 | 0.636914 | esOdysseus |
524524ffae5b8d0c7ddb0a5f22a76c6ac5677ce5 | 251 | cpp | C++ | projects/abuild/scanners/scanners.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | projects/abuild/scanners/scanners.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | 136 | 2020-03-29T11:15:38.000Z | 2020-10-14T06:21:23.000Z | projects/abuild/scanners/scanners.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | 1 | 2020-08-04T09:56:53.000Z | 2020-08-04T09:56:53.000Z | export module abuild.scanners;
#ifndef __clang__
export import :project_scanner;
#else
export import abuild.cache;
import athreadpool;
// clang-format off
#include "project_scanner.cpp" //NOLINT(bugprone-suspicious-include)
// clang-format on
#endif
| 20.916667 | 68 | 0.796813 | agnesoft |
524725b8f36a247e7cec6fec1280caeec32b03b9 | 10,924 | cpp | C++ | src/l_CustomAttribute.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | 2 | 2018-05-13T05:27:29.000Z | 2018-05-29T06:35:57.000Z | src/l_CustomAttribute.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | src/l_CustomAttribute.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | #include "l_CustomAttribute.hpp"
CustomAttribute* lua_pushcustomAttribute(lua_State *L, CustomAttribute* customAttribute) {
if (customAttribute == nullptr) {
customAttribute = new CustomAttribute();
}
CustomAttribute** customAttributePtr = static_cast<CustomAttribute**>
(lua_newuserdata(L, sizeof(Custom... | 24.770975 | 90 | 0.66569 | benzap |
525da26fc6c658dda657e621493758882ff14c4a | 83 | hpp | C++ | labs/1/11-12-polymorphism/unfinished-example-solution/IShootable.hpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 19 | 2020-02-21T16:46:50.000Z | 2022-01-26T19:59:49.000Z | labs/1/11-12-polymorphism/unfinished-example-solution/IShootable.hpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 1 | 2020-03-14T08:09:45.000Z | 2020-03-14T08:09:45.000Z | labs/2/11-12-polymorphism/unfinished-example-solution/IShootable.hpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 11 | 2020-02-23T12:29:58.000Z | 2021-04-11T08:30:12.000Z | #pragma once
class IShootable
{
public:
virtual void getShot(int dmg) = 0;
};
| 10.375 | 38 | 0.674699 | triffon |
52633d0454926903042eef0074eba83c17a415d5 | 478 | cc | C++ | Obligatories/Q1/PRO1/CN1/P27341/prog1.cc | atsuky/RepoFIBtori | 49a80979791f6ebe47e1453ce843b363aaac041a | [
"MIT"
] | 1 | 2019-11-08T12:46:26.000Z | 2019-11-08T12:46:26.000Z | Obligatories/Q1/PRO1/CN1/P27341/prog1.cc | atsuky/RepoFIBtori | 49a80979791f6ebe47e1453ce843b363aaac041a | [
"MIT"
] | null | null | null | Obligatories/Q1/PRO1/CN1/P27341/prog1.cc | atsuky/RepoFIBtori | 49a80979791f6ebe47e1453ce843b363aaac041a | [
"MIT"
] | 1 | 2021-10-20T20:18:08.000Z | 2021-10-20T20:18:08.000Z | #include <iostream>
using namespace std;
//P27341
//pre: sequencia de parells enters a i b.
//post: resultat de la suma a³ + (a+1)³ +... + (b-1)³ + b³.
int pow (int n) {
int pot = 1;
for (int i = 0; i < 3; ++i) {
pot = pot*n;
}
return pot;
}
int main () {
int a, b;
while (cin >> a >> b) {
cout << "suma de... | 17.071429 | 61 | 0.48954 | atsuky |
526903e047e61e4f2089d86f1b9287647ac31611 | 13,051 | cpp | C++ | Proj_Android/app/src/main/cpp/FNotificationCenter.cpp | nraptis/Metal_OpenGL_MobileGameEngine | cc36682676a9797df8b3a7ee235b99be3ae2f666 | [
"MIT"
] | 3 | 2019-10-10T19:25:42.000Z | 2019-12-17T10:51:23.000Z | Framework/[C++ Core]/FNotificationCenter.cpp | nraptis/Metal_OpenGL_MobileGameEngine | cc36682676a9797df8b3a7ee235b99be3ae2f666 | [
"MIT"
] | null | null | null | Framework/[C++ Core]/FNotificationCenter.cpp | nraptis/Metal_OpenGL_MobileGameEngine | cc36682676a9797df8b3a7ee235b99be3ae2f666 | [
"MIT"
] | 1 | 2021-11-16T15:29:40.000Z | 2021-11-16T15:29:40.000Z | //
// FNotificationCenter.cpp
// DigMMMac
//
// Created by Raptis, Nicholas on 7/2/18.
// Copyright © 2018 Darkswarm LLC. All rights reserved.
//
#include "core_includes.h"
#include "FNotificationCenter.hpp"
#include "FCanvas.hpp"
#include "FFileTable.hpp"
FNotificationCenter::FNotificationCenter() {
}
FNo... | 32.384615 | 148 | 0.597349 | nraptis |
526ddf7b45ce6c12ffc7f49c56d33c419458fbcf | 2,325 | cpp | C++ | message_queue/sysv/EchoServer.cpp | hechaoli/linux_ipc_examples | 953eb613a96ffaee41652b419befa3dddb12118b | [
"MIT"
] | null | null | null | message_queue/sysv/EchoServer.cpp | hechaoli/linux_ipc_examples | 953eb613a96ffaee41652b419befa3dddb12118b | [
"MIT"
] | null | null | null | message_queue/sysv/EchoServer.cpp | hechaoli/linux_ipc_examples | 953eb613a96ffaee41652b419befa3dddb12118b | [
"MIT"
] | null | null | null | #include <assert.h>
#include <string.h> // For memset
#include <sys/ipc.h>
#include <sys/msg.h>
#include <sys/types.h>
#include <iostream>
#include <unordered_set>
#include "Common.h"
void setMsgText(Msgbuf &msgbuf, const std::string &str) {
int size = sizeof(msgbuf.msg.text);
assert(str.length() < size);
cha... | 25.833333 | 77 | 0.590968 | hechaoli |
5270fc986d128fd6a9fd712b7e2ce4a2f9858d38 | 5,387 | hpp | C++ | src/utils/json/any.hpp | vhb/SimpleOcr | 1d6a3f42c739159f71064a120b997eb0f449544f | [
"MIT"
] | 1 | 2022-01-12T15:00:08.000Z | 2022-01-12T15:00:08.000Z | src/utils/json/any.hpp | vhb/SimpleOcr | 1d6a3f42c739159f71064a120b997eb0f449544f | [
"MIT"
] | null | null | null | src/utils/json/any.hpp | vhb/SimpleOcr | 1d6a3f42c739159f71064a120b997eb0f449544f | [
"MIT"
] | null | null | null | // A generic json parser
// Copyright (C) 2014 Vhb
//
// 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, ... | 24.711009 | 86 | 0.545387 | vhb |
5271b158f77dfe7e05d5e09ca4fe971b73f29793 | 4,720 | hh | C++ | include/pe.hh | MPSLab-ASU/DiRAC | 761b6b6413d451b8b6369e02e992d586cbdbfb7f | [
"MIT"
] | 7 | 2020-06-18T02:36:55.000Z | 2022-03-24T05:51:35.000Z | include/pe.hh | cmlasu/DiRAC | 761b6b6413d451b8b6369e02e992d586cbdbfb7f | [
"MIT"
] | null | null | null | include/pe.hh | cmlasu/DiRAC | 761b6b6413d451b8b6369e02e992d586cbdbfb7f | [
"MIT"
] | 2 | 2020-11-26T02:26:33.000Z | 2022-03-28T12:56:22.000Z | #ifndef __PE_HH__
#define __PE_HH__
#include <queue>
#include <deque>
#include "definitions.hh"
using namespace std;
///
/// Implementation of a FIFO with read and write pointer
/// if FIFO is full, data is over-written
///
class FIFO {
public:
FIFO()
{
dataArr = new data_type[maxItems_PE_FIFO];
}
~FIFO(... | 24.712042 | 78 | 0.734958 | MPSLab-ASU |
5278d8763020c4196d9f9d34fbba75f4a0dc8298 | 1,332 | cpp | C++ | matrix/src/op/AddGradOp.cpp | Jarlene/Matrix | 7b2e07a46f8d0477243d49c76db575280096e247 | [
"Apache-2.0"
] | 2 | 2017-07-22T05:20:57.000Z | 2018-07-08T08:48:33.000Z | matrix/src/op/AddGradOp.cpp | Jarlene/Matrix | 7b2e07a46f8d0477243d49c76db575280096e247 | [
"Apache-2.0"
] | null | null | null | matrix/src/op/AddGradOp.cpp | Jarlene/Matrix | 7b2e07a46f8d0477243d49c76db575280096e247 | [
"Apache-2.0"
] | null | null | null | //
// Created by Jarlene on 2017/8/23.
//
#include "matrix/include/op/AddGradOp.h"
namespace matrix {
template <class T, class xpu>
AddGradOp<T, xpu>::AddGradOp(Parameter ¶m) {
INIT_PARAMS
}
template <class T, class xpu>
bool AddGradOp<T, xpu>::Run() {
if (InputSize() < 2)... | 20.492308 | 83 | 0.557057 | Jarlene |
527e4e44fe2c754c9178b4ce986828bc5d7e310f | 38 | cpp | C++ | tests/unit/parse/concepts/control.cpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 1 | 2019-04-30T17:56:23.000Z | 2019-04-30T17:56:23.000Z | tests/unit/parse/concepts/control.cpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | null | null | null | tests/unit/parse/concepts/control.cpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 4 | 2018-08-01T08:32:00.000Z | 2019-12-18T06:34:33.000Z | #include "parse/concepts/control.hpp"
| 19 | 37 | 0.789474 | qedalab |
527f65993753bfbffc46ce1d3e96f1236fe4ae50 | 879 | cpp | C++ | LastSolve/10591.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | LastSolve/10591.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | LastSolve/10591.cpp | abdullah1107/uva | 5c7107d41a586e30aa7cc91cd7498b82dbc506ee | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int sum(int n)
{
int a,result=0;
while(1)
{
if(n<=9)
{
result=result+(n*n);
break;
}
a=n%10;
result=result+(a*a);
n=n/10;
}
// cout<<result<<" ";
return... | 17.58 | 69 | 0.354949 | abdullah1107 |
5282ecf8640193854b2a547574d8b1773a1f7d2e | 10,362 | cpp | C++ | drivers/floppy.cpp | pgrAm/JSD-OS | abe4e3b5307a83b3b8b31e71c60171e21d4b7690 | [
"BSD-3-Clause"
] | 10 | 2020-01-14T05:38:35.000Z | 2022-03-17T03:17:07.000Z | drivers/floppy.cpp | pgrAm/JSD-OS | abe4e3b5307a83b3b8b31e71c60171e21d4b7690 | [
"BSD-3-Clause"
] | 1 | 2020-05-02T18:22:26.000Z | 2020-05-02T18:26:18.000Z | drivers/floppy.cpp | pgrAm/JSD-OS | abe4e3b5307a83b3b8b31e71c60171e21d4b7690 | [
"BSD-3-Clause"
] | 1 | 2021-07-09T17:06:38.000Z | 2021-07-09T17:06:38.000Z | #include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <kernel/fs_driver.h>
#include <kernel/interrupt.h>
#include <kernel/locks.h>
#include <kernel/sysclock.h>
#include <drivers/portio.h>
#include <drivers/isa_dma.h>
#include <drivers/cmos.h>
#define FLOPPY_360_SECTORS_PER_TRACK 9
#define FLOPPY_360_H... | 24.73031 | 111 | 0.710963 | pgrAm |
5283bc5a833257e8219577c5855c6a0e1f6c9e29 | 3,429 | hpp | C++ | source/xyo/xyo-datastructures-dynamicobject.hpp | g-stefan/xyo | e203cb699d6bba46eae6c8157f27ea29ab7506f1 | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo/xyo-datastructures-dynamicobject.hpp | g-stefan/xyo | e203cb699d6bba46eae6c8157f27ea29ab7506f1 | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo/xyo-datastructures-dynamicobject.hpp | g-stefan/xyo | e203cb699d6bba46eae6c8157f27ea29ab7506f1 | [
"MIT",
"Unlicense"
] | null | null | null | ///
// XYO
//
// Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#ifndef XYO_DATASTRUCTURES_DYNAMICOBJECT_HPP
#define XYO_DATASTRUCTURES_DYNAMICOBJECT_HPP
#ifndef XYO_MANAGEDMEMORY... | 23.979021 | 103 | 0.670166 | g-stefan |
528401a8f3718d010943ba8c0800f2a315cec10b | 313 | cpp | C++ | src/semestre-2/tp-4/lib/binarytree.cpp | guillaume-haerinck/imac-c | 2d88de90acdb546479c4e310528e786358e66bd7 | [
"MIT"
] | null | null | null | src/semestre-2/tp-4/lib/binarytree.cpp | guillaume-haerinck/imac-c | 2d88de90acdb546479c4e310528e786358e66bd7 | [
"MIT"
] | null | null | null | src/semestre-2/tp-4/lib/binarytree.cpp | guillaume-haerinck/imac-c | 2d88de90acdb546479c4e310528e786358e66bd7 | [
"MIT"
] | null | null | null | #include "binarytree.h"
#include "mainwindow.h"
#include <time.h>
#include <chrono>
#include <thread>
uint _treeNodesCount(const Node &node)
{
uint count = 1;
if (node.left)
count += _treeNodesCount(*node.left);
if (node.right)
count += _treeNodesCount(*node.right);
return count;
}
| 16.473684 | 41 | 0.654952 | guillaume-haerinck |
528816ff13dbf1801c4bde4c88825bd6c128f05b | 328 | cpp | C++ | snippets/cpp/VS_Snippets_CLR/consolein/CPP/consolein.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-02-22T09:30:21.000Z | 2021-08-02T23:44:31.000Z | snippets/cpp/VS_Snippets_CLR/consolein/CPP/consolein.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR/consolein/CPP/consolein.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z |
//<snippet1>
using namespace System;
using namespace System::IO;
int main()
{
TextReader^ tIn = Console::In;
TextWriter^ tOut = Console::Out;
tOut->WriteLine( "Hola Mundo!" );
tOut->Write( "What is your name: " );
String^ name = tIn->ReadLine();
tOut->WriteLine( "Buenos Dias, {0}!", name );
}
//</sn... | 20.5 | 48 | 0.625 | BohdanMosiyuk |
528d82ec4505a78f27e992dd3dd7ad0197330527 | 1,006 | cpp | C++ | Muriel/MuColorMaterial.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:15:27.000Z | 2017-03-01T12:15:27.000Z | Muriel/MuColorMaterial.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:19:17.000Z | 2017-03-01T12:19:52.000Z | Muriel/MuColorMaterial.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "MuColorMaterial.h"
#include "MuAbstractCamera.h"
#include "MuShader.h"
#include "MuGameObject.h"
namespace Muriel
{
ColorMaterial::ColorMaterial(Shader* shader, const Color& color)
: BaseMaterial(shader)
{
_projectionModelViewMatrixId = shader->GetUniformLocation(SHADER_U... | 31.4375 | 137 | 0.777336 | MurielSoftware |
529653eb52c00337157f00cad37a5a5427b1130a | 5,963 | hpp | C++ | include/boost/asio/spawn2.hpp | rosorio/pichi | 66f8a0164bd2a5fd9907b86c26b4127b52c6797f | [
"BSD-3-Clause"
] | null | null | null | include/boost/asio/spawn2.hpp | rosorio/pichi | 66f8a0164bd2a5fd9907b86c26b4127b52c6797f | [
"BSD-3-Clause"
] | null | null | null | include/boost/asio/spawn2.hpp | rosorio/pichi | 66f8a0164bd2a5fd9907b86c26b4127b52c6797f | [
"BSD-3-Clause"
] | null | null | null | #ifndef BOOST_ASIO_SPAWN2_HPP
#define BOOST_ASIO_SPAWN2_HPP
#include <boost/asio/detail/throw_error.hpp>
#include <boost/asio/dispatch.hpp>
#include <boost/asio/post.hpp>
#include <boost/asio/strand.hpp>
#include <boost/coroutine2/coroutine.hpp>
#include <cassert>
#include <functional>
#include <memory>
#include <opti... | 30.116162 | 100 | 0.694114 | rosorio |
529a7567d453647bbf5d68f4698b1dfef3b0f5d2 | 816 | cpp | C++ | src/engine/factory/entityPrototype.cpp | karljacques/Indicium | 165e8b42d1ba5787712a2b173ac279a4ba4dc063 | [
"MIT"
] | null | null | null | src/engine/factory/entityPrototype.cpp | karljacques/Indicium | 165e8b42d1ba5787712a2b173ac279a4ba4dc063 | [
"MIT"
] | null | null | null | src/engine/factory/entityPrototype.cpp | karljacques/Indicium | 165e8b42d1ba5787712a2b173ac279a4ba4dc063 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "entityPrototype.h"
EntityPrototype::EntityPrototype( Entity* ent)
{
_prototype = _clone( ent );
// Deactivate the prototype
for( auto i=_prototype->mComponents.begin();i!=_prototype->mComponents.end();i++)
{
(*i)->deactivate();
}
}
Entity* EntityPrototype::spawn(void)
{
Entity* e... | 18.545455 | 82 | 0.666667 | karljacques |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.