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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62a67eaae5b143504e9b58765e4361e94fb8410f | 1,367 | cpp | C++ | SpaceWars2/functions/KeyRepeat.cpp | su8ru/SpaceWars2 | 1aa9ecd7ab8217ae5df8c6499597c8cbc7ab9f40 | [
"Apache-2.0"
] | 2 | 2020-02-01T08:47:10.000Z | 2020-02-01T08:51:05.000Z | SpaceWars2/functions/KeyRepeat.cpp | subaru2003/SpaceWars2 | 1aa9ecd7ab8217ae5df8c6499597c8cbc7ab9f40 | [
"Apache-2.0"
] | 44 | 2019-06-03T11:46:56.000Z | 2019-08-06T16:20:15.000Z | SpaceWars2/functions/KeyRepeat.cpp | su8ru/SpaceWars2 | 1aa9ecd7ab8217ae5df8c6499597c8cbc7ab9f40 | [
"Apache-2.0"
] | 3 | 2019-06-13T17:42:12.000Z | 2019-06-14T23:36:45.000Z | #include "KeyRepeat.hpp"
#include "./XInput.hpp"
// default constructor
KeyRepeat::KeyRepeat() {
name = L"";
isLeft = true;
isClicked = false;
time = 0;
border = 0;
}
// Abnormal Button Constructor (ex. Enter etc...)
KeyRepeat::KeyRepeat(const String& _name) {
name = _name;
isLeft = -1;
isClicked = false;
ti... | 16.46988 | 69 | 0.569861 | su8ru |
62b03cef6adba50cea48a1cbe1b587c7a76d156d | 25,370 | cpp | C++ | code/wxWidgets/utils/configtool/src/configitem.cpp | Bloodknight/NeuTorsion | a5890e9ca145a8c1b6bec7b70047a43d9b1c29ea | [
"MIT"
] | 38 | 2016-02-20T02:46:28.000Z | 2021-11-17T11:39:57.000Z | code/wxWidgets/utils/configtool/src/configitem.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 17 | 2016-02-20T02:19:55.000Z | 2021-02-08T15:15:17.000Z | code/wxWidgets/utils/configtool/src/configitem.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 46 | 2016-02-20T02:47:33.000Z | 2021-01-31T15:46:05.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: configitem.cpp
// Purpose: wxWidgets Configuration Tool config item class
// Author: Julian Smart
// Modified by:
// Created: 2003-06-03
// RCS-ID: $Id: configitem.cpp,v 1.9 2004/07/27 19:14:36 ABX Exp $
// C... | 31.282367 | 346 | 0.600079 | Bloodknight |
62b4f9a628e1087a503404d223787a45329b068e | 164 | cpp | C++ | Linux/delete_files/main.cpp | BigWhiteCat/Qt-QML | 7d601721db535167ea257e8baffc1de83cc0aa15 | [
"MIT"
] | 3 | 2018-12-24T19:35:52.000Z | 2022-02-04T14:45:59.000Z | Linux/delete_files/main.cpp | BigWhiteCat/Qt-QML | 7d601721db535167ea257e8baffc1de83cc0aa15 | [
"MIT"
] | null | null | null | Linux/delete_files/main.cpp | BigWhiteCat/Qt-QML | 7d601721db535167ea257e8baffc1de83cc0aa15 | [
"MIT"
] | 1 | 2019-05-09T02:42:40.000Z | 2019-05-09T02:42:40.000Z | #include "deletefile.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
DeleteFile w;
w.show();
return a.exec();
}
| 13.666667 | 32 | 0.652439 | BigWhiteCat |
62b56e7ddabc4ed9cb9b0d79ddfb50c30eb502aa | 1,380 | cpp | C++ | benchmark/pow2.cpp | kitegi/mpfr-cxx | fdf9e7d5a147a0294193be6b3b7bdf9e94143ba2 | [
"MIT"
] | 1 | 2021-07-16T18:17:36.000Z | 2021-07-16T18:17:36.000Z | benchmark/pow2.cpp | kitegi/mpfr-cxx | fdf9e7d5a147a0294193be6b3b7bdf9e94143ba2 | [
"MIT"
] | null | null | null | benchmark/pow2.cpp | kitegi/mpfr-cxx | fdf9e7d5a147a0294193be6b3b7bdf9e94143ba2 | [
"MIT"
] | null | null | null | #include "mpfr/mpfr.hpp"
#include <boost/multiprecision/mpfr.hpp>
#include "nanobench.h"
template <int N> using scalar_t = mpfr::mp_float_t<mpfr::digits10{N}>;
template <int N>
using bscalar_t = boost::multiprecision::number<
boost::multiprecision::mpfr_float_backend<N, boost::multiprecision::allocate_stack>,
... | 30 | 88 | 0.677536 | kitegi |
4984a2684162fcdf41a5b471ce5c616de7710127 | 4,774 | cpp | C++ | Backtracking/Crossword Puzzle.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 8 | 2021-02-13T17:07:27.000Z | 2021-08-20T08:20:40.000Z | Backtracking/Crossword Puzzle.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | null | null | null | Backtracking/Crossword Puzzle.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 5 | 2021-02-17T18:12:20.000Z | 2021-10-10T17:49:34.000Z | // Problem: Crossword Puzzle
// Contest: HackerRank - Algorithms - Recursion
// URL: https://www.hackerrank.com/challenges/crossword-puzzle/problem
// Memory Limit: 512 MB
// Time Limit: 4000 ms
// Parsed on: 28-12-2020 14:05:10 IST (UTC+05:30)
// Author: kapil_choudhary
#include<bits/stdc++.h>
using namespace std;
b... | 26.375691 | 97 | 0.414328 | Edith-3000 |
498c34372a047a483ac3d193c28adb1678e82b53 | 6,545 | cpp | C++ | src/xray/maya/sources/create_body_cmd.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/maya/sources/create_body_cmd.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/maya/sources/create_body_cmd.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 06.05.2009
// Author : Konstantin Slipchenko
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "create_body_cmd.h"
#include "bo... | 28.580786 | 118 | 0.641558 | ixray-team |
499465cacf5140ab5460f60fde50c459b8d33b90 | 1,215 | cpp | C++ | 022_Generate_Parentheses/Generate_Parentheses.cpp | Rookie39/Algorithms_Leetcode | 433d1360a91774df21b283e8d5d1a4a6c2a8c63d | [
"Apache-2.0"
] | null | null | null | 022_Generate_Parentheses/Generate_Parentheses.cpp | Rookie39/Algorithms_Leetcode | 433d1360a91774df21b283e8d5d1a4a6c2a8c63d | [
"Apache-2.0"
] | null | null | null | 022_Generate_Parentheses/Generate_Parentheses.cpp | Rookie39/Algorithms_Leetcode | 433d1360a91774df21b283e8d5d1a4a6c2a8c63d | [
"Apache-2.0"
] | null | null | null | /**
* Author: Rookie118
* Title: Generate_Parentheses
* Completion time: 2018-09-07
*/
class Solution {
public:
string p = "()";
bool isVaild(int &n1, int &n2)
{
if(n1 >= 0 && n2 >= 0 && n1 <= n2)
return true;
else
return false;
}
void backtracking(s... | 21.315789 | 91 | 0.386831 | Rookie39 |
4999efc1e584091b5b1bde757cd287eb5ef0f116 | 543 | cpp | C++ | codeforces/CF_graphs/ny_transport.cpp | GinugaSaketh/Codes | e934aa5652dd86231a42e3f7f84b145eb35bf47d | [
"MIT"
] | null | null | null | codeforces/CF_graphs/ny_transport.cpp | GinugaSaketh/Codes | e934aa5652dd86231a42e3f7f84b145eb35bf47d | [
"MIT"
] | null | null | null | codeforces/CF_graphs/ny_transport.cpp | GinugaSaketh/Codes | e934aa5652dd86231a42e3f7f84b145eb35bf47d | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
int visited[30005];
vector <vector <int > > adj;
void dfs(int v){
int j;
for(j=0;j<adj[v].size();j++){
int u=adj[v][j];
if(visited[u]==0){
dfs(u);
}
}
visited[v]=1;
}
int main(){
int n,t;
cin>>n>>t;
int i,a;
adj.resize(n+5... | 8.758065 | 48 | 0.519337 | GinugaSaketh |
499a2792d563670c47dccfd00e4b331f036fcf68 | 183 | cpp | C++ | hw7_tests/00_BasicTest/basic_check.cpp | TommyL123/OperatorOverloading | f4960fc0f5760c6ca0ac7d245323e416be240c1f | [
"MIT"
] | null | null | null | hw7_tests/00_BasicTest/basic_check.cpp | TommyL123/OperatorOverloading | f4960fc0f5760c6ca0ac7d245323e416be240c1f | [
"MIT"
] | null | null | null | hw7_tests/00_BasicTest/basic_check.cpp | TommyL123/OperatorOverloading | f4960fc0f5760c6ca0ac7d245323e416be240c1f | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
TEST(basic_check, test_eq) {
EXPECT_EQ(2, 2);
}
TEST(basic_check, test_neq) {
EXPECT_NE(1, 0);
}
TEST(basic_check, misc) {
EXPECT_GT(1, 0);
}
| 12.2 | 29 | 0.628415 | TommyL123 |
499feb40abf7921fb2f93b59671782085d1afecc | 362 | hpp | C++ | include/mppic/models/constraints.hpp | artofnothingness/mppic | 6d4560a32bdf98b2240e0e065d9c53599f92f80e | [
"MIT"
] | 27 | 2022-02-12T17:49:08.000Z | 2022-03-29T01:42:47.000Z | include/mppic/models/constraints.hpp | artofnothingness/mppic | 6d4560a32bdf98b2240e0e065d9c53599f92f80e | [
"MIT"
] | 26 | 2022-02-10T23:02:44.000Z | 2022-03-31T20:17:51.000Z | include/mppic/models/constraints.hpp | artofnothingness/mppic | 6d4560a32bdf98b2240e0e065d9c53599f92f80e | [
"MIT"
] | 5 | 2022-02-09T09:51:13.000Z | 2022-03-26T14:06:53.000Z | // Copyright 2022 FastSense, Samsung Research
#ifndef MPPIC__MODELS__CONSTRAINTS_HPP_
#define MPPIC__MODELS__CONSTRAINTS_HPP_
namespace mppi::models
{
struct ControlConstraints
{
double vx;
double vy;
double wz;
};
struct SamplingStd
{
double vx;
double vy;
double wz;
};
} // namespace mppi::models
#... | 13.923077 | 45 | 0.756906 | artofnothingness |
49a88b75b4232e7a3675e43ef98d2b9b657e9ddd | 2,439 | cpp | C++ | src/BWTA/BWAPI_3_7_4_compat/BaseLocationImpl.cpp | krasi0/bwapi-bwta-map-analyzer | a54840fe827571d864c7e3d5096d2844290b4b73 | [
"MIT"
] | 3 | 2015-01-04T19:54:26.000Z | 2016-07-21T21:15:16.000Z | src/BWTA/BWAPI_3_7_4_compat/BaseLocationImpl.cpp | krasi0/bwapi-bwta-map-analyzer | a54840fe827571d864c7e3d5096d2844290b4b73 | [
"MIT"
] | null | null | null | src/BWTA/BWAPI_3_7_4_compat/BaseLocationImpl.cpp | krasi0/bwapi-bwta-map-analyzer | a54840fe827571d864c7e3d5096d2844290b4b73 | [
"MIT"
] | null | null | null | #include "BaseLocationImpl.h"
namespace BWTA
{
BaseLocationImpl::BaseLocationImpl(){}
BaseLocationImpl::BaseLocationImpl(const BWAPI::TilePosition &tp)
{
tilePosition=tp;
position=BWAPI::Position(tp.x()*32+64,tp.y()*32+48);
island=false;
region=NULL;
}
BWAPI::Position BaseLocationImpl::getPos... | 25.14433 | 113 | 0.648626 | krasi0 |
49a9642ce3c39cd66d03c50ec5031c2a5c6ab1a8 | 1,555 | cpp | C++ | problems/codejam/2015/2/pegman/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/codejam/2015/2/pegman/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/codejam/2015/2/pegman/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// *****
#define DIR(c) (c == '^' ? 1 : c == 'v' ? 2 : c == '<' ? 3 : c == '>' ? 4 : 0)
#define DIRECTION(r, c) DIR(grid[r][c])
constexpr int dd[5][2] = {{}, {-1, 0}, {1, 0}, {0, -1}, {0, 1}};
auto solve() {
int R, C;
cin >> R >> C >> ws;
vector<st... | 24.68254 | 87 | 0.350482 | brunodccarvalho |
49acdef7b314e4003a8ecbdd7209919f3343cf8b | 44 | hpp | C++ | src/boost_algorithm_cxx17_reduce.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_algorithm_cxx17_reduce.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_algorithm_cxx17_reduce.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/algorithm/cxx17/reduce.hpp>
| 22 | 43 | 0.795455 | miathedev |
49af360d24b979a153a5b45525687247c1ae7bf1 | 3,315 | cpp | C++ | Source/Beezer/Dialogs/SelectDirPanel.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | 3 | 2020-08-20T18:57:52.000Z | 2021-12-13T03:11:19.000Z | Source/Beezer/Dialogs/SelectDirPanel.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | 22 | 2020-02-24T21:40:44.000Z | 2021-04-18T15:07:15.000Z | Source/Beezer/Dialogs/SelectDirPanel.cpp | Teknomancer/beezer | 37dc9029aff5bd42bd38d01c7059ccbea4bb95a7 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2002 Ramshankar (aka Teknomancer).
// Copyright (c) 2011 Chris Roberts.
// All rights reserved.
#include "SelectDirPanel.h"
#include <Button.h>
#include <Window.h>
#include <Path.h>
#include <String.h> // gcc2
#include <cstdlib> // gcc2
SelectDirPanel::Sele... | 27.625 | 121 | 0.652187 | Teknomancer |
49b2189ed45730e5eb112ecca8843d69a78f560b | 1,506 | cpp | C++ | test/unit/concepts/callable/relation.cpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 4 | 2019-03-02T01:09:07.000Z | 2019-10-16T15:46:21.000Z | test/unit/concepts/callable/relation.cpp | cjdb/cjdb-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 5 | 2019-11-29T12:23:55.000Z | 2019-12-14T13:03:00.000Z | test/unit/concepts/callable/relation.cpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 3 | 2020-06-08T18:27:28.000Z | 2021-03-27T17:49:46.000Z | // Copyright (c) Christopher Di Bella.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
#include "cjdb/concepts/callable/relation.hpp"
#include "cjdb/concepts/callable/strict_weak_order.hpp"
#include "cjdb/functional/rangecmp/less.hpp"
#include "functions.hpp"
template<class F, class T1, class T2>
requir... | 28.961538 | 68 | 0.714475 | cjdb |
49b4c34a027023be11649eb8133198ade3c27e85 | 6,853 | cpp | C++ | FallingSandSurvival/DebugUI.cpp | PieKing1215/FallingSandSurvival | 04e11940b5bd6bc867e880d7dd656ab32035a241 | [
"BSD-3-Clause"
] | 70 | 2020-06-06T16:13:41.000Z | 2022-03-24T15:49:09.000Z | FallingSandSurvival/DebugUI.cpp | PieKing1215/FallingEverythingSurvival | e2c8a0761794c9603591a5670d08c07c7ffb3b90 | [
"BSD-3-Clause"
] | 13 | 2020-05-06T23:05:41.000Z | 2022-02-21T19:47:09.000Z | FallingSandSurvival/DebugUI.cpp | PieKing1215/FallingEverythingSurvival | e2c8a0761794c9603591a5670d08c07c7ffb3b90 | [
"BSD-3-Clause"
] | 19 | 2020-09-04T02:18:16.000Z | 2022-03-24T22:19:11.000Z | #pragma once
#include "UIs.hpp"
#include "Settings.hpp"
#define BUILD_WITH_EASY_PROFILER
#include <easy/profiler.h>
#include "ProfilerConfig.hpp"
bool DebugUI::visible = true;
void DebugUI::Draw(Game* game) {
EASY_FUNCTION(UI_PROFILER_COLOR);
if(!visible) return;
ImGui::SetNextWindowSize(ImVec2(250, ... | 39.612717 | 174 | 0.54954 | PieKing1215 |
49b9e3d837423f34385cca030b32479ba2f13460 | 18,595 | cpp | C++ | src/snabl/libs/abc.cpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 22 | 2018-08-27T15:28:10.000Z | 2022-02-13T08:18:00.000Z | src/snabl/libs/abc.cpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 3 | 2018-08-27T01:44:51.000Z | 2020-06-28T20:07:42.000Z | src/snabl/libs/abc.cpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 2 | 2018-08-26T18:55:47.000Z | 2018-09-29T01:04:36.000Z | #include "snabl/call.hpp"
#include "snabl/env.hpp"
#include "snabl/libs/abc.hpp"
#include "snabl/std.hpp"
#include "snabl/timer.hpp"
namespace snabl {
namespace libs {
Abc::Abc(Env &env): Lib(env, env.sym("abc"), &env.s_lib) { }
void Abc::init() {
add_macro(env.sym("t"), env.bool_type, true);
... | 34.953008 | 86 | 0.384727 | codr4life |
49bee13c02703b374f97a349e973e1c782b02a57 | 178 | cc | C++ | plugins/coreaudio/Plugin.cc | bsdelf/mous | eb59b625d0ba8236f3597ae6015d9215cef922cf | [
"BSD-2-Clause"
] | 75 | 2015-04-26T11:22:07.000Z | 2022-02-12T17:18:37.000Z | plugins/coreaudio/Plugin.cc | bsdelf/mous | eb59b625d0ba8236f3597ae6015d9215cef922cf | [
"BSD-2-Clause"
] | 7 | 2016-05-31T21:56:01.000Z | 2019-09-15T06:25:28.000Z | plugins/coreaudio/Plugin.cc | bsdelf/mous | eb59b625d0ba8236f3597ae6015d9215cef922cf | [
"BSD-2-Clause"
] | 19 | 2015-09-23T01:50:15.000Z | 2022-02-12T17:18:41.000Z | #include <util/PluginHelper.h>
using namespace mous;
MOUS_EXPORT_PLUGIN(
PluginType::Output | PluginType::Decoder,
"coreaudio",
"Core Audio Codec & Output",
2
)
| 17.8 | 45 | 0.691011 | bsdelf |
49c0d6e9353e177e2c2a477b67b1f91ca6547724 | 292 | cpp | C++ | src/knapsack_problem_0-1_problem.cpp | daiiyu/algorithm_cpp | 2a5fb3e666d41b5cb45dd61ba55fab1b7a00b8e9 | [
"0BSD"
] | null | null | null | src/knapsack_problem_0-1_problem.cpp | daiiyu/algorithm_cpp | 2a5fb3e666d41b5cb45dd61ba55fab1b7a00b8e9 | [
"0BSD"
] | null | null | null | src/knapsack_problem_0-1_problem.cpp | daiiyu/algorithm_cpp | 2a5fb3e666d41b5cb45dd61ba55fab1b7a00b8e9 | [
"0BSD"
] | null | null | null | //
// Created by daiyu on 2020/6/11.
//
#include "base.hpp"
template <typename Container>
int F(int i, int C, Container& W, Container& V)
{
return std::max(F(i -1, C), V[i] +F(i-1, C-W[i]) )
}
int main()
{
vector<int> w{2,1,3,2};
vector<int> v{12,10,20,15};
}
| 16.222222 | 55 | 0.537671 | daiiyu |
49c25b7ea2a3b0a7b4ea80855b74c58075e578f5 | 55,936 | cpp | C++ | deps/Bullet/src/LinearMath/btSerializer.cpp | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | 23 | 2015-06-13T22:42:38.000Z | 2019-08-06T19:56:19.000Z | deps/bullet/btSerializer.cpp | elmindreda/nori | fdeec9970ee6a254bae389ade4455171df875473 | [
"Zlib"
] | null | null | null | deps/bullet/btSerializer.cpp | elmindreda/nori | fdeec9970ee6a254bae389ade4455171df875473 | [
"Zlib"
] | 3 | 2015-05-31T17:01:10.000Z | 2020-03-26T13:55:24.000Z | char sBulletDNAstr[]= {
83,68,78,65,78,65,77,69,44,1,0,0,109,95,115,105,122,101,0,109,
95,99,97,112,97,99,105,116,121,0,42,109,95,100,97,116,97,0,109,95,
99,111,108,108,105,115,105,111,110,83,104,97,112,101,115,0,109,95,99,111,
108,108,105,115,105,111,110,79,98,106,101,99,116,115,0,109,95,99,111,110,
115,116,114,97,105... | 66.432304 | 77 | 0.679115 | akumetsuv |
49c534dde4062033df195d3872a82eba8e56a691 | 1,035 | cpp | C++ | src/0733.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | src/0733.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | src/0733.cpp | killf/leetcode_cpp | d1f308a9c3da55ae5416ea28ec2e7a3146533ae9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <hash_map>
#include <map>
#include <sstream>
#include <type_traits>
#include <algorithm>
#include <stack>
#include <queue>
using namespace std;
class Solution {
public:
vector<vector<int>> floodFill(vector<vector<int>> &image, int sr... | 23.522727 | 95 | 0.497585 | killf |
49c6206680ca67b9ed03c93d711870514a8fe61c | 1,123 | cpp | C++ | SMB3_v2_C++/assets/classes/effect/BrickDebris.cpp | Izay0i/SuperMarioBros3 | 46d254aa1ae4396175145d9743932c5c4fbf1763 | [
"MIT"
] | 1 | 2020-11-09T09:08:02.000Z | 2020-11-09T09:08:02.000Z | SMB3_v2_C++/assets/classes/effect/BrickDebris.cpp | Izay0i/SuperMarioBros3 | 46d254aa1ae4396175145d9743932c5c4fbf1763 | [
"MIT"
] | null | null | null | SMB3_v2_C++/assets/classes/effect/BrickDebris.cpp | Izay0i/SuperMarioBros3 | 46d254aa1ae4396175145d9743932c5c4fbf1763 | [
"MIT"
] | null | null | null | #include "../Entity.h"
#include "BrickDebris.h"
Texture* BrickDebris::_debrisTexture = nullptr;
void BrickDebris::_ParseSprites(std::string line) {
_animatedSprite.ParseSprites(line, _debrisTexture);
}
BrickDebris::BrickDebris() {
_renderPriority = 1;
_health = 0;
_gravity = 0.001f;
_removeTime = 1000;
isPass... | 21.596154 | 116 | 0.739092 | Izay0i |
49cc9d563e72c3874e58095ab335ed08a18fb92b | 2,769 | cpp | C++ | src/MeteringSDK/MCORE/MDes.cpp | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 9 | 2016-09-02T17:24:58.000Z | 2021-12-14T19:43:48.000Z | src/MeteringSDK/MCORE/MDes.cpp | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 1 | 2018-09-06T21:48:42.000Z | 2018-09-06T21:48:42.000Z | src/MeteringSDK/MCORE/MDes.cpp | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 4 | 2016-09-06T16:54:36.000Z | 2021-12-16T16:15:24.000Z | // File MCORE/MDes.cpp
#include "MCOREExtern.h"
#include "MDes.h"
#include "MUtilities.h"
#include "MException.h"
// DES implementation source code is included here, all local definitions
#include "private/des.cxx"
M_START_PROPERTIES(Des)
M_START_METHODS(Des)
M_CLASS_SERVICE (Des, StaticEncrypt, ST_MByteString_S... | 33.768293 | 138 | 0.709281 | beroset |
49cd8ea593232c1f5354be3b02a30a14b05dc490 | 2,713 | cpp | C++ | tools/EtherExtractor/src/address_recover.cpp | amany9000/EtherBeat | 7a591ead81e8a312ad637cb3c0ed908220a3c74b | [
"Apache-2.0"
] | 58 | 2017-11-28T17:13:07.000Z | 2022-03-11T07:32:58.000Z | tools/EtherExtractor/src/address_recover.cpp | amany9000/EtherBeat | 7a591ead81e8a312ad637cb3c0ed908220a3c74b | [
"Apache-2.0"
] | 12 | 2017-05-24T07:54:57.000Z | 2020-03-07T08:10:49.000Z | tools/EtherExtractor/src/address_recover.cpp | amany9000/EtherBeat | 7a591ead81e8a312ad637cb3c0ed908220a3c74b | [
"Apache-2.0"
] | 89 | 2017-05-06T15:52:38.000Z | 2021-02-22T11:41:31.000Z | /*
* Created by prabushitha on 5/27/18.
* Copyright [2018] <ScoreLab Organization>
*/
#include "address_recover.h"
#include "utils.h"
secp256k1_context const* getCtx() {
static std::unique_ptr <secp256k1_context, decltype(&secp256k1_context_destroy)> s_ctx {
secp256k1_context_create(SECP256K1_CONTEXT... | 33.493827 | 124 | 0.652783 | amany9000 |
49d2f6957ce54be7471e3a992869744d250e29f6 | 2,348 | cpp | C++ | qipmsg/trunk/src/retry_recv_file_dialog.cpp | cuibo10/feige_src | 1bfd47eaa046d401f83dfae5715b5487283ba343 | [
"MIT"
] | null | null | null | qipmsg/trunk/src/retry_recv_file_dialog.cpp | cuibo10/feige_src | 1bfd47eaa046d401f83dfae5715b5487283ba343 | [
"MIT"
] | null | null | null | qipmsg/trunk/src/retry_recv_file_dialog.cpp | cuibo10/feige_src | 1bfd47eaa046d401f83dfae5715b5487283ba343 | [
"MIT"
] | null | null | null | // This file is part of QIpMsg.
//
// QIpMsg is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// QIpMsg is distributed in the hope... | 26.088889 | 71 | 0.706985 | cuibo10 |
49db607083d6a37ba3aa0ced3143bd5809b1b846 | 2,611 | cpp | C++ | Source/Scene/SceneElements/Controllers/imstkCameraController.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | 2 | 2020-08-14T07:21:30.000Z | 2021-08-30T09:39:09.000Z | Source/Scene/SceneElements/Controllers/imstkCameraController.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | null | null | null | Source/Scene/SceneElements/Controllers/imstkCameraController.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | 1 | 2020-08-14T07:00:31.000Z | 2020-08-14T07:00:31.000Z | /*=========================================================================
Library: iMSTK
Copyright (c) Kitware, Inc. & Center for Modeling, Simulation,
& Imaging in Medicine, Rensselaer Polytechnic Institute.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file e... | 26.11 | 99 | 0.657219 | quantingxie |
49db8169788eb0a1d3c12eeb2109bc113e64b8eb | 310 | cpp | C++ | src/JoyTurtle.cpp | bigMH/JoyTurtlesim | 63223ac9e7c0093b230bf57da2694131e58dd8d2 | [
"MIT"
] | null | null | null | src/JoyTurtle.cpp | bigMH/JoyTurtlesim | 63223ac9e7c0093b230bf57da2694131e58dd8d2 | [
"MIT"
] | 1 | 2019-05-22T07:21:14.000Z | 2019-05-22T07:21:14.000Z | src/JoyTurtle.cpp | bigMH/JoyTurtlesim | 63223ac9e7c0093b230bf57da2694131e58dd8d2 | [
"MIT"
] | null | null | null | #include"SensorJoy.h"
#include"ros/ros.h"
int main(int argc,char** argv)
{
ros::init(argc,argv,"Joy_turtle");
ros::NodeHandle n;
SJ::SensorJoy joy_turtle (n);
ROS_INFO("Let's paly a game!");
ROS_INFO("Please enter the 'Y' button and then you can manipulate the joystick.");
ros::spin();
return 0;
} | 20.666667 | 83 | 0.683871 | bigMH |
49e4f4eb4a3148b6baef469d168154c02eb901a4 | 3,284 | hpp | C++ | src/Core/Math/DualQuaternion.hpp | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | 1 | 2018-04-16T13:55:45.000Z | 2018-04-16T13:55:45.000Z | src/Core/Math/DualQuaternion.hpp | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | null | null | null | src/Core/Math/DualQuaternion.hpp | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | null | null | null | #ifndef RADIUMENGINE_DUALQUATERNION_HPP
#define RADIUMENGINE_DUALQUATERNION_HPP
#include <Core/Math/LinearAlgebra.hpp>
#include <Core/RaCore.hpp>
namespace Ra {
namespace Core {
namespace Math {
/// Dual quaternions are based on the dual-numbers algebra, somewhat
/// analogous to complex numbers, but wi... | 34.568421 | 100 | 0.699147 | sylvaindeker |
49ea187547c5983eb9fe86f19252aa8849d4dd62 | 4,582 | cpp | C++ | Arduino/libraries/AP_Compass/Compass.cpp | mujtabachang/mew | afb9358664068c9e1dc9abf884785a517b950c62 | [
"MIT"
] | null | null | null | Arduino/libraries/AP_Compass/Compass.cpp | mujtabachang/mew | afb9358664068c9e1dc9abf884785a517b950c62 | [
"MIT"
] | null | null | null | Arduino/libraries/AP_Compass/Compass.cpp | mujtabachang/mew | afb9358664068c9e1dc9abf884785a517b950c62 | [
"MIT"
] | null | null | null | #include "Compass.h"
// Default constructor.
// Note that the Vector/Matrix constructors already implicitly zero
// their values.
//
Compass::Compass(AP_Var::Key key) :
_group(key, PSTR("COMPASS_")),
_orientation_matrix (&_group, 0),
_offset (&_group, 1),
_declination (&_group, 2, 0.0, PSTR("DEC"))... | 27.437126 | 141 | 0.6567 | mujtabachang |
49f6fe166b253dbf4a1ab2a1313218b70344f9e4 | 721 | hpp | C++ | cccc/src/include/expressions/array_access.hpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | cccc/src/include/expressions/array_access.hpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | cccc/src/include/expressions/array_access.hpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <expressions/expression.hpp>
#include <lex/token.hpp>
namespace mhc4
{
namespace expressions
{
class array_access : public expression
{
public:
explicit array_access(token tok, expression::ptr from, expression::ptr at);
type::ptr _infer(semantics::scope& s) override;
llvm::Value* ... | 21.205882 | 91 | 0.718447 | DasNaCl |
49f98f05bfd4c0f550dccb313023e2a98702e850 | 656 | hpp | C++ | source/gui/data_input/MoneyTransfer.hpp | BeenEncoded/check_book_program | 593b8fa72437804b6e6000fd2c0e48625609c7a5 | [
"MIT"
] | null | null | null | source/gui/data_input/MoneyTransfer.hpp | BeenEncoded/check_book_program | 593b8fa72437804b6e6000fd2c0e48625609c7a5 | [
"MIT"
] | 3 | 2016-05-26T20:26:39.000Z | 2016-06-07T17:40:07.000Z | source/gui/data_input/MoneyTransfer.hpp | BeenEncoded/check_book_program | 593b8fa72437804b6e6000fd2c0e48625609c7a5 | [
"MIT"
] | null | null | null | #ifndef MONEYTRANSFER_H
#define MONEYTRANSFER_H
#include <QDialog>
#include <QWidget>
#include <vector>
#include "data/account.hpp"
namespace Ui
{
class MoneyTransfer;
}
class MoneyTransfer : public QDialog
{
Q_OBJECT
public:
explicit MoneyTransfer(QWidget*, const std::vector<data::account_data>&);
~MoneyTran... | 16.4 | 74 | 0.756098 | BeenEncoded |
49fbd3dd4f684d99c1eb90ceedb52cccbb6bd7f0 | 661 | cpp | C++ | source/math/math.cpp | cgripeos/makeplay | 4090de6d844d9fcc97561f7859b0e9689a5ba929 | [
"BSD-2-Clause"
] | null | null | null | source/math/math.cpp | cgripeos/makeplay | 4090de6d844d9fcc97561f7859b0e9689a5ba929 | [
"BSD-2-Clause"
] | null | null | null | source/math/math.cpp | cgripeos/makeplay | 4090de6d844d9fcc97561f7859b0e9689a5ba929 | [
"BSD-2-Clause"
] | null | null | null | //*****************************************************************************
// Copyright 2016 - 2016 Chris J Gripeos. All rights reserved.
// License: http://www.opensource.org/licenses/BSD-2-Clause
//
// Author: Chris J Gripeos
//
//*****************************************************************************... | 28.73913 | 79 | 0.446293 | cgripeos |
b70021ce9cefd829dd1e9176413c965cfbb4a270 | 2,047 | cpp | C++ | DynamicLibraryModule.cpp | GPUOpen-Tools/common-src-DynamicLibraryModule | e6451ce26b8509cf724c7cf5d007878791143a58 | [
"MIT"
] | 3 | 2016-09-28T08:03:29.000Z | 2017-01-28T14:11:59.000Z | DynamicLibraryModule.cpp | GPUOpen-Tools/common-src-DynamicLibraryModule | e6451ce26b8509cf724c7cf5d007878791143a58 | [
"MIT"
] | null | null | null | DynamicLibraryModule.cpp | GPUOpen-Tools/common-src-DynamicLibraryModule | e6451ce26b8509cf724c7cf5d007878791143a58 | [
"MIT"
] | 3 | 2017-05-16T17:52:45.000Z | 2019-11-01T23:01:35.000Z | //==============================================================================
// Copyright (c) 2011-2016 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools
/// \file
/// \brief Base class for dynamic loading of .so/.dll.
//=============================================================... | 23.802326 | 94 | 0.613581 | GPUOpen-Tools |
b70172ea75e6a4a98ac51d43384a57462eeefbf3 | 675 | hpp | C++ | kernel/include/util/string.hpp | Eospp/Eospp | bc231908aaf34dfc2f790a259487253a4151be16 | [
"MIT"
] | 18 | 2022-01-21T18:19:37.000Z | 2022-03-15T05:26:32.000Z | kernel/include/util/string.hpp | Eospp/Eospp | bc231908aaf34dfc2f790a259487253a4151be16 | [
"MIT"
] | null | null | null | kernel/include/util/string.hpp | Eospp/Eospp | bc231908aaf34dfc2f790a259487253a4151be16 | [
"MIT"
] | 3 | 2022-01-22T14:24:04.000Z | 2022-02-23T10:19:11.000Z | #pragma once
#include <stdarg.h>
#include <type.hpp>
namespace eospp::util {
void *memcpy(void *dest, const void *src, estd::size_t n);
void *memmove(void *dest, const void *src, estd::size_t n);
estd::size_t strlen(const char *str);
char *strcpy(char *dest, const char *src);
char *sprintf_num(char *buf,
... | 27 | 70 | 0.61037 | Eospp |
b7026420e4b84bcbc11eb426fea9dbdbc3024f3d | 771 | cpp | C++ | LeetCode/ThousandTwo/1043-partition_array_max_sum.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1043-partition_array_max_sum.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1043-partition_array_max_sum.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 1043. 分隔数组以得到最大和
给出整数数组 A,将该数组分隔为长度最多为 K 的几个(连续)子数组。
分隔完成后,每个子数组的中的值都会变为该子数组中的最大值。
返回给定数组完成分隔后的最大和。
示例:
输入:A = [1,15,7,9,2,5,10], K = 3
输出:84
解释:A 变为 [15,15,15,9,10,10,10]
提示:
1 <= K <= A.length <= 500
0 <= A[i] <= 10^6
*/
int maxSumAfterPartitioning(vector<int>& A, int K)
{
int le... | 16.404255 | 50 | 0.54345 | Ginkgo-Biloba |
8e65f1c3d75af82a4f5ad18226c8415f12d8d8c8 | 2,759 | cpp | C++ | ArchEngine/ArchEngine/Core/eventManager.cpp | marcelodmmenezes/ArchEngine | ef22aedd355fe79a489ddf57385939ef905cdc5e | [
"MIT"
] | 3 | 2019-09-22T03:00:37.000Z | 2020-07-25T15:34:02.000Z | ArchEngine/ArchEngine/Core/eventManager.cpp | marcelodmmenezes/TCC | ef22aedd355fe79a489ddf57385939ef905cdc5e | [
"MIT"
] | null | null | null | ArchEngine/ArchEngine/Core/eventManager.cpp | marcelodmmenezes/TCC | ef22aedd355fe79a489ddf57385939ef905cdc5e | [
"MIT"
] | null | null | null | /*===========================================================================*
* Arch Engine - "Core/eventManager.hpp *
* *
* Simple event system for communication between engine elements. *
* F... | 28.443299 | 79 | 0.587169 | marcelodmmenezes |
8e68d71e264caddd846122cfbd231773923ff0bc | 316 | cpp | C++ | cpp/src/DSL_2_G.cpp | torotoki/competitive-library | 4c0772c2da245adad9d1ea2bc6fc2b65a4b670de | [
"MIT"
] | 3 | 2017-04-09T10:12:31.000Z | 2019-02-11T03:11:27.000Z | cpp/src/DSL_2_G.cpp | torotoki/competitive-library | 4c0772c2da245adad9d1ea2bc6fc2b65a4b670de | [
"MIT"
] | null | null | null | cpp/src/DSL_2_G.cpp | torotoki/competitive-library | 4c0772c2da245adad9d1ea2bc6fc2b65a4b670de | [
"MIT"
] | 1 | 2019-11-29T06:11:10.000Z | 2019-11-29T06:11:10.000Z | #include "../include/structure/rars.cpp"
int main() {
int n, q, com, s, t, x;
scanf("%d%d", &n, &q);
RARS<ll> bit(n + 1);
while (q--) {
scanf("%d%d%d", &com, &s, &t);
if (com) printf("%lld\n", bit.sum(s, t + 1));
else {
scanf("%d", &x);
bit.add(s, t + 1, x);
}
}
return 0;
}
| 18.588235 | 49 | 0.439873 | torotoki |
8e6a3d71aa66f35feb50f2668c8b5726b18e0c06 | 13,788 | cpp | C++ | StyleFramework/StyleTabCtrl.cpp | edwig/StyleFramework | c9b19af74f5298c3da348cdbdc988191e76ed807 | [
"MIT"
] | 2 | 2021-04-03T12:50:30.000Z | 2022-02-08T23:23:56.000Z | StyleFramework/StyleTabCtrl.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 10 | 2022-01-14T13:28:32.000Z | 2022-02-13T12:46:34.000Z | StyleFramework/StyleTabCtrl.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////
//
// File: StyleTabCtrl.cpp
// Function: Styling frame for a CTabCtrl
//
// _____ _ _ _ ______ _
// / ____| | | (_) | ____| ... | 24.754039 | 112 | 0.579562 | edwig |
8e790b30618e7dd3031d37b12008b208d5e2dfc0 | 1,087 | hpp | C++ | src/asteroid.hpp | Harrand/Asteroids-Topaz | ce549802b0360f2554f4f6189d6ca0a486c4c928 | [
"Apache-2.0"
] | null | null | null | src/asteroid.hpp | Harrand/Asteroids-Topaz | ce549802b0360f2554f4f6189d6ca0a486c4c928 | [
"Apache-2.0"
] | null | null | null | src/asteroid.hpp | Harrand/Asteroids-Topaz | ce549802b0360f2554f4f6189d6ca0a486c4c928 | [
"Apache-2.0"
] | null | null | null | #ifndef TOPAZASTEROIDS_ASTEROID_HPP
#define TOPAZASTEROIDS_ASTEROID_HPP
#include "physics/dynamic_sprite.hpp"
class EntityManager;
class Player;
class Asteroid : public DynamicSprite
{
public:
enum class Type{LARGE, MEDIUM, SMALL};
Asteroid(Vector2F position, float rotation, Vector2F scale, Type type, const T... | 33.96875 | 108 | 0.770009 | Harrand |
8e7bde88e52ccf0ae5880d4e6ef68b89f3cf8e81 | 2,330 | cpp | C++ | src/CANJaguarUtils/CANJaguarUtils.cpp | ZjlZ/FRC-2605-Robot-Code-2014 | 5903f2640edac30fc7cbbf18fe8eb8c70125eb69 | [
"BSD-2-Clause"
] | 1 | 2017-12-27T21:34:42.000Z | 2017-12-27T21:34:42.000Z | src/CANJaguarUtils/CANJaguarUtils.cpp | ZjlZ/FRC-2605-Robot-Code-2014 | 5903f2640edac30fc7cbbf18fe8eb8c70125eb69 | [
"BSD-2-Clause"
] | null | null | null | src/CANJaguarUtils/CANJaguarUtils.cpp | ZjlZ/FRC-2605-Robot-Code-2014 | 5903f2640edac30fc7cbbf18fe8eb8c70125eb69 | [
"BSD-2-Clause"
] | null | null | null | #include "CANJaguarUtils.h"
/*
* Copyright (C) 2014 Liam Taylor
* FRC Team Sehome Semonsters 2605
*/
CANJagConfigInfo :: CANJagConfigInfo ()
{
Mode = CANJaguar :: kVoltage;
NeutralAction = CANJaguar :: kNeutralMode_Coast;
SpeedRef = CANJaguar :: kSpeedRef_None;
PosRef = CANJaguar :: kPosRef_None;
Limiting = ... | 24.020619 | 75 | 0.6897 | ZjlZ |
8e7c34e12b1b4a09a1ad086c057e589ed38223c8 | 454 | cpp | C++ | DirectProgramming/C++/Jupyter/OpenMP-offload-training/datatransfer/saxpy_func_solution_length.cpp | outoftardis/oneAPI-samples | acd5aecfa438be146fe2b4a27faa3fd3c7d16e72 | [
"MIT"
] | null | null | null | DirectProgramming/C++/Jupyter/OpenMP-offload-training/datatransfer/saxpy_func_solution_length.cpp | outoftardis/oneAPI-samples | acd5aecfa438be146fe2b4a27faa3fd3c7d16e72 | [
"MIT"
] | null | null | null | DirectProgramming/C++/Jupyter/OpenMP-offload-training/datatransfer/saxpy_func_solution_length.cpp | outoftardis/oneAPI-samples | acd5aecfa438be146fe2b4a27faa3fd3c7d16e72 | [
"MIT"
] | null | null | null | // Add the target pragma with the map clauses here
#pragma omp target map(tofrom \
: y [0:ARRAY_SIZE]) map(to \
: x [0:ARRAY_SIZE]) \
map(from ... | 34.923077 | 68 | 0.343612 | outoftardis |
8e7c849d01167b875706b8ae9c2ba86b56ee1aa5 | 2,632 | cpp | C++ | lab 3/main.cpp | ElminsteAumar/discrete_structures | c4111c439a3d4e1ae8af09213fc59fa8c88c1ce3 | [
"MIT"
] | null | null | null | lab 3/main.cpp | ElminsteAumar/discrete_structures | c4111c439a3d4e1ae8af09213fc59fa8c88c1ce3 | [
"MIT"
] | null | null | null | lab 3/main.cpp | ElminsteAumar/discrete_structures | c4111c439a3d4e1ae8af09213fc59fa8c88c1ce3 | [
"MIT"
] | null | null | null | /*
* main.cpp
* Exercise 10 from discrete structure lab 3
* Created on: Apr 18, 2018
* Author: napoleon
*/
#include <iostream>
#include <vector>
#include <stdlib.h>
using namespace std;
// graph node
struct node {
int num = 0;
int M_num = -1; // M enumeration starts from 0
bool checked = false;
vector... | 22.886957 | 80 | 0.611702 | ElminsteAumar |
8e7cfe6cf16077fe727354ff94dc479f669705fc | 5,402 | hpp | C++ | transmission_interface_extensions/include/transmission_interface_extensions/joint_state_interface_provider.hpp | smilerobotics/ros_control_extensions | 1eee21217708dcee80aa3d91b2c6415c1f4feffa | [
"MIT"
] | null | null | null | transmission_interface_extensions/include/transmission_interface_extensions/joint_state_interface_provider.hpp | smilerobotics/ros_control_extensions | 1eee21217708dcee80aa3d91b2c6415c1f4feffa | [
"MIT"
] | null | null | null | transmission_interface_extensions/include/transmission_interface_extensions/joint_state_interface_provider.hpp | smilerobotics/ros_control_extensions | 1eee21217708dcee80aa3d91b2c6415c1f4feffa | [
"MIT"
] | 1 | 2021-10-14T06:37:36.000Z | 2021-10-14T06:37:36.000Z | #ifndef TRANSMISSION_INTERFACE_EXTENSIONS_JOINT_STATE_INTERFACE_PROVIDER_HPP
#define TRANSMISSION_INTERFACE_EXTENSIONS_JOINT_STATE_INTERFACE_PROVIDER_HPP
#include <string>
#include <vector>
#include <hardware_interface/actuator_state_interface.h>
#include <hardware_interface/joint_state_interface.h>
#include <hardwar... | 42.535433 | 100 | 0.701037 | smilerobotics |
8e803c1c2d442910b8a91ac925a9b2728fa69494 | 4,328 | cpp | C++ | OpenGLDemo/XboxControllerOpenGLDemo/Utils.cpp | bmcilmoyle/XboxController | 44fdfffb24ef30bed4cb3e7a17c4a2e7e51a3b23 | [
"MIT"
] | 2 | 2015-02-26T16:05:27.000Z | 2018-03-22T00:56:09.000Z | OpenGLDemo/XboxControllerOpenGLDemo/Utils.cpp | bmcilmoyle/XboxController | 44fdfffb24ef30bed4cb3e7a17c4a2e7e51a3b23 | [
"MIT"
] | null | null | null | OpenGLDemo/XboxControllerOpenGLDemo/Utils.cpp | bmcilmoyle/XboxController | 44fdfffb24ef30bed4cb3e7a17c4a2e7e51a3b23 | [
"MIT"
] | 2 | 2019-08-15T04:51:40.000Z | 2019-10-06T05:01:07.000Z | #include "Utils.h"
#include <iostream> // Added
const Matrix IDENTITY_MATRIX = { {
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1
} };
float Cotangent(float angle)
{
return (float)(1.0 / tan(angle));
}
float DegreesToRadians(float degrees)
{
return degrees * (float)(PI / 180);
}
float RadiansToDegrees(... | 23.144385 | 79 | 0.617606 | bmcilmoyle |
8e830574e8227ff429670e7dbab5202f2aca7a1c | 176 | cpp | C++ | 2.12.3.cpp | cubhe/C_Primer_Plus | 7edc4b4f5c1afad60797f8f1ea11fb47f6fcdf77 | [
"MIT"
] | null | null | null | 2.12.3.cpp | cubhe/C_Primer_Plus | 7edc4b4f5c1afad60797f8f1ea11fb47f6fcdf77 | [
"MIT"
] | null | null | null | 2.12.3.cpp | cubhe/C_Primer_Plus | 7edc4b4f5c1afad60797f8f1ea11fb47f6fcdf77 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
int main()
{
int day;
int old;
scanf("%d", &old);
day = old * 365;
printf("您起码活了%d天。",day);
system("pause");
return 0;
} | 14.666667 | 26 | 0.556818 | cubhe |
8e83d48ad03932d9e8cec9b4f8483a4b9c4c9166 | 4,547 | hh | C++ | src/fml/gpu/linalg/matmult.hh | wrathematics/fml | e6db9c67a530b31f80a7fc0fe16d0f88c1d9a18e | [
"BSL-1.0"
] | 15 | 2020-01-29T08:59:34.000Z | 2020-01-31T04:21:52.000Z | src/fml/gpu/linalg/matmult.hh | wrathematics/fml | e6db9c67a530b31f80a7fc0fe16d0f88c1d9a18e | [
"BSL-1.0"
] | null | null | null | src/fml/gpu/linalg/matmult.hh | wrathematics/fml | e6db9c67a530b31f80a7fc0fe16d0f88c1d9a18e | [
"BSL-1.0"
] | null | null | null | // This file is part of fml which is released under the Boost Software
// License, Version 1.0. See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt
#ifndef FML_GPU_LINALG_MATMULT_H
#define FML_GPU_LINALG_MATMULT_H
#pragma once
#include <stdexcept>
#include "../../_internals/linalgutils... | 27.065476 | 80 | 0.624808 | wrathematics |
8e85ea7c502631b56e06290bd3c6e2a90b78d9e3 | 4,873 | cpp | C++ | SmartSensor_Example_BME280/lib/SmartShield/SmartShield.cpp | grafisoft/Smart-Sensors-Shield | 9a93a6e2528c064c77f1b3d3408f632acb3508fc | [
"MIT"
] | 2 | 2018-07-01T22:18:24.000Z | 2019-04-05T00:10:15.000Z | SmartSensor_Example_BME280/lib/SmartShield/SmartShield.cpp | grafisoft/Smart-Sensors-Shield | 9a93a6e2528c064c77f1b3d3408f632acb3508fc | [
"MIT"
] | null | null | null | SmartSensor_Example_BME280/lib/SmartShield/SmartShield.cpp | grafisoft/Smart-Sensors-Shield | 9a93a6e2528c064c77f1b3d3408f632acb3508fc | [
"MIT"
] | 1 | 2020-02-10T01:52:48.000Z | 2020-02-10T01:52:48.000Z |
/*
CURSO BASICO IOT DE LA COMUNIDAD SPAINLABS.COM
Libreria para la placa de expansión Smart Sensors Shield
Compatible con las versiones del modulo ESP8266: esp-07/12/12E.
Enlace: https://www.spainlabs.com/foros/tema-SpainLabsIoT2018-Nodo-ESP8266-Smart-Sensors-Shield
Firmware para el hardware desarrollado en... | 24.487437 | 97 | 0.598399 | grafisoft |
8e878d4da72068806a612f00a40bcb769f63c09c | 8,033 | cpp | C++ | src/StackMapFrame.cpp | Mihail-K/JBC | 51636603b048cbbfe78e56e68c8965418478c5c9 | [
"MIT"
] | null | null | null | src/StackMapFrame.cpp | Mihail-K/JBC | 51636603b048cbbfe78e56e68c8965418478c5c9 | [
"MIT"
] | null | null | null | src/StackMapFrame.cpp | Mihail-K/JBC | 51636603b048cbbfe78e56e68c8965418478c5c9 | [
"MIT"
] | null | null | null |
# include "Debug.h"
# include "ClassFile.h"
# include "ErrorTypes.h"
# include "StackMapFrame.h"
namespace JBC {
/* Stack Map Frame encode */
ObjectVariableInfo *ObjectVariableInfo
::DecodeInfo(ClassBuffer *buffer, ClassFile *classFile) {
uint16_t index = buffer->NextShort();
object = static_cast<C... | 27.230508 | 80 | 0.68617 | Mihail-K |
8e8e0ba64b7f434273117458c4515963bd4f9ebc | 2,557 | cpp | C++ | src/ext/ExternalPartitionModelFactoryContainer.cpp | link-u/cavif | bafaecd66779fbbe7a3443f59606aca2e528dba3 | [
"MIT"
] | 95 | 2020-01-18T22:04:08.000Z | 2022-03-23T16:19:31.000Z | src/ext/ExternalPartitionModelFactoryContainer.cpp | link-u/cavif | bafaecd66779fbbe7a3443f59606aca2e528dba3 | [
"MIT"
] | 195 | 2020-01-26T12:21:47.000Z | 2022-03-29T07:57:21.000Z | src/ext/ExternalPartitionModelFactoryContainer.cpp | link-u/cavif | bafaecd66779fbbe7a3443f59606aca2e528dba3 | [
"MIT"
] | 16 | 2020-01-25T04:04:51.000Z | 2022-03-08T19:56:23.000Z | //
// Created by psi on 2021/12/04.
//
#include "ExternalPartitionModelFactoryContainer.hpp"
#include "ExternalPartitionModel.hpp"
ExternalPartitionModelFactoryContainer::ExternalPartitionModelFactoryContainer(std::unique_ptr<ExternalPartitionModelFactory> factory)
:factory_(std::move(factory))
{
}
aom_ext_part_func... | 37.057971 | 134 | 0.835745 | link-u |
8e9096f6129a5911fcde3c8e5820b40a4b88d42b | 3,619 | cpp | C++ | src/EConvexOpt.cpp | hoolheart/EinkDataDriver | 6fe82f3be70f276559184f87888f7a1d320a23cb | [
"Apache-2.0"
] | 1 | 2015-12-18T20:22:25.000Z | 2015-12-18T20:22:25.000Z | src/EConvexOpt.cpp | hoolheart/EinkDataDriver | 6fe82f3be70f276559184f87888f7a1d320a23cb | [
"Apache-2.0"
] | null | null | null | src/EConvexOpt.cpp | hoolheart/EinkDataDriver | 6fe82f3be70f276559184f87888f7a1d320a23cb | [
"Apache-2.0"
] | null | null | null | /*
* EConvexOpt.cpp
*
* Created on: 15 mars 2013
* Author: Edward Chou
*/
#include "EConvexOpt.h"
EConvexOpt::EConvexOpt() {
// Initialize
xDim = 0;
p_opt = 0;
hasObjective = false;
isSolved = false;
isFeasible = false;
}
EConvexOpt::~EConvexOpt() {
// clean up
removeObjective();
removeAllConstra... | 18.18593 | 74 | 0.643824 | hoolheart |
8e91c170e01575b9a46acaa496c7475be7161cbd | 581 | hpp | C++ | Engine/Renderer/EditorUI/Classes/EditorLevel.hpp | MadLadSquad/UntitledVulkanGameEngine | e7d41ab7fe6e104ad4aed6363cb384032ff6c184 | [
"MIT"
] | 16 | 2020-12-13T09:38:04.000Z | 2022-03-20T14:33:55.000Z | Engine/Renderer/EditorUI/Classes/EditorLevel.hpp | MadLadSquad/UntitledVulkanGameEngine | e7d41ab7fe6e104ad4aed6363cb384032ff6c184 | [
"MIT"
] | 8 | 2020-12-25T14:49:41.000Z | 2021-08-25T01:21:53.000Z | Engine/Renderer/EditorUI/Classes/EditorLevel.hpp | MadLadSquad/UntitledVulkanGameEngine | e7d41ab7fe6e104ad4aed6363cb384032ff6c184 | [
"MIT"
] | 4 | 2021-04-05T13:19:53.000Z | 2022-03-18T10:56:35.000Z | // EditorLevel.hpp
// Last update 27/8/2021 by Madman10K
#pragma once
#include "EditorGameMode.hpp"
#include <GameFramework/GameplayClasses/Level/Level.hpp>
#ifndef PRODUCTION
namespace UVK
{
//class Level;
class EditorLevel : public Level
{
public:
EditorLevel()
{
gameMode... | 19.366667 | 64 | 0.623064 | MadLadSquad |
8e91fec0a15986e854bc64a72efbefc277ad2c2b | 1,839 | cpp | C++ | src/system_win32/b3Error.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/system_win32/b3Error.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/system_win32/b3Error.cpp | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | 1 | 2022-01-07T15:58:38.000Z | 2022-01-07T15:58:38.000Z | /*
**
** $Filename: b3Error.cpp $
** $Release: Dortmund 2005 $
** $Revision$
** $Date$
** $Author$
** $Developer: Steffen A. Mork $
**
** Blizzard III - Maintain system error code and error string
**
** (C) Copyright 2005 Steffen A. Mork
** All Rights Reserved
**
**
*/
/*******************************************... | 22.156627 | 74 | 0.408374 | stmork |
8e946d6c2ebd5465cbc07f8aba98d676a50d1636 | 594 | cpp | C++ | src/QtCalendar/nAbUrbeConditaCalendar.cpp | Vladimir-Lin/QtCalendar | fda02caddae9ebb4af94782622773f6a436879ae | [
"MIT"
] | null | null | null | src/QtCalendar/nAbUrbeConditaCalendar.cpp | Vladimir-Lin/QtCalendar | fda02caddae9ebb4af94782622773f6a436879ae | [
"MIT"
] | null | null | null | src/QtCalendar/nAbUrbeConditaCalendar.cpp | Vladimir-Lin/QtCalendar | fda02caddae9ebb4af94782622773f6a436879ae | [
"MIT"
] | null | null | null | #include <qtcalendar.h>
/***********************************************
Ab Urbe Condita Calendar
***********************************************/
N::AbUrbeConditaCalendar:: AbUrbeConditaCalendar (void)
: AbstractEra ( )
{
}
N::AbUrbeConditaCalendar::~AbUrbeCondit... | 16.971429 | 58 | 0.540404 | Vladimir-Lin |
8e95e300f638942dcbf72798f7734891522c7adb | 804 | cpp | C++ | solutions/codeforces/1501B.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | 1 | 2021-08-12T14:53:37.000Z | 2021-08-12T14:53:37.000Z | solutions/codeforces/1501B.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | null | null | null | solutions/codeforces/1501B.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pi;
#define MOD 1000000007
#define EPS 1e-9
#define ll long long
#define ld long double
#define pb push_back
#define mp make_pair
#define endl '\n'
#define foreach(it,x) for(__typeof__((x).begin()) it = (x).begin(); it != (x).end(); ++it)
void solve... | 15.764706 | 90 | 0.521144 | MohanedAshraf |
8e9b1a6c14f6f2d81203ab6972ffaf83700a354e | 5,190 | hpp | C++ | include/nil/crypto3/pubkey/modes/accumulators/signatures.hpp | JasonCoombs/crypto3-pkmodes | 0dc8defe1a2199cb798df943b8665ec1a53c295b | [
"MIT"
] | null | null | null | include/nil/crypto3/pubkey/modes/accumulators/signatures.hpp | JasonCoombs/crypto3-pkmodes | 0dc8defe1a2199cb798df943b8665ec1a53c295b | [
"MIT"
] | 4 | 2021-04-01T15:38:20.000Z | 2022-02-20T03:45:24.000Z | include/nil/crypto3/pubkey/modes/accumulators/signatures.hpp | JasonCoombs/crypto3-pkmodes | 0dc8defe1a2199cb798df943b8665ec1a53c295b | [
"MIT"
] | 2 | 2022-02-13T21:40:59.000Z | 2022-02-20T03:13:02.000Z | //---------------------------------------------------------------------------//
// Copyright (c) 2018-2020 Mikhail Komarov <nemo@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... | 42.195122 | 114 | 0.617341 | JasonCoombs |
8ea28c2832ea05ec195f00343c81d521919c22f8 | 3,461 | hpp | C++ | src/base/AFRWLock.hpp | overtalk/ARK | 9d314e99dc13684fc672371a0c3fbaa6b9a46d97 | [
"Apache-2.0"
] | 1 | 2020-02-21T14:32:13.000Z | 2020-02-21T14:32:13.000Z | src/base/AFRWLock.hpp | overtalk/ARK | 9d314e99dc13684fc672371a0c3fbaa6b9a46d97 | [
"Apache-2.0"
] | null | null | null | src/base/AFRWLock.hpp | overtalk/ARK | 9d314e99dc13684fc672371a0c3fbaa6b9a46d97 | [
"Apache-2.0"
] | null | null | null | /*
* This source file is part of ARK
* For the latest info, see https://github.com/ArkNX
*
* Copyright (c) 2013-2019 ArkNX authors.
*
* 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
*
... | 20.358824 | 75 | 0.648945 | overtalk |
8eb0bf78b4800d14efa43f871f7705ca0ef4a04f | 6,523 | hpp | C++ | vle/devs/devs.hpp | vle-forge/Echll | f3895dc721ec891b5828fcd17aec0d37be07fb60 | [
"BSD-2-Clause"
] | null | null | null | vle/devs/devs.hpp | vle-forge/Echll | f3895dc721ec891b5828fcd17aec0d37be07fb60 | [
"BSD-2-Clause"
] | null | null | null | vle/devs/devs.hpp | vle-forge/Echll | f3895dc721ec891b5828fcd17aec0d37be07fb60 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2013-2014 INRA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of c... | 32.944444 | 82 | 0.708876 | vle-forge |
8eb0f6df2b02e38249b8eb3dfbc309cc19e5c120 | 15,759 | cpp | C++ | src/application/core/base/EvObject.cpp | kaabimg/EvLibrary | 47acd8fdb39c05edb843238a61d0faea5ed6ea88 | [
"Unlicense"
] | 2 | 2017-02-01T11:05:26.000Z | 2017-07-10T13:26:29.000Z | src/application/core/base/EvObject.cpp | kaabimg/EvLibrary | 47acd8fdb39c05edb843238a61d0faea5ed6ea88 | [
"Unlicense"
] | null | null | null | src/application/core/base/EvObject.cpp | kaabimg/EvLibrary | 47acd8fdb39c05edb843238a61d0faea5ed6ea88 | [
"Unlicense"
] | null | null | null | #include "EvObject.h"
#include "EvProperty.h"
#include "EvObjectsManagement.h"
#include "EvObjectsContainer.h"
#include "EvSystem.h"
#include "EvApplication.h"
#include "EvObjectLink.h"
#include "EvApplicationObjects.h"
#include <QMetaClassInfo>
#include <QMetaProperty>
uint EvObject::objectsIds(0);
EvObject::EvObj... | 24.623438 | 103 | 0.644838 | kaabimg |
8eb52185de9937bd27ab083eb200eb9fcef189ef | 129,301 | cxx | C++ | Filters/Geometry/Testing/Cxx/TestUnstructuredGridGeometryFilter.cxx | mach9robotics/VTK | 60f6f8c6e3964898abd6197179c44493449a5b7d | [
"BSD-3-Clause"
] | 1,755 | 2015-01-03T06:55:00.000Z | 2022-03-29T05:23:26.000Z | Filters/Geometry/Testing/Cxx/TestUnstructuredGridGeometryFilter.cxx | mach9robotics/VTK | 60f6f8c6e3964898abd6197179c44493449a5b7d | [
"BSD-3-Clause"
] | 29 | 2015-04-23T20:58:30.000Z | 2022-03-02T16:16:42.000Z | Filters/Geometry/Testing/Cxx/TestUnstructuredGridGeometryFilter.cxx | mach9robotics/VTK | 60f6f8c6e3964898abd6197179c44493449a5b7d | [
"BSD-3-Clause"
] | 1,044 | 2015-01-05T22:48:27.000Z | 2022-03-31T02:38:26.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: TestUnstructuredGridGeometryFilter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... | 33.171113 | 98 | 0.692864 | mach9robotics |
8eb799b46aaa653f150a5435cc4b0c4d0c9a94c0 | 1,514 | hpp | C++ | src/PrettyPrint/Errors.hpp | RainingComputers/ShnooTalk | 714f6648363a99e011e329ed1a3f800e6fe65f39 | [
"MIT"
] | 6 | 2021-07-17T16:02:07.000Z | 2022-02-05T16:33:51.000Z | src/PrettyPrint/Errors.hpp | RainingComputers/ShnooTalk | 714f6648363a99e011e329ed1a3f800e6fe65f39 | [
"MIT"
] | 1 | 2021-07-16T07:14:31.000Z | 2021-07-16T07:22:10.000Z | src/PrettyPrint/Errors.hpp | RainingComputers/ShnooTalk | 714f6648363a99e011e329ed1a3f800e6fe65f39 | [
"MIT"
] | 2 | 2021-07-16T02:54:27.000Z | 2022-03-29T20:51:57.000Z | #ifndef PP_ERRORS
#define PP_ERRORS
#include <string>
#include "../IntermediateRepresentation/TypeDescription.hpp"
#include "../Token/Token.hpp"
namespace pp
{
void println(const std::string& msg);
void errorOnLine(const std::string& moduleName,
const std::string& errorMessage,
... | 33.644444 | 114 | 0.580581 | RainingComputers |
8ec0819b7553ad914b8b70ade718263eaec3ad26 | 2,087 | cpp | C++ | src/oauth/strategy/OAuthStrategy.cpp | SamVerschueren/BB10-OAuth | 16c54cca09751bfde428888ff5f9b24191b40c64 | [
"Unlicense"
] | 1 | 2020-09-29T18:41:05.000Z | 2020-09-29T18:41:05.000Z | src/oauth/strategy/OAuthStrategy.cpp | SamVerschueren/BB10-OAuth | 16c54cca09751bfde428888ff5f9b24191b40c64 | [
"Unlicense"
] | 1 | 2015-04-24T05:33:27.000Z | 2016-05-13T13:45:27.000Z | src/oauth/strategy/OAuthStrategy.cpp | SamVerschueren/BB10-OAuth | 16c54cca09751bfde428888ff5f9b24191b40c64 | [
"Unlicense"
] | null | null | null | /*
* OAuthStrategy.cpp
*
* Created on: 13-aug.-2014
* Author: Sam Verschueren <sam.verschueren@gmail.com>
*/
#include <QUuid>
#include "OAuthStrategy.hpp"
namespace oauth {
namespace strategy {
OAuthStrategy::OAuthStrategy(QObject *parent) : QObject(parent) {
this->setRedirectUrl(QUrl(... | 28.986111 | 87 | 0.574988 | SamVerschueren |
8ece3247cce23dda7e7e2362e173deeedb424ec7 | 2,619 | hpp | C++ | _contract-shared-headers/daccustodian_shared.hpp | boid-com/boiddac-contracts | 91ac3d00c6197a4c5bc4a48908df8ab2b8e4c9d0 | [
"MIT"
] | 1 | 2021-06-16T14:33:27.000Z | 2021-06-16T14:33:27.000Z | _contract-shared-headers/daccustodian_shared.hpp | boid-com/boiddac-contracts | 91ac3d00c6197a4c5bc4a48908df8ab2b8e4c9d0 | [
"MIT"
] | null | null | null | _contract-shared-headers/daccustodian_shared.hpp | boid-com/boiddac-contracts | 91ac3d00c6197a4c5bc4a48908df8ab2b8e4c9d0 | [
"MIT"
] | null | null | null | #ifndef DACCUSTODIAN_SHARED_H
#define DACCUSTODIAN_SHARED_H
namespace eosdac {
#include <eosio/eosio.hpp>
#include <eosio/multi_index.hpp>
struct account_balance_delta {
eosio::name account;
eosio::asset balance_delta;
};
struct account_weight_delta {
eosio::name ... | 37.956522 | 118 | 0.682703 | boid-com |
8ed4fb6a7ce245cc7aff265a94360a260f27e5d7 | 14,218 | cpp | C++ | src/overlap.cpp | biologic/stylus | ae642bbb7e2205bab1ab1b4703ea037e996e13db | [
"Apache-2.0"
] | null | null | null | src/overlap.cpp | biologic/stylus | ae642bbb7e2205bab1ab1b4703ea037e996e13db | [
"Apache-2.0"
] | null | null | null | src/overlap.cpp | biologic/stylus | ae642bbb7e2205bab1ab1b4703ea037e996e13db | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* \file overlap.cpp
* \brief Stylus Gene class (stroke overlap detection)
*
* Stylus, Copyright 2006-2009 Biologic Institute
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in ... | 31.595556 | 141 | 0.642284 | biologic |
8ed565a53ddfd5d14d45e05ebd5023e3a61fb0cb | 65,511 | cpp | C++ | Source/API/D3D12/CommandListD3D12.cpp | KawBuma/Buma3D | 73b1c7a99c979492f072d4ead89f2d357d5e048a | [
"MIT"
] | 5 | 2020-11-25T05:05:13.000Z | 2022-02-09T09:35:21.000Z | Source/API/D3D12/CommandListD3D12.cpp | KawBuma/Buma3D | 73b1c7a99c979492f072d4ead89f2d357d5e048a | [
"MIT"
] | 5 | 2020-11-11T09:52:59.000Z | 2021-12-15T13:27:37.000Z | Source/API/D3D12/CommandListD3D12.cpp | KawBuma/Buma3D | 73b1c7a99c979492f072d4ead89f2d357d5e048a | [
"MIT"
] | null | null | null | #include "Buma3DPCH.h"
#include "CommandListD3D12.h"
namespace buma3d
{
namespace util
{
namespace /*anonymous*/
{
inline D3D12_PREDICATION_OP GetNativePredicationOp(PREDICATION_OP _predication_op)
{
switch (_predication_op)
{
case buma3d::PREDICATION_OP_EQUAL_ZERO : return D3D12_PREDICATION_OP_EQUA... | 38.718085 | 265 | 0.694509 | KawBuma |
8ed9ee133249c3cd1339fa487d245ea0d98f87eb | 1,011 | cpp | C++ | mython_interpreter/comparators.cpp | michael-novikov/cpp-black-belt | c18690e1641774fbb5c5b3d3c80b14c32bab70a5 | [
"MIT"
] | null | null | null | mython_interpreter/comparators.cpp | michael-novikov/cpp-black-belt | c18690e1641774fbb5c5b3d3c80b14c32bab70a5 | [
"MIT"
] | null | null | null | mython_interpreter/comparators.cpp | michael-novikov/cpp-black-belt | c18690e1641774fbb5c5b3d3c80b14c32bab70a5 | [
"MIT"
] | 2 | 2021-01-19T13:20:04.000Z | 2021-09-29T21:01:44.000Z | #include "comparators.h"
#include "object.h"
#include "object_holder.h"
#include <functional>
#include <optional>
#include <sstream>
#include <stdexcept>
using namespace std;
namespace Runtime {
bool Equal(ObjectHolder lhs, ObjectHolder rhs) {
if (lhs.TryAs<String>() && rhs.TryAs<String>()) {
return lhs.TryAs... | 28.885714 | 78 | 0.665678 | michael-novikov |
8edf707b9a653a79e65635da5feb7fd4152c5e2b | 2,572 | cpp | C++ | logcat/showtask.cpp | WentsingNee/tsoj_core_cpp | 8a83d6cc81c247a1299da207ac54b62419b75bab | [
"MIT"
] | 1 | 2019-03-08T06:15:52.000Z | 2019-03-08T06:15:52.000Z | logcat/showtask.cpp | WentsingNee/tsoj_core_cpp | 8a83d6cc81c247a1299da207ac54b62419b75bab | [
"MIT"
] | null | null | null | logcat/showtask.cpp | WentsingNee/tsoj_core_cpp | 8a83d6cc81c247a1299da207ac54b62419b75bab | [
"MIT"
] | null | null | null | /*
* showtask.cpp
*
* Author:ZhangBinjie@Penguin
* Created on: 2018年10月25日
*/
#include <iostream>
#include <queue>
#include "showtask.hpp"
ShowTask::ShowTask(const Config & config) : config(config), datetime_stream(config.datetime_color),
LEVEL_FATAL_stream(config.LEVEL_FATAL_color), LEVEL_WARNING_stream(con... | 30.619048 | 113 | 0.627527 | WentsingNee |
8ee62291386f42ccbdd95123ff9915344b01eb66 | 2,367 | cpp | C++ | week8/ValSet/ValSetMain.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | 1 | 2019-01-06T22:36:01.000Z | 2019-01-06T22:36:01.000Z | week8/ValSet/ValSetMain.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | week8/ValSet/ValSetMain.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include "ValSet.hpp"
using std::cout;
using std::endl;
using std::cin;
int main()
{
ValSet<char> mySet;
mySet.add('a');
mySet.add('b');
ValSet<char> mySet2 = mySet;
mySet2.add('x');
mySet2.add('y');
mySet2.add('z');
mySet.add('q');
... | 25.180851 | 69 | 0.539079 | WeiChienHsu |
8eed34574bd1939deeb2bce95870d91a94ef1df4 | 17,088 | cpp | C++ | test/ERT_seeding_big_read.cpp | kaist-ina/BWA-MEME | 931dc9a1e14b36bce1ef3b6086cab3b619a97dae | [
"MIT"
] | 44 | 2021-09-01T22:30:00.000Z | 2022-03-31T05:34:21.000Z | test/ERT_seeding_big_read.cpp | kaist-ina/BWA-MEME | 931dc9a1e14b36bce1ef3b6086cab3b619a97dae | [
"MIT"
] | 4 | 2021-09-02T12:36:14.000Z | 2022-03-17T01:54:36.000Z | test/ERT_seeding_big_read.cpp | kaist-ina/BWA-MEME | 931dc9a1e14b36bce1ef3b6086cab3b619a97dae | [
"MIT"
] | 4 | 2021-09-02T13:39:04.000Z | 2022-01-06T09:51:39.000Z | /*************************************************************************************
The MIT License
BWA-MEM2 (Sequence alignment using Burrows-Wheeler Transform),
Copyright (C) 2019 Intel Corporation, Heng Li.
Permission is hereby granted, free of charge, to any person o... | 37.067245 | 200 | 0.524637 | kaist-ina |
8eefbb49744fdb7307679f8f6407b82f97a3bb27 | 3,276 | cpp | C++ | src/test_col.cpp | Tichien/Unidraw | 71ecf00113c8b0abd599f3aa24d1640433ccd0ae | [
"MIT"
] | 2 | 2020-06-18T07:26:43.000Z | 2021-06-20T06:17:32.000Z | src/test_col.cpp | todorico/unidraw | 71ecf00113c8b0abd599f3aa24d1640433ccd0ae | [
"MIT"
] | null | null | null | src/test_col.cpp | todorico/unidraw | 71ecf00113c8b0abd599f3aa24d1640433ccd0ae | [
"MIT"
] | null | null | null |
#include <cmath>
#include "Canvas.h"
#include <vector>
using namespace std;
/*
Prototype couleurs
0 -> 80 : pair de couleur 8 couleurs + 1 couleurs par default;
si nb couleurs == 256
81 -> 255 : echelle de couleur modification du background possible et deux couleur min r g b max r g b
Colorscale{
Color min 30 4... | 18.827586 | 118 | 0.582723 | Tichien |
8ef45427b6f0afa913c0c76bdf2271c3c5811658 | 10,211 | cpp | C++ | src/Controller/AI/detail/Manager.cpp | MajorArkwolf/Project-Blue-Engine | e5fc6416d0a41a1251f1b369047e0ea1097775da | [
"MIT"
] | 1 | 2021-04-18T09:49:38.000Z | 2021-04-18T09:49:38.000Z | src/Controller/AI/detail/Manager.cpp | MajorArkwolf/ICT397-Project-Blue | e5fc6416d0a41a1251f1b369047e0ea1097775da | [
"MIT"
] | null | null | null | src/Controller/AI/detail/Manager.cpp | MajorArkwolf/ICT397-Project-Blue | e5fc6416d0a41a1251f1b369047e0ea1097775da | [
"MIT"
] | 2 | 2020-06-13T15:24:01.000Z | 2021-04-15T20:25:49.000Z | /// Declaration Include
#include "Controller/AI/Manager.hpp"
/// System Dependencies
#include <set>
#include <stdexcept>
/// Internal Dependencies
#include "Controller/Engine/LuaManager.hpp"
#include "Controller/AI/States/Custom.hpp"
#include "Controller/AI/States/Chase.hpp"
#include "Controller/AI/States/Flee.hpp... | 32.313291 | 168 | 0.729997 | MajorArkwolf |
8ef53878ec9034e880fab0b05996c45fc2914ba6 | 614 | hpp | C++ | projects/engine/src/components/component.hpp | zCubed3/Aurora | f1e4ba2166a2d674fc20939111a03a1adccf4088 | [
"MIT"
] | null | null | null | projects/engine/src/components/component.hpp | zCubed3/Aurora | f1e4ba2166a2d674fc20939111a03a1adccf4088 | [
"MIT"
] | 3 | 2021-11-06T19:36:42.000Z | 2021-11-06T19:37:35.000Z | projects/engine/src/components/component.hpp | zCubed3/Manta | f1e4ba2166a2d674fc20939111a03a1adccf4088 | [
"MIT"
] | null | null | null | #ifndef MANTA_COMPONENT_HPP
#define MANTA_COMPONENT_HPP
class AActor;
class Renderer;
class Resources;
class World;
class MEngine;
// Also UE4-esque terminology here, components are prefixed with C, therefore CComponent!
// Components are behavior that can be attached to an actor and will be updated and drawn alo... | 20.466667 | 102 | 0.7443 | zCubed3 |
8efa9224d0ae0f55b70300dbe8908fe63334d3cb | 1,656 | cpp | C++ | my_windows_test_exec/main.cpp | Chaojimengnan/my-windows | 85fc5c205cea0820c090ea2b46fee62c0bba552a | [
"MIT"
] | null | null | null | my_windows_test_exec/main.cpp | Chaojimengnan/my-windows | 85fc5c205cea0820c090ea2b46fee62c0bba552a | [
"MIT"
] | null | null | null | my_windows_test_exec/main.cpp | Chaojimengnan/my-windows | 85fc5c205cea0820c090ea2b46fee62c0bba552a | [
"MIT"
] | null | null | null | #include "example_1.h"
#include "example_2.h"
#include "example_3.h"
#include "example_4.h"
#include "example_5.h"
#include "example_6.h"
#include "example_7.h"
#include "example_8.h"
#include "example_9.h"
int main(int argc, char* argv[])
{
#ifdef UNICODE
std::wcout.imbue(std::locale(""));
#endif // UNICODE
... | 20.962025 | 97 | 0.577295 | Chaojimengnan |
8efc22e3bbc782dcd707e02ddfb339b2826f4727 | 9,100 | cpp | C++ | Source/ExternalLibraries/ImGuizmo/ImCurveEdit.cpp | solidajenjo/SSFII | 92a19bbf7f55890a5d0c57a483452637d50d84e1 | [
"MIT"
] | 1 | 2019-09-09T10:04:14.000Z | 2019-09-09T10:04:14.000Z | Source/ExternalLibraries/ImGuizmo/ImCurveEdit.cpp | solidajenjo/SSFII | 92a19bbf7f55890a5d0c57a483452637d50d84e1 | [
"MIT"
] | null | null | null | Source/ExternalLibraries/ImGuizmo/ImCurveEdit.cpp | solidajenjo/SSFII | 92a19bbf7f55890a5d0c57a483452637d50d84e1 | [
"MIT"
] | 1 | 2020-06-11T05:59:46.000Z | 2020-06-11T05:59:46.000Z | #include "ImCurveEdit.h"
#include "imgui.h"
#include "imgui_internal.h"
#include <stdint.h>
#include <set>
namespace ImCurveEdit
{
static float smoothstep(float edge0, float edge1, float x)
{
x = ImClamp((x - edge0) / (edge1 - edge0), 0.0f, 1.0f);
return x * x * (3 - 2 * x);
}
static float di... | 31.487889 | 160 | 0.521758 | solidajenjo |
8efc99f4b56abd0f06878b51707167baa30f50e4 | 746 | cc | C++ | test/common/utilities/random_test.cc | neilong31/authservice | 90341079bcb934df8acac8393b4a73fdaef33764 | [
"Apache-2.0"
] | null | null | null | test/common/utilities/random_test.cc | neilong31/authservice | 90341079bcb934df8acac8393b4a73fdaef33764 | [
"Apache-2.0"
] | null | null | null | test/common/utilities/random_test.cc | neilong31/authservice | 90341079bcb934df8acac8393b4a73fdaef33764 | [
"Apache-2.0"
] | null | null | null | #include "src/common/utilities/random.h"
#include <algorithm>
#include "gtest/gtest.h"
#include "openssl/rand.h"
namespace transparent_auth {
namespace common {
namespace utilities {
TEST(Random, Rand) {
RandomGenerator generator;
for (auto i = 0; i < 100; i++) {
Random first = generator.Generate(32);
ASS... | 25.724138 | 73 | 0.670241 | neilong31 |
8efe2a0f2e2d1c33ad90e5e19785dc8efe6e521a | 13,149 | cpp | C++ | AGVCCON/fSTL_CR.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | AGVCCON/fSTL_CR.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | AGVCCON/fSTL_CR.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------------------
// COPYRIGHT NOTICE
// ----------------------------------------------------------------------------------------
//
// The Source Code Store LLC
// ACTIVEGANTT SCHEDULER COMPONENT FOR C++ - ActiveGan... | 42.279743 | 173 | 0.759754 | jluzardo1971 |
f102671988952a3be720b465fa4dc165dac84304 | 799 | hpp | C++ | library/ATF/_notice_move_limit_map_msg_zocl.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_notice_move_limit_map_msg_zocl.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_notice_move_limit_map_msg_zocl.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
#pragma pack(push, 1)
struct _notice_move_limit_map_msg_zocl
{
enum NOTIFY_TYPE
{
NT_NONE = 0xFF,
... | 30.730769 | 108 | 0.69587 | lemkova |
f1036e64efd97c8d5abbddad6f8a230e4fbc64b4 | 1,525 | cpp | C++ | src/markercache.cpp | ctggroup/BayesMap | a56ab3769389ecaa315ff4bae9db58948fb94e55 | [
"MIT"
] | 2 | 2021-11-06T14:43:05.000Z | 2021-11-14T16:05:05.000Z | src/markercache.cpp | ctggroup/BayesMap | a56ab3769389ecaa315ff4bae9db58948fb94e55 | [
"MIT"
] | 5 | 2019-03-01T17:22:18.000Z | 2021-06-10T04:43:18.000Z | src/markercache.cpp | ctggroup/BayesRRcmd | a56ab3769389ecaa315ff4bae9db58948fb94e55 | [
"MIT"
] | 1 | 2020-04-03T10:01:55.000Z | 2020-04-03T10:01:55.000Z | #include "markercache.h"
#include "data.hpp"
#include "marker.h"
#include "markerbuilder.h"
#include "options.hpp"
const std::shared_ptr<MarkerCache> markerCache()
{
static const auto cache = std::make_shared<MarkerCache>();
return cache;
}
void MarkerCache::clear()
{
m_markers.clear();
}
void MarkerCac... | 26.293103 | 113 | 0.616393 | ctggroup |
f106129144d780eeb80acb8017bec12225614f02 | 2,090 | cpp | C++ | Source/MapGenerator/HeightMapPlanet/HeightMapPlanet.cpp | benoitestival/MapModuleEditor | 3a7d72d0dc3761bd61f19df1e5af46081a791356 | [
"MIT"
] | null | null | null | Source/MapGenerator/HeightMapPlanet/HeightMapPlanet.cpp | benoitestival/MapModuleEditor | 3a7d72d0dc3761bd61f19df1e5af46081a791356 | [
"MIT"
] | null | null | null | Source/MapGenerator/HeightMapPlanet/HeightMapPlanet.cpp | benoitestival/MapModuleEditor | 3a7d72d0dc3761bd61f19df1e5af46081a791356 | [
"MIT"
] | 1 | 2021-07-07T09:22:28.000Z | 2021-07-07T09:22:28.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "HeightMapPlanet.h"
#include "Engine/World.h"
#include "MapGenerator/HeightMapPlanet/HeightMapPlanetManager.h"
#include "HeightMapPlanetChunk.h"
#include "MapGenerator/Utils/MapEditorUtils.h"
TArray<FVector> AHeightMapPlanet::Chu... | 24.588235 | 162 | 0.719139 | benoitestival |
f1073f2b68ca783c6e8cc9e9a44d26c928d16e2c | 4,073 | cpp | C++ | tests/OxSignCalculatorShmolli_test.cpp | MRKonrad/OxShmolli2 | abe020f4aa08c1037f04fe80e68f0651d03cccd1 | [
"MIT"
] | 7 | 2018-12-10T10:11:03.000Z | 2021-03-11T14:40:40.000Z | tests/OxSignCalculatorShmolli_test.cpp | MRKonrad/OxShmolli2 | abe020f4aa08c1037f04fe80e68f0651d03cccd1 | [
"MIT"
] | 10 | 2019-03-10T11:42:55.000Z | 2021-12-10T15:39:41.000Z | tests/OxSignCalculatorShmolli_test.cpp | MRKonrad/OxShmolli2 | abe020f4aa08c1037f04fe80e68f0651d03cccd1 | [
"MIT"
] | 3 | 2019-12-04T14:05:54.000Z | 2022-02-26T00:24:38.000Z | /*!
* \file OxSignCalculatorShmolli_test.cpp
* \author Konrad Werys
* \date 2018/08/01
*/
#include "CmakeConfigForTomato.h"
#include "gtest/gtest.h"
#ifdef USE_YAML
#include "OxTestData.h"
#ifdef USE_PRIVATE_NR2
#include "OxSignCalculatorShmolli.h"
TEST(OxSignCalculatorShmolli, calculateSign_blood) {
typed... | 29.948529 | 78 | 0.72821 | MRKonrad |
f109060c30e45f47c7492f082ec434ed8f952717 | 125 | cpp | C++ | lessons/08-streams/src/example_01.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | lessons/08-streams/src/example_01.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | lessons/08-streams/src/example_01.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
int main() {
double rmsd = 0.0;
// Print result:
std::cout << rmsd << std::endl;
return 0;
}
| 10.416667 | 33 | 0.56 | chemphys |
f10b62c3166b170c9cb0c1019970be9e5ddc1e3a | 1,001 | hpp | C++ | src/effect/tech.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/effect/tech.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/effect/tech.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "tech_if.hpp"
#include "vertex.hpp"
#include "../drawcmd/cmd.hpp"
namespace rev {
class UniformEnt;
class Tech : public ITech {
protected:
HProg _program;
//! Setting: Uniformデフォルト値(texture, vector, float, bool)設定を含む
//! GLDeviceの設定クラスリスト
GLState_SPV _setting;
//! Uniform非デフ... | 27.805556 | 64 | 0.718282 | degarashi |
f10ff39daa493c6356e975f0895d3a39bf1a1b77 | 6,673 | cc | C++ | cc/util/intcode.cc | craig-chasseur/aoc2019 | e2bed89deef4cabc37ff438dd7d26efe0187500b | [
"MIT"
] | null | null | null | cc/util/intcode.cc | craig-chasseur/aoc2019 | e2bed89deef4cabc37ff438dd7d26efe0187500b | [
"MIT"
] | null | null | null | cc/util/intcode.cc | craig-chasseur/aoc2019 | e2bed89deef4cabc37ff438dd7d26efe0187500b | [
"MIT"
] | null | null | null | #include "cc/util/intcode.h"
#include <cstdint>
#include <deque>
#include <fstream>
#include <functional>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include "absl/strings/numbers.h"
#include "absl/strings/str_join.h"
#include "absl/strings/str_split.h"
#include "absl/strings/string_vi... | 26.168627 | 79 | 0.629702 | craig-chasseur |
47dee8e091c4a7c532040b21e0844c00e89f96d6 | 559 | hpp | C++ | src/parsium/mckeeman/parser/message/message.hpp | the-last-willy/parser-gen | 5d8e3e9b85f2e2b599c875ae9ae15242377f5dd7 | [
"MIT"
] | null | null | null | src/parsium/mckeeman/parser/message/message.hpp | the-last-willy/parser-gen | 5d8e3e9b85f2e2b599c875ae9ae15242377f5dd7 | [
"MIT"
] | null | null | null | src/parsium/mckeeman/parser/message/message.hpp | the-last-willy/parser-gen | 5d8e3e9b85f2e2b599c875ae9ae15242377f5dd7 | [
"MIT"
] | null | null | null | #pragma once
#include "parsium/mckeeman/name.hpp"
#include <variant>
namespace parsium {
namespace mckeeman {
enum class ParserAction {
abort,
consume,
enter,
exit
};
struct ParserMessage {
ParserAction action;
std::variant<std::monostate, const Name*, char> content;
};
inline
const Name* name_or(const Pars... | 14.710526 | 57 | 0.706619 | the-last-willy |
47e03613b1f46f9a900d6fc87355e2413564ce1b | 417 | cpp | C++ | Source/FSD/Private/ArmorPiece.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSD/Private/ArmorPiece.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSD/Private/ArmorPiece.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "ArmorPiece.h"
#include "Templates/SubclassOf.h"
class AArmorPiece;
class AActor;
TSubclassOf<AActor> AArmorPiece::GetWeaponViewClass() const {
return NULL;
}
AArmorPiece* AArmorPiece::GetArmorPieceDefaultObject(TSubclassOf<AArmorPiece> armorPieceClass) {
return NULL;
}
AArmorPiece::AArmorPiece() {... | 19.857143 | 96 | 0.743405 | Dr-Turtle |
47e353989f9ec3b2ff8717c247d17fc02b86b5e9 | 1,523 | hh | C++ | Editor/src/Panels/PropertiesPanel.hh | Stolkerve/RoraymaEngine | e8dcddcb6679bb7417b22eaec1d5beb9c0c82cc2 | [
"Apache-2.0"
] | null | null | null | Editor/src/Panels/PropertiesPanel.hh | Stolkerve/RoraymaEngine | e8dcddcb6679bb7417b22eaec1d5beb9c0c82cc2 | [
"Apache-2.0"
] | null | null | null | Editor/src/Panels/PropertiesPanel.hh | Stolkerve/RoraymaEngine | e8dcddcb6679bb7417b22eaec1d5beb9c0c82cc2 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <RoraymaEngine/Scene/Scene.hh>
/*
Its class exist inside EntitysPanel class as a private member
*/
namespace rym
{
class PropertiesPanel
{
public:
PropertiesPanel() = default;
~PropertiesPanel() = default;
void EntityClicked(Entity* entity)
{
m_EntitySelected = entity;
}
vo... | 25.813559 | 80 | 0.734734 | Stolkerve |
47e46c35e327d526a45d91ea58139d771b391872 | 12,395 | cpp | C++ | qplaintextedit_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | qplaintextedit_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | qplaintextedit_c.cpp | mariuszmaximus/qt5pas-aarch64-linux-gnu | c60bbcfa5b0d7c4fe18bb21e5f2f424a5b658c1b | [
"Apache-2.0"
] | null | null | null | //******************************************************************************
// Copyright (c) 2005-2013 by Jan Van hijfte
//
// See the included file COPYING.TXT for details about the copyright.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the i... | 28.96028 | 129 | 0.789593 | mariuszmaximus |
47eea20bbb4dbc8daf4568d58cb3781dc3163f76 | 364 | hpp | C++ | src/arch/desktop/window.hpp | yocto-8/yocto-8 | 4911a82f399776731d3030234c731c15593f1910 | [
"MIT"
] | 22 | 2021-06-20T21:23:29.000Z | 2022-03-26T01:46:10.000Z | src/arch/desktop/window.hpp | yocto-8/yocto-8 | 4911a82f399776731d3030234c731c15593f1910 | [
"MIT"
] | 2 | 2021-09-06T12:08:32.000Z | 2021-09-06T12:23:55.000Z | src/arch/desktop/window.hpp | yocto-8/yocto-8 | 4911a82f399776731d3030234c731c15593f1910 | [
"MIT"
] | 1 | 2021-11-26T08:34:59.000Z | 2021-11-26T08:34:59.000Z | #pragma once
#include <SFML/Graphics/Texture.hpp>
#include <SFML/Graphics/RenderWindow.hpp>
#include <devices/image.hpp>
namespace arch::desktop
{
class Window
{
public:
Window();
void present_frame(devices::Framebuffer fb);
sf::RenderWindow window;
sf::Texture fb_texture;
std::uint8_t but... | 14.56 | 48 | 0.711538 | yocto-8 |
47f48a30e10a375a2edd48380059e088cb9465b6 | 640 | cpp | C++ | #1067 Sort with Swap(0, i).cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | 1 | 2021-12-26T08:34:47.000Z | 2021-12-26T08:34:47.000Z | #1067 Sort with Swap(0, i).cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | null | null | null | #1067 Sort with Swap(0, i).cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | null | null | null | #include <iostream>
int main() {
size_t n, k = 0, *index;
unsigned disorder = 0, cnt = 0;
if(!scanf("%zu", &n)) return 0;
index = new size_t[n];
for(size_t i = 0, num; i < n && scanf("%zu", &num); ++i) {
index[num] = i;
if(num != i) ++disorder;
}
while(disorder > 1) {
... | 24.615385 | 62 | 0.426563 | ZachVec |
47f83bc71a58823229a1f8be764b393e2d0e6d71 | 22,614 | cxx | C++ | modules/scene_manager/include/sensor_msgs/msg/dds_connext/MultiEchoLaserScan_.cxx | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/scene_manager/include/sensor_msgs/msg/dds_connext/MultiEchoLaserScan_.cxx | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 3 | 2019-11-14T12:20:06.000Z | 2020-08-07T13:51:10.000Z | modules/scene_manager/include/sensor_msgs/msg/dds_connext/MultiEchoLaserScan_.cxx | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null |
/*
WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.
This file was generated from MultiEchoLaserScan_.idl using "rtiddsgen".
The rtiddsgen tool is part of the RTI Connext distribution.
For more information, type 'rtiddsgen -help' at a command shell
or consult the RTI Connext manual.
*/
#ifndef NDDS_STANDALONE_TY... | 41.723247 | 149 | 0.451136 | Omnirobotic |
47ff0a580ce6c7bd70a64c157f604f5435c4c665 | 19,310 | cpp | C++ | src/crypto/keccak512.cpp | HashUnlimited/chaincoin | 9a035680d6d9b9a0524dc7524c55cfedd1a683ca | [
"MIT"
] | 110 | 2016-01-16T10:37:42.000Z | 2021-05-04T00:50:50.000Z | src/crypto/keccak512.cpp | HashUnlimited/chaincoin | 9a035680d6d9b9a0524dc7524c55cfedd1a683ca | [
"MIT"
] | 61 | 2017-07-13T16:41:38.000Z | 2019-05-18T15:32:51.000Z | src/crypto/keccak512.cpp | HashUnlimited/chaincoin | 9a035680d6d9b9a0524dc7524c55cfedd1a683ca | [
"MIT"
] | 108 | 2015-04-14T19:26:52.000Z | 2022-03-08T17:43:09.000Z | // Copyright (c) 2007-2010 Projet RNRT SAPHIR
// Copyright (c) 2019 PM-Tech
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <crypto/keccak512.h>
#include <stddef.h>
#include <string.h>
/*
* We do not want to... | 32.952218 | 77 | 0.501346 | HashUnlimited |
9a0927db159c97c96f94dcd049d44ea9fd5b0a87 | 1,389 | hpp | C++ | src/threepp/renderers/gl/GLBufferRenderer.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | src/threepp/renderers/gl/GLBufferRenderer.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | src/threepp/renderers/gl/GLBufferRenderer.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | // https://github.com/mrdoob/three.js/blob/r129/src/renderers/webgl/WebGLBufferRenderer.js
#ifndef THREEPP_GLBUFFERRENDERER_HPP
#define THREEPP_GLBUFFERRENDERER_HPP
#include "GLAttributes.hpp"
#include "GLCapabilities.hpp"
#include "GLInfo.hpp"
namespace threepp::gl {
struct BufferRenderer {
explicit B... | 23.542373 | 90 | 0.674586 | maidamai0 |
9a092b4ccb286669674dafa89c81ca041984b497 | 5,572 | cpp | C++ | 3rdParty/ArNetworking/src/ArNetPacket.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | 3rdParty/ArNetworking/src/ArNetPacket.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | 3rdParty/ArNetworking/src/ArNetPacket.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | /*
Adept MobileRobots Robotics Interface for Applications (ARIA)
Copyright (C) 2004-2005 ActivMedia Robotics LLC
Copyright (C) 2006-2010 MobileRobots Inc.
Copyright (C) 2011-2015 Adept Technology, Inc.
Copyright (C) 2016 Omron Adept Technologies, Inc.
This program is free software; you can redistribute it and/or ... | 23.313808 | 78 | 0.678212 | bellonemauro |
9a0c8419a780f184c56be454f6b589297afc3c81 | 1,915 | cpp | C++ | Server/src/network/PlayerManager.cpp | FreeYourSoul/FreeYourSoul_WorldServer | f6cce94085b0a4ddd4d60627136f1ef656b58dc5 | [
"MIT"
] | null | null | null | Server/src/network/PlayerManager.cpp | FreeYourSoul/FreeYourSoul_WorldServer | f6cce94085b0a4ddd4d60627136f1ef656b58dc5 | [
"MIT"
] | null | null | null | Server/src/network/PlayerManager.cpp | FreeYourSoul/FreeYourSoul_WorldServer | f6cce94085b0a4ddd4d60627136f1ef656b58dc5 | [
"MIT"
] | null | null | null | //
// Created by FyS on 05/03/18.
//
#include <spdlog/spdlog.h>
#include <utility>
#include <TcpConnection.hh>
#include "PlayerManager.hh"
fys::network::PlayerManager::PlayerManager(uint size) : SessionManager(size) {
setName("Player Manager");
}
void fys::network::PlayerManager::addIncomingPlayer(const std::str... | 37.54902 | 145 | 0.680418 | FreeYourSoul |
9a0e6fcf9ecbbc14e252b8f4ea5d1a04e4e040a9 | 1,863 | cpp | C++ | engine/time_manager.cpp | adajed/chessplusplus | b6bad18a1adfdd00eecefedd196b7c06c1b0a738 | [
"MIT"
] | 1 | 2019-10-25T12:33:18.000Z | 2019-10-25T12:33:18.000Z | engine/time_manager.cpp | adajed/chess-engine | b6bad18a1adfdd00eecefedd196b7c06c1b0a738 | [
"MIT"
] | 1 | 2021-04-21T10:00:12.000Z | 2021-05-23T10:54:00.000Z | engine/time_manager.cpp | adajed/chess-engine | b6bad18a1adfdd00eecefedd196b7c06c1b0a738 | [
"MIT"
] | null | null | null | #include "time_manager.h"
#include <cmath>
namespace engine
{
constexpr int MAX_MOVES_TO_GO = 50;
Duration TimeManager::calculateTime(const Limits& limits, Color side, int ply)
{
int maxMovesToGo =
limits.movestogo == 0 ? MAX_MOVES_TO_GO : limits.movestogo;
int our_time = limits.timeleft[side];
... | 29.109375 | 78 | 0.663446 | adajed |
9a143305989fc5ef90efd82de38589d1c2d0ed90 | 722 | cpp | C++ | MemoryzeUM/dllmain.cpp | allewwaly/dementia-forensics | 401423fd8ba4f4d2b6dbec461df2eb18f33ac734 | [
"MIT"
] | 9 | 2018-08-20T03:06:07.000Z | 2021-06-14T14:46:43.000Z | MemoryzeUM/dllmain.cpp | zignie/dementia-forensics | 201a10faa17f2d406073d29e9cb5385b30c405f8 | [
"MIT"
] | null | null | null | MemoryzeUM/dllmain.cpp | zignie/dementia-forensics | 201a10faa17f2d406073d29e9cb5385b30c405f8 | [
"MIT"
] | 2 | 2017-08-02T02:33:31.000Z | 2017-09-03T17:56:33.000Z | // dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include "MemoryzeUM.h"
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
// notice the type of the parameters! Explicitly no ... | 32.818182 | 119 | 0.746537 | allewwaly |
9a143821d6dfd9e7bf758ab50dd5df137c635751 | 1,196 | cpp | C++ | Leetcode1600.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | 1 | 2020-06-28T06:29:05.000Z | 2020-06-28T06:29:05.000Z | Leetcode1600.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | Leetcode1600.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | const int N = 100010, M = N << 1;
int h[N], e[M], ne[M], idx;
void add(int a, int b) {
e[idx] = b, ne[idx] = h[a], h[a] = idx++;
}
class ThroneInheritance {
public:
unordered_map<string, int> mp;
unordered_map<int, string> mp2;
int c;
vector<string> vs;
int v[N];
ThroneInheritance(string k... | 22.148148 | 58 | 0.464047 | dezhonger |
9a1584a181f47b4ce964acfb19cb9db06df06bce | 2,308 | hpp | C++ | tetris/core.hpp | ceilors/some-games | 91685acfccbc62533bb61755af90add182cc13a6 | [
"Unlicense"
] | null | null | null | tetris/core.hpp | ceilors/some-games | 91685acfccbc62533bb61755af90add182cc13a6 | [
"Unlicense"
] | 1 | 2018-08-20T16:39:52.000Z | 2018-08-20T16:39:52.000Z | tetris/core.hpp | ceilors/some-games | 91685acfccbc62533bb61755af90add182cc13a6 | [
"Unlicense"
] | null | null | null | #pragma once
#include <ctime>
#include <iostream>
#include <stdexcept>
#include <stdint.h>
#include <sstream>
#include <utility>
#include <vector>
// SDL2
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
/*
для enum'мов не менять нумерацию
*/
enum FigureAngle {
ANGLE_0 = 0,
ANGLE_... | 19.233333 | 114 | 0.644281 | ceilors |
9a17766d09a55c980b0f1b2ff92d343102f829b1 | 2,694 | cpp | C++ | School Olympiads/Kazakhstan IOI Team Selection Camp 2018/ day 1/a.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | School Olympiads/Kazakhstan IOI Team Selection Camp 2018/ day 1/a.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | School Olympiads/Kazakhstan IOI Team Selection Camp 2018/ day 1/a.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | # include <bits/stdc++.h>
# define F first
# define S second
# define mp make_pair
// everything go according to my plan
# define pb push_back
# define sz(a) (int)(a.size())
# define vec vector
// shimkenttin kyzdary, dzyn, dzyn, dzyn...
# define y1 Y_U_NO_y1
# define left Y_U_NO_left
# define right Y_U... | 20.409091 | 79 | 0.487008 | SuperPuperMegaUltraEpicGoldenHacker |
9a1800b7acea8297c06087326cadfec5b368e143 | 922 | cpp | C++ | src/cm/cu/GenerationControlUpdate.cpp | ukjhsa/ADEF | ce9e16d6a0f40558860a222b20065297f1a1c8fb | [
"MIT"
] | null | null | null | src/cm/cu/GenerationControlUpdate.cpp | ukjhsa/ADEF | ce9e16d6a0f40558860a222b20065297f1a1c8fb | [
"MIT"
] | 8 | 2015-12-03T10:21:21.000Z | 2019-02-20T11:20:57.000Z | src/cm/cu/GenerationControlUpdate.cpp | ukjhsa/ADEF | ce9e16d6a0f40558860a222b20065297f1a1c8fb | [
"MIT"
] | null | null | null | #include <memory>
#include <string>
#include <stdexcept>
#include "cm/cu/GenerationControlUpdate.h"
#include "cm/cp/BaseControlParameter.h"
#include "cm/cf/func/BaseFunction.h"
#include "Configuration.h"
#include "PrototypeManager.h"
#include "Repository.h"
#include "Parameters.h"
namespace adef {
void GenerationCont... | 29.741935 | 166 | 0.700651 | ukjhsa |
9a194b52ecd2853f2f49b30c2268cb1f4d1aca43 | 2,169 | hpp | C++ | include/mppic/handlers/PathHandler.hpp | SteveMacenski/mppic | 539d78a41777afba0d9a2195b6076a9167ed27a2 | [
"MIT"
] | null | null | null | include/mppic/handlers/PathHandler.hpp | SteveMacenski/mppic | 539d78a41777afba0d9a2195b6076a9167ed27a2 | [
"MIT"
] | null | null | null | include/mppic/handlers/PathHandler.hpp | SteveMacenski/mppic | 539d78a41777afba0d9a2195b6076a9167ed27a2 | [
"MIT"
] | 1 | 2022-03-27T01:44:43.000Z | 2022-03-27T01:44:43.000Z | #pragma once
#include <rclcpp_lifecycle/lifecycle_node.hpp>
#include <tf2_ros/buffer.h>
#include <geometry_msgs/msg/pose_stamped.hpp>
#include <nav_msgs/msg/path.hpp>
#include <std_msgs/msg/header.hpp>
#include <nav2_costmap_2d/costmap_2d_ros.hpp>
namespace mppi::handlers {
using PathIterator = std::vector<geometry... | 28.539474 | 98 | 0.745044 | SteveMacenski |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.