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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e748b03089134f5aa06d6003fdd1e9c31123648 | 975 | cpp | C++ | codeforces/350div2/D1/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | codeforces/350div2/D1/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | codeforces/350div2/D1/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
template<typename P, typename Q>
ostream& operator << (ostream& os, pair<P, Q> p)
{
os << "(" << p.first <<... | 17.105263 | 49 | 0.434872 | Johniel |
0e76d4500adc76b05a4694dcb5572b93e07dbdda | 14,532 | cpp | C++ | src/main.cpp | GabrielGanne/trex-core | 688a0fe0adb890964691473723d70ffa98e00dd3 | [
"Apache-2.0"
] | 1 | 2021-08-19T04:57:04.000Z | 2021-08-19T04:57:04.000Z | src/main.cpp | hjat2005/trex-core | 400f03c86c844a0096dff3f6b13e58a808aaefff | [
"Apache-2.0"
] | 1 | 2019-03-08T04:50:50.000Z | 2019-03-08T04:50:50.000Z | src/main.cpp | hjat2005/trex-core | 400f03c86c844a0096dff3f6b13e58a808aaefff | [
"Apache-2.0"
] | 2 | 2019-04-25T05:32:53.000Z | 2019-04-26T00:14:24.000Z | /*
Hanoh Haim
Cisco Systems, Inc.
*/
/*
Copyright (c) 2015-2015 Cisco Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... | 29.122244 | 112 | 0.505023 | GabrielGanne |
0e76e7a7228402d1f5fabcccc065d0865184bfd1 | 11,207 | cpp | C++ | src/Core/Bindings/obe/Input/Input.cpp | lukefelsberg/ObEngine | a0385df4944adde7c1c8073ead15419286c70019 | [
"MIT"
] | 187 | 2021-05-22T07:56:34.000Z | 2022-03-30T20:23:16.000Z | src/Core/Bindings/obe/Input/Input.cpp | lukefelsberg/ObEngine | a0385df4944adde7c1c8073ead15419286c70019 | [
"MIT"
] | 48 | 2021-05-25T01:46:49.000Z | 2022-03-23T21:32:54.000Z | src/Core/Bindings/obe/Input/Input.cpp | lukefelsberg/ObEngine | a0385df4944adde7c1c8073ead15419286c70019 | [
"MIT"
] | 11 | 2021-05-24T07:01:33.000Z | 2022-03-07T12:08:48.000Z | #include <Bindings/obe/Input/Input.hpp>
#include <Input/InputAction.hpp>
#include <Input/InputButton.hpp>
#include <Input/InputButtonMonitor.hpp>
#include <Input/InputButtonState.hpp>
#include <Input/InputCondition.hpp>
#include <Input/InputManager.hpp>
#include <Input/InputType.hpp>
#include <Bindings/Conf... | 61.917127 | 100 | 0.640582 | lukefelsberg |
0e7bae794ad1d65ef5d1447aadc84b72b2de978e | 4,229 | cpp | C++ | src/sensors/MeterTeros11.cpp | daq-tools/EnviroDIY-ModularSensors | 64bdb75cdc2920880db6bcd452c61d0584ccde38 | [
"BSD-3-Clause"
] | null | null | null | src/sensors/MeterTeros11.cpp | daq-tools/EnviroDIY-ModularSensors | 64bdb75cdc2920880db6bcd452c61d0584ccde38 | [
"BSD-3-Clause"
] | null | null | null | src/sensors/MeterTeros11.cpp | daq-tools/EnviroDIY-ModularSensors | 64bdb75cdc2920880db6bcd452c61d0584ccde38 | [
"BSD-3-Clause"
] | 1 | 2020-06-16T14:59:05.000Z | 2020-06-16T14:59:05.000Z | /**
* @file MeterTeros11.cpp
* @copyright 2020 Stroud Water Research Center
* Part of the EnviroDIY ModularSensors library for Arduino
* @author Written By: Anthony Aufdenkampe <aaufdenkampe@limno.com>
* Edited by Sara Geleskie Damiano <sdamiano@stroudcenter.org>
*
* @brief Implements the MeterTeros11 class.
*/... | 38.445455 | 80 | 0.588792 | daq-tools |
0e81856e25e697dea5f5e82ca7c25fa15f5049fc | 13,675 | cc | C++ | chrome/browser/service_process/service_process_control.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/browser/service_process/service_process_control.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/browser/service_process/service_process_control.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright (c) 2012 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.
#include "chrome/browser/service_process/service_process_control.h"
#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
#includ... | 34.445844 | 80 | 0.727239 | zipated |
0e81eefe48f137490164167d8a9ddacbd025e739 | 53,797 | cpp | C++ | src/webnn_native/onednn/GraphDNNL.cpp | Honry/webnn-native | 462c43fffe89d40a4e5db171895b5e608500ee6c | [
"Apache-2.0"
] | null | null | null | src/webnn_native/onednn/GraphDNNL.cpp | Honry/webnn-native | 462c43fffe89d40a4e5db171895b5e608500ee6c | [
"Apache-2.0"
] | 1 | 2021-09-23T08:48:05.000Z | 2021-09-24T01:44:38.000Z | src/webnn_native/onednn/GraphDNNL.cpp | Honry/webnn-native | 462c43fffe89d40a4e5db171895b5e608500ee6c | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The WebNN-native 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 ... | 49.174589 | 100 | 0.563043 | Honry |
0e83593325c924567f6f336ba8f6bd3f842e97f8 | 2,217 | cpp | C++ | Hackerrank_problems/diagonal-difference/solution.cpp | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 165 | 2020-10-03T08:01:11.000Z | 2022-03-31T02:42:08.000Z | Hackerrank_problems/diagonal-difference/solution.cpp | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 383 | 2020-10-03T07:39:11.000Z | 2021-11-20T07:06:35.000Z | Hackerrank_problems/diagonal-difference/solution.cpp | gbrls/CompetitiveCode | b6f1b817a655635c3c843d40bd05793406fea9c6 | [
"MIT"
] | 380 | 2020-10-03T08:05:04.000Z | 2022-03-19T06:56:59.000Z | #include <bits/stdc++.h>
using namespace std;
string ltrim(const string &);
string rtrim(const string &);
vector<string> split(const string &);
/*
* Complete the 'diagonalDifference' function below.
*
* The function is expected to return an INTEGER.
* The function accepts 2D_INTEGER_ARRAY arr as parameter.
*/
... | 19.972973 | 79 | 0.562021 | gbrls |
0e83d914251a5f8264a56b23eb54bbc1ee284629 | 407 | cpp | C++ | 0200/50/258a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0200/50/258a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0200/50/258a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <string>
void answer(const std::string& v)
{
std::cout << v << '\n';
}
void solve(std::string& a)
{
const size_t n = a.length();
size_t i = 0;
while (i < n && a[i] == '1')
++i;
if (i == n)
a.pop_back();
else
a.erase(i, 1);
answer(a);
... | 11.628571 | 33 | 0.461916 | actium |
0e88cf2485028b919632c7c115f824ef254ff035 | 7,185 | cpp | C++ | shared/ebm_native/RandomStream.cpp | mikewlange/interpret | cea351c9834fef437cb8853552fa1699fc24f527 | [
"MIT"
] | 1 | 2021-07-27T01:52:41.000Z | 2021-07-27T01:52:41.000Z | shared/ebm_native/RandomStream.cpp | mikewlange/interpret | cea351c9834fef437cb8853552fa1699fc24f527 | [
"MIT"
] | null | null | null | shared/ebm_native/RandomStream.cpp | mikewlange/interpret | cea351c9834fef437cb8853552fa1699fc24f527 | [
"MIT"
] | null | null | null | // Copyright (c) 2018 Microsoft Corporation
// Licensed under the MIT license.
// Author: Paul Koch <code@koch.ninja>
#include "PrecompiledHeader.h"
#include "ebm_native.h" // IntEbmType
#include "EbmInternal.h" // INLINE_ALWAYS
#include "RandomStream.h"
// I generated these as purely random numbers from 0 to 2^64-1... | 44.627329 | 114 | 0.709116 | mikewlange |
0e8a8c778db01a6a05843c460625f9b2cae3a6ce | 35,596 | cpp | C++ | Board.cpp | micheleasara/Chess-Cpp17 | 0477826a182056879457a0493844a8c9141166e0 | [
"MIT"
] | null | null | null | Board.cpp | micheleasara/Chess-Cpp17 | 0477826a182056879457a0493844a8c9141166e0 | [
"MIT"
] | null | null | null | Board.cpp | micheleasara/Chess-Cpp17 | 0477826a182056879457a0493844a8c9141166e0 | [
"MIT"
] | null | null | null | #include "Board.hpp"
#include "Zobrist.hpp"
#include "Rook.hpp"
#include "Bishop.hpp"
#include "Queen.hpp"
#include "Knight.hpp"
#include "King.hpp"
#include "Pawn.hpp"
#include <iostream>
#include <stdexcept>
#include <iomanip>
#include <sstream>
/// Defines the number of squares the king travels to cast... | 34.226923 | 86 | 0.607428 | micheleasara |
0e8d08f5d75075d4df837ad986329c3b57faa785 | 5,971 | cc | C++ | sandbox/mac/os_compatibility.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | sandbox/mac/os_compatibility.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | sandbox/mac/os_compatibility.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.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.
#include "sandbox/mac/os_compatibility.h"
#include <servers/bootstrap.h>
#include <stddef.h>
#include <stdint.h>
#include <unistd.h>
#include "base/logg... | 30.937824 | 79 | 0.718305 | Wzzzx |
0e8f2f0b85aaaada7ef8d6ad186f80fb85d6d9f9 | 67,660 | cc | C++ | extensions/browser/api/web_request/web_request_api_helpers.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | extensions/browser/api/web_request/web_request_api_helpers.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | extensions/browser/api/web_request/web_request_api_helpers.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright (c) 2012 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.
#include "extensions/browser/api/web_request/web_request_api_helpers.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <cmath... | 38.377765 | 80 | 0.692876 | chromium |
0e90229439f494fc42492a2ccb9a05b7dc714448 | 3,048 | hpp | C++ | include/nonstd/memory_pool.hpp | ortfero/mandalang | b6097dbbb2a16d474ea1a3064f2f66c9195601fc | [
"MIT"
] | null | null | null | include/nonstd/memory_pool.hpp | ortfero/mandalang | b6097dbbb2a16d474ea1a3064f2f66c9195601fc | [
"MIT"
] | null | null | null | include/nonstd/memory_pool.hpp | ortfero/mandalang | b6097dbbb2a16d474ea1a3064f2f66c9195601fc | [
"MIT"
] | null | null | null | #pragma once
#include <forward_list>
#include <memory>
namespace nonstd {
template<typename T>
class memory_pool {
public:
using size_type = std::size_t;
static constexpr auto default_page_size = 512u;
private:
union block {
alignas(T) cha... | 29.307692 | 97 | 0.510499 | ortfero |
0e903d5dfa173ae2acfe78e2c22179a26c7885a4 | 5,700 | cpp | C++ | rdtool/src/check_mem.cpp | wustl-pctg/f-order | 0a8f56d715c142992640d63af8a017b63037c9c1 | [
"MIT"
] | null | null | null | rdtool/src/check_mem.cpp | wustl-pctg/f-order | 0a8f56d715c142992640d63af8a017b63037c9c1 | [
"MIT"
] | null | null | null | rdtool/src/check_mem.cpp | wustl-pctg/f-order | 0a8f56d715c142992640d63af8a017b63037c9c1 | [
"MIT"
] | null | null | null | #include "check_mem.h"
#include "mem_access.h"
//#include "list.h"
void print_num_of_readers(MemAccess_t *mem) {
uint32_t counter = 0;
while (mem != NULL) {
counter++;
mem = mem->next;
}
fprintf(stderr, "# of readers: %u\n", counter);
}
void report_race() {
// to-do: report race here
}
void handle_write(... | 29.081633 | 92 | 0.607895 | wustl-pctg |
0e91f4d7c8d303add464be9d61b35efbd8310885 | 214 | hpp | C++ | nacl/math/combinatorics/multinomial.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | 3 | 2021-08-31T17:51:01.000Z | 2021-11-13T16:22:25.000Z | nacl/math/combinatorics/multinomial.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | null | null | null | nacl/math/combinatorics/multinomial.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | null | null | null | /// source: KACTL
// ways to permute v[i]
ll multinomial(vi &v) {
ll c = 1, m = v.empty() ? 1 : v[0];
for (int i = 1; i < v.size(); i++)
for (int j = 0; i < v[i]; j++) c = c * ++m / (j + 1);
return c;
}
| 21.4 | 57 | 0.443925 | ToxicPie |
0e92c3eba5a337b00f2805477a8224db4d870a6f | 621 | cpp | C++ | src/invokehelper.cpp | CORDEA/GitHarbor | 9f0f5228e5af04b311aec78fa173d59d6f8d426b | [
"Apache-2.0"
] | 1 | 2016-08-03T08:50:01.000Z | 2016-08-03T08:50:01.000Z | src/invokehelper.cpp | CORDEA/GitHarbor | 9f0f5228e5af04b311aec78fa173d59d6f8d426b | [
"Apache-2.0"
] | null | null | null | src/invokehelper.cpp | CORDEA/GitHarbor | 9f0f5228e5af04b311aec78fa173d59d6f8d426b | [
"Apache-2.0"
] | 3 | 2017-10-17T22:52:01.000Z | 2019-02-15T19:52:58.000Z | /*
* invokehelper.cpp
*
* Created on: 2016/02/15
* Author: CORDEA
*/
#include <src/invokehelper.h>
#include <bb/system/InvokeRequest>
#include <bb/system/InvokeManager>
using namespace bb::system;
InvokeHelper::InvokeHelper(QObject *parent) :
QObject(parent)
{
// TODO Auto-generated construct... | 19.40625 | 45 | 0.695652 | CORDEA |
0e952527ddedcfd90a971a26e758d4102609edfa | 3,064 | cpp | C++ | gEarth.Pack/oepOGRFeatureSourceOptions.cpp | songgod/gEarth | e4ea0fa15a40f08481c7ea7e42e6f4ace8659984 | [
"MIT"
] | 5 | 2021-06-16T06:24:29.000Z | 2022-03-10T03:41:44.000Z | gEarth.Pack/oepOGRFeatureSourceOptions.cpp | songgod/gEarth | e4ea0fa15a40f08481c7ea7e42e6f4ace8659984 | [
"MIT"
] | 1 | 2020-10-14T14:20:58.000Z | 2020-10-14T14:20:58.000Z | gEarth.Pack/oepOGRFeatureSourceOptions.cpp | songgod/gEarth | e4ea0fa15a40f08481c7ea7e42e6f4ace8659984 | [
"MIT"
] | 2 | 2021-06-16T06:24:32.000Z | 2021-08-02T09:05:42.000Z | #include "stdafx.h"
#include "oepOGRFeatureSourceOptions.h"
using namespace gEarthPack;
using namespace osgEarth::Drivers;
oepOGRFeatureSourceOptions::oepOGRFeatureSourceOptions()
{
bind(new OGRFeatureOptions(),true);
}
void gEarthPack::oepOGRFeatureSourceOptions::binded()
{
_geometryConfig = gcnew oepConfig();
... | 23.037594 | 70 | 0.741841 | songgod |
0e958284856c1471911d9198221360fe1f851f4c | 6,064 | cc | C++ | content/shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | content/shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-02-10T21:00:08.000Z | 2018-03-20T05:09:50.000Z | content/shell/android/linker_test_apk/chromium_linker_test_linker_tests.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.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 implements the native methods of
// org.content.chromium.app.LinkerTests
// Unlike the content of linker_jni.cc, it is part of the content li... | 32.602151 | 84 | 0.612797 | kjthegod |
0e95c6b5977ed0492064f44464d749de3eb1fc06 | 8,949 | cpp | C++ | ODIN_II/SRC/lib_blocks/hard_blocks.cpp | rding2454/IndeStudy | c27be794bc2ce5ada93b16c92569a4bcafc8a21c | [
"MIT"
] | null | null | null | ODIN_II/SRC/lib_blocks/hard_blocks.cpp | rding2454/IndeStudy | c27be794bc2ce5ada93b16c92569a4bcafc8a21c | [
"MIT"
] | null | null | null | ODIN_II/SRC/lib_blocks/hard_blocks.cpp | rding2454/IndeStudy | c27be794bc2ce5ada93b16c92569a4bcafc8a21c | [
"MIT"
] | null | null | null | /*
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, distribute, sublicense, and/or sell
copies of t... | 24.45082 | 162 | 0.659403 | rding2454 |
0e97f066ae54cea0d62e20f6df76d63676e4ace7 | 2,112 | hpp | C++ | cpp/include/cte_bits/bunch.hpp | tomerten/ctelib | 582c215667e240a65f07ac75468e0870bee88a4d | [
"MIT"
] | null | null | null | cpp/include/cte_bits/bunch.hpp | tomerten/ctelib | 582c215667e240a65f07ac75468e0870bee88a4d | [
"MIT"
] | null | null | null | cpp/include/cte_bits/bunch.hpp | tomerten/ctelib | 582c215667e240a65f07ac75468e0870bee88a4d | [
"MIT"
] | null | null | null | #include <map>
#include <string>
#include <vector>
// TODO make this a map so one can give a dict in python
struct bunchParameters {
// bucket number
int bucket;
// atomic mass number
double atomNumber;
// particle charge
int charge;
// number of macro particle to use
int nMacro;
// real number of pa... | 28.16 | 79 | 0.702652 | tomerten |
0e9b08d9dceb0066fa1b2cfc8f99d32319602dce | 7,847 | cc | C++ | third_party/blink/renderer/platform/mojo/heap_mojo_associated_receiver_test.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/platform/mojo/heap_mojo_associated_receiver_test.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/platform/mojo/heap_mojo_associated_receiver_test.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-03-07T14:20:02.000Z | 2021-03-07T14:20:02.000Z | // Copyright 2020 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.
#include "third_party/blink/renderer/platform/mojo/heap_mojo_associated_receiver.h"
#include "base/test/null_task_runner.h"
#include "mojo/public/cpp/bind... | 38.465686 | 88 | 0.764623 | Ron423c |
0e9b8cbb918e3a78352363473ff0395bab9b880a | 2,149 | cpp | C++ | littlefs/LittleFile1.cpp | mbikovitsky/littlefs-utils | e9897c0f9c612d27ee8cd5f1d50ad16220f0a36b | [
"MIT"
] | 2 | 2020-07-25T23:23:26.000Z | 2021-12-08T16:47:10.000Z | littlefs/LittleFile1.cpp | mbikovitsky/littlefs-utils | e9897c0f9c612d27ee8cd5f1d50ad16220f0a36b | [
"MIT"
] | null | null | null | littlefs/LittleFile1.cpp | mbikovitsky/littlefs-utils | e9897c0f9c612d27ee8cd5f1d50ad16220f0a36b | [
"MIT"
] | null | null | null | #include "LittleFile1.hpp"
#include <limits>
#include <stdexcept>
#include <system_error>
#include "LittleFSErrorCategory.hpp"
LittleFile1::LittleFile1(lfs1_t & filesystem, std::string const & path, int flags) :
_filesystem(&filesystem),
_file(),
_open(false)
{
auto const result = lfs1_file_open(_fi... | 24.701149 | 101 | 0.653792 | mbikovitsky |
0e9c8fe4bc86416da5460816edad2fc7822048c5 | 4,887 | cxx | C++ | 3rd/fltk/src/BarGroup.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 11 | 2017-09-30T12:21:55.000Z | 2021-04-29T21:31:57.000Z | 3rd/fltk/src/BarGroup.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T11:20:08.000Z | 2018-03-27T12:09:02.000Z | 3rd/fltk/src/BarGroup.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 24 | 2018-03-27T11:46:16.000Z | 2021-05-01T20:28:34.000Z | //
// "$Id: BarGroup.cxx 5895 2007-06-08 18:17:53Z spitzak $"
//
// Copyright 1998-2006 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// versio... | 25.321244 | 77 | 0.631062 | MarioHenze |
0e9d4c3a1b86afe141b80004ce034c337eddf851 | 1,764 | cpp | C++ | UnitTests/Test_Registry_SetBinaryValue.cpp | ossewawiel/LibWinRegUtil | 602e391b521685deec809e0ae3ae97376025ffe4 | [
"MIT"
] | 5 | 2020-09-17T08:15:14.000Z | 2021-06-17T08:35:51.000Z | UnitTests/Test_Registry_SetBinaryValue.cpp | ossewawiel/LibWinRegUtil | 602e391b521685deec809e0ae3ae97376025ffe4 | [
"MIT"
] | null | null | null | UnitTests/Test_Registry_SetBinaryValue.cpp | ossewawiel/LibWinRegUtil | 602e391b521685deec809e0ae3ae97376025ffe4 | [
"MIT"
] | 4 | 2019-12-29T00:58:23.000Z | 2022-01-27T12:58:36.000Z | #include "stdafx.h"
#include "Test_Registry.h"
#include "TUtils.h"
#include "TConstants.h"
using namespace std;
using namespace WinReg;
using namespace TConst;
TEST_F(Test_Registry_SetSBinaryValue, when_calling_setbinaryvalue_with_valid_parameters_values_expect_no_exception)
{
try
{
Registry::SetBinaryValue(eHKey... | 32.072727 | 117 | 0.722222 | ossewawiel |
0e9f0bbc6f5fd102b02a814a405756e7927f998c | 367 | cpp | C++ | Practice/C++/pattern program.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Practice/C++/pattern program.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | Practice/C++/pattern program.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int i,j;
for (i = 7; i >=1; i--)
{
for (j = 1; j <= i; j++)
{
cout<<'S';
}
cout<<endl;
}
for(i = 2; i <= 7; i++)
{
for (j = 1;j <= i; j++)
{
cout<<'... | 15.956522 | 33 | 0.280654 | Sohelr360 |
0e9f7a1add03fde6e828841efdea7f695012598d | 93,533 | cpp | C++ | src/omnicore/mdex.cpp | TradeLayer/TradeLayer | 2f1ea1d64870a34703d2f5d230830238c3923691 | [
"MIT"
] | 8 | 2018-11-27T15:43:22.000Z | 2020-04-27T08:53:49.000Z | src/omnicore/mdex.cpp | TradeLayer/TradeLayer | 2f1ea1d64870a34703d2f5d230830238c3923691 | [
"MIT"
] | null | null | null | src/omnicore/mdex.cpp | TradeLayer/TradeLayer | 2f1ea1d64870a34703d2f5d230830238c3923691 | [
"MIT"
] | null | null | null | #include "omnicore/mdex.h"
#include "omnicore/errors.h"
#include "omnicore/log.h"
#include "omnicore/omnicore.h"
#include "omnicore/rules.h"
#include "omnicore/sp.h"
#include "omnicore/tx.h"
#include "omnicore/uint256_extensions.h"
#include "arith_uint256.h"
#include "chain.h"
#include "tinyformat.h"
#include "uint25... | 39.818221 | 311 | 0.625448 | TradeLayer |
0ea35e383669db72128e85e9a2040af441dae97e | 11,050 | cpp | C++ | nau/src/nau/geometry/box.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 29 | 2015-09-16T22:28:30.000Z | 2022-03-11T02:57:36.000Z | nau/src/nau/geometry/box.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 1 | 2017-03-29T13:32:58.000Z | 2017-03-31T13:56:03.000Z | nau/src/nau/geometry/box.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 10 | 2015-10-15T14:20:15.000Z | 2022-02-17T10:37:29.000Z | #include "nau/geometry/box.h"
#include "nau/math/vec3.h"
#include "nau/geometry/vertexData.h"
#include "nau/material/materialGroup.h"
using namespace nau::geometry;
using namespace nau::math;
using namespace nau::render;
using namespace nau::material;
Box::Box(void) : Primitive() {
float n = 1.0f;
std::shared_... | 45.661157 | 94 | 0.648507 | Khirion |
0ea3d407461274084cd3ad1ba531ec0e53598ab5 | 3,616 | cpp | C++ | third_party/skia_m63/gm/makecolorspace.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 4 | 2019-10-18T05:53:30.000Z | 2021-08-21T07:36:37.000Z | third_party/skia_m63/gm/makecolorspace.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 2 | 2019-03-14T10:26:45.000Z | 2021-08-06T01:24:06.000Z | third_party/skia_m63/gm/makecolorspace.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 4 | 2018-10-14T00:17:11.000Z | 2020-07-01T04:01:25.000Z | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "Resources.h"
#include "SkCodec.h"
#include "SkColorSpace_Base.h"
#include "SkImage.h"
#include "SkImagePriv.h"
sk_sp<SkImage> make_raster_image(cons... | 40.177778 | 100 | 0.690542 | kniefliu |
0ea607cca50a5692e75e755921ca22a0149d13c8 | 1,129 | cpp | C++ | project/OFEC_sc2/instance/algorithm/realworld/DVRP/LKH/Improvement.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/algorithm/realworld/DVRP/LKH/Improvement.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/algorithm/realworld/DVRP/LKH/Improvement.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | #include "./INCLUDE/Segment.h"
#include "./INCLUDE/LKH.h"
/* The Improvement function is used to check whether a done move
* has improved the current best tour.
* If the tour has been improved, the function computes the penalty gain
* and returns 1. Otherwise, the move is undone, and the function returns 0.
*/
i... | 27.536585 | 76 | 0.568645 | BaiChunhui-9803 |
0ea62fc4b26eb67e890657b54df620d6c40fa9d8 | 1,513 | hpp | C++ | kernels/backend/cuda/image.hpp | wchang22/Nova | 3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb | [
"MIT"
] | 21 | 2020-05-02T06:32:23.000Z | 2021-07-14T11:22:07.000Z | kernels/backend/cuda/image.hpp | wchang22/Nova | 3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb | [
"MIT"
] | null | null | null | kernels/backend/cuda/image.hpp | wchang22/Nova | 3db1e8f8a0dea1dcdd3d3d02332534d5945e17bb | [
"MIT"
] | 1 | 2021-05-24T13:44:56.000Z | 2021-05-24T13:44:56.000Z | #ifndef KERNELS_BACKEND_CUDA_IMAGE_HPP
#define KERNELS_BACKEND_CUDA_IMAGE_HPP
#include "kernels/backend/common/image.hpp"
namespace nova {
using image2d_read_t = cudaTextureObject_t;
using image2d_write_t = cudaSurfaceObject_t;
using image2d_array_read_t = cudaTextureObject_t;
template <typename W, AddressMode A = ... | 33.622222 | 98 | 0.775942 | wchang22 |
0ea7672721273c873a5e148e73fc061c4498e87e | 4,904 | cc | C++ | DQM/EcalCommon/src/MESetMulti.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | DQM/EcalCommon/src/MESetMulti.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | DQM/EcalCommon/src/MESetMulti.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | #include "DQM/EcalCommon/interface/MESetMulti.h"
namespace ecaldqm
{
MESetMulti::MESetMulti(MESet const& _seed, ReplCandidates const& _replCandidates) :
MESet(_seed),
current_(0),
sets_(),
replCandidates_(_replCandidates)
{
PathReplacements replacements;
std::map<std::string, unsigned> indi... | 27.863636 | 180 | 0.612153 | pasmuss |
0eaa4e824dee738f47dfa9f67731e15a3043df38 | 1,855 | cpp | C++ | inceptor/templates/public/cpp/process_injection/classic-native-syscalls.cpp | whitefi/inceptor | 2234740b76c34b2ab91d05ff675748022c476a81 | [
"BSD-4-Clause"
] | 743 | 2021-08-02T16:27:27.000Z | 2022-03-31T16:34:16.000Z | inceptor/templates/public/cpp/process_injection/classic-native-syscalls.cpp | whitefi/inceptor | 2234740b76c34b2ab91d05ff675748022c476a81 | [
"BSD-4-Clause"
] | 32 | 2021-08-03T04:47:20.000Z | 2022-03-28T23:15:45.000Z | inceptor/templates/public/cpp/process_injection/classic-native-syscalls.cpp | whitefi/inceptor | 2234740b76c34b2ab91d05ff675748022c476a81 | [
"BSD-4-Clause"
] | 138 | 2021-08-02T16:27:28.000Z | 2022-03-31T02:47:20.000Z | #include <Windows.h>
#include <stdio.h>
#include <stdlib.h>
//####USING####
#pragma comment(lib, "ntdll")
//####DEFINE####
//####CODE####
int Inject(int pid)
{
const unsigned char raw[] = ####SHELLCODE####;
int length = sizeof(raw);
unsigned char* encoded = (unsigned char*)malloc(sizeof(unsigned char) * length... | 21.569767 | 143 | 0.633962 | whitefi |
0eaffac8eb63d3cff2fe3b924c42d153b2df6f5e | 46,915 | cpp | C++ | starter-stack/Lib/rcsc/common/say_message_parser.cpp | InsperDynamics/Soccer-Simulation-2D | a548d576ca4ab2a8f797810f5e23875c45cef73f | [
"Apache-2.0"
] | null | null | null | starter-stack/Lib/rcsc/common/say_message_parser.cpp | InsperDynamics/Soccer-Simulation-2D | a548d576ca4ab2a8f797810f5e23875c45cef73f | [
"Apache-2.0"
] | null | null | null | starter-stack/Lib/rcsc/common/say_message_parser.cpp | InsperDynamics/Soccer-Simulation-2D | a548d576ca4ab2a8f797810f5e23875c45cef73f | [
"Apache-2.0"
] | null | null | null | // -*-c++-*-
/*!
\file say_message_parser.cpp
\brief player's say message parser Source File
*/
/*
*Copyright:
Copyright (C) Hidehisa AKIYAMA
This code is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Found... | 27.244483 | 101 | 0.442588 | InsperDynamics |
0eb5873e030f758ae877cc49f1b03b74508d466d | 2,195 | cpp | C++ | ext/kameleon/src/ccmc/wrappers/fortran/GeneralFileReader_f.cpp | alexanderbock/Kameleon-Converter | 6c2e66bfea60b17a369a3615bc1a623bba100a6f | [
"BSD-3-Clause"
] | null | null | null | ext/kameleon/src/ccmc/wrappers/fortran/GeneralFileReader_f.cpp | alexanderbock/Kameleon-Converter | 6c2e66bfea60b17a369a3615bc1a623bba100a6f | [
"BSD-3-Clause"
] | null | null | null | ext/kameleon/src/ccmc/wrappers/fortran/GeneralFileReader_f.cpp | alexanderbock/Kameleon-Converter | 6c2e66bfea60b17a369a3615bc1a623bba100a6f | [
"BSD-3-Clause"
] | null | null | null | /*
* GeneralFileReader_compatibility.h
*
* Created on: Mar 16, 2010
* Author: dberrios
*/
#include "GeneralFileReader_f.h"
#include <ccmc/wrappers/c/GeneralFileReader_c.h>
#include <ccmc/GeneralFileReader.h>
#include <ccmc/Kameleon.h>
#include <string>
#include <string.h>
#include <iostream>
using namespace... | 22.864583 | 133 | 0.768109 | alexanderbock |
0eb626c6a158af3ce561362e0760df7b1b9fb5ba | 2,907 | cpp | C++ | tmk/cpp/bin/tmk-show-pair-offsets.cpp | b-bold/ThreatExchange | 6f8d0dc803faccf576c9398569bb52d54a4f9a87 | [
"BSD-3-Clause"
] | 997 | 2015-03-13T18:04:03.000Z | 2022-03-30T12:09:10.000Z | tmk/cpp/bin/tmk-show-pair-offsets.cpp | b-bold/ThreatExchange | 6f8d0dc803faccf576c9398569bb52d54a4f9a87 | [
"BSD-3-Clause"
] | 444 | 2015-03-26T17:28:49.000Z | 2022-03-28T19:34:05.000Z | tmk/cpp/bin/tmk-show-pair-offsets.cpp | b-bold/ThreatExchange | 6f8d0dc803faccf576c9398569bb52d54a4f9a87 | [
"BSD-3-Clause"
] | 294 | 2015-03-13T22:19:43.000Z | 2022-03-30T08:42:45.000Z | // ================================================================
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
// ================================================================
// ================================================================
// Given a pair of `.tmk` files (see sectio... | 32.3 | 80 | 0.544204 | b-bold |
0eb628c74491a49e649fd4f44d9910783a851d2c | 3,188 | cpp | C++ | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/common/checkboxcmn.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/common/checkboxcmn.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/common/checkboxcmn.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
// Name: src/common/checkboxcmn.cpp
// Purpose: wxCheckBox common code
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
//... | 34.652174 | 86 | 0.572459 | wivlaro |
0eb66e44a2618868d454cbc92f49a0c67f9f43d4 | 4,805 | cpp | C++ | VC2010Samples/MFC/Visual C++ 2008 Feature Pack/StateCollection/StateCollectionView.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2010Samples/MFC/Visual C++ 2008 Feature Pack/StateCollection/StateCollectionView.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2010Samples/MFC/Visual C++ 2008 Feature Pack/StateCollection/StateCollectionView.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sourc... | 28.772455 | 114 | 0.688033 | alonmm |
0eb8410a4bd9546f67f93f6ca9fcf994bbce4171 | 1,329 | hh | C++ | include/Attributes/CreationDateAttribute.hh | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 6 | 2016-09-28T18:26:42.000Z | 2021-04-10T13:19:05.000Z | include/Attributes/CreationDateAttribute.hh | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 1 | 2021-02-09T00:24:04.000Z | 2021-02-27T22:08:05.000Z | include/Attributes/CreationDateAttribute.hh | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 5 | 2017-09-14T09:48:17.000Z | 2021-07-19T07:58:34.000Z | /*
* Copyright 2021 Aaron Bamberger
* Licensed under BSD 2-clause license
* See LICENSE file at root of source tree,
* or https://opensource.org/licenses/BSD-2-Clause
*/
#ifndef _CREATION_DATE_ATTRIBUTE_H
#define _CREATION_DATE_ATTRIBUTE_H
#include "Attributes/StandardAttribute.hh"
#include "Util/ValueWithLocati... | 30.906977 | 89 | 0.762227 | aaronbamberger |
0eb8ee6845cb344fc7bbaddeeaf9a4b469395120 | 573 | cpp | C++ | Lectures/Lecture10/indirectionExample.cpp | galursa/BasicsOfProgramming | ff3ce4f918048d25cbc724df5a96c09e48476792 | [
"MIT"
] | 2 | 2020-11-07T06:03:45.000Z | 2020-12-02T08:22:42.000Z | Lectures/Lecture10/indirectionExample.cpp | galursa/WSTI_BasicsOfProgramming | ff3ce4f918048d25cbc724df5a96c09e48476792 | [
"MIT"
] | null | null | null | Lectures/Lecture10/indirectionExample.cpp | galursa/WSTI_BasicsOfProgramming | ff3ce4f918048d25cbc724df5a96c09e48476792 | [
"MIT"
] | 1 | 2020-12-07T06:01:40.000Z | 2020-12-07T06:01:40.000Z | #include <iostream>
using namespace std;
int main(int argc, char** argv) {
int number = 5;
int* pNumber = &number;
cout << "The value of number: " << number << "\n";
cout << "The address of number: " << &number << "\n";
number++;
cout << "The value of number after first increasing: " << number << "\n";
cout <<... | 31.833333 | 78 | 0.61082 | galursa |
0eb9802deb40156a423cdb6c4308eaaa24d2e0a0 | 2,848 | hpp | C++ | src/pathfinder/yapf/yapf_node.hpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/pathfinder/yapf/yapf_node.hpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/pathfinder/yapf/yapf_node.hpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD 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, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 33.505882 | 185 | 0.719803 | trademarks |
0ebccddc4beac9cf4894a7fa75aef1120720436a | 7,956 | cpp | C++ | Pod/musicFramework/impl/EncodingFunctions.cpp | iKimee/musicXML | 5555f5c00e74c8e3f5ddf7e83072bf208602b970 | [
"Apache-2.0"
] | 3 | 2018-12-18T06:38:57.000Z | 2022-01-25T10:42:19.000Z | Pod/musicFramework/impl/EncodingFunctions.cpp | Bone111/MusicXMLParser | 674f6b52634abb95008cc04ee02f4df0055851a6 | [
"MIT"
] | null | null | null | Pod/musicFramework/impl/EncodingFunctions.cpp | Bone111/MusicXMLParser | 674f6b52634abb95008cc04ee02f4df0055851a6 | [
"MIT"
] | 1 | 2021-01-29T10:43:31.000Z | 2021-01-29T10:43:31.000Z | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "../impl/EncodingFunctions.h"
#include "../core/Date.h"
#include "../core/elements/Encoder.h"
#include "../core/elements/Encoding.h"
#include "../core/elements/Encoding.h"
#include "../core/elements/Encodin... | 43.005405 | 123 | 0.497612 | iKimee |
0ebcd089e828e911c1d549990b66e6d9869c5758 | 584 | hh | C++ | test/DBAL/SchemaTest.hh | decouple/framework | 8dcb04e75660c977ed8d53b2e6e3aa7fa5ff9b95 | [
"MIT"
] | null | null | null | test/DBAL/SchemaTest.hh | decouple/framework | 8dcb04e75660c977ed8d53b2e6e3aa7fa5ff9b95 | [
"MIT"
] | null | null | null | test/DBAL/SchemaTest.hh | decouple/framework | 8dcb04e75660c977ed8d53b2e6e3aa7fa5ff9b95 | [
"MIT"
] | null | null | null | <?hh // partial
namespace Test\DBAL;
use Decouple\Test\TestCase;
use Decouple\DBAL\DPDO\DPDOMySQLDriver;
use Decouple\Common\Contract\DB\Schema;
class SchemaTest extends TestCase {
public function execute() : void {
$driver = new DPDOMySQLDriver();
$connected = $driver->connect(Map {
"dbname" => "decoup... | 26.545455 | 42 | 0.630137 | decouple |
0ebd0a4fc260475489711501e0fde20ea7be290d | 10,353 | cxx | C++ | osprey/be/cg/bblist.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/bblist.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/bblist.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2009 Advanced Micro Devices, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, 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 the F... | 25.007246 | 79 | 0.60736 | sharugupta |
b1beef00a281466b97d97d607e58c3b1af3f0f4b | 9,401 | cpp | C++ | data/Sepanta3/follow/sepantafollowengine/src/sepantafollowengine.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/Sepanta3/follow/sepantafollowengine/src/sepantafollowengine.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/Sepanta3/follow/sepantafollowengine/src/sepantafollowengine.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | #include <SepantaFollow.h>
actionlib::SimpleActionClient<sepanta_msgs::MasterAction> * ac;
SepantaFollowEngine::SepantaFollowEngine() :
App_exit(false),
_thread_Logic(&SepantaFollowEngine::logic_thread,this),
_thread_10hz_publisher(&SepantaFollowEngine::scan10hz_thread,this),
it(nh)
{
init();
}
SepantaFollowEng... | 27.014368 | 141 | 0.555898 | khairulislam |
b1c013defc09cbb37d164ef1765f8b0d754d5a9f | 1,215 | cpp | C++ | math/get_neighbours2D.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | null | null | null | math/get_neighbours2D.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | null | null | null | math/get_neighbours2D.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
using namespace std;
const std::pair<int, int> moves[] = {{-1, 0}, {0, -1}, {0, 1}, {1, 0}};
/*
for(auto [dx, dy]: moves)
{
// Here nr and nc are what comes into the queue - i & j
dx += nr;
dy += nc;
}
*/
vector<vector<int>> getNeighbours(int r, int c, int R, int C)
{
vect... | 22.5 | 76 | 0.438683 | hariharanragothaman |
b1c0e98ec3849d065085b7114a0535471daa9396 | 2,072 | cpp | C++ | extra/news/src/apk/dataset/config/config-dialog-console/main.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/apk/dataset/config/config-dialog-console/main.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/apk/dataset/config/config-dialog-console/main.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null |
// Copyright Nathaniel Christen 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 "application-model/application-config-model.h"
#include "config-dialog/config-dialog.h"
#inc... | 21.142857 | 96 | 0.689189 | scignscape |
b1c355b9c8abc786c5156b692cc8dbd37374cf30 | 1,468 | cpp | C++ | codeforces/F - The Number of Subpermutations/Time limit exceeded on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/F - The Number of Subpermutations/Time limit exceeded on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/F - The Number of Subpermutations/Time limit exceeded on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jul/09/2019 19:04
* solution_verdict: Time limit exceeded on test 3 language: GNU C++14
* run... | 34.952381 | 111 | 0.424387 | kzvd4729 |
b1c4430b410f7e361b37593904e11d8dd9dbf90c | 4,813 | inl | C++ | src/atta/core/math/matrix.inl | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 1 | 2021-06-18T00:48:13.000Z | 2021-06-18T00:48:13.000Z | src/atta/core/math/matrix.inl | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 6 | 2021-03-11T21:01:27.000Z | 2021-09-06T19:41:46.000Z | src/atta/core/math/matrix.inl | Brenocq/Atta | e29e01067e06b97bc58165bca7351723174c6fc4 | [
"MIT"
] | 1 | 2021-09-04T19:54:41.000Z | 2021-09-04T19:54:41.000Z | //--------------------------------------------------
// Atta Math
// matrix.inl
// Date: 2021-04-09
// By Breno Cunha Queiroz
//--------------------------------------------------
namespace atta
{
template <typename T>
matrix<T>::matrix(size_t _nrows, size_t _ncols):
nrows(_nrows), ncols(_ncols)
{
... | 24.18593 | 84 | 0.446291 | Brenocq |
b1c6b8eef546084dcea55ebd8b3d2248adb23535 | 901 | cpp | C++ | src/lib/file_interpreter.cpp | cuttle-system/cuttle-fileui | f0444501be19352c4734a8c1b2f301c4e17d71ac | [
"MIT"
] | null | null | null | src/lib/file_interpreter.cpp | cuttle-system/cuttle-fileui | f0444501be19352c4734a8c1b2f301c4e17d71ac | [
"MIT"
] | null | null | null | src/lib/file_interpreter.cpp | cuttle-system/cuttle-fileui | f0444501be19352c4734a8c1b2f301c4e17d71ac | [
"MIT"
] | null | null | null | #include <sstream>
#include "file_interpreter.hpp"
#include "interpreter.hpp"
using namespace cuttle;
namespace fs = boost::filesystem;
void fileui::interpret_file(compile_state_t &state, vm::context_t &context, const fs::path &file_path, std::deque<vm::value_t> &arg_stack) {
if (state.cached_files.count(file_pa... | 40.954545 | 140 | 0.63374 | cuttle-system |
b1ca291f78e472557a0357d67e77cc7efc558f9b | 5,854 | cpp | C++ | be/test/util/block_compression_test.cpp | kuolei/incubator-doris | b14678c0021896f11efdfdaa3e2dad15b2d4868d | [
"Apache-2.0"
] | 1 | 2022-02-22T15:03:57.000Z | 2022-02-22T15:03:57.000Z | be/test/util/block_compression_test.cpp | kuolei/incubator-doris | b14678c0021896f11efdfdaa3e2dad15b2d4868d | [
"Apache-2.0"
] | null | null | null | be/test/util/block_compression_test.cpp | kuolei/incubator-doris | b14678c0021896f11efdfdaa3e2dad15b2d4868d | [
"Apache-2.0"
] | 1 | 2022-02-28T09:53:30.000Z | 2022-02-28T09:53:30.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... | 35.695122 | 91 | 0.645883 | kuolei |
b1cc627fb18a56f57bb7f0fb10f617dfa3139c42 | 1,952 | cpp | C++ | OrbitCore/ConnectionManager.cpp | robbiesri/orbitprofiler | fff73e9cafc4e7928feb900f07b1dddb4af0ecee | [
"BSD-2-Clause"
] | null | null | null | OrbitCore/ConnectionManager.cpp | robbiesri/orbitprofiler | fff73e9cafc4e7928feb900f07b1dddb4af0ecee | [
"BSD-2-Clause"
] | null | null | null | OrbitCore/ConnectionManager.cpp | robbiesri/orbitprofiler | fff73e9cafc4e7928feb900f07b1dddb4af0ecee | [
"BSD-2-Clause"
] | null | null | null | //-----------------------------------
// Copyright Pierric Gimmig 2013-2017
//-----------------------------------
#include "ConnectionManager.h"
#include "TcpClient.h"
#include "TcpServer.h"
#include "TimerManager.h"
//-----------------------------------------------------------------------------
ConnectionManager::Co... | 26.378378 | 89 | 0.420082 | robbiesri |
b1cd616a7aa784692689dac31d6a6606bec591e7 | 323 | hpp | C++ | src/ecs/entities/Bedrock.hpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | null | null | null | src/ecs/entities/Bedrock.hpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | 12 | 2019-05-22T12:22:44.000Z | 2019-06-15T17:31:04.000Z | src/ecs/entities/Bedrock.hpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | 1 | 2019-06-18T12:57:58.000Z | 2019-06-18T12:57:58.000Z | /*
** EPITECH PROJECT, 2019
** bomberman
** File description:
** Bedrock.hpp
*/
#ifndef BOMBERMAN_BEDROCK_HPP
#define BOMBERMAN_BEDROCK_HPP
#include "../Entity.hpp"
namespace ECS
{
class Bedrock : public Entity {
public:
explicit Bedrock(unsigned id, Ressources &ressources);
};
}
#endif //BOMBERMAN_BEDROCK_H... | 13.458333 | 56 | 0.727554 | Gegel85 |
b1cdccc1020badc02ff098d6542f43c889ec72e8 | 21,461 | cpp | C++ | src/base/command/RunSimulator.cpp | Randl/GMAT | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 2 | 2020-01-01T13:14:57.000Z | 2020-12-09T07:05:07.000Z | src/base/command/RunSimulator.cpp | rdadan/GMAT-R2016a | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 1 | 2018-03-15T08:58:37.000Z | 2018-03-20T20:11:26.000Z | src/base/command/RunSimulator.cpp | rdadan/GMAT-R2016a | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 3 | 2019-10-13T10:26:49.000Z | 2020-12-09T07:06:55.000Z | //$Id$
//------------------------------------------------------------------------------
// ClassName
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2015 United States Government as represented by ... | 32.966206 | 80 | 0.501281 | Randl |
b1d01ec0df3e96cbed6534419a1d793d2c4ef5bd | 1,377 | cpp | C++ | Algorithms/Codes/Geometry/Convex Hull ( monotone chain).cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | 4 | 2017-02-20T17:41:14.000Z | 2019-07-15T14:15:34.000Z | Algorithms/Codes/Geometry/Convex Hull ( monotone chain).cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | Algorithms/Codes/Geometry/Convex Hull ( monotone chain).cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | // Implementation of Andrew's monotone chain 2D convex hull algorithm.
#include <algorithm>
#include <vector>
using namespace std;
typedef int coord_t; // coordinate type
typedef long long coord2_t; // must be big enough to hold 2*max(|coordinate|)^2
struct Point {
coord_t x, y;
bool operator <(const P... | 27 | 85 | 0.6122 | moni-roy |
b1d0d3b0958efb8dfbe160f5466d55ab95eaeb93 | 2,218 | hpp | C++ | docs/template_plugin/src/template_executable_network.hpp | JOCh1958/openvino | 070201feeec5550b7cf8ec5a0ffd72dc879750be | [
"Apache-2.0"
] | 1 | 2021-04-06T03:32:12.000Z | 2021-04-06T03:32:12.000Z | docs/template_plugin/src/template_executable_network.hpp | JOCh1958/openvino | 070201feeec5550b7cf8ec5a0ffd72dc879750be | [
"Apache-2.0"
] | 28 | 2021-09-24T09:29:02.000Z | 2022-03-28T13:20:46.000Z | docs/template_plugin/src/template_executable_network.hpp | JOCh1958/openvino | 070201feeec5550b7cf8ec5a0ffd72dc879750be | [
"Apache-2.0"
] | 1 | 2020-08-30T11:48:03.000Z | 2020-08-30T11:48:03.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <ngraph/function.hpp>
#include "template_config.hpp"
#include "template_infer_request.hpp"
#include "template_async_infer_request.hpp"
#include <cpp_interfaces/impl/ie_executable_network_thread_safe_default.... | 36.360656 | 127 | 0.656898 | JOCh1958 |
b1d36c9eb1587cbe78acaf59ce35de0a417cfdd2 | 13,625 | cpp | C++ | src/bytearray.cpp | dongzx666/cool | 6d13b767491f52ac6c4ee96a3e69d481600e22f7 | [
"MIT"
] | null | null | null | src/bytearray.cpp | dongzx666/cool | 6d13b767491f52ac6c4ee96a3e69d481600e22f7 | [
"MIT"
] | null | null | null | src/bytearray.cpp | dongzx666/cool | 6d13b767491f52ac6c4ee96a3e69d481600e22f7 | [
"MIT"
] | null | null | null | #include "bytearray.h"
#include "endian.h"
#include "log.h"
#include "socket.h"
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <endian.h>
#include <fstream>
#include <iomanip>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
namespace cool {
static cool::... | 22.263072 | 80 | 0.584294 | dongzx666 |
b1d378f667928cda69bc2a142c51252e1a566759 | 966 | cpp | C++ | breath/path/brt/directory_separators.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/path/brt/directory_separators.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/path/brt/directory_separators.cpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | // ===========================================================================
// This is an open source non-commercial project.
// Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java:
// http://www.viva64.c... | 42 | 78 | 0.516563 | erez-o |
b1d4484f5cd5bbafd7d091be3c8116d6b2e93104 | 5,263 | cpp | C++ | Raytracer/src/world.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | Raytracer/src/world.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | Raytracer/src/world.cpp | rickyguerin/Animated-Ray-Tracer | cc1afe776c904b2280e5552f5c4654391658382a | [
"MIT"
] | null | null | null | #include "../header/world.h"
#include "../header/WorldProgram/sphereProgram.h"
#include "../header/WorldProgram/triangleProgram.h"
#include "../header/Shape/shape.h"
#include "../header/Math/intersection.h"
World::World(const glm::vec3& color) {
backgroundColor = color;
}
World::~World() {
for (const ShapeProgram* ... | 30.247126 | 131 | 0.694091 | rickyguerin |
b1d62dbd78a341ebaa4756b65b603bef0b7853a1 | 666 | cc | C++ | codeforces/1253/e.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | codeforces/1253/e.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | codeforces/1253/e.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://codeforces.com/contest/1253/problem/E
#include <bits/stdc++.h>
using namespace std;
using ii = tuple<int, int>;
using vi = vector<int>;
using vii = vector<ii>;
int main() {
int n, m, x, s, l, r;
cin >> n >> m;
vii a(n);
for (int i = 0; i < n; i++) {
cin >> x >> s;
a[i] = { x - s, x + s };
... | 21.483871 | 54 | 0.408408 | Ashindustry007 |
b1d8eff6a7ff88808dc410b7ffec813bf19db1b6 | 43 | cpp | C++ | chapter-07/recipe-08/cxx-example/src/main.cpp | istupsm/cmake-cookbook | 342d0171802153619ea124c5b8e792ce45178895 | [
"MIT"
] | 1,600 | 2018-05-24T01:32:44.000Z | 2022-03-31T09:24:11.000Z | chapter-07/recipe-08/cxx-example/src/main.cpp | istupsm/cmake-cookbook | 342d0171802153619ea124c5b8e792ce45178895 | [
"MIT"
] | 280 | 2017-08-27T13:10:51.000Z | 2018-05-23T15:09:58.000Z | chapter-07/recipe-08/cxx-example/src/main.cpp | istupsm/cmake-cookbook | 342d0171802153619ea124c5b8e792ce45178895 | [
"MIT"
] | 475 | 2018-05-23T15:26:27.000Z | 2022-03-31T07:28:19.000Z | ../../../recipe-07/cxx-example/src/main.cpp | 43 | 43 | 0.651163 | istupsm |
b1d9b8b60e814d0b4fec21840ca80d402475edd4 | 7,461 | cc | C++ | mindspore/ccsrc/parallel/ops_info/batch_parallel_info.cc | madrugado/mindspore | d90e1215476ec5b531ee182fecadc3559ac466ea | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/parallel/ops_info/batch_parallel_info.cc | madrugado/mindspore | d90e1215476ec5b531ee182fecadc3559ac466ea | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/parallel/ops_info/batch_parallel_info.cc | madrugado/mindspore | d90e1215476ec5b531ee182fecadc3559ac466ea | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2019 Huawei Technologies Co., Ltd
*
* 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... | 31.481013 | 119 | 0.669749 | madrugado |
b1dd600520e03aef39f6e24d5c88a2633aed8ae1 | 4,944 | cpp | C++ | homeworks/HW6/Systems/DenoiseSystem.cpp | g1n0st/GAMES102 | 44a8cf9db102109c8fd15c8dc06aa6ad1519a5eb | [
"MIT"
] | 7 | 2020-10-23T16:33:45.000Z | 2021-09-17T23:49:36.000Z | homeworks/HW6/Systems/DenoiseSystem.cpp | g1n0st/GAMES102 | 44a8cf9db102109c8fd15c8dc06aa6ad1519a5eb | [
"MIT"
] | null | null | null | homeworks/HW6/Systems/DenoiseSystem.cpp | g1n0st/GAMES102 | 44a8cf9db102109c8fd15c8dc06aa6ad1519a5eb | [
"MIT"
] | 3 | 2021-03-18T08:45:36.000Z | 2021-08-17T02:36:06.000Z | #include "DenoiseSystem.h"
#include "../Components/DenoiseData.h"
#include <_deps/imgui/imgui.h>
#include <spdlog/spdlog.h>
#include <cmath>
#include <algorithm>
using namespace Ubpa;
void DenoiseSystem::OnUpdate(Ubpa::UECS::Schedule& schedule) {
schedule.RegisterCommand([](Ubpa::UECS::World* w) {
auto data = w... | 28.090909 | 101 | 0.543689 | g1n0st |
b1dda328f31df8cf35b95708ab95852f31455d1f | 5,331 | cpp | C++ | sky/engine/core/dom/NodeRenderingTraversal.cpp | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | null | null | null | sky/engine/core/dom/NodeRenderingTraversal.cpp | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | null | null | null | sky/engine/core/dom/NodeRenderingTraversal.cpp | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2012 Google Inc. 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 conditio... | 29.616667 | 142 | 0.673044 | domenic |
b1de7160e7d1447732775e18dd2b58e730305d7c | 9,667 | cpp | C++ | gui/src/gui_statusbar.cpp | unnamed-mmo/lxgui | 5c4b9d0c164d2d35cfe5c59888b10020184f717d | [
"MIT"
] | null | null | null | gui/src/gui_statusbar.cpp | unnamed-mmo/lxgui | 5c4b9d0c164d2d35cfe5c59888b10020184f717d | [
"MIT"
] | null | null | null | gui/src/gui_statusbar.cpp | unnamed-mmo/lxgui | 5c4b9d0c164d2d35cfe5c59888b10020184f717d | [
"MIT"
] | null | null | null | #include "lxgui/gui_statusbar.hpp"
#include "lxgui/gui_frame.hpp"
#include "lxgui/gui_manager.hpp"
#include "lxgui/gui_texture.hpp"
#include "lxgui/gui_out.hpp"
#include "lxgui/gui_alive_checker.hpp"
#include "lxgui/gui_uiobject_tpl.hpp"
#include <sstream>
namespace lxgui {
namespace gui
{
std::array<flo... | 27.463068 | 122 | 0.589531 | unnamed-mmo |
b1df4b5a490fa00c9f80aff7a4b4df241c695a6c | 564 | hpp | C++ | include/APG/core/APGCommon.hpp | SgtCoDFish/APG | 23c45601e1c96ab8d1192f4d1095e2c481999780 | [
"libtiff",
"Apache-2.0",
"MIT",
"ECL-2.0",
"Libpng",
"BSD-3-Clause"
] | 1 | 2015-01-05T16:57:56.000Z | 2015-01-05T16:57:56.000Z | include/APG/core/APGCommon.hpp | SgtCoDFish/APG | 23c45601e1c96ab8d1192f4d1095e2c481999780 | [
"libtiff",
"Apache-2.0",
"MIT",
"ECL-2.0",
"Libpng",
"BSD-3-Clause"
] | 18 | 2015-07-04T21:49:23.000Z | 2018-07-30T09:19:32.000Z | include/APG/core/APGCommon.hpp | SgtCoDFish/APG | 23c45601e1c96ab8d1192f4d1095e2c481999780 | [
"libtiff",
"Apache-2.0",
"MIT",
"ECL-2.0",
"Libpng",
"BSD-3-Clause"
] | null | null | null | #ifndef INCLUDE_APG_CORE_APGCOMMON_HPP_
#define INCLUDE_APG_CORE_APGCOMMON_HPP_
#include <memory>
#include <glm/vec2.hpp>
#include <glm/vec4.hpp>
namespace APG {
struct Vertex {
float x;
float y;
float c;
float u;
float v;
};
static constexpr const int VERTEX_SIZE = 5;
namespace internal {
static constexpr... | 16.588235 | 64 | 0.781915 | SgtCoDFish |
b1df936e85d698cf9dcf2e8f2bc0d70ddc068d86 | 454 | cpp | C++ | BashuOJ-Code/1327.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | BashuOJ-Code/1327.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | BashuOJ-Code/1327.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
long long used[100]={0},n,a[100]={0},c[100]={0},i;
string s;
void PL(int k)
{
int i;
if(k>n)
{for(i=1;i<k;i++)cout<<a[i]<<" ";cout<<endl;return;}
for(i=1;i<=n;i++)
{
if(used[i]==0)
{
a[k]=c[i];
used[i]=1;
PL(k+1);
used[i]... | 16.814815 | 55 | 0.427313 | magicgh |
b1e12b044d201b5c67c0ceeea3023c68e4072d17 | 3,837 | cc | C++ | flow/matrix_decomposition.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | 1 | 2020-06-30T13:16:14.000Z | 2020-06-30T13:16:14.000Z | flow/matrix_decomposition.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | null | null | null | flow/matrix_decomposition.cc | alibitek/engine | 0f0b144b0320d00d837fb2af80cd542ab1359491 | [
"BSD-3-Clause"
] | 1 | 2020-03-05T02:44:12.000Z | 2020-03-05T02:44:12.000Z | // Copyright 2017 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.
#include "flutter/flow/matrix_decomposition.h"
namespace flow {
static inline SkVector3 SkVector3Combine(const SkVector3& a,
... | 27.021127 | 80 | 0.551733 | alibitek |
b1e1b63be32d9ae14afacee97ad9ef162e3ae6b5 | 8,608 | cc | C++ | src/3d/mpi/relax_planes.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 9 | 2018-03-07T19:15:27.000Z | 2019-02-22T20:10:23.000Z | src/3d/mpi/relax_planes.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 5 | 2018-11-13T19:59:46.000Z | 2020-04-09T19:31:25.000Z | src/3d/mpi/relax_planes.cc | cedar-framework/cedar | 9fb53ec221738b8dd16dfb31dc9a18d69fc2cc44 | [
"BSD-3-Clause"
] | 2 | 2018-07-20T01:06:48.000Z | 2019-11-25T12:15:16.000Z | #include <cedar/3d/mpi/plane_mempool.h>
#include <cedar/3d/mpi/plane_mpi.h>
#include <cedar/3d/mpi/relax_planes.h>
namespace cedar { namespace cdr3 { namespace mpi {
template<relax_dir rdir>
std::shared_ptr<grid_topo> planes<rdir>::slice_topo(const grid_topo & topo3)
{
auto igrd = std::make_shared<std::vector<len_t... | 42.196078 | 152 | 0.599907 | cedar-framework |
b1e4866ea4244be7441e22a63b9ee886db4566f4 | 1,835 | cpp | C++ | dev/Gems/ScriptEvents/Code/Source/ScriptEventsGem.cpp | brianherrera/lumberyard | f85344403c1c2e77ec8c75deb2c116e97b713217 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Gems/ScriptEvents/Code/Source/ScriptEventsGem.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Gems/ScriptEvents/Code/Source/ScriptEventsGem.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 31.637931 | 104 | 0.723161 | brianherrera |
b1e5565e834926da666656b23cae4639dc61b21e | 984 | cpp | C++ | Axis.Core/application/parsing/preprocessing/SymbolTable.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Core/application/parsing/preprocessing/SymbolTable.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Core/application/parsing/preprocessing/SymbolTable.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #include "SymbolTable.hpp"
#include "foundation/ArgumentException.hpp"
namespace aapp = axis::application::parsing::preprocessing;
aapp::SymbolTable::SymbolTable(void)
{
// no op
}
aapp::SymbolTable::~SymbolTable(void)
{
// erases symbol table and call destructors of every every contained element
_table.clear();
... | 21.391304 | 81 | 0.716463 | renato-yuzup |
b1e6fe39ea7a5e5a8fd4d0adef72a983b9f20547 | 11,788 | cpp | C++ | libatlaspack/src/textureatlaspacker.cpp | bzeller/atlaspack | abc80eff35b25af367c7b9e91272f5ff82e09272 | [
"MIT"
] | null | null | null | libatlaspack/src/textureatlaspacker.cpp | bzeller/atlaspack | abc80eff35b25af367c7b9e91272f5ff82e09272 | [
"MIT"
] | null | null | null | libatlaspack/src/textureatlaspacker.cpp | bzeller/atlaspack | abc80eff35b25af367c7b9e91272f5ff82e09272 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2017 Benjamin Zeller
*
* 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, ... | 36.495356 | 141 | 0.625382 | bzeller |
b1e72c610db4b5556b161f6eedb7b96a501e00c3 | 2,387 | hpp | C++ | src/base/factory/AtmosphereFactory.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | src/base/factory/AtmosphereFactory.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | src/base/factory/AtmosphereFactory.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | //$Id$
//------------------------------------------------------------------------------
// AtmosphereFactory
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2017 United States Government as represe... | 31.407895 | 80 | 0.617093 | supalogix |
b1e762019e0a0c1218fa988e80a15a94a950c77d | 26,612 | hh | C++ | gazebo/rendering/Camera.hh | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2015-07-02T08:23:30.000Z | 2020-11-17T19:00:38.000Z | gazebo/rendering/Camera.hh | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/rendering/Camera.hh | thomas-moulard/gazebo-deb | 456da84cfb7b0bdac53241f6c4e86ffe1becfa7d | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2015-04-22T18:33:15.000Z | 2021-11-16T10:17:45.000Z | /*
* Copyright 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 37.534556 | 80 | 0.645498 | thomas-moulard |
b1e8d91d450d22de3cbd04d22f6f4111185d79a4 | 8,693 | cpp | C++ | clang/test/SemaCXX/typo-correction.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 1 | 2022-02-05T23:28:35.000Z | 2022-02-05T23:28:35.000Z | clang/test/SemaCXX/typo-correction.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 1 | 2020-02-22T09:59:21.000Z | 2020-02-22T09:59:21.000Z | clang/test/SemaCXX/typo-correction.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 1 | 2020-11-04T06:38:51.000Z | 2020-11-04T06:38:51.000Z | // RUN: %clang_cc1 -fsyntax-only -verify -Wno-c++11-extensions %s
struct errc {
int v_;
operator int() const {return v_;}
};
class error_condition
{
int _val_;
public:
error_condition() : _val_(0) {}
error_condition(int _val)
: _val_(_val) {}
template <class E>
error_condition(E _e) {
// make_... | 45.041451 | 165 | 0.726792 | clairechingching |
b1ea0ac93e6cee3a423b96f1fed8299f0c013860 | 220 | cc | C++ | ch03/ex3_08.cc | meishaoming/cpp_primer_5th_answer | 482d60e37e8bf69c0ae83e7e98d955f76dfbffe0 | [
"MIT"
] | null | null | null | ch03/ex3_08.cc | meishaoming/cpp_primer_5th_answer | 482d60e37e8bf69c0ae83e7e98d955f76dfbffe0 | [
"MIT"
] | null | null | null | ch03/ex3_08.cc | meishaoming/cpp_primer_5th_answer | 482d60e37e8bf69c0ae83e7e98d955f76dfbffe0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
int main() {
std::string str;
std::cin >> str;
for (std::string::size_type n = 0;n < str.size(); ++n) {
str[n] = 'X';
}
std::cout << str << std::endl;
return 0;
}
| 14.666667 | 58 | 0.531818 | meishaoming |
b1ecbe3935e3c377f10c93df50bbd520e1903e7e | 2,854 | cc | C++ | lite/kernels/xpu/yolo_box_compute.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 808 | 2018-04-17T17:43:12.000Z | 2019-08-18T07:39:13.000Z | lite/kernels/xpu/yolo_box_compute.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 728 | 2018-04-18T08:15:25.000Z | 2019-08-16T07:14:43.000Z | lite/kernels/xpu/yolo_box_compute.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 364 | 2018-04-18T17:05:02.000Z | 2019-08-18T03:25:38.000Z | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 36.589744 | 80 | 0.563069 | Danielmic |
b1f20967450e189ee6b02c5be2ac19b293c8502f | 9,721 | hpp | C++ | externals/browser/externals/browser/externals/libimgproc/imgproc/texturing.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | 1 | 2021-09-02T08:42:59.000Z | 2021-09-02T08:42:59.000Z | externals/browser/externals/browser/externals/libimgproc/imgproc/texturing.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | null | null | null | externals/browser/externals/browser/externals/libimgproc/imgproc/texturing.hpp | HanochZhu/vts-browser-unity-plugin | 32a22d41e21b95fb015326f95e401d87756d0374 | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (c) 2017 Melown Technologies SE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... | 25.785146 | 79 | 0.648596 | HanochZhu |
b1f4dd2f2988c66920f3bcf660cf030cde2f98ef | 217 | cpp | C++ | 3 term/Programming-Design-and-Programming-Languages-C++/Lab 11/ArgumentException.cpp | Vanya112/BSUIR_Labs | d63de54f1d07c5bd0eae598d507be051101f1165 | [
"Apache-2.0"
] | 24 | 2019-05-24T18:10:33.000Z | 2022-02-09T14:33:34.000Z | 3 term/Programming-Design-and-Programming-Languages-C++/Lab 11/ArgumentException.cpp | Vanya112/BSUIR_Labs | d63de54f1d07c5bd0eae598d507be051101f1165 | [
"Apache-2.0"
] | null | null | null | 3 term/Programming-Design-and-Programming-Languages-C++/Lab 11/ArgumentException.cpp | Vanya112/BSUIR_Labs | d63de54f1d07c5bd0eae598d507be051101f1165 | [
"Apache-2.0"
] | 16 | 2019-05-23T18:15:53.000Z | 2022-01-17T15:25:58.000Z | #include "ArgumentException.h"
ArgumentException::ArgumentException(string message) : invalid_argument(message.c_str())
{
}
ArgumentException::ArgumentException(const char* message) : invalid_argument(message)
{
}
| 19.727273 | 88 | 0.797235 | Vanya112 |
5901a00f4c8f434ae1e55975d204d108040cb80b | 1,443 | cpp | C++ | Jacobi_vs_Gauss_Siedel/main.cpp | soumyasen1809/CFD_NPTEL_IITKGP | b747955650b37fbdb9a006f2292deb1b78fae6b9 | [
"MIT"
] | 2 | 2021-06-17T21:54:14.000Z | 2021-07-06T02:18:10.000Z | Jacobi_vs_Gauss_Siedel/main.cpp | soumyasen1809/CFD_NPTEL_IITKGP | b747955650b37fbdb9a006f2292deb1b78fae6b9 | [
"MIT"
] | null | null | null | Jacobi_vs_Gauss_Siedel/main.cpp | soumyasen1809/CFD_NPTEL_IITKGP | b747955650b37fbdb9a006f2292deb1b78fae6b9 | [
"MIT"
] | null | null | null | //Equation to solve: 5x1 + x2 = 7 ; x1 + 5x2 = 11
#include <iostream>
int main() {
double x_1 = 0.01; // Initialize x1 = 0
double x_1_new = 0.0;
double x_2 = 0.01; // Initialize x2 = 0
double x_2_new = 0.0;
double eps = 1.0; // Tolerance limit epsilon, initialized to 1
int count_s... | 23.655738 | 100 | 0.567568 | soumyasen1809 |
5901d82d0a22a5068e980d0f5bb02a5223fcacad | 9,176 | cpp | C++ | 3D_Mathematics_Engine/3D_Mathematics_Engine/Matrix.cpp | ConfuzzledBovv/GameEngineDevelopment | ef8b1a370fd09ca3fff3582f766b1d723cdcd7f1 | [
"Apache-2.0"
] | null | null | null | 3D_Mathematics_Engine/3D_Mathematics_Engine/Matrix.cpp | ConfuzzledBovv/GameEngineDevelopment | ef8b1a370fd09ca3fff3582f766b1d723cdcd7f1 | [
"Apache-2.0"
] | null | null | null | 3D_Mathematics_Engine/3D_Mathematics_Engine/Matrix.cpp | ConfuzzledBovv/GameEngineDevelopment | ef8b1a370fd09ca3fff3582f766b1d723cdcd7f1 | [
"Apache-2.0"
] | null | null | null | #include "Matrix.h"
#include "iostream"
namespace Maths
{
Matrix::Matrix()
{
// If no data is given then set as identity matrix
for (int i = 0; i < 9; i++)
{
matrixData[i] = 0;
}
matrixData[0] = matrixData[4] = matrixData[8] = 1.0f;
}
Matrix::Matrix(float matrix0, float matrix3, float ... | 39.551724 | 167 | 0.654425 | ConfuzzledBovv |
5902376f3cf4482c4f715faa1d2ddbdbd346a672 | 32,447 | cpp | C++ | src/Extensions/src/extensions/dynamicterrain/dynamic_terrain.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | null | null | null | src/Extensions/src/extensions/dynamicterrain/dynamic_terrain.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | null | null | null | src/Extensions/src/extensions/dynamicterrain/dynamic_terrain.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | null | null | null | #include <babylon/extensions/dynamicterrain/dynamic_terrain.h>
#include <babylon/babylon_stl_util.h>
#include <babylon/cameras/camera.h>
#include <babylon/core/logging.h>
#include <babylon/engines/scene.h>
#include <babylon/extensions/dynamicterrain/dynamic_terrain_options.h>
#include <babylon/meshes/builders/mesh_bui... | 33.975916 | 100 | 0.633525 | sacceus |
590253ef823890af7191227a7c7c31c0f6f17196 | 14,696 | cc | C++ | chrome/browser/ash/policy/handlers/site_isolation_flag_handling_browsertest.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 76 | 2020-09-02T03:05:41.000Z | 2022-03-30T04:40:55.000Z | chrome/browser/ash/policy/handlers/site_isolation_flag_handling_browsertest.cc | blueboxd/chromium-legacy | 07223bc94bd97499909c9ed3c3f5769d718fe2e0 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 45 | 2020-09-02T03:21:37.000Z | 2022-03-31T22:19:45.000Z | chrome/browser/ash/policy/handlers/site_isolation_flag_handling_browsertest.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2020-07-22T18:49:18.000Z | 2022-02-08T10:27:16.000Z | // Copyright 2018 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.
#include <ostream>
#include <set>
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/command_line.h"
#include "base/containers/cxx... | 41.988571 | 80 | 0.723734 | Yannic |
5902ed7a0dab756a28e36d2062017b05b0f8bd9b | 23,154 | cpp | C++ | source/prt_lines_continuum.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | source/prt_lines_continuum.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | source/prt_lines_continuum.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | /* This file is part of Cloudy and is copyright (C)1978-2019 by Gary J. Ferland and
* others. For conditions of distribution and use see copyright notice in license.txt */
/*lines_continuum put energetics, H, and He lines into line intensity stack */
#include "cddefines.h"
#include "taulines.h"
#include "iso.h"
#incl... | 36.578199 | 111 | 0.652501 | cloudy-astrophysics |
59079ac068a9d3ea2143cb28fd1d7f74c802144e | 10,686 | cpp | C++ | src/YY_Thunks.cpp | fengjixuchui/YY-Thunks | d4b28d34bd05bccae902806f1fcef56ceb6c823f | [
"MIT"
] | null | null | null | src/YY_Thunks.cpp | fengjixuchui/YY-Thunks | d4b28d34bd05bccae902806f1fcef56ceb6c823f | [
"MIT"
] | null | null | null | src/YY_Thunks.cpp | fengjixuchui/YY-Thunks | d4b28d34bd05bccae902806f1fcef56ceb6c823f | [
"MIT"
] | null | null | null |
#define _YY_APPLY_TO_LATE_BOUND_MODULES(_APPLY) \
_APPLY(ntdll, "ntdll" , USING_UNSAFE_LOAD ) \
_APPLY(kernel32, "kernel32" ... | 41.579767 | 151 | 0.500842 | fengjixuchui |
59096f00721334d343b226b9c528f1098e159d6c | 4,924 | cpp | C++ | source/Plugins/PostEffects/LightStreaksPostEffect/LightStreaksPostEffect.cpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 245 | 2015-10-29T14:31:45.000Z | 2022-03-31T13:04:45.000Z | source/Plugins/PostEffects/LightStreaksPostEffect/LightStreaksPostEffect.cpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 64 | 2016-03-11T19:45:05.000Z | 2022-03-31T23:58:33.000Z | source/Plugins/PostEffects/LightStreaksPostEffect/LightStreaksPostEffect.cpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 11 | 2018-05-24T09:07:43.000Z | 2022-03-21T21:05:20.000Z | #include "LightStreaksPostEffect/LightStreaksPostEffect.hpp"
#include <Castor3D/Engine.hpp>
#include <Castor3D/Buffer/GpuBuffer.hpp>
#include <Castor3D/Model/Vertex.hpp>
#include <Castor3D/Material/Texture/Sampler.hpp>
#include <Castor3D/Material/Texture/TextureLayout.hpp>
#include <Castor3D/Miscellaneous/Parameter.hp... | 27.662921 | 108 | 0.693745 | DragonJoker |
590abc5da91904c53ccf38e68a0cd9edf113d02f | 854 | cpp | C++ | 0400/00/408a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0400/00/408a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0400/00/408a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <numeric>
#include <vector>
#include <climits>
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(unsigned v)
{
std::cout << v << '\n';
}
void solve(const std::vector<std::... | 16.113208 | 84 | 0.523419 | actium |
590b34e3e8449f330810b3275f24a2899f6ba3fe | 535 | cc | C++ | data-structure/pb_ds.cc | ac-voyage/template | 84d7db1db0e79f50d641d84d4aaa17442b0653f6 | [
"MIT"
] | null | null | null | data-structure/pb_ds.cc | ac-voyage/template | 84d7db1db0e79f50d641d84d4aaa17442b0653f6 | [
"MIT"
] | null | null | null | data-structure/pb_ds.cc | ac-voyage/template | 84d7db1db0e79f50d641d84d4aaa17442b0653f6 | [
"MIT"
] | 1 | 2017-04-20T09:47:09.000Z | 2017-04-20T09:47:09.000Z | /* Red-Black tree via pb_ds. */
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
int main(){
ordere... | 31.470588 | 96 | 0.721495 | ac-voyage |
590da069353fcffec5b4f8c224cd7882911076ff | 13,609 | cpp | C++ | extras/DemFiles/src/GridLib/ParseNumber.cpp | jebreimo/GridLib | a90a5299512eb01623881c62a1e5f73b9f2c2513 | [
"BSD-2-Clause"
] | null | null | null | extras/DemFiles/src/GridLib/ParseNumber.cpp | jebreimo/GridLib | a90a5299512eb01623881c62a1e5f73b9f2c2513 | [
"BSD-2-Clause"
] | null | null | null | extras/DemFiles/src/GridLib/ParseNumber.cpp | jebreimo/GridLib | a90a5299512eb01623881c62a1e5f73b9f2c2513 | [
"BSD-2-Clause"
] | null | null | null | //****************************************************************************
// Copyright © 2017 Jan Erik Breimo. All rights reserved.
// Created by Jan Erik Breimo on 23.02.2017.
//
// This file is distributed under the BSD License.
// License text is included with the source distribution.
//************************... | 29.975771 | 82 | 0.384525 | jebreimo |
590df6c3e2eb81be2786bc1f393a8cfa30a12c0d | 7,052 | cpp | C++ | src/rpucuda/dense_bit_line_maker.cpp | filemaster/aihwkit | 473eda8c3c89f49acdfc2da9bd03b27e22e13b1a | [
"Apache-2.0"
] | null | null | null | src/rpucuda/dense_bit_line_maker.cpp | filemaster/aihwkit | 473eda8c3c89f49acdfc2da9bd03b27e22e13b1a | [
"Apache-2.0"
] | null | null | null | src/rpucuda/dense_bit_line_maker.cpp | filemaster/aihwkit | 473eda8c3c89f49acdfc2da9bd03b27e22e13b1a | [
"Apache-2.0"
] | null | null | null | /**
* (C) Copyright 2020 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications or derivative wor... | 24.918728 | 98 | 0.652155 | filemaster |
590e09854eb8bb133a4f83dd90fb3162de139a87 | 5,300 | cc | C++ | Code/Components/Synthesis/synthesis/current/measurementequation/NormWienerPreconditioner.cc | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2020-06-18T08:37:43.000Z | 2020-06-18T08:37:43.000Z | Code/Components/Synthesis/synthesis/current/measurementequation/NormWienerPreconditioner.cc | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Components/Synthesis/synthesis/current/measurementequation/NormWienerPreconditioner.cc | ATNF/askapsoft | d839c052d5c62ad8a511e58cd4b6548491a6006f | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | /// @copyright (c) 2007 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// atnf-enquiries@csiro.au
///
/// This file is part of the ASKAP software distribution.
///
/// The ASKAP software distribut... | 36.054422 | 129 | 0.673019 | rtobar |
590fbbc29a6577b81fa544ca21977aed63372e58 | 8,862 | cpp | C++ | src/PermNetwork.cpp | patrick-schwarz/HElib | cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59 | [
"Apache-2.0"
] | 1 | 2020-12-01T07:18:47.000Z | 2020-12-01T07:18:47.000Z | src/PermNetwork.cpp | wangjinglin0721/HElib | cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59 | [
"Apache-2.0"
] | null | null | null | src/PermNetwork.cpp | wangjinglin0721/HElib | cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59 | [
"Apache-2.0"
] | null | null | null | /* Copyright (C) 2012-2019 IBM Corp.
* This program is 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 a... | 34.889764 | 79 | 0.64297 | patrick-schwarz |
591353e23489271a980133264ed1585dd8da5e83 | 4,882 | cc | C++ | chrome/notification_helper/notification_helper_crash_reporter_client.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/notification_helper/notification_helper_crash_reporter_client.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/notification_helper/notification_helper_crash_reporter_client.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2018 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.
#include "chrome/notification_helper/notification_helper_crash_reporter_client.h"
#include <memory>
#include "base/check.h"
#include "base/debug/leak_an... | 31.908497 | 81 | 0.785948 | mghgroup |
591573ae2b4b07b82625256973d1a0a936730162 | 31,861 | cpp | C++ | MK4duo/src/lcd/menu/menu_advanced.cpp | DapDeveloper/MK4duo | 385fdcd3cda94e73396dd12f23ff570c86d2eab5 | [
"RSA-MD"
] | null | null | null | MK4duo/src/lcd/menu/menu_advanced.cpp | DapDeveloper/MK4duo | 385fdcd3cda94e73396dd12f23ff570c86d2eab5 | [
"RSA-MD"
] | null | null | null | MK4duo/src/lcd/menu/menu_advanced.cpp | DapDeveloper/MK4duo | 385fdcd3cda94e73396dd12f23ff570c86d2eab5 | [
"RSA-MD"
] | null | null | null | /**
* MK4duo Firmware for 3D Printer, Laser and CNC
*
* Based on Marlin, Sprinter and grbl
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
* Copyright (C) 2019 Alberto Cotronei @MagoKimbra
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Pu... | 42.651941 | 197 | 0.695866 | DapDeveloper |
5915aba6512fc1bcd4d42873cf2255b08c4f3732 | 6,444 | cpp | C++ | src/mongocxx/test/read_preference.cpp | oledahle/mongo-cxx-driver | 60509b2d430b94d8e52d05502fb60e7b91c63cba | [
"Apache-2.0"
] | 934 | 2015-01-02T14:49:43.000Z | 2022-03-16T01:21:42.000Z | src/mongocxx/test/read_preference.cpp | oledahle/mongo-cxx-driver | 60509b2d430b94d8e52d05502fb60e7b91c63cba | [
"Apache-2.0"
] | 533 | 2015-01-07T18:45:30.000Z | 2022-03-23T00:44:26.000Z | src/mongocxx/test/read_preference.cpp | oledahle/mongo-cxx-driver | 60509b2d430b94d8e52d05502fb60e7b91c63cba | [
"Apache-2.0"
] | 570 | 2015-01-04T05:47:04.000Z | 2022-03-28T11:12:38.000Z | // Copyright 2014 MongoDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... | 33.915789 | 99 | 0.665115 | oledahle |
5915ddf6d41c2605c4db388b4b71653bbff19a8b | 18,160 | cpp | C++ | QSynthesis/Backend/Documents/Files/SequenceTextFile.cpp | SineStriker/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | 3 | 2021-12-08T05:30:52.000Z | 2021-12-18T10:46:49.000Z | QSynthesis/Backend/Documents/Files/SequenceTextFile.cpp | QSynthesis/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | null | null | null | QSynthesis/Backend/Documents/Files/SequenceTextFile.cpp | QSynthesis/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | null | null | null | #include "SequenceTextFile.h"
#include "SystemApis.h"
#include "Variables.h"
using namespace Utau;
Q_CHARSET_DECLARE(SequenceTextFile)
// Project File Reader
SequenceTextFile::SequenceTextFile() : BaseFile(Qs::Default) {
m_codec = defaultCodec;
reset();
}
SequenceTextFile::SequenceTextFile(const QString &f... | 31.803853 | 100 | 0.557269 | SineStriker |
5916c71730ec6505ee9163d078c6fd5c46b5a047 | 2,893 | cpp | C++ | Wml/Source/Graphics/WmlSphereBV.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | 26 | 2018-07-04T15:31:11.000Z | 2021-09-23T02:43:46.000Z | Wml/Source/Graphics/WmlSphereBV.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | null | null | null | Wml/Source/Graphics/WmlSphereBV.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | 1 | 2019-06-11T03:20:28.000Z | 2019-06-11T03:20:28.000Z | // Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004. All Rights Reserved
//
// The Wild Magic Library (WML) source code is supplied under the terms of
// the license agreement http://www.magic-software.com/License/WildMagic.pdf
// and may not be copied or ... | 37.571429 | 79 | 0.554787 | 1iyiwei |
5916f8c135d1f5ba107dfaf312a83325712c5551 | 1,535 | cpp | C++ | aws-cpp-sdk-panorama/source/model/S3Location.cpp | irods/aws-sdk-cpp | ea5a4d61a26c1eac41443fb9829e969ebac6e09b | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-panorama/source/model/S3Location.cpp | irods/aws-sdk-cpp | ea5a4d61a26c1eac41443fb9829e969ebac6e09b | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-panorama/source/model/S3Location.cpp | irods/aws-sdk-cpp | ea5a4d61a26c1eac41443fb9829e969ebac6e09b | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/panorama/model/S3Location.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace... | 17.055556 | 69 | 0.708143 | irods |
5917564f6f820e30d8adb2b1baeff950fd4f1057 | 496 | cpp | C++ | components/rollkit/src/chracteristic.cpp | NeilBetham/rollk | e82026397c892b5f0d3b53891d5efa51d941fd9d | [
"MIT"
] | 4 | 2018-06-12T21:48:01.000Z | 2021-04-01T15:18:50.000Z | components/rollkit/src/chracteristic.cpp | NeilBetham/rollk | e82026397c892b5f0d3b53891d5efa51d941fd9d | [
"MIT"
] | null | null | null | components/rollkit/src/chracteristic.cpp | NeilBetham/rollk | e82026397c892b5f0d3b53891d5efa51d941fd9d | [
"MIT"
] | 1 | 2018-08-18T13:05:31.000Z | 2018-08-18T13:05:31.000Z | #include "rollkit/characteristic.hpp"
#include <algorithm>
#include "rollkit/utils.hpp"
using namespace std;
namespace rollkit {
nlohmann::json Characteristic::serialize() const {
nlohmann::json ret;
bool is_readable = find(_perms.begin(), _perms.end(), "pr") != _perms.end();
ret["type"] = _hap_type;
ret... | 17.103448 | 78 | 0.66129 | NeilBetham |
591b215502ae32dc5fcc9b5d7eb6f95ae377a5e5 | 28,005 | cpp | C++ | src/lib/foundations/solvers/mckay.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/foundations/solvers/mckay.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/foundations/solvers/mckay.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // mckay.cpp
//
// solver due to Brendan McKay
// C++ translation by Volker Widor 2003
// adapted by Anton Betten
// 1/16/2009
#include "foundations.h"
using namespace std;
namespace orbiter {
namespace foundations {
mckay::tMCKAY::tMCKAY() {
nb_calls_to_solve = 0;
first_moved = 0;
second_moved = 0;
problem_l... | 25.858726 | 115 | 0.508124 | abetten |
591cfcda93a7f61258283a371c37cf3f085c0a55 | 123,412 | cpp | C++ | api/modules/SAM_TroughPhysicalProcessHeat.cpp | jkelroy/SAM | 3c05e55ec7d9e31f33e06f17fa6fb41bb19f04db | [
"BSD-3-Clause"
] | 219 | 2017-07-28T17:25:14.000Z | 2022-03-17T23:03:17.000Z | api/modules/SAM_TroughPhysicalProcessHeat.cpp | jkelroy/SAM | 3c05e55ec7d9e31f33e06f17fa6fb41bb19f04db | [
"BSD-3-Clause"
] | 729 | 2017-08-10T14:42:30.000Z | 2022-03-31T23:14:09.000Z | api/modules/SAM_TroughPhysicalProcessHeat.cpp | jkelroy/SAM | 3c05e55ec7d9e31f33e06f17fa6fb41bb19f04db | [
"BSD-3-Clause"
] | 109 | 2017-09-16T00:52:54.000Z | 2022-03-31T18:05:05.000Z | #include <string>
#include <utility>
#include <vector>
#include <memory>
#include <iostream>
#include <ssc/sscapi.h>
#include "SAM_api.h"
#include "ErrorHandler.h"
#include "SAM_TroughPhysicalProcessHeat.h"
SAM_EXPORT int SAM_TroughPhysicalProcessHeat_execute(SAM_table data, int verbosity, SAM_error* err){
return S... | 31.180394 | 149 | 0.782695 | jkelroy |