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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
949985e87588cebd15c365a2feb4019e90a5a53b | 409 | hpp | C++ | snowflake/core/hooks/framestagenotify.hpp | HenkieHanker2/snowflake | 79d43493eed4f60c78c64f0f39d106ed02d49ab8 | [
"MIT"
] | 1 | 2019-10-02T21:07:20.000Z | 2019-10-02T21:07:20.000Z | snowflake/core/hooks/framestagenotify.hpp | HenkieHanker2/snowflake | 79d43493eed4f60c78c64f0f39d106ed02d49ab8 | [
"MIT"
] | null | null | null | snowflake/core/hooks/framestagenotify.hpp | HenkieHanker2/snowflake | 79d43493eed4f60c78c64f0f39d106ed02d49ab8 | [
"MIT"
] | null | null | null | #pragma once
#include "../../menu/menu.hpp"
void __stdcall frame_stage_notify( client_frame_stage_t frame_stage ) {
using original_fn = void( __thiscall* )( void*, client_frame_stage_t );
hooks::get( ).client_hook.original<original_fn>( 36 )( interfaces::get( ).client, frame_stage );
interfaces::get( ).console->ge... | 45.444444 | 118 | 0.723716 | HenkieHanker2 |
94a28821e09364a3200a18238f785a56dc186a27 | 4,619 | cpp | C++ | Application/source/ui/overlay/NewPlaylist.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | null | null | null | Application/source/ui/overlay/NewPlaylist.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | null | null | null | Application/source/ui/overlay/NewPlaylist.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | null | null | null | #include "ui/overlay/NewPlaylist.hpp"
// Button dimensions
#define BUTTON_F 26
#define BUTTON_W 170
#define BUTTON_H 50
// Dimensions
#define PADDING 30
#define TEXTBOX_HEIGHT 50
#define WIDTH 650
#define HEIGHT 320
// Font sizes
#define HEADING_SIZE 36
#define SUBHEADING_SIZE 28
namespace CustomOvl {
NewPlayli... | 33.963235 | 204 | 0.578047 | RoutineFree |
94a4077193f95cd8639c2de58e05c0584c3a27f4 | 7,509 | hh | C++ | utilmm/configfile/commandline.hh | annaborn/utilmm | 701f0fe8312471d20dd06e567b988de2e5a67d1a | [
"CECILL-B"
] | null | null | null | utilmm/configfile/commandline.hh | annaborn/utilmm | 701f0fe8312471d20dd06e567b988de2e5a67d1a | [
"CECILL-B"
] | 3 | 2015-12-22T16:59:15.000Z | 2020-03-11T12:10:19.000Z | utilmm/configfile/commandline.hh | annaborn/utilmm | 701f0fe8312471d20dd06e567b988de2e5a67d1a | [
"CECILL-B"
] | 2 | 2015-12-22T14:26:35.000Z | 2020-02-28T10:33:29.000Z | #ifndef UTILMM_COMMANDLINE_HH
#define UTILMM_COMMANDLINE_HH
#include <string>
#include <vector>
#include <list>
// #include <getopt.h>
#include <iosfwd>
namespace utilmm
{
class config_set;
class bad_syntax : public std::exception
{
public:
~bad_syntax() throw() {}
std::string sou... | 33.977376 | 107 | 0.620322 | annaborn |
94a7996fd6e0d696dcab0fcaee862be6ae8ab2b3 | 290 | hpp | C++ | library/misc/zeta.hpp | fura2/competitive-programming-library | fc101651640ac5418155efce74f5ec103443bc8c | [
"MIT"
] | null | null | null | library/misc/zeta.hpp | fura2/competitive-programming-library | fc101651640ac5418155efce74f5ec103443bc8c | [
"MIT"
] | null | null | null | library/misc/zeta.hpp | fura2/competitive-programming-library | fc101651640ac5418155efce74f5ec103443bc8c | [
"MIT"
] | null | null | null | /*
下位集合に対する高速ゼータ変換
M : 可換モノイド
f : 2^{0, 1, ..., N-1} -> M
に対して
g(S) = Σ_{T ⊂ S} f(T)
で定義される g : 2^{0, 1, ..., N-1} -> M を求める
*/
template<class M>
vector<M> zeta_subset(vector<M> f){
int n=log2(f.size());
rep(i,n) rep(S,1<<n) if(~S>>i&1) f[S|1<<i]=f[S|1<<i]*f[S];
return f;
}
| 18.125 | 59 | 0.496552 | fura2 |
94a85f1fe07047a494edf93640aa346d0a8a3bd9 | 722 | hpp | C++ | cpp/src/strategies/heuristic_base.hpp | calincru/UltimateTicTacToe | 2811c9021369f97dd3d6fa4f2247cbadb1aece49 | [
"Apache-2.0"
] | null | null | null | cpp/src/strategies/heuristic_base.hpp | calincru/UltimateTicTacToe | 2811c9021369f97dd3d6fa4f2247cbadb1aece49 | [
"Apache-2.0"
] | null | null | null | cpp/src/strategies/heuristic_base.hpp | calincru/UltimateTicTacToe | 2811c9021369f97dd3d6fa4f2247cbadb1aece49 | [
"Apache-2.0"
] | null | null | null | #ifndef INCLUDED_HEURISTIC_BASE_HPP
#define INCLUDED_HEURISTIC_BASE_HPP 1
// Project
#include "table_t.hpp"
#include "player_e.hpp"
#include "square_pos_t.hpp"
// C++
#include <vector>
namespace tictactoe {
class heuristic_base {
protected:
const table_t &d_table;
const std::vector<big_pos_e> &d_avail;
... | 20.628571 | 55 | 0.686981 | calincru |
94aa927f0c75a33903fb1e4b663b846526037437 | 15,104 | cpp | C++ | src/04_MultilayerPerceptrons/dropout.cpp | jiamny/D2L_pytorch_cpp | 5bd89bb5531b9fca4fbe0dc3bfe5beaa7c45cb09 | [
"MIT"
] | null | null | null | src/04_MultilayerPerceptrons/dropout.cpp | jiamny/D2L_pytorch_cpp | 5bd89bb5531b9fca4fbe0dc3bfe5beaa7c45cb09 | [
"MIT"
] | null | null | null | src/04_MultilayerPerceptrons/dropout.cpp | jiamny/D2L_pytorch_cpp | 5bd89bb5531b9fca4fbe0dc3bfe5beaa7c45cb09 | [
"MIT"
] | 1 | 2022-03-11T00:12:20.000Z | 2022-03-11T00:12:20.000Z | #include <torch/torch.h>
#include <torch/script.h>
#include <torch/autograd.h>
#include <torch/utils.h>
#include <iostream>
#include <unistd.h>
#include <iomanip>
#include "../fashion.h"
#include "../utils.h"
#include "../matplotlibcpp.h"
namespace plt = matplotlibcpp;
torch::Tensor dropout_layer(torch::Tensor X, fl... | 34.405467 | 159 | 0.678165 | jiamny |
94b157fc3b01b24b805355ae69ad71e5c7d2eb9a | 1,296 | cpp | C++ | DATA STRUCTURES/Array/Count Number of Primes in Given Range/code_1.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 27 | 2019-01-31T10:22:29.000Z | 2021-08-29T08:25:12.000Z | DATA STRUCTURES/Array/Count Number of Primes in Given Range/code_1.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 6 | 2020-09-30T19:01:49.000Z | 2020-12-17T15:10:54.000Z | DATA STRUCTURES/Array/Count Number of Primes in Given Range/code_1.cpp | Jatin-Goyal5/Data-Structures-and-Algorithms | f6bd0f77e5640c2e0568f3fffc4694758e77af96 | [
"MIT"
] | 27 | 2019-09-21T14:19:32.000Z | 2021-09-15T03:06:41.000Z | //
// code_1.cpp
// Algorithm
//
// Created by Mohd Shoaib Rayeen on 23/11/18.
// Copyright © 2018 Shoaib Rayeen. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
const int MAX = 10000;
struct Range {
int L, R;
};
int prefix[MAX + 1];
void buildPrefix() {
bool prime[MAX... | 20.903226 | 102 | 0.451389 | Jatin-Goyal5 |
94b31f6dbbdbe85ba420b828ea960f0953b50eac | 210 | cpp | C++ | StealthTutorial/Source/StealthTutorial/StealthTutorial.cpp | Elysia-ff/UE4-Custom_Stencil_Tutorial | f8d13d9d1092cce622870ef0e9c9a032e84115bf | [
"MIT"
] | null | null | null | StealthTutorial/Source/StealthTutorial/StealthTutorial.cpp | Elysia-ff/UE4-Custom_Stencil_Tutorial | f8d13d9d1092cce622870ef0e9c9a032e84115bf | [
"MIT"
] | null | null | null | StealthTutorial/Source/StealthTutorial/StealthTutorial.cpp | Elysia-ff/UE4-Custom_Stencil_Tutorial | f8d13d9d1092cce622870ef0e9c9a032e84115bf | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
#include "StealthTutorial.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, StealthTutorial, "StealthTutorial" );
| 30 | 92 | 0.809524 | Elysia-ff |
94b4fd8fd1ab710e61133d4681201ef132854959 | 1,132 | cpp | C++ | src/Library/Painters/SpectralColorPainter.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | 1 | 2018-12-20T19:31:02.000Z | 2018-12-20T19:31:02.000Z | src/Library/Painters/SpectralColorPainter.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | src/Library/Painters/SpectralColorPainter.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////
//
// SpectralColorPainter.cpp - Implements the Spectal Color Painter
//
// Author: Aravind Krishnaswamy
// Date of Birth: September 14, 2001
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
//
////... | 24.608696 | 121 | 0.664311 | aravindkrishnaswamy |
94bc1b8c542e03098af9d5f688118c46ea39dac8 | 3,635 | cc | C++ | lite/backends/nnadapter/nnadapter/src/operation/split.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 808 | 2018-04-17T17:43:12.000Z | 2019-08-18T07:39:13.000Z | lite/backends/nnadapter/nnadapter/src/operation/split.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 728 | 2018-04-18T08:15:25.000Z | 2019-08-16T07:14:43.000Z | lite/backends/nnadapter/nnadapter/src/operation/split.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 364 | 2018-04-18T17:05:02.000Z | 2019-08-18T03:25:38.000Z | // Copyright (c) 2021 PaddlePaddle Authors. 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 34.951923 | 79 | 0.689133 | Danielmic |
94bc50c65cc0e3dcc404424b74506c94e65a157e | 4,576 | cpp | C++ | rasterization/src/main.cpp | daemyung/graphics_sw_examples | 8d9cceb89a417de40460adb63707b8991634ba93 | [
"MIT"
] | null | null | null | rasterization/src/main.cpp | daemyung/graphics_sw_examples | 8d9cceb89a417de40460adb63707b8991634ba93 | [
"MIT"
] | null | null | null | rasterization/src/main.cpp | daemyung/graphics_sw_examples | 8d9cceb89a417de40460adb63707b8991634ba93 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright(c) 2018 Jang daemyung
//
// 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, modif... | 32.453901 | 96 | 0.649038 | daemyung |
94bd158ec933b030d3dd7f9c883459ab563d9e3e | 1,108 | cpp | C++ | tests/operators/cast.cpp | tstrutz/sqlite_orm | 1ee0a8653fe57ed4d4f69b5a65839b1861c41d32 | [
"BSD-3-Clause"
] | 1,566 | 2016-12-20T15:31:04.000Z | 2022-03-31T18:17:34.000Z | tests/operators/cast.cpp | tstrutz/sqlite_orm | 1ee0a8653fe57ed4d4f69b5a65839b1861c41d32 | [
"BSD-3-Clause"
] | 620 | 2017-01-06T13:53:35.000Z | 2022-03-31T12:05:50.000Z | tests/operators/cast.cpp | tstrutz/sqlite_orm | 1ee0a8653fe57ed4d4f69b5a65839b1861c41d32 | [
"BSD-3-Clause"
] | 274 | 2017-01-07T05:34:24.000Z | 2022-03-27T18:22:47.000Z | #include <sqlite_orm/sqlite_orm.h>
#include <catch2/catch.hpp>
using namespace sqlite_orm;
TEST_CASE("Cast") {
struct Student {
int id;
float scoreFloat;
std::string scoreString;
};
auto storage = make_storage("",
make_table("students",
... | 30.777778 | 111 | 0.50722 | tstrutz |
94bd28a10fe89450887d3f07cc3f8372742709ef | 1,281 | cpp | C++ | Algorithmic Tool Box/week4_divide_and_conquer/5_organizing_a_lottery/points_and_segments.cpp | Roopam-mishra/Data-Structures-and-Algorithms | 0422c64769909ad82c631c14e814d958136afc18 | [
"MIT"
] | 12 | 2020-06-01T17:34:08.000Z | 2022-03-25T12:27:09.000Z | Algorithmic Tool Box/week4_divide_and_conquer/5_organizing_a_lottery/points_and_segments.cpp | Roopam-mishra/Data-Structures-and-Algorithms | 0422c64769909ad82c631c14e814d958136afc18 | [
"MIT"
] | null | null | null | Algorithmic Tool Box/week4_divide_and_conquer/5_organizing_a_lottery/points_and_segments.cpp | Roopam-mishra/Data-Structures-and-Algorithms | 0422c64769909ad82c631c14e814d958136afc18 | [
"MIT"
] | 2 | 2021-06-26T19:43:49.000Z | 2022-03-05T22:02:59.000Z | #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
struct roop
{
ll x;
ll y;
};
bool comp2(roop a, roop b)
{
return a.x<b.x;
}
bool comp(roop a ,roop b)
{
if(a.x==b.x)
{
return a.y<b.y;
}
else
return a.x<b.x;
}
int main()
{
ios_base:... | 16.855263 | 39 | 0.362998 | Roopam-mishra |
94bdf6dab92630cce976f183bb4010a3cd6e6c33 | 1,830 | hpp | C++ | libs/opencl/include/sge/opencl/command_queue/scoped_planar_mapping.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/opencl/include/sge/opencl/command_queue/scoped_planar_mapping.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/opencl/include/sge/opencl/command_queue/scoped_planar_mapping.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_OPENCL_COMMAND_QUEUE_SCOPED_PLANAR_MAPPING_HPP_INCLUDED
#define SGE_OPENCL_COMMAND_QUEU... | 31.016949 | 75 | 0.763934 | cpreh |
94ca635962efdf8d8875df9a6eaaf102eb264dca | 1,112 | cpp | C++ | Game-Theory/Nimble.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 86 | 2016-10-18T23:30:36.000Z | 2022-01-09T21:57:34.000Z | Game-Theory/Nimble.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 1 | 2018-04-13T09:38:36.000Z | 2018-04-13T09:38:36.000Z | Game-Theory/Nimble.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 39 | 2017-03-02T07:25:40.000Z | 2020-12-14T12:13:50.000Z | #include <bits/stdc++.h>
using namespace std;
/**
Name: Nimble
Description: Nimble is played on a game board consisting of a line of squares labeled: 0, 1, 2, 3, ... n.
A finite number of coins is placed on the squares with possible more than one coin on a single square.
A m... | 25.860465 | 119 | 0.57464 | Fresher001 |
94ce9d37340f157ecb9e9a69fbb5ca081ad601a7 | 281 | hpp | C++ | include/fast_ber/ber_types/TeletexString.hpp | yudanli/fast_ber | d3e790f86ff91df8b6d6a0f308803606f59452af | [
"BSL-1.0"
] | 74 | 2019-02-07T03:24:10.000Z | 2022-03-22T04:40:44.000Z | include/fast_ber/ber_types/TeletexString.hpp | yudanli/fast_ber | d3e790f86ff91df8b6d6a0f308803606f59452af | [
"BSL-1.0"
] | 32 | 2019-06-02T10:13:13.000Z | 2021-12-09T08:56:08.000Z | include/fast_ber/ber_types/TeletexString.hpp | yudanli/fast_ber | d3e790f86ff91df8b6d6a0f308803606f59452af | [
"BSL-1.0"
] | 11 | 2019-05-26T18:06:00.000Z | 2021-11-21T16:08:07.000Z | #pragma once
#include "fast_ber/ber_types/StringImpl.hpp"
#include "fast_ber/ber_types/Tag.hpp"
namespace fast_ber
{
template <typename Identifier = ExplicitId<UniversalTag::teletex_string>>
using TeletexString = fast_ber::StringImpl<UniversalTag::teletex_string, Identifier>;
}
| 25.545455 | 85 | 0.811388 | yudanli |
94d0e946b2515161c870d7dcbd929aa7700a2f17 | 706 | cpp | C++ | test_package/features/step_definitions/step_definitions.cpp | meshell/cucumber-cpp_conan | 3cae4daa68d3207da708183cedcab78b8bc54c66 | [
"MIT"
] | null | null | null | test_package/features/step_definitions/step_definitions.cpp | meshell/cucumber-cpp_conan | 3cae4daa68d3207da708183cedcab78b8bc54c66 | [
"MIT"
] | null | null | null | test_package/features/step_definitions/step_definitions.cpp | meshell/cucumber-cpp_conan | 3cae4daa68d3207da708183cedcab78b8bc54c66 | [
"MIT"
] | 1 | 2021-12-27T15:10:31.000Z | 2021-12-27T15:10:31.000Z | #include <gtest/gtest.h>
#include <cucumber-cpp/autodetect.hpp>
namespace
{
using cucumber::ScenarioScope;
struct Context {
int number_1;
int number_2;
int result;
};
GIVEN("^the numbers (-?\\d+) and (-?\\d+)$") {
REGEX_PARAM(int, number_1);
REGEX_PARAM(int, number_2);
ScenarioScope<Context>... | 20.171429 | 60 | 0.664306 | meshell |
94d1496353ef5418b2b06b0e622158dc5a554c9c | 378 | hh | C++ | mork.hh | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | mork.hh | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | mork.hh | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | #ifndef __MAKEMORE_MORK_HH__
#define __MAKEMORE_MORK_HH__ 1
#include <stdint.h>
#include <string>
namespace makemore {
extern const uint8_t mork_rgb[32 * 48 * 3];
struct Mork {
unsigned int scale;
uint8_t *rgb;
Mork(const std::string &_pngfn, unsigned int _scale);
~Mork();
void print(const std::string ... | 15.12 | 74 | 0.703704 | jdb19937 |
94d2a84e1b3f900886a8403ce8e61adaa3fc2a66 | 3,499 | cpp | C++ | src/CellGrid.cpp | LucidSigma/GameOfLife | 4611e9c83137dfac1a3c10b007d14fe46210b31b | [
"MIT"
] | null | null | null | src/CellGrid.cpp | LucidSigma/GameOfLife | 4611e9c83137dfac1a3c10b007d14fe46210b31b | [
"MIT"
] | null | null | null | src/CellGrid.cpp | LucidSigma/GameOfLife | 4611e9c83137dfac1a3c10b007d14fe46210b31b | [
"MIT"
] | null | null | null | #include "CellGrid.h"
#include <algorithm>
#include <fstream>
#include <stdexcept>
#include <utility>
#include "Colours.h"
CellGrid::CellGrid()
{
static const std::string cellFilename = "Cells.txt";
LoadCellsFromFile(cellFilename);
}
void CellGrid::IterateCells() noexcept
{
using CellVector = std::vector<std::pa... | 22.574194 | 122 | 0.658188 | LucidSigma |
94d73b793942db93fab5d2d21875a0dccbaf96e5 | 1,947 | cpp | C++ | src/lug/Graphics/Vulkan/Render/Pipeline.cpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 275 | 2016-10-08T15:33:17.000Z | 2022-03-30T06:11:56.000Z | src/lug/Graphics/Vulkan/Render/Pipeline.cpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 24 | 2016-09-29T20:51:20.000Z | 2018-05-09T21:41:36.000Z | src/lug/Graphics/Vulkan/Render/Pipeline.cpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 37 | 2017-02-25T05:03:48.000Z | 2021-05-10T19:06:29.000Z | #include <lug/Graphics/Vulkan/Render/Pipeline.hpp>
#include <memory>
#include <lug/Graphics/Render/Mesh.hpp>
#include <lug/Graphics/Vulkan/API/Builder/DescriptorSetLayout.hpp>
#include <lug/Graphics/Vulkan/API/Builder/GraphicsPipeline.hpp>
#include <lug/Graphics/Vulkan/API/Builder/PipelineLayout.hpp>
#include <lug/Gr... | 30.904762 | 127 | 0.686184 | Lugdunum3D |
94d77c431b73033ede8bb367262539e21f582946 | 6,532 | cpp | C++ | vmm/integration/mv_vs_op_gla_to_gpa.cpp | Pavan-Infovision/MicroV | b83870f20d6b3bfde80e3a0012f14e0e8d77a6e9 | [
"MIT"
] | 159 | 2020-04-10T22:31:16.000Z | 2022-03-26T07:52:23.000Z | vmm/integration/mv_vs_op_gla_to_gpa.cpp | Pavan-Infovision/MicroV | b83870f20d6b3bfde80e3a0012f14e0e8d77a6e9 | [
"MIT"
] | 67 | 2020-04-21T19:40:54.000Z | 2022-03-04T13:38:40.000Z | vmm/integration/mv_vs_op_gla_to_gpa.cpp | Pavan-Infovision/MicroV | b83870f20d6b3bfde80e3a0012f14e0e8d77a6e9 | [
"MIT"
] | 29 | 2020-04-11T02:43:33.000Z | 2022-02-07T15:53:18.000Z | /// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... | 40.07362 | 96 | 0.638549 | Pavan-Infovision |
94d88c337783d268b90f40211636ade575f873ee | 446 | hpp | C++ | FootSoldier.hpp | nivtal9/wargame-a | e15d3b5c36909b122b6982c4728ecf93a7d5ba05 | [
"MIT"
] | null | null | null | FootSoldier.hpp | nivtal9/wargame-a | e15d3b5c36909b122b6982c4728ecf93a7d5ba05 | [
"MIT"
] | null | null | null | FootSoldier.hpp | nivtal9/wargame-a | e15d3b5c36909b122b6982c4728ecf93a7d5ba05 | [
"MIT"
] | null | null | null | //
// Created by nivtal9 on 24.5.2020.
//
#ifndef WARGAME_A_FOOTSOLDIER_HPP
#define WARGAME_A_FOOTSOLDIER_HPP
#include "Soldier.hpp"
using namespace::std;
class FootSoldier : public Soldier{
public:
explicit FootSoldier(uint id) : Soldier(id) {
t=type::footsoldier;
hp=100;
power=10;
... | 17.84 | 53 | 0.692825 | nivtal9 |
94d8ef39b6f71c95d5ce994afb4e5a155d3c8777 | 1,404 | cpp | C++ | src/operators/selector/proportional.cpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 50 | 2020-10-14T10:08:21.000Z | 2022-03-10T12:55:05.000Z | src/operators/selector/proportional.cpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 16 | 2020-10-26T13:05:47.000Z | 2022-02-22T20:24:41.000Z | src/operators/selector/proportional.cpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 16 | 2020-10-26T13:05:38.000Z | 2022-01-14T02:52:13.000Z | // SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright 2019-2021 Heal Research
#include "operators/selection.hpp"
namespace Operon {
size_t
ProportionalSelector::operator()(Operon::RandomGenerator& random) const
{
std::uniform_real_distribution<Operon::Scalar> uniformReal(0, fitness.back().first - ... | 35.1 | 159 | 0.670228 | lf-shaw |
94dc821ae6fe9fb119fbe8bd55aa5db0fdbbd91d | 472 | cpp | C++ | test/lib/Tag_test.cpp | alepez/bmrk | 04db2646b42662b976b4f4a1a5fb414ca73df163 | [
"MIT"
] | null | null | null | test/lib/Tag_test.cpp | alepez/bmrk | 04db2646b42662b976b4f4a1a5fb414ca73df163 | [
"MIT"
] | null | null | null | test/lib/Tag_test.cpp | alepez/bmrk | 04db2646b42662b976b4f4a1a5fb414ca73df163 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <Tag.hpp>
#include "helpers.hpp"
namespace bmrk {
struct TagTest : public testing::Test {
};
TEST_F(TagTest, CanParseTagsFromCommaSeparatedString) {
std::string tagsStr = "one,two,tree";
auto tags = parseTags(tagsStr);
ASSERT_EQ(3u, tags.size());
}
TEST_F(TagTest, CanFormatTags... | 19.666667 | 55 | 0.699153 | alepez |
94e0425718b4a681340d284740b03a35cb291a8e | 18,335 | cc | C++ | semant/semant1.cc | Snowfall99/seal-compiler | 8ea600d6312d1da145e6d8f018c20751826d4efa | [
"MIT"
] | 4 | 2020-10-25T14:40:20.000Z | 2020-11-22T05:38:17.000Z | semant/semant1.cc | Snowfall99/seal-compiler | 8ea600d6312d1da145e6d8f018c20751826d4efa | [
"MIT"
] | 1 | 2020-10-17T16:18:18.000Z | 2020-10-19T14:46:31.000Z | semant/semant1.cc | Snowfall99/seal-compiler | 8ea600d6312d1da145e6d8f018c20751826d4efa | [
"MIT"
] | 2 | 2020-12-01T06:17:05.000Z | 2020-12-02T10:13:18.000Z | #include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include "semant.h"
#include "utilities.h"
extern int semant_debug;
extern char *curr_filename;
static ostream& error_stream = cerr;
static int semant_errors = 0;
static Decl curr_decl = 0;
typedef SymbolTable<Symbol, Symbol> ObjectEnvironment; ... | 25.571827 | 130 | 0.549332 | Snowfall99 |
94e07db279dd48efd1a3a9642fea10ffab47fa91 | 90 | cpp | C++ | src/tb3k/Tone.cpp | nlang/tb3k | 6e19b47147081f2a68443e5b29861faee67dbe09 | [
"MIT"
] | null | null | null | src/tb3k/Tone.cpp | nlang/tb3k | 6e19b47147081f2a68443e5b29861faee67dbe09 | [
"MIT"
] | null | null | null | src/tb3k/Tone.cpp | nlang/tb3k | 6e19b47147081f2a68443e5b29861faee67dbe09 | [
"MIT"
] | null | null | null | #include "Tone.h"
Tone::Tone(int tone, int duration): tone(tone), duration(duration) {
}
| 18 | 68 | 0.688889 | nlang |
94e0e92e28341f380101642d2725acd79c6544db | 1,693 | cpp | C++ | csacademy/81C.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | csacademy/81C.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | csacademy/81C.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int mod = 1e9+7;
int pow(int a, int i){
int res = 1;
while(i > 0){
if(i & 1){
res = 1LL*res*a%mod;
}
a = 1LL*a*a%mod;
i /= 2;
}
return res;
}
int... | 23.84507 | 68 | 0.35381 | freedomDR |
94e10030331448aa85df19ea76187950d564871e | 3,324 | cpp | C++ | libfma/src/fma/symbol/CalculatedNumber.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | libfma/src/fma/symbol/CalculatedNumber.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | libfma/src/fma/symbol/CalculatedNumber.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #include <fma/symbol/CalculatedNumber.hpp>
#include <fma/output/DynamicBuffer.hpp>
#include <sstream>
using namespace FMA::symbol;
// ----------------------------------------------------------------------------
std::string CalculatedNumber::asString() const {
std::ostringstream os;
os << left->asString();
switc... | 34.989474 | 91 | 0.580626 | BenjaminSchulte |
94e1e619b37b142865a1184325b0267b2f5e9d83 | 538 | cpp | C++ | ch07/list_7.1/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 17 | 2020-01-01T16:44:05.000Z | 2022-03-31T07:20:13.000Z | ch07/list_7.1/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 1 | 2021-07-04T01:41:53.000Z | 2021-07-14T19:17:01.000Z | ch07/list_7.1/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 3 | 2019-11-28T14:37:09.000Z | 2021-05-22T02:55:15.000Z | #include <iostream>
class Base
{
// 被保護メンバー
protected:
void protected_member()
{
std::cout << "Base::protected_member()" << std::endl;
}
};
class Derived : public Base
{
public:
void member_test();
};
void Derived::member_test()
{
// OK。基底クラスの被保護メンバーには派生クラスからアクセスでき... | 15.371429 | 62 | 0.604089 | shoeisha-books |
94e917e761e0b70fa6c486918354606bfadf14f1 | 69 | cpp | C++ | Primitives/List.cpp | dllexport/cxxredis | 91bebcea1c873b868a538742b17f3cf02f077de1 | [
"BSD-3-Clause"
] | null | null | null | Primitives/List.cpp | dllexport/cxxredis | 91bebcea1c873b868a538742b17f3cf02f077de1 | [
"BSD-3-Clause"
] | null | null | null | Primitives/List.cpp | dllexport/cxxredis | 91bebcea1c873b868a538742b17f3cf02f077de1 | [
"BSD-3-Clause"
] | null | null | null | ////
//// Created by Mario on 2020/5/18.
////
//
//#include "List.h"
| 11.5 | 35 | 0.507246 | dllexport |
94ea5c5931df42ba626d14ae4eb29a94aa0a0d94 | 1,238 | cpp | C++ | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Drill5.cpp | Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 9 | 2018-10-24T15:16:47.000Z | 2021-12-14T13:53:50.000Z | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Drill5.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | null | null | null | Visual Studio 2010/Projects/bjarneStroustrupC++PartIV/bjarneStroustrupC++PartIV/Chapter24Drill5.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 7 | 2018-10-29T15:30:37.000Z | 2021-01-18T15:15:09.000Z | /*
TITLE IO Matrix Chapter24Drill5.cpp
COMMENT
Objective: Read ten floating-point values from input and
put them into a Matrix<double>.
Matrix has no push_back() so be careful to handle
an attempt to enter a wrong number of doubles.
Print out the Matrix.
... | 19.046154 | 81 | 0.563005 | Ziezi |
94ef2c21396d483cb180d21625cbe9a527d1c398 | 2,327 | cpp | C++ | #174.cpp | LiFantastic/LeetCode | ed7a25b96595531009e55de9aeebe758ca0734d2 | [
"Apache-2.0"
] | null | null | null | #174.cpp | LiFantastic/LeetCode | ed7a25b96595531009e55de9aeebe758ca0734d2 | [
"Apache-2.0"
] | null | null | null | #174.cpp | LiFantastic/LeetCode | ed7a25b96595531009e55de9aeebe758ca0734d2 | [
"Apache-2.0"
] | null | null | null | /*============================================================
Problem: Dungeon Game
==============================================================
The demons had captured the princess (P) and imprisoned her in
the bottom-right corner of a dungeon. The dungeon consists of
M x N rooms laid out in a 2D grid. Our valian... | 35.257576 | 90 | 0.589171 | LiFantastic |
94f1aa539b504e02f198c35e1dd05bcefacee836 | 866 | cpp | C++ | WLMatrix/src/libmatrix/dto/AccountDataResponse.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | WLMatrix/src/libmatrix/dto/AccountDataResponse.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | WLMatrix/src/libmatrix/dto/AccountDataResponse.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | #pragma once
#include "AccountDataResponse.h"
#include "cpprest/json.h"
using namespace web;
using namespace json;
using namespace utility;
using namespace conversions;
AccountDataResponse::AccountDataResponse(){
};
AccountDataResponse::AccountDataResponse(std::string json)
{
json::value jsonAsObj = json::value:... | 23.405405 | 74 | 0.748268 | aeoncl |
94fe874219c5345f94cdaf5e9916191a08e64918 | 13,958 | cpp | C++ | src/Plugins/Movie1Plugin/LoaderResourceMovie.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Plugins/Movie1Plugin/LoaderResourceMovie.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Plugins/Movie1Plugin/LoaderResourceMovie.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "LoaderResourceMovie.h"
#include "Interface/VocabularyServiceInterface.h"
#include "ResourceMovie.h"
#include "Kernel/Logger.h"
#include "Kernel/ConstStringHelper.h"
#include "Metacode/Metacode.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
namesp... | 36.443864 | 157 | 0.533959 | irov |
a20b5f86f431798ded0f8299a7923d6e8d4338cf | 419 | cpp | C++ | Input_Output/Dividing/divide.cpp | InamulRehman/CplusplusPrograms | 9504ade75c07ce3cb34b91760750ef0904fddc97 | [
"MIT"
] | null | null | null | Input_Output/Dividing/divide.cpp | InamulRehman/CplusplusPrograms | 9504ade75c07ce3cb34b91760750ef0904fddc97 | [
"MIT"
] | null | null | null | Input_Output/Dividing/divide.cpp | InamulRehman/CplusplusPrograms | 9504ade75c07ce3cb34b91760750ef0904fddc97 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main ()
{
int dividend, divisor, quotient, remainder;
cout << "Enter Dividend: " << flush;
cin >> dividend;
cout << "Enter Divisor " << flush;
cin >> divisor;
quotient = dividend/ divisor;
remainder = dividend % divisor;
cout << "Quotient i... | 22.052632 | 50 | 0.587112 | InamulRehman |
a20ba773525d81f677a17c65f8265e8f00e48237 | 1,565 | cpp | C++ | Difficulty 2/lawn_mower.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 2/lawn_mower.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | Difficulty 2/lawn_mower.cpp | BrynjarGeir/Kattis | a151972cbae3db04a8e6764d5fa468d0146c862b | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int nx, ny;
double w, xi, yi, total_width, total_length;
bool bw, bl;
vector<pair<double, double>> length, width;
for(int i = 0; i < 50; i++) {
cin >> nx >> ny >> w;
if (nx == 0 && ny == 0... | 27.45614 | 117 | 0.395527 | BrynjarGeir |
a20fc33f303b0fbccb3abcdf86ceb03a5c0eb640 | 390 | cpp | C++ | luogu/p1338.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p1338.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p1338.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
int n, m;
cin >> n >> m;
vector<int> ans(n+1);
int l = 1, r = n;
for(int i = 1; i <= n; i++)
{
int t = (ll)(n-i)*(n-i-1)/2;
if(t >= m) ans[l++] = i;
else ans[r--] = i, m -= (r-l+1);
}
... | 20.526316 | 54 | 0.407692 | freedomDR |
a215f737cae0ebd32fc62193f830911ec77c590d | 12,383 | cpp | C++ | src/asuka/configuration.cpp | shizgnit/asuka | 5390bea8a376f5900714d28bf5cc5ecb0b17a5dd | [
"BSD-3-Clause"
] | null | null | null | src/asuka/configuration.cpp | shizgnit/asuka | 5390bea8a376f5900714d28bf5cc5ecb0b17a5dd | [
"BSD-3-Clause"
] | null | null | null | src/asuka/configuration.cpp | shizgnit/asuka | 5390bea8a376f5900714d28bf5cc5ecb0b17a5dd | [
"BSD-3-Clause"
] | null | null | null | /*
================================================================================
$RCSfile: configuration.cpp,v $ $Revision: 1.3 $ $State: Exp $
--------------------------------------------------------------------------------
Copyright (c) 2005, Dee E. Abbott
All rights reserved.
Redistribution and use in s... | 24.61829 | 112 | 0.559154 | shizgnit |
a21879be9a27648fc0b2a7ac257bf4e9e67e5d5c | 265 | hpp | C++ | Source/Shader/ShaderStages.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Shader/ShaderStages.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | Source/Shader/ShaderStages.hpp | frobro98/Musa | 6e7dcd5d828ca123ce8f43d531948a6486428a3d | [
"MIT"
] | null | null | null | // Copyright 2020, Nathan Blane
#pragma once
struct ShaderStage
{
enum Type
{
Vertex = 0,
Fragment = 1,
Geometry = 2,
TessalationEval = 3,
TessalationControl = 4,
Compute = 5,
GfxStageCount = 5,
StageCount = 6,
MAX_WORD_SIZE = 0x7FFF
};
};
| 12.045455 | 31 | 0.645283 | frobro98 |
a2192a078ad909e6105667023a021b4d6539799c | 3,061 | hpp | C++ | src/cradle/imaging/forward.hpp | mghro/astroid-core | 72736f64bed19ec3bb0e92ebee4d7cf09fc0399f | [
"MIT"
] | null | null | null | src/cradle/imaging/forward.hpp | mghro/astroid-core | 72736f64bed19ec3bb0e92ebee4d7cf09fc0399f | [
"MIT"
] | 3 | 2020-10-26T18:45:47.000Z | 2020-10-26T18:46:06.000Z | src/cradle/imaging/forward.hpp | mghro/astroid-core | 72736f64bed19ec3bb0e92ebee4d7cf09fc0399f | [
"MIT"
] | null | null | null | #ifndef CRADLE_IMAGING_FORWARD_HPP
#define CRADLE_IMAGING_FORWARD_HPP
#include <cradle/common.hpp>
namespace cradle {
// Due to the templating, it's not really possible to forward declare concrete
// image types, so we need some definitions. However, this is still much less
// than would be included from the full he... | 22.843284 | 78 | 0.738321 | mghro |
b8d5f019b3d74f4bbd47940ba4c116cdb1c3d440 | 318 | cpp | C++ | dlloader/dlloader_test.cpp | zrora/DistributedNAS | f750e919eb9159b2406180a21aeb8018a3a432a0 | [
"MIT"
] | null | null | null | dlloader/dlloader_test.cpp | zrora/DistributedNAS | f750e919eb9159b2406180a21aeb8018a3a432a0 | [
"MIT"
] | null | null | null | dlloader/dlloader_test.cpp | zrora/DistributedNAS | f750e919eb9159b2406180a21aeb8018a3a432a0 | [
"MIT"
] | null | null | null | #include "dlloader.hpp"
#include "sharedobject.hpp"
#include "../dirmonitor/dirmonitor.hpp"
using namespace ilrd;
int main()
{
DirMonitor dm("/home/bob45/svn/Proj/src/project/dlloader", IN_CLOSE_WRITE | IN_MOVED_TO) ;
DLLoader dll(&dm);
// DirMonitor.subscribe(dm);
dm.Monitor();
while(1);
return 0;
}
| 18.705882 | 93 | 0.698113 | zrora |
b8d5f91c6e351d1bf9c83b5c5eee8e85ae964f93 | 3,434 | cpp | C++ | source/torrentor/InfoHeaderView.cpp | guidopola/Torrentor | 946a4c871fca7c7741fcefc6fd8f121367f1e57f | [
"MIT"
] | 4 | 2018-02-12T04:36:02.000Z | 2018-12-28T17:38:50.000Z | source/torrentor/InfoHeaderView.cpp | guidopola/Torrentor | 946a4c871fca7c7741fcefc6fd8f121367f1e57f | [
"MIT"
] | null | null | null | source/torrentor/InfoHeaderView.cpp | guidopola/Torrentor | 946a4c871fca7c7741fcefc6fd8f121367f1e57f | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
// Copyright (c) 2012-2013, Guido Pola.
//
// 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 restrict... | 28.380165 | 120 | 0.696564 | guidopola |
b8d7491b060d93cc823b86c9921221152157b6ec | 1,132 | cpp | C++ | source/Model3D.cpp | VehicularEpic/vehicularepic.github.io | 310b1b3674d6efb2a2ae4dd2368b8cc8d30e6a19 | [
"MIT"
] | null | null | null | source/Model3D.cpp | VehicularEpic/vehicularepic.github.io | 310b1b3674d6efb2a2ae4dd2368b8cc8d30e6a19 | [
"MIT"
] | null | null | null | source/Model3D.cpp | VehicularEpic/vehicularepic.github.io | 310b1b3674d6efb2a2ae4dd2368b8cc8d30e6a19 | [
"MIT"
] | null | null | null | #include "Model3D.hpp"
Model3D::Model3D(std::vector<GLfloat> data) : length(data.size() / 9) {
glGenVertexArrays(1, &this->object);
glBindVertexArray(this->object);
glGenBuffers(1, &this->buffer);
glBindBuffer(GL_ARRAY_BUFFER, this->buffer);
glBufferData(GL_ARRAY_BUFFER, data.size() * sizeof(GLflo... | 31.444444 | 103 | 0.690813 | VehicularEpic |
b8d84fc72975404c3f81e7355e0e68eb7ab0eb2c | 623 | cpp | C++ | Codeforces/1043A - Elections.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/1043A - Elections.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/1043A - Elections.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
bool possible(vector<int> &arr, int k, int opp) {
int res = 0;
for (auto el: arr) res += (k - el);
return res > opp;
}
int main() {
ios::sync_with_stdio(false);
int n;
cin >> n;
vector<int> arr(n);
int sum = 0, mx = 0;
for (auto &el: ar... | 20.766667 | 63 | 0.4687 | naimulcsx |
b8d87725b1dc3ef2b5d7852bb8262147c8383a33 | 4,159 | cpp | C++ | libctrpf/source/CTRPluginFrameworkImpl/Graphics/TouchKeyString.cpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/source/CTRPluginFrameworkImpl/Graphics/TouchKeyString.cpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/source/CTRPluginFrameworkImpl/Graphics/TouchKeyString.cpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | #include "CTRPluginFrameworkImpl/Graphics/TouchKeyString.hpp"
#include "CTRPluginFrameworkImpl/Preferences.hpp"
namespace CTRPluginFramework
{
TouchKeyString::TouchKeyString(IntRect ui, bool isEnabled)
{
_uiProperties = ui;
_posY = _uiProperties.leftTop.y;
_enabled = isEnabled;
... | 26.157233 | 117 | 0.580909 | MirayXS |
b8de3afe0710f459ab1b2891450351dddee188df | 1,025,570 | hpp | C++ | rnn/src/network/seq_mnist/bilstm/W4A8/r_model_fw_bw.hpp | savannahcamp/RNN-PYNQ-1 | 0188d2492ceea12b90a90fbc28ffd777e5971471 | [
"BSD-3-Clause"
] | 1 | 2021-06-20T17:43:06.000Z | 2021-06-20T17:43:06.000Z | rnn/src/network/seq_mnist/bilstm/W4A8/r_model_fw_bw.hpp | savannahcamp/RNN-PYNQ-1 | 0188d2492ceea12b90a90fbc28ffd777e5971471 | [
"BSD-3-Clause"
] | null | null | null | rnn/src/network/seq_mnist/bilstm/W4A8/r_model_fw_bw.hpp | savannahcamp/RNN-PYNQ-1 | 0188d2492ceea12b90a90fbc28ffd777e5971471 | [
"BSD-3-Clause"
] | 1 | 2022-03-10T15:05:54.000Z | 2022-03-10T15:05:54.000Z | #pragma once
#define PE 1
#define SIMD_INPUT 4
#define SIMD_RECURRENT 16
#define NUMBER_OF_NEURONS 128
#define NUMBER_OF_NEURONS_TYPEWIDTH 9
#define HEIGHT_IN_PIX 32
#define HEIGHT_IN_PIX_TYPEWIDTH 7
#define NUMBER_OF_CLASSES 11
#define NUMBER_OF_CLASSES_TYPEWIDTH 8
#define MAX_NUMBER_COLUMNS_TEST_SET 224
#define MAX_N... | 5.969002 | 61 | 0.498497 | savannahcamp |
b8e58db1b363f2132a0c8cf3847601e4af09ce38 | 231 | hpp | C++ | inc/GraphicsLib/Graphics/3DModel/WavefrontOBJ/Components/WavefrontOBJTriangle.hpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | 1 | 2020-07-13T18:10:33.000Z | 2020-07-13T18:10:33.000Z | inc/GraphicsLib/Graphics/3DModel/WavefrontOBJ/Components/WavefrontOBJTriangle.hpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | null | null | null | inc/GraphicsLib/Graphics/3DModel/WavefrontOBJ/Components/WavefrontOBJTriangle.hpp | Sushiwave/graphics-lib | c303e9fb9f11276230a09b45581cdbefa8d2a356 | [
"MIT"
] | null | null | null | #pragma once
#include "WavefrontOBJVertex.hpp"
#include <GraphicsLib/Graphics/3DModel/Components/Triangle.hpp>
namespace cg
{
namespace wavefrontobj
{
template <typename Vertex_>
using Triangle = Triangle_<Vertex_>;
}
} | 14.4375 | 63 | 0.761905 | Sushiwave |
b8eb5f17e811b1e89a2e673671808ccd136a01ac | 2,765 | cpp | C++ | src/Common/Memory/BaseBuffer.cpp | baisai/LightInkLLM | 7f984bf5f3afa3ccfc2c04e8d41948cf3a9bb4b2 | [
"MIT"
] | 1 | 2017-11-16T16:29:01.000Z | 2017-11-16T16:29:01.000Z | src/Common/Memory/BaseBuffer.cpp | baisai/LightInkLLM | 7f984bf5f3afa3ccfc2c04e8d41948cf3a9bb4b2 | [
"MIT"
] | null | null | null | src/Common/Memory/BaseBuffer.cpp | baisai/LightInkLLM | 7f984bf5f3afa3ccfc2c04e8d41948cf3a9bb4b2 | [
"MIT"
] | 1 | 2018-12-29T06:51:42.000Z | 2018-12-29T06:51:42.000Z |
/* Copyright ChenDong(Wilbur), email <baisaichen@live.com>. All rights reserved.
*
* 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... | 24.254386 | 93 | 0.690778 | baisai |
b8f3d096f4919e4be896c83cdcfd20be5a4fc4bd | 1,590 | hpp | C++ | src/core/hittable.hpp | Platinum-Phoenix/Photorealistic | ecff2c6ae52686fffb4f6c7799e002f2898622c2 | [
"MIT"
] | null | null | null | src/core/hittable.hpp | Platinum-Phoenix/Photorealistic | ecff2c6ae52686fffb4f6c7799e002f2898622c2 | [
"MIT"
] | null | null | null | src/core/hittable.hpp | Platinum-Phoenix/Photorealistic | ecff2c6ae52686fffb4f6c7799e002f2898622c2 | [
"MIT"
] | null | null | null | #ifndef HITTABLE_HPP
#define HITTABLE_HPP
#include "main.hpp"
#include "ray.hpp"
class material;
struct hit_record { // A Mini ds for containing info about the hit of a surface
point3 p; // The point of contact
vec3 normal; // Don't know
double t; // The "t" that satisfies this equation: P... | 31.8 | 110 | 0.597484 | Platinum-Phoenix |
7701806af71c8833875c1e43f67fc688c41afe17 | 6,940 | cpp | C++ | source/private/core/Geometry.cpp | jakubtyrcha/playground | d6be4387ffb2d9a2106f01b4c1b1a46ce78c1cef | [
"MIT"
] | null | null | null | source/private/core/Geometry.cpp | jakubtyrcha/playground | d6be4387ffb2d9a2106f01b4c1b1a46ce78c1cef | [
"MIT"
] | null | null | null | source/private/core/Geometry.cpp | jakubtyrcha/playground | d6be4387ffb2d9a2106f01b4c1b1a46ce78c1cef | [
"MIT"
] | null | null | null | #include "Pch.h"
#include "Geometry.h"
namespace Playground {
Transform Transform::Translation(Vector3 translation) {
Transform default_t;
default_t.translation = translation;
return default_t;
}
Vector3 Transform::TransformVector(Vector3 v) const {
return rotation.transformVector(v * scale) + transl... | 26.090226 | 165 | 0.607925 | jakubtyrcha |
77064f3f07683c939c019fbb14914b8bbf80f61d | 6,112 | cpp | C++ | backend/daemon_driver.cpp | husky-team/PyHusky | ac3638101d9147890f9360bcfd18293f2ec1a9a3 | [
"Apache-2.0"
] | 9 | 2017-02-28T08:14:42.000Z | 2019-07-16T19:20:12.000Z | backend/daemon_driver.cpp | husky-team/PyHusky | ac3638101d9147890f9360bcfd18293f2ec1a9a3 | [
"Apache-2.0"
] | 13 | 2017-01-03T08:29:05.000Z | 2017-06-05T11:03:57.000Z | backend/daemon_driver.cpp | husky-team/PyHusky | ac3638101d9147890f9360bcfd18293f2ec1a9a3 | [
"Apache-2.0"
] | 6 | 2017-01-05T02:14:19.000Z | 2020-01-22T04:07:17.000Z | // Copyright 2016 Husky Team
//
// 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 writi... | 34.727273 | 117 | 0.692736 | husky-team |
770ef8dcc2d99401aada8beaf9f12595a39cf9ea | 1,276 | hpp | C++ | Krakoa/Source/Graphics/Resources/iShader.hpp | KingKiller100/Krakatoa-Engine | ff07f7328d428c04e06b561b6afd315eea39865c | [
"Apache-2.0"
] | null | null | null | Krakoa/Source/Graphics/Resources/iShader.hpp | KingKiller100/Krakatoa-Engine | ff07f7328d428c04e06b561b6afd315eea39865c | [
"Apache-2.0"
] | null | null | null | Krakoa/Source/Graphics/Resources/iShader.hpp | KingKiller100/Krakatoa-Engine | ff07f7328d428c04e06b561b6afd315eea39865c | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <Maths/Vectors/PredefinedVectors.hpp>
#include <Maths/Matrices/PredefinedMatrices.hpp>
#include <string>
namespace krakoa::gfx
{
struct ShaderSource
{
std::string vertexSource;
std::string fragmentSource;
};
class iShader
{
public:
virtual ~iShader();
virtual void Bind() const ... | 31.9 | 117 | 0.731975 | KingKiller100 |
7712b8113e1c50d15b88550bbc87d998f19fa7d2 | 1,769 | hpp | C++ | MetaDbl/SqlCommand.hpp | Metazion/MetaDb | 955ebbcdbaf5b939966544aa69bc62c24994a719 | [
"MIT"
] | 2 | 2015-08-06T11:57:28.000Z | 2015-08-06T11:58:39.000Z | MetaDbl/SqlCommand.hpp | Metazion/MetaDb | 955ebbcdbaf5b939966544aa69bc62c24994a719 | [
"MIT"
] | null | null | null | MetaDbl/SqlCommand.hpp | Metazion/MetaDb | 955ebbcdbaf5b939966544aa69bc62c24994a719 | [
"MIT"
] | null | null | null | #ifndef _METADBL_SQLCOMMAND_HPP_
#define _METADBL_SQLCOMMAND_HPP_
#include "MetaDbl/CoreInclude.hpp"
#include <string>
#include "MetaDbl/SqlBuffer.hpp"
#include "MetaDbl/SqlDefine.hpp"
#include "MetaDbl/SqlFieldParam.hpp"
DECL_NAMESPACE_METADBL_BEGIN
class SqlConnection;
class SqlResult;
class SqlCommand {
priva... | 19.876404 | 61 | 0.71792 | Metazion |
77164c7e7e217730558f638eec85015f3487aaab | 10,482 | hh | C++ | dune/grid/part/indexset/local.hh | dune-community/dune-grid-multiscale | cda095af3c472fb173717239527741439f5c0af6 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:10:46.000Z | 2020-02-08T04:10:46.000Z | dune/grid/part/indexset/local.hh | dune-community/dune-grid-multiscale | cda095af3c472fb173717239527741439f5c0af6 | [
"BSD-2-Clause"
] | 4 | 2019-05-09T08:05:19.000Z | 2019-06-28T11:57:35.000Z | dune/grid/part/indexset/local.hh | pymor/dune-grid-multiscale | cda095af3c472fb173717239527741439f5c0af6 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:10:49.000Z | 2020-02-08T04:10:49.000Z | // This file is part of the dune-grid-multiscale project:
// http://users.dune-project.org/projects/dune-grid-multiscale
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GRID_MULTISCALE_gridPart_INDEXSET_LOCAL_HH
#define DUNE_GRID_MULTIS... | 41.595238 | 119 | 0.678687 | dune-community |
771f730246764afb102b77e5187a26dd4b62ef11 | 262 | cpp | C++ | demo/src/tst_demo.cpp | Qters/QrTest | 1a5744b0f928fdc60ea9781e245ef4b60f6a2a62 | [
"Apache-2.0"
] | null | null | null | demo/src/tst_demo.cpp | Qters/QrTest | 1a5744b0f928fdc60ea9781e245ef4b60f6a2a62 | [
"Apache-2.0"
] | null | null | null | demo/src/tst_demo.cpp | Qters/QrTest | 1a5744b0f928fdc60ea9781e245ef4b60f6a2a62 | [
"Apache-2.0"
] | null | null | null | #include "tst_demo.h"
#include <QtTest/qtestcase.h>
void tst_Demo::toUpper() {
QString str = "hello";
QCOMPARE(str.toUpper(), QString("HELLO"));
}
void tst_Demo::toLower() {
QString str = "Hello";
QCOMPARE(str.toLower(), QString("hello"));
}
| 18.714286 | 46 | 0.637405 | Qters |
772ccbbca6dc9823fb09b8c0ac52eebc894a5889 | 4,011 | cpp | C++ | src/axom/mint/mesh/UniformMesh.cpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 86 | 2019-04-12T20:39:37.000Z | 2022-01-28T17:06:08.000Z | src/axom/mint/mesh/UniformMesh.cpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 597 | 2019-04-25T22:36:16.000Z | 2022-03-31T20:21:54.000Z | src/axom/mint/mesh/UniformMesh.cpp | bmhan12/axom | fbee125aec6357340f35b6fd5d0d4a62a3c80733 | [
"BSD-3-Clause"
] | 21 | 2019-06-27T15:53:08.000Z | 2021-09-30T20:17:41.000Z | // Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "axom/mint/mesh/UniformMesh.hpp"
// mint includes
#include "axom/mint/mesh/blueprint.hpp" // for blueprint func... | 33.705882 | 82 | 0.579157 | bmhan12 |
7730cd450cc02ad806bac7b1be42171feac41c33 | 25,245 | cpp | C++ | src/sdi-12-dr.cpp | lixpaulian/sdi-12-dr | 5495b3d166ada607ee635df5de4d28ea56900a67 | [
"MIT"
] | 3 | 2019-04-18T08:08:09.000Z | 2020-07-24T13:54:31.000Z | src/sdi-12-dr.cpp | lixpaulian/sdi-12-dr | 5495b3d166ada607ee635df5de4d28ea56900a67 | [
"MIT"
] | null | null | null | src/sdi-12-dr.cpp | lixpaulian/sdi-12-dr | 5495b3d166ada607ee635df5de4d28ea56900a67 | [
"MIT"
] | 2 | 2019-04-18T08:08:27.000Z | 2021-12-02T09:13:42.000Z | /*
* sdi-12-dr.cpp
*
* Copyright (c) 2017-2021 Lix N. Paulian (lix@paulian.net)
*
* 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 t... | 28.752847 | 87 | 0.497247 | lixpaulian |
7732c59511fda8b24d02deae5fb11ad8395914fb | 899 | cpp | C++ | src/Noise.cpp | sig0-totoro/JoSIM | 340219e0112566aae52ff1166fae74981819c90d | [
"MIT"
] | null | null | null | src/Noise.cpp | sig0-totoro/JoSIM | 340219e0112566aae52ff1166fae74981819c90d | [
"MIT"
] | null | null | null | src/Noise.cpp | sig0-totoro/JoSIM | 340219e0112566aae52ff1166fae74981819c90d | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Johannes Delport
// This code is licensed under MIT license (see LICENSE for details)
#include "JoSIM/Noise.hpp"
#include "JoSIM/Constants.hpp"
#include "JoSIM/Parameters.hpp"
#include "JoSIM/Misc.hpp"
#include "JoSIM/Errors.hpp"
using namespace JoSIM;
void JoSIM::Noise::determine_global_temper... | 26.441176 | 69 | 0.671858 | sig0-totoro |
7736107588f4be62d9e75d737544d72ba71fac6b | 37,859 | cpp | C++ | Database.cpp | Stykk-Gruppen/qTracker-Tracker | f4a75e8c8b8c636d79712d9c6a95232fea34fabb | [
"BSD-3-Clause"
] | 1 | 2020-10-17T20:09:47.000Z | 2020-10-17T20:09:47.000Z | Database.cpp | Feqzz/qTracker-Tracker | f4a75e8c8b8c636d79712d9c6a95232fea34fabb | [
"BSD-3-Clause"
] | null | null | null | Database.cpp | Feqzz/qTracker-Tracker | f4a75e8c8b8c636d79712d9c6a95232fea34fabb | [
"BSD-3-Clause"
] | 1 | 2021-05-21T17:29:27.000Z | 2021-05-21T17:29:27.000Z | #include "Database.h"
Database::Database(Logger* _logger): logger(_logger)
{
try
{
// Create a connection
driver = get_driver_instance();
std::string t = "tcp://";
t += dbHostName;
t += ":3306";
con = driver->connect(t, dbUserName, dbPassword);
// Connec... | 35.648776 | 143 | 0.482131 | Stykk-Gruppen |
773bb2cdbd4cbb9311aa61d61937b900d4091bad | 1,265 | cpp | C++ | December Challenge 2020/Long Challenge/POSPREFS.cpp | pratheekpai/CodeChef | 067ae2be32cd95a4fd77f1c2100d8db819ffe2ae | [
"MIT"
] | null | null | null | December Challenge 2020/Long Challenge/POSPREFS.cpp | pratheekpai/CodeChef | 067ae2be32cd95a4fd77f1c2100d8db819ffe2ae | [
"MIT"
] | null | null | null | December Challenge 2020/Long Challenge/POSPREFS.cpp | pratheekpai/CodeChef | 067ae2be32cd95a4fd77f1c2100d8db819ffe2ae | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
void positive_prefixes(){
int n, k, i, p=0, j;
cin >> n >> k;
int a[n+1];
if(n%2 == 0){
for(i=1; i<=n; ++i){
if(i%2==0){
a[i] = i;
p++;
continue;
}
a... | 18.880597 | 38 | 0.223715 | pratheekpai |
77466b3487bae6b3af000c947960e51c090d16a4 | 935 | cpp | C++ | XCP_Master/source/xcp/daqList.cpp | shreaker/OpenXCP | 3997c22a04d68c1cfe782d8206d9c1c0a56c77cf | [
"MIT"
] | 53 | 2018-01-19T11:52:18.000Z | 2022-01-26T02:43:08.000Z | XCP_Master/source/xcp/daqList.cpp | stefan-urban/OpenXCP | 3997c22a04d68c1cfe782d8206d9c1c0a56c77cf | [
"MIT"
] | 1 | 2019-08-05T06:41:14.000Z | 2022-02-03T19:20:55.000Z | XCP_Master/source/xcp/daqList.cpp | stefan-urban/OpenXCP | 3997c22a04d68c1cfe782d8206d9c1c0a56c77cf | [
"MIT"
] | 13 | 2018-06-29T08:34:31.000Z | 2021-12-10T15:57:31.000Z | /**
*@file daqList.cpp
*@author Michael Wolf
*@date 27.11.2017
*@brief Represents a XCP DAQ list.
*/
#include "daqList.h"
DaqList::DaqList(const uint16_t eventChannelNr)
: eventChannel(eventChannelNr),
daqListNr(0) {
}
uint16_t DaqList::getEventChannel() const {
return eventChannel... | 20.326087 | 94 | 0.697326 | shreaker |
7748d416bbd02b8ae763a18d804f67ce91ae7b2c | 1,679 | cpp | C++ | src/ikesaexecuter.cpp | OpenIKEv2/libopenikev2_impl | 3c620ca479b20814fe42325cffcfd1d18dbf041c | [
"Apache-2.0"
] | 3 | 2017-03-03T17:05:37.000Z | 2020-06-16T04:50:40.000Z | src/ikesaexecuter.cpp | OpenIKEv2/libopenikev2_impl | 3c620ca479b20814fe42325cffcfd1d18dbf041c | [
"Apache-2.0"
] | 11 | 2017-02-27T09:31:17.000Z | 2020-03-20T16:31:05.000Z | src/ikesaexecuter.cpp | OpenIKEv2/libopenikev2_impl | 3c620ca479b20814fe42325cffcfd1d18dbf041c | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
* Copyright (C) 2005 by *
* Alejandro Perez Mendez alex@um.es *
* Pedro J. Fernandez Ruiz pedroj@um.es *
* ... | 44.184211 | 182 | 0.508636 | OpenIKEv2 |
774ac2e13363baa2c0a8233ec521df137909169b | 1,997 | cpp | C++ | Days 051 - 060/Day 59/FileSyncAlgorithm.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 051 - 060/Day 59/FileSyncAlgorithm.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 051 - 060/Day 59/FileSyncAlgorithm.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <string>
#include <vector>
class FileDirectory
{
private:
std::map<std::string, std::string> files;
std::string name;
public:
explicit FileDirectory(const std::string& name)
: name(name)
{ }
bool AddFile(const std::string& path, const std::string& contents)
{
if ... | 18.321101 | 73 | 0.630446 | LucidSigma |
774c3829eff871aac21d2dcfef73fc62ebd81714 | 345,765 | cxx | C++ | ext/couchbase.cxx | jrawsthorne/couchbase-ruby-client | b6993845ef4b1b8c0183af69a263903a697c68c5 | [
"Apache-2.0"
] | null | null | null | ext/couchbase.cxx | jrawsthorne/couchbase-ruby-client | b6993845ef4b1b8c0183af69a263903a697c68c5 | [
"Apache-2.0"
] | null | null | null | ext/couchbase.cxx | jrawsthorne/couchbase-ruby-client | b6993845ef4b1b8c0183af69a263903a697c68c5 | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2020-2021 Couchbase, Inc.
*
* 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
*
* ... | 46.47379 | 140 | 0.637164 | jrawsthorne |
774dda0565c15ce9c553057e9d0fc9dd8960bf43 | 902 | hpp | C++ | src/RenderSystem.GL4/SamplerStateGL4.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | src/RenderSystem.GL4/SamplerStateGL4.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | src/RenderSystem.GL4/SamplerStateGL4.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_SAMPLERSTATEGL4_B8072910_HPP
#define POMDOG_SAMPLERSTATEGL4_B8072910_HPP
#include "OpenGLPrerequisites.hpp"
#include "../RenderSystem/NativeSamplerState.hpp"
#include "Pomdog/Graphics/detail/Forw... | 25.055556 | 70 | 0.789357 | bis83 |
774e19dcba1fe8ae1a885da0fd040f34c02c15c9 | 7,655 | hpp | C++ | trafficmanager.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | trafficmanager.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | trafficmanager.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | // $Id$
#ifndef _TRAFFICMANAGER_HPP_
#define _TRAFFICMANAGER_HPP_
#include <list>
#include <map>
#include <set>
#include "module.hpp"
#include "config_utils.hpp"
#include "network.hpp"
#include "flit.hpp"
#include "buffer_state.hpp"
#include "stats.hpp"
#include "routefunc.hpp"
#include "outputset.hpp"
class Traffi... | 25.861486 | 199 | 0.716264 | TomGlint |
774eb5a102c6bdae21e6b581bd18be594a6b8d76 | 6,360 | cpp | C++ | Applications/ctkPluginBrowser/ctkPluginResourcesTreeModel.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 515 | 2015-01-13T05:42:10.000Z | 2022-03-29T03:10:01.000Z | Applications/ctkPluginBrowser/ctkPluginResourcesTreeModel.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 425 | 2015-01-06T05:28:38.000Z | 2022-03-08T19:42:18.000Z | Applications/ctkPluginBrowser/ctkPluginResourcesTreeModel.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 341 | 2015-01-08T06:18:17.000Z | 2022-03-29T21:47:49.000Z | /*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the ... | 22.714286 | 148 | 0.71305 | kraehlit |
77507ad139fcbdc06000baba4525bdc1a422a2b2 | 1,606 | hpp | C++ | c++/nda/array_adapter.hpp | TRIQS/nda | 7256006985a8909f21b57b1c5bd7813fd7f4f7e7 | [
"Apache-2.0"
] | 3 | 2021-05-26T08:53:25.000Z | 2021-06-13T00:39:10.000Z | c++/nda/array_adapter.hpp | TRIQS/nda | 7256006985a8909f21b57b1c5bd7813fd7f4f7e7 | [
"Apache-2.0"
] | 10 | 2020-08-11T21:02:47.000Z | 2022-01-26T19:21:34.000Z | c++/nda/array_adapter.hpp | TRIQS/nda | 7256006985a8909f21b57b1c5bd7813fd7f4f7e7 | [
"Apache-2.0"
] | 4 | 2021-05-24T12:43:08.000Z | 2022-02-28T01:33:03.000Z | // Copyright (c) 2020 Simons Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0.txt
//
// Unless required by applicable law or... | 32.77551 | 112 | 0.683064 | TRIQS |
7755bf7a74a39c8177ba56ae9d6a472876f01611 | 6,344 | cpp | C++ | source/wpad.cpp | Muffin1634/ogcwrap | ef7d897716d6a553f5751776784a367606acc290 | [
"Apache-2.0"
] | 1 | 2021-09-14T13:03:28.000Z | 2021-09-14T13:03:28.000Z | source/wpad.cpp | Muffin1634/ogcwrap | ef7d897716d6a553f5751776784a367606acc290 | [
"Apache-2.0"
] | 1 | 2021-12-16T07:20:16.000Z | 2021-12-16T07:20:16.000Z | source/wpad.cpp | Muffin1634/ogcwrap | ef7d897716d6a553f5751776784a367606acc290 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* prereqs
*/
#include "wrapinclude.hpp"
#include "wpad/wpad_td.hpp"
/*******************************************************************************
* function forward declarations
*/
namespace ogcwrap::wpad
{
// subsystem manageme... | 36.67052 | 120 | 0.750631 | Muffin1634 |
775a2fa9d1cffedd9d502704d07b2789af1d76e3 | 6,483 | cpp | C++ | src/library/inductive_unifier_plugin.cpp | javra/lean | cc70845332e63a1f1be21dc1f96d17269fc85909 | [
"Apache-2.0"
] | 130 | 2016-12-02T22:46:10.000Z | 2022-03-22T01:09:48.000Z | src/library/inductive_unifier_plugin.cpp | soonhokong/lean | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | [
"Apache-2.0"
] | 8 | 2017-05-03T01:21:08.000Z | 2020-02-25T11:38:05.000Z | src/library/inductive_unifier_plugin.cpp | soonhokong/lean | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | [
"Apache-2.0"
] | 28 | 2016-12-02T22:46:20.000Z | 2022-03-18T21:28:20.000Z | /*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "util/lazy_list_fn.h"
#include "kernel/instantiate.h"
#include "kernel/inductive/inductive.h"
#include "library/unifier_plugin.h"
#include "library... | 45.978723 | 137 | 0.606818 | javra |
775a7ee9ac51683b65da079806d3ef0e179407e7 | 1,252 | cpp | C++ | Atcoder/AGC023/std.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | Atcoder/AGC023/std.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | Atcoder/AGC023/std.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
long long n,R,sum[2][200003],fa[200003],f[200003],p[200003];
bool vis[200003];
struct node{
long long x,c0,c1;
bool operator <(node b)const{
return 1ll*c0*b.c1<1ll*c1*b.c0;
}
bool operator >(node b)const{
return 1ll*c0*b.c1>1ll*c1*b.c0;
}
};
node make(long long x,lo... | 25.04 | 98 | 0.584665 | jinzhengyu1212 |
7762e09e0a8dfb938e306e74224337febf4c3061 | 1,540 | cpp | C++ | 328.Odd Even Linked List/main.cpp | Kingpie/leetcode | b5fd90a12f34f5baf24a3d4fa04c0914dd3e000f | [
"Apache-2.0"
] | null | null | null | 328.Odd Even Linked List/main.cpp | Kingpie/leetcode | b5fd90a12f34f5baf24a3d4fa04c0914dd3e000f | [
"Apache-2.0"
] | null | null | null | 328.Odd Even Linked List/main.cpp | Kingpie/leetcode | b5fd90a12f34f5baf24a3d4fa04c0914dd3e000f | [
"Apache-2.0"
] | null | null | null | /*Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes.
You should try to do it in place. The program should run in O(1) space complexity and O(nodes) time complexity.
Example 1:
Input: 1->2->3->4->5-... | 26.551724 | 172 | 0.585065 | Kingpie |
7762eb3fc3e581d23aac2972f3822b03a1270e51 | 4,098 | cpp | C++ | concepts/RefTest.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | concepts/RefTest.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | concepts/RefTest.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cinttypes>
#include <cstdint>
#include <cstddef>
#include <cstring>
class IPrinter
{
protected:
IPrinter() = default;
public:
virtual ~IPrinter() = default;
IPrinter(const IPrinter& copy) = delete;
IPrinter(IPrinter&& move) = delete;
IPrinter& operator=(const IPrinter&... | 23.152542 | 77 | 0.579063 | hyfloac |
777063b39478d96a3c31b94903f723db37c6b667 | 110 | hpp | C++ | CUDAMacros.hpp | nitro44x/cudaCPPInheritance | a888971fc40f1e58eee165d0417c2cd2706d1ef0 | [
"MIT"
] | null | null | null | CUDAMacros.hpp | nitro44x/cudaCPPInheritance | a888971fc40f1e58eee165d0417c2cd2706d1ef0 | [
"MIT"
] | null | null | null | CUDAMacros.hpp | nitro44x/cudaCPPInheritance | a888971fc40f1e58eee165d0417c2cd2706d1ef0 | [
"MIT"
] | null | null | null | #pragma once
#ifdef __CUDACC__
#define HOSTDEVICE __host__ __device__
#else
#define HOSTDEVICE
#endif
| 13.75 | 39 | 0.763636 | nitro44x |
7770d1f0a3dcef2116fb7dcef77bfc8825bbf8d7 | 550 | cc | C++ | src/pat.elevator/cpp/main.cc | 1-st/algos | d1f4cff9ee0b014e05629091fb3bdc3c9da90b15 | [
"Apache-2.0"
] | 1 | 2020-11-05T04:03:15.000Z | 2020-11-05T04:03:15.000Z | src/pat.elevator/cpp/main.cc | up0/algos | 1ceee4a5e6445c3ac9b11482aad97d8cd44bbcec | [
"Apache-2.0"
] | null | null | null | src/pat.elevator/cpp/main.cc | up0/algos | 1ceee4a5e6445c3ac9b11482aad97d8cd44bbcec | [
"Apache-2.0"
] | null | null | null | //
// Created by up0 on 2020/11/18.
//
/*
{
from:"https://pintia.cn/problem-sets/994805342720868352/problems/994805511923286016",
reference:[],
description:"Elevator",
solved:false,
}
*/
/*
*/
#include <iostream>
int main() {
using namespace std;
int N;
while (cin >> N) {
int M;
int f ... | 14.102564 | 89 | 0.452727 | 1-st |
777202808e9eb7c02a969bad9e460e1b688b8654 | 460 | hpp | C++ | header/Observable.hpp | FFugi/Cetris | 73d3d43a0ebf38950c29e4d07e0664c2b76f6c77 | [
"MIT"
] | null | null | null | header/Observable.hpp | FFugi/Cetris | 73d3d43a0ebf38950c29e4d07e0664c2b76f6c77 | [
"MIT"
] | null | null | null | header/Observable.hpp | FFugi/Cetris | 73d3d43a0ebf38950c29e4d07e0664c2b76f6c77 | [
"MIT"
] | null | null | null | //
// Created by ffugi on 23.03.19.
//
#ifndef CETRIS_OBSERVABLE_HPP
#define CETRIS_OBSERVABLE_HPP
#include <memory>
#include <vector>
#include "Observer.hpp"
class Observable {
public:
virtual void notify() const;
virtual void addObserver(std::shared_ptr<Observer> observer);
virtual void removeObserv... | 17.037037 | 68 | 0.73913 | FFugi |
a55cde0269499f6f16f2ea0b3914c09c581f72a0 | 9,343 | cpp | C++ | CORE/core_tb.cpp | lovisXII/RISC-V-project | 8131f8b2cb2d476ebf80c71d727b1b3831fd6811 | [
"MIT"
] | 3 | 2022-02-07T02:15:14.000Z | 2022-02-14T09:43:28.000Z | CORE/core_tb.cpp | lovisXII/RISC-V-project | 8131f8b2cb2d476ebf80c71d727b1b3831fd6811 | [
"MIT"
] | null | null | null | CORE/core_tb.cpp | lovisXII/RISC-V-project | 8131f8b2cb2d476ebf80c71d727b1b3831fd6811 | [
"MIT"
] | null | null | null | #include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include <unordered_map>
#include "UTIL/colors.h"
#include "core.h"
#include "elfio/elfio.hpp"
#include "systemc.h"
using namespace std;
using namespace ELFIO;
// arguments
int sc_main(int argc, char* argv[]) {
unordered_map<int, int> ram;... | 36.073359 | 111 | 0.519319 | lovisXII |
a55edcfafb591b0c5007133fcd8289b73a4f3c4a | 1,196 | hpp | C++ | include/butterfly/details/package_formatters/colored_package_formatter.hpp | limserhane/Butterfly | 120a9f1cf80a5e8a4c1af0a15371d0756940f731 | [
"MIT"
] | null | null | null | include/butterfly/details/package_formatters/colored_package_formatter.hpp | limserhane/Butterfly | 120a9f1cf80a5e8a4c1af0a15371d0756940f731 | [
"MIT"
] | null | null | null | include/butterfly/details/package_formatters/colored_package_formatter.hpp | limserhane/Butterfly | 120a9f1cf80a5e8a4c1af0a15371d0756940f731 | [
"MIT"
] | null | null | null | #pragma once
#include <butterfly/common.hpp>
#include <butterfly/details/package_formatter.hpp>
namespace butterfly
{
/**
* @brief An class used to decorate the string representation of a log record with ansi color escape codes
*/
class colored_package_formatter : public package_formatter
{
public :
colored_packa... | 25.446809 | 106 | 0.748328 | limserhane |
a561ba16668d273223a20548239488a9125598a5 | 7,025 | hpp | C++ | OcularCore/include/Scene/ARoutine.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 8 | 2017-01-27T01:06:06.000Z | 2020-11-05T20:23:19.000Z | OcularCore/include/Scene/ARoutine.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 39 | 2016-06-03T02:00:36.000Z | 2017-03-19T17:47:39.000Z | OcularCore/include/Scene/ARoutine.hpp | ssell/OcularEngine | c80cc4fcdb7dd7ce48d3af330bd33d05312076b1 | [
"Apache-2.0"
] | 4 | 2019-05-22T09:13:36.000Z | 2020-12-01T03:17:45.000Z | /**
* Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 36.780105 | 106 | 0.497082 | ssell |
a56356656e124f82a245e072a0662e73a43bcc71 | 213 | cpp | C++ | CppStrangeIoC/framework/injector/iinjector.cpp | AndreySkyFoxSidorov/CppStrangeIoC | cae0953ec4a1fce838d7c138153d4279d3fb2c4b | [
"Apache-2.0"
] | 2 | 2018-06-06T11:26:48.000Z | 2019-04-11T14:05:42.000Z | CppStrangeIoC/framework/injector/iinjector.cpp | AndreySkyFoxSidorov/CppStrangeIoC | cae0953ec4a1fce838d7c138153d4279d3fb2c4b | [
"Apache-2.0"
] | null | null | null | CppStrangeIoC/framework/injector/iinjector.cpp | AndreySkyFoxSidorov/CppStrangeIoC | cae0953ec4a1fce838d7c138153d4279d3fb2c4b | [
"Apache-2.0"
] | 2 | 2018-06-06T11:26:49.000Z | 2021-07-26T03:43:16.000Z |
#include "IInjector.h"
using namespace strange::extensions::reflector::api;
using namespace strange::framework::api;
namespace strange
{
namespace extensions
{
namespace injector
{
namespace api
{
}
}
}
}
| 9.26087 | 52 | 0.737089 | AndreySkyFoxSidorov |
a5657509b0b60e8d7859a7c5ab77365ca4561b13 | 63 | hpp | C++ | src/boost_geometry_strategies_geographic_parameters.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_geometry_strategies_geographic_parameters.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_geometry_strategies_geographic_parameters.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/geometry/strategies/geographic/parameters.hpp>
| 31.5 | 62 | 0.84127 | miathedev |
a5686de910c02483708561276b6275a048da64fb | 799 | cpp | C++ | Camp_1-2563/Stack/Molar2.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_1-2563/Stack/Molar2.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_1-2563/Stack/Molar2.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
void solve(){
string s;
cin >> s;
stack<int>st;
for(int i=0; i<s.size(); ++i){
char now = s[i];
if(now == '('){
st.push(0);
}
else if(now == ')'){
int sum = 0;
while(!st.empty() && st.top() != 0){
sum += st.top();
st.pop();
}
st.pop();
... | 12.887097 | 39 | 0.455569 | MasterIceZ |
a568cc3e0655359866956d080fabd51629e987f1 | 18,520 | cpp | C++ | Engine/extern/Tools/fontexplorer/fontexplorer/About.cpp | AnkurSheel/RoutePlanner | a50b6ccb735db42ff4e5b2f4c87e710819c4564b | [
"CC-BY-4.0"
] | null | null | null | Engine/extern/Tools/fontexplorer/fontexplorer/About.cpp | AnkurSheel/RoutePlanner | a50b6ccb735db42ff4e5b2f4c87e710819c4564b | [
"CC-BY-4.0"
] | null | null | null | Engine/extern/Tools/fontexplorer/fontexplorer/About.cpp | AnkurSheel/RoutePlanner | a50b6ccb735db42ff4e5b2f4c87e710819c4564b | [
"CC-BY-4.0"
] | null | null | null | /*****************************************************************************
* Change Log
* Date | Change
*-----------+-----------------------------------------------------------------
* 24-Apr-08 | Created
* 24-Apr-08 | REQ #008: Removed FontExplorer.h
* 15-Oct-08 | REQ #042: Upgrade to VS2005
*******... | 36.966068 | 111 | 0.537581 | AnkurSheel |
a56ac1dd1e52fdc69a2b742433ab414a055d55b4 | 817 | hpp | C++ | libfma/include/fma/symbol/SymbolReference.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | libfma/include/fma/symbol/SymbolReference.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | libfma/include/fma/symbol/SymbolReference.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #ifndef __FMA_SYMBOL_SYMBOLREFERENCE_H__
#define __FMA_SYMBOL_SYMBOLREFERENCE_H__
#include "Reference.hpp"
namespace FMA {
namespace symbol {
class SymbolReference : public Reference {
public:
SymbolReference(const std::string &name) : name(name) {}
virtual ~SymbolReference() {}
virtual std::string asString()... | 23.342857 | 91 | 0.750306 | BenjaminSchulte |
a56b277d199fee81a1978e8b4966ea05c1a42ea7 | 589 | hpp | C++ | src/Smarty/MqttSubscription.hpp | davidorlea/smarty-esp8266 | 69cdac544a03c58cebe9f44001470d5c66c82b33 | [
"MIT"
] | 2 | 2018-01-09T15:48:08.000Z | 2019-10-29T22:37:14.000Z | src/Smarty/MqttSubscription.hpp | davidorlea/smarty-esp8266 | 69cdac544a03c58cebe9f44001470d5c66c82b33 | [
"MIT"
] | null | null | null | src/Smarty/MqttSubscription.hpp | davidorlea/smarty-esp8266 | 69cdac544a03c58cebe9f44001470d5c66c82b33 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdlib>
#include <functional>
#include <Streaming.h>
#define SMARTY_MQTT_SUBSCRIPTION_CALLBACK_TYPE std::function<void (const char* topic, const char* message)>
class SmartyMqttSubscription {
public:
static bool isValidTopic(const char*);
explicit SmartyMqttSubscription(const char*);
~S... | 26.772727 | 107 | 0.782683 | davidorlea |
a56cecbec03959805bf3e740bdb6d72f6585ff18 | 2,177 | cpp | C++ | Leetcode/String/valid-parenthesis-string.cpp | susantabiswas/competitive_coding | 49163ecdc81b68f5c1bd90988cc0dfac34ad5a31 | [
"MIT"
] | 2 | 2021-04-29T14:44:17.000Z | 2021-10-01T17:33:22.000Z | Leetcode/String/valid-parenthesis-string.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | null | null | null | Leetcode/String/valid-parenthesis-string.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | 1 | 2021-10-01T17:33:29.000Z | 2021-10-01T17:33:29.000Z | /*
https://leetcode.com/problems/valid-parenthesis-string/submissions/
TC: O(N), SC: O(N)
The idea is that ')' can be balanced by '(' or '*' whic has occurred before it
and '(' can be balanced only by ')' or '*' which has occurred after it. So we keep track of index of
'*' and '(' we enc... | 34.555556 | 105 | 0.474047 | susantabiswas |
a56e7d2b3ced5f176805d706d328b8f2be68a866 | 1,832 | cpp | C++ | revere/source/gl_utils.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | null | null | null | revere/source/gl_utils.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | null | null | null | revere/source/gl_utils.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | null | null | null |
#include "gl_utils.h"
#include "r_utils/r_exception.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define GL_CLAMP_TO_EDGE 0x812F
using namespace std;
using namespace r_utils;
// Simple helper function to load an image into a OpenGL texture with common settings
void load_texture_from_fil... | 36.64 | 132 | 0.7369 | TroyDL |
a5896664eb3e99719b1c1abe76559bf20c51396c | 1,531 | cpp | C++ | 2020/day9/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2020/day9/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2020/day9/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <numeric>
#include <string>
#include <cstring>
#include <vector>
#include "utils/file.h"
#include "utils/utils.h"
#define DEBUG_LEVEL 5
#include "common/debug.h"
int main(int argc, char *argv[]) {
auto samples = utils::toInt64tV(File::readAllLines(argv[1]));
{
s... | 20.413333 | 108 | 0.607446 | bielskij |
a589a3f2638e181fd28998c7564e5e082377955b | 873 | cpp | C++ | snippets/cpp/VS_Snippets_Winforms/Classic DataGridBoolColumn.TrueValue Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 834 | 2017-06-24T10:40:36.000Z | 2022-03-31T19:48:51.000Z | snippets/cpp/VS_Snippets_Winforms/Classic DataGridBoolColumn.TrueValue Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 7,042 | 2017-06-23T22:34:47.000Z | 2022-03-31T23:05:23.000Z | snippets/cpp/VS_Snippets_Winforms/Classic DataGridBoolColumn.TrueValue Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 1,640 | 2017-06-23T22:31:39.000Z | 2022-03-31T02:45:37.000Z |
#using <System.Xml.dll>
#using <System.dll>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.Data.dll>
using namespace System;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Windows::Forms;
public ref class Form1: public Form
{
protected:
DataGri... | 22.384615 | 126 | 0.693013 | BohdanMosiyuk |
a58b478b30f3ad0d58384499bff9241b711b7ddb | 787 | hh | C++ | src/nodge/Type.hh | codehero/nodge | 515d4fdad06527ed4c8f501b0886b3d773b4e743 | [
"MIT"
] | 1 | 2017-09-30T22:10:18.000Z | 2017-09-30T22:10:18.000Z | src/nodge/Type.hh | codehero/nodge | 515d4fdad06527ed4c8f501b0886b3d773b4e743 | [
"MIT"
] | null | null | null | src/nodge/Type.hh | codehero/nodge | 515d4fdad06527ed4c8f501b0886b3d773b4e743 | [
"MIT"
] | null | null | null | #ifndef __Type_h__
#define __Type_h__
#include "String.hh"
struct Type{
/** @brief Enumeration of the possible data member types. */
typedef enum{
M_BOOL = 0
,M_UNSIGNED_INT
,M_INT
,M_UNSIGNED_LONG
,M_LONG
,M_STRING
,M_FLOAT
,M_DOUBLE
,NUM_TYPES
} ID;
/** @brief The associated Data::MemberTyp... | 17.886364 | 61 | 0.736976 | codehero |
a597469d0cb69eeed56924887d3387229c28164f | 3,641 | cpp | C++ | tests/testIA32.cpp | eladraz/dismount | 8128820bd3840be00968ce76e5fd6da368b2ea9d | [
"BSD-3-Clause"
] | 1 | 2017-06-07T08:34:19.000Z | 2017-06-07T08:34:19.000Z | tests/testIA32.cpp | eladraz/dismount | 8128820bd3840be00968ce76e5fd6da368b2ea9d | [
"BSD-3-Clause"
] | null | null | null | tests/testIA32.cpp | eladraz/dismount | 8128820bd3840be00968ce76e5fd6da368b2ea9d | [
"BSD-3-Clause"
] | null | null | null | /*
* testIA32.cpp
*
* Tests the
*
* Author: Elad Raz <e@eladraz.com>
*/
#include "xStl/types.h"
#include "xStl/os/os.h"
#include "xStl/os/threadUnsafeMemoryAccesser.h"
#include "xStl/data/datastream.h"
#include "xStl/utils/algorithm.h"
#include "xStl/except/trace.h"
#include "xStl/except/assert.h"
#include "xStl/... | 30.596639 | 88 | 0.58061 | eladraz |
a599e0dd64ee61b12215669cdb7e7348f4cc959b | 2,562 | hpp | C++ | ECS.hpp | MeatKO/Detail-Engine | 4dcdc4ee90210ed74678d4ee9206a5df1a2d880c | [
"MIT"
] | 12 | 2020-02-08T19:52:16.000Z | 2022-01-15T19:32:50.000Z | ECS.hpp | MeatKO/Detail-Engine | 4dcdc4ee90210ed74678d4ee9206a5df1a2d880c | [
"MIT"
] | 2 | 2020-10-01T10:05:42.000Z | 2020-10-10T11:20:19.000Z | ECS.hpp | MeatKO/Detail-Engine | 4dcdc4ee90210ed74678d4ee9206a5df1a2d880c | [
"MIT"
] | 2 | 2020-03-26T14:12:52.000Z | 2020-10-01T08:57:11.000Z | #pragma once
#include "PCS.hpp"
#include "PCS.hpp"
/* Entity Component System v2.1
// Changes :
// The Entities now have an std::string name and a vector of vectors of Asset ids.
// The EntityController doesn't hold Components anymore, and only the scenes will contain Component data for fast searching
//
// The Com... | 25.878788 | 124 | 0.734192 | MeatKO |
a59c29f348d6cef4c2df1111cbfe6d2d16dce7bd | 8,303 | cpp | C++ | GraphEditor/Main.cpp | NEtuee/AnimationEngine | feb7d974edf9cb19725578cae1bcda35a0edc683 | [
"MIT"
] | null | null | null | GraphEditor/Main.cpp | NEtuee/AnimationEngine | feb7d974edf9cb19725578cae1bcda35a0edc683 | [
"MIT"
] | null | null | null | GraphEditor/Main.cpp | NEtuee/AnimationEngine | feb7d974edf9cb19725578cae1bcda35a0edc683 | [
"MIT"
] | null | null | null | #include "WindowApp.h"
#include "../VulkanSetup/Input.h"
#include "Coordinate.h"
#include "Math.h"
#include "Triangulation.h"
#include "GUIEx.h"
#include "../VulkanSetup/AnimationLoader.h"
#include "../VulkanSetup/AnimationDataPack.h"
#include "../VulkanSetup/AnimationDataRow.h"
#include "../VulkanSetup/Transform.h"
... | 24.277778 | 137 | 0.621462 | NEtuee |
a59c88fa0c0532e8bc9e347cf802c9a082d1bf9d | 3,231 | hpp | C++ | include/operon/random/jsf.hpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 50 | 2020-10-14T10:08:21.000Z | 2022-03-10T12:55:05.000Z | include/operon/random/jsf.hpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 16 | 2020-10-26T13:05:47.000Z | 2022-02-22T20:24:41.000Z | include/operon/random/jsf.hpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 16 | 2020-10-26T13:05:38.000Z | 2022-01-14T02:52:13.000Z | // SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright 2019-2021 Heal Research
#ifndef JSF_HPP
#define JSF_HPP
#include <cstddef>
#include <cstdint>
#include <limits>
// implementation of Bob Jenkins' small prng https://burtleburtle.net/bob/rand/smallprng.html
// the name JSF (Jenkins Small Fast) was c... | 28.848214 | 134 | 0.54658 | lf-shaw |
a5a548fdc59caefe5a7454554346edfb3c2da516 | 5,306 | cpp | C++ | Plugins/XMLAsset/Source/XMLAsset/Private/XMLAssetActions.cpp | DodgeeSoftware/MichaelsPluginTest | da52ae782df77e540c17d6602eeae141d8a8b329 | [
"MIT"
] | 2 | 2021-04-08T01:49:13.000Z | 2021-11-02T03:34:21.000Z | Plugins/XMLAsset/Source/XMLAsset/Private/XMLAssetActions.cpp | DodgeeSoftware/MichaelsPluginTest | da52ae782df77e540c17d6602eeae141d8a8b329 | [
"MIT"
] | null | null | null | Plugins/XMLAsset/Source/XMLAsset/Private/XMLAssetActions.cpp | DodgeeSoftware/MichaelsPluginTest | da52ae782df77e540c17d6602eeae141d8a8b329 | [
"MIT"
] | null | null | null | // Copyright 2018 Dodgee Software, Inc. All Rights Reserved.
#include "XMLAssetActions.h"
#include "XMLAssetEditorToolkit.h"
#define LOCTEXT_NAMESPACE "AssetTypeActions"
FXMLAssetActions::FXMLAssetActions(const TSharedRef<ISlateStyle>& InStyle) : Style(InStyle)
{
/* NOTE: I prefer not to use initialisation lists
... | 29.153846 | 121 | 0.719751 | DodgeeSoftware |
a5aa4fa90934b0b84331f0e4073852a53c637fce | 306 | hpp | C++ | src/UILog.hpp | lilesper/SparseVoxelOctree | 9c4c79ab746758d21070bb733dafe4f78438e4b5 | [
"MIT"
] | 338 | 2019-08-02T03:57:05.000Z | 2022-03-29T20:49:21.000Z | src/UILog.hpp | lilesper/SparseVoxelOctree | 9c4c79ab746758d21070bb733dafe4f78438e4b5 | [
"MIT"
] | 12 | 2020-01-10T09:03:22.000Z | 2022-03-25T02:03:23.000Z | src/UILog.hpp | lilesper/SparseVoxelOctree | 9c4c79ab746758d21070bb733dafe4f78438e4b5 | [
"MIT"
] | 36 | 2019-08-08T11:15:23.000Z | 2022-02-26T00:31:13.000Z | #ifndef UI_LOG_HPP
#define UI_LOG_HPP
#include <spdlog/sinks/ringbuffer_sink.h>
namespace UI {
void LogSetRequiredPattern(const std::shared_ptr<spdlog::sinks::ringbuffer_sink_mt> &log_sink);
void LogMenuItems(const std::shared_ptr<spdlog::sinks::ringbuffer_sink_mt> &log_sink);
} // namespace UI
#endif
| 25.5 | 95 | 0.797386 | lilesper |
a5ab87e16b41aea4a5f11920c2b9dc6d83a7e139 | 2,117 | cpp | C++ | src/clusters/qpace2/topology.cpp | PeterJGeorg/pmr | e3022da0027313f947b0778188fad1a863fd7dbf | [
"Apache-2.0"
] | 6 | 2017-01-31T10:39:36.000Z | 2020-08-15T12:40:21.000Z | src/clusters/qpace2/topology.cpp | pjgeorg/pMR | e3022da0027313f947b0778188fad1a863fd7dbf | [
"Apache-2.0"
] | null | null | null | src/clusters/qpace2/topology.cpp | pjgeorg/pMR | e3022da0027313f947b0778188fad1a863fd7dbf | [
"Apache-2.0"
] | null | null | null | // Copyright 2016 Peter Georg
//
// 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 ... | 27.493506 | 77 | 0.615494 | PeterJGeorg |
a5ae085a7ca7c79737d7eedfaa57ae333f036451 | 8,611 | cc | C++ | public/util/counter/counter.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | 3 | 2015-05-18T14:52:47.000Z | 2018-11-12T07:51:00.000Z | public/util/counter/counter.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | null | null | null | public/util/counter/counter.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | 3 | 2015-08-04T05:58:18.000Z | 2018-11-12T07:51:01.000Z | // Copyright 2013 Room77 Inc. All Rights Reserved.
// Author: otasevic@room77.com (Nikola Otasevic)
#include "util/counter/counter.h"
#include <mutex>
#include <tuple>
namespace counter {
void Counter::ProcessEvent(const metrics::tCountedEvent& event, int num_events) {
// wrap an event with metrics
MetricsMap a... | 44.848958 | 99 | 0.666009 | room77 |
a5b1114ec4ed37375a11ec11919c9f1cced62c95 | 6,322 | cpp | C++ | tests/test_time_steps.cpp | rkganeri/AM-DEM | cf608422ad81a7cdf9863b6296205246f51195de | [
"MIT"
] | 2 | 2021-08-09T05:23:43.000Z | 2021-10-09T15:02:29.000Z | tests/test_time_steps.cpp | rkganeri/AM-DEM | cf608422ad81a7cdf9863b6296205246f51195de | [
"MIT"
] | null | null | null | tests/test_time_steps.cpp | rkganeri/AM-DEM | cf608422ad81a7cdf9863b6296205246f51195de | [
"MIT"
] | null | null | null | #include <string>
#include <limits>
#include <float.h>
#include <cmath>
#include "gtest/gtest.h"
#include "Kokkos_Core.hpp"
#include "fmt/core.h"
#include "io_utils.hpp"
#include "global_settings.hpp"
#include "particles.hpp"
#include "deposit_powder.hpp"
namespace amdem {
// tests RK4 time stepping scheme
TEST(... | 40.012658 | 99 | 0.684435 | rkganeri |
a5b1d0d930ed2ea8d3afcc36d595c274dba9e0f8 | 11,626 | cpp | C++ | src/qt/qtbase/tests/benchmarks/opengl/main.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | src/qt/qtbase/tests/benchmarks/opengl/main.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/benchmarks/opengl/main.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... | 27.484634 | 109 | 0.62429 | power-electro |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.