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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b4923f0f66075548f4f0186d4be3df2b1fb2b7f | 366 | hh | C++ | include/MyActionInitialization.hh | wangshishe/RutherfordScattering | ccc4353501ad7ca4fcc78bf5e4805a358bdaa3ce | [
"MIT"
] | null | null | null | include/MyActionInitialization.hh | wangshishe/RutherfordScattering | ccc4353501ad7ca4fcc78bf5e4805a358bdaa3ce | [
"MIT"
] | null | null | null | include/MyActionInitialization.hh | wangshishe/RutherfordScattering | ccc4353501ad7ca4fcc78bf5e4805a358bdaa3ce | [
"MIT"
] | 1 | 2022-03-15T04:52:09.000Z | 2022-03-15T04:52:09.000Z | #ifndef MYACTIONINITIALIZATION_HH
#define MYACTIONINITIALIZATION_HH
#include "G4VUserActionInitialization.hh"
#include "MyPrimaryGeneratorAction.hh"
#include "MyRunAction.hh"
class MyActionInitialization : public G4VUserActionInitialization
{
public:
MyActionInitialization();
virtual ~MyActionInitialization()... | 20.333333 | 65 | 0.803279 | wangshishe |
6b5255cdae2bb6b35710e44d18ef6828d9d3b762 | 1,522 | cpp | C++ | examples/mono_vo/CamDataLoader.cpp | charlie-lee/slam_demo | 0bb6cc6d20c6a728eea502a61456f83881144e59 | [
"MIT"
] | null | null | null | examples/mono_vo/CamDataLoader.cpp | charlie-lee/slam_demo | 0bb6cc6d20c6a728eea502a61456f83881144e59 | [
"MIT"
] | null | null | null | examples/mono_vo/CamDataLoader.cpp | charlie-lee/slam_demo | 0bb6cc6d20c6a728eea502a61456f83881144e59 | [
"MIT"
] | null | null | null | /**
* @file CamDataLoader.cpp
* @brief Implementations of camera data loader class.
* @author Charlie Li
* @date 2019.08.05
*/
#include "CamDataLoader.hpp"
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
using std::ifst... | 28.185185 | 75 | 0.618265 | charlie-lee |
6b5b0c6bde761f9218e94bcd1fb37e1092c8e02f | 63,948 | cpp | C++ | Instruction/OpCodeTable.cpp | aracitdev/GameBoyEmu | d16de31d398e567dc0f2a4c81fc6b08ec6a05b4d | [
"MIT"
] | 9 | 2019-12-13T09:29:44.000Z | 2021-04-08T23:02:54.000Z | Instruction/OpCodeTable.cpp | aracitdev/GameBoyEmu | d16de31d398e567dc0f2a4c81fc6b08ec6a05b4d | [
"MIT"
] | 1 | 2020-02-06T11:45:24.000Z | 2020-05-13T05:51:54.000Z | Instruction/OpCodeTable.cpp | aracitdev/GameBoyEmu | d16de31d398e567dc0f2a4c81fc6b08ec6a05b4d | [
"MIT"
] | 4 | 2019-12-13T16:53:52.000Z | 2021-05-13T16:24:44.000Z | #include "OpCodeTable.h"
const uint32_t OpCodeCount=256;
OpCodeEntry OpCodes[OpCodeCount]
{
{OpTypes::NOOP, OperandTypes::None, OperandTypes::None, OperandMem::Const, OperandMem::Const, 4, 4}, //0x00 NOOP
{OpTypes::LDW, OperandTypes::BC, OperandTypes::Immediate16, OperandMem::Const, OperandMem::... | 109.687822 | 133 | 0.632326 | aracitdev |
6b633761540fccc5becca67af5add50e53da2a21 | 1,669 | hpp | C++ | lib/Ray/sources/Drawables/3D/Triangle.hpp | EternalRat/Bomberman | d4d0c6dea61f7de1e71c6f182a6bf27407092356 | [
"MIT"
] | 6 | 2021-05-27T13:31:37.000Z | 2021-11-21T17:35:08.000Z | lib/Ray/sources/Drawables/3D/Triangle.hpp | EternalRat/Bomberman | d4d0c6dea61f7de1e71c6f182a6bf27407092356 | [
"MIT"
] | 174 | 2021-05-12T14:10:04.000Z | 2021-06-26T11:29:39.000Z | lib/Ray/sources/Drawables/3D/Triangle.hpp | EternalRat/Bomberman | d4d0c6dea61f7de1e71c6f182a6bf27407092356 | [
"MIT"
] | 2 | 2021-05-27T13:28:46.000Z | 2021-06-21T12:25:27.000Z | /*
** EPITECH PROJECT, 2021
** Bomberman
** File description:
** Pixel
*/
#ifndef TRIANGLE3D_HPP_
#define TRIANGLE3D_HPP_
#include <raylib.h>
#include "Drawables/ADrawable3D.hpp"
namespace RAY::Drawables::Drawables3D {
//! @brief Triangle in a three-dimensionnal space
class Triangle: public ADrawable3D
{
public... | 24.910448 | 110 | 0.686639 | EternalRat |
6b6557888ace95d978b8b5b0c177e8f72218e9e8 | 516 | hpp | C++ | src/engine/renderable/decorator/TransformDecorator.hpp | stanfortonski/Procedural-Terrain-Generator-OpenGL | a88bf2d7a44e7efa10dd980147e2bad0d1a782bf | [
"MIT"
] | 93 | 2020-03-06T21:40:48.000Z | 2022-03-28T06:30:55.000Z | src/engine/renderable/decorator/TransformDecorator.hpp | pashashigalev/Shigalev-Pavel | 0c9094f409eb5a9d44ea4825fba86fcfe07a757e | [
"BSD-3-Clause"
] | 1 | 2021-08-31T07:56:37.000Z | 2021-08-31T16:06:35.000Z | src/engine/renderable/decorator/TransformDecorator.hpp | stanfortonski/Procedural-Terrain-Generator-OpenGL | a88bf2d7a44e7efa10dd980147e2bad0d1a782bf | [
"MIT"
] | 10 | 2020-06-06T11:21:35.000Z | 2022-03-24T01:55:20.000Z | /* Copyright (c) 2020 by Stan Fortoński */
#ifndef TRANSFORM_DECORATOR
#define TRANSFORM_DECORATOR 1
#include "../Transformationable.hpp"
namespace Engine
{
class TransformDecorator: public Transformationable
{
Renderable & renderer;
public:
TransformDecorator(Renderable & object): renderer(object){;}
... | 19.846154 | 64 | 0.709302 | stanfortonski |
6b6d017e209668c1fd467ac5d99423db7bdd4290 | 3,710 | hh | C++ | nox/src/nox/netapps/bindings_storage/bindings_storage_proxy.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/nox/netapps/bindings_storage/bindings_storage_proxy.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/nox/netapps/bindings_storage/bindings_storage_proxy.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | /* Copyright 2008, 2009 (C) Nicira, Inc.
*
* This file is part of NOX.
*
* NOX 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.
... | 32.54386 | 76 | 0.666846 | ayjazz |
6b70b0753aa864c233637be9bef869f256672397 | 1,420 | cpp | C++ | lib/dicttool/dicttool.cpp | inajob/esp32-hid-keyboard | e0e6a73ae447265031543439029f56cc1015bcfa | [
"MIT"
] | 11 | 2021-03-18T09:52:50.000Z | 2022-03-24T04:38:18.000Z | lib/dicttool/dicttool.cpp | inajob/esp32-hid-keyboard | e0e6a73ae447265031543439029f56cc1015bcfa | [
"MIT"
] | null | null | null | lib/dicttool/dicttool.cpp | inajob/esp32-hid-keyboard | e0e6a73ae447265031543439029f56cc1015bcfa | [
"MIT"
] | 1 | 2021-07-29T05:32:23.000Z | 2021-07-29T05:32:23.000Z | #include <dicttool.h>
void search(char* target, vector<string>* results, char* path){
#ifdef ESP32
File fp;
#else
FILE* fp;
#endif
const size_t line_size = 1024;
char line[1024];
char* linePtr = line; // TODO: more smart way?
char* targetPtr = target;
#ifdef ESP32
fp = SPIFFS.open(path, "r");
#else
fp ... | 19.722222 | 65 | 0.521127 | inajob |
6b72b9b054fad273449fe2ffa182726c15247fd6 | 15,131 | cpp | C++ | generated/src/permission_e.cpp | MMX-World/vnx-base | c806599e630e17928e8c2d9271e896797a069ba2 | [
"Apache-2.0"
] | null | null | null | generated/src/permission_e.cpp | MMX-World/vnx-base | c806599e630e17928e8c2d9271e896797a069ba2 | [
"Apache-2.0"
] | 2 | 2022-02-07T05:19:09.000Z | 2022-03-24T18:44:37.000Z | generated/src/permission_e.cpp | MMX-World/vnx-base | c806599e630e17928e8c2d9271e896797a069ba2 | [
"Apache-2.0"
] | 1 | 2022-01-22T21:30:26.000Z | 2022-01-22T21:30:26.000Z |
// AUTO GENERATED by vnxcppcodegen
#include <vnx/package.hxx>
#include <vnx/permission_e.hxx>
#include <vnx/vnx.h>
namespace vnx {
const vnx::Hash64 permission_e::VNX_TYPE_HASH(0xb22885dc987a7be3ull);
const vnx::Hash64 permission_e::VNX_CODE_HASH(0xe9a50aad8a6a9b98ull);
vnx::Hash64 permission_e::get_type_hash()... | 32.331197 | 121 | 0.706629 | MMX-World |
6b75310dc2673188b7d6f7c9af1a0d8ddb43dfde | 1,894 | cc | C++ | src/bin/copy-fst.cc | boostpapa/kaldi | 1727fa234ef505b8550cab991e30c5ee6aaff64d | [
"Apache-2.0"
] | 2 | 2019-06-04T06:27:43.000Z | 2021-11-30T13:10:10.000Z | src/bin/copy-fst.cc | chuilun/kaldi | 5ede22e43524f5d64b8dcd62c352cdb7780f66a9 | [
"Apache-2.0"
] | 2 | 2019-04-09T06:57:51.000Z | 2019-04-09T07:12:48.000Z | src/bin/copy-fst.cc | ishine/kaldi | 1845b94477c1ca0066797c320bf4eaf56cbd75cc | [
"Apache-2.0"
] | 2 | 2020-06-24T08:11:31.000Z | 2021-11-30T13:10:11.000Z | // bin/copy-fst.cc
// Copyright 2009-2012 Microsoft Corporation
// 2012-2015 Johns Hopkins University (Author: Daniel Povey)
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compli... | 29.59375 | 79 | 0.669483 | boostpapa |
6b758310bba431c7d1c83c9c20c05f491976e6f8 | 4,320 | cpp | C++ | FEBioStudio/InfoPanel.cpp | chunkeey/FEBioStudio | f342d4ac2bc3581db792373c4265454109af92b3 | [
"MIT"
] | null | null | null | FEBioStudio/InfoPanel.cpp | chunkeey/FEBioStudio | f342d4ac2bc3581db792373c4265454109af92b3 | [
"MIT"
] | null | null | null | FEBioStudio/InfoPanel.cpp | chunkeey/FEBioStudio | f342d4ac2bc3581db792373c4265454109af92b3 | [
"MIT"
] | null | null | null | /*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any per... | 28.051948 | 185 | 0.702083 | chunkeey |
6b78c04e0a3ea5270ad7e7f2412bf800303130e1 | 802 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/anim/PoseCorrection.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/anim/PoseCorrection.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/anim/PoseCorrection.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/BoneCorrection.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/CompareBone.hpp>
namespace RED4ext
{
nam... | 28.642857 | 75 | 0.744389 | jackhumbert |
6b7f453197e20686fd56e8b181c4383fa5f40bca | 330 | cpp | C++ | jargonlib/src/Math/Utilities.cpp | jasonmray/NeuralNetworks | 037d038d5bdf62cb898ee3cd8ee84aca9ef92ee2 | [
"MIT"
] | null | null | null | jargonlib/src/Math/Utilities.cpp | jasonmray/NeuralNetworks | 037d038d5bdf62cb898ee3cd8ee84aca9ef92ee2 | [
"MIT"
] | null | null | null | jargonlib/src/Math/Utilities.cpp | jasonmray/NeuralNetworks | 037d038d5bdf62cb898ee3cd8ee84aca9ef92ee2 | [
"MIT"
] | null | null | null |
#include "Math.h"
namespace Jargon{
namespace Math{
double lerp(double min, double max, double t){
return min + (max - min) * t;
}
double rangeMap(double val, double sourceMin, double sourceMax, double destMin, double destMax){
return (val - sourceMin) / (sourceMax - sourceMin) * (destMax - destMin) + destMi... | 20.625 | 97 | 0.687879 | jasonmray |
6b876e5d9d14984abb6f34ed6fa286b15e95b153 | 20,000 | cpp | C++ | libraries/cor_mruby_interface/sources/basic_bind/cor_mruby_sub_2.cpp | rmake/cor-engine | d8920325db490d19dc8c116ab8e9620fe55e9975 | [
"MIT"
] | 4 | 2015-01-13T09:55:02.000Z | 2016-09-10T03:42:23.000Z | libraries/cor_mruby_interface/sources/basic_bind/cor_mruby_sub_2.cpp | rmake/cor-engine | d8920325db490d19dc8c116ab8e9620fe55e9975 | [
"MIT"
] | null | null | null | libraries/cor_mruby_interface/sources/basic_bind/cor_mruby_sub_2.cpp | rmake/cor-engine | d8920325db490d19dc8c116ab8e9620fe55e9975 | [
"MIT"
] | 2 | 2015-01-22T02:30:29.000Z | 2021-05-10T06:56:49.000Z | #include "cor_type/sources/basic_types.h"
#include "cor_type/sources/collision/collision_2d.h"
#include "cor_type/sources/collision/collision_2d_tmpl.h"
#include "cor_type/sources/cor_type.h"
#include "cor_type/sources/math/matrix4x4.h"
#include "cor_type/sources/math/matrix4x4_tmpl.h"
#include "cor_type/sources/math/v... | 42.016807 | 226 | 0.64695 | rmake |
6b8c921f1662d78d96f3a6eaebb7b8fd6ac5cdc6 | 970 | hpp | C++ | libs/core/include/fcppt/either/output.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/either/output.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/either/output.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_EITHER_OUTPUT_HPP_INCLUDED
#define FCPPT_EITHER_OUTPUT_HPP_INCLUDED
#include <fcppt... | 13.857143 | 61 | 0.685567 | pmiddend |
6b8e7bd146b7fad9aa010e23f2b7ecbc1d7073d4 | 508 | cpp | C++ | BOJ_CPP/1120.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/1120.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/1120.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
using namespace std;
int main() {
fastio;
string s1, s2;
cin >> s1 >> s2;
int len1 = s1.length(), len2 = s2.length(), len3 = len2 - len1, mn = INT_MAX;
for (int i = 0; i <= len3; ++i) {
int cnt = 0;
... | 23.090909 | 81 | 0.44685 | tnsgh9603 |
6b92b90675f5fda0af299e45a55599c8ff8b7031 | 338 | cpp | C++ | cpp-lib/examples/example2/main.cpp | lbteixeira/code-starters | a2805511064e43c2f79e659dfa7da0910110680c | [
"MIT"
] | 1 | 2021-10-13T12:21:06.000Z | 2021-10-13T12:21:06.000Z | cpp-lib/examples/example2/main.cpp | lbteixeira/code-starters | a2805511064e43c2f79e659dfa7da0910110680c | [
"MIT"
] | null | null | null | cpp-lib/examples/example2/main.cpp | lbteixeira/code-starters | a2805511064e43c2f79e659dfa7da0910110680c | [
"MIT"
] | null | null | null | #include <iostream>
#include "project_name/namespace1/add.hpp"
#include "project_name/namespace2/subtract.hpp"
int main(){
int i = 2;
int j = 1;
std::cout << "2 + 1 = " <<
project_name::namespace1::add(i, j) << std::endl;
std::cout << "2 - 1 = " <<
project_name::namespace2::subtract(i, j) << std::end... | 19.882353 | 58 | 0.606509 | lbteixeira |
6b9311ffda2b5d4aa83330aec6afd39982ca39a3 | 52 | hpp | C++ | src/boost_spirit_home_x3_char_char_class.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_x3_char_char_class.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_x3_char_char_class.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/x3/char/char_class.hpp>
| 26 | 51 | 0.788462 | miathedev |
6b98d17e8df87db59f964299db845c0d16d9f30b | 852 | cpp | C++ | UVA/10192.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | UVA/10192.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | UVA/10192.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | /**
* author: MaGnsi0
* created: 04/09/2021 18:40:35
**/
#include <bits/stdc++.h>
using namespace std;
bool input(string& a, string& b) {
getline(cin, a);
if (a[0] == '#') {
return false;
}
getline(cin, b);
return true;
}
int main() {
ios_base::sync_with_stdio (0); cin.tie (0)... | 25.818182 | 98 | 0.416667 | MaGnsio |
6b9927c2ccc7562e817a097dcf7071c03bde07af | 682 | hpp | C++ | Tensor/Vector/vec3.hpp | solarbro/PHM | 6c40e7592ad3c13d270530ed942a2d4c757a8446 | [
"MIT"
] | null | null | null | Tensor/Vector/vec3.hpp | solarbro/PHM | 6c40e7592ad3c13d270530ed942a2d4c757a8446 | [
"MIT"
] | null | null | null | Tensor/Vector/vec3.hpp | solarbro/PHM | 6c40e7592ad3c13d270530ed942a2d4c757a8446 | [
"MIT"
] | null | null | null | /******************************************************************************/
/*!
\file vec3.hpp
\author Sagnik Chowdhury
\brief vec3 special operations
*/
/******************************************************************************/
#include "vector.hpp"
namespace phm
{
template <typename T>
using ve... | 26.230769 | 80 | 0.414956 | solarbro |
6b9ab1cec91be200cb69c762b369290ed3e10098 | 916 | cpp | C++ | source/octf/utils/internal/FrameworkConfigurationInternal.cpp | mmkayPL/open-cas-telemetry-framework | 8acfff375948375dee212170257870c681a49604 | [
"BSD-3-Clause-Clear"
] | null | null | null | source/octf/utils/internal/FrameworkConfigurationInternal.cpp | mmkayPL/open-cas-telemetry-framework | 8acfff375948375dee212170257870c681a49604 | [
"BSD-3-Clause-Clear"
] | null | null | null | source/octf/utils/internal/FrameworkConfigurationInternal.cpp | mmkayPL/open-cas-telemetry-framework | 8acfff375948375dee212170257870c681a49604 | [
"BSD-3-Clause-Clear"
] | null | null | null | /*
* Copyright(c) 2012-2018 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
#include <octf/utils/internal/FrameworkConfigurationInternal.h>
#include <mutex>
#include <octf/utils/Exception.h>
#include <octf/utils/ProtobufReaderWriter.h>
namespace octf {
namespace proto {
FrameworkConfiguration ... | 23.487179 | 67 | 0.699782 | mmkayPL |
6b9cea095c61f30701209887be299203bb3a2192 | 6,040 | cc | C++ | cccc/cccc_met.cc | bbannier/cccc | ff4e76179f7a13781575d173867de0311419f4ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2016-10-07T14:26:42.000Z | 2016-10-07T14:26:42.000Z | cccc/cccc_met.cc | bbannier/cccc | ff4e76179f7a13781575d173867de0311419f4ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | cccc/cccc_met.cc | bbannier/cccc | ff4e76179f7a13781575d173867de0311419f4ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | /*
CCCC - C and C++ Code Counter
Copyright (C) 1994-2005 Tim Littlefair (tim_littlefair@hotmail.com)
This program 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 2 of the Licens... | 29.320388 | 77 | 0.686424 | bbannier |
6b9d2e6bf2726cf1fe12206ea6807a0d1a113a91 | 130 | cpp | C++ | src/examples/fixedwing_control/mainfiles/main1_goodvx (copy).cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | src/examples/fixedwing_control/mainfiles/main1_goodvx (copy).cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | src/examples/fixedwing_control/mainfiles/main1_goodvx (copy).cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:e39dc1ba1962fa2fbfd8a12fd487c4d2945d87918d932af0ec235c4be7b4021b
size 36998
| 32.5 | 75 | 0.884615 | Diksha-agg |
6b9ecb4fbbc74885327858aaa72f5c7bfb0787cb | 2,131 | cpp | C++ | ising/src/ising_2d.cpp | flwende/computational_physics | d8d3b1e2508791fa5955054727c5b5b2b84b98fe | [
"BSD-2-Clause"
] | null | null | null | ising/src/ising_2d.cpp | flwende/computational_physics | d8d3b1e2508791fa5955054727c5b5b2b84b98fe | [
"BSD-2-Clause"
] | null | null | null | ising/src/ising_2d.cpp | flwende/computational_physics | d8d3b1e2508791fa5955054727c5b5b2b84b98fe | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2017-2018 Florian Wende (flwende@gmail.com)
//
// Distributed under the BSD 2-clause Software License
// (See accompanying file LICENSE)
#include <iostream>
#include <cstdlib>
#include <cstdint>
#include <omp.h>
#include <spin_system.hpp>
static constexpr std::size_t n_0_default = 32;
static constexp... | 30.014085 | 107 | 0.674331 | flwende |
6ba475b919739ff1174c5270e1cf0f13d8550aba | 413 | cpp | C++ | URI/Beginner/The Race of Slugs.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | URI/Beginner/The Race of Slugs.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | URI/Beginner/The Race of Slugs.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int N = 0;
int t = 0, x = 0;
int main () {
while (cin >> N && !cin.eof()){
for (int i = 0; i < N; i++){
cin >> t;
x = max(x, t);
}
cout << ((x >= 20)? 3 : (x >= 10)? 2 : 1) << '\n';
x = 0;
}
return 0;
}
/*
input:-
-----------
10 10 10 10 10 15 18 20 ... | 12.90625 | 80 | 0.428571 | Mhmd-Hisham |
6ba64c095158a270b5cde7a45e48741fbe3527d5 | 1,605 | hpp | C++ | include/GlobalNamespace/ICubeNoteMirrorable.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/ICubeNoteMirrorable.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/ICubeNoteMirrorable.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
// Including type: INoteMirrorable
#include "GlobalNamespace/INoteMirrorable.hpp"
// Completed includes
// Begin forward declares
// Forward declaring na... | 38.214286 | 89 | 0.737072 | darknight1050 |
6ba9bc4ca72538105621c803e2c070ed3f63a757 | 3,217 | cpp | C++ | tags/20090801_v0.2.0/src/singlePlayer/db/bean/CPfSeasons.cpp | dividio/projectfootball | 3c0b94937de2e3cd6e7daf9d3b4942fda974f20c | [
"Zlib"
] | null | null | null | tags/20090801_v0.2.0/src/singlePlayer/db/bean/CPfSeasons.cpp | dividio/projectfootball | 3c0b94937de2e3cd6e7daf9d3b4942fda974f20c | [
"Zlib"
] | null | null | null | tags/20090801_v0.2.0/src/singlePlayer/db/bean/CPfSeasons.cpp | dividio/projectfootball | 3c0b94937de2e3cd6e7daf9d3b4942fda974f20c | [
"Zlib"
] | null | null | null | /******************************************************************************
* Copyright (C) 2009 - Ikaro Games www.ikarogames.com *
* *
* This program is free software; you can redistribute it and/or *
... | 27.033613 | 79 | 0.503264 | dividio |
6bb17685a5a6d4bf650eb9cf767bdde148812f0f | 608 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/Classic XmlAttributeEventArgs.ObjectBeingDeserialized Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Remoting/Classic XmlAttributeEventArgs.ObjectBeingDeserialized Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Remoting/Classic XmlAttributeEventArgs.ObjectBeingDeserialized Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z | #using <System.Xml.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
using namespace System::Xml::Serialization;
public ref class Sample
{
// <Snippet1>
private:
void serializer_UnknownAttribute( Object^ /*sender*/, XmlAttributeEventArgs^ e )
{
System::X... | 27.636364 | 84 | 0.643092 | hamarb123 |
6bc070ba954c581f1f42b2dba81e1155a756e28d | 8,671 | cpp | C++ | gamecode.cpp | lukesalisbury/protowork | 498451a097e8b7cb944a2ad7bd3b296e9a08139f | [
"Zlib"
] | null | null | null | gamecode.cpp | lukesalisbury/protowork | 498451a097e8b7cb944a2ad7bd3b296e9a08139f | [
"Zlib"
] | null | null | null | gamecode.cpp | lukesalisbury/protowork | 498451a097e8b7cb944a2ad7bd3b296e9a08139f | [
"Zlib"
] | null | null | null | /***********************************************************************************************************************
Copyright © Luke Salisbury
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held
liable for any damages arising from the use of this softwar... | 34.003922 | 176 | 0.619536 | lukesalisbury |
6bd4b75db12d4ea69cabc1fce1a6bf90cf91366d | 4,394 | cpp | C++ | src/backend/Game.cpp | Witek902/Caissa | 07bb81e7cae23ea18bb44870d1c1eaa038ab0355 | [
"MIT"
] | 3 | 2022-01-11T22:37:06.000Z | 2022-01-18T17:40:48.000Z | src/backend/Game.cpp | Witek902/Caissa | 07bb81e7cae23ea18bb44870d1c1eaa038ab0355 | [
"MIT"
] | 1 | 2021-11-12T00:38:30.000Z | 2021-11-12T00:38:30.000Z | src/backend/Game.cpp | Witek902/Caissa | 07bb81e7cae23ea18bb44870d1c1eaa038ab0355 | [
"MIT"
] | null | null | null | #include "Game.hpp"
#include "Evaluate.hpp"
#include <sstream>
Game::Game()
: mInitPosition(Position::InitPositionFEN)
, mPosition(Position::InitPositionFEN)
, mForcedScore(Score::Unknown)
{}
void Game::Reset(const Position& pos)
{
mInitPosition = pos;
mPosition = pos;
mForcedScore = Score::U... | 21.125 | 100 | 0.588985 | Witek902 |
6bd6bdb3e145a639660a4568ceed5a66baaff5a0 | 5,943 | hpp | C++ | include/e4pp/buffer_event.hpp | ikonopistsev/e4pp | 780859ea4b9c7618fa574322354bf08e47147716 | [
"Apache-2.0"
] | null | null | null | include/e4pp/buffer_event.hpp | ikonopistsev/e4pp | 780859ea4b9c7618fa574322354bf08e47147716 | [
"Apache-2.0"
] | null | null | null | include/e4pp/buffer_event.hpp | ikonopistsev/e4pp | 780859ea4b9c7618fa574322354bf08e47147716 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "e4pp/dns.hpp"
#include "e4pp/buffer.hpp"
#include "event2/bufferevent.h"
#include <functional>
#include <mutex>
namespace e4pp {
using buffer_event_handle_type = bufferevent*;
class buffer_event final
{
public:
using handle_type = buffer_event_handle_type;
private:
struct deallocat... | 24.356557 | 84 | 0.632677 | ikonopistsev |
6bdfae85d8e9f090820cff92458863f4d5defd92 | 23,089 | cpp | C++ | cores/arduino/USBCore.cpp | djix123/ArduinoCore-GD32 | 4f31b65c0f25895645fd18b206b9157db6e52545 | [
"Apache-2.0"
] | null | null | null | cores/arduino/USBCore.cpp | djix123/ArduinoCore-GD32 | 4f31b65c0f25895645fd18b206b9157db6e52545 | [
"Apache-2.0"
] | null | null | null | cores/arduino/USBCore.cpp | djix123/ArduinoCore-GD32 | 4f31b65c0f25895645fd18b206b9157db6e52545 | [
"Apache-2.0"
] | null | null | null | #ifdef USBCON
#include "USBCore.h"
extern "C" {
#include "gd32/usb.h"
#include "usbd_enum.h"
#include "usbd_lld_regs.h"
#include "usbd_transc.h"
}
#include <cassert>
/*
* DO NOT CHANGE THESE VALUES.
*
* They are also used by the firmware library’s internal
* functions. Changing them here may cause that to break.... | 27.885266 | 105 | 0.575772 | djix123 |
6be299b7983e8c63998c25abf9496e1c0ee70e07 | 6,540 | cpp | C++ | system/receiver.cpp | oliver-peoples/ACTAN-GS | 4ce7b8e48e9e6c57c43790fb369713f59b5e11f9 | [
"Unlicense"
] | null | null | null | system/receiver.cpp | oliver-peoples/ACTAN-GS | 4ce7b8e48e9e6c57c43790fb369713f59b5e11f9 | [
"Unlicense"
] | null | null | null | system/receiver.cpp | oliver-peoples/ACTAN-GS | 4ce7b8e48e9e6c57c43790fb369713f59b5e11f9 | [
"Unlicense"
] | null | null | null | #include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/video.hpp>
#include <vector>
#include <string>
#include <iostream>
#include <thread>
#include <pthread.h>
#include <system/ground_station.hpp>
#include <system/receiver.hpp>
#incl... | 30.277778 | 282 | 0.66315 | oliver-peoples |
6be4addbc1a65b015c9131afaf5f6b25b4f26ff3 | 3,352 | cpp | C++ | format/tables/CustomAttributeTable.cpp | eladraz/morph | e80b93af449471fb2ca9e256188f9a92f631fbc2 | [
"BSD-3-Clause"
] | 4 | 2017-01-24T09:32:23.000Z | 2021-08-20T03:29:54.000Z | format/tables/CustomAttributeTable.cpp | eladraz/morph | e80b93af449471fb2ca9e256188f9a92f631fbc2 | [
"BSD-3-Clause"
] | null | null | null | format/tables/CustomAttributeTable.cpp | eladraz/morph | e80b93af449471fb2ca9e256188f9a92f631fbc2 | [
"BSD-3-Clause"
] | 1 | 2021-08-20T03:29:55.000Z | 2021-08-20T03:29:55.000Z | /*
* Copyright (c) 2008-2016, Integrity Project Ltd. 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 list ... | 33.52 | 78 | 0.728819 | eladraz |
6be5e66ddd7ee5f8316f2039e1e09857beeff1ec | 3,804 | cpp | C++ | fft_number_theoretic.cpp | nahum-maurice/Fast-Fourier-Transform | d1711702ed3e36cf746e2fdcbf6568c6c900c153 | [
"MIT"
] | 1 | 2022-01-22T19:43:33.000Z | 2022-01-22T19:43:33.000Z | fft_number_theoretic.cpp | nahum-maurice/Fast-Fourier-Transform | d1711702ed3e36cf746e2fdcbf6568c6c900c153 | [
"MIT"
] | null | null | null | fft_number_theoretic.cpp | nahum-maurice/Fast-Fourier-Transform | d1711702ed3e36cf746e2fdcbf6568c6c900c153 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2021 Nahum Maurice
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, ... | 33.078261 | 78 | 0.623028 | nahum-maurice |
6becef983f5298a192feff77374f44882294277c | 1,107 | cpp | C++ | PushDominoes/push_dominoes.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | 1 | 2019-10-07T05:00:21.000Z | 2019-10-07T05:00:21.000Z | PushDominoes/push_dominoes.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | PushDominoes/push_dominoes.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | class Solution {
public:
string pushDominoes(string dominoes) {
int n = dominoes.size();
if (n < 2)
return dominoes;
int i = 0;
while (i < n && dominoes[i] == '.')
++i;
if (i >= n)
return dominoes;
if (dominoes[i] == 'L')
for (i... | 19.767857 | 44 | 0.317073 | suzyz |
6bf0eb9ae9cc696fb8ecd70fadcbe344755c0dbc | 828 | hpp | C++ | external/boost_1_60_0/qsboost/preprocessor/iteration/self.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/preprocessor/iteration/self.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/preprocessor/iteration/self.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | # /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt... | 41.4 | 83 | 0.44686 | wouterboomsma |
6bf17fd2d85f888ca46ab61f8b55734bda3827d7 | 1,191 | hpp | C++ | sprout/weed/attr_cnv/negate.hpp | EzoeRyou/Sprout | 12e12373d0f70543eac5f2ecfbec8f5112765f98 | [
"BSL-1.0"
] | 1 | 2016-09-29T21:55:58.000Z | 2016-09-29T21:55:58.000Z | sprout/weed/attr_cnv/negate.hpp | EzoeRyou/Sprout | 12e12373d0f70543eac5f2ecfbec8f5112765f98 | [
"BSL-1.0"
] | null | null | null | sprout/weed/attr_cnv/negate.hpp | EzoeRyou/Sprout | 12e12373d0f70543eac5f2ecfbec8f5112765f98 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2011-2014 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx... | 33.083333 | 80 | 0.61293 | EzoeRyou |
6bf1c53c4dbf2d6ef5e9e9647a07efe8c4a7c6fd | 6,472 | hh | C++ | fgl/include/OpenMesh/Core/Utils/vector_cast.hh | dmitriychunikhin/fgl | 5d79c1e92e62d2d6e33413ee3f7e48b1c2322d4c | [
"BSD-2-Clause"
] | null | null | null | fgl/include/OpenMesh/Core/Utils/vector_cast.hh | dmitriychunikhin/fgl | 5d79c1e92e62d2d6e33413ee3f7e48b1c2322d4c | [
"BSD-2-Clause"
] | null | null | null | fgl/include/OpenMesh/Core/Utils/vector_cast.hh | dmitriychunikhin/fgl | 5d79c1e92e62d2d6e33413ee3f7e48b1c2322d4c | [
"BSD-2-Clause"
] | null | null | null | /*===========================================================================*\
* *
* OpenMesh *
* Copyright (C) 2001-2012 by Computer Graphics Group, RWTH Aachen *
* ... | 35.173913 | 91 | 0.424753 | dmitriychunikhin |
6bf26c6e392ea37ea99c06761763d3005b38ae09 | 1,659 | cpp | C++ | DarkSpace/VerbCommandShip.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | 1 | 2016-05-22T21:28:29.000Z | 2016-05-22T21:28:29.000Z | DarkSpace/VerbCommandShip.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | DarkSpace/VerbCommandShip.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | /*
VerbCommandShip.cpp
(c)2004 Palestar Inc, Richard Lyle
*/
//----------------------------------------------------------------------------
#include "Debug/Assert.h"
#include "World/NounTarget.h"
#include "VerbCommandShip.h"
#include "VerbEnterOrbit.h"
#include "resource.h"
#include "GameContext.h"
//------------... | 22.418919 | 86 | 0.555154 | SnipeDragon |
6bf3dae6eb3926da00bc4d5c93efe613c3002cde | 697 | cpp | C++ | topic_wise/bitmasking/subsetSumLessThanEqualToLimit.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | 1 | 2021-01-27T16:37:36.000Z | 2021-01-27T16:37:36.000Z | topic_wise/bitmasking/subsetSumLessThanEqualToLimit.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | topic_wise/bitmasking/subsetSumLessThanEqualToLimit.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
void init(){
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
}
int countSubsets(vector<int> &v,int limit){
int n=v.size();
int len=pow(2,n);
int ans=0;
for(int i=0;i<len;i++){
int sum=0;
for(int j=0;j<n;j++){
... | 15.488889 | 43 | 0.469154 | archit-1997 |
6bf58bc32a7885dc32f3d67d70361b077077aa54 | 32,816 | cc | C++ | src/msgserver/MsgServer.cc | jkbs487/imlite | e792aac1567ba46d3a304d8dc7288a6c100c9147 | [
"Apache-2.0"
] | null | null | null | src/msgserver/MsgServer.cc | jkbs487/imlite | e792aac1567ba46d3a304d8dc7288a6c100c9147 | [
"Apache-2.0"
] | null | null | null | src/msgserver/MsgServer.cc | jkbs487/imlite | e792aac1567ba46d3a304d8dc7288a6c100c9147 | [
"Apache-2.0"
] | null | null | null | #include "MsgServer.h"
#include "slite/Logger.h"
#include "ImUser.h"
#include "ClientConnInfo.h"
#include "FileConnInfo.h"
#include <sys/time.h>
using namespace IM;
using namespace slite;
using namespace std::placeholders;
//static uint32_t g_dbServerLoginCount;
extern uint32_t g_downMsgMissCnt;
extern uint32_t g_d... | 40.563659 | 145 | 0.633776 | jkbs487 |
6bf6d080fcb8be3081687bda765f7fdbe1b58b33 | 1,237 | cc | C++ | code30/cpp/20190808/TemplateSingleton2.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | 2 | 2020-12-09T09:55:51.000Z | 2021-01-08T11:38:22.000Z | code30/cpp/20190808/TemplateSingleton2.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | code30/cpp/20190808/TemplateSingleton2.cc | stdbilly/CS_Note | a8a87e135a525d53c283a4c70fb942c9ca59a758 | [
"MIT"
] | null | null | null | ///
/// @file TemplateSingleton.cc
/// @author lemon(haohb13@gmail.com)
/// @date 2019-08-08 09:49:34
///
#include <pthread.h>
#include <iostream>
using std::cout;
using std::endl;
template <class T>
class Singleton
{
public:
static T * getInstance()
{
pthread_once(&_once,init);
return _pInstance... | 14.218391 | 55 | 0.606306 | stdbilly |
6bfbb750cb403feadf424fd73d36a4b71dedd956 | 19,637 | cpp | C++ | libs/base/src/buffer.cpp | dccarter/suil | f97fc45deee53fef3e47b070d00b12786ef367b4 | [
"MIT"
] | 6 | 2019-06-18T03:17:50.000Z | 2022-03-05T08:23:38.000Z | libs/base/src/buffer.cpp | dccarter/suil | f97fc45deee53fef3e47b070d00b12786ef367b4 | [
"MIT"
] | 1 | 2021-09-10T06:15:02.000Z | 2021-09-10T06:15:02.000Z | libs/base/src/buffer.cpp | dccarter/suil | f97fc45deee53fef3e47b070d00b12786ef367b4 | [
"MIT"
] | null | null | null | //
// Created by Mpho Mbotho on 2020-10-07.
//
#include "suil/base/buffer.hpp"
#include "suil/base/exception.hpp"
#include "suil/base/datetime.hpp"
#include "suil/base/string.hpp"
#include <algorithm>
#include <cstdarg>
namespace suil {
uint8_t& Buffer::operator[](size_t index)
{
if (index <= m_off... | 32.619601 | 100 | 0.501757 | dccarter |
6bfe3966b6f421eac4fc87b636b961f8227f0b11 | 1,523 | hpp | C++ | include/tinycoro/io/IOOperation.hpp | asmei1/tinycoro | 5b6d3dc9412c8c9e369f652707894a586a8bd9a8 | [
"MIT"
] | 7 | 2020-12-21T02:16:33.000Z | 2022-03-18T23:57:05.000Z | include/tinycoro/io/IOOperation.hpp | asmei1/tinycoro | 5b6d3dc9412c8c9e369f652707894a586a8bd9a8 | [
"MIT"
] | null | null | null | include/tinycoro/io/IOOperation.hpp | asmei1/tinycoro | 5b6d3dc9412c8c9e369f652707894a586a8bd9a8 | [
"MIT"
] | null | null | null | //
// Created by Asmei on 12/12/2020.
//
#ifndef TINYCORO_IOOPERATION_HPP
#define TINYCORO_IOOPERATION_HPP
#include <unistd.h>
#include <sys/epoll.h>
namespace tinycoro::io
{
struct IOOperationCancel
{
};
class IOContext;
class IOOperation
{
public:
virtual ~IOOperation() = defau... | 23.430769 | 113 | 0.577807 | asmei1 |
6bff4caa355526638141fd1e087a245224366c49 | 68,053 | cc | C++ | thirdparty/aria2/src/OptionHandlerFactory.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | null | null | null | thirdparty/aria2/src/OptionHandlerFactory.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | 2 | 2021-04-08T08:46:23.000Z | 2021-04-08T08:57:58.000Z | thirdparty/aria2/src/OptionHandlerFactory.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | null | null | null | /* <!-- copyright */
/*
* aria2 - The high speed download utility
*
* Copyright (C) 2006 Tatsuhiro Tsujikawa
*
* This program 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 2 of the Lice... | 34.163153 | 80 | 0.645423 | deltegic |
d4000a3da8b18b706a159d4a412863da61d8fc3b | 4,119 | cpp | C++ | OpenCP/noise.cpp | norishigefukushima/OpenCP | 63090131ec975e834f85b04e84ec29b2893845b2 | [
"BSD-3-Clause"
] | 137 | 2015-03-27T07:11:19.000Z | 2022-03-30T05:58:22.000Z | OpenCP/noise.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 2 | 2016-05-18T06:33:16.000Z | 2016-07-11T17:39:17.000Z | OpenCP/noise.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 43 | 2015-02-20T15:34:25.000Z | 2022-01-27T14:59:37.000Z | #include "noise.hpp"
using namespace std;
using namespace cv;
namespace cp
{
template <class srcType>
static void addNoiseSoltPepperMono_(Mat& src, Mat& dest, const double per, const uint64 seed)
{
cv::RNG rng;
if (seed != 0) rng.state = seed;
else rng.state = cv::getTickCount();
for (int j = 0; j < src.r... | 25.583851 | 110 | 0.637776 | norishigefukushima |
d401b822312179288d589ae4b5150a7130c1bdc4 | 6,910 | cpp | C++ | server/src/foobar2000/settings_page.cpp | courtarro/beefweb | 879f68d8be5339c73b02bf32c9fa39027cd66fab | [
"MIT"
] | null | null | null | server/src/foobar2000/settings_page.cpp | courtarro/beefweb | 879f68d8be5339c73b02bf32c9fa39027cd66fab | [
"MIT"
] | null | null | null | server/src/foobar2000/settings_page.cpp | courtarro/beefweb | 879f68d8be5339c73b02bf32c9fa39027cd66fab | [
"MIT"
] | null | null | null | #include "settings_page.hpp"
#include "settings.hpp"
#include "plugin.hpp"
#include "resource.h"
#include "../log.hpp"
#include "../system.hpp"
#include "../project_info.hpp"
namespace msrv {
namespace player_foobar2000 {
// {69188A07-E885-462D-81B0-819768D56C06}
const GUID SettingsPage::guid_ =
{ 0x69188a07, 0x... | 25.977444 | 97 | 0.686107 | courtarro |
d402f174660c8af4face333a9a044fc39ddbd383 | 1,167 | hpp | C++ | 3rdparty/libprocess/3rdparty/stout/include/stout/os/windows/shell.hpp | NinthDecimal/mesos | 601c3cd3dfaa8e353a1f404676bf779bd2989843 | [
"Apache-2.0"
] | null | null | null | 3rdparty/libprocess/3rdparty/stout/include/stout/os/windows/shell.hpp | NinthDecimal/mesos | 601c3cd3dfaa8e353a1f404676bf779bd2989843 | [
"Apache-2.0"
] | null | null | null | 3rdparty/libprocess/3rdparty/stout/include/stout/os/windows/shell.hpp | NinthDecimal/mesos | 601c3cd3dfaa8e353a1f404676bf779bd2989843 | [
"Apache-2.0"
] | null | null | null | /**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | 29.923077 | 77 | 0.744644 | NinthDecimal |
d40532a9cf3ad8ad216feb251e3288b13e2c2e03 | 201 | cpp | C++ | src/cutvm_generator.cpp | cuttle-system/cuttle-lang | 1b3ba8d81d2300dff1369801da2f712b77dcb6f4 | [
"MIT"
] | null | null | null | src/cutvm_generator.cpp | cuttle-system/cuttle-lang | 1b3ba8d81d2300dff1369801da2f712b77dcb6f4 | [
"MIT"
] | null | null | null | src/cutvm_generator.cpp | cuttle-system/cuttle-lang | 1b3ba8d81d2300dff1369801da2f712b77dcb6f4 | [
"MIT"
] | null | null | null | #include "generator_config.hpp"
#include "cutvm_generator.hpp"
void cuttle::lang::get_cutvm_generator_config(generator_config_t &generator_config) {
generator_config.joined_functions = {"call"};
} | 33.5 | 85 | 0.800995 | cuttle-system |
d4075c01bb9c1e32d7a8f5f6cab49cc0db0fb714 | 2,688 | cpp | C++ | test/concurrency/local_epoch_test.cpp | phisiart/peloton | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | 1 | 2017-04-17T15:19:36.000Z | 2017-04-17T15:19:36.000Z | test/concurrency/local_epoch_test.cpp | phisiart/peloton | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | 5 | 2017-04-23T17:16:14.000Z | 2017-04-25T03:14:16.000Z | test/concurrency/local_epoch_test.cpp | phisiart/peloton-p3 | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Peloton
//
// decentralized_epoch_manager_test.cpp
//
// Identification: test/concurrency/local_epoch_test.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===-------------------... | 27.428571 | 80 | 0.632813 | phisiart |
d40afc192700e63c58eeb916a818c3a573ac983e | 21,421 | hh | C++ | dune/gdt/operators/bilinear-form.hh | pymor/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 4 | 2018-10-12T21:46:08.000Z | 2020-08-01T18:54:02.000Z | dune/gdt/operators/bilinear-form.hh | dune-community/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 154 | 2016-02-16T13:50:54.000Z | 2021-12-13T11:04:29.000Z | dune/gdt/operators/bilinear-form.hh | dune-community/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 5 | 2016-03-02T10:11:20.000Z | 2020-02-08T03:56:24.000Z | // This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensource.org/lice... | 42.501984 | 120 | 0.625928 | pymor |
d40bd5ba16bcb1cab9e3547d0c245d6ffeeee9ad | 1,598 | cpp | C++ | sdk/example/example.cpp | Syr0/openprocmon | 2a4b7b9f5da97215fcb59354a2951a62a3aa41a7 | [
"MIT"
] | 90 | 2020-07-28T06:44:56.000Z | 2022-03-10T03:59:33.000Z | sdk/example/example.cpp | Syr0/openprocmon | 2a4b7b9f5da97215fcb59354a2951a62a3aa41a7 | [
"MIT"
] | 4 | 2021-02-24T09:13:27.000Z | 2022-01-18T08:44:52.000Z | sdk/example/example.cpp | Syr0/openprocmon | 2a4b7b9f5da97215fcb59354a2951a62a3aa41a7 | [
"MIT"
] | 27 | 2020-07-28T06:49:22.000Z | 2022-02-14T05:09:56.000Z | // sdktest.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <conio.h>
#include <atltime.h>
#include "../../sdk/procmonsdk/sdk.hpp"
class CMyEvent : public IEventCallback
{
public:
virtual BOOL DoEvent(const CRefPtr<CEventView> pEventView)
{
ULONGLO... | 20.487179 | 98 | 0.652065 | Syr0 |
d40f2b00eba4f5cbd240c1c196ba4f2e6ffe3058 | 725 | cpp | C++ | 4.StudyPlan/2.Programming Skills/Programming Skills I/896. Monotonic Array.cpp | HanumantappaBudihal/LeetCode-Solutions | d46ad49f59e14798ff1716f1259a3e04c7aa3d17 | [
"MIT"
] | null | null | null | 4.StudyPlan/2.Programming Skills/Programming Skills I/896. Monotonic Array.cpp | HanumantappaBudihal/LeetCode-Solutions | d46ad49f59e14798ff1716f1259a3e04c7aa3d17 | [
"MIT"
] | null | null | null | 4.StudyPlan/2.Programming Skills/Programming Skills I/896. Monotonic Array.cpp | HanumantappaBudihal/LeetCode-Solutions | d46ad49f59e14798ff1716f1259a3e04c7aa3d17 | [
"MIT"
] | null | null | null | #include<vector>
using namespace std;
class Solution {
public:
bool isMonotonic(vector<int>& nums) {
int forwardTrue=true;
for(int i=0;i<nums.size()-1;i++)
{
if(nums[i]>nums[i+1])
{
forwardTrue=false;
break;
... | 21.323529 | 45 | 0.346207 | HanumantappaBudihal |
d4124cf72619394d177ef087981bbc634395dc3f | 3,588 | cpp | C++ | Gems/AWSGameLift/Code/AWSGameLiftClient/Source/Activity/AWSGameLiftCreateSessionOnQueueActivity.cpp | DongerZone/o3de | 950335e86fc0f59f7da9b219a7578a07cb18d609 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | Gems/AWSGameLift/Code/AWSGameLiftClient/Source/Activity/AWSGameLiftCreateSessionOnQueueActivity.cpp | DongerZone/o3de | 950335e86fc0f59f7da9b219a7578a07cb18d609 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/AWSGameLift/Code/AWSGameLiftClient/Source/Activity/AWSGameLiftCreateSessionOnQueueActivity.cpp | DongerZone/o3de | 950335e86fc0f59f7da9b219a7578a07cb18d609 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AWSGameLiftSessionConstants.h>
#include <Activity/AWSGameLiftCreateSessionOnQueueActivity.... | 47.210526 | 158 | 0.688127 | DongerZone |
d41366aa7242bb05ce71972d1afbb7c4c6c88776 | 13,036 | cpp | C++ | src/particle_filter.cpp | wizardkeven/Guokai-Kidnapped-Vehicle-Project | f37278caf2b4942be2d39d5a11320ab1453d3a66 | [
"MIT"
] | null | null | null | src/particle_filter.cpp | wizardkeven/Guokai-Kidnapped-Vehicle-Project | f37278caf2b4942be2d39d5a11320ab1453d3a66 | [
"MIT"
] | null | null | null | src/particle_filter.cpp | wizardkeven/Guokai-Kidnapped-Vehicle-Project | f37278caf2b4942be2d39d5a11320ab1453d3a66 | [
"MIT"
] | null | null | null | /*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: Tiffany Huang
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
using namespace std;
... | 37.139601 | 166 | 0.670068 | wizardkeven |
d41792bdbf15b06b7329ccb17aa5b7a06562d690 | 604 | hpp | C++ | utility/Quaternion.hpp | coolzoom/namigator | 722a9f9e71ac5091acfad6ad53d203e1f1ffcf49 | [
"MIT"
] | null | null | null | utility/Quaternion.hpp | coolzoom/namigator | 722a9f9e71ac5091acfad6ad53d203e1f1ffcf49 | [
"MIT"
] | null | null | null | utility/Quaternion.hpp | coolzoom/namigator | 722a9f9e71ac5091acfad6ad53d203e1f1ffcf49 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
namespace math
{
struct Quaternion
{
float X;
float Y;
float Z;
float W;
Quaternion(float x = 0.0, float y = 0.0, float z = 0.0, float w = 0.0);
// printing
void Print(std::ostream& = std::cout);
// quaternion multiplication
friend Quaternion ope... | 18.30303 | 75 | 0.629139 | coolzoom |
d41a13e9057dd0e095ff1ec7ad26a76170a5859b | 282 | cpp | C++ | Arrays/kadanes.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | Arrays/kadanes.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | Arrays/kadanes.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
#include<bits/stdc++.h>
int main(){
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)cin>>arr[i];
int sum=0;
int maxsum=INT_MIN;
for(int i=0;i<n;i++)
{
sum+=arr[i];
if(sum<0)sum=0;
maxsum=max(maxsum,sum);
}
cout<<maxsum<<endl;
} | 15.666667 | 33 | 0.606383 | sans712 |
d4231e2b7a98ee296fbab909f23bd0ba6e1d0a99 | 17,246 | cpp | C++ | src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/averagepool2d/blk/averagepool2d_n16chw_blk1x8_fp32_avx.cpp | aboluock/ppl.nn | 47c786bee382cc0d779f1393bfeaa40b6ff73654 | [
"Apache-2.0"
] | 764 | 2021-06-30T13:36:15.000Z | 2022-03-31T02:29:38.000Z | src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/averagepool2d/blk/averagepool2d_n16chw_blk1x8_fp32_avx.cpp | FeiGeChuanShu/ppl.nn | 6f3477f00d174c9c2e36cfffea42d22bc357e0a5 | [
"Apache-2.0"
] | 66 | 2021-06-30T14:03:32.000Z | 2022-03-30T02:41:00.000Z | src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/averagepool2d/blk/averagepool2d_n16chw_blk1x8_fp32_avx.cpp | FeiGeChuanShu/ppl.nn | 6f3477f00d174c9c2e36cfffea42d22bc357e0a5 | [
"Apache-2.0"
] | 151 | 2021-06-30T13:43:11.000Z | 2022-03-27T07:43:55.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 51.78979 | 210 | 0.659225 | aboluock |
d426d54a0052d90f6e142d3c68ed9ea430484b1f | 2,277 | hpp | C++ | include/base_renderer.hpp | magicmoremagic/bengine-ctable | ab82acd66f3021888701fb086dcec0e0713038c2 | [
"MIT"
] | null | null | null | include/base_renderer.hpp | magicmoremagic/bengine-ctable | ab82acd66f3021888701fb086dcec0e0713038c2 | [
"MIT"
] | null | null | null | include/base_renderer.hpp | magicmoremagic/bengine-ctable | ab82acd66f3021888701fb086dcec0e0713038c2 | [
"MIT"
] | null | null | null | #pragma once
#ifndef BE_CTABLE_BASE_RENDERER_HPP_
#define BE_CTABLE_BASE_RENDERER_HPP_
#include <be/core/be.hpp>
#include <glm/vec2.hpp>
#include <ostream>
#include <type_traits>
#include <algorithm>
#include <limits>
namespace be::ct {
namespace detail {
/////////////////////////////////////////////////////////////... | 20.330357 | 103 | 0.557312 | magicmoremagic |
d42ac41ae3d4226047b02df0c38bf9ea0903ab7d | 2,065 | inl | C++ | include/Nazara/Utility/Algorithm.inl | gogo2464/NazaraEngine | f1a00c36cb27d9f07d1b7db03313e0038d9a7d00 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 376 | 2015-01-09T03:14:48.000Z | 2022-03-26T17:59:18.000Z | include/Nazara/Utility/Algorithm.inl | gogo2464/NazaraEngine | f1a00c36cb27d9f07d1b7db03313e0038d9a7d00 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 252 | 2015-01-21T17:34:39.000Z | 2022-03-20T16:15:50.000Z | include/Nazara/Utility/Algorithm.inl | gogo2464/NazaraEngine | f1a00c36cb27d9f07d1b7db03313e0038d9a7d00 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 104 | 2015-01-18T11:03:41.000Z | 2022-03-11T05:40:47.000Z | // Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Nazara Engine - Utility module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Utility/Algorithm.hpp>
#include <Nazara/Core/Algorithm.hpp>
#include <Nazara/Utility/Debug.hpp>
namespace Nz
{
template<typ... | 51.625 | 104 | 0.760291 | gogo2464 |
d42bef1963b8b7f5083725c3ba1cf8708c9bb08f | 816 | hpp | C++ | deps/zorro/Debugger.hpp | Xecutor/zorroeditor | 69627f9a555ee739ea4fce0c9eb9f589b1e7f5f9 | [
"MIT"
] | null | null | null | deps/zorro/Debugger.hpp | Xecutor/zorroeditor | 69627f9a555ee739ea4fce0c9eb9f589b1e7f5f9 | [
"MIT"
] | null | null | null | deps/zorro/Debugger.hpp | Xecutor/zorroeditor | 69627f9a555ee739ea4fce0c9eb9f589b1e7f5f9 | [
"MIT"
] | null | null | null | #ifndef __ZORRO_DEBUGGER_HPP__
#define __ZORRO_DEBUGGER_HPP__
#include "ZorroVM.hpp"
#include "SynTree.hpp"
namespace zorro {
class Debugger {
public:
Debugger(ZorroVM* argVm, StmtList* argTree) : vm(argVm), tree(argTree)
{
}
void start();
void stepOver();
void stepInto();
std::strin... | 16.653061 | 74 | 0.665441 | Xecutor |
2d6fa33ae4eafdda156b532a6f142cb4f3e981b8 | 110 | hpp | C++ | test/include/test.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | test/include/test.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | test/include/test.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #pragma once
#include "test/is_invocable.hpp"
#include "test/test_case.hpp"
#include "test/test_context.hpp"
| 18.333333 | 32 | 0.772727 | jonathanpoelen |
2d706949f837d20ea6a4d0ed627a34260910531c | 18,775 | cpp | C++ | src/game/client/c_team_objectiveresource.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/client/c_team_objectiveresource.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/client/c_team_objectiveresource.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: An entity that networks the state of the game's objectives.
//
//=============================================================================
#include "cbase.h"
#include "c_team_objectiveresource.h"
#include "igameevents.h"
#... | 45.350242 | 119 | 0.538695 | cstom4994 |
2d71b2de3718abaecf73230e8b2ce3a5d7c9dd84 | 2,805 | cp | C++ | Final/minutes_exam.cp | chenchuw/EC602-Design-by-Software | c233c9d08a67abc47235282fedd866d67ccaf4ce | [
"MIT"
] | null | null | null | Final/minutes_exam.cp | chenchuw/EC602-Design-by-Software | c233c9d08a67abc47235282fedd866d67ccaf4ce | [
"MIT"
] | null | null | null | Final/minutes_exam.cp | chenchuw/EC602-Design-by-Software | c233c9d08a67abc47235282fedd866d67ccaf4ce | [
"MIT"
] | 1 | 2022-01-11T20:23:47.000Z | 2022-01-11T20:23:47.000Z | // Midterm Two: C++
// EXAM TIMING: please read
//
// You have until 4:15pm to finish the exam
//
// Late submissions will be accepted until 4:30pm
// with a penalty of 1 point per minute.
//
// Emailed submissions will be penalized at 2 points
// per minute after 4:30pm.
// EXAM DESCRIPTION
// Your copyright noti... | 26.462264 | 74 | 0.701604 | chenchuw |
2d71c0012e22e45091fba51657efa6e49076824e | 5,990 | cpp | C++ | src/surfaces/substrate.cpp | neverfelly/LuisaRender | 2f7a2b52908b81b035d17e541df1ce3dbc18b2b8 | [
"BSD-3-Clause"
] | null | null | null | src/surfaces/substrate.cpp | neverfelly/LuisaRender | 2f7a2b52908b81b035d17e541df1ce3dbc18b2b8 | [
"BSD-3-Clause"
] | null | null | null | src/surfaces/substrate.cpp | neverfelly/LuisaRender | 2f7a2b52908b81b035d17e541df1ce3dbc18b2b8 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by Mike Smith on 2022/1/9.
//
#include <util/sampling.h>
#include <util/scattering.h>
#include <base/surface.h>
#include <base/interaction.h>
#include <base/pipeline.h>
#include <base/scene.h>
namespace luisa::render {
using namespace luisa::compute;
class SubstrateSurface final : public Surface {
pr... | 40.472973 | 104 | 0.654424 | neverfelly |
2d79635eaca2848ffda70ce784f043bec4b31543 | 2,067 | cxx | C++ | src/gadget/main_match_seg_to_truth.cxx | lejeunel/glia | 24b763a230627951139010cd07b0d0ff2356a365 | [
"MIT"
] | 11 | 2016-08-16T02:26:31.000Z | 2021-08-25T06:51:47.000Z | src/gadget/main_match_seg_to_truth.cxx | lejeunel/glia | 24b763a230627951139010cd07b0d0ff2356a365 | [
"MIT"
] | 3 | 2017-05-26T15:33:42.000Z | 2018-04-27T12:12:24.000Z | src/gadget/main_match_seg_to_truth.cxx | lejeunel/glia | 24b763a230627951139010cd07b0d0ff2356a365 | [
"MIT"
] | 9 | 2016-07-25T08:28:12.000Z | 2021-03-17T15:02:41.000Z | #include "type/region_map.hxx"
#include "util/image_io.hxx"
#include "util/image_stats.hxx"
#include "util/text_cmd.hxx"
using namespace glia;
std::string segImageFile;
std::string maskImageFile;
std::string truthImageFile;
bool operation ()
{
auto segImage = readImage<LabelImage<DIMENSION>>(segImageFile);
auto t... | 32.809524 | 72 | 0.634736 | lejeunel |
2d7d6db354be2f705947b941b052b0487941b8a0 | 993 | hh | C++ | nlp/network/storage/storage_dense_variable.hh | leaveschen/nlp-lite | 3896fbf7d024cf66f4c39a18e1101caaf574066b | [
"MIT"
] | null | null | null | nlp/network/storage/storage_dense_variable.hh | leaveschen/nlp-lite | 3896fbf7d024cf66f4c39a18e1101caaf574066b | [
"MIT"
] | null | null | null | nlp/network/storage/storage_dense_variable.hh | leaveschen/nlp-lite | 3896fbf7d024cf66f4c39a18e1101caaf574066b | [
"MIT"
] | null | null | null | //
// Created by c on 14/11/2018 11:50
//
#ifndef NLP_NETWORK_STORAGE_DENSE_VARIABLE_HH
#define NLP_NETWORK_STORAGE_DENSE_VARIABLE_HH
/* include section */
#include <third-party/eigen3/Eigen/Eigen>
#include "utility/forward_declaration.hh"
#include "network/storage.hh"
/* class & function section */
namespace nlp ... | 20.265306 | 106 | 0.721047 | leaveschen |
2d830a997143883e03fb15fea5279475eb9b9894 | 1,436 | cpp | C++ | full_code/src/Bars.cpp | polferrando98/Particle-system | ad112cb0bcf581bdb696febe7c80f32960ed546f | [
"MIT"
] | null | null | null | full_code/src/Bars.cpp | polferrando98/Particle-system | ad112cb0bcf581bdb696febe7c80f32960ed546f | [
"MIT"
] | null | null | null | full_code/src/Bars.cpp | polferrando98/Particle-system | ad112cb0bcf581bdb696febe7c80f32960ed546f | [
"MIT"
] | null | null | null | #include "Application.h"
#include "mdRender.h"
#include "Widgets.h"
#include "Bars.h"
Bars::Bars(bar_types type, std::pair<int, int> pos, Module* callback) : Widgets(ui_elem_type::BAR, pos, callback) {
bar_type = type;
getSection({ 0, 75, 228, 63 }, { 0, 298, 228, 63 });
}
Bars::~Bars(){
}
bool Bars::preUpdat... | 22.092308 | 115 | 0.706128 | polferrando98 |
2d86cdfb106c1e90e01ef53cf31711af32a57fa0 | 70,414 | cpp | C++ | SurfaceReconstruction/SurfaceReconstruction/Refinement/FSSFRefiner.cpp | pavelsevecek/TSR | ca411dedf178e5830f0536e361136f1e16751bc8 | [
"BSD-3-Clause"
] | 102 | 2017-10-17T10:10:59.000Z | 2022-01-19T02:10:29.000Z | SurfaceReconstruction/SurfaceReconstruction/Refinement/FSSFRefiner.cpp | pavelsevecek/TSR | ca411dedf178e5830f0536e361136f1e16751bc8 | [
"BSD-3-Clause"
] | 2 | 2019-12-21T11:59:15.000Z | 2020-09-08T11:38:36.000Z | SurfaceReconstruction/SurfaceReconstruction/Refinement/FSSFRefiner.cpp | pavelsevecek/TSR | ca411dedf178e5830f0536e361136f1e16751bc8 | [
"BSD-3-Clause"
] | 27 | 2017-10-18T09:37:34.000Z | 2022-03-22T01:30:51.000Z | /*
* Copyright (C) 2018 by Author: Aroudj, Samir
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the License.txt file for details.
*/
#include <iostream>
#include <omp.... | 33.901781 | 160 | 0.7392 | pavelsevecek |
2d89842894c4f25ec67bbf66f5854fe719d5fa97 | 2,850 | cpp | C++ | tests/test.cpp | Andrey-torix/-lab-03-shared | b6aed7bd32ae6231687743742b997ca9f7628553 | [
"MIT"
] | null | null | null | tests/test.cpp | Andrey-torix/-lab-03-shared | b6aed7bd32ae6231687743742b997ca9f7628553 | [
"MIT"
] | null | null | null | tests/test.cpp | Andrey-torix/-lab-03-shared | b6aed7bd32ae6231687743742b997ca9f7628553 | [
"MIT"
] | null | null | null | // Copyright 2020 Andreytorix
#include <utility>
#include "SP.hpp"
#include <gtest/gtest.h>
class testClass {
public:
int value;
std::string name;
explicit testClass(int value_ = 10,
std::string name_ = "Typical Class") {
value = value_;
name = std::move(name_);
}
... | 22.619048 | 65 | 0.650175 | Andrey-torix |
2d8fde0d2c31594afeb69485fa1c33bae8bbb65e | 2,227 | cc | C++ | src/tests/grid/test_largegrid.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 67 | 2018-03-01T06:56:49.000Z | 2022-03-08T18:44:47.000Z | src/tests/grid/test_largegrid.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 93 | 2018-12-07T17:38:04.000Z | 2022-03-31T10:04:51.000Z | src/tests/grid/test_largegrid.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 33 | 2018-02-28T17:06:19.000Z | 2022-01-20T12:12:27.000Z | #include <string>
#include <vector>
#include "eckit/log/Bytes.h"
#include "eckit/log/ResourceUsage.h"
#include "eckit/system/ResourceUsage.h"
#include "atlas/domain.h"
#include "atlas/grid.h"
#include "atlas/runtime/Trace.h"
#include "atlas/runtime/trace/StopWatch.h"
#include "tests/AtlasTestEnvironment.h"
namespace... | 31.366197 | 99 | 0.648406 | twsearle |
2d905a288db5ea862679b791f03aa0515eb1e883 | 2,422 | cpp | C++ | examples/array.cpp | Tomasu/LuaGlue | 9db477ef1447048822042164445c2f5d027b37d8 | [
"Zlib"
] | 36 | 2015-01-19T09:31:42.000Z | 2021-06-16T02:52:31.000Z | examples/array.cpp | Tomasu/LuaGlue | 9db477ef1447048822042164445c2f5d027b37d8 | [
"Zlib"
] | 3 | 2015-01-13T01:29:56.000Z | 2017-05-25T14:55:18.000Z | examples/array.cpp | Tomasu/LuaGlue | 9db477ef1447048822042164445c2f5d027b37d8 | [
"Zlib"
] | 5 | 2015-08-23T05:33:07.000Z | 2017-09-21T19:36:40.000Z | #include <LuaGlue/LuaGlue.h>
struct Foo
{
int *pointerArray;
int intArray[4];
struct {
int intProp;
} structArray[3];
};
typedef std::remove_reference<decltype(Foo::structArray[0])>::type FooStruct;
/*
static void intArray_test(int foo[4])
{
printf("intArray: %i, %i, %i, %i\n", foo[0], foo[1], foo[2], foo[3])... | 23.980198 | 132 | 0.648225 | Tomasu |
2d9a3c7550f1924b6c780f3c3d9c6e6ee29357cd | 2,183 | cpp | C++ | HelloGL/main.cpp | kyle-robinson/opengl-project | 2a9d4c99767c585d4441a7824ce57d5b26c324a8 | [
"MIT"
] | 1 | 2020-12-24T11:52:45.000Z | 2020-12-24T11:52:45.000Z | HelloGL/main.cpp | kyle-robinson/opengl-project | 2a9d4c99767c585d4441a7824ce57d5b26c324a8 | [
"MIT"
] | null | null | null | HelloGL/main.cpp | kyle-robinson/opengl-project | 2a9d4c99767c585d4441a7824ce57d5b26c324a8 | [
"MIT"
] | null | null | null | #include "SceneManager.h"
#include "Treenode.h"
#include "GL/freeglut.h"
#include <gl/GLU.h>
#include <iostream>
SceneManager* sceneManager;
Treenode* tree;
void CreateSceneGraph();
void InitWindow(int argc, char* argv[]);
int main(int argc, char* argv[])
{
CreateSceneGraph();
InitWindow(argc,... | 28.350649 | 79 | 0.707284 | kyle-robinson |
2d9f0f5128678fa26cbfc351074ef5b87c9c2f33 | 9,610 | cpp | C++ | Library/Sources/Stroika/Frameworks/Led/StyledTextIO/StyledTextIO_MIMETextEnriched.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Library/Sources/Stroika/Frameworks/Led/StyledTextIO/StyledTextIO_MIMETextEnriched.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Library/Sources/Stroika/Frameworks/Led/StyledTextIO/StyledTextIO_MIMETextEnriched.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "../../../Foundation/StroikaPreComp.h"
#include <cctype>
#include "../../../Foundation/Characters/LineEndings.h"
#include "../../../Foundation/Memory/SmallStackBuffer.h"
#include "StyledTextIO_MIMETextEnriched.h"
using namespac... | 33.024055 | 119 | 0.498543 | SophistSolutions |
2da02bfeeff79d9ebaa37451cf980a06d942fac2 | 6,142 | hpp | C++ | cpp/src/kokkos/rom/rom_problem_rank_two_forcing.hpp | fnrizzi/ElasticShearWaves | b09cde0711562412c6bc24de0d18ad3a972b7289 | [
"BSD-3-Clause"
] | null | null | null | cpp/src/kokkos/rom/rom_problem_rank_two_forcing.hpp | fnrizzi/ElasticShearWaves | b09cde0711562412c6bc24de0d18ad3a972b7289 | [
"BSD-3-Clause"
] | null | null | null | cpp/src/kokkos/rom/rom_problem_rank_two_forcing.hpp | fnrizzi/ElasticShearWaves | b09cde0711562412c6bc24de0d18ad3a972b7289 | [
"BSD-3-Clause"
] | null | null | null |
#ifndef ROM_PROBLEM_RANK_TWO_FORCING_HPP_
#define ROM_PROBLEM_RANK_TWO_FORCING_HPP_
#include "../../shared/all.hpp"
#include "../shwavepp.hpp"
#include "../common_types.hpp"
#include "compute_rom_jacobians.hpp"
#include "load_basis.hpp"
#include "run_rom_rank_two_forcing.hpp"
#include "rom_problem_base.hpp"
namespac... | 33.2 | 100 | 0.700749 | fnrizzi |
2da732a2f83f1a1bf2859352c27d0d24827f350b | 1,486 | cpp | C++ | systems/plants/joints/drakeJointUtil.cpp | jacob-izr/drake | d8f0f1f231ecba83ed53b1a1c2f9f43da50396b9 | [
"BSD-3-Clause"
] | null | null | null | systems/plants/joints/drakeJointUtil.cpp | jacob-izr/drake | d8f0f1f231ecba83ed53b1a1c2f9f43da50396b9 | [
"BSD-3-Clause"
] | null | null | null | systems/plants/joints/drakeJointUtil.cpp | jacob-izr/drake | d8f0f1f231ecba83ed53b1a1c2f9f43da50396b9 | [
"BSD-3-Clause"
] | 1 | 2021-09-29T19:37:28.000Z | 2021-09-29T19:37:28.000Z | #include "drakeJointUtil.h"
#include "DrakeJoint.h"
#include "HelicalJoint.h"
#include "PrismaticJoint.h"
#include "RevoluteJoint.h"
#include "QuaternionFloatingJoint.h"
#include "RollPitchYawFloatingJoint.h"
#include "drakeFloatingPointUtil.h"
#include <cmath>
#include <stdexcept>
using namespace Eigen;
std::unique_... | 31.617021 | 170 | 0.730148 | jacob-izr |
2da9246e6a752138957c0f8bcbfe2a25f510b26b | 1,707 | hpp | C++ | include/rabbit/rabbit.hpp | demurzasty/rabb | f980fd18332f7846cd22b502f1075d224938379c | [
"MIT"
] | 8 | 2020-11-21T17:59:09.000Z | 2022-02-13T05:14:40.000Z | include/rabbit/rabbit.hpp | demurzasty/rabb | f980fd18332f7846cd22b502f1075d224938379c | [
"MIT"
] | null | null | null | include/rabbit/rabbit.hpp | demurzasty/rabb | f980fd18332f7846cd22b502f1075d224938379c | [
"MIT"
] | 1 | 2020-11-23T23:01:14.000Z | 2020-11-23T23:01:14.000Z | #pragma once
#include "collision/bbox.hpp"
#include "collision/bsphere.hpp"
#include "collision/plane.hpp"
#include "collision/ray3.hpp"
#include "collision/shape3.hpp"
#include "collision/triangle.hpp"
#include "components/camera.hpp"
#include "components/geometry.hpp"
#include "components/identity.hpp"
... | 25.863636 | 36 | 0.72935 | demurzasty |
2dab7f157b073dd54ece5450cd5994961feacf6c | 5,532 | cpp | C++ | Data-Structures/Stack/Infix_to_prefix_postfix.cpp | PriyanshuMay/DS_ALGO | 6c754fd7d817ea3f0470b42f5224c620c77fffb7 | [
"MIT"
] | 182 | 2020-10-01T17:16:42.000Z | 2021-10-04T17:52:49.000Z | Data-Structures/Stack/Infix_to_prefix_postfix.cpp | PriyanshuMay/DS_ALGO | 6c754fd7d817ea3f0470b42f5224c620c77fffb7 | [
"MIT"
] | 759 | 2020-10-01T00:12:21.000Z | 2021-10-04T19:35:11.000Z | Data-Structures/Stack/Infix_to_prefix_postfix.cpp | PriyanshuMay/DS_ALGO | 6c754fd7d817ea3f0470b42f5224c620c77fffb7 | [
"MIT"
] | 1,176 | 2020-10-01T16:02:13.000Z | 2021-10-04T19:20:19.000Z | /*
Author: Sachin19k
*/
/*Problem Statement :
Implement stack as an abstract data type using singly linked list and use this ADT for conversion of infix expression to postfix, prefix and evaluation of postfix and prefix expression.
Sample Input for Testing:
1. (a+b)*c
2. (a+b)/(c*d)
3. (a+(b*c))/(c-(d*b)... | 14.294574 | 186 | 0.454808 | PriyanshuMay |
2dadc71241e4b4d857a2adf9c21accbed28dee4c | 142,251 | cpp | C++ | components/scream/src/physics/shoc/shoc_functions_f90.cpp | bartgol/scream | 4bd0a0d50740a2b3002917362314fc3246bd124d | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/scream/src/physics/shoc/shoc_functions_f90.cpp | bartgol/scream | 4bd0a0d50740a2b3002917362314fc3246bd124d | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/scream/src/physics/shoc/shoc_functions_f90.cpp | bartgol/scream | 4bd0a0d50740a2b3002917362314fc3246bd124d | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | #include "shoc_functions_f90.hpp"
#include "shoc_f90.hpp"
#include "ekat/ekat_assert.hpp"
#include "ekat/kokkos/ekat_kokkos_utils.hpp"
#include "ekat/ekat_pack_kokkos.hpp"
#include "ekat/kokkos/ekat_subview_utils.hpp"
#include <random>
using scream::Real;
using scream::Int;
//
// A C interface to SHOC fortran call... | 40.093292 | 254 | 0.642653 | bartgol |
2daf41f9f5cdb52a36b5d9dcc139a7418a0f49e8 | 2,854 | cpp | C++ | src/make_default_model_parameters.cpp | iflint1/ppjsdm | 3a1212b8029fd0be6284ff4e2e60a7f98a913705 | [
"MIT"
] | 3 | 2020-06-23T23:00:13.000Z | 2021-07-16T00:05:56.000Z | src/make_default_model_parameters.cpp | iflint1/ppjsdm | 3a1212b8029fd0be6284ff4e2e60a7f98a913705 | [
"MIT"
] | null | null | null | src/make_default_model_parameters.cpp | iflint1/ppjsdm | 3a1212b8029fd0be6284ff4e2e60a7f98a913705 | [
"MIT"
] | null | null | null | #include <Rcpp.h>
#include <Rinternals.h>
#include "utility/construct_if_missing.hpp"
#include "utility/get_number_types.hpp"
#include "utility/is_symmetric_matrix.hpp"
#include "utility/make_default_types.hpp"
// [[Rcpp::export]]
SEXP make_default_model_parameters(SEXP alpha,
SEXP ... | 52.851852 | 163 | 0.595305 | iflint1 |
2daf9f00791c23054a34447c75a4fe25c42f6234 | 2,246 | cc | C++ | pkg/storage/engine/encoding.cc | ofonimefrancis/cockroach | 7aa39d509068cf4f6c7f11f5f53516ec5240f00d | [
"Apache-2.0"
] | 41 | 2017-04-25T07:11:28.000Z | 2022-03-02T19:45:34.000Z | pkg/storage/engine/encoding.cc | ofonimefrancis/cockroach | 7aa39d509068cf4f6c7f11f5f53516ec5240f00d | [
"Apache-2.0"
] | 1 | 2017-03-24T19:04:47.000Z | 2017-12-18T19:50:20.000Z | pkg/storage/engine/encoding.cc | ofonimefrancis/cockroach | 7aa39d509068cf4f6c7f11f5f53516ec5240f00d | [
"Apache-2.0"
] | 11 | 2017-06-09T15:51:03.000Z | 2021-02-25T08:20:10.000Z | // Copyright 2014 The Cockroach 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | 35.09375 | 75 | 0.647818 | ofonimefrancis |
2dafb4728ed4ed76b13da098c4a08289bde2c336 | 961 | hpp | C++ | include/archie/meta/at.hpp | attugit/archie | af89fe2d89af3b9d764837853ae9fb42d18cdeac | [
"MIT"
] | 3 | 2015-02-18T22:58:23.000Z | 2016-06-07T17:43:09.000Z | include/archie/meta/at.hpp | attugit/archie | af89fe2d89af3b9d764837853ae9fb42d18cdeac | [
"MIT"
] | null | null | null | include/archie/meta/at.hpp | attugit/archie | af89fe2d89af3b9d764837853ae9fb42d18cdeac | [
"MIT"
] | null | null | null | #pragma once
#include <utility>
#include <archie/meta/eval.hpp>
#include <archie/ignore.hpp>
#include <archie/meta/returns.hpp>
#include <archie/type_list.hpp>
#include <archie/meta/indexable.hpp>
namespace archie::meta
{
namespace detail
{
template <std::size_t n, typename... Ts>
struct at_ {
private... | 22.880952 | 75 | 0.601457 | attugit |
2db5746be1fe4a4ee97d9b96bba0878bb4198413 | 296 | hpp | C++ | header/threading/Log.hpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | header/threading/Log.hpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | header/threading/Log.hpp | bendem/SchoolStats | 59883f1ba1219d707fedf9a890c0357d2002a285 | [
"Unlicense"
] | null | null | null | #ifndef LOG_HPP
#define LOG_HPP
#include <fstream>
#include "threading/Mutex.hpp"
using namespace std;
class Log {
public:
static void log(const string&, const string&);
private:
Log(); // Prevent multiple instances
Mutex mutex;
ofstream os;
static Log l;
};
#endif
| 11.384615 | 50 | 0.672297 | bendem |
2dbac7895121f8d350015d29accec1002eea8eab | 7,423 | cpp | C++ | examples/Marooned/pessoas.cpp | sjneves/Marooned | 81369b0df51ea0658af9bf1a96b0a72a99260277 | [
"MIT"
] | null | null | null | examples/Marooned/pessoas.cpp | sjneves/Marooned | 81369b0df51ea0658af9bf1a96b0a72a99260277 | [
"MIT"
] | null | null | null | examples/Marooned/pessoas.cpp | sjneves/Marooned | 81369b0df51ea0658af9bf1a96b0a72a99260277 | [
"MIT"
] | null | null | null | #include <fmt/core.h>
#include <random>
#include "pessoas.hpp"
#include "gameData.hpp"
void Pessoas::initializeGL(GLuint program){
terminateGL();
auto seed{std::chrono::steady_clock::now().time_since_epoch().count()};
m_randomEngine.seed(seed);
m_program = program;
m_colorLoc = glGetUniformLocati... | 35.347619 | 114 | 0.511788 | sjneves |
2dbb9591393b16416b56295b1ea8b7481528f519 | 1,518 | hpp | C++ | applications/robin/cpp/traditional.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | applications/robin/cpp/traditional.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | 1 | 2019-01-31T10:59:11.000Z | 2019-01-31T10:59:11.000Z | applications/robin/cpp/traditional.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | #ifndef ___Traditional_hpp
#define ___Traditional_hpp
#include "pdepart.hpp"
#include "model.hpp"
/*--------------------------------------------------------------------------*/
namespace alat
{
class Node;
}
class Traditional : public PdePart
{
protected:
bool _lumpedmass;
public:
~Tradit... | 42.166667 | 142 | 0.65415 | beckerrh |
2dc8c58d6bd0cb1a6295f3166d2c82210b07bdab | 941 | cc | C++ | src/solutions/0072_EditDistance.cc | TerenceWangh/leetcode | a6287d3928fb7114c39a430d149879ca8fa71020 | [
"MIT"
] | 3 | 2018-12-06T10:49:01.000Z | 2020-12-15T18:30:09.000Z | src/solutions/0072_EditDistance.cc | TerenceWangh/leetcode | a6287d3928fb7114c39a430d149879ca8fa71020 | [
"MIT"
] | null | null | null | src/solutions/0072_EditDistance.cc | TerenceWangh/leetcode | a6287d3928fb7114c39a430d149879ca8fa71020 | [
"MIT"
] | null | null | null | #include "solution.h"
#include <algorithm>
using std::string;
using std::vector;
// Runtime: 24 ms, faster than 37.35%
// Memory Usage: 9.1 MB, less than 27.58%
int Solution::minDistance(std::string word1, std::string word2)
{
string::size_type s1 = word1.size();
string::size_type s2 = word2.size();
if (s1 ==... | 22.404762 | 69 | 0.510096 | TerenceWangh |
2dcbaa55b2863931844fc6e3d6aafac07649b806 | 9,720 | cpp | C++ | jni/application/Instructions_State.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | jni/application/Instructions_State.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | jni/application/Instructions_State.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | //
// Instructions_State.cpp
// game
//
// Created by Donald Clark on 11/9/13.
//
//
#include "Instructions_State.h"
#include "Player_Includes.h"
#include "Player_Factory.h"
#include "Terrain_Includes.h"
#include "Terrain_Factory.h"
#include "Npc_Includes.h"
#include "Npc_Factory.h"
#include "Crystal.h"
#include "G... | 34.105263 | 96 | 0.615226 | clarkdonald |
2dd079658b7ce012e7c0bb9ff92bbcbdcf81a6ab | 10,785 | cpp | C++ | droneBrainROSModule/src/source/parrotArchitectureBrainNode.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneBrainROSModule/src/source/parrotArchitectureBrainNode.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneBrainROSModule/src/source/parrotArchitectureBrainNode.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | /*
*
*
*
*
*/
// ROS
#include "ros/ros.h"
// C++ standar library
#include <stdio.h>
#include <iostream>
#include <math.h>
#include "dronearchitecturebrain.h"
#include "communication_definition.h"
#include "drone_utils/drone_state_enum.h"
//Console
#include <curses.h>
using namespace std;
int main(int argc, char ... | 48.581081 | 254 | 0.610756 | MorS25 |
2ddba88304cdc44d4a4c3baa9ca5e1559c6b05eb | 1,770 | cpp | C++ | 22metaprogramming/game.meta.cpp | lightbits/akari | 63c411ca3b269a2844154834b01c8114a39c6a33 | [
"MIT"
] | 11 | 2015-02-13T13:18:01.000Z | 2017-10-14T02:27:35.000Z | 22metaprogramming/game.meta.cpp | lightbits/akari | 63c411ca3b269a2844154834b01c8114a39c6a33 | [
"MIT"
] | null | null | null | 22metaprogramming/game.meta.cpp | lightbits/akari | 63c411ca3b269a2844154834b01c8114a39c6a33 | [
"MIT"
] | 2 | 2019-05-18T03:14:08.000Z | 2019-12-10T15:03:41.000Z | #include "game.h"
#DeclareShader
#name diffuse
#vertex ./diffuse.vs
#fragment ./diffuse.fs
#attrib position vec3
#attrib normal vec3
#uniform albedo vec3
#uniform projection mat4
#uniform view mat4
#uniform model mat4
#EndDeclareShader
int window_width;
int window_height;
float asp... | 22.125 | 83 | 0.680791 | lightbits |
2dde2a4aa4b298dd8c4cbe4bb81ceac19bb27b47 | 3,699 | cpp | C++ | FEBioFluid/FEFluidRotationalVelocity.cpp | AlexandraAllan23/FEBio | c94a1c30e0bae5f285c0daae40a7e893e63cff3c | [
"MIT"
] | 59 | 2020-06-15T12:38:49.000Z | 2022-03-29T19:14:47.000Z | FEBioFluid/FEFluidRotationalVelocity.cpp | AlexandraAllan23/FEBio | c94a1c30e0bae5f285c0daae40a7e893e63cff3c | [
"MIT"
] | 36 | 2020-06-14T21:10:01.000Z | 2022-03-12T12:03:14.000Z | FEBioFluid/FEFluidRotationalVelocity.cpp | AlexandraAllan23/FEBio | c94a1c30e0bae5f285c0daae40a7e893e63cff3c | [
"MIT"
] | 26 | 2020-06-25T15:02:13.000Z | 2022-03-10T09:14:03.000Z | /*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... | 33.93578 | 95 | 0.63017 | AlexandraAllan23 |
2de205849e9439e8245ee1feecece119351e6d50 | 745 | cpp | C++ | data/dailyCodingProblem568.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | 2 | 2020-09-04T20:56:23.000Z | 2021-06-11T07:42:26.000Z | data/dailyCodingProblem568.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | data/dailyCodingProblem568.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
Given a sorted list of integers, square the elements and give the output in sorted order.
For example, given [-9, -2, 0, 2, 3], return [0, 4, 4, 9, 81].
*/
vector<int> sortedSquare(vector<int> arr){
vector<int> ans;
int start = 0, end = arr.size()-1;
whil... | 21.911765 | 89 | 0.530201 | vidit1999 |
2de8740a3bf5c5b12071aae4e64f00108adc6f24 | 2,542 | hpp | C++ | src/serac/numerics/assembled_sparse_matrix.hpp | zarahm/serac | 6999b83e838b7e36ce1ab6577074b3b96269a66d | [
"BSD-3-Clause"
] | 1 | 2021-07-21T05:34:18.000Z | 2021-07-21T05:34:18.000Z | src/serac/numerics/assembled_sparse_matrix.hpp | zarahm/serac | 6999b83e838b7e36ce1ab6577074b3b96269a66d | [
"BSD-3-Clause"
] | null | null | null | src/serac/numerics/assembled_sparse_matrix.hpp | zarahm/serac | 6999b83e838b7e36ce1ab6577074b3b96269a66d | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <mfem.hpp>
namespace serac {
namespace mfem_ext {
/**
@brief Creates a CSR sparse matrix from element matrices assembled using a mfem::ElementDofOrdering
*/
class AssembledSparseMatrix : public mfem::SparseMatrix {
public:
/**
* @brief AssembledSparseMatrix creates a SparseMatrix based on... | 33.447368 | 119 | 0.709677 | zarahm |
2dec555565d123025f8ef52d8aefe3d2e8927626 | 905 | cpp | C++ | gym/index40_49/ioi2021_49/AK.cpp | daklqw/IOI2021-training | 4f21cef8eec47330e3db77a3d90cbe2309fa8294 | [
"Apache-2.0"
] | 6 | 2020-10-12T05:07:03.000Z | 2021-09-11T14:54:58.000Z | gym/index40_49/ioi2021_49/AK.cpp | daklqw/IOI2021-training | 4f21cef8eec47330e3db77a3d90cbe2309fa8294 | [
"Apache-2.0"
] | null | null | null | gym/index40_49/ioi2021_49/AK.cpp | daklqw/IOI2021-training | 4f21cef8eec47330e3db77a3d90cbe2309fa8294 | [
"Apache-2.0"
] | 2 | 2021-02-09T02:06:31.000Z | 2021-10-06T01:25:08.000Z | #include <bits/stdc++.h>
const int MAXN = 2e6 + 10;
void gma(int & x, int y) { if (x < y) x = y; }
int R[21][MAXN];
int n, K;
int main() {
std::ios_base::sync_with_stdio(false), std::cin.tie(0);
std::cin >> n >> K;
for (int i = 1, l, r; i <= K; ++i) {
std::cin >> l >> r;
if (l > r) gma(R[0][l], r + n);
else g... | 25.138889 | 56 | 0.443094 | daklqw |
2ded8298400208816b3cd7f81fa952698af0ddb7 | 1,726 | hpp | C++ | src/assets/include/assets/color.hpp | Sampas/cavez | b89185554477b92bf987c9e5d26b0a8abe1ae568 | [
"MIT"
] | 2 | 2019-03-11T11:26:52.000Z | 2019-09-26T07:50:55.000Z | src/assets/include/assets/color.hpp | Sampas/cavez | b89185554477b92bf987c9e5d26b0a8abe1ae568 | [
"MIT"
] | 1 | 2020-10-29T15:44:47.000Z | 2020-10-29T15:44:47.000Z | src/assets/include/assets/color.hpp | Sampas/cavez | b89185554477b92bf987c9e5d26b0a8abe1ae568 | [
"MIT"
] | 1 | 2020-10-28T18:56:46.000Z | 2020-10-28T18:56:46.000Z | /// Copyright (c) 2019 Joni Louhela
///
/// 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, pub... | 32.566038 | 95 | 0.691194 | Sampas |
2df1ea458c796ea87c5dbdbcaf6ec2ccb2d8381e | 39,212 | cpp | C++ | lib/assimp/code/glTFImporter.cpp | RichardRanft/Torque6 | db6cd08f18f4917e0c6557b2766fb40d8e2bee39 | [
"MIT"
] | 312 | 2015-02-17T15:07:28.000Z | 2022-03-12T07:09:56.000Z | lib/assimp/code/glTFImporter.cpp | lukaspj/Torque6 | db6cd08f18f4917e0c6557b2766fb40d8e2bee39 | [
"MIT"
] | 23 | 2015-03-30T14:47:37.000Z | 2020-11-02T00:00:24.000Z | lib/assimp/code/glTFImporter.cpp | lukaspj/Torque6 | db6cd08f18f4917e0c6557b2766fb40d8e2bee39 | [
"MIT"
] | 73 | 2015-02-17T15:07:30.000Z | 2021-10-02T03:11:59.000Z | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2015, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following conditions ... | 32.19376 | 171 | 0.560951 | RichardRanft |
930318be97e7d3e79d138b43b7ed87759cec1664 | 1,246 | hpp | C++ | include/core/GlobalShaderParams.hpp | Guarneri1743/SoftRasterizer | d7a7344e43d91ce575724cc1d121551e6008dc01 | [
"MIT"
] | 4 | 2020-12-14T10:58:35.000Z | 2020-12-14T16:38:18.000Z | include/core/GlobalShaderParams.hpp | J-Mat/CPU-Rasterizer | d7a7344e43d91ce575724cc1d121551e6008dc01 | [
"MIT"
] | null | null | null | include/core/GlobalShaderParams.hpp | J-Mat/CPU-Rasterizer | d7a7344e43d91ce575724cc1d121551e6008dc01 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "Define.hpp"
#include "Light.hpp"
#include "tinymath.h"
#define CpuRasterSharedData Singleton<CpuRasterizer::GlobalShaderParams>::get()
namespace CpuRasterizer {
struct GlobalShaderParams
{
GlobalShaderParams()
{
cam_near = 0.1f;
cam_far = 500.0f;
camera_pos = ... | 21.482759 | 79 | 0.721509 | Guarneri1743 |
9307c9d5aa07c90e1ae225586ce911fe83b9e123 | 1,111 | cpp | C++ | homework/templating/function_template/main.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | homework/templating/function_template/main.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | homework/templating/function_template/main.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
//Create a function template that takes an array of a generic type and two integers representing a beginning and ending index. The function should return a pointer to a new array that consist of all elements in the original array from the first index to the last index (inclusi... | 31.742857 | 369 | 0.637264 | coderica |
930e7da411e3f0c969d8367121a28c99b0fe4372 | 455 | hpp | C++ | src/mpi/allreduce.hpp | ricosjp/monolish-debian-package | 4e8087804e8ab03484d44106599233ed5080ba54 | [
"Apache-2.0"
] | 172 | 2021-04-05T10:04:40.000Z | 2022-03-28T14:30:38.000Z | src/mpi/allreduce.hpp | ricosjp/monolish | 12757f93883830a89820507d44e2eea20b5026e1 | [
"Apache-2.0"
] | 96 | 2021-04-06T01:53:44.000Z | 2022-03-09T07:27:09.000Z | src/mpi/allreduce.hpp | termoshtt/monolish | 1cba60864002b55bc666da9baa0f8c2273578e01 | [
"Apache-2.0"
] | 8 | 2021-04-05T13:21:07.000Z | 2022-03-09T23:24:06.000Z | #include "../internal/monolish_internal.hpp"
#include "../internal/mpi/mpi_util.hpp"
namespace monolish {
namespace {
template <typename T> T Allreduce_core(T val, MPI_Op op, MPI_Comm comm) {
Logger &logger = Logger::get_instance();
logger.util_in(monolish_func);
#if defined MONOLISH_USE_MPI
MPI_Allreduce(&val,... | 23.947368 | 73 | 0.723077 | ricosjp |
93158ce913e6368097d7b8be8d2bec2dc2e19930 | 175 | cpp | C++ | regression/cpp-from-CVS/Protection2/main.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 1 | 2020-10-20T14:33:25.000Z | 2020-10-20T14:33:25.000Z | regression/cpp-from-CVS/Protection2/main.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 6 | 2017-12-03T22:02:14.000Z | 2018-04-10T09:42:20.000Z | regression/cpp-from-CVS/Protection2/main.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 4 | 2019-01-19T03:32:21.000Z | 2021-12-20T14:25:19.000Z | struct A
{
protected:
int i;
};
class B: A
{
public:
void set(int i){this->i = i;}
int get() const {return i;}
};
int main()
{
B b;
b.set(0);
assert(b.get()== 0);
}
| 8.75 | 30 | 0.531429 | dan-blank |
7945af1b6bf7f92bc0d7344d7875d182a495315e | 3,100 | cpp | C++ | device/univio/univio.cpp | nvitya/univio | 85cff18f651103073262da6d44c795557e4f5e5d | [
"MIT"
] | null | null | null | device/univio/univio.cpp | nvitya/univio | 85cff18f651103073262da6d44c795557e4f5e5d | [
"MIT"
] | null | null | null | device/univio/univio.cpp | nvitya/univio | 85cff18f651103073262da6d44c795557e4f5e5d | [
"MIT"
] | null | null | null | /* -----------------------------------------------------------------------------
* This file is a part of the UNIVIO project: https://github.com/nvitya/univio
* Copyright (c) 2022 Viktor Nagy, nvitya
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be h... | 52.542373 | 97 | 0.651613 | nvitya |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.