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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a80df1f81aa18fc0fc67ea3d06bfc7d71e86a1ac | 1,107 | hpp | C++ | etl/_functional/divides.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | 4 | 2021-11-28T08:48:11.000Z | 2021-12-14T09:53:51.000Z | etl/_functional/divides.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | null | null | null | etl/_functional/divides.hpp | tobanteEmbedded/tetl | fc3272170843bcab47971191bcd269a86c5b5101 | [
"BSL-1.0"
] | null | null | null | /// \copyright Tobias Hienzsch 2019-2021
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
#ifndef TETL_FUNCTIONAL_DIVIDES_HPP
#define TETL_FUNCTIONAL_DIVIDES_HPP
#include "etl/_utility/forward.hpp"
namespace etl {
/// \brief... | 29.918919 | 108 | 0.699187 | tobanteEmbedded |
a80e57eb1bd0f8ff23b77b57e412fce9edf2f8ab | 7,342 | cpp | C++ | src/commands.cpp | averrin/lss | c2aa0486641fba15daceab3241122e387720c898 | [
"MIT"
] | 4 | 2018-07-09T20:53:06.000Z | 2018-07-12T07:10:19.000Z | src/commands.cpp | averrin/lss | c2aa0486641fba15daceab3241122e387720c898 | [
"MIT"
] | null | null | null | src/commands.cpp | averrin/lss | c2aa0486641fba15daceab3241122e387720c898 | [
"MIT"
] | null | null | null | #include <sstream>
#include <utility>
#include "lss/commands.hpp"
#include "lss/utils.hpp"
#include "lss/game/events.hpp"
#include "EventBus.hpp"
using namespace std::string_literals;
Command::Command(std::vector<std::string> a) : aliases(a) {}
CommandEvent::CommandEvent(eb::ObjectPtr s) : eb::Event(s) {}
MoveComm... | 35.640777 | 80 | 0.695859 | averrin |
a80f528d248df0ee1b9ec2494d2f292c94092b97 | 2,825 | cpp | C++ | io/internal/StdioEx.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 3 | 2019-04-20T10:16:36.000Z | 2021-03-21T19:51:38.000Z | io/internal/StdioEx.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | null | null | null | io/internal/StdioEx.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 2 | 2020-04-18T20:04:24.000Z | 2021-09-19T05:07:41.000Z | #include "StdioEx.h"
#include <lang/String.h>
#include <assert.h>
#include "config.h"
//----------------------------------------------------------------------------
using namespace lang;
//----------------------------------------------------------------------------
namespace io
{
// Truncates strin... | 23.739496 | 80 | 0.574159 | Andrewich |
a8177fe69b6af22c09905a628fca730c5711266c | 3,675 | cc | C++ | libpfkthread/pk_filedescs.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | 4 | 2015-06-12T05:08:56.000Z | 2017-11-13T11:34:27.000Z | libpfkthread/pk_filedescs.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | null | null | null | libpfkthread/pk_filedescs.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | 1 | 2021-10-20T02:04:53.000Z | 2021-10-20T02:04:53.000Z | /*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copy... | 27.222222 | 75 | 0.67483 | flipk |
a818b28c5b2192ac31b58e9d1afafc1c6c22a764 | 956 | cpp | C++ | dynamic programming/416. Partition Equal Subset Sum.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | 1 | 2021-04-08T10:33:48.000Z | 2021-04-08T10:33:48.000Z | dynamic programming/416. Partition Equal Subset Sum.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | null | null | null | dynamic programming/416. Partition Equal Subset Sum.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | 1 | 2021-02-23T05:58:58.000Z | 2021-02-23T05:58:58.000Z | Given a non-empty array nums containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal.
Example 1:
Input: nums = [1,5,11,5]
Output: true
Explanation: The array can be partitioned as [1, 5, 5] and [11].
class Solution {
public:
... | 24.512821 | 174 | 0.470711 | Constantine-L01 |
a81cede09c643e75123a727946cb687c1c7468db | 234 | cpp | C++ | firmware-latest/user/tests/unit/ipaddress.cpp | adeeshag/particle_project | 0c2ab278cf902f97d2422c44c008978be58fe6b7 | [
"Unlicense"
] | 1 | 2019-02-24T07:13:51.000Z | 2019-02-24T07:13:51.000Z | firmware-latest/user/tests/unit/ipaddress.cpp | adeeshag/particle_project | 0c2ab278cf902f97d2422c44c008978be58fe6b7 | [
"Unlicense"
] | 1 | 2018-05-29T19:27:53.000Z | 2018-05-29T19:27:53.000Z | firmware-latest/user/tests/unit/ipaddress.cpp | adeeshag/particle_project | 0c2ab278cf902f97d2422c44c008978be58fe6b7 | [
"Unlicense"
] | null | null | null |
#include "catch.hpp"
#include "spark_wiring_ipaddress.h"
TEST_CASE("Can Construct From Uint32") {
IPAddress ip(1<<24 | 2<<16 | 3<<8 | 4);
CHECK(ip[3]==4);
CHECK(ip[2]==3);
CHECK(ip[1]==2);
CHECK(ip[0]==1);
}
| 14.625 | 43 | 0.564103 | adeeshag |
a81d0789097f698944baa0be926a6c99b5a4035c | 6,706 | cpp | C++ | src/librt/primitives/epa/epa_brep.cpp | earl-ducaine/brlcad-mirror | 402bd3542a10618d1f749b264cadf9b0bd723546 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | 1 | 2019-10-23T16:17:49.000Z | 2019-10-23T16:17:49.000Z | src/librt/primitives/epa/epa_brep.cpp | pombredanne/sf.net-brlcad | fb56f37c201b51241e8f3aa7b979436856f43b8c | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/librt/primitives/epa/epa_brep.cpp | pombredanne/sf.net-brlcad | fb56f37c201b51241e8f3aa7b979436856f43b8c | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | /* E P A _ B R E P . C P P
* BRL-CAD
*
* Copyright (c) 2008-2019 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1... | 35.670213 | 89 | 0.64569 | earl-ducaine |
a82040e0d433ff52e3e0bf924d028b33b471a062 | 4,752 | cpp | C++ | test/LaneDetectionModuleTest.cpp | rohit517/Lane-Detection | 4374934828e18236ad97ba032a718f8301a86ba9 | [
"MIT"
] | 3 | 2018-10-31T01:32:02.000Z | 2021-03-16T10:12:52.000Z | test/LaneDetectionModuleTest.cpp | rohit517/Lane-Detection | 4374934828e18236ad97ba032a718f8301a86ba9 | [
"MIT"
] | null | null | null | test/LaneDetectionModuleTest.cpp | rohit517/Lane-Detection | 4374934828e18236ad97ba032a718f8301a86ba9 | [
"MIT"
] | 1 | 2020-05-27T18:01:29.000Z | 2020-05-27T18:01:29.000Z | /************************************************************************
MIT License
Copyright (c) 2018 Harsh Kakashaniya,Rohitkrishna Nambiar
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 Softwar... | 30.075949 | 79 | 0.710438 | rohit517 |
a824b440efad478e8f18db06a1b0925e08ccdf5e | 2,863 | hxx | C++ | src/texture.hxx | DaWelter/NaiveTrace | a904785a0e13c394b2c221bc918cddb41bc8b175 | [
"FSFAP"
] | 16 | 2018-04-25T08:14:14.000Z | 2022-01-29T06:19:16.000Z | src/texture.hxx | DaWelter/NaiveTrace | a904785a0e13c394b2c221bc918cddb41bc8b175 | [
"FSFAP"
] | null | null | null | src/texture.hxx | DaWelter/NaiveTrace | a904785a0e13c394b2c221bc918cddb41bc8b175 | [
"FSFAP"
] | null | null | null | #ifndef TEXTURE_HXX
#define TEXTURE_HXX
#include"image.hxx"
#include"vec3f.hxx"
#include"spectral.hxx"
#include"util.hxx"
namespace boost { namespace filesystem {
class path;
}}
class Texture
{
ToyVector<std::uint8_t> data;
int w, h;
// Always 3 channels
enum Type {
BYTE, // 1 byte... | 23.661157 | 91 | 0.584701 | DaWelter |
a8263eb3def14e466f38b73292378f325f59d5c5 | 8,921 | cpp | C++ | src/input.cpp | IndianBoy42/nvui | ee139c1b1317dbc5ad408ce21871f2b1a92b295f | [
"MIT"
] | null | null | null | src/input.cpp | IndianBoy42/nvui | ee139c1b1317dbc5ad408ce21871f2b1a92b295f | [
"MIT"
] | null | null | null | src/input.cpp | IndianBoy42/nvui | ee139c1b1317dbc5ad408ce21871f2b1a92b295f | [
"MIT"
] | null | null | null | #include "input.hpp"
#include <fmt/format.h>
#include <fmt/core.h>
#include <unordered_map>
#include <string>
#include <string_view>
#include <QEvent>
#include <QKeyEvent>
#include <QString>
std::string event_to_string(const QKeyEvent* event, bool* special)
{
*special = true;
switch(event->key())
{
case Qt::... | 24.508242 | 88 | 0.604417 | IndianBoy42 |
a82690d7915b913444a0c189e9685ec1854247e7 | 478 | cpp | C++ | experiments/ym2612/note.cpp | krismuad/TOWNSEMU | 49c098ecb4686a506a208e01271ed135c0c3c482 | [
"BSD-3-Clause"
] | 124 | 2020-03-17T05:49:47.000Z | 2022-03-27T00:11:33.000Z | experiments/ym2612/note.cpp | krismuad/TOWNSEMU | 49c098ecb4686a506a208e01271ed135c0c3c482 | [
"BSD-3-Clause"
] | 40 | 2020-05-24T12:50:43.000Z | 2022-02-22T05:32:18.000Z | experiments/ym2612/note.cpp | krismuad/TOWNSEMU | 49c098ecb4686a506a208e01271ed135c0c3c482 | [
"BSD-3-Clause"
] | 11 | 2020-05-26T17:52:04.000Z | 2021-07-31T01:07:31.000Z | // Does the formula on [2] pp.204 make sense? It doesn't.
#include <iostream>
int main(void)
{
for(unsigned int F_NUM=0; F_NUM<2048; F_NUM+=64)
{
unsigned int F10=((F_NUM>>10)&1);
unsigned int F9= ((F_NUM>> 9)&1);
unsigned int F8= ((F_NUM>> 8)&1);
unsigned int F7=((F_NUM>>11)&1);
unsigned int N3=(F10&(F... | 23.9 | 78 | 0.569038 | krismuad |
a8295c5de04e8b5d3f31168570e16bcbc659076e | 11,467 | cpp | C++ | CSRMatrix.cpp | Mountiko/LinearSolvers | ffb4e18adc64951f730f9d1d5254ca55efc5d7ed | [
"MIT"
] | 3 | 2020-07-29T10:45:32.000Z | 2022-02-03T02:32:59.000Z | CSRMatrix.cpp | Mountiko/LinearSolvers | ffb4e18adc64951f730f9d1d5254ca55efc5d7ed | [
"MIT"
] | null | null | null | CSRMatrix.cpp | Mountiko/LinearSolvers | ffb4e18adc64951f730f9d1d5254ca55efc5d7ed | [
"MIT"
] | 5 | 2020-08-04T14:44:17.000Z | 2021-12-11T04:28:47.000Z | #include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include "CSRMatrix.h"
using namespace std;
// Constructor - using an initialisation list here
template <class T>
CSRMatrix<T>::CSRMatrix(int rows, int cols, int nnzs, bool preallocate):\
Matrix<T>(rows, cols, false), nnzs(nnzs)
{
// If ... | 30.335979 | 81 | 0.547222 | Mountiko |
a82a51412f5e80e196b60776533499f799c02255 | 19,339 | cpp | C++ | src/test/interface/io/json/json_parser_test.cpp | jtimonen/cmdstan | 8c1e014ed28b4ac3b0f8acc676a4508d07ab8f10 | [
"BSD-3-Clause"
] | null | null | null | src/test/interface/io/json/json_parser_test.cpp | jtimonen/cmdstan | 8c1e014ed28b4ac3b0f8acc676a4508d07ab8f10 | [
"BSD-3-Clause"
] | null | null | null | src/test/interface/io/json/json_parser_test.cpp | jtimonen/cmdstan | 8c1e014ed28b4ac3b0f8acc676a4508d07ab8f10 | [
"BSD-3-Clause"
] | null | null | null |
#include <cmdstan/io/json/json_data.hpp>
#include <cmdstan/io/json/json_data_handler.hpp>
#include <cmdstan/io/json/json_error.hpp>
#include <cmdstan/io/json/json_handler.hpp>
#include <cmdstan/io/json/rapidjson_parser.hpp>
#include <gtest/gtest.h>
class recording_handler : public cmdstan::json::json_handler {
publi... | 26.897079 | 80 | 0.475671 | jtimonen |
a834c85d046203a3c7f788fbf22628fa9a8a6f6a | 1,119 | cpp | C++ | Space Harrier Clone/Engine/BehavioursManager.cpp | BrunoAOR/Space-Harrier-Clone | 35465ad2d421f69a75a02855627c8ea726b248c6 | [
"MIT"
] | 12 | 2018-12-07T16:05:02.000Z | 2021-09-06T01:46:50.000Z | Potato Engine/Engine/BehavioursManager.cpp | BrunoAOR/Potato-Engine | 7395f7b10c6a7537c7880194c4b61ee001dc8372 | [
"MIT"
] | null | null | null | Potato Engine/Engine/BehavioursManager.cpp | BrunoAOR/Potato-Engine | 7395f7b10c6a7537c7880194c4b61ee001dc8372 | [
"MIT"
] | 1 | 2020-06-03T03:37:27.000Z | 2020-06-03T03:37:27.000Z | #include "BehavioursManager.h"
#include "Behaviour.h"
#include "ComponentType.h"
#include "GameObject.h"
BehavioursManager::BehavioursManager()
{
}
BehavioursManager::~BehavioursManager()
{
}
ComponentType BehavioursManager::managedComponentType() const
{
return ComponentType::BEHAVIOUR;
}
void BehavioursMana... | 16.701493 | 108 | 0.716711 | BrunoAOR |
a83a609acab3490579980b747d22bed131d98a8f | 153 | cpp | C++ | sw02.cpp | luqmaanb/pxt-SW02 | fc2743763bb1f47398ca163ddfec23aeef6b7481 | [
"MIT"
] | null | null | null | sw02.cpp | luqmaanb/pxt-SW02 | fc2743763bb1f47398ca163ddfec23aeef6b7481 | [
"MIT"
] | null | null | null | sw02.cpp | luqmaanb/pxt-SW02 | fc2743763bb1f47398ca163ddfec23aeef6b7481 | [
"MIT"
] | null | null | null | #include "pxt.h"
#include <cstdint>
#include <math.h>
using namespace pxt;
namespace SW02 {
//%
uint8_t getID() {
return 29;
}
}
| 10.2 | 21 | 0.568627 | luqmaanb |
a83b990caa313fea5f9ab35adcadfec4756ba9b8 | 5,221 | cpp | C++ | src/bin/dump_xml_compiler_result/dump_xml_compiler_result/main.cpp | gkb/Karabiner | f47307d4fc89a4c421d10157d059293c508f721a | [
"Unlicense"
] | null | null | null | src/bin/dump_xml_compiler_result/dump_xml_compiler_result/main.cpp | gkb/Karabiner | f47307d4fc89a4c421d10157d059293c508f721a | [
"Unlicense"
] | null | null | null | src/bin/dump_xml_compiler_result/dump_xml_compiler_result/main.cpp | gkb/Karabiner | f47307d4fc89a4c421d10157d059293c508f721a | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <boost/algorithm/string.hpp>
#include "pqrs/xml_compiler.hpp"
namespace {
int total_identifier_count_ = 0;
void
escapeHTML(std::string& string) {
boost::replace_all(string, "&", "&");
boost::replace_all(string, "<", "<");
boost::replace_all(string, ">", ">");
}
void
dump_... | 29.834286 | 118 | 0.587818 | gkb |
a83c62d90307528d2e63bc0f7262e4de0f07f4ab | 3,017 | hpp | C++ | vm/test/test_nativemethod.hpp | gdoleczek/rubinius | d8b16a76ada3531791260779ee747d11b75aba0e | [
"BSD-3-Clause"
] | 1 | 2018-11-24T17:34:58.000Z | 2018-11-24T17:34:58.000Z | vm/test/test_nativemethod.hpp | gdoleczek/rubinius | d8b16a76ada3531791260779ee747d11b75aba0e | [
"BSD-3-Clause"
] | null | null | null | vm/test/test_nativemethod.hpp | gdoleczek/rubinius | d8b16a76ada3531791260779ee747d11b75aba0e | [
"BSD-3-Clause"
] | null | null | null | #include "vm/test/test.hpp"
#include "builtin/nativemethod.hpp"
#include "vm.hpp"
#include "objectmemory.hpp"
using namespace rubinius;
class TestNativeMethod : public CxxTest::TestSuite, public VMTest {
public:
void setUp() {
create();
}
void tearDown() {
destroy();
}
void test_native_method_... | 28.196262 | 75 | 0.74942 | gdoleczek |
a8410530ee9abe9187aee3687d2f65f533f3c403 | 12,925 | cc | C++ | Cassie_Example/opt_two_step/gen/opt/h_RightToeBottom_cassie.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Cassie_Example/opt_two_step/gen/opt/h_RightToeBottom_cassie.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Cassie_Example/opt_two_step/gen/opt/h_RightToeBottom_cassie.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | /*
* Automatically Generated from Mathematica.
* Thu 14 Oct 2021 09:53:09 GMT-04:00
*/
#ifdef MATLAB_MEX_FILE
#include <stdexcept>
#include <cmath>
#include<math.h>
/**
* Copied from Wolfram Mathematica C Definitions file mdefs.hpp
* Changed marcos to inline functions (Eric Cousineau)
*/
inline double Power(doub... | 23.204668 | 321 | 0.646886 | prem-chand |
61b438043916f7d69b5852688703f6b2a6df908a | 1,028 | cpp | C++ | AdvancedAnchor/src/dbg/debugVehicleSpawner.cpp | PsychoDad9999/GTA5-Mods | 38a3aa2ec48cd52cb851f1cda636c53bfbc058ad | [
"MIT"
] | 5 | 2020-09-23T06:03:48.000Z | 2021-04-14T19:37:55.000Z | AdvancedAnchor/src/dbg/debugVehicleSpawner.cpp | PsychoDad9999/GTA5-Mods | 38a3aa2ec48cd52cb851f1cda636c53bfbc058ad | [
"MIT"
] | null | null | null | AdvancedAnchor/src/dbg/debugVehicleSpawner.cpp | PsychoDad9999/GTA5-Mods | 38a3aa2ec48cd52cb851f1cda636c53bfbc058ad | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------
#include "debugVehicleSpawner.h"
#include "inc/natives.h"
#include "framework/world/world.h"
// ----------------------------------------------------------------------------
/// <summery>Spawn a vehicle close to ped position</summery>
///... | 34.266667 | 103 | 0.515564 | PsychoDad9999 |
61b46e28c83c45b3bf931b810a62b648cf7a8ff1 | 122 | cc | C++ | src/UserTrackInformation.cc | omar-moreno/simulation-formerly-known-as-slic | 331d0452d05762e2f4554f0ace6fe46922a7333c | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/UserTrackInformation.cc | omar-moreno/simulation-formerly-known-as-slic | 331d0452d05762e2f4554f0ace6fe46922a7333c | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/UserTrackInformation.cc | omar-moreno/simulation-formerly-known-as-slic | 331d0452d05762e2f4554f0ace6fe46922a7333c | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include "UserTrackInformation.hh"
namespace slic {
G4Allocator<UserTrackInformation> UserTrackInformationAllocator;
}
| 15.25 | 64 | 0.836066 | omar-moreno |
61b735891cf0b3c0a307dcaba3c4136870987e51 | 7,231 | cpp | C++ | bin/sinsy.cpp | Erin59/sinsy0.91 | 249bd757c975436824b88aa773ecb4078eb4d696 | [
"Unlicense"
] | 1 | 2018-12-17T08:41:19.000Z | 2018-12-17T08:41:19.000Z | bin/sinsy.cpp | Erin59/sinsy0.91 | 249bd757c975436824b88aa773ecb4078eb4d696 | [
"Unlicense"
] | null | null | null | bin/sinsy.cpp | Erin59/sinsy0.91 | 249bd757c975436824b88aa773ecb4078eb4d696 | [
"Unlicense"
] | 1 | 2019-09-24T05:52:54.000Z | 2019-09-24T05:52:54.000Z | /* ----------------------------------------------------------------- */
/* The HMM-Based Singing Voice Synthesis System "Sinsy" */
/* developed by Sinsy Working Group */
/* http://sinsy.sourceforge.net/ */
/* -----------------------------... | 40.623596 | 113 | 0.482229 | Erin59 |
61bae19f0a8b4bb1b2e0e02ab25f86f4a3e38184 | 2,064 | cpp | C++ | lib/chunk/Chunk.cpp | NetherGamesMC/noiselib | 56fc48ea1367e1d08b228dfa580b513fbec8ca31 | [
"MIT"
] | 14 | 2021-08-16T18:58:30.000Z | 2022-02-13T01:12:31.000Z | lib/chunk/Chunk.cpp | NetherGamesMC/ext-vanillagenerator | 56fc48ea1367e1d08b228dfa580b513fbec8ca31 | [
"MIT"
] | 2 | 2021-06-21T15:10:01.000Z | 2021-07-19T01:48:00.000Z | lib/chunk/Chunk.cpp | NetherGamesMC/ext-vanillagenerator | 56fc48ea1367e1d08b228dfa580b513fbec8ca31 | [
"MIT"
] | 3 | 2021-06-21T02:10:39.000Z | 2021-08-04T01:36:08.000Z | #include "Chunk.h"
#include <lib/MortonHelper.h>
Chunk::Chunk(int64_t chunk, std::array<NormalBlockArrayContainer *, 16> &b, BiomeArray &biomeArray) : biomeArray(biomeArray) {
std::copy(std::begin(b), std::end(b), std::begin(blockLayer));
int64_t x, z;
morton2d_decode(chunk, x, z);
chunkX = static_cast<int_... | 25.170732 | 126 | 0.668605 | NetherGamesMC |
61bce725c5f29cf304b499a34481bfc6f6f00ee5 | 2,897 | cpp | C++ | Source/source/mob_categories/group_task_category.cpp | ElatedEatrs/Pikifen | 1e834d5241fc631f8dfc519c17358051e867164f | [
"MIT"
] | null | null | null | Source/source/mob_categories/group_task_category.cpp | ElatedEatrs/Pikifen | 1e834d5241fc631f8dfc519c17358051e867164f | [
"MIT"
] | null | null | null | Source/source/mob_categories/group_task_category.cpp | ElatedEatrs/Pikifen | 1e834d5241fc631f8dfc519c17358051e867164f | [
"MIT"
] | null | null | null | /*
* Copyright (c) Andre 'Espyo' Silva 2013.
* The following source file belongs to the open-source project Pikifen.
* Please read the included README and LICENSE files for more information.
* Pikmin is copyright (c) Nintendo.
*
* === FILE DESCRIPTION ===
* Group task mob category class.
*/
#include <algorithm... | 28.683168 | 79 | 0.535381 | ElatedEatrs |
61c3c6dc9fde0d997d8ecc3e5fdfefd01b3d72bf | 3,058 | cpp | C++ | Sources_Common/HTTP/CardDAVClient/CCardDAVMultigetReport.cpp | mbert/mulberry-main | 6b7951a3ca56e01a7be67aa12e55bfeafc63950d | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Sources_Common/HTTP/CardDAVClient/CCardDAVMultigetReport.cpp | mbert/mulberry-main | 6b7951a3ca56e01a7be67aa12e55bfeafc63950d | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Sources_Common/HTTP/CardDAVClient/CCardDAVMultigetReport.cpp | mbert/mulberry-main | 6b7951a3ca56e01a7be67aa12e55bfeafc63950d | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. 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... | 28.055046 | 119 | 0.717462 | mbert |
61c5d9c23bc509b3b9509404fd3ae9041e1d29a9 | 4,350 | cpp | C++ | Janus/src/Scene/Scene.cpp | Kytha/janus-engine | ca0ce92d38a9bdb52ec76c9ebf782b993791a08d | [
"MIT"
] | null | null | null | Janus/src/Scene/Scene.cpp | Kytha/janus-engine | ca0ce92d38a9bdb52ec76c9ebf782b993791a08d | [
"MIT"
] | null | null | null | Janus/src/Scene/Scene.cpp | Kytha/janus-engine | ca0ce92d38a9bdb52ec76c9ebf782b993791a08d | [
"MIT"
] | null | null | null | #include "jnpch.h"
#include "Core/Core.h"
#include "Core/Input.h"
#include "Scene.h"
#include "Graphics/SceneRenderer.h"
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "Scene/Entity.h"
#include "Graphics/Renderer.h"
namespace Janus
{
Scene::Scene(const std::string &debugName)
: m_DebugName(debugName... | 27.1875 | 113 | 0.721609 | Kytha |
61ca05251c7b4567c3bcbb095b2d4d5f710a91a5 | 3,444 | hpp | C++ | cpp/subprojects/common/include/common/binning/threshold_vector.hpp | Waguy02/Boomer-Scripted | b06bb9213d64dca0c05d41701dea12666931618c | [
"MIT"
] | 8 | 2020-06-30T01:06:43.000Z | 2022-03-14T01:58:29.000Z | cpp/subprojects/common/include/common/binning/threshold_vector.hpp | Waguy02/Boomer-Scripted | b06bb9213d64dca0c05d41701dea12666931618c | [
"MIT"
] | 3 | 2020-12-14T11:30:18.000Z | 2022-02-07T06:31:51.000Z | cpp/subprojects/common/include/common/binning/threshold_vector.hpp | Waguy02/Boomer-Scripted | b06bb9213d64dca0c05d41701dea12666931618c | [
"MIT"
] | 4 | 2020-06-24T08:45:00.000Z | 2021-12-23T21:44:51.000Z | /*
* @author Michael Rapp (michael.rapp.ml@gmail.com)
*/
#pragma once
#include "common/data/vector_dense.hpp"
#include "common/input/missing_feature_vector.hpp"
/**
* An one-dimensional vector that stores thresholds that may be used by conditions.
*/
class ThresholdVector final : public MissingFeatureVector {
... | 32.186916 | 120 | 0.589141 | Waguy02 |
61cabc45d6d2c04f3eb69f296aea3dffbe9cd560 | 1,773 | cpp | C++ | velox/exec/Limit.cpp | HuamengJiang/velox-1 | 031066cb33ebc78e0cca3f9638d0eaa238bcbec0 | [
"Apache-2.0"
] | null | null | null | velox/exec/Limit.cpp | HuamengJiang/velox-1 | 031066cb33ebc78e0cca3f9638d0eaa238bcbec0 | [
"Apache-2.0"
] | null | null | null | velox/exec/Limit.cpp | HuamengJiang/velox-1 | 031066cb33ebc78e0cca3f9638d0eaa238bcbec0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 26.462687 | 75 | 0.661027 | HuamengJiang |
61cd5227db8cfd123104b2cd2121a7f8e5a9f294 | 1,671 | cpp | C++ | DynamicProgramming/trappingrainwater.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | null | null | null | DynamicProgramming/trappingrainwater.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | null | null | null | DynamicProgramming/trappingrainwater.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | null | null | null | /*
Leetcode Question 42. Trapping Rain Water
https://leetcode.com/problems/trapping-rain-water/
*/
// Solution 1
class Solution
{
public:
// Time: O(N^2), Space: O(N)
int trap(vector<int> &height)
{
int n = height.size();
int trappedWater = 0;
for (int i = 0; i < n; i++)
{
... | 22.28 | 69 | 0.453621 | thisisnitish |
61ce1574b4254dc87fdcef0f115ef029ddb1cd09 | 743 | cpp | C++ | boost_asio/boost_asio_net_program_book/e.g.6.cpp | adlternative/boost-learn | 8efe901dec2b0caa1b6d59b805fd4af121c51e05 | [
"BSD-2-Clause"
] | null | null | null | boost_asio/boost_asio_net_program_book/e.g.6.cpp | adlternative/boost-learn | 8efe901dec2b0caa1b6d59b805fd4af121c51e05 | [
"BSD-2-Clause"
] | null | null | null | boost_asio/boost_asio_net_program_book/e.g.6.cpp | adlternative/boost-learn | 8efe901dec2b0caa1b6d59b805fd4af121c51e05 | [
"BSD-2-Clause"
] | null | null | null | #include <boost/asio.hpp>
#include <boost/bind/placeholders.hpp>
#include <boost/thread.hpp>
#include <iostream>
/* 不可编译 */
using namespace boost::asio;
bool reads = false;
void deadline_handler(const boost::system::error_code &) {
std::cout << (((reads) ? "reads successfully" : "reads failed")) << std::endl;
}
void... | 28.576923 | 80 | 0.703903 | adlternative |
61cf11066eb994db74ad474415ea46e636ef7d7b | 946 | hpp | C++ | math/primitive/2d/ray.hpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | null | null | null | math/primitive/2d/ray.hpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | 292 | 2020-03-19T22:38:52.000Z | 2022-03-05T22:49:34.000Z | math/primitive/2d/ray.hpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | null | null | null | #pragma once
#include "../../vector/vector2.hpp"
namespace natus
{
namespace math
{
namespace m2d
{
template< typename type_t >
class ray
{
typedef natus::math::vector2< type_t > vec2_t ;
typedef vec2_t const& vec2_cref_t ;
... | 23.65 | 87 | 0.455603 | aconstlink |
61d087c177e256f55cc16e00357ce665ee4dd355 | 34,718 | cpp | C++ | src/Generating/HeiGen.cpp | planetx/MCServer | 4e119b522409af682e62ed38f4d22ddd9da40170 | [
"Apache-2.0"
] | null | null | null | src/Generating/HeiGen.cpp | planetx/MCServer | 4e119b522409af682e62ed38f4d22ddd9da40170 | [
"Apache-2.0"
] | null | null | null | src/Generating/HeiGen.cpp | planetx/MCServer | 4e119b522409af682e62ed38f4d22ddd9da40170 | [
"Apache-2.0"
] | null | null | null |
// HeiGen.cpp
// Implements the various terrain height generators
#include "Globals.h"
#include "HeiGen.h"
#include "../LinearUpscale.h"
#include "../IniFile.h"
#include "DistortedHeightmap.h"
#include "EndGen.h"
#include "Noise3DGenerator.h"
/////////////////////////////////////////////////////////////////////... | 40.136416 | 425 | 0.578518 | planetx |
61d6707cc833bbd6dfa8335f8eec7c9411842562 | 1,018 | cpp | C++ | libs/gui/src/gui/widget/preferred_size.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/gui/src/gui/widget/preferred_size.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/gui/src/gui/widget/preferred_size.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/gui/widget/base.hpp>
#include <sge/gui/widget/dummy.hpp>
#include <sge/gui/widget/pre... | 39.153846 | 91 | 0.714145 | cpreh |
61df96c924580d4f1c49c829e1ff9128d0a96631 | 6,019 | cc | C++ | table/two_level_iterator.cc | Meggie4/partnercompaction_for_read | 6fdc54910fbb80ddfeefec7dfc83cef5f1e2e77f | [
"BSD-3-Clause"
] | null | null | null | table/two_level_iterator.cc | Meggie4/partnercompaction_for_read | 6fdc54910fbb80ddfeefec7dfc83cef5f1e2e77f | [
"BSD-3-Clause"
] | null | null | null | table/two_level_iterator.cc | Meggie4/partnercompaction_for_read | 6fdc54910fbb80ddfeefec7dfc83cef5f1e2e77f | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "table/two_level_iterator.h"
#include "leveldb/table.h"
#include "table/block.h"
#include "ta... | 25.396624 | 82 | 0.65775 | Meggie4 |
61e8b10dd0a7007bef237495a4588bcdbca02ddc | 10,392 | cpp | C++ | Code/Projects/Eldritch/src/Components/wbcompeldhealth.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Projects/Eldritch/src/Components/wbcompeldhealth.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Projects/Eldritch/src/Components/wbcompeldhealth.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | #include "core.h"
#include "wbcompeldhealth.h"
#include "wbeventmanager.h"
#include "configmanager.h"
#include "idatastream.h"
#include "mathcore.h"
#include "eldritchgame.h"
#include "Components/wbcompstatmod.h"
WBCompEldHealth::WBCompEldHealth()
: m_Health(0),
m_MaxHealth(0),
m_InitialHealth(0),
... | 29.355932 | 80 | 0.734122 | kas1e |
61ec522c0e7c6d2e64c1a1a6b19461e2a3a1c665 | 3,543 | hpp | C++ | graphics/source/renderer/render_pass.hpp | HrvojeFER/irg-lab | 53f27430d39fa099dd605cfd632e38b55a392699 | [
"MIT"
] | null | null | null | graphics/source/renderer/render_pass.hpp | HrvojeFER/irg-lab | 53f27430d39fa099dd605cfd632e38b55a392699 | [
"MIT"
] | null | null | null | graphics/source/renderer/render_pass.hpp | HrvojeFER/irg-lab | 53f27430d39fa099dd605cfd632e38b55a392699 | [
"MIT"
] | null | null | null | #ifndef IRGLAB_RENDER_PASS_HPP
#define IRGLAB_RENDER_PASS_HPP
#include "../external/pch.hpp"
#include "../environment/device.hpp"
#include "swapchain.hpp"
namespace il
{
struct render_pass
{
explicit render_pass(const device& device, const swapchain& swapchain) :
inner_{ create... | 31.353982 | 85 | 0.47361 | HrvojeFER |
61ecd281e46e5a97614d2a2c6b29d582663768ca | 781 | cpp | C++ | Leetcode Solution/Particular Patterns Question/Sliding Windows pattern/904. Fruit Into Baskets.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 169 | 2021-05-30T10:02:19.000Z | 2022-03-27T18:09:32.000Z | Leetcode Solution/Particular Patterns Question/Sliding Windows pattern/904. Fruit Into Baskets.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 1 | 2021-10-02T14:46:26.000Z | 2021-10-02T14:46:26.000Z | Leetcode Solution/Particular Patterns Question/Sliding Windows pattern/904. Fruit Into Baskets.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 44 | 2021-05-30T19:56:29.000Z | 2022-03-17T14:49:00.000Z |
class Solution {
public:
int totalFruit(vector<int>& t) {
int n=t.size();
int j=0;
int ans=0;
int count=0;
unordered_map<int,int> mp;
for(int i=0;i<t.size();i++)
{
mp[t[i]]++;
... | 23.666667 | 51 | 0.215109 | bilwa496 |
61edebead0047f6b691c4e24ec8d108b257fb0c8 | 817 | cpp | C++ | Source/10.0.18362.0/ucrt/stdio/feoferr.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | Source/10.0.18362.0/ucrt/stdio/feoferr.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | Source/10.0.18362.0/ucrt/stdio/feoferr.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | //
// feoferr.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines feof() and ferror(), which test the end-of-file and error states of a
// stream, respectively.
//
#include <corecrt_internal_stdio.h>
// Tests the stream for the end-of-file condition. Returns nonzero if and only
/... | 27.233333 | 80 | 0.723378 | 825126369 |
61f44fe6d928e39b026252bcb9ee16e46ffa56dc | 2,376 | cc | C++ | src/base/WCSimStackingAction.cc | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | src/base/WCSimStackingAction.cc | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | src/base/WCSimStackingAction.cc | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | #include "WCSimStackingAction.hh"
#include "WCSimDetectorConstruction.hh"
#include "G4Track.hh"
#include "G4TrackStatus.hh"
#include "G4VProcess.hh"
#include "G4VPhysicalVolume.hh"
#include "Randomize.hh"
#include "G4Navigator.hh"
#include "G4TransportationManager.hh"
#include "G4ParticleDefinition.hh"
#include "G4Par... | 28.626506 | 96 | 0.712963 | chipsneutrino |
61f5742cd088eaea2c5bf10cbd3f09b45feb2ca3 | 3,894 | cpp | C++ | PIXEL2D/Graphics/Window.cpp | Maxchii/PIXEL2D | ac1ce604e4f1b8448f14a4f92c69a2ff6d127f56 | [
"Apache-2.0"
] | 1 | 2015-05-18T15:20:19.000Z | 2015-05-18T15:20:19.000Z | PIXEL2D/Graphics/Window.cpp | Ossadtchii/PIXEL2D | ac1ce604e4f1b8448f14a4f92c69a2ff6d127f56 | [
"Apache-2.0"
] | 5 | 2015-05-18T15:21:28.000Z | 2015-06-28T12:43:52.000Z | PIXEL2D/Graphics/Window.cpp | Maxchii/PIXEL2D | ac1ce604e4f1b8448f14a4f92c69a2ff6d127f56 | [
"Apache-2.0"
] | null | null | null | #include "Window.h"
#include "..//Debugging/Debug.h"
namespace PIXL{ namespace graphics {
int Window::m_height;
int Window::m_width;
Window::Window(const std::string& windowHandle, int width, int height, UInt32 windowFlags /*= 0*/)
: m_windowHandle(windowHandle), m_windowFlags(windowFlags)
{
m_width = width... | 23.317365 | 105 | 0.701079 | Maxchii |
61fad223167c48716cb174bd73e32873916dbe2c | 803 | cpp | C++ | src/system/event_loop.cpp | thknepper/CPPurses | 4f35ba5284bc5ac563214f73f494bd75fd5bf73b | [
"MIT"
] | 1 | 2020-02-22T21:18:11.000Z | 2020-02-22T21:18:11.000Z | src/system/event_loop.cpp | thknepper/CPPurses | 4f35ba5284bc5ac563214f73f494bd75fd5bf73b | [
"MIT"
] | null | null | null | src/system/event_loop.cpp | thknepper/CPPurses | 4f35ba5284bc5ac563214f73f494bd75fd5bf73b | [
"MIT"
] | null | null | null | #include <cppurses/system/event_loop.hpp>
#include <cppurses/system/detail/event_engine.hpp>
#include <cppurses/system/system.hpp>
namespace cppurses {
auto Event_loop::run() -> int
{
if (running_)
return -1;
running_ = true;
auto notify = true;
while (not exit_) {
if (notify)
... | 22.942857 | 69 | 0.625156 | thknepper |
61fc93dd7531c03aef7a64a043afd04eba1c3172 | 10,816 | cpp | C++ | third_party/assimp-5.0.1/test/unit/utValidateDataStructure.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | 158 | 2016-11-17T19:37:51.000Z | 2022-03-21T19:57:55.000Z | third_party/assimp-5.0.1/test/unit/utValidateDataStructure.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | 94 | 2016-11-18T09:55:57.000Z | 2021-01-14T08:50:40.000Z | third_party/assimp-5.0.1/test/unit/utValidateDataStructure.cpp | hporro/grafica_cpp | 1427bb6e8926b44be474b906e9f52cca77b3df9d | [
"MIT"
] | 51 | 2017-05-24T10:20:25.000Z | 2022-03-17T15:07:02.000Z | /*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2019, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,... | 54.08 | 116 | 0.699982 | hporro |
1100a400b314af4bb9223441827d9deb33da4d06 | 4,495 | cpp | C++ | src/protocols/bdx/TransferFacilitator.cpp | lzgrablic02/connectedhomeip | 1581c6d9e22b07a9233392a183f5cacae50378ac | [
"Apache-2.0"
] | 4 | 2020-09-11T04:32:44.000Z | 2022-03-11T09:06:07.000Z | src/protocols/bdx/TransferFacilitator.cpp | kvikrambhat/connectedhomeip | 56f738f0725f6b4a425806293f35f6d51fe8eb52 | [
"Apache-2.0"
] | null | null | null | src/protocols/bdx/TransferFacilitator.cpp | kvikrambhat/connectedhomeip | 56f738f0725f6b4a425806293f35f6d51fe8eb52 | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright (c) 2021 Project CHIP 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 requir... | 37.773109 | 132 | 0.729032 | lzgrablic02 |
1101986808b09debe5addb9e69e4028b85bf490d | 3,191 | cpp | C++ | src/Communication/Server.cpp | einerfreiheit/RemoteRunnerd | 424a2f78c4cb6afb6c089f5dff885dac50decd27 | [
"MIT"
] | null | null | null | src/Communication/Server.cpp | einerfreiheit/RemoteRunnerd | 424a2f78c4cb6afb6c089f5dff885dac50decd27 | [
"MIT"
] | 4 | 2021-03-29T08:03:18.000Z | 2021-06-20T13:06:38.000Z | src/Communication/Server.cpp | einerfreiheit/RemoteRunnerd | 424a2f78c4cb6afb6c089f5dff885dac50decd27 | [
"MIT"
] | 1 | 2020-06-03T08:44:35.000Z | 2020-06-03T08:44:35.000Z | #include "Configuration.hpp"
#include "Permissions.hpp"
#include "Server.hpp"
#include "Session.hpp"
#include "Endpoint/EndpointFactory.hpp"
#include "Endpoint/IEndpoint.hpp"
#include "Task/RemoteTask.hpp"
#include "Task/TaskRunner.hpp"
#include "Utils/TextProcessing.hpp"
#include "Utils/Utils.hpp"
#include <csignal>... | 28.491071 | 97 | 0.6089 | einerfreiheit |
1104f78b37c525c52c70c4a4a9e2aa677fc61891 | 7,883 | cpp | C++ | src/queries.cpp | jermp/rdf_indexes | 927139cad57c28eb8cbdbea5591e556e19abc8d5 | [
"MIT"
] | 6 | 2019-10-20T02:44:10.000Z | 2021-12-22T11:57:26.000Z | src/queries.cpp | jermp/rdf_indexes | 927139cad57c28eb8cbdbea5591e556e19abc8d5 | [
"MIT"
] | 2 | 2020-03-09T12:05:56.000Z | 2021-06-27T21:48:38.000Z | src/queries.cpp | jermp/rdf_indexes | 927139cad57c28eb8cbdbea5591e556e19abc8d5 | [
"MIT"
] | 2 | 2020-07-21T16:59:42.000Z | 2021-06-27T23:35:20.000Z | #include <iostream>
#include "../external/essentials/include/essentials.hpp"
#include "types.hpp"
#include "util.hpp"
#include "util_types.hpp"
using namespace rdf;
uint32_t num_runs(uint32_t runs, uint32_t n) {
static const uint32_t N = 10000;
uint32_t r = 1;
if (n * runs < N) {
r = N / n;
}... | 34.574561 | 80 | 0.468476 | jermp |
1105a6d8cf76e7922477ee2ddd5bf9204cb8311e | 334 | cc | C++ | Tests/Test.cc | loanselot1/IceSDK | 3d8e554ac6ca56a890b74b5f4cc1901f073e3f64 | [
"MIT"
] | 12 | 2020-10-16T06:23:10.000Z | 2021-10-10T07:33:44.000Z | Tests/Test.cc | loanselot1/IceSDK | 3d8e554ac6ca56a890b74b5f4cc1901f073e3f64 | [
"MIT"
] | 6 | 2020-10-11T16:04:29.000Z | 2021-05-09T11:03:08.000Z | Tests/Test.cc | loanselot1/IceSDK | 3d8e554ac6ca56a890b74b5f4cc1901f073e3f64 | [
"MIT"
] | 5 | 2020-10-10T19:45:20.000Z | 2021-03-02T11:36:19.000Z | // used for unit tests
#include "Utils/Memory.h"
#include "GameBase.h"
static IceSDK::Memory::Ptr<IceSDK::GameBase> g_GameBase;
class TestGame : public IceSDK::GameBase
{
};
IceSDK::Memory::Ptr<IceSDK::GameBase> GetGameBase()
{
if (g_GameBase == nullptr) g_GameBase = std::make_shared<TestGame>();
return ... | 16.7 | 73 | 0.706587 | loanselot1 |
1105be8cbff124728af7ec3394cc04f0aea14a90 | 1,001 | hpp | C++ | source code/TexRect.hpp | JackyC415/OpenGL-2D | b61b6f8049ecfc11aff6b67a744bda325b898daa | [
"BSD-2-Clause"
] | null | null | null | source code/TexRect.hpp | JackyC415/OpenGL-2D | b61b6f8049ecfc11aff6b67a744bda325b898daa | [
"BSD-2-Clause"
] | null | null | null | source code/TexRect.hpp | JackyC415/OpenGL-2D | b61b6f8049ecfc11aff6b67a744bda325b898daa | [
"BSD-2-Clause"
] | null | null | null | //
// TexRect.hpp
// glutapp
//
// Created by Angelo Kyrilov on 4/11/17.
// Copyright © 2017 Angelo Kyrilov. All rights reserved.
//
#ifndef TexRect_hpp
#define TexRect_hpp
#if defined WIN32
#include <freeglut.h>
#elif defined __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/freeglut.h>
#endif
class TexRect {... | 18.886792 | 68 | 0.563437 | JackyC415 |
110df058e0c01eb9aa8d8bb773e5b098d0521c78 | 2,216 | cpp | C++ | particles-simulator/src/Game/StateManager.cpp | bartos97/particles-simulator | dc2fc18fbc047803b3c17d7cc7bf9dbc99b00a2b | [
"WTFPL"
] | null | null | null | particles-simulator/src/Game/StateManager.cpp | bartos97/particles-simulator | dc2fc18fbc047803b3c17d7cc7bf9dbc99b00a2b | [
"WTFPL"
] | null | null | null | particles-simulator/src/Game/StateManager.cpp | bartos97/particles-simulator | dc2fc18fbc047803b3c17d7cc7bf9dbc99b00a2b | [
"WTFPL"
] | null | null | null | #include "pch.h"
#include "StateManager.h"
#include <fstream>
#include <algorithm>
StateManager& StateManager::getInstance()
{
static StateManager instance;
return instance;
}
bool StateManager::loadFromFile(const std::string& filePath)
{
std::ifstream fileStream(filePath, std::ios::in);
if (!fileStr... | 23.326316 | 78 | 0.614621 | bartos97 |
11155a782e859920e824308e53b081bf510634ac | 1,385 | cpp | C++ | codeforces/B - Trouble Sort/Wrong answer on pretest 2.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/B - Trouble Sort/Wrong answer on pretest 2.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/B - Trouble Sort/Wrong answer on pretest 2.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: * kzvd4729 created: Jun/07/2020 20:55
* solution_verdict: Wrong answer on pretest 2 language: GNU C++14
* run... | 28.854167 | 111 | 0.467148 | kzvd4729 |
1115843179e5bf72d01674ae14c979cfed6a3eba | 3,133 | hpp | C++ | c++/src/objtools/data_loaders/blastdb/local_blastdb_adapter.hpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 31 | 2016-12-09T04:56:59.000Z | 2021-12-31T17:19:10.000Z | c++/src/objtools/data_loaders/blastdb/local_blastdb_adapter.hpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 6 | 2017-03-10T17:25:13.000Z | 2021-09-22T15:49:49.000Z | c++/src/objtools/data_loaders/blastdb/local_blastdb_adapter.hpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 20 | 2015-01-04T02:15:17.000Z | 2021-12-03T02:31:43.000Z | #ifndef OBJTOOLS_DATA_LOADERS_BLASTDB___LOCAL_BLASTDB_ADAPTER__HPP
#define OBJTOOLS_DATA_LOADERS_BLASTDB___LOCAL_BLASTDB_ADAPTER__HPP
/* $Id: local_blastdb_adapter.hpp 368048 2012-07-02 13:25:25Z camacho $
* ===========================================================================
*
* ... | 37.746988 | 79 | 0.67571 | OpenHero |
111b718913e890c11f93d12c25696cfc174db700 | 1,025 | cpp | C++ | src/sys/eventtypestore.cpp | ajdnik/work-schedule | b42613aa62d991649d46defb4722690ffdbe6b7b | [
"MIT"
] | null | null | null | src/sys/eventtypestore.cpp | ajdnik/work-schedule | b42613aa62d991649d46defb4722690ffdbe6b7b | [
"MIT"
] | null | null | null | src/sys/eventtypestore.cpp | ajdnik/work-schedule | b42613aa62d991649d46defb4722690ffdbe6b7b | [
"MIT"
] | null | null | null | #include "eventtypestore.h"
#include <QVariant>
EventTypeStore::EventTypeStore(DatabaseManager *manager, Error *error, QObject *parent)
: Store<EventType>(manager, error, parent)
{
this->addRole("id");
this->addRole("name");
this->add(EventType(1, QObject::tr("Vacation")), 1);
this->add(EventType(... | 29.285714 | 87 | 0.628293 | ajdnik |
111bbaabad015cadda72cecc2b22738403920e76 | 1,533 | cpp | C++ | 1. Implementation of Stack using array.cpp | student-entrepreneur/DATA-STRUCTURE | 83c2306c4e744f9a579102679439ec419fa4ff6f | [
"Apache-2.0"
] | null | null | null | 1. Implementation of Stack using array.cpp | student-entrepreneur/DATA-STRUCTURE | 83c2306c4e744f9a579102679439ec419fa4ff6f | [
"Apache-2.0"
] | null | null | null | 1. Implementation of Stack using array.cpp | student-entrepreneur/DATA-STRUCTURE | 83c2306c4e744f9a579102679439ec419fa4ff6f | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<conio.h>
#include<stdlib.h>
int max,i,n,x;
int top=-1;
class stack
{
int s[500];
public:
void push();
void pop();
void display();
void topele();
};
void stack::push()
{
int x;
if(top==(max-1))
std::cout<<"Stack is full";
else
{
std::cout<<"enter data:";
std::cin>>x;
to... | 14.883495 | 71 | 0.529028 | student-entrepreneur |
112a531aa8cca13a371cdde63122f451b8b67d75 | 2,417 | hpp | C++ | nexxT/src/Logger.hpp | pfrydlewicz/nexxT | 33616dbeee448c59201aa3009d637fe6b8d2b39c | [
"Apache-2.0"
] | 5 | 2020-05-03T10:52:14.000Z | 2022-03-02T10:32:33.000Z | nexxT/src/Logger.hpp | pfrydlewicz/nexxT | 33616dbeee448c59201aa3009d637fe6b8d2b39c | [
"Apache-2.0"
] | 32 | 2020-05-18T15:49:00.000Z | 2022-02-22T20:10:56.000Z | nexxT/src/Logger.hpp | pfrydlewicz/nexxT | 33616dbeee448c59201aa3009d637fe6b8d2b39c | [
"Apache-2.0"
] | 2 | 2020-03-21T15:04:46.000Z | 2021-03-01T15:42:49.000Z | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2020 ifm electronic gmbh
*
* THE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
*/
/**
\file Logger.hpp
Macros for logging from the C++ world.
*/
#ifndef NEXXT_LOGGER_HPP
#define NEXXT_LOGGER_HPP
#include "Services.hpp"
#include "Nexx... | 27.157303 | 114 | 0.719901 | pfrydlewicz |
112e731e487fd8f0581def8bc6b9893fe61ba2d9 | 4,308 | cpp | C++ | Engine/EditorUI/Panel/InspectorSubpanel/PanelTrail.cpp | mariofv/LittleEngine | 38ecfdf6041a24f304c679ee3b6b589ba2040e48 | [
"MIT"
] | 9 | 2020-04-05T07:44:38.000Z | 2022-01-12T02:07:14.000Z | Engine/EditorUI/Panel/InspectorSubpanel/PanelTrail.cpp | mariofv/LittleEngine | 38ecfdf6041a24f304c679ee3b6b589ba2040e48 | [
"MIT"
] | 105 | 2020-03-13T19:12:23.000Z | 2020-12-02T23:41:15.000Z | Engine/EditorUI/Panel/InspectorSubpanel/PanelTrail.cpp | mariofv/LittleEngine | 38ecfdf6041a24f304c679ee3b6b589ba2040e48 | [
"MIT"
] | 1 | 2021-04-24T16:11:49.000Z | 2021-04-24T16:11:49.000Z | #include "PanelTrail.h"
#include "Component/ComponentTrail.h"
#include "EditorUI/Helper/ImGuiHelper.h"
#include "EditorUI/Panel/PanelPopups.h"
#include "EditorUI/Panel/PopupsPanel/PanelPopupResourceSelector.h"
#include "Module/ModuleActions.h"
#include "Module/ModuleEditor.h"
#include <imgui.h>
#include <imgui_intern... | 33.138462 | 116 | 0.690808 | mariofv |
113069a09eb0e96a1e8096a63938d77c99437678 | 6,755 | cpp | C++ | clangd/AST.cpp | jrose-apple/swift-clang-tools-extra | 1e165857dc4f2cfd77970c42fbc345a474992a39 | [
"Apache-2.0"
] | 16 | 2018-11-28T12:05:20.000Z | 2021-11-08T09:47:46.000Z | clangd/AST.cpp | jrose-apple/swift-clang-tools-extra | 1e165857dc4f2cfd77970c42fbc345a474992a39 | [
"Apache-2.0"
] | 4 | 2018-11-30T19:12:21.000Z | 2019-10-04T17:37:07.000Z | clangd/AST.cpp | dragon-tc-tmp/clang-tools-extra | e16e704b6f7d4185e55942883506c1bb9280cd2d | [
"Apache-2.0"
] | 15 | 2019-02-01T20:10:43.000Z | 2022-03-26T11:52:37.000Z | //===--- AST.cpp - Utility AST functions -----------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 38.821839 | 80 | 0.68601 | jrose-apple |
11335b21a019afcc255e8dfcf4198ddac289c667 | 2,147 | cc | C++ | build/X86/mem/ruby/structures/ReplacementPolicy.py.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/X86/mem/ruby/structures/ReplacementPolicy.py.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | build/X86/mem/ruby/structures/ReplacementPolicy.py.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_objects_ReplacementPolicy[] = {
120,156,181,146,77,111,211,64,16,134,103,237,56,109,211,32,
168,16,7,46,40,226,100,113,168,185,244,134,42,232,141,3,
80,37,92,154,139,181,94,15,120,131,215,142,188,99,20,247,
90,254,55,204,172,155,182,82,225,200,2... | 46.673913 | 73 | 0.679553 | zhoushuxin |
1136a5ca250611fe03a305d4491b73217a3b4551 | 521 | cpp | C++ | tray/src/core/windows/icon.cpp | dicroce/traypp | ad75b76058296a647327b81e87a61887c3080fdb | [
"MIT"
] | 16 | 2021-04-06T10:34:53.000Z | 2022-02-23T23:23:48.000Z | tray/src/core/windows/icon.cpp | dicroce/traypp | ad75b76058296a647327b81e87a61887c3080fdb | [
"MIT"
] | 4 | 2021-04-15T05:55:57.000Z | 2022-03-23T00:03:27.000Z | tray/src/core/windows/icon.cpp | dicroce/traypp | ad75b76058296a647327b81e87a61887c3080fdb | [
"MIT"
] | 2 | 2021-12-06T15:52:45.000Z | 2022-03-22T19:24:42.000Z | #if defined(_WIN32)
#include <core/icon.hpp>
Tray::Icon::Icon(const std::string &path)
: hIcon(reinterpret_cast<HICON>(
LoadImageA(nullptr, path.c_str(), IMAGE_ICON, 0, 0, LR_LOADFROMFILE | LR_DEFAULTSIZE)))
{
}
Tray::Icon::Icon(HICON icon) : hIcon(icon) {}
Tray::Icon::Icon(const char *path) : I... | 28.944444 | 108 | 0.662188 | dicroce |
1137cb9050c8a5324a9944454e73564830fd947f | 44,488 | cxx | C++ | osprey/be/cg/cg_gcov.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/cg_gcov.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/cg_gcov.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2010 Advanced Micro Devices, Inc. All Rights Reserved.
*/
/*
* Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by... | 32.051873 | 157 | 0.643926 | sharugupta |
1138121df23dfd5b47c877a9c29c7a122eb27c78 | 9,554 | cpp | C++ | gen/blink/bindings/core/v8/V8SVGPoint.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | 8 | 2019-05-05T16:38:05.000Z | 2021-11-09T11:45:38.000Z | gen/blink/bindings/core/v8/V8SVGPoint.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | null | null | null | gen/blink/bindings/core/v8/V8SVGPoint.cpp | gergul/MiniBlink | 7a11c52f141d54d5f8e1a9af31867cd120a2c3c4 | [
"Apache-2.0"
] | 4 | 2018-12-14T07:52:46.000Z | 2021-06-11T18:06:09.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8SVGPoint.h"
#include "bindings/core/v8/Exce... | 44.64486 | 498 | 0.765648 | gergul |
113d5adb558d92606bc6c637a25bcbc19a7f655e | 2,432 | cpp | C++ | surfer_girl.cpp | Pumpkrin/surfer_girl | 98af7692fd81b8fc4e11c85af43adc5d0b951874 | [
"MIT"
] | null | null | null | surfer_girl.cpp | Pumpkrin/surfer_girl | 98af7692fd81b8fc4e11c85af43adc5d0b951874 | [
"MIT"
] | null | null | null | surfer_girl.cpp | Pumpkrin/surfer_girl | 98af7692fd81b8fc4e11c85af43adc5d0b951874 | [
"MIT"
] | null | null | null | #include "utilities.hpp"
#include <iostream>
int main( int argc, char* argv[] ) {
std::string input_file, output_file{"output.root"};
if(argc < 3){ std::cerr << "surfer_girl should be called the following way: ./surfer_girl -in input_file.bin [-out output_file.root] \n"; return 1; }
else{
f... | 47.686275 | 314 | 0.537418 | Pumpkrin |
113e4356f349715de74c426ca8529f1b3fdbfae2 | 5,286 | ipp | C++ | ecl/hqlcpp/hqlnlp.ipp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | ecl/hqlcpp/hqlnlp.ipp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | 1 | 2018-03-01T18:15:12.000Z | 2018-03-01T18:15:12.000Z | ecl/hqlcpp/hqlnlp.ipp | JamesDeFabia/HPCC-Platform | e10caebb70ea7aabbdef762683a78b146ec060bb | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | 33.245283 | 153 | 0.687476 | oxhead |
113f43d43969ab16774b09d5392cde68ab36d1a3 | 45,758 | cpp | C++ | core/src/Spirit/IO.cpp | MSallermann/spirit | d3b771bcbf2f1eb4b28d48899091c17a48f12c67 | [
"MIT"
] | 46 | 2020-08-24T22:40:15.000Z | 2022-02-28T06:54:54.000Z | core/src/Spirit/IO.cpp | MSallermann/spirit | d3b771bcbf2f1eb4b28d48899091c17a48f12c67 | [
"MIT"
] | null | null | null | core/src/Spirit/IO.cpp | MSallermann/spirit | d3b771bcbf2f1eb4b28d48899091c17a48f12c67 | [
"MIT"
] | 4 | 2020-09-05T13:24:41.000Z | 2021-11-06T07:46:47.000Z | #include <Spirit/State.h>
#include <Spirit/IO.h>
#include <Spirit/Chain.h>
#include <Spirit/Configurations.h>
#include <data/State.hpp>
#include <data/Spin_System.hpp>
#include <data/Spin_System_Chain.hpp>
#include <io/IO.hpp>
#include <io/Filter_File_Handle.hpp>
#include <io/OVF_File.hpp>
#include <utility/Logging.hp... | 36.489633 | 203 | 0.517199 | MSallermann |
113f60037f9820c2f83d61170ba789b0413b3774 | 9,617 | cpp | C++ | irohad/consensus/yac/impl/yac_gate_impl.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1 | 2020-05-15T10:02:38.000Z | 2020-05-15T10:02:38.000Z | irohad/consensus/yac/impl/yac_gate_impl.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 2 | 2020-02-18T11:25:35.000Z | 2020-02-20T04:09:45.000Z | irohad/consensus/yac/impl/yac_gate_impl.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1 | 2020-07-25T11:15:16.000Z | 2020-07-25T11:15:16.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "consensus/yac/impl/yac_gate_impl.hpp"
#include <boost/range/adaptor/transformed.hpp>
#include <rxcpp/operators/rx-flat_map.hpp>
#include "common/visitor.hpp"
#include "consensus/yac/cluster_order.hpp"
#inclu... | 41.632035 | 80 | 0.577415 | akshatkarani |
1140924ee363de3318b9f2b566ac9513058e5fd1 | 46,384 | cpp | C++ | tests/Unit/ApparentHorizons/Test_StrahlkorperGr.cpp | kidder/spectre | 97ae95f72320f9f67895d3303824e64de6fd9077 | [
"MIT"
] | 1 | 2021-03-31T05:22:18.000Z | 2021-03-31T05:22:18.000Z | tests/Unit/ApparentHorizons/Test_StrahlkorperGr.cpp | kidder/spectre | 97ae95f72320f9f67895d3303824e64de6fd9077 | [
"MIT"
] | 9 | 2021-09-02T19:53:22.000Z | 2021-11-02T02:41:16.000Z | tests/Unit/ApparentHorizons/Test_StrahlkorperGr.cpp | kidder/spectre | 97ae95f72320f9f67895d3303824e64de6fd9077 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <algorithm>
#include <array>
#include <cmath>
#include <cstddef>
#include <random>
#include "ApparentHorizons/Strahlkorper.hpp"
#include "ApparentHorizons/StrahlkorperGr.hpp"
#include "ApparentHor... | 44.386603 | 81 | 0.709857 | kidder |
11410e1b98a4b57d80e25385964a1af4a2220a56 | 2,207 | cpp | C++ | samples/snippets/cpp/VS_Snippets_WebNet/HtmlTextWriter_Properties/CPP/htmltextwriter_properties1.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_WebNet/HtmlTextWriter_Properties/CPP/htmltextwriter_properties1.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_WebNet/HtmlTextWriter_Properties/CPP/htmltextwriter_properties1.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.dll>
#using <System.Drawing.dll>
#using <System.Web.dll>
using namespace System;
using namespace System::IO;
using namespace System::Web::UI;
using namespace System::Web::UI::WebControls;
public ref class FirstControl: public WebControl
{
private:
// The message property.
String^ myM... | 26.914634 | 135 | 0.598097 | hamarb123 |
1142775d284a7f7bc5f56c16a829232f6b3f267a | 665 | cpp | C++ | src/main.cpp | Dcbaas/DAVID_BAAS-SANTIAGO_QUIROGA-Sudoku-Project | d9db5a5db1cacd86b08fd766dc9c4ea41e0efb7c | [
"MIT"
] | null | null | null | src/main.cpp | Dcbaas/DAVID_BAAS-SANTIAGO_QUIROGA-Sudoku-Project | d9db5a5db1cacd86b08fd766dc9c4ea41e0efb7c | [
"MIT"
] | null | null | null | src/main.cpp | Dcbaas/DAVID_BAAS-SANTIAGO_QUIROGA-Sudoku-Project | d9db5a5db1cacd86b08fd766dc9c4ea41e0efb7c | [
"MIT"
] | null | null | null | #include "sudoku_solver.h"
#include <iostream>
int main(int argc, char** argv){
int board[9][9] = {{ 0, 3, 0, 0, 0, 0, 0, 2, 0 },
{ 0, 9, 0, 0, 0, 0, 0, 8, 5 },
{ 5, 0, 0, 0, 8, 0, 4, 0, 0 },
{ 4, 0, 7, 2, 0, 6, 8, 9, 0 },
{ 0, 1, 0, 8, 0, 9... | 31.666667 | 51 | 0.306767 | Dcbaas |
11437d745b979f374de8be1040638f7cb3af4b89 | 2,409 | cc | C++ | src/SoftMaxLoss.cc | wylqq312715289/N3LDG-plus | 26069aaa877359d6a5838d085187957655027d7e | [
"Apache-2.0"
] | null | null | null | src/SoftMaxLoss.cc | wylqq312715289/N3LDG-plus | 26069aaa877359d6a5838d085187957655027d7e | [
"Apache-2.0"
] | null | null | null | src/SoftMaxLoss.cc | wylqq312715289/N3LDG-plus | 26069aaa877359d6a5838d085187957655027d7e | [
"Apache-2.0"
] | null | null | null | #include "SoftMaxLoss.h"
dtype softMaxLoss(PNode x, const vector<dtype> &answer, Metric &eval,
dtype batchsize) {
int nDim = x->getDim();
int labelsize = answer.size();
if (labelsize != nDim) {
std::cerr << "softmax_loss error: dim size invalid" << std::endl;
return -1.0;
}
NRVec<d... | 24.333333 | 79 | 0.54587 | wylqq312715289 |
1146566402db3f28041a2eaaa861eb708cb2a02d | 10,207 | cc | C++ | src/main/window.cc | sp-nitech/SPTK | d571e4d23be1fa8c15846da3165a10746ef7c421 | [
"Apache-2.0"
] | 91 | 2017-12-25T14:13:17.000Z | 2022-03-15T14:33:23.000Z | src/main/window.cc | sp-nitech/SPTK | d571e4d23be1fa8c15846da3165a10746ef7c421 | [
"Apache-2.0"
] | 4 | 2020-09-28T03:58:29.000Z | 2021-12-14T01:23:13.000Z | src/main/window.cc | sp-nitech/SPTK | d571e4d23be1fa8c15846da3165a10746ef7c421 | [
"Apache-2.0"
] | 16 | 2018-03-12T07:08:09.000Z | 2022-03-22T02:38:13.000Z | // ------------------------------------------------------------------------ //
// Copyright 2021 SPTK Working Group //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 39.10728 | 168 | 0.548153 | sp-nitech |
114a2e7213cd5ba6f890343424905fea6979c0dc | 12,908 | cpp | C++ | src/jpeg.imageio/jpegoutput.cpp | ndubey/oiio | fb00e178be048c31f478076977d17434c310472c | [
"BSD-3-Clause"
] | 1 | 2016-09-05T01:16:09.000Z | 2016-09-05T01:16:09.000Z | src/jpeg.imageio/jpegoutput.cpp | Alexander-Murashko/oiio | 2cb95cf674e6cb085eb14614c428535ed2b8989b | [
"BSD-3-Clause"
] | null | null | null | src/jpeg.imageio/jpegoutput.cpp | Alexander-Murashko/oiio | 2cb95cf674e6cb085eb14614c428535ed2b8989b | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright 2008 Larry Gritz and the other authors and contributors.
All Rights Reserved.
Based on BSD-licensed software Copyright 2004 NVIDIA Corp.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistribu... | 35.076087 | 84 | 0.633096 | ndubey |
114ae27168d01b04fcd2e2dbff9447045aff7309 | 1,988 | cpp | C++ | test/wiztk/gui/gles2-backend/test-gles2-backend.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 37 | 2017-11-22T14:15:33.000Z | 2021-11-25T20:39:39.000Z | test/wiztk/gui/gles2-backend/test-gles2-backend.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 3 | 2018-03-01T12:44:22.000Z | 2021-01-04T23:14:41.000Z | test/wiztk/gui/gles2-backend/test-gles2-backend.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 10 | 2017-11-25T19:09:11.000Z | 2020-12-02T02:05:47.000Z | /*
* Copyright 2017 - 2018 The WizTK 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 ... | 27.611111 | 103 | 0.716298 | wiztk |
114c81042213b6ff7909f38fcd363c7c426cfb3c | 1,107 | cpp | C++ | Simple++/Time/Tick.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Time/Tick.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Time/Tick.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | #include "Tick.h"
namespace Time {
Time::Tick operator-( const Tick & t1, const Tick & t2 ) {
return Tick( t1.getValue() - t2.getValue() );
}
Tick getClock() {
return Tick( clock() );
}
Tick::Tick() {
}
Tick::Tick( const Tick & tick ) :
c( tick.c ) {
}
Tick::Tick( ClockT tick ) :
c( tick ... | 12.872093 | 59 | 0.550136 | Oriode |
114cb841c10c9ffaf18f367b830bc21586533714 | 6,147 | cpp | C++ | Incursion/Code/Game/Player.cpp | yixuan-wei/Incursion | fa76fd30d1867cd05ffbc165d3577bc45cfde7ba | [
"MIT"
] | null | null | null | Incursion/Code/Game/Player.cpp | yixuan-wei/Incursion | fa76fd30d1867cd05ffbc165d3577bc45cfde7ba | [
"MIT"
] | null | null | null | Incursion/Code/Game/Player.cpp | yixuan-wei/Incursion | fa76fd30d1867cd05ffbc165d3577bc45cfde7ba | [
"MIT"
] | null | null | null | #include "Game/Player.hpp"
#include "Game/GameCommon.hpp"
#include "Game/Map.hpp"
#include "Engine/Input/InputSystem.hpp"
#include "Engine/Input/XboxController.hpp"
#include "Engine/Math/MathUtils.hpp"
#include "Engine/Math/AABB2.hpp"
#include "Engine/Core/Vertex_PCU.hpp"
#include "Engine/Renderer/RenderContext.hpp"
#i... | 32.52381 | 145 | 0.684724 | yixuan-wei |
114e0965901bdcc26728553f33709f1291dd3ed3 | 408 | cpp | C++ | Paddle.cpp | jaguile6/almost-pong | 48dbd1049868bb46df37285a74da1eaaef6f8fd6 | [
"MIT"
] | null | null | null | Paddle.cpp | jaguile6/almost-pong | 48dbd1049868bb46df37285a74da1eaaef6f8fd6 | [
"MIT"
] | null | null | null | Paddle.cpp | jaguile6/almost-pong | 48dbd1049868bb46df37285a74da1eaaef6f8fd6 | [
"MIT"
] | null | null | null | #include "Paddle.h"
#include "Globals.h"
#include <Arduboy2.h>
void Paddle::updatePaddle(){
if(this->y < this->destination){
this->y += vy;
}
if(this->y > this->destination){
this->y -= vy;
}
}
void Paddle::drawPaddle(){
arduboy.drawRect(this->x,this->y, 2, 18, WHITE);
}
void Pad... | 18.545455 | 51 | 0.580882 | jaguile6 |
1152b9eba5d90524a7597fd5db7683bd1b859ca9 | 960 | cpp | C++ | Dynamic_Programming/minimizing_coins.cpp | DannyAntonelli/CSES-Problem-Set | 599b5efb2d7efb9b7e1bfde3142702dc5d0c3988 | [
"MIT"
] | null | null | null | Dynamic_Programming/minimizing_coins.cpp | DannyAntonelli/CSES-Problem-Set | 599b5efb2d7efb9b7e1bfde3142702dc5d0c3988 | [
"MIT"
] | null | null | null | Dynamic_Programming/minimizing_coins.cpp | DannyAntonelli/CSES-Problem-Set | 599b5efb2d7efb9b7e1bfde3142702dc5d0c3988 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define RFOR(i, a, b) for (int i = (a); i > (b); --i)
#define ALL(x) x.begin(), x.end()
#define F first
#define S second
#define PB push_back
#define MP make_pair
using namespace std;
using ll = long long;
using ld = long double;
typedef v... | 18.823529 | 53 | 0.464583 | DannyAntonelli |
11545f6273e19ab895feeb080af8ab8445dbf737 | 18,371 | cpp | C++ | XControl/src/xcOleControlContain.cpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | XControl/src/xcOleControlContain.cpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | XControl/src/xcOleControlContain.cpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "..\include\xcOleControlContain.hpp"
namespace Hxsoft{ namespace XFrame
{
xcOleControlContain::xcOleControlContain(void): m_pOleControl(NULL)
{
m_pClientSite = new CComObject<COleClientSite>();
m_pInPlaceSite = new CComObject<COleInPlaceSite>();
m_pInPlaceFrame = new CComObject<... | 26.858187 | 254 | 0.735888 | qianxj |
1156994f878b98e57ba26c0906acd95023bb49a4 | 15,293 | cpp | C++ | src/metadata/domain.cpp | blumf/flamerobin | 3b442c6786d916383f885d81f0303171fd8ce7c2 | [
"MIT"
] | 2 | 2019-05-29T08:32:18.000Z | 2021-02-17T08:19:00.000Z | src/metadata/domain.cpp | blumf/flamerobin | 3b442c6786d916383f885d81f0303171fd8ce7c2 | [
"MIT"
] | null | null | null | src/metadata/domain.cpp | blumf/flamerobin | 3b442c6786d916383f885d81f0303171fd8ce7c2 | [
"MIT"
] | 1 | 2020-06-15T06:49:18.000Z | 2020-06-15T06:49:18.000Z | /*
Copyright (c) 2004-2016 The FlameRobin Development Team
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, modi... | 29.752918 | 155 | 0.620088 | blumf |
115be4f3f2bf95b78f44b020595eab8a5576a24f | 7,234 | inl | C++ | Library/Sources/Stroika/Frameworks/Led/StyledTextEmbeddedObjects.inl | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Library/Sources/Stroika/Frameworks/Led/StyledTextEmbeddedObjects.inl | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Library/Sources/Stroika/Frameworks/Led/StyledTextEmbeddedObjects.inl | 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
*/
#ifndef _Stroika_Framework_Led_StyledTextEmbeddedObjects_inl_
#define _Stroika_Framework_Led_StyledTextEmbeddedObjects_inl_ 1
/*
********************************************************************************
****************************... | 40.413408 | 160 | 0.632568 | SophistSolutions |
115ce087e64662c8859b9df75e73999b620b53da | 1,916 | hpp | C++ | src/glShaderUtil.hpp | Cyberunner23/OpenGLFun | ccc6c240d9f63f9421e9505a40d1eacd0db8185b | [
"Apache-2.0",
"MIT"
] | null | null | null | src/glShaderUtil.hpp | Cyberunner23/OpenGLFun | ccc6c240d9f63f9421e9505a40d1eacd0db8185b | [
"Apache-2.0",
"MIT"
] | null | null | null | src/glShaderUtil.hpp | Cyberunner23/OpenGLFun | ccc6c240d9f63f9421e9505a40d1eacd0db8185b | [
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright 2017 Alex Frappier Lachapelle
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except accord... | 26.611111 | 103 | 0.665449 | Cyberunner23 |
115da421a59cc35d22f54ab8944865f759020f34 | 759 | cc | C++ | muduo/net/protorpc/RpcCodec.cc | Fuyi-Huang/muduo-study | 84b5f4f672123ffe5eb376d53263247c3ba942e8 | [
"BSD-3-Clause"
] | 2 | 2018-11-09T16:34:39.000Z | 2018-11-09T16:34:44.000Z | muduo/net/protorpc/RpcCodec.cc | Fuyi-Huang/muduo-study | 84b5f4f672123ffe5eb376d53263247c3ba942e8 | [
"BSD-3-Clause"
] | 1 | 2019-07-03T14:42:53.000Z | 2019-08-07T01:43:17.000Z | muduo/net/protorpc/RpcCodec.cc | Fuyi-Huang/muduo-study | 84b5f4f672123ffe5eb376d53263247c3ba942e8 | [
"BSD-3-Clause"
] | 1 | 2020-09-15T03:27:22.000Z | 2020-09-15T03:27:22.000Z | // Copyright 2010, Shuo Chen. All rights reserved.
// http://code.google.com/p/muduo/
//
// Use of this source code is governed by a BSD-style license
// that can be found in the License file.
// Author: Shuo Chen (chenshuo at chenshuo dot com)
#include <muduo/net/protorpc/RpcCodec.h>
#include <muduo/base/Logging.h... | 19.973684 | 62 | 0.720685 | Fuyi-Huang |
1164d2ef6dae08fcf5de985fcecc9839b5d71f18 | 4,082 | hpp | C++ | include/libp2p/protocol/kademlia/impl/get_value_executor.hpp | vvarma/cpp-libp2p | 4953f30bc087de42637640eef929acfd102ef895 | [
"Apache-2.0",
"MIT"
] | null | null | null | include/libp2p/protocol/kademlia/impl/get_value_executor.hpp | vvarma/cpp-libp2p | 4953f30bc087de42637640eef929acfd102ef895 | [
"Apache-2.0",
"MIT"
] | null | null | null | include/libp2p/protocol/kademlia/impl/get_value_executor.hpp | vvarma/cpp-libp2p | 4953f30bc087de42637640eef929acfd102ef895 | [
"Apache-2.0",
"MIT"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef LIBP2P_PROTOCOL_KADEMLIA_GETVALUEEXECUTOR
#define LIBP2P_PROTOCOL_KADEMLIA_GETVALUEEXECUTOR
#include <libp2p/protocol/kademlia/impl/response_handler.hpp>
#include <boost/multi_index/hashed_index_fwd.hpp>
#inc... | 32.919355 | 77 | 0.71999 | vvarma |
116e6bd56e33fe32a4a6fc2f0cec80bcf05abed6 | 262 | cpp | C++ | acm/shuoj/1199.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 17 | 2016-01-01T12:57:25.000Z | 2022-02-06T09:55:12.000Z | acm/shuoj/1199.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | null | null | null | acm/shuoj/1199.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 8 | 2018-12-27T01:31:49.000Z | 2022-02-06T09:55:12.000Z | #include<bits/stdc++.h>
using namespace std;
int main(){
int n,m;
while(cin>>n>>m&&n&&m){
int a;
int yn = 0;
for(int i = 0;i<n;i++){
if(i != 0)cout<<" ";
cin>>a;
if(yn == 0&&m<a){
cout<<m<<" ";yn = 1;
}
cout<<a;
}
cout<<endl;
}
}
| 13.789474 | 25 | 0.450382 | xiaohuihuigh |
1176d493da82fd3ec95b0d0adfd9d1011a875d55 | 1,768 | hpp | C++ | include/SAMPCpp/Core/String.hpp | PoetaKodu/samp-cpp | dbd5170efe0c799d1ec902e2b8a385596a5303a8 | [
"MIT"
] | null | null | null | include/SAMPCpp/Core/String.hpp | PoetaKodu/samp-cpp | dbd5170efe0c799d1ec902e2b8a385596a5303a8 | [
"MIT"
] | null | null | null | include/SAMPCpp/Core/String.hpp | PoetaKodu/samp-cpp | dbd5170efe0c799d1ec902e2b8a385596a5303a8 | [
"MIT"
] | 1 | 2021-06-10T22:59:53.000Z | 2021-06-10T22:59:53.000Z | #pragma once
#include SAMPCPP_PCH
namespace samp_cpp
{
template <size_t MaxChars>
class InplaceStr
: public std::array<char, MaxChars>
{
public:
// Use the same constructors.
using std::array<char, MaxChars>::array;
std::string str(size_t maxLen = MaxChars) const
{
if ((*this)[0] == 0)
return {};
size_t... | 21.560976 | 80 | 0.694005 | PoetaKodu |
1177e23c507cf4e9101c51e2396f358cc002663a | 1,177 | hpp | C++ | manager.hpp | inspur-bmc/sfp-manager | 8ad235bc55aaeedfc0919f5dfb43621b77a8fe71 | [
"Apache-2.0"
] | null | null | null | manager.hpp | inspur-bmc/sfp-manager | 8ad235bc55aaeedfc0919f5dfb43621b77a8fe71 | [
"Apache-2.0"
] | null | null | null | manager.hpp | inspur-bmc/sfp-manager | 8ad235bc55aaeedfc0919f5dfb43621b77a8fe71 | [
"Apache-2.0"
] | 2 | 2019-02-11T02:35:27.000Z | 2019-09-29T09:02:51.000Z | #include "sfp.hpp"
#include "types.hpp"
#include <experimental/filesystem>
#include <iostream>
#include <memory>
#include <sdbusplus/sdbus.hpp>
#include <sdeventplus/event.hpp>
#include <vector>
#include <xyz/openbmc_project/Sfp/Manager/server.hpp>
namespace phosphor
{
namespace sfp
{
using ManagerObject = sdbusplus... | 26.75 | 90 | 0.667799 | inspur-bmc |
117a014946d00ac43c6dcd04ef66ddf853938c46 | 1,404 | cpp | C++ | Modules/MatchPointRegistration/src/Rendering/mitkRegEvalStyleProperty.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Modules/MatchPointRegistration/src/Rendering/mitkRegEvalStyleProperty.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Modules/MatchPointRegistration/src/Rendering/mitkRegEvalStyleProperty.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 21.6 | 85 | 0.603989 | zhaomengxiao |
117a4d1ade18a400a257bd928a18da2a126092b0 | 4,545 | cc | C++ | tests/test_anasazi.cc | Rombur/mfmg | b7c66dfb58bc880b04f52ce22b454047f82d69ea | [
"BSD-3-Clause"
] | 8 | 2017-11-03T15:13:24.000Z | 2021-04-27T19:33:10.000Z | tests/test_anasazi.cc | Rombur/mfmg | b7c66dfb58bc880b04f52ce22b454047f82d69ea | [
"BSD-3-Clause"
] | 199 | 2017-11-03T13:33:23.000Z | 2019-10-07T22:46:18.000Z | tests/test_anasazi.cc | Rombur/mfmg | b7c66dfb58bc880b04f52ce22b454047f82d69ea | [
"BSD-3-Clause"
] | 7 | 2017-11-03T12:44:11.000Z | 2020-12-16T05:51:23.000Z | /*************************************************************************
* Copyright (c) 2017-2019 by the mfmg authors *
* All rights reserved. *
* *
* This file is part... | 35.232558 | 78 | 0.621122 | Rombur |
117dcf56073f5a3fdbbf4ace7d8d50af5207fc98 | 903 | cpp | C++ | N1359-Count-All-Valid-Pickup-and-Delivery-Options/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N1359-Count-All-Valid-Pickup-and-Delivery-Options/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N1359-Count-All-Valid-Pickup-and-Delivery-Options/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | //
// main.cpp
// LeetCode-Solution
//
// Created by Loyio Hex on 3/6/22.
//
#include <iostream>
#include <chrono>
using namespace std;
using namespace std::chrono;
using LL = long long;
class Solution{
private:
static constexpr int mod = 1000000007;
public:
int countOrders(int n){
if (n == 1){
... | 19.212766 | 74 | 0.557032 | loyio |
117e95e35defaaf760ca9db8acd8ca470a4ff91f | 11,037 | cpp | C++ | src/Factory/Simulation/BFER/BFER.cpp | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | 1 | 2022-02-15T23:31:53.000Z | 2022-02-15T23:31:53.000Z | src/Factory/Simulation/BFER/BFER.cpp | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | null | null | null | src/Factory/Simulation/BFER/BFER.cpp | WilliamMajor/aff3ct | 4e71ab99f33a040ec06336d3e1d50bd2c0d6a579 | [
"MIT"
] | 1 | 2021-11-24T01:54:41.000Z | 2021-11-24T01:54:41.000Z | #include <sstream>
#include <utility>
#include <thread>
#include "Tools/Documentation/documentation.h"
#include "Tools/Math/utils.h"
#include "Factory/Simulation/BFER/BFER.hpp"
using namespace aff3ct;
using namespace aff3ct::factory;
const std::string aff3ct::factory::BFER_name = "Simulation BFER";
const std::stri... | 34.707547 | 118 | 0.637583 | WilliamMajor |
117eb61f5058db2ea54693269b1dc634d0070958 | 6,050 | cpp | C++ | src/sections/TablesSection.cpp | pmjoniak/dime | 07aa5f12b009604dd820c561832e4fcc35984c59 | [
"BSD-3-Clause"
] | 1 | 2022-03-01T09:03:40.000Z | 2022-03-01T09:03:40.000Z | src/sections/TablesSection.cpp | pmjoniak/dime | 07aa5f12b009604dd820c561832e4fcc35984c59 | [
"BSD-3-Clause"
] | null | null | null | src/sections/TablesSection.cpp | pmjoniak/dime | 07aa5f12b009604dd820c561832e4fcc35984c59 | [
"BSD-3-Clause"
] | 1 | 2022-03-01T09:03:42.000Z | 2022-03-01T09:03:42.000Z | /**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... | 25.635593 | 76 | 0.656364 | pmjoniak |
118404e35f7181d7c943e99847fc30aeebb6da04 | 7,594 | cpp | C++ | compiler/src/core/CodeBuilder.cpp | d08ble/acpu | fb7b809ada746ecc3d1dbbe1096b120ac8f63256 | [
"Unlicense"
] | 2 | 2021-08-28T14:45:13.000Z | 2021-11-15T12:24:03.000Z | compiler/src/core/CodeBuilder.cpp | d08ble/acpu | fb7b809ada746ecc3d1dbbe1096b120ac8f63256 | [
"Unlicense"
] | null | null | null | compiler/src/core/CodeBuilder.cpp | d08ble/acpu | fb7b809ada746ecc3d1dbbe1096b120ac8f63256 | [
"Unlicense"
] | null | null | null | //
// Another CPU Language - ACPUL - a{};
//
// THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
// SHALL THE FREEBSD PROJECT O... | 24.980263 | 102 | 0.469713 | d08ble |
11906c8c1e645e7e9e8332985a46cb821d66b124 | 2,589 | cpp | C++ | debian/passenger-2.2.15/test/oxt/backtrace_test.cpp | brightbox/nginx-brightbox | cbb27b979ff8de2a6d3f57cebb214f0cde348d3f | [
"BSD-2-Clause"
] | 4 | 2016-05-09T12:50:34.000Z | 2020-10-08T07:28:46.000Z | test/oxt/backtrace_test.cpp | chad/passenger | 74fb3cf821d5b5d5bae37e03ba7ccaffc13ce9d0 | [
"MIT"
] | null | null | null | test/oxt/backtrace_test.cpp | chad/passenger | 74fb3cf821d5b5d5bae37e03ba7ccaffc13ce9d0 | [
"MIT"
] | 1 | 2020-10-08T07:51:20.000Z | 2020-10-08T07:51:20.000Z | #include "tut.h"
#include <oxt/backtrace.hpp>
#include <oxt/tracable_exception.hpp>
#include <oxt/thread.hpp>
using namespace oxt;
using namespace std;
namespace tut {
struct backtrace_test {
};
DEFINE_TEST_GROUP(backtrace_test);
TEST_METHOD(1) {
// Test TRACE_POINT() and tracable_exception.
struct {
vo... | 20.069767 | 56 | 0.634994 | brightbox |
119124f14d9b4bc95891af19ae84d0f56d029970 | 1,642 | cpp | C++ | src/eepp/system/iostreamzip.cpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | src/eepp/system/iostreamzip.cpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | null | null | null | src/eepp/system/iostreamzip.cpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #include <eepp/system/iostreamzip.hpp>
#include <eepp/system/zip.hpp>
#include <libzip/zip.h>
#include <libzip/zipint.h>
namespace EE { namespace System {
IOStreamZip* IOStreamZip::New( Zip* pack, const std::string& path ) {
return eeNew( IOStreamZip, ( pack, path ) );
}
IOStreamZip::IOStreamZip( Zip* pack, const s... | 19.317647 | 70 | 0.620585 | jayrulez |
11995aa1b83bfa5041c249482672af9c7a08e59a | 3,587 | hxx | C++ | src/engine/ivp/ivp_physics/ivp_cache_object.hxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/engine/ivp/ivp_physics/ivp_cache_object.hxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/engine/ivp/ivp_physics/ivp_cache_object.hxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | // Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved.
//IVP_EXPORT_PUBLIC
// Note:
// freeze object must update update_cache_object + set cache_ledge_point->valid_until_time_code
// delete object: must call invalid_cache_object
#ifndef _IVP_CACHE_OBJECT_INCLUDED
#define _IVP_CACHE_OBJECT_INCLUDE... | 32.908257 | 116 | 0.740452 | cstom4994 |
119ed0a1cea831ff87438dff83fc3257aebc65ac | 3,074 | cc | C++ | qa/common/busy_op_kernel.cc | wilwang-nv/tensorrt-inference-server | a99ab7b1320f06a2ebce6088f2ecc31faf10e13e | [
"BSD-3-Clause"
] | 2,159 | 2020-08-26T06:21:38.000Z | 2022-03-31T16:13:46.000Z | qa/common/busy_op_kernel.cc | wilwang-nv/tensorrt-inference-server | a99ab7b1320f06a2ebce6088f2ecc31faf10e13e | [
"BSD-3-Clause"
] | 1,482 | 2020-08-26T08:26:36.000Z | 2022-03-31T23:11:19.000Z | qa/common/busy_op_kernel.cc | wilwang-nv/tensorrt-inference-server | a99ab7b1320f06a2ebce6088f2ecc31faf10e13e | [
"BSD-3-Clause"
] | 592 | 2020-08-26T06:09:25.000Z | 2022-03-31T00:37:41.000Z | // Copyright (c) 2019, NVIDIA CORPORATION. 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 of condi... | 41.540541 | 80 | 0.742355 | wilwang-nv |
119efa207150b8f6f4d792add3e0629dcfbeb2a8 | 3,705 | hpp | C++ | src/include/containers/List.hpp | a093050472/PX4-Auotopilot | 177da1f92324dcb98b23643b73cfe5cb342ba32f | [
"BSD-3-Clause"
] | 6 | 2020-01-04T08:18:35.000Z | 2021-12-24T09:11:53.000Z | src/include/containers/List.hpp | BazookaJoe1900/Firmware | b827a04b288844767701fb7922600e3bd193d9e9 | [
"BSD-3-Clause"
] | 4 | 2020-11-07T12:08:43.000Z | 2021-06-18T15:16:17.000Z | src/include/containers/List.hpp | BazookaJoe1900/Firmware | b827a04b288844767701fb7922600e3bd193d9e9 | [
"BSD-3-Clause"
] | 20 | 2020-07-09T03:11:03.000Z | 2021-12-21T13:01:18.000Z | /****************************************************************************
*
* Copyright (C) 2012-2019 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... | 22.87037 | 78 | 0.645074 | a093050472 |
119fe669f1aa79816581003c7dcbf963541f1ef0 | 3,334 | cpp | C++ | module.cpp | UniversalDataTool/autoseg | dfeffe332f558171bac62a92e5a1d07f8ec2e96c | [
"MIT"
] | 6 | 2020-07-27T15:15:01.000Z | 2022-01-06T08:19:09.000Z | module.cpp | UniversalDataTool/autoseg | dfeffe332f558171bac62a92e5a1d07f8ec2e96c | [
"MIT"
] | 4 | 2020-07-27T15:14:56.000Z | 2021-08-31T20:56:14.000Z | module.cpp | UniversalDataTool/autoseg | dfeffe332f558171bac62a92e5a1d07f8ec2e96c | [
"MIT"
] | 2 | 2020-10-04T22:26:34.000Z | 2021-07-26T10:12:12.000Z | #define _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
#include "globals.hpp"
#include "min_cut.cpp"
#include "polygon_fill.cpp"
#include "super_pixel.cpp"
#include <emscripten/bind.h>
#include <emscripten/val.h>
#include <stdio.h>
#include <vector>
using namespace emscripten;
std::shared_ptr<std::vector<uint8_t>> image;
boo... | 28.991304 | 77 | 0.687163 | UniversalDataTool |
11a0e59ee3f3c37b151d5cc5bde2c24c358a4bee | 12,828 | cpp | C++ | src/caffe/greentea/greentea_im2col.cpp | abhiTronix/caffe-opencl-windows-amd | 1de97750d3c97756f39899d3b158120971a8a5da | [
"BSD-2-Clause"
] | 8 | 2019-06-29T14:51:28.000Z | 2021-07-25T04:10:38.000Z | src/caffe/greentea/greentea_im2col.cpp | KorJeongHyeonLee/Caffe-CL-Origin | 430344adbb3a05b4611b1b821a68c82d6480ba26 | [
"Intel",
"BSD-2-Clause"
] | 1 | 2018-12-12T11:57:27.000Z | 2019-06-30T03:31:09.000Z | src/caffe/greentea/greentea_im2col.cpp | KorJeongHyeonLee/Caffe-CL-Origin | 430344adbb3a05b4611b1b821a68c82d6480ba26 | [
"Intel",
"BSD-2-Clause"
] | 2 | 2018-08-31T20:13:22.000Z | 2019-06-29T14:51:33.000Z | /*
* greentea_im2col.cpp
*
* Created on: Apr 8, 2015
* Author: Fabian Tschopp
*/
#include "caffe/common.hpp"
#ifdef USE_GREENTEA
#include "caffe/greentea/greentea_im2col.hpp"
namespace caffe {
template<typename Dtype>
void greentea_im2col_gpu(viennacl::ocl::program *prog,
viennacl:... | 54.355932 | 80 | 0.444029 | abhiTronix |
11a450eb30d6d8172cb2113072134a26a4e73ee3 | 17,379 | cpp | C++ | src/demos/core/demo_CH_solver.cpp | chfeller/chrono | 652d5a6ed433611f2d335cf33b7da5658bf6f620 | [
"BSD-3-Clause"
] | 1 | 2015-03-19T16:48:13.000Z | 2015-03-19T16:48:13.000Z | src/demos/core/demo_CH_solver.cpp | chfeller/chrono | 652d5a6ed433611f2d335cf33b7da5658bf6f620 | [
"BSD-3-Clause"
] | null | null | null | src/demos/core/demo_CH_solver.cpp | chfeller/chrono | 652d5a6ed433611f2d335cf33b7da5658bf6f620 | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 37.293991 | 102 | 0.61068 | chfeller |
11aa8f8a138414549695d523c0367ebc2afff9ea | 6,750 | hpp | C++ | viennacl/linalg/host_based/scalar_operations.hpp | bollig/viennacl | 6dac70e558ed42abe63d8c5bfd08465aafeda859 | [
"MIT"
] | 1 | 2020-09-21T08:33:10.000Z | 2020-09-21T08:33:10.000Z | viennacl/linalg/host_based/scalar_operations.hpp | bollig/viennacl | 6dac70e558ed42abe63d8c5bfd08465aafeda859 | [
"MIT"
] | null | null | null | viennacl/linalg/host_based/scalar_operations.hpp | bollig/viennacl | 6dac70e558ed42abe63d8c5bfd08465aafeda859 | [
"MIT"
] | null | null | null | #ifndef VIENNACL_LINALG_HOST_BASED_SCALAR_OPERATIONS_HPP_
#define VIENNACL_LINALG_HOST_BASED_SCALAR_OPERATIONS_HPP_
/* =========================================================================
Copyright (c) 2010-2012, Institute for Microelectronics,
Institute for Analysis and Scientific ... | 41.158537 | 126 | 0.56563 | bollig |
11ae64b4ba531b009d0f35934d1d547b28767e1b | 8,417 | cpp | C++ | Tests/TestApp/src/TestShaderResArrays.cpp | SCrusader/DiligentEngine | 3081e9165ae8d931e75f9aa8f825d72fbb0e8cdb | [
"Apache-2.0"
] | null | null | null | Tests/TestApp/src/TestShaderResArrays.cpp | SCrusader/DiligentEngine | 3081e9165ae8d931e75f9aa8f825d72fbb0e8cdb | [
"Apache-2.0"
] | null | null | null | Tests/TestApp/src/TestShaderResArrays.cpp | SCrusader/DiligentEngine | 3081e9165ae8d931e75f9aa8f825d72fbb0e8cdb | [
"Apache-2.0"
] | null | null | null | /* Copyright 2015-2018 Egor Yusov
*
* 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
*
* THE SOFTWARE IS PROVIDED "AS IS", ... | 43.386598 | 183 | 0.717239 | SCrusader |
11b19b31835a9aec2bc44d789c934fade5af16eb | 479 | cpp | C++ | examples/ex2_percolation.cpp | pvnuffel/test_repos | c0d957265608b15f216ece67363c827d01122102 | [
"BSD-3-Clause"
] | null | null | null | examples/ex2_percolation.cpp | pvnuffel/test_repos | c0d957265608b15f216ece67363c827d01122102 | [
"BSD-3-Clause"
] | null | null | null | examples/ex2_percolation.cpp | pvnuffel/test_repos | c0d957265608b15f216ece67363c827d01122102 | [
"BSD-3-Clause"
] | null | null | null | #include <Percolation_Sim.h>
int main() {
// Construct Network
Network net("name", Network::Undirected);
net.populate(10000);
net.erdos_renyi(5);
for (int i = 0; i < 100; i++){
// Choose and run simulation
Percolation_Sim sim(&net);
sim.set_transmissibi... | 22.809524 | 49 | 0.546973 | pvnuffel |
11b2285a9e7fb8b2aa484c62bc5ccdb0db03fef1 | 863 | cpp | C++ | Editor/ParticleEditor/Engine/fcontroller.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | Editor/ActorEditor/Engine/fcontroller.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | Editor/ActorEditor/Engine/fcontroller.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | #include "stdafx.h"
#pragma hdrstop
#include "xr_input.h"
#include "fcontroller.h"
void CController::iCapture (void)
{
VERIFY(pInput);
pInput->iCapture(this);
}
void CController::iRelease (void)
{
VERIFY(pInput);
pInput->iRelease(this);
}
void CController::iGetLastMouseDelta (Ipoint&... | 18.361702 | 51 | 0.659328 | ixray-team |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.