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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5846c95beab3af06c27f369609d54c9815ccce5 | 1,640 | cc | C++ | packages/@lse/core/addon/lse-lib-platform/lse/PixelConversion.cc | lightsourceengine/LightSourceEngine | bc2d0cc08907f65a900d924d1a0ab19164171cb5 | [
"Apache-2.0"
] | null | null | null | packages/@lse/core/addon/lse-lib-platform/lse/PixelConversion.cc | lightsourceengine/LightSourceEngine | bc2d0cc08907f65a900d924d1a0ab19164171cb5 | [
"Apache-2.0"
] | 5 | 2020-07-23T01:09:07.000Z | 2020-09-09T05:32:29.000Z | packages/@lse/core/addon/lse-lib-platform/lse/PixelConversion.cc | lightsourceengine/LightSourceEngine | bc2d0cc08907f65a900d924d1a0ab19164171cb5 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021 Light Source Software, LLC. 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 re... | 27.79661 | 118 | 0.603659 | lightsourceengine |
b585d9e7003edd7de91ab2005c51b591c8fd8cf8 | 6,257 | cpp | C++ | platforms/android/android_texture_loading.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | 1 | 2020-01-24T01:14:04.000Z | 2020-01-24T01:14:04.000Z | platforms/android/android_texture_loading.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | null | null | null | platforms/android/android_texture_loading.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | 1 | 2020-06-05T07:00:16.000Z | 2020-06-05T07:00:16.000Z | /*
* Copyright 2019 Julian Haldenby
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish... | 37.692771 | 191 | 0.706409 | canuc |
b58635809d59af029746eb8174083a2d394211f8 | 1,885 | cpp | C++ | Engine/EngineProject/ProjectionComponent.cpp | joshuaRMS/BoardChampions- | b1146f721dd4e49b3fecba8243182efce64249f9 | [
"MIT"
] | 1 | 2019-12-09T13:53:40.000Z | 2019-12-09T13:53:40.000Z | Engine/EngineProject/ProjectionComponent.cpp | joshuaRMS/BoardChampions- | b1146f721dd4e49b3fecba8243182efce64249f9 | [
"MIT"
] | null | null | null | Engine/EngineProject/ProjectionComponent.cpp | joshuaRMS/BoardChampions- | b1146f721dd4e49b3fecba8243182efce64249f9 | [
"MIT"
] | null | null | null | #include "ProjectionComponent.h"
#include "GL/freeglut.h"
#include "Texture.h"
#include "PlayingfieldComponent.h"
#include <iostream>
Texture * tex;
ProjectionComponent::ProjectionComponent()
{
tex = new Texture("Map_Beamer_V2.png");
}
void ProjectionComponent::display()
{
//tex = new Texture("Map_Beamer_V2.png");... | 21.179775 | 82 | 0.622812 | joshuaRMS |
b5883140d91b249dbf7915ac0c39865e38085003 | 570 | cpp | C++ | checker/test/instrument/check_Z9.cpp | node-dot-cpp/safe-memory | 4147b386ba932c84bc243160d7ff23cf0ece417d | [
"BSD-3-Clause"
] | 13 | 2019-03-16T18:58:59.000Z | 2021-11-24T10:21:21.000Z | checker/test/instrument/check_Z9.cpp | node-dot-cpp/safe-memory | 4147b386ba932c84bc243160d7ff23cf0ece417d | [
"BSD-3-Clause"
] | 41 | 2019-03-13T06:38:59.000Z | 2020-06-26T20:51:43.000Z | checker/test/instrument/check_Z9.cpp | node-dot-cpp/safe-memory | 4147b386ba932c84bc243160d7ff23cf0ece417d | [
"BSD-3-Clause"
] | 2 | 2019-06-18T14:44:45.000Z | 2020-02-19T12:27:27.000Z | // RUN: %check_safememory_instrument --report-only %s %t %p
#include <safememory/safe_ptr.h>
#include <safe_types.h>
using namespace safememory;
using namespace nodecpp;
struct TrivialUnsafeType {
void call(int) { }
};
struct UnsafeType {
UnsafeType() {}
UnsafeType(const UnsafeType&) {}// non trivially copiab... | 17.272727 | 59 | 0.696491 | node-dot-cpp |
b5910c115a2d984b7a72640909820a81e031612e | 690 | cpp | C++ | Zerojudge/a307.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | Zerojudge/a307.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | Zerojudge/a307.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | #include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main()
{
string s;
while(cin>>s)
{
if(s=="0")
{
cout<<0<<endl;
continue;
}
string s2;
if(s[0]=='-')
{
s2+="-";
s... | 17.692308 | 39 | 0.3 | w181496 |
b59c1fe1858fc9e7cdd7b72dcf385207ec9e7d02 | 722 | cpp | C++ | 134 canCompleteCircuit.cpp | OliveStar/leetcodecpp | 4558d90cf5633adea9d9fd785fdd36a001442d67 | [
"MIT"
] | null | null | null | 134 canCompleteCircuit.cpp | OliveStar/leetcodecpp | 4558d90cf5633adea9d9fd785fdd36a001442d67 | [
"MIT"
] | null | null | null | 134 canCompleteCircuit.cpp | OliveStar/leetcodecpp | 4558d90cf5633adea9d9fd785fdd36a001442d67 | [
"MIT"
] | null | null | null | class Solution {
public:
// 如果选择站点 i 作为起点「恰好」无法走到站点 j,那么 i 和 j 中间的任意站点 k 都不可能作为起点。
int canCompleteCircuit(vector<int>& gas, vector<int>& cost) {
int n = gas.size();
int sum = 0;
for(int i = 0; i < n; i++){
sum += gas[i] - cost[i];
}
if(sum < 0){
//... | 24.896552 | 65 | 0.382271 | OliveStar |
b5a21eeb0956ef156e926149495002a899dbd4f2 | 8,776 | cpp | C++ | tests/src/algorithm_dst_default.cpp | kberezovsky/Terse-STL-algorithms | 79db5297539266ee97120997b4a5e075a602763f | [
"BSL-1.0"
] | 48 | 2015-08-25T11:21:02.000Z | 2021-05-12T02:11:47.000Z | tests/src/algorithm_dst_default.cpp | kberezovsky/Terse-STL-algorithms | 79db5297539266ee97120997b4a5e075a602763f | [
"BSL-1.0"
] | 2 | 2015-08-26T15:05:47.000Z | 2015-09-01T07:19:47.000Z | tests/src/algorithm_dst_default.cpp | kberezovsky/Terse-STL-algorithms | 79db5297539266ee97120997b4a5e075a602763f | [
"BSL-1.0"
] | 2 | 2015-08-27T09:21:36.000Z | 2015-11-25T22:44:32.000Z | // Copyright (C) 2015 Konstantin Berezovsky (kberezovsky@gmail.com)
//
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "algorithm_dst_default.hpp"
#include "catch.hpp"... | 71.934426 | 117 | 0.458637 | kberezovsky |
b5a40704b6562d635f79c0c14cf3b7e3855110a2 | 1,408 | cpp | C++ | src/6_2.cpp | EmilGedda/advent-of-code-2017 | 1bb3153dee1386115e1c8cebe8f94de64d40240a | [
"BSD-3-Clause"
] | null | null | null | src/6_2.cpp | EmilGedda/advent-of-code-2017 | 1bb3153dee1386115e1c8cebe8f94de64d40240a | [
"BSD-3-Clause"
] | null | null | null | src/6_2.cpp | EmilGedda/advent-of-code-2017 | 1bb3153dee1386115e1c8cebe8f94de64d40240a | [
"BSD-3-Clause"
] | null | null | null | #include <advent-of-code.hpp>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <string>
#include <unordered_map>
#include <vector>
void redistribute(std::vector<int> &banks) {
auto max_iterator = std::max_element(banks.begin(), banks.end());
int index = std::distance(banks.b... | 26.566038 | 77 | 0.633523 | EmilGedda |
b2798a2c454154797878c5089c10d179446cc903 | 2,130 | hpp | C++ | src/Parser.hpp | edelkas/pfdb | f492767cb1fce18e737cdd6beeca23293a6acab4 | [
"MIT"
] | null | null | null | src/Parser.hpp | edelkas/pfdb | f492767cb1fce18e737cdd6beeca23293a6acab4 | [
"MIT"
] | null | null | null | src/Parser.hpp | edelkas/pfdb | f492767cb1fce18e737cdd6beeca23293a6acab4 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
#include <vector>
#include <myhtml/api.h>
/**
* The search type when performing a search of nodes on the DOM tree.
* It can be search by Tag (T), by Attribute (A) or by attribute and value (V).
*/
enum SearchType { T, A, V };
/**
* A node of the HTML DOM tree.
... | 27.662338 | 114 | 0.685915 | edelkas |
b27fcfdf2c851299edf887611fef8ed11c1de7d2 | 523 | cpp | C++ | test/addition.cpp | JCube001/calc-re2c-lemon | a70640b482c67706a191599b09a4d55f2d529206 | [
"MIT"
] | 3 | 2020-12-21T17:35:15.000Z | 2021-02-22T07:51:41.000Z | test/addition.cpp | JCube001/calc-re2c-lemon | a70640b482c67706a191599b09a4d55f2d529206 | [
"MIT"
] | null | null | null | test/addition.cpp | JCube001/calc-re2c-lemon | a70640b482c67706a191599b09a4d55f2d529206 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "eval.hpp"
SCENARIO("The evaluator shall produce correct addition results", "[calc][op][add]") {
CHECK(eval("0 + 0") == 0);
CHECK(eval("0 + 1") == 1);
CHECK(eval("1 + 0") == 1);
CHECK(eval("1 + 1") == 2);
CHECK(eval("1 + 2") == 3);
CHECK(eval("2 + 1") == 3);
CH... | 29.055556 | 85 | 0.456979 | JCube001 |
b2849d5f5522750eec24771696190b0c3633069f | 1,545 | cpp | C++ | EZOJ/2540.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/2540.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/2540.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool flag=c=='-';
flag?c=getchar():0;
w... | 22.071429 | 76 | 0.576699 | sshockwave |
b2852781dd7b95cf8f6e01164a9f4ab51e7ed3b6 | 609 | cc | C++ | codejam/2017-round-2/b.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | codejam/2017-round-2/b.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | codejam/2017-round-2/b.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://codingcompetitions.withgoogle.com/codejam/round/0000000000201900/0000000000201845
#include <bits/stdc++.h>
using namespace std;
using vi=vector<int>;
int main(){
int T,n,c,m,p,b;
cin>>T;
for(int t=1;t<=T;t++){
cin>>n>>c>>m;
vi a(n),d(c);
for(int i=0;i<m;i++){
cin>>p>>b;
p--;b-... | 19.03125 | 92 | 0.472906 | Ashindustry007 |
b28539e8b15ba64a658ab96e1f071ca73ffe47d4 | 745 | hpp | C++ | code/SimpleLexer.hpp | iboB/BlockOut3000 | 006b16a65f58bf2317bf9a6269b9bf362bdf3a7b | [
"MIT"
] | 1 | 2018-12-06T15:12:55.000Z | 2018-12-06T15:12:55.000Z | code/SimpleLexer.hpp | iboB/BlockOut3000 | 006b16a65f58bf2317bf9a6269b9bf362bdf3a7b | [
"MIT"
] | null | null | null | code/SimpleLexer.hpp | iboB/BlockOut3000 | 006b16a65f58bf2317bf9a6269b9bf362bdf3a7b | [
"MIT"
] | null | null | null | // BlockOut 3000
// Copyright(c) 2018 Borislav Stanimirov
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// http://opensource.org/licenses/MIT
//
#pragma once
// a simple lexer class that gets tokes from an istream
#include <istream>
#include <string>
#include <sstrea... | 19.605263 | 63 | 0.703356 | iboB |
b28bc823d8913054f820d62f91a9eab8012936f5 | 2,620 | hxx | C++ | ext/couchbase/configuration_monitor.hxx | Sightplan/couchbase-ruby-client | 6b7189a13eb69b97212203993b1612860aa42f85 | [
"Apache-2.0"
] | null | null | null | ext/couchbase/configuration_monitor.hxx | Sightplan/couchbase-ruby-client | 6b7189a13eb69b97212203993b1612860aa42f85 | [
"Apache-2.0"
] | null | null | null | ext/couchbase/configuration_monitor.hxx | Sightplan/couchbase-ruby-client | 6b7189a13eb69b97212203993b1612860aa42f85 | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2020 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
*
* ... | 28.172043 | 88 | 0.624809 | Sightplan |
b28ce9d0a2f23a4c5cc45cc33ec0a67f0fa94e9b | 1,123 | cpp | C++ | codes/CodeForces/Round #279/cf490E.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/CodeForces/Round #279/cf490E.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/CodeForces/Round #279/cf490E.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 1e5 + 5;
const int maxm = 10;
int N, len[maxn];
char s[maxn][maxm];
void init () {
scanf("%d", &N);
for (int i = 1; i <= N; i++)
scanf("%s", s[i]);
}
inline void fill(int d) {
for (int i = 0; i < len[d]; i++)
if (... | 15.816901 | 71 | 0.462155 | JeraKrs |
b28d5e4258a96bc2a5ed73f0c1de00eaa461d737 | 974 | hpp | C++ | Array.hpp | slollo/basachky | 890cafd2a000d0c63d97de6f063a516111d16ae8 | [
"MIT"
] | 1 | 2019-07-16T09:43:09.000Z | 2019-07-16T09:43:09.000Z | Array.hpp | slollo/basachky | 890cafd2a000d0c63d97de6f063a516111d16ae8 | [
"MIT"
] | null | null | null | Array.hpp | slollo/basachky | 890cafd2a000d0c63d97de6f063a516111d16ae8 | [
"MIT"
] | null | null | null | /*
* Array.hpp
*
*
* Copyright (C) 2019 Max V. Stotsky <maxstotsky@gmail.com>
*
*/
#ifndef ARRAY_HPP
#define ARRAY_HPP
#include <iostream>
#include "HeadTail.hpp"
#include "IsEmpty.hpp"
template <class EType, EType ...arr>
struct Array
{
typedef EType Type;
typedef size_t KeyT;
typedef Array<EType> E... | 15.460317 | 59 | 0.666324 | slollo |
b2915ba267a4beba3bad4687e5bdbf4d24527d8d | 9,809 | cpp | C++ | src/HydroQuirk/test_quirk.cpp | ADACS-Australia/quokka | 53778ddcc24edc0b254b40a0aefb11e479dbeda4 | [
"MIT"
] | 11 | 2021-10-06T06:34:50.000Z | 2022-02-17T06:54:44.000Z | src/HydroQuirk/test_quirk.cpp | ADACS-Australia/quokka | 53778ddcc24edc0b254b40a0aefb11e479dbeda4 | [
"MIT"
] | 18 | 2021-11-18T01:07:53.000Z | 2022-03-26T05:41:31.000Z | src/HydroQuirk/test_quirk.cpp | ADACS-Australia/quokka | 53778ddcc24edc0b254b40a0aefb11e479dbeda4 | [
"MIT"
] | 4 | 2021-10-06T05:46:22.000Z | 2022-03-30T03:31:48.000Z | //==============================================================================
// TwoMomentRad - a radiation transport library for patch-based AMR codes
// Copyright 2020 Benjamin Wibking.
// Released under the MIT license. See LICENSE file included in the GitHub repo.
//==============================================... | 33.250847 | 80 | 0.63299 | ADACS-Australia |
b29632202b15041410de21aac98296519723b15e | 1,220 | hpp | C++ | MainBrain/src/Controller/PedalController/PedalController.hpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 10 | 2017-07-30T21:26:32.000Z | 2021-05-04T14:33:29.000Z | MainBrain/src/Controller/PedalController/PedalController.hpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 122 | 2017-07-30T15:55:55.000Z | 2019-05-19T20:29:13.000Z | MainBrain/src/Controller/PedalController/PedalController.hpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 3 | 2018-03-10T20:01:10.000Z | 2019-06-07T18:02:38.000Z | /** Pedal controller class
*
* #include "PedalController.hpp"
* Created 1-17-17 By: Smitty
*
* A longer description.
*/
#ifndef PEDALCONTROLLER_HPP
#define PEDALCONTROLLER_HPP
#include "../BaseController/BaseController.hpp"
#include "../../Model/BrakePedal/BrakePedal.hpp"
#include "../../Model/GasPedal/GasPeda... | 21.403509 | 53 | 0.712295 | smit-happens |
b29f50cec798d9e35137fa912fd609f123bb0abc | 2,051 | hpp | C++ | extras/unisparks/renderers/opengl.hpp | azov/unisparks | 5bf9adb5ef7bf6ac7bea3aaf2a75d3b124594b7e | [
"Apache-2.0"
] | null | null | null | extras/unisparks/renderers/opengl.hpp | azov/unisparks | 5bf9adb5ef7bf6ac7bea3aaf2a75d3b124594b7e | [
"Apache-2.0"
] | null | null | null | extras/unisparks/renderers/opengl.hpp | azov/unisparks | 5bf9adb5ef7bf6ac7bea3aaf2a75d3b124594b7e | [
"Apache-2.0"
] | null | null | null | #ifndef UNISPARKS_RENDERERS_OPENGL_H
#define UNISPARKS_RENDERERS_OPENGL_H
#include <GLFW/glfw3.h>
#include <math.h>
namespace unisparks {
class GLRenderer : public Renderer {
public:
GLRenderer(double vpl, double vpt, double vpw, double vph, const Layout& l) :
viewportLeft(vpl),
viewportTop(vpt),
view... | 29.3 | 115 | 0.598732 | azov |
b2a0ebb3cff42f3c1e3fc704485a8dd09aee6995 | 2,740 | cpp | C++ | __generated_reflection__/Editor/ImGUI/EditorWindows/AssetBrowserWindow.Generated.cpp | MisterVento3/SteelEngine | 403511b53b6575eb869b4ccfbda18514f0838e8d | [
"MIT"
] | 3 | 2017-05-10T10:58:17.000Z | 2018-10-30T09:50:26.000Z | __generated_reflection__/Editor/ImGUI/EditorWindows/AssetBrowserWindow.Generated.cpp | mVento3/SteelEngine | 403511b53b6575eb869b4ccfbda18514f0838e8d | [
"MIT"
] | 3 | 2017-05-09T21:17:09.000Z | 2020-02-24T14:46:22.000Z | __generated_reflection__/Editor/ImGUI/EditorWindows/AssetBrowserWindow.Generated.cpp | mVento3/SteelEngine | 403511b53b6575eb869b4ccfbda18514f0838e8d | [
"MIT"
] | null | null | null | #include "HotReloader/IRuntimeObject.h"
#include "RuntimeReflection/ReflectionRecorder.h"
#include "Editor/ImGUI/EditorWindows/AssetBrowserWindow.h"
#include "Editor/ImGUI/EditorWindows/AssetBrowserWindow.Generated.h"
namespace SteelEngine {
REGISTER_REFLECTION
{
SteelEngine::ReflectionRecorder::Register<AssetBrowserW... | 39.142857 | 130 | 0.842701 | MisterVento3 |
b2a580e172069a55cb3b750b2e00a826a13da69d | 2,880 | cpp | C++ | code/gpumorph/src/main.cpp | liaojing/Image-Morphing | 5a093965e4d9016eac58acbe25ffd77ba56a0ca2 | [
"MIT"
] | 109 | 2015-01-04T09:03:27.000Z | 2022-03-28T07:45:51.000Z | code/gpumorph/src/main.cpp | liaojing/Image-Morphing | 5a093965e4d9016eac58acbe25ffd77ba56a0ca2 | [
"MIT"
] | 1 | 2015-07-22T05:55:45.000Z | 2016-01-20T07:28:11.000Z | code/gpumorph/src/main.cpp | liaojing/Image-Morphing | 5a093965e4d9016eac58acbe25ffd77ba56a0ca2 | [
"MIT"
] | 45 | 2015-01-24T09:09:02.000Z | 2021-08-11T12:40:09.000Z | #include <sstream>
#include <iostream>
#include <util/timer.h>
#include <util/image_ops.h>
#include <cstdio>
#include "imgio.h"
#include "config.h"
#include "pyramid.h"
#include "morph.h"
#include "param_io.h"
#include "parameters.h"
#if CUDA_SM < 20
# include <util/cuPrintf.cuh>
#endif
struct callback_data
{
ca... | 22.325581 | 87 | 0.560417 | liaojing |
b2b78457d3b4290b9942f73097cc941304e78527 | 1,094 | cpp | C++ | nodecpp/src/obnnode_ext_stdmsg.cpp | sduerr85/OpenBuildNet | 126feb4d17558e7bfe1e2e6f081bbfbf1514496f | [
"MIT"
] | null | null | null | nodecpp/src/obnnode_ext_stdmsg.cpp | sduerr85/OpenBuildNet | 126feb4d17558e7bfe1e2e6f081bbfbf1514496f | [
"MIT"
] | null | null | null | nodecpp/src/obnnode_ext_stdmsg.cpp | sduerr85/OpenBuildNet | 126feb4d17558e7bfe1e2e6f081bbfbf1514496f | [
"MIT"
] | null | null | null | /* -*- mode: C++; indent-tabs-mode: nil; -*- */
/** \file obnsim_ext_stdmsg.cpp
* \brief Definitions of standard messages (errors, warnings,...) used in the external interface.
*
* This file is typically used by external interfaces in other languages (e.g., Matlab, Python).
* Requires MQTT.
*
* This file is part ... | 49.727273 | 129 | 0.741316 | sduerr85 |
b2c2996494af84b06040d8ea3d920934608de456 | 2,810 | cpp | C++ | topcoder/srm/src/SRM617/SlimeXSlimonadeTycoon.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | topcoder/srm/src/SRM617/SlimeXSlimonadeTycoon.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | topcoder/srm/src/SRM617/SlimeXSlimonadeTycoon.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
class SlimeXSlimonadeTycoon {
public:
int sell(vector <int> morning, vector <int> customers, int stale_limi... | 54.038462 | 309 | 0.585053 | Johniel |
b2c428b0a16869a861b1879e367c77060b8d3897 | 444 | cpp | C++ | AtCoder/AtCoder Beginner Contest 189/D.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AtCoder/AtCoder Beginner Contest 189/D.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AtCoder/AtCoder Beginner Contest 189/D.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://atcoder.jp/contests/abc189/tasks/abc189_d
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
ll mod = 1e9 + 7;
int main ()
{
ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
ll n, cnt = 1;
string s;
cin >> n;
... | 18.5 | 61 | 0.542793 | MaGnsio |
b2c607282d131b80a5703c019514ff9a2bfeefcb | 2,106 | cpp | C++ | impl/jamtemplate/common/tilemap/node_layer.cpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | impl/jamtemplate/common/tilemap/node_layer.cpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | impl/jamtemplate/common/tilemap/node_layer.cpp | runvs/Alakajam14 | 28ad5839dae9d26782f22f7d18e2dff42f4c0d1f | [
"CC0-1.0"
] | null | null | null | #include "node_layer.hpp"
#include "pathfinder/node.hpp"
#include <utility>
namespace jt {
namespace tilemap {
NodeLayer::NodeLayer(std::vector<std::shared_ptr<TileNode>> nodeTiles)
: m_nodeTiles { std::move(nodeTiles) }
{
createNodeConnections();
}
void NodeLayer::createNodeConnections()
{
for (auto& t ... | 28.849315 | 99 | 0.519468 | runvs |
b2c90547cf190c0db249c5a260a7ba59ceacbb42 | 4,726 | hpp | C++ | wz4/wz4frlib/wz3_bitmap_code.hpp | wzman/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 47 | 2015-03-22T05:58:47.000Z | 2022-03-29T19:13:37.000Z | wz4/wz4frlib/wz3_bitmap_code.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | null | null | null | wz4/wz4frlib/wz3_bitmap_code.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 16 | 2015-12-31T08:13:18.000Z | 2021-03-09T02:07:30.000Z | /*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... | 33.28169 | 131 | 0.61532 | wzman |
b2cca8620e3bad22d014f032b517373e1244ae32 | 1,090 | hpp | C++ | LDMX_Detector/SeedFinderOptions.hpp | Pchatain/seedingWithEA | d4e64f102f48630b64444331932bf9bad8b156af | [
"Apache-2.0"
] | 1 | 2021-08-16T15:14:55.000Z | 2021-08-16T15:14:55.000Z | LDMX_Detector/SeedFinderOptions.hpp | Pchatain/seedingWithEA | d4e64f102f48630b64444331932bf9bad8b156af | [
"Apache-2.0"
] | null | null | null | LDMX_Detector/SeedFinderOptions.hpp | Pchatain/seedingWithEA | d4e64f102f48630b64444331932bf9bad8b156af | [
"Apache-2.0"
] | null | null | null | #include "Acts/LdmxEDM/LdmxSpacePoint.hpp"
#include "Acts/Seeding/Seedfinder.hpp"
#include "ActsExamples/TelescopeSeeding/TelescopeSeedingAlgorithm.hpp"
#include <Acts/Utilities/Logger.hpp>
#include <string>
#include <boost/program_options.hpp>
namespace ActsExamples {
namespace Options {
/// Add seed finder option... | 34.0625 | 76 | 0.80367 | Pchatain |
b2ccd6ff574d920be3e74f5369fe8bf0545dc1fb | 441 | cpp | C++ | Chef_and_Game_with_Sequence.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | Chef_and_Game_with_Sequence.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | Chef_and_Game_with_Sequence.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
ll t=1,n,i,j,k,l;
int main() {
ios::sync_with_stdio(0);
cin.tie(nullptr);
cin>>t;
while (t--) {
cin>>n;
ll a[n],countodd=0,counteven=0;
for(i=0;i<n;i++) {
cin>>a[i];
if(a[i]%2!=0) countodd++;
... | 20.045455 | 38 | 0.480726 | amit9amarwanshi |
b2ccffea4634e9696b497e44424207dcf77b9724 | 406 | cpp | C++ | #1132 Cut Integer.cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | 1 | 2021-12-26T08:34:47.000Z | 2021-12-26T08:34:47.000Z | #1132 Cut Integer.cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | null | null | null | #1132 Cut Integer.cpp | ZachVec/PAT-Advanced | 52ba5989c095ddbee3c297e82a4b3d0d2e0cd449 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
int main() {
size_t n;
if(!scanf("%zu", &n)) return 0;
char str[11];
for(size_t i = 0, a, b, number, len; i < n && scanf("%s", str) && (len = strlen(str)); ++i) {
number = atoi(str); b = atoi(str + len/2); str[len/2] = 0; a = atoi(str);
printf("%s... | 29 | 97 | 0.465517 | ZachVec |
b2d1a02ae62ed045846b27b6a44db42fc4ac1e04 | 4,413 | hpp | C++ | tests/unit/coherence/util/processor/ConditionalProcessorTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | tests/unit/coherence/util/processor/ConditionalProcessorTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | tests/unit/coherence/util/processor/ConditionalProcessorTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "cxxtest/TestSuite.h"
#include "mock/CommonMocks.hpp"
#include "coherence/lang.ns"
#include "coherence/util/InvocableMap.hpp"
#include... | 31.077465 | 78 | 0.581237 | chpatel3 |
b2dacaf78bcaf05c979ab4e273947afe80279b41 | 1,613 | cpp | C++ | Quarter 3/Week 1/wormsortlinear.cpp | nwatx/CS3-Independent-Study | 16b91d4e0503d10d825ae800c46ea9233cd5e066 | [
"MIT"
] | 1 | 2020-09-04T21:21:12.000Z | 2020-09-04T21:21:12.000Z | Quarter 3/Week 1/wormsortlinear.cpp | nwatx/CS3-Independent-Study | 16b91d4e0503d10d825ae800c46ea9233cd5e066 | [
"MIT"
] | null | null | null | Quarter 3/Week 1/wormsortlinear.cpp | nwatx/CS3-Independent-Study | 16b91d4e0503d10d825ae800c46ea9233cd5e066 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define vt vector
#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define FORE(i, a, b) for(int i = (a); i <= (b); i++)
#define F0R(i, a) for(int i = 0; i < (a); i++)
#define trav(a, x) for (auto& a : x)
void setIn(string s) { freopen(s.c_str(),"r",stdin); }
void se... | 20.948052 | 64 | 0.452573 | nwatx |
b2e0ad3f4befb1d12f9204f9cd5e4d637ae0bb66 | 3,199 | hpp | C++ | vts-libs/vts/basetypes3.hpp | melowntech/vts-libs | ffbf889b6603a8f95d3c12a2602232ff9c5d2236 | [
"BSD-2-Clause"
] | 2 | 2020-04-20T01:44:46.000Z | 2021-01-15T06:54:51.000Z | externals/browser/externals/browser/externals/vts-libs/vts-libs/vts/basetypes3.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 2 | 2020-01-29T16:30:49.000Z | 2020-06-03T15:21:29.000Z | externals/browser/externals/browser/externals/vts-libs/vts-libs/vts/basetypes3.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 1 | 2019-09-25T05:10:07.000Z | 2019-09-25T05:10:07.000Z | /**
* Copyright (c) 2017 Melown Technologies SE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... | 33.322917 | 78 | 0.698031 | melowntech |
b2e437d3ba221daeb9ebf1488c6d43d3ed3b0b60 | 2,722 | cpp | C++ | exp/Frontend/Token.cpp | bheinzelman/JITCalculator | 14e221394aa3582ea0b40b48f52d63f7e34e7d2b | [
"Apache-2.0"
] | null | null | null | exp/Frontend/Token.cpp | bheinzelman/JITCalculator | 14e221394aa3582ea0b40b48f52d63f7e34e7d2b | [
"Apache-2.0"
] | null | null | null | exp/Frontend/Token.cpp | bheinzelman/JITCalculator | 14e221394aa3582ea0b40b48f52d63f7e34e7d2b | [
"Apache-2.0"
] | null | null | null | // Token.cpp
#include "Token.hpp"
namespace jcToken {
int getOperatorPrecedence(TokenType op)
{
switch (op) {
case TokenType::Concat:
return 1;
case TokenType::Cons:
return 2;
case TokenType::QuestionMark:
return 3;
case TokenType::Less_Than:
case TokenType::Greater_Tha... | 23.465517 | 49 | 0.529023 | bheinzelman |
b2e59b56f601498a7af249ee26455022f9880061 | 3,642 | hpp | C++ | libraries/chain/include/deip/chain/schema/research_license_object.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 1 | 2021-08-16T12:44:43.000Z | 2021-08-16T12:44:43.000Z | libraries/chain/include/deip/chain/schema/research_license_object.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | null | null | null | libraries/chain/include/deip/chain/schema/research_license_object.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 2 | 2021-08-16T12:44:46.000Z | 2021-12-31T17:09:45.000Z | #pragma once
#include <fc/fixed_string.hpp>
#include <fc/shared_string.hpp>
#include <deip/protocol/authority.hpp>
#include <deip/protocol/deip_operations.hpp>
#include "deip_object_types.hpp"
#include <boost/multi_index/composite_key.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <numeric>
#include <... | 21.423529 | 100 | 0.668314 | DEIPworld |
b2e9a323df9be1b871c8a6f128a1fd304f5ea905 | 3,014 | cpp | C++ | QSynthesis/Frontend/Tabs/Tuning/Editor/Areas/NotesAreas/NotesArea_Const.cpp | SineStriker/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | 3 | 2021-12-08T05:30:52.000Z | 2021-12-18T10:46:49.000Z | QSynthesis/Frontend/Tabs/Tuning/Editor/Areas/NotesAreas/NotesArea_Const.cpp | QSynthesis/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | null | null | null | QSynthesis/Frontend/Tabs/Tuning/Editor/Areas/NotesAreas/NotesArea_Const.cpp | QSynthesis/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | null | null | null | #include "../../../TuningGroup.h"
#include "../NotesArea.h"
double NotesArea::zeroLine() const {
return m_ptrs->currentWidth * 4;
}
bool NotesArea::isAvailableToPaste() const {
if (m_notesEnabled) {
return true;
} else {
return !qDragOut.selectedNotes.isEmpty();
}
}
QList<QLinkNote> N... | 26.208696 | 99 | 0.577638 | SineStriker |
b2ea630e539d65c12658ae26e25fdf1c9475be68 | 3,844 | cpp | C++ | testing/Asm/testIfOperands.cpp | ponymalt3/sl_processor | a8875a4345e24577d0df930ea83ff20f11e41590 | [
"MIT"
] | null | null | null | testing/Asm/testIfOperands.cpp | ponymalt3/sl_processor | a8875a4345e24577d0df930ea83ff20f11e41590 | [
"MIT"
] | null | null | null | testing/Asm/testIfOperands.cpp | ponymalt3/sl_processor | a8875a4345e24577d0df930ea83ff20f11e41590 | [
"MIT"
] | null | null | null | #include "RTAsmTest.h"
#include <mtest.h>
class testIfOperands : public mtest::test
{
};
MTEST(testIfOperands,test_that_const_const_operand_works)
{
RTProg testCode=RTASM(
def x 4;
def y 4;
ok=5;
if(x == y)
ok=1;
else
ok=0;
end
);
RTProgTester tester(testCode);
EXPECT(te... | 21.355556 | 116 | 0.640739 | ponymalt3 |
b2ee3d2749ee7a082178a557eaa2db2777ffbc46 | 694 | cpp | C++ | src/io/GLFWHandler.cpp | kyle-piddington/GLFWEngine | 1839bb207eea81f73d239964d3b1494fdde052e9 | [
"MIT"
] | 2 | 2015-11-27T10:15:37.000Z | 2020-10-17T23:57:11.000Z | src/io/GLFWHandler.cpp | kyle-piddington/GLFWEngine | 1839bb207eea81f73d239964d3b1494fdde052e9 | [
"MIT"
] | null | null | null | src/io/GLFWHandler.cpp | kyle-piddington/GLFWEngine | 1839bb207eea81f73d239964d3b1494fdde052e9 | [
"MIT"
] | null | null | null | #include "GLFWHandler.h"
#include "Keyboard.h"
#include "Mouse.h"
void GLFWHandler::key_callback(GLFWwindow* window, int key, int scancode, int action, int mode)
{
if(key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
{
glfwSetWindowShouldClose(window, GL_TRUE);
}
Keyboard::setKeyStatus(key,action);
... | 23.931034 | 96 | 0.716138 | kyle-piddington |
b2f0bdd626898eabd0a170c9baa9dbe594e17127 | 2,567 | cpp | C++ | Source/options.cpp | gongshijun/pulsesim | e44324771816d7738ba38fb72ebb0365d2967a2d | [
"0BSD"
] | 3 | 2018-01-24T11:53:47.000Z | 2018-06-13T07:15:30.000Z | Source/options.cpp | gongshijun/pulsesim | e44324771816d7738ba38fb72ebb0365d2967a2d | [
"0BSD"
] | null | null | null | Source/options.cpp | gongshijun/pulsesim | e44324771816d7738ba38fb72ebb0365d2967a2d | [
"0BSD"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include "wintolinux.h"
#include <string.h>
#include "options.h"
#include "common.h"
#include "fileVariant.h"
/*
* This options package allows the user to specify the name, description,
* location, and default values of program option variables. In addition,
* two built in o... | 26.193878 | 78 | 0.562135 | gongshijun |
b2f5c2b9d5dd17c9d43e6b4d6d7b376c2aaa3f08 | 2,384 | cpp | C++ | ccc/08S3.cpp | JohnstonLiu/cp12 | 516e9285196af58e46b0220dec7d233cb8a4c7a8 | [
"MIT"
] | null | null | null | ccc/08S3.cpp | JohnstonLiu/cp12 | 516e9285196af58e46b0220dec7d233cb8a4c7a8 | [
"MIT"
] | null | null | null | ccc/08S3.cpp | JohnstonLiu/cp12 | 516e9285196af58e46b0220dec7d233cb8a4c7a8 | [
"MIT"
] | 1 | 2021-03-05T21:44:53.000Z | 2021-03-05T21:44:53.000Z | #include <bits/stdc++.h>
using namespace std;
char** city;
int BFS(int r, int c) {
int maxC=c; int maxR=r;
if(city[maxR-1][maxC-1]=='*') {
return -1;
}
queue<int> q; bool visited[r][c]; int distance[r][c];
for(int i=0; i<r; ++i) {
for(int j=0; j<c; ++j) {
visited[i][j]=... | 27.090909 | 62 | 0.326342 | JohnstonLiu |
b2f9e9e03a69ccecaa7ac1e771aea1bfdcfd1241 | 2,693 | cpp | C++ | JaCoAP/JaCoAPCore/code/src/NetIOMgr.cpp | PrabhuSammandam/JaCoAP | a4dc8cfe4b446ffbe687abdd5f21f3c5e2240a7c | [
"Apache-2.0"
] | 1 | 2017-07-06T14:12:23.000Z | 2017-07-06T14:12:23.000Z | JaCoAP/JaCoAPCore/code/src/NetIOMgr.cpp | PrabhuSammandam/JaCoAP | a4dc8cfe4b446ffbe687abdd5f21f3c5e2240a7c | [
"Apache-2.0"
] | null | null | null | JaCoAP/JaCoAPCore/code/src/NetIOMgr.cpp | PrabhuSammandam/JaCoAP | a4dc8cfe4b446ffbe687abdd5f21f3c5e2240a7c | [
"Apache-2.0"
] | null | null | null | #include <ByteArray.h>
#include <DataChannel.h>
#include <IpSocketAddr.h>
#include <MsgCodec.h>
#include <NetIOMgr.h>
namespace JaCoAP
{
ByteArray _gs_outgoingByteArray( JA_COAP_CONFIG_MAX_OUT_PACKET_SIZE );
NetIO::NetIO ()
{
_outPacket.SetByteArray( &_gs_outgoingByteArray );
}
void NetIO::Init() const
{
}
ErrCo... | 24.044643 | 88 | 0.611214 | PrabhuSammandam |
b2fb1f9aa3a8b3edc486a05a13e281ef32fe59c3 | 3,190 | cpp | C++ | src/SceneGraph/Vulkan/VKRenderableInstance.cpp | hyzboy/ULRE | dcda5b0facb118f10347922ac5dd4a797f03d1d0 | [
"MIT"
] | 21 | 2018-12-07T08:49:44.000Z | 2022-03-26T17:26:06.000Z | src/SceneGraph/Vulkan/VKRenderableInstance.cpp | hyzboy/ULRE | dcda5b0facb118f10347922ac5dd4a797f03d1d0 | [
"MIT"
] | 1 | 2019-04-25T12:30:50.000Z | 2019-04-25T12:30:50.000Z | src/SceneGraph/Vulkan/VKRenderableInstance.cpp | hyzboy/ULRE | dcda5b0facb118f10347922ac5dd4a797f03d1d0 | [
"MIT"
] | 6 | 2019-04-12T09:21:59.000Z | 2021-03-01T13:13:10.000Z | #include<hgl/graph/VKRenderableInstance.h>
#include<hgl/graph/VKMaterialInstance.h>
#include<hgl/graph/VKMaterialParameters.h>
#include<hgl/graph/VKMaterial.h>
#include<hgl/graph/VKVertexAttribBuffer.h>
#include<hgl/util/hash/Hash.h>
VK_NAMESPACE_BEGIN
using namespace util;
RenderableInstance::RenderableInstance(Ren... | 29.537037 | 137 | 0.622571 | hyzboy |
b2fd64fc2a02974cb44d947d35be02a19ee4c2cd | 12,842 | cpp | C++ | c/microratchettests/aesctr.cpp | cilliemalan/MicroRatchet | 96f814e7de34eb515099be0b89dc8ca3e27d7e75 | [
"MIT"
] | null | null | null | c/microratchettests/aesctr.cpp | cilliemalan/MicroRatchet | 96f814e7de34eb515099be0b89dc8ca3e27d7e75 | [
"MIT"
] | null | null | null | c/microratchettests/aesctr.cpp | cilliemalan/MicroRatchet | 96f814e7de34eb515099be0b89dc8ca3e27d7e75 | [
"MIT"
] | null | null | null | #include "pch.h"
#include <microratchet.h>
#include <internal.h>
#include "support.h"
static mr_config _cfg{ true };
TEST(AesCtr, Init256) {
const uint8_t key[]{
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x0... | 32.185464 | 192 | 0.669366 | cilliemalan |
b2fe55a9f67d26948c600faa22a82626917e2cde | 27,679 | cpp | C++ | Game/TextureAtlas.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 44 | 2018-07-08T16:44:53.000Z | 2022-02-06T14:07:30.000Z | Game/TextureAtlas.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 31 | 2019-03-24T16:00:38.000Z | 2022-02-24T20:23:18.000Z | Game/TextureAtlas.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 24 | 2018-11-08T21:58:53.000Z | 2022-01-12T12:04:42.000Z | /***************************************************************************************
* Original Author: Gabriele Giuseppini
* Created: 2018-10-21
* Copyright: Gabriele Giuseppini (https://github.com/GabrieleGiuseppini)
*******************************************************************... | 37.103217 | 186 | 0.657647 | sjohal21 |
b2ff3529c56aed13c35d310e8339ff46642c2683 | 13,167 | cpp | C++ | rasteroperations/filter/timesat_nrs.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | rasteroperations/filter/timesat_nrs.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | rasteroperations/filter/timesat_nrs.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | #include <functional>
#include <future>
#include <algorithm>
#include <cmath>
#include <vector>
#include "kernel.h"
#include "factory.h"
#include "abstractfactory.h"
#include "tranquilizerfactory.h"
#include "raster.h"
#include "symboltable.h"
#include "ilwisoperation.h"
#include "ilwiscontext.h"
#include ... | 41.018692 | 154 | 0.578416 | ridoo |
65034164df4071f22482c81b5c79370f78393b0c | 885 | cpp | C++ | src/Color.cpp | ianmurfinxyz/software_renderer | 1feef4754509d99013dc4bbe51006d858bc27561 | [
"Unlicense"
] | null | null | null | src/Color.cpp | ianmurfinxyz/software_renderer | 1feef4754509d99013dc4bbe51006d858bc27561 | [
"Unlicense"
] | null | null | null | src/Color.cpp | ianmurfinxyz/software_renderer | 1feef4754509d99013dc4bbe51006d858bc27561 | [
"Unlicense"
] | null | null | null | #include <SDL2/SDL.h>
#include "Color.h"
using namespace gr;
Color::Color(Uint8 r, Uint8 g, Uint8 b, Uint8 a){
this->rgba[0] = r;
this->rgba[1] = g;
this->rgba[2] = b;
this->rgba[3] = a;
}
void Color::setR(Uint8 r){
this->rgba[0] = r;
}
void Color::setG(Uint8 g){
this->rgba[1] = g;
}
void C... | 17.352941 | 53 | 0.532203 | ianmurfinxyz |
65058c039f65009df8d692d3317d2373d7718d74 | 2,235 | cpp | C++ | Queue/Rainfall_using_circular_linked_list.cpp | PreethiSamanthaBennet/Cpp_TheDataStructuresSurvivalKit | f8657cc0c3fc5056d4c003ba7ebcce2e1a7d99a6 | [
"BSD-3-Clause"
] | 3 | 2021-05-21T17:24:18.000Z | 2021-08-11T19:34:38.000Z | Queue/Rainfall_using_circular_linked_list.cpp | PreethiSamanthaBennet/Cpp_TheDataStructuresSurvivalKit | f8657cc0c3fc5056d4c003ba7ebcce2e1a7d99a6 | [
"BSD-3-Clause"
] | null | null | null | Queue/Rainfall_using_circular_linked_list.cpp | PreethiSamanthaBennet/Cpp_TheDataStructuresSurvivalKit | f8657cc0c3fc5056d4c003ba7ebcce2e1a7d99a6 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <string.h>
using namespace std;
float count = 0.0;
float rain = 0.0;
struct queue{
char month[12];
int rainfall;
int temp;
};
queue cqueue[5];
int front = -1, rear = -1, n = 5;
void insertCQ(char month[],int rainfall,int temp){
if(front ==(rear + 1)%n){
cout<<"Queue overflow"<... | 19.434783 | 115 | 0.514094 | PreethiSamanthaBennet |
650668d4d3d195687ddc4832d648ca3f2e1f2f76 | 18,796 | hpp | C++ | viennagrid/meta/typemap.hpp | viennagrid/viennagrid-dev | 6e47c8d098a0b691d6b9988f2444cd11d440f4c2 | [
"MIT"
] | 7 | 2015-09-13T03:50:58.000Z | 2019-06-27T14:24:49.000Z | viennagrid/meta/typemap.hpp | viennagrid/viennagrid-dev | 6e47c8d098a0b691d6b9988f2444cd11d440f4c2 | [
"MIT"
] | null | null | null | viennagrid/meta/typemap.hpp | viennagrid/viennagrid-dev | 6e47c8d098a0b691d6b9988f2444cd11d440f4c2 | [
"MIT"
] | 5 | 2015-07-03T07:14:15.000Z | 2021-05-20T00:51:58.000Z | #ifndef VIENNAGRID_META_TYPEMAP_HPP
#define VIENNAGRID_META_TYPEMAP_HPP
/* =======================================================================
Copyright (c) 2011-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien... | 39.158333 | 169 | 0.647851 | viennagrid |
650e5a1113746f8e8839cf82b06de36e89a3d3d3 | 31,889 | cc | C++ | castalia/src/node/communication/mac/MacPacket_m.cc | qwertyh26/wisemnet | 1d8269d141be255642ca36dbff8b594892085685 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 6 | 2017-12-07T05:33:01.000Z | 2021-02-20T21:15:48.000Z | castalia/src/node/communication/mac/MacPacket_m.cc | MultiCameraNetworks/wisemnet | 1d8269d141be255642ca36dbff8b594892085685 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | castalia/src/node/communication/mac/MacPacket_m.cc | MultiCameraNetworks/wisemnet | 1d8269d141be255642ca36dbff8b594892085685 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 4 | 2018-09-17T14:01:11.000Z | 2020-05-28T15:47:01.000Z | //
// Generated file, do not edit! Created by nedtool 5.0 from castalia/src/node/communication/mac/MacPacket.msg.
//
// Disable warnings about unused variables, empty switch stmts, etc:
#ifdef _MSC_VER
# pragma warning(disable:4101)
# pragma warning(disable:4065)
#endif
#include <iostream>
#include <sstream>
#inclu... | 33.079876 | 138 | 0.693562 | qwertyh26 |
650f9158e45185ea51a2c002b286fe07b5dc845b | 4,298 | hpp | C++ | Source/Core/Scene/Components/Camera.hpp | Filippo-BSW/AdHoc | 2559fa6f563283af24ae1da26b4b9164c8206503 | [
"MIT"
] | null | null | null | Source/Core/Scene/Components/Camera.hpp | Filippo-BSW/AdHoc | 2559fa6f563283af24ae1da26b4b9164c8206503 | [
"MIT"
] | null | null | null | Source/Core/Scene/Components/Camera.hpp | Filippo-BSW/AdHoc | 2559fa6f563283af24ae1da26b4b9164c8206503 | [
"MIT"
] | null | null | null | // *********************************************************************************
// MIT License
//
// Copyright (c) 2021 Filippo-BSW
//
// 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 ... | 36.423729 | 102 | 0.594463 | Filippo-BSW |
65166105a304e69776fc1f86c73e5d7b793fa078 | 1,382 | hpp | C++ | vren/vren/pipeline/imgui_renderer.hpp | loryruta/vren | 0d5a7ee61b7e42f17451293b32d26f4958d8ffa5 | [
"MIT"
] | 1 | 2022-02-07T14:22:02.000Z | 2022-02-07T14:22:02.000Z | vren/vren/pipeline/imgui_renderer.hpp | loryruta/vren | 0d5a7ee61b7e42f17451293b32d26f4958d8ffa5 | [
"MIT"
] | null | null | null | vren/vren/pipeline/imgui_renderer.hpp | loryruta/vren | 0d5a7ee61b7e42f17451293b32d26f4958d8ffa5 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <functional>
#include "base/resource_container.hpp"
#include "render_target.hpp"
#include "render_graph.hpp"
#include "gpu_repr.hpp"
namespace vren
{
// Forward decl
class context;
// -----------------------------------------------------------------------------------------... | 23.033333 | 132 | 0.693922 | loryruta |
6517bf34007b331fc5068886ccc565dee125bcee | 466 | hpp | C++ | CKGfx/Material.hpp | samkusin/overview | affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1 | [
"MIT"
] | null | null | null | CKGfx/Material.hpp | samkusin/overview | affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1 | [
"MIT"
] | null | null | null | CKGfx/Material.hpp | samkusin/overview | affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1 | [
"MIT"
] | null | null | null | //
// Material.hpp
//
// Created by Samir Sinha on 9/25/15.
//
//
#ifndef CK_Graphics_Material_hpp
#define CK_Graphics_Material_hpp
#include "GfxTypes.hpp"
namespace cinek {
namespace gfx {
struct Material
{
TextureHandle diffuseTex;
Color4 diffuseColor;
Color4 specularColor; ... | 15.032258 | 60 | 0.652361 | samkusin |
65199a959e8e1de1eee23b090478077f5e3b76e2 | 165,991 | cpp | C++ | src/interpreter.cpp | AggroBird/propane | 83134d11f6a90798db8937761ab707d95c520f1b | [
"MIT"
] | 3 | 2021-02-28T12:52:43.000Z | 2021-12-31T00:12:48.000Z | src/interpreter.cpp | AggroBird/propane | 83134d11f6a90798db8937761ab707d95c520f1b | [
"MIT"
] | null | null | null | src/interpreter.cpp | AggroBird/propane | 83134d11f6a90798db8937761ab707d95c520f1b | [
"MIT"
] | null | null | null | #include "assembly_data.hpp"
#include "database.hpp"
#include "errors.hpp"
#include "library.hpp"
#include <cmath>
#define VALIDATE(errc, expr, ...) ENSURE(errc, expr, propane::runtime_exception, __VA_ARGS__)
#define VALIDATE_ASSEMBLY(expr) VALIDATE(ERRC::RTM_INVALID_ASSEMBLY, expr, \
"Attempted to execute an in... | 68.56299 | 142 | 0.595773 | AggroBird |
fb973835ce80c789f5bce470235a21de5787c8e7 | 7,025 | cpp | C++ | src/models/expressions/PlnAddOperation.cpp | tosyama/palan | ed809a26511366825cd0d7848b4444dcf8f09b1a | [
"MIT"
] | 32 | 2017-10-25T21:02:45.000Z | 2022-02-07T05:53:37.000Z | src/models/expressions/PlnAddOperation.cpp | tosyama/palan | ed809a26511366825cd0d7848b4444dcf8f09b1a | [
"MIT"
] | 39 | 2018-07-29T00:55:36.000Z | 2021-12-22T05:10:48.000Z | src/models/expressions/PlnAddOperation.cpp | tosyama/palan | ed809a26511366825cd0d7848b4444dcf8f09b1a | [
"MIT"
] | 1 | 2019-07-10T05:44:50.000Z | 2019-07-10T05:44:50.000Z | /// Add operation model class definition.
///
/// PlnAddOperation calculate addition and subtraction.
/// e.g.) a + b / a - b
///
/// @file PlnAddOperation.cpp
/// @copyright 2017-2021 YAMAGUCHI Toshinobu
#include <boost/assert.hpp>
#include <algorithm>
#include "../../PlnConstants.h"
#include "PlnAddOperation.h"
#i... | 23.261589 | 102 | 0.631886 | tosyama |
fb9d29aadb13bd1dc27260fbf18844227fe51a42 | 6,164 | cpp | C++ | src/dpp/guild.cpp | DragonDev15/DPP | 633bc18f336c07eda1c7de186f4d5d0744cf1acd | [
"Apache-2.0"
] | null | null | null | src/dpp/guild.cpp | DragonDev15/DPP | 633bc18f336c07eda1c7de186f4d5d0744cf1acd | [
"Apache-2.0"
] | null | null | null | src/dpp/guild.cpp | DragonDev15/DPP | 633bc18f336c07eda1c7de186f4d5d0744cf1acd | [
"Apache-2.0"
] | null | null | null | #include <dpp/discord.h>
#include <dpp/discordevents.h>
#include <dpp/stringops.h>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
std::map<std::string, dpp::guild_flags> featuremap = {
{"INVITE_SPLASH", dpp::g_invite_splash },
{"VIP_REGIONS", dpp::g_vip_regions },
{"VANITY_URL", dpp::g_vanity_url },
{"... | 27.154185 | 88 | 0.695165 | DragonDev15 |
fb9f7d7035cc6efed77354d9b845b3f37ffd805b | 625 | cpp | C++ | Zombie/src/Standby.cpp | Leo310/Botnet | 80b26809b2d213a7c8254a9e6c7460415c98e027 | [
"MIT"
] | 6 | 2020-06-21T12:06:17.000Z | 2021-09-09T12:37:02.000Z | Zombie/src/Standby.cpp | Leo310/Botnet | 80b26809b2d213a7c8254a9e6c7460415c98e027 | [
"MIT"
] | 17 | 2020-06-19T23:21:20.000Z | 2020-09-04T14:14:45.000Z | Zombie/src/Standby.cpp | Leo310/Botnet | 80b26809b2d213a7c8254a9e6c7460415c98e027 | [
"MIT"
] | 2 | 2020-09-04T00:51:42.000Z | 2021-09-09T12:37:03.000Z | #include "Standby.h"
extern std::string rcvMsg;
State* Standby::update()
{
State* state = this;
if (!rcvMsg.empty())
{
m_SrvMsg = rcvMsg.c_str();
if (m_SrvMsg[COMMAND_INDEX] == CCHANGESTATE)
{
if(m_SrvMsg[STATE_INDEX] == STANDBY)
std::cout << "Already in Standby" << std::endl;
else if (m_SrvMsg[STA... | 17.361111 | 51 | 0.6144 | Leo310 |
fbb07f01bb3f671a34e8acc1d0e6438a4b65932d | 857 | hpp | C++ | src/lib/compile_state.hpp | cuttle-system/cuttle-fileui | f0444501be19352c4734a8c1b2f301c4e17d71ac | [
"MIT"
] | null | null | null | src/lib/compile_state.hpp | cuttle-system/cuttle-fileui | f0444501be19352c4734a8c1b2f301c4e17d71ac | [
"MIT"
] | null | null | null | src/lib/compile_state.hpp | cuttle-system/cuttle-fileui | f0444501be19352c4734a8c1b2f301c4e17d71ac | [
"MIT"
] | null | null | null | #pragma once
#include <list>
#include <unordered_map>
#include <boost/filesystem.hpp>
#include "language.hpp"
#include "vm_context.hpp"
#include "tokenizer_config.hpp"
#include "generator_config.hpp"
#include "call_tree.hpp"
#include "token.hpp"
namespace cuttle {
namespace fileui {
struct compile_state_t... | 34.28 | 89 | 0.697783 | cuttle-system |
fbb45eb27722993d9c4ca198d180a3f6e888dfef | 707 | cpp | C++ | src/plugins/poshuku/plugins/onlinebookmarks/pluginmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/poshuku/plugins/onlinebookmarks/pluginmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/poshuku/plugins/onlinebookmarks/pluginmanager.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2010-2011 Oleg Linkin
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 22.806452 | 83 | 0.591231 | Maledictus |
fbbb197f3b2ab592cd5e8ac02c817fb4f4474e3f | 5,614 | hpp | C++ | src/native/cpp/include/cli/constants.hpp | nahudalla/TPFinalAyDAII | 6d5f808f4aadbfa29923df1ca95abef017011d7b | [
"MIT"
] | null | null | null | src/native/cpp/include/cli/constants.hpp | nahudalla/TPFinalAyDAII | 6d5f808f4aadbfa29923df1ca95abef017011d7b | [
"MIT"
] | null | null | null | src/native/cpp/include/cli/constants.hpp | nahudalla/TPFinalAyDAII | 6d5f808f4aadbfa29923df1ca95abef017011d7b | [
"MIT"
] | null | null | null | #ifndef TPFINALAYDAI_CONSTANTS_HPP
#define TPFINALAYDAI_CONSTANTS_HPP
#include <string>
#include <algor/ClosestPairOfPoints.hpp>
#include <algor/AnySegmentsIntersect.hpp>
#include <algor/GrahamScan.hpp>
#include <algor/JarvisMarch.hpp>
#define TCONST_NON_STATIC constexpr const char *
#define TCONST static constexpr ... | 33.819277 | 129 | 0.63591 | nahudalla |
fbc4a214e1df9822a009ef26bf1e5be0be666ab0 | 144 | hpp | C++ | libraries/vendor/mira/include/mira/database_configuration.hpp | arafat877/koinos-chain | 3773eaf326be5fcab271b1a411a8eb5282ed2b28 | [
"MIT"
] | 1 | 2021-04-27T19:48:51.000Z | 2021-04-27T19:48:51.000Z | libraries/vendor/mira/include/mira/database_configuration.hpp | arafat877/koinos-chain | 3773eaf326be5fcab271b1a411a8eb5282ed2b28 | [
"MIT"
] | null | null | null | libraries/vendor/mira/include/mira/database_configuration.hpp | arafat877/koinos-chain | 3773eaf326be5fcab271b1a411a8eb5282ed2b28 | [
"MIT"
] | null | null | null | #pragma once
#include <nlohmann/json.hpp>
namespace mira::utilities {
nlohmann::json default_database_configuration();
} // mira::utilities
| 14.4 | 48 | 0.756944 | arafat877 |
fbc515d2c7e73e81eda3444034d38a1f6c47b729 | 983 | hpp | C++ | includes/metaballs/mathlib.hpp | devdor/GLDevdor04 | 1c3c83b7a3d629e59a370519ceff10b13889ea48 | [
"MIT"
] | null | null | null | includes/metaballs/mathlib.hpp | devdor/GLDevdor04 | 1c3c83b7a3d629e59a370519ceff10b13889ea48 | [
"MIT"
] | null | null | null | includes/metaballs/mathlib.hpp | devdor/GLDevdor04 | 1c3c83b7a3d629e59a370519ceff10b13889ea48 | [
"MIT"
] | null | null | null | #ifndef MATH_LIB_HPP
#define MATH_LIB_HPP
#include <glm/glm.hpp>
class CMathLib
{
public:
static float CarreNorme(glm::vec3 v)
{
return v.x*v.x + v.y*v.y + v.z*v.z;
};
void ReduceToUnit(float vector[3])
{
float length;
length = (float)sqrt((vector[0] * vector[0]) + (vector[1] * vector[1]... | 19.66 | 101 | 0.493388 | devdor |
fbc531a61cbe582a9ace4eab0840b90a18301fcf | 8,750 | cpp | C++ | src/metric/schwarzschild.cpp | evopen/blackness | d0187d17d5fee01a754fd3bc19353a53caacc1b0 | [
"MIT"
] | 2 | 2020-04-26T12:35:30.000Z | 2021-07-27T06:50:59.000Z | src/metric/schwarzschild.cpp | evopen/blackness | d0187d17d5fee01a754fd3bc19353a53caacc1b0 | [
"MIT"
] | 5 | 2020-04-27T00:28:17.000Z | 2020-04-27T17:56:50.000Z | src/metric/schwarzschild.cpp | evopen/blackness | d0187d17d5fee01a754fd3bc19353a53caacc1b0 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "common.h"
#include "schwarzschild.h"
#include "util.h"
namespace metric::schwarzschild
{
double GetCosAngle(glm::dvec3 v1, glm::dvec3 v2) { return dot(v1, v2) / (length(v1) * length(v2)); }
double CalculateImpactParameter(double theta, double r) { return r * std::sin(theta)... | 43.316832 | 121 | 0.490057 | evopen |
fbd0bc0ee051a3f920c8605c49fe52963d072f35 | 287 | hpp | C++ | rules_dll/main.hpp | Jim-Marsden/game_of_life | 650d270e73c37f90dc09aad9764b8e1b90ce27fc | [
"Apache-2.0"
] | null | null | null | rules_dll/main.hpp | Jim-Marsden/game_of_life | 650d270e73c37f90dc09aad9764b8e1b90ce27fc | [
"Apache-2.0"
] | null | null | null | rules_dll/main.hpp | Jim-Marsden/game_of_life | 650d270e73c37f90dc09aad9764b8e1b90ce27fc | [
"Apache-2.0"
] | null | null | null | //
// Created by james on 9/19/2021.
//
#ifndef GAME_OF_LIFE_MAIN_H
#define GAME_OF_LIFE_MAIN_H
#include <vector>
namespace bol::rules::test{
void test_print();
std::vector<std::vector<char>> update_rules(std::vector<std::vector<char>> rules);
}
#endif //GAME_OF_LIFE_MAIN_H
| 17.9375 | 86 | 0.71777 | Jim-Marsden |
fbd28c08a5fd47cb7bb429a9aa9879c1b9c2e770 | 983 | cpp | C++ | src_smartcontract/engine/sc_analyze_functions/VTableRegistory.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_smartcontract/engine/sc_analyze_functions/VTableRegistory.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_smartcontract/engine/sc_analyze_functions/VTableRegistory.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* VTableRegistory.cpp
*
* Created on: 2019/11/26
* Author: iizuka
*/
#include "engine/sc_analyze_functions/VTableRegistory.h"
#include "engine/sc_analyze_functions/VTableClassEntry.h"
#include "engine/sc_analyze/AnalyzedClass.h"
#include "base/UnicodeString.h"
#include "base/Iterator.h"
#include "base... | 21.369565 | 108 | 0.730417 | alinous-core |
fbdb26327c9f8588e0977e9a367e4a52d540519a | 26 | cpp | C++ | src/base/Sprite.cpp | EdFil/Pathtracer | 57c0a17dd998fa8520a3d8f4f8142afd77d48350 | [
"Unlicense"
] | null | null | null | src/base/Sprite.cpp | EdFil/Pathtracer | 57c0a17dd998fa8520a3d8f4f8142afd77d48350 | [
"Unlicense"
] | null | null | null | src/base/Sprite.cpp | EdFil/Pathtracer | 57c0a17dd998fa8520a3d8f4f8142afd77d48350 | [
"Unlicense"
] | null | null | null | #include "base/Sprite.hpp" | 26 | 26 | 0.769231 | EdFil |
fbde97b9c72fd3d8a4a7f08aae161001b78b036e | 7,618 | cpp | C++ | mr_rqt/src/mr_rqt/MrRqt.cpp | cogniteam/mr_teleoperator | c8a1e8c773bf1e8b74632ec42512e9ca1a5b3bbd | [
"MIT"
] | 2 | 2016-11-08T01:50:33.000Z | 2019-06-29T18:20:09.000Z | mr_rqt/src/mr_rqt/MrRqt.cpp | cogniteam/mr_teleoperator | c8a1e8c773bf1e8b74632ec42512e9ca1a5b3bbd | [
"MIT"
] | 4 | 2015-06-24T00:18:55.000Z | 2016-06-28T22:19:58.000Z | mr_rqt/src/mr_rqt/MrRqt.cpp | cogniteam/mr_teleoperator | c8a1e8c773bf1e8b74632ec42512e9ca1a5b3bbd | [
"MIT"
] | 5 | 2015-07-07T15:09:17.000Z | 2020-05-13T17:27:24.000Z | /*
* MrmRqt.cpp
*
* Created on: Nov 14, 2013
* Author: blackpc
*/
#include <mr_rqt/MrRqt.h>
namespace mr_rqt
{
MrRqt::MrRqt()
: _outputReady(false), _widget(NULL), _velocityWidget(NULL), _spinThread(boost::bind(&MrRqt::spin, this))
{
// _setInputPublisher = _node.advertise<std_msgs::Int32>("/velocity_di... | 28.319703 | 147 | 0.713836 | cogniteam |
fbe130c229f9f13b69df2c0c5e4734982e756888 | 442 | cpp | C++ | visualizer/src/VisualEntity.cpp | GlobeOfGeek/modern_ai | d2f2e02b89b35cec00021732d57f99e078972342 | [
"MIT"
] | 5 | 2016-04-01T02:10:46.000Z | 2016-10-24T19:07:07.000Z | visualizer/src/VisualEntity.cpp | GlobeOfGeek/morris_aima | d2f2e02b89b35cec00021732d57f99e078972342 | [
"MIT"
] | null | null | null | visualizer/src/VisualEntity.cpp | GlobeOfGeek/morris_aima | d2f2e02b89b35cec00021732d57f99e078972342 | [
"MIT"
] | null | null | null | #include "VisualEntity.h"
#include <QPainter>
#include <QGraphicsScene>
QRectF VisualEntity::boundingRect() const {
return QRectF(0,0,100,100); //relative coordinate system for bounding rect
}
void VisualEntity::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) {
painter->setBr... | 34 | 102 | 0.757919 | GlobeOfGeek |
fbe647779d510dcf33c8afa0733ae3a467d29741 | 326 | hpp | C++ | include/HelloWorld.hpp | perriera/ng-monitor | 38b47773d7a4cc39fd677622648f0e59a616a751 | [
"MIT"
] | null | null | null | include/HelloWorld.hpp | perriera/ng-monitor | 38b47773d7a4cc39fd677622648f0e59a616a751 | [
"MIT"
] | null | null | null | include/HelloWorld.hpp | perriera/ng-monitor | 38b47773d7a4cc39fd677622648f0e59a616a751 | [
"MIT"
] | null | null | null | #ifndef _HELLOWORLD_HPP
#define _HELLOWORLD_HPP
#include <iostream>
#include "../extra/include/Definitions.hpp"
interface HelloWorldInterface {
virtual std::string say_hello() const pure;
};
class HelloWorld implements HelloWorldInterface {
public:
virtual std::string say_hello() const;
};
#endif // _HELLOWORL... | 18.111111 | 49 | 0.773006 | perriera |
fbea611a11b1bdcdfc261558a1c51fccf08afc75 | 132 | cpp | C++ | Library/Standard/Relators/Relator.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | Library/Standard/Relators/Relator.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | Library/Standard/Relators/Relator.cpp | dwhobrey/MindCausalModellingLibrary | 797d716e785d2dcd5c373ab385c20d3a74bbfcb0 | [
"BSD-3-Clause"
] | null | null | null | #include "PlatoIncludes.h"
#include "Relator.h"
namespace Plato {
Relator::Relator() {
}
Relator::~Relator() {
}
}
| 13.2 | 26 | 0.590909 | dwhobrey |
fbf423afb1e86b8512b903e1b8eb3a873e838345 | 1,782 | hpp | C++ | include/banana/detail/generated/api_enums.hpp | Smertig/banana | c8a41c510feaa4ffec6614ecfc17402ea7dadaf0 | [
"MIT"
] | 23 | 2021-03-30T18:02:10.000Z | 2022-03-05T18:45:15.000Z | include/banana/detail/generated/api_enums.hpp | Smertig/banana | c8a41c510feaa4ffec6614ecfc17402ea7dadaf0 | [
"MIT"
] | 16 | 2021-06-06T07:16:52.000Z | 2021-09-14T15:43:27.000Z | include/banana/detail/generated/api_enums.hpp | Smertig/banana | c8a41c510feaa4ffec6614ecfc17402ea7dadaf0 | [
"MIT"
] | 4 | 2021-05-28T10:36:07.000Z | 2021-07-11T23:38:29.000Z | enum class method {
add_sticker_to_set,
answer_callback_query,
answer_inline_query,
answer_pre_checkout_query,
answer_shipping_query,
ban_chat_member,
close,
copy_message,
create_chat_invite_link,
create_new_sticker_set,
delete_chat_photo,
delete_chat_sticker_set,
del... | 21.731707 | 40 | 0.732323 | Smertig |
fbfd51ab3a4cb870777666d4257d651aaa8b0f35 | 581 | cpp | C++ | problems/acmicpc_11401.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_11401.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_11401.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | #include <stdio.h>
using ll = long long;
constexpr ll p = 1000000007;
ll power(ll a, int b) {
if(b == 0) return 1;
if(b == 1) return a;
auto const r = power(a, b / 2);
return (((r * r) % p) * power(a, b % 2)) % p;
}
ll inv(ll x) {
if(x == 1) return 1;
return power(x, p - 2);
}
int main() {
int n, k;
scanf("%d%d... | 20.034483 | 46 | 0.462995 | qawbecrdtey |
fbfd686fde666eafe058312e132307ef0538ed4a | 36,904 | cc | C++ | Type-BezierTriangleMesh/ObjectTypes/BezierTriangleMesh/boundVol/MetricGenerator.cc | ArielMant0/betri | d231e07ff8cb92d26766545c4f5d6b7350300df4 | [
"BSD-3-Clause"
] | null | null | null | Type-BezierTriangleMesh/ObjectTypes/BezierTriangleMesh/boundVol/MetricGenerator.cc | ArielMant0/betri | d231e07ff8cb92d26766545c4f5d6b7350300df4 | [
"BSD-3-Clause"
] | null | null | null | Type-BezierTriangleMesh/ObjectTypes/BezierTriangleMesh/boundVol/MetricGenerator.cc | ArielMant0/betri | d231e07ff8cb92d26766545c4f5d6b7350300df4 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013, Andre Gaschler, Quirin Fischer
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this
... | 35.21374 | 119 | 0.672068 | ArielMant0 |
2203dae5d278487de781ead93601b1903187b2ce | 1,256 | hpp | C++ | source/Geant/cuts/CutConverterForPositron.hpp | pcanal/GeantExascalePilot | 85ebbc8d085db909a4e4b685dee2248719d5c31f | [
"Apache-2.0"
] | 3 | 2019-05-14T20:24:44.000Z | 2019-12-13T20:27:06.000Z | source/Geant/cuts/CutConverterForPositron.hpp | Geant-RnD/GeantExascalePilot | 02dcc990eaee94bb1c27a4f6b98ceaeeb2c56256 | [
"Apache-2.0"
] | 3 | 2019-04-18T04:16:24.000Z | 2020-05-19T21:11:50.000Z | source/Geant/cuts/CutConverterForPositron.hpp | mrguilima/GeantExascalePilot | 2bf35c1fac14ef75b32be478a3925b6bbb2b2df1 | [
"Apache-2.0"
] | 2 | 2019-04-25T19:53:50.000Z | 2019-05-10T16:17:15.000Z | //===------------------ GeantX --------------------------------------------===//
//
// Geant Exascale Pilot
//
// For the licensing terms see LICENSE file.
// For the list of contributors see CREDITS file.
// Copyright (C) 2019, Geant Exascale Pilot team, All rights reserved.
//===-------------------------------------... | 29.904762 | 94 | 0.58758 | pcanal |
2206399541dff3936f763afc5d11c397c690de31 | 2,197 | hpp | C++ | unittest/utils/model-generator.hpp | thanhndv212/pinocchio | 3b4d272bf4e8a231954b71201ee7e0963c944aef | [
"BSD-2-Clause-FreeBSD"
] | 716 | 2015-03-30T16:26:45.000Z | 2022-03-30T12:26:58.000Z | unittest/utils/model-generator.hpp | thanhndv212/pinocchio | 3b4d272bf4e8a231954b71201ee7e0963c944aef | [
"BSD-2-Clause-FreeBSD"
] | 1,130 | 2015-02-21T17:30:44.000Z | 2022-03-30T09:06:22.000Z | unittest/utils/model-generator.hpp | thanhndv212/pinocchio | 3b4d272bf4e8a231954b71201ee7e0963c944aef | [
"BSD-2-Clause-FreeBSD"
] | 239 | 2015-02-05T14:15:14.000Z | 2022-03-14T23:51:47.000Z | //
// Copyright (c) 2015-2020 CNRS INRIA
//
#include "pinocchio/multibody/model.hpp"
namespace pinocchio
{
template<typename D>
void addJointAndBody(Model & model,
const JointModelBase<D> & jmodel,
const Model::JointIndex parent_id,
const SE3 &... | 46.744681 | 145 | 0.638143 | thanhndv212 |
220b791b7e0800857b45eb715212f059a2a20ff1 | 13,163 | cpp | C++ | src/splitting/isoperimetrical_bipartitioner.cpp | srrg-sapienza/srrg2-hipe | 97d847cba742027971010b10774431b86fa3e26b | [
"BSD-3-Clause"
] | 5 | 2021-11-10T20:59:55.000Z | 2022-03-24T14:47:32.000Z | src/splitting/isoperimetrical_bipartitioner.cpp | srrg-sapienza/srrg2-hipe | 97d847cba742027971010b10774431b86fa3e26b | [
"BSD-3-Clause"
] | null | null | null | src/splitting/isoperimetrical_bipartitioner.cpp | srrg-sapienza/srrg2-hipe | 97d847cba742027971010b10774431b86fa3e26b | [
"BSD-3-Clause"
] | null | null | null | #include "isoperimetrical_bipartitioner.h"
#include <srrg_solver/variables_and_factors/types_2d/instances.h>
#include <srrg_solver/variables_and_factors/types_3d/instances.h>
namespace srrg2_hipe {
using namespace srrg2_core;
using namespace srrg2_solver;
IsoperimetricBipartitioner::IsoperimetricBipartitioner()... | 42.054313 | 100 | 0.635949 | srrg-sapienza |
81fed43870cb9b25c9211773bc4e8ed60c1bce86 | 647 | cpp | C++ | src/util/gl_dart.cpp | bartyang9/dart | f99746acef3eeaef377f671d40b347d08fe4fd2d | [
"BSD-2-Clause"
] | 101 | 2016-04-29T08:42:29.000Z | 2022-02-23T11:04:53.000Z | src/util/gl_dart.cpp | bartyang9/dart | f99746acef3eeaef377f671d40b347d08fe4fd2d | [
"BSD-2-Clause"
] | 5 | 2016-06-30T07:40:31.000Z | 2022-03-07T03:14:11.000Z | src/util/gl_dart.cpp | bartyang9/dart | f99746acef3eeaef377f671d40b347d08fe4fd2d | [
"BSD-2-Clause"
] | 40 | 2016-04-04T09:12:54.000Z | 2022-02-24T06:34:29.000Z |
#include "gl_dart.h"
#include <GL/glew.h>
namespace dart {
void glLoadSE3(const dart::SE3 & mx) {
float mxData[16] = { mx.r0.x, mx.r1.x, mx.r2.x, 0,
mx.r0.y, mx.r1.y, mx.r2.y, 0,
mx.r0.z, mx.r1.z, mx.r2.z, 0,
mx.r0.w, mx.r1.w, mx.r2.w, 1... | 25.88 | 56 | 0.445131 | bartyang9 |
c301fce4980a28e2576cdcae3693d167acebaf69 | 798 | hpp | C++ | font.hpp | wutipong/drawtext-opengl | 049161b0ad3f906d1e2781aa46c30c862f69f9ed | [
"MIT"
] | null | null | null | font.hpp | wutipong/drawtext-opengl | 049161b0ad3f906d1e2781aa46c30c862f69f9ed | [
"MIT"
] | null | null | null | font.hpp | wutipong/drawtext-opengl | 049161b0ad3f906d1e2781aa46c30c862f69f9ed | [
"MIT"
] | null | null | null | #pragma once
#include <SDL2/SDL.h>
#include <gl/glew.h>
#include <memory>
#include <string>
#include <vector>
#include <ft2build.h>
#include FT_FREETYPE_H
#include <harfbuzz/hb-ft.h>
#include <harfbuzz/hb.h>
#include <unicode/unistr.h>
#include "glyph.hpp"
class Context;
class Font {
public:
Font(){};
Font(... | 19.95 | 79 | 0.721805 | wutipong |
c306128d9798657bc09b138c1300e9f906d4eb02 | 389 | cpp | C++ | Engine/gapi/vulkan/vimage.cpp | swick/MoltenTempest | 22f22b38d4d786aee9280b314a1032e8b667e4d6 | [
"MIT"
] | null | null | null | Engine/gapi/vulkan/vimage.cpp | swick/MoltenTempest | 22f22b38d4d786aee9280b314a1032e8b667e4d6 | [
"MIT"
] | null | null | null | Engine/gapi/vulkan/vimage.cpp | swick/MoltenTempest | 22f22b38d4d786aee9280b314a1032e8b667e4d6 | [
"MIT"
] | null | null | null | #include "vimage.h"
#include "vdevice.h"
using namespace Tempest::Detail;
VImage::VImage(VDevice &dev, VkImage impl)
:impl(impl),device(dev.device){
}
VImage::VImage(VImage &&other) {
std::swap(device,other.device);
std::swap(impl,other.impl);
}
VImage::~VImage() {
if(device==nullptr)
return;
vkD... | 16.913043 | 42 | 0.681234 | swick |
c309260094c55adf2321de4cdbf0de63b5f0e215 | 64 | cpp | C++ | core/GUI/IECanvas.cpp | ferluht/pocketdaw | 0e40b32191e431cde54cd5944611c4b5b293ea68 | [
"BSD-2-Clause"
] | null | null | null | core/GUI/IECanvas.cpp | ferluht/pocketdaw | 0e40b32191e431cde54cd5944611c4b5b293ea68 | [
"BSD-2-Clause"
] | null | null | null | core/GUI/IECanvas.cpp | ferluht/pocketdaw | 0e40b32191e431cde54cd5944611c4b5b293ea68 | [
"BSD-2-Clause"
] | 1 | 2022-03-29T19:45:51.000Z | 2022-03-29T19:45:51.000Z | //
// Created by Admin on 15.09.2019.
//
#include "IECanvas.h"
| 10.666667 | 34 | 0.625 | ferluht |
c31068727becd840968e6b64a0ed9c5b36d3cc5b | 4,441 | cc | C++ | src/tokenizer.cc | cpizano/Kodefind | 0272a0eeebe527edc1b91d867abbb5bf2f7dd79a | [
"Unlicense"
] | 3 | 2016-07-27T02:07:50.000Z | 2020-10-16T03:47:15.000Z | src/tokenizer.cc | cpizano/Kodefind | 0272a0eeebe527edc1b91d867abbb5bf2f7dd79a | [
"Unlicense"
] | null | null | null | src/tokenizer.cc | cpizano/Kodefind | 0272a0eeebe527edc1b91d867abbb5bf2f7dd79a | [
"Unlicense"
] | null | null | null | #include "tokenizer.h"
MemDataStream::MemDataStream(char* start, char* end)
: start_(start), end_(end), pos_(0ul) {
}
MemDataStream::~MemDataStream() {
}
size_t MemDataStream::Read(Buffer& buffer) {
size_t left = end_ - &start_[pos_];
size_t read = std::min(buffer.size, left);
memcpy(buffer.pbuff, &start_[... | 24.535912 | 81 | 0.472191 | cpizano |
c313bb13174ae96f8c103d29194f4b43b67b5155 | 2,611 | cpp | C++ | src/geo/lib/latlng_extractor.cpp | Skysheepwang/pegasus | 962906ac9d63fd1631049cb4302cc2d70b9c39ef | [
"Apache-2.0"
] | 1 | 2019-07-10T01:56:18.000Z | 2019-07-10T01:56:18.000Z | src/geo/lib/latlng_extractor.cpp | linlinhaohao888/pegasus | 41f5b041870d3d2248a875d6ab3b0c93cc4fa1aa | [
"Apache-2.0"
] | null | null | null | src/geo/lib/latlng_extractor.cpp | linlinhaohao888/pegasus | 41f5b041870d3d2248a875d6ab3b0c93cc4fa1aa | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2018-present, Xiaomi, Inc. All rights reserved.
// This source code is licensed under the Apache License Version 2.0, which
// can be found in the LICENSE file in the root directory of this source tree.
#include "latlng_extractor.h"
#include <dsn/utility/error_code.h>
#include <dsn/utility/errors.h>... | 33.050633 | 100 | 0.605515 | Skysheepwang |
c317cf72f3c79e1581e41d63cf51efd97afb6ee7 | 3,787 | cpp | C++ | Source/Tools/TornadoEditor/Generated files/ComponentEntityManagerExtensionImpl.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 27 | 2015-01-08T08:26:29.000Z | 2019-02-10T03:18:05.000Z | Source/Tools/TornadoEditor/Generated files/ComponentEntityManagerExtensionImpl.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 1 | 2017-04-05T02:02:14.000Z | 2017-04-05T02:02:14.000Z | Source/Tools/TornadoEditor/Generated files/ComponentEntityManagerExtensionImpl.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 17 | 2015-01-18T02:50:01.000Z | 2019-02-08T21:00:53.000Z | /*
Author: Gudakov Ramil Sergeevich a.k.a. Gauss
Гудаков Рамиль Сергеевич
Contacts: [ramil2085@mail.ru, ramil2085@gmail.com]
See for more information LICENSE.md.
*/
#include "ComponentEntityManagerExtensionImpl.h"
#include "ComponentEntityManagerExtension.h"
#include "TornadoEngine/Generated files/Component... | 45.083333 | 123 | 0.592818 | RamilGauss |
c318ab57069f9443c4bcc2393cefd0a7ec26cacc | 770 | hpp | C++ | SDK/ARKSurvivalEvolved_ProjTekTurret_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_ProjTekTurret_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_ProjTekTurret_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_ProjTekTurret_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//-----------------------------------------------------------... | 19.25 | 96 | 0.616883 | 2bite |
c3193aadd3c8ce00e9f9c0ef5f2a33b5d7f44d3c | 294 | cc | C++ | zen/meta_test.cc | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | null | null | null | zen/meta_test.cc | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | 2 | 2020-02-06T17:01:39.000Z | 2020-02-12T17:50:14.000Z | zen/meta_test.cc | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | null | null | null |
#if ZEN_STL
#include <string>
#endif
#include "zen/meta.hpp"
using namespace ZEN_NAMESPACE;
static_assert(Size<Tuple<U1, U2>>::value == 2);
using P1 = PrependT<U1, Tuple<U1>>;
static_assert(Size<P1>::value == 2);
#if ZEN_STL
static_assert(IsContainer<std::string>::value == true);
#endif | 16.333333 | 55 | 0.707483 | ZenLibraries |
c31a0c01fbec88ebc6eb3111b0e947f4a808e1de | 14,709 | cc | C++ | engine/core/scene_graph/scene_graph.cc | RikoOphorst/Tremble | 650fa53402f9c6114642e0cc8515b2ed517d40d6 | [
"MIT"
] | 1 | 2021-10-17T06:41:46.000Z | 2021-10-17T06:41:46.000Z | engine/core/scene_graph/scene_graph.cc | RikoOphorst/Tremble | 650fa53402f9c6114642e0cc8515b2ed517d40d6 | [
"MIT"
] | null | null | null | engine/core/scene_graph/scene_graph.cc | RikoOphorst/Tremble | 650fa53402f9c6114642e0cc8515b2ed517d40d6 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "scene_graph.h"
#include "../utilities/debug.h"
#include "../game_manager.h"
#include "../memory/memory_includes.h"
namespace engine
{
//------------------------------------------------------------------------------------------------------
SGNode::SGNode(GameManager* game_manager)
:paren... | 33.20316 | 172 | 0.496907 | RikoOphorst |
c31c2bb43556e14fc54b59d39db0d9ee56c1a943 | 489 | hpp | C++ | src/PlaceClass.hpp | 0b111000/Monopoly-Game | 8a2ff0c662c8a268a2e5ed0c7eb110ab252d7654 | [
"MIT"
] | null | null | null | src/PlaceClass.hpp | 0b111000/Monopoly-Game | 8a2ff0c662c8a268a2e5ed0c7eb110ab252d7654 | [
"MIT"
] | null | null | null | src/PlaceClass.hpp | 0b111000/Monopoly-Game | 8a2ff0c662c8a268a2e5ed0c7eb110ab252d7654 | [
"MIT"
] | 1 | 2020-06-11T16:35:30.000Z | 2020-06-11T16:35:30.000Z | #ifndef PLACE_H
#define PLACE_H
class place { //contains all attributes of a place
public:
bool ifplace;
bool hotel;
string name;
string color;
int price;
string owner;
bool house;
int hotelprice; //same value goes to house price.
int rent;
int hotelrent;
int houser... | 23.285714 | 122 | 0.656442 | 0b111000 |
c32270a40c00dc3d8098dedd17c4a1dba06d20c8 | 5,646 | cpp | C++ | SDK/ARKSurvivalEvolved_Buff_ChargeEmitter_Foliage_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Buff_ChargeEmitter_Foliage_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Buff_ChargeEmitter_Foliage_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Buff_ChargeEmitter_Foliage_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-------------------------------------------------------... | 32.262857 | 164 | 0.727772 | 2bite |
c32c88e6632fb1a3f5f573977a8f87e49ef694ed | 1,703 | cpp | C++ | test1/rownanie.cpp | KPO-2020-2021/zad1-mszleger | 1b09a1611d3ce7fdfbd74959426db5f7a9ff4293 | [
"MIT"
] | null | null | null | test1/rownanie.cpp | KPO-2020-2021/zad1-mszleger | 1b09a1611d3ce7fdfbd74959426db5f7a9ff4293 | [
"MIT"
] | null | null | null | test1/rownanie.cpp | KPO-2020-2021/zad1-mszleger | 1b09a1611d3ce7fdfbd74959426db5f7a9ff4293 | [
"MIT"
] | null | null | null | /**
* Aby skompilować program kompilatorem języka C++ należy użyć następującej komendy:
* g++ -Wall -pedantic rownanie.cpp
* Kompilator języka C++ automatycznie dodaje bibliotekę math.h (jeśli jest używana)
**/
#include <stdio.h>
#include <math.h>
struct TrojmianKw {
double a;
double b;
double c;
};
ty... | 20.27381 | 84 | 0.58485 | KPO-2020-2021 |
c32e12d4b539b0cc8966f8cc5e0c2e58f05ca991 | 2,188 | cc | C++ | src/PrimaryGeneratorMessenger.cc | jopekonk/ftsg4 | 63e6d00080ac9a392272e45538b8eb9d91601442 | [
"MIT"
] | null | null | null | src/PrimaryGeneratorMessenger.cc | jopekonk/ftsg4 | 63e6d00080ac9a392272e45538b8eb9d91601442 | [
"MIT"
] | null | null | null | src/PrimaryGeneratorMessenger.cc | jopekonk/ftsg4 | 63e6d00080ac9a392272e45538b8eb9d91601442 | [
"MIT"
] | null | null | null | #include "PrimaryGeneratorMessenger.hh"
#include "PrimaryGeneratorAction.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
PrimaryGeneratorMessenger::PrimaryGeneratorMessenger(PrimaryGeneratorAction* Gun)
: G4UImessenger(),fAction(Gun),
fGunDir(0), fParticleCmd(0), fEnergyCmd(0), ... | 42.901961 | 110 | 0.722121 | jopekonk |
c3313686ec61e3dde97f90cd15eee503fc24dae3 | 955 | cpp | C++ | 257-binary-tree-paths/solution.cpp | darxsys/leetcode | 1174f0dbad56c6bfd8196bc4c14798b5f8cee418 | [
"MIT"
] | null | null | null | 257-binary-tree-paths/solution.cpp | darxsys/leetcode | 1174f0dbad56c6bfd8196bc4c14798b5f8cee418 | [
"MIT"
] | null | null | null | 257-binary-tree-paths/solution.cpp | darxsys/leetcode | 1174f0dbad56c6bfd8196bc4c14798b5f8cee418 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <climits>
#include <cstdlib>
#include <cassert>
#include <vector>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <unordered_set>
using namespace std;
class Solution {
public:
vecto... | 20.319149 | 78 | 0.583246 | darxsys |
c3361a1b85db8e5afe8392ecb6aa4ddac887cb09 | 292 | cc | C++ | src/Detector/AbstractDetector.cc | gongo/Tython | a2bf95a15123606fbbd5a1cf1186ff1defe4c752 | [
"MIT"
] | 5 | 2017-05-20T12:58:49.000Z | 2021-05-21T12:34:36.000Z | src/Detector/AbstractDetector.cc | gongo/Tython | a2bf95a15123606fbbd5a1cf1186ff1defe4c752 | [
"MIT"
] | null | null | null | src/Detector/AbstractDetector.cc | gongo/Tython | a2bf95a15123606fbbd5a1cf1186ff1defe4c752 | [
"MIT"
] | null | null | null | #include "AbstractDetector.h"
namespace ty {
AbstractDetector::AbstractDetector(User* _user) : user(_user)
{
timer = Timer::instance();
}
AbstractDetector::~AbstractDetector(void)
{
}
bool AbstractDetector::detect()
{
return user->isTracking() && isPosing();
}
} // namespace ty
| 14.6 | 61 | 0.69863 | gongo |
c34451d32faa1076558c55e783513913d41c7762 | 176 | cc | C++ | src/json_to_proto/convert_switches.cc | CaiHuan/opengl_study | 0d4ed469f770dc864ba463b1d17cf2f1687e7d41 | [
"MIT"
] | null | null | null | src/json_to_proto/convert_switches.cc | CaiHuan/opengl_study | 0d4ed469f770dc864ba463b1d17cf2f1687e7d41 | [
"MIT"
] | null | null | null | src/json_to_proto/convert_switches.cc | CaiHuan/opengl_study | 0d4ed469f770dc864ba463b1d17cf2f1687e7d41 | [
"MIT"
] | null | null | null | #include "convert_switches.h"
namespace convert_switches {
extern const char kInputFilePath[] = "input-file-path";
extern const char kOutputFilePath[] = "output-file-path";
} | 25.142857 | 57 | 0.767045 | CaiHuan |
c34839dc779583322ce1dee3889b931cc327afd9 | 5,174 | cpp | C++ | testHarness/config_def.cpp | ScottyMac52/VDM | 28829e7e7b8d81c55e49d88ab4c2833432c16082 | [
"MIT"
] | null | null | null | testHarness/config_def.cpp | ScottyMac52/VDM | 28829e7e7b8d81c55e49d88ab4c2833432c16082 | [
"MIT"
] | null | null | null | testHarness/config_def.cpp | ScottyMac52/VDM | 28829e7e7b8d81c55e49d88ab4c2833432c16082 | [
"MIT"
] | null | null | null | #include <string>
#include "cajun/json/elements.h"
using namespace std;
using namespace json;
#include "json_check.h"
#include "config_def.h"
#pragma region Ctor and Dtor
config_def::config_def()
= default;
config_def::config_def(const config_def& source)
{
name_ = source.name_;
module_name_ = source.module_name... | 21.380165 | 66 | 0.745265 | ScottyMac52 |
c34891a90f0cf37e6bf3ced323f7c0b8e30b9e65 | 1,147 | cpp | C++ | Chapter_6/5.1 PointerArthmt/5.1 PointerArthmt.cpp | BjornChrisnach/Udemy_C_plusplus_Programming_From_Zero_to_Hero | f3d7b46ac652eec5d6057b802c612217be2e01cb | [
"MIT"
] | null | null | null | Chapter_6/5.1 PointerArthmt/5.1 PointerArthmt.cpp | BjornChrisnach/Udemy_C_plusplus_Programming_From_Zero_to_Hero | f3d7b46ac652eec5d6057b802c612217be2e01cb | [
"MIT"
] | null | null | null | Chapter_6/5.1 PointerArthmt/5.1 PointerArthmt.cpp | BjornChrisnach/Udemy_C_plusplus_Programming_From_Zero_to_Hero | f3d7b46ac652eec5d6057b802c612217be2e01cb | [
"MIT"
] | null | null | null | /// Program using Pointers and Arrays and pointer arithmetic
#include<iostream>
using namespace std;
int main()
{
int a[10],b[10],*p,*q,i;
for(i=0;i<3;i++)
{
cout<<"\n\tENTER THE ELEMENT FOR FIRST SET : ";
cin>>a[i];
}
p=a; /// or p = &a[0];
for(i=0;i<3;i++)
{
cout<<"\n\tENTER THE E... | 23.408163 | 60 | 0.480384 | BjornChrisnach |
c34d4bb1da14e98e5be60816de9e036403bb8664 | 2,587 | hpp | C++ | rice/detail/Wrapped_Function.hpp | cfis/rice | 0f4088a4a5ba2e6390361512ca40da89e57efe63 | [
"BSD-2-Clause"
] | null | null | null | rice/detail/Wrapped_Function.hpp | cfis/rice | 0f4088a4a5ba2e6390361512ca40da89e57efe63 | [
"BSD-2-Clause"
] | null | null | null | rice/detail/Wrapped_Function.hpp | cfis/rice | 0f4088a4a5ba2e6390361512ca40da89e57efe63 | [
"BSD-2-Clause"
] | null | null | null | #ifndef Rice__detail__Wrapped_Function__hpp_
#define Rice__detail__Wrapped_Function__hpp_
#include "ruby.hpp"
namespace Rice
{
namespace detail
{
/* This class wraps a native function call. The most important template parameters
are Receiver_T and Return_T.
Receiver_T can have one of the following values:
... | 31.938272 | 104 | 0.720139 | cfis |
c34f7d7ab16e78249a6bd006f8272f0f47fd38d0 | 884 | hpp | C++ | test/misc/shape/shape.hpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | 16 | 2020-11-17T18:25:16.000Z | 2022-03-19T15:12:19.000Z | test/misc/shape/shape.hpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | 6 | 2021-08-17T16:13:46.000Z | 2022-03-04T09:32:48.000Z | test/misc/shape/shape.hpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | null | null | null | //==================================================================================================
/**
KIWAKU - Containers Well Made
Copyright 2020 Joel FALCOU
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
**/
//=============================================... | 28.516129 | 100 | 0.511312 | jfalcou |
c354b0090b950cc9400946c159cb9e2d2f7d5a15 | 359 | cpp | C++ | PortableGraphicsToolkit/src/pgt/graphics/plattform/opengl/voxel/model_updaters/SharedDataStructs.cpp | chris-b-h/PortableGraphicsToolkit | 85862a6c5444cf9689821ff23952b56a01ff5835 | [
"Zlib"
] | 3 | 2017-07-12T20:18:51.000Z | 2017-07-20T15:02:58.000Z | PortableGraphicsToolkit/src/pgt/graphics/plattform/opengl/voxel/model_updaters/SharedDataStructs.cpp | chris-b-h/PortableGraphicsToolkit | 85862a6c5444cf9689821ff23952b56a01ff5835 | [
"Zlib"
] | null | null | null | PortableGraphicsToolkit/src/pgt/graphics/plattform/opengl/voxel/model_updaters/SharedDataStructs.cpp | chris-b-h/PortableGraphicsToolkit | 85862a6c5444cf9689821ff23952b56a01ff5835 | [
"Zlib"
] | 1 | 2019-04-03T01:19:42.000Z | 2019-04-03T01:19:42.000Z | #include "SharedDataStructs.h"
#include <pgt/graphics/plattform/opengl/voxel/models/VoxelTerrainModel.h>
namespace pgt
{
surroundings::surroundings(terrain_chunk_update_request& tcs)
{
{
for (int i = 0; i < COUNT; i++)
{
chunks[i] = static_cast<VoxelContainer*>(tc... | 23.933333 | 73 | 0.571031 | chris-b-h |
c3570ba8e004225082de7294ede12a00b2c48781 | 2,121 | cpp | C++ | 36_is_valid_sudoku/is_valid_sudoku.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 36_is_valid_sudoku/is_valid_sudoku.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 36_is_valid_sudoku/is_valid_sudoku.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | /*
* @Date: 2021-09-17 08:40:49
* @Author: Mengsen Wang
* @LastEditors: Mengsen Wang
* @LastEditTime: 2021-09-17 08:52:12
*/
#include <cassert>
#include <cstring>
#include <vector>
using namespace std;
class Solution {
public:
bool isValidSudoku(vector<vector<char>>& board) {
int rows[9][9];
int colu... | 30.3 | 60 | 0.30033 | Mengsen-W |
c359dffa1bb6d0a69d51720e18bcc79c6e05bd65 | 610 | cpp | C++ | EduServer_IOCP/EduServer_IOCP/SessionManager.cpp | respu/EduServer | f8d110a71e0924d3523e6d21d8963e7c24410e7d | [
"MIT"
] | 2 | 2015-10-28T06:33:14.000Z | 2019-06-02T16:41:05.000Z | EduServer_IOCP/EduServer_IOCP/SessionManager.cpp | respu/EduServer | f8d110a71e0924d3523e6d21d8963e7c24410e7d | [
"MIT"
] | null | null | null | EduServer_IOCP/EduServer_IOCP/SessionManager.cpp | respu/EduServer | f8d110a71e0924d3523e6d21d8963e7c24410e7d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "FastSpinlock.h"
#include "ClientSession.h"
#include "SessionManager.h"
SessionManager* GSessionManager = nullptr;
ClientSession* SessionManager::CreateClientSession(SOCKET sock)
{
ClientSession* client = new ClientSession(sock);
client->AddRef();
mLock.EnterLock();
{
... | 18.484848 | 64 | 0.708197 | respu |
c359e7673c3c980a724b7eac8cab3269537aead3 | 1,334 | cpp | C++ | src/manager.cpp | RichardoMrMu/yolov5-helmet-detection | 7a886ed98dc4faca7ac1e65656e4e029d8f6ffc9 | [
"MIT"
] | 8 | 2021-11-10T03:19:54.000Z | 2022-01-18T14:37:38.000Z | src/manager.cpp | RichardoMrMu/yolov5-smoking-detect | 6979f80bad1b92b56d0310f8451dbea5da01a686 | [
"MIT"
] | 1 | 2021-11-27T09:05:33.000Z | 2021-11-30T13:09:55.000Z | src/manager.cpp | RichardoMrMu/yolov5-smoking-detect | 6979f80bad1b92b56d0310f8451dbea5da01a686 | [
"MIT"
] | 2 | 2021-12-13T17:10:23.000Z | 2021-12-20T03:27:20.000Z | #include "manager.hpp"
#include "string"
using std::vector;
using namespace cv;
static Logger gLogger;
Trtyolosort::Trtyolosort(char *yolo_engine_path){
yolo_engine_path_ = yolo_engine_path;
trt_engine = yolov5_trt_create(yolo_engine_path_);
printf("create yolov5-trt , instance = %p\n", trt_engine);
std::string ... | 32.536585 | 90 | 0.648426 | RichardoMrMu |
c3695a582bce8afa17132c0bffb701d8e7b1ae96 | 470 | hpp | C++ | include/Network/SessionState.hpp | Lisoph/MORL | f1c4f9a1c16df236495666fd46d76da6ac9a32af | [
"MIT"
] | 1 | 2015-05-24T17:20:06.000Z | 2015-05-24T17:20:06.000Z | include/Network/SessionState.hpp | Lisoph/MORL | f1c4f9a1c16df236495666fd46d76da6ac9a32af | [
"MIT"
] | 1 | 2015-05-15T20:29:58.000Z | 2015-05-15T20:29:58.000Z | include/Network/SessionState.hpp | Lisoph/MORL | f1c4f9a1c16df236495666fd46d76da6ac9a32af | [
"MIT"
] | null | null | null | #pragma once
namespace MORL {
namespace Network {
class Session;
/**
* Base class for all network states
*/
class SessionState {
public:
SessionState(Session &session)
: mSession(session)
{}
SessionState(SessionState const &other) = default;
virtual ~Sessi... | 16.785714 | 56 | 0.557447 | Lisoph |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.