hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0cc9b82e0977cea065880c24f5b5c2df3ba8bce7 | 2,503 | cpp | C++ | src_smartcontract_vm/instance/instance_exception/NullPointerExceptionClassDeclare.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_smartcontract_vm/instance/instance_exception/NullPointerExceptionClassDeclare.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_smartcontract_vm/instance/instance_exception/NullPointerExceptionClassDeclare.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* NullPointerExceptionClassDeclare.cpp
*
* Created on: 2020/04/17
* Author: iizuka
*/
#include "instance/instance_exception/NullPointerExceptionClassDeclare.h"
#include "base/UnicodeString.h"
#include "engine/sc_analyze/AnalyzedClass.h"
#include "engine/sc_analyze/AnalyzedType.h"
#include "engine/sc_an... | 29.104651 | 112 | 0.80863 | alinous-core |
0cca2dcee75d53b3683ba341da2839bea77c76b2 | 534 | hh | C++ | dimensionanalysis/print.hh | dearoneesama/ctut | 1a0fe75f435bc7b50dbeefa0ecb5eeed62a89f55 | [
"BSL-1.0"
] | null | null | null | dimensionanalysis/print.hh | dearoneesama/ctut | 1a0fe75f435bc7b50dbeefa0ecb5eeed62a89f55 | [
"BSL-1.0"
] | null | null | null | dimensionanalysis/print.hh | dearoneesama/ctut | 1a0fe75f435bc7b50dbeefa0ecb5eeed62a89f55 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <ostream>
#include "dim.hh"
namespace dim {
template<unitpw_t s, unitpw_t m, unitpw_t kg, unitpw_t A,
unitpw_t K, unitpw_t mol, unitpw_t cd, class T>
std::ostream &operator<<(std::ostream &out, const quantity<dimVec<s, m, kg, A, K, mol, cd>, T> &q) {
out << q.value
... | 24.272727 | 104 | 0.434457 | dearoneesama |
0ccc3aeae323159016b55441cbbda4c7a228b511 | 15,978 | tcc | C++ | flens/lapack/la/laexc.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 98 | 2015-01-26T20:31:37.000Z | 2021-09-09T15:51:37.000Z | flens/lapack/la/laexc.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 16 | 2015-01-21T07:43:45.000Z | 2021-12-06T12:08:36.000Z | flens/lapack/la/laexc.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 31 | 2015-01-05T08:06:45.000Z | 2022-01-26T20:12:00.000Z | /*
* Copyright (c) 2011, Michael Lehn
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1) Redistributions of source code must retain the above copyright
* notice,... | 30.318786 | 80 | 0.493992 | stip |
0ccf10af95ca2ca06d8dfa73140636014ff6a649 | 5,939 | cpp | C++ | particlepm/target.cpp | particletk/particlepm | f30d5d96a045ef65dd8a60ce91ee1fe17b0d54a7 | [
"MIT"
] | null | null | null | particlepm/target.cpp | particletk/particlepm | f30d5d96a045ef65dd8a60ce91ee1fe17b0d54a7 | [
"MIT"
] | 1 | 2018-09-22T15:16:28.000Z | 2018-09-22T15:16:28.000Z | particlepm/target.cpp | particletk/particlepm | f30d5d96a045ef65dd8a60ce91ee1fe17b0d54a7 | [
"MIT"
] | null | null | null | #include "libincludes.hpp"
#include "target.hpp"
#include <functional>
#include <mutex>
#include <queue>
#include <thread>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/regex.hpp>
PPM::Target::Target(const std::string& name, const std::string& dir, PPM::Target::Type type)
: marked(false)
, ... | 26.632287 | 205 | 0.550261 | particletk |
7b4fc4f888c5991277a407c54dbe6a23c1547725 | 1,388 | cpp | C++ | 073-set-matrix-zeroes/set-matrix-zeroes.cpp | TJUSsr/leetcodesolution | 8244de2d76c9e8e5b9d98dd1e8efed4d680d44ee | [
"MIT"
] | null | null | null | 073-set-matrix-zeroes/set-matrix-zeroes.cpp | TJUSsr/leetcodesolution | 8244de2d76c9e8e5b9d98dd1e8efed4d680d44ee | [
"MIT"
] | 2 | 2021-03-31T19:10:41.000Z | 2021-12-13T19:58:15.000Z | 073-set-matrix-zeroes/set-matrix-zeroes.cpp | TJUSsr/leetcodesolution | 8244de2d76c9e8e5b9d98dd1e8efed4d680d44ee | [
"MIT"
] | null | null | null | // Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place.
//
// Example 1:
//
//
// Input:
// [
// [1,1,1],
// [1,0,1],
// [1,1,1]
// ]
// Output:
// [
// [1,0,1],
// [0,0,0],
// [1,0,1]
// ]
//
//
// Example 2:
//
//
// Input:
// [
// [0,1,2,0],
// [3,4,5,2],
/... | 19.013699 | 96 | 0.43732 | TJUSsr |
7b5188433ee2cd8f6515d1dae2da47d8dce1c51d | 5,120 | cpp | C++ | src/console.cpp | hammelm/mempeek | 8e9d0de7a6a2313abfbe7e512b5048993a0a2e61 | [
"BSD-2-Clause"
] | null | null | null | src/console.cpp | hammelm/mempeek | 8e9d0de7a6a2313abfbe7e512b5048993a0a2e61 | [
"BSD-2-Clause"
] | 18 | 2015-10-13T04:31:19.000Z | 2016-08-18T09:20:21.000Z | src/console.cpp | hammelm/mempeek | 8e9d0de7a6a2313abfbe7e512b5048993a0a2e61 | [
"BSD-2-Clause"
] | 3 | 2017-03-04T14:14:13.000Z | 2020-01-13T08:42:25.000Z | /* Copyright (c) 2015-2018, Martin Hammel
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 con... | 24.7343 | 89 | 0.666992 | hammelm |
7b5289576635ef21eaf18cef85647c333164cf88 | 916 | cpp | C++ | samples/demo/src/source.cpp | ninjaoflight/appcenter-sdk-cpp | 1e14459e3161694da6b8f313ee1cdd088cc21954 | [
"BSD-3-Clause"
] | null | null | null | samples/demo/src/source.cpp | ninjaoflight/appcenter-sdk-cpp | 1e14459e3161694da6b8f313ee1cdd088cc21954 | [
"BSD-3-Clause"
] | null | null | null | samples/demo/src/source.cpp | ninjaoflight/appcenter-sdk-cpp | 1e14459e3161694da6b8f313ee1cdd088cc21954 | [
"BSD-3-Clause"
] | null | null | null | #include <appcenter/analytics/analytics.hpp>
#include <appcenter/appcenter.hpp>
#include <string_view>
int main(int, char **) {
// get the enviroment variable
#ifdef APPCENTER_SAMPLE_APP_SECRET
const std::string_view appSecret = APPCENTER_SAMPLE_APP_SECRET;
#else
// if not using meson, you can setup your own app sec... | 36.64 | 93 | 0.768559 | ninjaoflight |
7b53a23a7e78b0b580267532415bd627f5a6e84a | 469 | cpp | C++ | problems/T/T1011/std.cpp | Tiphereth-A/problems | 78724d2f559bf18b4999c89ef3bf9b8523fc6d49 | [
"MIT"
] | 1 | 2022-01-23T09:26:35.000Z | 2022-01-23T09:26:35.000Z | problems/T/T1011/std.cpp | Tiphereth-A/problems | 78724d2f559bf18b4999c89ef3bf9b8523fc6d49 | [
"MIT"
] | null | null | null | problems/T/T1011/std.cpp | Tiphereth-A/problems | 78724d2f559bf18b4999c89ef3bf9b8523fc6d49 | [
"MIT"
] | 1 | 2022-03-08T07:21:04.000Z | 2022-03-08T07:21:04.000Z | #include <iostream>
#include <cstring>
using namespace std;
const int maxn = 1e4+5;
const int maxw = 1e7+5;
typedef long long ll;
ll m[maxn], w[maxn], v[maxn];
ll dp[maxw];
int main()
{
int n, W;
cin>>n>>W;
for(int i=1;i<=n;i++)
cin>>m[i]>>w[i]>>v[i];
for(int i=1;i<=n;i++)
for(int j=W;j>... | 22.333333 | 54 | 0.492537 | Tiphereth-A |
7b54174cd2b5839bb7543172835d95979e8a1aaf | 2,817 | cpp | C++ | keyzz/runners/runner.cpp | DmitryDzz/keyzz | 85e63ea465116e0b7f37aa8633a6d6beeabd6779 | [
"MIT"
] | null | null | null | keyzz/runners/runner.cpp | DmitryDzz/keyzz | 85e63ea465116e0b7f37aa8633a6d6beeabd6779 | [
"MIT"
] | 6 | 2021-05-05T18:08:55.000Z | 2021-05-15T16:01:00.000Z | keyzz/runners/runner.cpp | DmitryDzz/keyzz | 85e63ea465116e0b7f37aa8633a6d6beeabd6779 | [
"MIT"
] | null | null | null | // Copyright 2021 DmitryDzz
#include "runner.hpp"
#include <logger/easylogging++.h>
#include <algorithm>
#include <minunity/engine.hpp>
#include "../tracks/race.hpp"
#include "../tracks/track.hpp"
using minunity::Engine;
using minunity::Layer;
using minunity::Sprite;
using keyzz::BaseRunner;
using keyzz::Race;
u... | 30.290323 | 98 | 0.617678 | DmitryDzz |
7b5632ae2858a2ab540edf2ed8a5590e9828aafa | 1,013 | cpp | C++ | test/Graphics/ConvexShape.cpp | jlmartinnc/SFML | 709530d062ac9c452f50b06d37cdd800c2f9ba68 | [
"Zlib"
] | 1 | 2020-09-11T06:28:37.000Z | 2020-09-11T06:28:37.000Z | test/Graphics/ConvexShape.cpp | jlmartinnc/SFML | 709530d062ac9c452f50b06d37cdd800c2f9ba68 | [
"Zlib"
] | 1 | 2022-02-04T01:20:06.000Z | 2022-02-04T01:20:06.000Z | test/Graphics/ConvexShape.cpp | ChrisThrasher/SFML | 757cb36d30cb3090945657580f9b43d511535bc2 | [
"Zlib"
] | null | null | null | #include <SFML/Graphics/ConvexShape.hpp>
#include "SystemUtil.hpp"
#include <doctest.h>
TEST_CASE("sf::ConvexShape class - [graphics]")
{
SUBCASE("Default constructor")
{
const sf::ConvexShape convex;
CHECK(convex.getPointCount() == 0);
}
SUBCASE("Point count constructor")
{
... | 25.974359 | 64 | 0.572557 | jlmartinnc |
7b63c64671e7ccccef941ef5e3ec90c99898f461 | 2,190 | cpp | C++ | HTTPSYS/HttpQueryRequestQueueProperty.cpp | zYg-sys/Marlin | eeabb4d324c5f8d253a50c106208bb833cb824e8 | [
"MIT"
] | 23 | 2016-09-16T11:25:54.000Z | 2022-03-03T07:18:57.000Z | HTTPSYS/HttpQueryRequestQueueProperty.cpp | edwig/HTTPSYS | 885f94149e7db9fb8c7dad2c42c916d31b80a862 | [
"MIT"
] | 26 | 2016-10-21T11:07:54.000Z | 2022-03-05T18:27:03.000Z | HTTPSYS/HttpQueryRequestQueueProperty.cpp | zYg-sys/Marlin | eeabb4d324c5f8d253a50c106208bb833cb824e8 | [
"MIT"
] | 7 | 2018-09-11T12:17:46.000Z | 2021-07-08T09:10:04.000Z | //////////////////////////////////////////////////////////////////////////
//
// USER-SPACE IMPLEMENTTION OF HTTP.SYS
//
// 2018 (c) ir. W.E. Huisman
// License: MIT
//
//////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "http_private.h"
#include "RequestQueue.h"
#i... | 28.441558 | 123 | 0.605479 | zYg-sys |
7b65ab7af31fb70217575f1e1d3ac1277e15408c | 2,213 | hpp | C++ | compendium/ServiceComponent/include/cppmicroservices/servicecomponent/runtime/dto/ServiceReferenceDTO.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 588 | 2015-10-07T15:55:08.000Z | 2022-03-29T00:35:44.000Z | compendium/ServiceComponent/include/cppmicroservices/servicecomponent/runtime/dto/ServiceReferenceDTO.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 459 | 2015-10-05T23:29:59.000Z | 2022-03-29T14:13:37.000Z | compendium/ServiceComponent/include/cppmicroservices/servicecomponent/runtime/dto/ServiceReferenceDTO.hpp | fmilano/CppMicroServices | b7e79edb558a63e45f6788e4a8b4e787cf956689 | [
"Apache-2.0"
] | 218 | 2015-11-04T08:19:48.000Z | 2022-03-24T02:17:08.000Z | /*=============================================================================
Library: CppMicroServices
Copyright (c) The CppMicroServices developers. See the COPYRIGHT
file at the top-level directory of this distribution and at
https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT .
Licensed un... | 26.035294 | 81 | 0.685495 | fmilano |
7b69f349009cebdea5bc92cc227cefe110f64c60 | 1,214 | cpp | C++ | data/dailyCodingProblem672.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | 2 | 2020-09-04T20:56:23.000Z | 2021-06-11T07:42:26.000Z | data/dailyCodingProblem672.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | data/dailyCodingProblem672.cpp | vidit1999/daily_coding_problem | b90319cb4ddce11149f54010ba36c4bd6fa0a787 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
You are given an array of arrays of integers, where each array
corresponds to a row in a triangle of numbers.
For example, [[1], [2, 3], [1, 5, 1]] represents the triangle:
1
2 3
1 5 1
We define a path in the triangle to start at the top and go down
one row at a ti... | 25.829787 | 113 | 0.666392 | vidit1999 |
7b6bf81fb3469f8133a3e0ad57675fd2d2cd3243 | 829 | cpp | C++ | utility/rep.cpp | Cyanmond/Library | e77bb2e46ebc8630983025045570bd094aca7aa7 | [
"CC0-1.0"
] | 1 | 2021-11-04T05:41:45.000Z | 2021-11-04T05:41:45.000Z | utility/rep.cpp | Cyanmond/Library | e77bb2e46ebc8630983025045570bd094aca7aa7 | [
"CC0-1.0"
] | null | null | null | utility/rep.cpp | Cyanmond/Library | e77bb2e46ebc8630983025045570bd094aca7aa7 | [
"CC0-1.0"
] | null | null | null | #pragma once
#include "../utility/int_alias.cpp"
#include <algorithm>
class rep {
struct rep_iterator {
usize itr;
constexpr rep_iterator(const usize pos) noexcept : itr(pos) {}
constexpr void operator++() noexcept {
++itr;
}
constexpr bool operator!=(const usiz... | 24.382353 | 70 | 0.588661 | Cyanmond |
7b6df611b5cfd460401bdb79ade1fe1ddbdc13ae | 1,313 | cc | C++ | RangeSim/src/StackingAction.cc | murffer/DetectorSim | 1ba114c405eff42c0a52b6dc394cbecfc2d2bab0 | [
"Apache-2.0"
] | 5 | 2018-01-13T22:42:24.000Z | 2021-03-19T07:38:47.000Z | RangeSim/src/StackingAction.cc | murffer/DetectorSim | 1ba114c405eff42c0a52b6dc394cbecfc2d2bab0 | [
"Apache-2.0"
] | 1 | 2017-05-03T19:01:12.000Z | 2017-05-03T19:01:12.000Z | RangeSim/src/StackingAction.cc | murffer/DetectorSim | 1ba114c405eff42c0a52b6dc394cbecfc2d2bab0 | [
"Apache-2.0"
] | 3 | 2015-10-10T15:12:22.000Z | 2021-10-18T00:53:35.000Z | #include "StackingAction.hh"
#include "HistoManager.hh"
#include "G4Track.hh"
#include "G4VProcess.hh"
/**
* Default Constructor - nothing to be done
*/
StackingAction::StackingAction(){ }
/**
* Deconstructor
*/
StackingAction::~StackingAction(){ }
/**
* Classifies a new track, and fills the energy of the charge... | 25.745098 | 74 | 0.678599 | murffer |
7b75e8006e2687d18e5b2b5875ce4226d7fdd846 | 14,345 | cpp | C++ | NOLF/ObjectDLL/Editable.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 65 | 2015-02-28T03:35:14.000Z | 2021-09-23T05:43:33.000Z | NOLF/ObjectDLL/Editable.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | null | null | null | NOLF/ObjectDLL/Editable.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 27 | 2015-02-28T07:42:01.000Z | 2022-02-11T01:35:20.000Z | //----------------------------------------------------------
//
// MODULE : Editable.cpp
//
// PURPOSE : Editable aggreate
//
// CREATED : 3/10/99
//
//----------------------------------------------------------
#include "stdafx.h"
#include "Editable.h"
#include "iltserver.h"
#include "ObjectMsgs.h"
//... | 24.190556 | 110 | 0.425793 | rastrup |
7b75fcd7ee901aa2bcc22a96bd5cdacaeb41602e | 25,316 | cc | C++ | external/src/blosc/shuffle-sse2.cc | upj977155/TileDB | 1c96c6a0c030e058930ff9d47409865fbfe2178f | [
"MIT"
] | 1,478 | 2017-06-15T13:58:50.000Z | 2022-03-30T13:46:00.000Z | external/src/blosc/shuffle-sse2.cc | upj977155/TileDB | 1c96c6a0c030e058930ff9d47409865fbfe2178f | [
"MIT"
] | 1,435 | 2017-05-25T01:16:18.000Z | 2022-03-31T21:57:06.000Z | external/src/blosc/shuffle-sse2.cc | upj977155/TileDB | 1c96c6a0c030e058930ff9d47409865fbfe2178f | [
"MIT"
] | 169 | 2017-06-09T18:35:45.000Z | 2022-03-13T01:11:18.000Z | /*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Author: Francesc Alted <francesc@blosc.org>
See LICENSES/BLOSC.txt for details about copyright and rights to use.
Modifications for TileDB by Tyler Denniston <tyler@tiledb.io>
************... | 40.184127 | 112 | 0.622808 | upj977155 |
7b77bac2a43768468ac9619b6160875f737cbb8f | 628 | cpp | C++ | W1/Project 1/Source.cpp | katookei/Code202 | 0b046e9f8812de00405c14e512da50c8c6ece378 | [
"MIT"
] | null | null | null | W1/Project 1/Source.cpp | katookei/Code202 | 0b046e9f8812de00405c14e512da50c8c6ece378 | [
"MIT"
] | null | null | null | W1/Project 1/Source.cpp | katookei/Code202 | 0b046e9f8812de00405c14e512da50c8c6ece378 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include "Header.h"
using namespace std;
void fraction::readfile(fraction &b)
{
ifstream fou;
int data[10];
fou.open("a.txt");
for (int i = 0; i < 4; i++)
{
fou >> data[i];
}
fou.close();
nu = data[0]; de = data[1];
b.nu = data[2]; ... | 19.625 | 56 | 0.509554 | katookei |
7b80fc0bde60c3e98bcde8a0d787d1c3cac08978 | 2,706 | cpp | C++ | apps/hls_examples/hls_support/syn_target.cpp | akifoezkan/Halide-HLS | 1eee3f38f32722f3e725c29a5b7a084275062a7f | [
"MIT"
] | 71 | 2016-11-17T19:22:21.000Z | 2022-01-10T10:03:58.000Z | apps/hls_examples/hls_support/syn_target.cpp | akifoezkan/Halide-HLS | 1eee3f38f32722f3e725c29a5b7a084275062a7f | [
"MIT"
] | 30 | 2017-02-02T21:03:33.000Z | 2018-06-27T20:49:31.000Z | apps/hls_examples/hls_support/syn_target.cpp | akifoezkan/Halide-HLS | 1eee3f38f32722f3e725c29a5b7a084275062a7f | [
"MIT"
] | 22 | 2017-04-16T11:44:34.000Z | 2022-03-26T13:27:10.000Z | #include "Linebuffer.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
void syn_target(hls::stream<PackedStencil<uint8_t, 2, 1> > &input_stream,
hls::stream<PackedStencil<uint8_t, 2, 3> > &output_stream) {
#pragma HLS DATAFLOW
linebuffer<20, 12>(input_stream, output_stream);
}
void sy... | 39.217391 | 91 | 0.665558 | akifoezkan |
7b83dab5444b86b4a95aaa0adc8f908e1bcef221 | 1,883 | cpp | C++ | mainwindow.cpp | Kronephon/Rasp4Home | 162bd2a5ee2b718037862bffe9a117b188eff710 | [
"MIT"
] | null | null | null | mainwindow.cpp | Kronephon/Rasp4Home | 162bd2a5ee2b718037862bffe9a117b188eff710 | [
"MIT"
] | 11 | 2020-12-28T21:56:55.000Z | 2021-09-25T23:46:30.000Z | mainwindow.cpp | Kronephon/Rasp4Home | 162bd2a5ee2b718037862bffe9a117b188eff710 | [
"MIT"
] | null | null | null | #include <QApplication>
#include <QColor>
#include <QPalette>
#include <QFont>
#include <QBoxLayout>
#include "mainwindow.h"
namespace
{
const float Orange = 0xE95420;
const float WarmGrey = 0xAEA79F;
const float CoolGrey = 0x333333;
const float Aubergine = 0x772953;
const QFont sansFont("Helvetica [Cronyx]", 12);
}
... | 23.246914 | 81 | 0.686139 | Kronephon |
7b83f9b2e9ed820773769516250107094068a8fc | 2,797 | cpp | C++ | DarkSpace/StructureSolar.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | 1 | 2016-05-22T21:28:29.000Z | 2016-05-22T21:28:29.000Z | DarkSpace/StructureSolar.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | DarkSpace/StructureSolar.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | /*
StructureSolar.cpp
(c)2000 Palestar Inc, Richard Lyle
*/
#include "Debug/Assert.h"
#include "NounStar.h"
#include "GameContext.h"
#include "StructureSolar.h"
//----------------------------------------------------------------------------
const float MAX_STAR_RANGE = 300000.0f;
const float MAX_POWER = 100.0f;
/... | 20.718519 | 86 | 0.607079 | SnipeDragon |
7b8735dfcf5702cf6bd4302b7796ab83c70ddbc7 | 318 | cpp | C++ | src/2000/2193.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/2000/2193.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/2000/2193.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <cstdio>
using namespace std;
int main()
{
int n;
long long ans = 0, dp[91][2] = {};
scanf("%d", &n);
dp[1][0] = 0;
dp[1][1] = 1;
for (int i = 2; i <= n; i++)
{
dp[i][0] = dp[i - 1][0] + dp[i - 1][1];
dp[i][1] = dp[i - 1][0];
}
ans = dp[n][0] + dp[n][1];
printf("%lld\n", ans);
return 0;
} | 13.826087 | 41 | 0.440252 | upple |
7b8c9ad4a14e5a9f5b240f54706943637926380c | 742 | cpp | C++ | src/racket.cpp | CS126SP20/Crazy-Pong | b26d348535f8cc884b49dc9b5541c8dd552c2e9f | [
"MIT"
] | 1 | 2020-07-29T03:49:11.000Z | 2020-07-29T03:49:11.000Z | src/racket.cpp | CS126SP20/Crazy-Pong | b26d348535f8cc884b49dc9b5541c8dd552c2e9f | [
"MIT"
] | null | null | null | src/racket.cpp | CS126SP20/Crazy-Pong | b26d348535f8cc884b49dc9b5541c8dd552c2e9f | [
"MIT"
] | null | null | null | //
// Created by Riya Gupta on 4/27/20.
//
#include "mylibrary/racket.h";
using namespace mylibrary;
Racket::Racket() { x = 0.0f; y = 0.0f; score = 0; }
float Racket::getX() const { return x; }
float Racket::getY() const { return y; }
void Racket::Init( float a, float b) { x = a; y = b; }
int Racket::getScore() const ... | 26.5 | 59 | 0.552561 | CS126SP20 |
7b90342ee9f4e6fca9ff2bfc0e5d68458ab25bc0 | 411 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR_System/system.Char.CompareTo/CPP/compareto.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_CLR_System/system.Char.CompareTo/CPP/compareto.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_CLR_System/system.Char.CompareTo/CPP/compareto.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
// <snippet19>
using namespace System;
int main()
{
char chA = 'A';
char chB = 'B';
Console::WriteLine( chA.CompareTo( 'A' ) ); // Output: "0" (meaning they're equal)
Console::WriteLine( 'b'.CompareTo( chB ) ); // Output: "32" (meaning 'b' is greater than 'B' by 32)
Console::WriteLine( chA.Comp... | 29.357143 | 103 | 0.579075 | hamarb123 |
7b92b2674214aeea2c32f3eb186fa8d9b8177513 | 5,235 | hpp | C++ | src/centurion/initialization.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | 14 | 2020-05-17T21:38:03.000Z | 2020-11-21T00:16:25.000Z | src/centurion/initialization.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | 70 | 2020-04-26T17:08:52.000Z | 2020-11-21T17:34:03.000Z | src/centurion/initialization.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2019-2022 Albin Johansson
*
* 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, c... | 23.581081 | 92 | 0.697994 | Creeperface01 |
7ba5c8510ca867c972b3377b1e628d4e31576afa | 291 | hpp | C++ | SQL/FactoryRedis.hpp | useryoung-2019/MyHttpServer | ce23c1bf161edba08a82d54de6693167a8917d18 | [
"MIT"
] | null | null | null | SQL/FactoryRedis.hpp | useryoung-2019/MyHttpServer | ce23c1bf161edba08a82d54de6693167a8917d18 | [
"MIT"
] | null | null | null | SQL/FactoryRedis.hpp | useryoung-2019/MyHttpServer | ce23c1bf161edba08a82d54de6693167a8917d18 | [
"MIT"
] | null | null | null | #ifndef FACTORYREDIS_H
#define FACTORYREDIS_H
#include"AbstractFactory.hpp"
#include"ProductRedis.hpp"
class FactoryRedis:public AbstractFactory
{
public:
shared_ptr<AbstractProductSQL> createSQL()
{
return shared_ptr<AbstractProductSQL>(new ProductRedis);
}
};
#endif | 18.1875 | 64 | 0.762887 | useryoung-2019 |
7bb11b832ba20d98c9d7c8a8d06658affa55c560 | 3,919 | cpp | C++ | src/cipher.cpp | chrisballinger/OLMKit | daab2a58af947cddd67fe9f30dd3a9fc327650c0 | [
"Apache-2.0"
] | 2 | 2016-04-14T13:48:33.000Z | 2021-01-11T03:48:19.000Z | src/cipher.cpp | chrisballinger/OLMKit | daab2a58af947cddd67fe9f30dd3a9fc327650c0 | [
"Apache-2.0"
] | 1 | 2019-01-25T16:20:41.000Z | 2020-10-28T13:54:39.000Z | src/cipher.cpp | chrisballinger/OLMKit | daab2a58af947cddd67fe9f30dd3a9fc327650c0 | [
"Apache-2.0"
] | 1 | 2017-01-11T18:13:00.000Z | 2017-01-11T18:13:00.000Z | /* Copyright 2015 OpenMarket 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 or agreed to ... | 28.194245 | 78 | 0.700944 | chrisballinger |
7bb208e8ba6f8a0ce70f31250587a31f0cf1ed7b | 4,387 | hpp | C++ | mod/wrd/src/ast/node.hpp | kniz/worldlang | 78701ab003c158211d42d129f91259d17febbb22 | [
"MIT"
] | 7 | 2019-03-12T03:04:32.000Z | 2021-12-26T04:33:44.000Z | mod/wrd/src/ast/node.hpp | kniz/worldlang | 78701ab003c158211d42d129f91259d17febbb22 | [
"MIT"
] | 7 | 2019-02-13T14:01:43.000Z | 2020-11-20T11:09:06.000Z | mod/wrd/src/ast/node.hpp | kniz/worldlang | 78701ab003c158211d42d129f91259d17febbb22 | [
"MIT"
] | null | null | null | #pragma once
#include "clonable.hpp"
#include "../builtin/container/native/tnarr.hpp"
#include "validable.hpp"
namespace wrd {
class ases;
/// node provides common API to manipulate its sub nodes.
class node : public instance, public clonable {
WRD(INTERFACE(node, instance))
public:
no... | 34.543307 | 99 | 0.578527 | kniz |
7bb29975b2420b277accdb5621008b6c37ad4fbd | 1,776 | hpp | C++ | Example/src/MYENG_DB/ModuleBase.hpp | heesok2/MFC | 1ff13a425609addbf458d00f9853d16ada2b29ec | [
"MIT"
] | null | null | null | Example/src/MYENG_DB/ModuleBase.hpp | heesok2/MFC | 1ff13a425609addbf458d00f9853d16ada2b29ec | [
"MIT"
] | null | null | null | Example/src/MYENG_DB/ModuleBase.hpp | heesok2/MFC | 1ff13a425609addbf458d00f9853d16ada2b29ec | [
"MIT"
] | null | null | null | #pragma once
#ifndef MODULEDATA_DEF
#define MODULEDATA_DEF
#include "Module.h"
#include "EntityDictionary.hpp"
namespace mydb
{
template <class ENTITY_DATA>
class CModuleData : public mydb::CModule
{
public:
CModuleData(CPackage * pPackage)
: CModule(pPackage)
{}
virtual ~CModuleData() {}
public: // D... | 16.444444 | 59 | 0.684122 | heesok2 |
7bb36148ad788f1fa9884d648231660a92519887 | 10,501 | cpp | C++ | test/jhash_test.cpp | MrVoi/ric-plt-xapp-frame-cpp | dad910695faf755da932bdbd07430f58718fd910 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2021-07-19T21:29:30.000Z | 2021-07-19T21:29:30.000Z | test/jhash_test.cpp | MrVoi/ric-plt-xapp-frame-cpp | dad910695faf755da932bdbd07430f58718fd910 | [
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | test/jhash_test.cpp | MrVoi/ric-plt-xapp-frame-cpp | dad910695faf755da932bdbd07430f58718fd910 | [
"Apache-2.0",
"CC-BY-4.0"
] | 1 | 2022-03-11T02:36:36.000Z | 2022-03-11T02:36:36.000Z | // vim: ts=4 sw=4 noet :
/*
==================================================================================
Copyright (c) 2020 Nokia
Copyright (c) 2020 AT&T Intellectual Property.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with ... | 36.975352 | 124 | 0.614799 | MrVoi |
7bb4eac23f8ec73f6d3b79e9a42265c3740afa8e | 20,282 | cpp | C++ | src/binance/wallet.cpp | Hsin-Hung/binance_api_cpp | 1c7662cf0cd682122644dc5819dfe9b88e06b8a6 | [
"Apache-2.0"
] | 1 | 2022-02-06T17:40:55.000Z | 2022-02-06T17:40:55.000Z | src/binance/wallet.cpp | Hsin-Hung/binance_api_cpp | 1c7662cf0cd682122644dc5819dfe9b88e06b8a6 | [
"Apache-2.0"
] | null | null | null | src/binance/wallet.cpp | Hsin-Hung/binance_api_cpp | 1c7662cf0cd682122644dc5819dfe9b88e06b8a6 | [
"Apache-2.0"
] | 1 | 2022-03-31T07:54:23.000Z | 2022-03-31T07:54:23.000Z | /*
Binance API Wrapper for C++
Copyright (c) 2022 Hsin-Hung <https://github.com/Hsin-Hung>
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/li... | 33.57947 | 107 | 0.671383 | Hsin-Hung |
7bb9222e4be394a7c69581b489375ab5b69c9a15 | 8,253 | cpp | C++ | Sourcecode/mxtest/core/MusicDataGroupTest.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | Sourcecode/mxtest/core/MusicDataGroupTest.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | Sourcecode/mxtest/core/MusicDataGroupTest.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "mxtest/control/CompileControl.h"
#ifdef MX_COMPILE_CORE_TESTS
#include "cpul/cpulTestHarness.h"
#include "mxtest/core/HelperFunctions.h"
#include "mxtest/core/MusicDataGroupTest.h"
#include "mxtest/core/M... | 35.573276 | 94 | 0.515691 | diskzero |
7bb9d944f93d87f4a9c032404c24759ef5e140b6 | 5,320 | cpp | C++ | tools/unittests/Runtime/ArgmaxTest.cpp | jdh8/onnc | 018ff007e20734585579aac87ca9a573aa012909 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T13:36:26.000Z | 2021-02-25T13:36:26.000Z | tools/unittests/Runtime/ArgmaxTest.cpp | jdh8/onnc | 018ff007e20734585579aac87ca9a573aa012909 | [
"BSD-3-Clause"
] | null | null | null | tools/unittests/Runtime/ArgmaxTest.cpp | jdh8/onnc | 018ff007e20734585579aac87ca9a573aa012909 | [
"BSD-3-Clause"
] | null | null | null | #if defined(__GNUC__) || defined(_MSC_VER)
# define restrict __restrict
#else
# define restrict
#endif
extern "C" {
#include <onnc/Runtime/onnc-runtime.h>
}
#undef restrict
#include "norm.hpp"
#include <skypat/skypat.h>
SKYPAT_F(Operator_ArgMax, test_argmax_no_keepdims_example)
{
const float input_0[] = {... | 41.24031 | 120 | 0.618233 | jdh8 |
7bba4af1cef957d08f16b1d9a35229cdbbf47e4a | 1,755 | cc | C++ | servlib/bundling/ForwardingInfo.cc | delay-tolerant-networking/DTN2 | 1c12a9dea32c5cbae8c46db105012a2031f4161e | [
"Apache-2.0"
] | 14 | 2016-06-27T19:28:23.000Z | 2021-06-28T20:41:17.000Z | servlib/bundling/ForwardingInfo.cc | delay-tolerant-networking/DTN2 | 1c12a9dea32c5cbae8c46db105012a2031f4161e | [
"Apache-2.0"
] | 3 | 2020-09-18T13:48:53.000Z | 2021-05-27T18:28:14.000Z | servlib/bundling/ForwardingInfo.cc | lauramazzuca21/DTNME | c97b598b09a8c8e97c2e4136879d9f0e157c8df7 | [
"Apache-2.0"
] | 10 | 2020-09-26T05:08:40.000Z | 2022-01-25T12:57:55.000Z | /*
* Copyright 2006-2007 The MITRE Corporation
*
* 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 requ... | 34.411765 | 103 | 0.688319 | delay-tolerant-networking |
7bbc2d3f991fedd2498b0bab564e00a59c5e82d6 | 3,303 | cpp | C++ | test/PAGFontTest.cpp | henryzt/libpag | 9d3bb92a5a90240615884ff7f8afc3ea6c34d7a1 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | 1 | 2022-02-15T03:04:01.000Z | 2022-02-15T03:04:01.000Z | test/PAGFontTest.cpp | henryzt/libpag | 9d3bb92a5a90240615884ff7f8afc3ea6c34d7a1 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | null | null | null | test/PAGFontTest.cpp | henryzt/libpag | 9d3bb92a5a90240615884ff7f8afc3ea6c34d7a1 | [
"BSL-1.0",
"CC0-1.0",
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... | 35.902174 | 129 | 0.659098 | henryzt |
7bc678974e45c20f132531188608fd8281d719b1 | 6,182 | hpp | C++ | Source/Terrain/TerrainConstructionData.hpp | storm20200/UniversitySecondYearTerrain | 4455f9804e165202839fdd05f660f6a9bbc999eb | [
"MIT"
] | 2 | 2016-06-05T04:52:35.000Z | 2016-07-10T04:18:04.000Z | Source/Terrain/TerrainConstructionData.hpp | storm20200/University3DGraphicsTerrain | 4455f9804e165202839fdd05f660f6a9bbc999eb | [
"MIT"
] | null | null | null | Source/Terrain/TerrainConstructionData.hpp | storm20200/University3DGraphicsTerrain | 4455f9804e165202839fdd05f660f6a9bbc999eb | [
"MIT"
] | null | null | null | #ifndef TERRAIN_CONSTRUCTION_DATA_3GP_HPP
#define TERRAIN_CONSTRUCTION_DATA_3GP_HPP
// Personal headers.
#include <Terrain/Terrain.hpp>
/// <summary>
/// A structure containing all the information required to generate terrain elements and vertices.
/// </summary>
class Terrain::ConstructionData final
{
public:
... | 52.837607 | 119 | 0.602232 | storm20200 |
0d00a7b0316dc482655c9c851accaecb555a66bd | 12,255 | hpp | C++ | DT3Windows8/DeviceGraphicsDX11Material.hpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2016-01-27T13:17:18.000Z | 2019-03-19T09:18:25.000Z | DT3Windows8/DeviceGraphicsDX11Material.hpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3Windows8/DeviceGraphicsDX11Material.hpp | adderly/DT3 | e2605be091ec903d3582e182313837cbaf790857 | [
"MIT"
] | 3 | 2016-01-25T16:44:51.000Z | 2021-01-29T19:59:45.000Z | #ifndef DT2_DEVICEGRAPHICSDX11MATERIAL
#define DT2_DEVICEGRAPHICSDX11MATERIAL
//==============================================================================
///
/// File: DeviceGraphicsDX11Material.hpp
///
/// Copyright (C) 2000-2013 by Smells Like Donkey, Inc. All rights reserved.
///
/// This file is subject to t... | 35.938416 | 125 | 0.616157 | 9heart |
0d030c0917640d62afef953096945e7e1dedf137 | 1,432 | cpp | C++ | Codechef_Long_Chalenge_2021/shortestPath.cpp | AkashKumarSingh11032001/Coding-Challenge-Solutions | c46b5d466b1403b8e58b6ac9081298d617ad8611 | [
"MIT"
] | null | null | null | Codechef_Long_Chalenge_2021/shortestPath.cpp | AkashKumarSingh11032001/Coding-Challenge-Solutions | c46b5d466b1403b8e58b6ac9081298d617ad8611 | [
"MIT"
] | null | null | null | Codechef_Long_Chalenge_2021/shortestPath.cpp | AkashKumarSingh11032001/Coding-Challenge-Solutions | c46b5d466b1403b8e58b6ac9081298d617ad8611 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define maxn 3E5 + 5
void solve()
{
int n, m;
cin >> n >> m;
int a[n];
int b[m];
int i, j;
for (i = 0; i < n; i++)
{
cin >> a[i];
}
for (i = 0; i < m; i++)
{
cin >> b[i];
}
int max_i = maxn;
int rough[n];
... | 16.45977 | 51 | 0.261872 | AkashKumarSingh11032001 |
0d040c97e20584697571dd9a08d3888e732af4b9 | 444 | cpp | C++ | CompetitiveProgramming/Exercise2.2.1/5-LongestContiguousSubArray.cpp | omarcespedes/algorithms-cpp | 5c66e41d0f4080ccd2c384ff9658ceb721545b19 | [
"MIT"
] | null | null | null | CompetitiveProgramming/Exercise2.2.1/5-LongestContiguousSubArray.cpp | omarcespedes/algorithms-cpp | 5c66e41d0f4080ccd2c384ff9658ceb721545b19 | [
"MIT"
] | null | null | null | CompetitiveProgramming/Exercise2.2.1/5-LongestContiguousSubArray.cpp | omarcespedes/algorithms-cpp | 5c66e41d0f4080ccd2c384ff9658ceb721545b19 | [
"MIT"
] | null | null | null | //increasing
#include <iostream>
using namespace std;
#define N 12
int arr[N] = {12, 13, 14, 15, 4, 7, 8, 1, 10, 11,25,26};
int main(){
int max = 1, len = 1;
for(int i = 1 ; i < N ; i++) {
if(arr[i] > arr[i-1]) {
len++;
} else {
if(len > max) {
max = l... | 17.76 | 56 | 0.394144 | omarcespedes |
0d0438ec54dbbc75f365e7d3a351ed9b2661df27 | 4,453 | cpp | C++ | test/integration_tests/src/config.cpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | test/integration_tests/src/config.cpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | test/integration_tests/src/config.cpp | Paycasso/cpp-driver | 9e6efd4842afc226d999baf890a55275e7e94cf8 | [
"Apache-2.0"
] | null | null | null | #define BOOST_TEST_DYN_LINK
#ifdef STAND_ALONE
# define BOOST_TEST_MODULE cassandra
#endif
#include <boost/test/unit_test.hpp>
#include "cassandra.h"
#include "test_utils.hpp"
struct ConfigTests {
ConfigTests() { }
};
BOOST_FIXTURE_TEST_SUITE(config, ConfigTests)
BOOST_AUTO_TEST_CASE(test_options)
{
test_... | 37.108333 | 146 | 0.760835 | Paycasso |
0d0446ac2835a18565812064ad6568f2fc69d033 | 6,268 | cpp | C++ | src/Auxiliary/Aux_Check_Conservation.cpp | zhulianhua/Daino | db88f5738aba76fa8a28d7672450e0c5c832b3de | [
"MIT"
] | 3 | 2019-04-13T02:08:01.000Z | 2020-11-17T12:45:37.000Z | src/Auxiliary/Aux_Check_Conservation.cpp | zhulianhua/Daino | db88f5738aba76fa8a28d7672450e0c5c832b3de | [
"MIT"
] | null | null | null | src/Auxiliary/Aux_Check_Conservation.cpp | zhulianhua/Daino | db88f5738aba76fa8a28d7672450e0c5c832b3de | [
"MIT"
] | 2 | 2019-11-12T02:00:20.000Z | 2019-12-09T14:52:31.000Z |
#include "DAINO.h"
#if ( MODEL == MHD )
#warning : WAIT MHD !!!
#endif
//-------------------------------------------------------------------------------------------------------
// Function : Aux_Check_Conservation
// Description : Verify the conservation laws
// --> HYDRO : check mass, momenum... | 31.979592 | 113 | 0.469368 | zhulianhua |
0d0d6309cc3d18e9b97b348f1e2afd22e039ddea | 1,897 | cpp | C++ | crazyrc/rc_parser.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 11 | 2017-06-19T14:21:15.000Z | 2020-03-04T06:43:16.000Z | crazyrc/rc_parser.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | null | null | null | crazyrc/rc_parser.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 3 | 2017-07-23T18:08:55.000Z | 2019-09-16T16:28:18.000Z | #include <boost/spirit/include/qi.hpp>
#include <boost/foreach.hpp>
#include <boost/assert.hpp>
#include <boost/variant/variant.hpp>
#include <iostream>
#include <string>
#include <cstdlib>
#include <map>
#include "rc_grammar.h"
#include "rc_dump.h"
#include "unicode.h"
#include "utils_file.h"
#include "rc_cache.h"
us... | 18.066667 | 79 | 0.633632 | mojmir-svoboda |
0d0df500dc9c7cc3755a92e5f113f6e931144607 | 2,552 | cpp | C++ | LibraryDX12/Resource/D2DWrappedResource.cpp | DziubanMaciej/DirectX-Deconfused | a8a4177beeb40436f6e0734e6d28d60aa1867d40 | [
"MIT"
] | null | null | null | LibraryDX12/Resource/D2DWrappedResource.cpp | DziubanMaciej/DirectX-Deconfused | a8a4177beeb40436f6e0734e6d28d60aa1867d40 | [
"MIT"
] | null | null | null | LibraryDX12/Resource/D2DWrappedResource.cpp | DziubanMaciej/DirectX-Deconfused | a8a4177beeb40436f6e0734e6d28d60aa1867d40 | [
"MIT"
] | null | null | null | #include "D2DWrappedResource.h"
#include "Application/ApplicationImpl.h"
#include "Resource/Resource.h"
#include "Utility/ThrowIfFailed.h"
#include <cassert>
void D2DWrappedResource::wrap(float dpi) {
auto &d2dContext = ApplicationImpl::getInstance().getD2DContext();
// Create DX11 Resource
const D3D11_... | 34.486486 | 122 | 0.738245 | DziubanMaciej |
0d11f1dccbf81b4bfe3341997c844aed40fcb94a | 22,910 | hpp | C++ | 3rdparty/sospd/include/litiv/3rdparty/sospd/sospd.hpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 97 | 2015-10-16T04:32:33.000Z | 2022-03-29T07:04:02.000Z | 3rdparty/sospd/include/litiv/3rdparty/sospd/sospd.hpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 19 | 2016-07-01T16:37:02.000Z | 2020-09-10T06:09:39.000Z | 3rdparty/sospd/include/litiv/3rdparty/sospd/sospd.hpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 41 | 2015-11-17T05:59:23.000Z | 2022-02-16T09:30:28.000Z | #pragma once
#include "litiv/3rdparty/sospd/multilabel-energy.hpp"
#include "litiv/3rdparty/sospd/submodular-ibfs.hpp"
namespace sospd {
/** Optimizer using Sum-of-submodular Primal Dual algorithm.
*
* Implements SoSPD algorithm from Fix, Wang, Zabih in CVPR 14.
*/
template<typename ValueType,... | 38.056478 | 137 | 0.564426 | jpjodoin |
0d1c148b5ab0de3d48c69dc629e369d28b987032 | 5,090 | cpp | C++ | AGVCCON/fDurationTasks.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | AGVCCON/fDurationTasks.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | AGVCCON/fDurationTasks.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------------------
// COPYRIGHT NOTICE
// ----------------------------------------------------------------------------------------
//
// The Source Code Store LLC
// ACTIVEGANTT SCHEDULER COMPONENT FOR C++ - ActiveGan... | 37.426471 | 148 | 0.68998 | jluzardo1971 |
0d1d42bb1a2bbac80182053dd249695c15c4e76e | 2,919 | cpp | C++ | PickerControls/WxColourPickerCtrl1/src/WxColourPickerCtrl1Frame.cpp | wxIshiko/wxWidgetsTutorials | 83efacbad925a78b3111e055c2f0646ab68b973f | [
"Unlicense"
] | 38 | 2018-05-10T08:01:05.000Z | 2022-03-28T23:14:45.000Z | PickerControls/WxColourPickerCtrl1/src/WxColourPickerCtrl1Frame.cpp | zhuhui09/wxWidgetsTutorials | 83efacbad925a78b3111e055c2f0646ab68b973f | [
"Unlicense"
] | null | null | null | PickerControls/WxColourPickerCtrl1/src/WxColourPickerCtrl1Frame.cpp | zhuhui09/wxWidgetsTutorials | 83efacbad925a78b3111e055c2f0646ab68b973f | [
"Unlicense"
] | 16 | 2018-01-14T09:53:12.000Z | 2022-03-20T00:34:56.000Z | /*
Copyright (c) 2015 Xavier Leclercq
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, ... | 43.567164 | 89 | 0.7506 | wxIshiko |
0d20612ce77898f7ac8dbf6c3b055826f72b798d | 3,010 | cpp | C++ | src/dialog/vinserttabledialog.cpp | linails/vnote | 97810731db97292f474951c3450aac150acef0bc | [
"MIT"
] | 1 | 2020-10-13T14:28:59.000Z | 2020-10-13T14:28:59.000Z | src/dialog/vinserttabledialog.cpp | linails/vnote | 97810731db97292f474951c3450aac150acef0bc | [
"MIT"
] | 1 | 2022-01-22T13:10:44.000Z | 2022-01-22T13:10:44.000Z | src/dialog/vinserttabledialog.cpp | linails/vnote | 97810731db97292f474951c3450aac150acef0bc | [
"MIT"
] | 1 | 2021-06-17T02:43:27.000Z | 2021-06-17T02:43:27.000Z | #include "vinserttabledialog.h"
#include <QSpinBox>
#include <QRadioButton>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QLabel>
#include <QDialogButtonBox>
#include <QPushButton>
#include <QButtonGroup>
VInsertTableDialog::VInsertTableDialog(QWidget *p_parent)
: QDialog(p_parent... | 31.354167 | 92 | 0.68505 | linails |
0d22b3c91dc6464f08e620187d9368e7af62be64 | 5,644 | hpp | C++ | pythran/pythonic/numpy/reduce.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/numpy/reduce.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/numpy/reduce.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_NUMPY_REDUCE_HPP
#define PYTHONIC_NUMPY_REDUCE_HPP
#include "pythonic/include/numpy/reduce.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/__builtin__/None.hpp"
#include "pythonic/__builtin__/ValueError.hpp"
#include "pythonic/utils/neutral.hpp"
#include <algorithm>
namespace pythonic... | 31.18232 | 80 | 0.546244 | xmar |
0d2d08597e179e4c55fc483afeed40178a2fc5e5 | 1,804 | hpp | C++ | host/include/serial_can_dump.hpp | hephaisto/serial-can-dump | a3aa3e6e166327ad86b491ca8d89fbcc1090f597 | [
"MIT"
] | 1 | 2016-09-20T20:20:00.000Z | 2016-09-20T20:20:00.000Z | host/include/serial_can_dump.hpp | hephaisto/serial-can-dump | a3aa3e6e166327ad86b491ca8d89fbcc1090f597 | [
"MIT"
] | null | null | null | host/include/serial_can_dump.hpp | hephaisto/serial-can-dump | a3aa3e6e166327ad86b491ca8d89fbcc1090f597 | [
"MIT"
] | null | null | null | #include <memory>
#include <string>
#include <boost/signals2.hpp>
#include <boost/asio.hpp>
namespace bs2 = boost::signals2;
class ExtendedCanFrame
{
public:
ExtendedCanFrame(const uint32_t id, const uint8_t data_len, const uint8_t *data, const bool rtr=false);
ExtendedCanFrame(const uint32_t id, const bool rtr=fa... | 30.066667 | 104 | 0.764412 | hephaisto |
0d2f8d0b7c16eab8cc09638155ac707c42c53665 | 4,256 | cpp | C++ | Sources/Modules/Renderer/Stub/RendererStub.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | 2 | 2015-04-16T01:05:53.000Z | 2019-08-26T07:38:43.000Z | Sources/Modules/Renderer/Stub/RendererStub.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | Sources/Modules/Renderer/Stub/RendererStub.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* 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 ... | 44.8 | 121 | 0.574718 | benkaraban |
0d2ff67406c27f944c704f1a3394a211baa512ca | 18,585 | cpp | C++ | source/fontpage.cpp | tomorrow-wakeup/Font-Creator-For-Unity3D | 6bcb740def77679f8f6f7d9c08e4c6afca6fe2ab | [
"BSD-3-Clause"
] | null | null | null | source/fontpage.cpp | tomorrow-wakeup/Font-Creator-For-Unity3D | 6bcb740def77679f8f6f7d9c08e4c6afca6fe2ab | [
"BSD-3-Clause"
] | null | null | null | source/fontpage.cpp | tomorrow-wakeup/Font-Creator-For-Unity3D | 6bcb740def77679f8f6f7d9c08e4c6afca6fe2ab | [
"BSD-3-Clause"
] | 1 | 2019-09-09T06:44:23.000Z | 2019-09-09T06:44:23.000Z | /*
AngelCode Bitmap Font Generator
Copyright (c) 2004-2014 Andreas Jonsson
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any
damages arising from the use of this software.
Permission is granted to anyone to use this so... | 26.324363 | 212 | 0.612429 | tomorrow-wakeup |
0d3a74e11d00f485465ebcb165fa432dc5095dc5 | 306 | hpp | C++ | vm/os-solaris-x86.64.hpp | seckar/factor | 9683b081e3d93a996d00c91a139b533139dfb945 | [
"BSD-2-Clause"
] | 1 | 2016-05-08T19:43:03.000Z | 2016-05-08T19:43:03.000Z | vm/os-solaris-x86.64.hpp | seckar/factor | 9683b081e3d93a996d00c91a139b533139dfb945 | [
"BSD-2-Clause"
] | null | null | null | vm/os-solaris-x86.64.hpp | seckar/factor | 9683b081e3d93a996d00c91a139b533139dfb945 | [
"BSD-2-Clause"
] | null | null | null | #include <ucontext.h>
namespace factor
{
inline static void *ucontext_stack_pointer(void *uap)
{
ucontext_t *ucontext = (ucontext_t *)uap;
return (void *)ucontext->uc_mcontext.gregs[RSP];
}
#define UAP_PROGRAM_COUNTER(ucontext) \
(((ucontext_t *)(ucontext))->uc_mcontext.gregs[RIP])
}
| 19.125 | 56 | 0.699346 | seckar |
0d3c0e729231216556dd90d9abf9febc31be5e36 | 1,409 | cpp | C++ | plugins/ChannelMute/Source/PluginEditor.cpp | COx2/slPlugins | 72f6e8e70b23e97d44d27001df02433585c7fb81 | [
"BSD-3-Clause"
] | 39 | 2020-04-24T10:36:31.000Z | 2022-02-15T17:09:03.000Z | plugins/ChannelMute/Source/PluginEditor.cpp | COx2/slPlugins | 72f6e8e70b23e97d44d27001df02433585c7fb81 | [
"BSD-3-Clause"
] | 3 | 2020-04-28T00:24:43.000Z | 2020-11-09T21:43:34.000Z | plugins/ChannelMute/Source/PluginEditor.cpp | COx2/slPlugins | 72f6e8e70b23e97d44d27001df02433585c7fb81 | [
"BSD-3-Clause"
] | 5 | 2020-06-15T08:42:12.000Z | 2021-06-10T06:49:57.000Z | /*
==============================================================================
This file was auto-generated by the Introjucer!
It contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#include "PluginProcessor.h"
... | 28.18 | 95 | 0.51171 | COx2 |
0d40e47199a89b577d1743a70e3572f4f2b20088 | 1,723 | cpp | C++ | array/pair-with-sum-in-unsorted-array.cpp | HarshitKaushik/ds-algorithms-revision | 98fddca7b196179dd795dfde822a1d9bb1518b74 | [
"MIT"
] | 1 | 2018-08-28T17:44:45.000Z | 2018-08-28T17:44:45.000Z | array/pair-with-sum-in-unsorted-array.cpp | HarshitKaushik/ds-algorithms-revision | 98fddca7b196179dd795dfde822a1d9bb1518b74 | [
"MIT"
] | null | null | null | array/pair-with-sum-in-unsorted-array.cpp | HarshitKaushik/ds-algorithms-revision | 98fddca7b196179dd795dfde822a1d9bb1518b74 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
// Given an array A[] and a number x, check for pair in A[] with sum as x
// https://www.geeksforgeeks.org/write-a-c-program-that-given-a-set-a-of-n-numbers-and-another-number-x-determines-whether-or-not-there-exist-two-elements-in-s-whose-sum-is-exactly-x/
// Method to swap t... | 24.971014 | 183 | 0.611143 | HarshitKaushik |
0d4686544a5e554f737ac86f116d4c7c3f948baa | 435 | cpp | C++ | LAB-1/CODE/Lab-1-Program-5-Write a program to receive marks of physics, chemistry & maths from user.cpp | CSIT-Knowledge-Hub-EBulk/PPS-C-Lang.-Lab-Based-Programs-AKTU--KCS-151P-KCS-251P- | 7e6fcf1658d7122cfeeb04ce97ecda0355f6c4e1 | [
"Apache-2.0"
] | 2 | 2022-02-24T14:28:03.000Z | 2022-03-03T06:18:10.000Z | LAB-1/CODE/Lab-1-Program-5-Write a program to receive marks of physics, chemistry & maths from user.cpp | CSIT-Knowledge-Hub-EBulk/PPS-C-Lang.-Lab-Based-Programs-AKTU--KCS-151P-KCS-251P- | 7e6fcf1658d7122cfeeb04ce97ecda0355f6c4e1 | [
"Apache-2.0"
] | null | null | null | LAB-1/CODE/Lab-1-Program-5-Write a program to receive marks of physics, chemistry & maths from user.cpp | CSIT-Knowledge-Hub-EBulk/PPS-C-Lang.-Lab-Based-Programs-AKTU--KCS-151P-KCS-251P- | 7e6fcf1658d7122cfeeb04ce97ecda0355f6c4e1 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
#include<math.h>
int main()
{
int phy,che,math,total,PM;
printf("Enter the marks of the physics chemistry and math's\n");
scanf("%d%d%d",&phy,&che,&math);
total=(phy+che+math);
PM=phy+math;
if(phy>40 && che>50 && math>60 && (PM>150||total>200))
{
printf("... | 22.894737 | 69 | 0.542529 | CSIT-Knowledge-Hub-EBulk |
0d4bf48003af45391df0befebd85e79a05dbde89 | 182 | cpp | C++ | server/main.cpp | kaiqiangren/webrtc | f898ba54714a58d387282b4a9bbd4ab2b9bc7659 | [
"MIT"
] | 1 | 2020-06-16T05:05:40.000Z | 2020-06-16T05:05:40.000Z | server/main.cpp | kaiqiangren/webrtc | f898ba54714a58d387282b4a9bbd4ab2b9bc7659 | [
"MIT"
] | null | null | null | server/main.cpp | kaiqiangren/webrtc | f898ba54714a58d387282b4a9bbd4ab2b9bc7659 | [
"MIT"
] | null | null | null | #include <iostream>
#include "server.h"
int main (int argc, char* argv[]){
avdance::Server* server = new avdance::Server();
if (server)
{
server->run();
}
return 0;
}; | 16.545455 | 50 | 0.604396 | kaiqiangren |
0d502432df28a49db97ff275ca967b2453e10b19 | 765 | cpp | C++ | tools/WmarkEditor/src/viewmodel/commands/ReplaceCommand.cpp | meilj/CppTS | 00b077c264a7c32fcbd416f73c4bdc2e0027afd8 | [
"BSD-2-Clause"
] | null | null | null | tools/WmarkEditor/src/viewmodel/commands/ReplaceCommand.cpp | meilj/CppTS | 00b077c264a7c32fcbd416f73c4bdc2e0027afd8 | [
"BSD-2-Clause"
] | null | null | null | tools/WmarkEditor/src/viewmodel/commands/ReplaceCommand.cpp | meilj/CppTS | 00b077c264a7c32fcbd416f73c4bdc2e0027afd8 | [
"BSD-2-Clause"
] | null | null | null | /*
** Mei Lijuan, 2019
*/
////////////////////////////////////////////////////////////////////////////////
#include "precomp.h"
#include "../../model/TextModel.h"
#include "../TextViewModel.h"
////////////////////////////////////////////////////////////////////////////////
namespace CSL {
////////////... | 26.37931 | 82 | 0.282353 | meilj |
0d553ac226f783748c49c6bfb439bac18b562242 | 3,078 | cpp | C++ | demos/FileInstrument.cpp | michaelwillis/sfizz | 0461f6e5e288da71aeccf7b7dfd71302bf0ba175 | [
"BSD-2-Clause"
] | 281 | 2019-06-06T05:58:59.000Z | 2022-03-06T12:20:09.000Z | demos/FileInstrument.cpp | michaelwillis/sfizz | 0461f6e5e288da71aeccf7b7dfd71302bf0ba175 | [
"BSD-2-Clause"
] | 590 | 2019-09-22T00:26:10.000Z | 2022-03-31T19:21:58.000Z | demos/FileInstrument.cpp | michaelwillis/sfizz | 0461f6e5e288da71aeccf7b7dfd71302bf0ba175 | [
"BSD-2-Clause"
] | 44 | 2019-10-08T08:24:20.000Z | 2022-02-26T04:21:44.000Z | // SPDX-License-Identifier: BSD-2-Clause
// This code is part of the sfizz library and is licensed under a BSD 2-clause
// license. You should have receive a LICENSE.md file along with the code.
// If not, contact the sfizz maintainers at https://github.com/sfztools/sfizz
#include "sfizz/FileMetadata.h"
#include "abs... | 26.534483 | 78 | 0.561079 | michaelwillis |
0d5d22d011900ffe9b83e68d7fcc64c80ca902cb | 259 | cpp | C++ | Benchine/BenchineCore/Core/BaseGame.cpp | DatTestBench/Benchine | 7f2034dc9d486f8eae39cb5bf917012d3b234955 | [
"MIT"
] | null | null | null | Benchine/BenchineCore/Core/BaseGame.cpp | DatTestBench/Benchine | 7f2034dc9d486f8eae39cb5bf917012d3b234955 | [
"MIT"
] | null | null | null | Benchine/BenchineCore/Core/BaseGame.cpp | DatTestBench/Benchine | 7f2034dc9d486f8eae39cb5bf917012d3b234955 | [
"MIT"
] | null | null | null | #include "BenchinePCH.h"
#include "Core/BaseGame.h"
void BaseGame::BaseInitialize()
{
// User Definined Initialize
Initialize();
}
void BaseGame::BaseUpdate(const float dT)
{
SceneManager::GetInstance()->Update(dT);
// User Defined Update
Update(dT);
} | 17.266667 | 41 | 0.725869 | DatTestBench |
0d5d8f71c15c0ac407463b55c1f1a842b07ffcfa | 1,687 | cpp | C++ | Stack/ImplementStackusingQueues_225.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | Stack/ImplementStackusingQueues_225.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | Stack/ImplementStackusingQueues_225.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | /* ***********************************************************************
> File Name: ImplementStackusingQueues_225.cpp
> Author: zzy
> Mail: 942744575@qq.com
> Created Time: Mon 08 Jul 2019 05:14:47 PM CST
********************************************************************** */
#include <stdio.h>
#incl... | 17.572917 | 74 | 0.559573 | obviouskkk |
0d6185bf85c772eee717b669d205d60c550916cf | 683 | cpp | C++ | Codeforces/1409/D.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | 2 | 2021-09-14T15:57:24.000Z | 2022-03-18T14:11:04.000Z | Codeforces/1409/D.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | null | null | null | Codeforces/1409/D.cpp | noobie7/Codes | 4d8265f4b7042bd7e8c0e0402d417c7e160ae6d4 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int sum(ll n){
int res = 0;
while(n){
res+= n%10;
n/=10;
}
return res;
}
int main(){
int t; cin>>t;
while(t--){
ll n; cin>>n;
int s; cin>>s;
if(sum(n)<=s){
cout<<0<<endl;
... | 18.972222 | 40 | 0.358712 | noobie7 |
0d66d7240298fc05d53ee3e0e879d17a5781870f | 1,202 | cpp | C++ | data_structures/disjoint_union.cpp | vedantiitkgp/CP-Algorithms | 81d1a64624f8b0e918b7d5b7f8dc1e2cdcbc88b4 | [
"MIT"
] | null | null | null | data_structures/disjoint_union.cpp | vedantiitkgp/CP-Algorithms | 81d1a64624f8b0e918b7d5b7f8dc1e2cdcbc88b4 | [
"MIT"
] | null | null | null | data_structures/disjoint_union.cpp | vedantiitkgp/CP-Algorithms | 81d1a64624f8b0e918b7d5b7f8dc1e2cdcbc88b4 | [
"MIT"
] | null | null | null | // https://cp-algorithms.com/data_structures/disjoint_set_union.html
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<string, string> pss;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<pii> vii;
typedef vector<ll> v... | 21.087719 | 82 | 0.647255 | vedantiitkgp |
0d6a1c5c4ca0b2f1b23eb3d286c935b6eadc9bde | 6,013 | cpp | C++ | ql/experimental/preexperimental/oneFactorGauss.cpp | universe1987/QuantLib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 4 | 2016-03-28T15:05:23.000Z | 2020-02-17T23:05:57.000Z | ql/experimental/preexperimental/oneFactorGauss.cpp | universe1987/QuantLib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 1 | 2015-02-02T20:32:43.000Z | 2015-02-02T20:32:43.000Z | ql/experimental/preexperimental/oneFactorGauss.cpp | pcaspers/quantlib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 10 | 2015-01-26T14:50:24.000Z | 2015-10-23T07:41:30.000Z | #include <oneFactorGauss.hpp>
using namespace std;
namespace QuantLib {
OneFactorGauss::OneFactorGauss() {
nd_ = NormalDistribution();
cnd_ = CumulativeNormalDistribution();
icn_ = InverseCumulativeNormal();
gh_= new GaussHermiteIntegration(64);
}
boost::shared_ptr<KernelDensity> OneFactorGauss::empir... | 32.502703 | 188 | 0.695493 | universe1987 |
0d729f3d3e2f57eec981b42bebd09c63a0404270 | 1,004 | cpp | C++ | chapter13/ex03_arrow.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 124 | 2018-06-23T10:16:56.000Z | 2022-03-19T15:16:12.000Z | chapter13/ex03_arrow.cpp | therootfolder/stroustrup-ppp | b1e936c9a67b9205fdc9712c42496b45200514e2 | [
"MIT"
] | 23 | 2018-02-08T20:57:46.000Z | 2021-10-08T13:58:29.000Z | chapter13/ex03_arrow.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 65 | 2019-05-27T03:05:56.000Z | 2022-03-26T03:43:05.000Z | #include "../GUI/Simple_window.h"
#include "../GUI/Graph.h"
#include "./Arrow.h"
#include <string>
#include <iostream>
using namespace Graph_lib;
int main()
try {
// Window
const Point tl {100, 100};
Simple_window win {tl, 600, 400, "Chapter 12 Ex 3"};
Arrow a1 {Point{100, 100}, Point{250, 200}};
... | 22.818182 | 169 | 0.605578 | ClassAteam |
0d730f69c1a1a9e1651ac8a1ba1a5cb1be303c01 | 597 | cpp | C++ | hackerrank.com/crush/main.cpp | bepec/challenge | cf2d4fcf11a9a1724b6f620fdda86afbb1ba9ddc | [
"MIT"
] | null | null | null | hackerrank.com/crush/main.cpp | bepec/challenge | cf2d4fcf11a9a1724b6f620fdda86afbb1ba9ddc | [
"MIT"
] | null | null | null | hackerrank.com/crush/main.cpp | bepec/challenge | cf2d4fcf11a9a1724b6f620fdda86afbb1ba9ddc | [
"MIT"
] | null | null | null | #include <cstdio>
using namespace std;
#define out if(1)cout
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))
#define abs(a) (((a)<0)?(-(a)):(a))
static const int MAXN = 10000001;
typedef long long int i64;
static i64 ar[MAXN];
int main()
{
ios::sync_with_stdio(false);
int N, M;
scanf... | 16.135135 | 37 | 0.499162 | bepec |
0d80b0bae4b066968105b537e4245878c1aee91a | 3,156 | hpp | C++ | include/GTGE/Physics/CollisionShapeTypes.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 31 | 2015-03-19T08:44:48.000Z | 2021-12-15T20:52:31.000Z | include/GTGE/Physics/CollisionShapeTypes.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 19 | 2015-07-09T09:02:44.000Z | 2016-06-09T03:51:03.000Z | include/GTGE/Physics/CollisionShapeTypes.hpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 3 | 2017-10-04T23:38:18.000Z | 2022-03-07T08:27:13.000Z | // Copyright (C) 2011 - 2014 David Reid. See included LICENCE.
#ifndef GT_CollisionShapeTypes
#define GT_CollisionShapeTypes
#include <BulletCollision/CollisionShapes/btCylinderShape.h>
#include <BulletCollision/CollisionShapes/btCapsuleShape.h>
namespace GT
{
enum CollisionShapeType
{
CollisionShape... | 29.495327 | 98 | 0.498733 | mackron |
0d82f71a6ee579f7c7271823129651b733a44cf2 | 203 | hpp | C++ | Paramedic.hpp | liorls/wargame-a | b4e2f65259defe5664dfc0f83294269beb18fea0 | [
"MIT"
] | null | null | null | Paramedic.hpp | liorls/wargame-a | b4e2f65259defe5664dfc0f83294269beb18fea0 | [
"MIT"
] | null | null | null | Paramedic.hpp | liorls/wargame-a | b4e2f65259defe5664dfc0f83294269beb18fea0 | [
"MIT"
] | null | null | null | #pragma once
#include "Soldier.hpp"
class Paramedic : public Soldier {
public:
Paramedic(int p): Soldier(p, 100, 0, 100) {}
void attack(vector<vector<Soldier*>> &b, pair<int,int> location);
}; | 20.3 | 69 | 0.669951 | liorls |
0d877b6c00c091ecbac688cf441eab948af5189c | 237 | hpp | C++ | src/lattice_boltzmann/LBUtils/Stencil.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | src/lattice_boltzmann/LBUtils/Stencil.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | src/lattice_boltzmann/LBUtils/Stencil.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | # ifndef STENCIL_H
# define STENCIL_H
# include <vector>
# include <string>
struct Stencil {
int nn;
std::vector<int> exi,eyi,ezi;
std::vector<double> ex,ey,ez,wa;
void setStencil(const std::string);
};
# endif // STENCIL_H
| 11.85 | 36 | 0.675105 | flowzario |
0d891d182cebe76956d01f5c436f5b1cb77a5a8d | 11,123 | cpp | C++ | ModelGenerator/src/ModelGenerator.cpp | adam-lafontaine/AugmentedAI | a4736ce59963ee86313a5936aaf09f0f659e4184 | [
"MIT"
] | null | null | null | ModelGenerator/src/ModelGenerator.cpp | adam-lafontaine/AugmentedAI | a4736ce59963ee86313a5936aaf09f0f659e4184 | [
"MIT"
] | null | null | null | ModelGenerator/src/ModelGenerator.cpp | adam-lafontaine/AugmentedAI | a4736ce59963ee86313a5936aaf09f0f659e4184 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2021 Adam Lafontaine
*/
#include "ModelGenerator.hpp"
#include "pixel_conversion.hpp"
#include "cluster_distance.hpp"
#include "../../utils/cluster_config.hpp"
#include "../../utils/dirhelper.hpp"
#include "../../DataAdaptor/src/data_adaptor.hpp"
#include <algorithm>
#include <numeric>
#include <fu... | 24.286026 | 137 | 0.685427 | adam-lafontaine |
0d8a3cfa3854dfce410e87e120e2042b9ee5860e | 7,571 | cc | C++ | server/src/JsonNode.cc | shawndfl/http_server | f4a0e13146ca95cc9f7c4e1145fbc52bfd45a8a0 | [
"MIT"
] | null | null | null | server/src/JsonNode.cc | shawndfl/http_server | f4a0e13146ca95cc9f7c4e1145fbc52bfd45a8a0 | [
"MIT"
] | null | null | null | server/src/JsonNode.cc | shawndfl/http_server | f4a0e13146ca95cc9f7c4e1145fbc52bfd45a8a0 | [
"MIT"
] | null | null | null | /*
* JsonNode.cc
*
* Created on: Jun 1, 2020
* Author: sdady
*/
#include "JsonNode.h"
namespace ehs {
/*************************************************/
JsonNode::JsonNode() {
type_ = JsonNull;
valueNum_ = 0;
}
/*************************************************/
JsonNode::~JsonNode() {
}
/******... | 24.188498 | 90 | 0.439704 | shawndfl |
0d8cd40a38502f306fcf411fca8525436a599e58 | 5,382 | cpp | C++ | src/UDPSocket.cpp | MaoChen1980/wrighteaglebase | 12b29e5d6d9ada4dd98ec288f7cb6fb845596717 | [
"BSD-2-Clause"
] | 86 | 2016-06-16T05:10:57.000Z | 2022-03-01T08:02:43.000Z | src/UDPSocket.cpp | rc2dcc/wrighteaglebase | f6be453447b657fa4c7417b5b62b5ea2067409bc | [
"BSD-2-Clause"
] | 1 | 2020-03-04T16:59:58.000Z | 2020-03-04T16:59:58.000Z | src/UDPSocket.cpp | rc2dcc/wrighteaglebase | f6be453447b657fa4c7417b5b62b5ea2067409bc | [
"BSD-2-Clause"
] | 43 | 2016-07-08T03:19:19.000Z | 2022-01-12T12:28:44.000Z | /************************************************************************************
* WrightEagle (Soccer Simulation League 2D) *
* BASE SOURCE CODE RELEASE 2016 *
* Copyright (c) 1998-2016 WrightEagle 2D Soccer Simulation Te... | 34.722581 | 86 | 0.533631 | MaoChen1980 |
0d8e59b76d9e6fc939bee9474ebe232cef51a86f | 1,088 | cpp | C++ | src/backlight_set.cpp | klokik/JemUtilities | 21dd11aae53557109e1b1613c2343c8a1eb5d165 | [
"MIT"
] | 1 | 2021-01-13T07:57:05.000Z | 2021-01-13T07:57:05.000Z | src/backlight_set.cpp | klokik/JemUtilities | 21dd11aae53557109e1b1613c2343c8a1eb5d165 | [
"MIT"
] | null | null | null | src/backlight_set.cpp | klokik/JemUtilities | 21dd11aae53557109e1b1613c2343c8a1eb5d165 | [
"MIT"
] | null | null | null | #include <cstring>
#include <iostream>
#include <fstream>
#include <string>
#include <sys/types.h>
#include <unistd.h>
int main(int argc, char **argv) {
if (argc != 2) {
std::cout << "Invalid parameters" << std::endl;
return 0;
}
int delta = atoi(argv[1]);
int max_level = 7;
int cur_level = 3;
if (setui... | 18.758621 | 83 | 0.629596 | klokik |
0d8f9eaa121e233592aaf3d98c930b091a2cf348 | 924 | hpp | C++ | include/platform/internal/list/top_type.hpp | vladankor/types_library | 9f0f64946b621c447c5f72a6df34ced9438b1ff2 | [
"MIT"
] | null | null | null | include/platform/internal/list/top_type.hpp | vladankor/types_library | 9f0f64946b621c447c5f72a6df34ced9438b1ff2 | [
"MIT"
] | null | null | null | include/platform/internal/list/top_type.hpp | vladankor/types_library | 9f0f64946b621c447c5f72a6df34ced9438b1ff2 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------
// Copyright (C) 2019 Korobov Vladislav
// ----------------------------------------------------------------------------
#pragma once
//- platform ------------------------------------------------------------------
#include <platform/intern... | 28.875 | 79 | 0.351732 | vladankor |
0d964f38068ef7aecaf433a374b4bd07436db0ab | 4,857 | cc | C++ | lib/pods-trie-builder.cc | rockeet/taiju | 90f152d5e66b1741d35b9d871f7a5db68699d48d | [
"BSD-3-Clause"
] | null | null | null | lib/pods-trie-builder.cc | rockeet/taiju | 90f152d5e66b1741d35b9d871f7a5db68699d48d | [
"BSD-3-Clause"
] | null | null | null | lib/pods-trie-builder.cc | rockeet/taiju | 90f152d5e66b1741d35b9d871f7a5db68699d48d | [
"BSD-3-Clause"
] | null | null | null | #include <taiju/pods-trie-builder.h>
#include <algorithm>
namespace taiju {
PodsTrieBuilder::PodsTrieBuilder() : node_order_(DEFAULT_NODE_ORDER),
num_keys_(0), child_diffs_(), has_siblings_(), labels_(),
is_terminals_(), inters_(), finished_(false) {}
UInt64 PodsTrieBuilder::size() const
{
return sizeof(TrieType... | 21.977376 | 73 | 0.704756 | rockeet |
0d98aabd50b6a9bbb935961018a67849b610b39d | 10,763 | cpp | C++ | Bicycle.cpp | MKoi/BicycleAdventure | 238464e1546edd332522e375e92c022ec0174dd9 | [
"MIT"
] | null | null | null | Bicycle.cpp | MKoi/BicycleAdventure | 238464e1546edd332522e375e92c022ec0174dd9 | [
"MIT"
] | null | null | null | Bicycle.cpp | MKoi/BicycleAdventure | 238464e1546edd332522e375e92c022ec0174dd9 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Bicycle.h"
#include "GameArea.h"
#include <vector>
using namespace DirectX;
using namespace std;
using namespace Windows::Storage;
Bicycle::Bicycle(b2World* world, const b2Vec2& pos, const Physics::Parameters& params, GameAudio* audio) :
m_wheelRadius(0.5f), m_hubRadius(m_wheelRa... | 31.017291 | 118 | 0.720524 | MKoi |
0d98ab6daf849b0743bdc26a428e0712ecb22227 | 2,111 | cpp | C++ | src/implementation/backends/DirectX11/DirectX11_Renderer.cpp | LarsHagemann/OrbitEngine | 33e01efaac617c53a701f01729581932fc81e8bf | [
"MIT"
] | null | null | null | src/implementation/backends/DirectX11/DirectX11_Renderer.cpp | LarsHagemann/OrbitEngine | 33e01efaac617c53a701f01729581932fc81e8bf | [
"MIT"
] | 2 | 2022-01-18T21:31:01.000Z | 2022-01-20T21:02:09.000Z | src/implementation/backends/DirectX11/DirectX11_Renderer.cpp | LarsHagemann/OrbitEngine | 33e01efaac617c53a701f01729581932fc81e8bf | [
"MIT"
] | null | null | null | #ifdef ORBIT_DIRECTX_11
#include "implementation/backends/DirectX11/DirectX11_Renderer.hpp"
#include "implementation/engine/Engine.hpp"
#include "implementation/backends/impl/PipelineStateImpl.hpp"
#include "interfaces/rendering/Material.hpp"
namespace orbit
{
void DirectX11Renderer::Draw(const Submesh& submesh,... | 31.984848 | 131 | 0.690668 | LarsHagemann |
0d99559cc43104cf0ac5c62438a402e35ae4156f | 278 | hpp | C++ | include/toy/parser/Export.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 4 | 2017-07-06T22:18:41.000Z | 2021-05-24T21:28:37.000Z | include/toy/parser/Export.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | null | null | null | include/toy/parser/Export.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 1 | 2020-08-02T13:00:38.000Z | 2020-08-02T13:00:38.000Z | #pragma once
#include "toy/CompilerConfig.hpp"
#if defined(TOY_WINDOWS) && TOY_OPTION_DYNAMIC_LIBRARY
#ifdef TOY_EXPORT_PARSER
#define TOY_API_PARSER __declspec(dllexport)
#else
#define TOY_API_PARSER __declspec(dllimport)
#endif
#else
#define TOY_API_PARSER
#endif
| 17.375 | 54 | 0.794964 | ToyAuthor |
0d9d85336096deb9daab6754a5cbf138af6dbb34 | 180 | cpp | C++ | bin/test-libsept/main.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | bin/test-libsept/main.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | bin/test-libsept/main.cpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | // 2020.03.13 - Victor Dods
#include <lvd/test.hpp>
int main (int argc, char **argv) {
return lvd::test::basic_test_main("septtest -- unit tests for libsept", argc, argv);
}
| 22.5 | 88 | 0.666667 | vdods |
d3ffe19f4e5d73c8e68d7f80abde58c3135ea1df | 4,875 | cpp | C++ | TopCoderSRM/SRM603/GraphWalkWithProbabilities.cpp | zombiecry/AlgorithmPractice | f42933883bd62a86aeef9740356f5010c6c9bebf | [
"MIT"
] | null | null | null | TopCoderSRM/SRM603/GraphWalkWithProbabilities.cpp | zombiecry/AlgorithmPractice | f42933883bd62a86aeef9740356f5010c6c9bebf | [
"MIT"
] | null | null | null | TopCoderSRM/SRM603/GraphWalkWithProbabilities.cpp | zombiecry/AlgorithmPractice | f42933883bd62a86aeef9740356f5010c6c9bebf | [
"MIT"
] | null | null | null | // BEGIN CUT HERE
// END CUT HERE
#line 5 "GraphWalkWithProbabilities.cpp"
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <... | 47.794118 | 400 | 0.59959 | zombiecry |
31050df677ea032ac1c4b7779ecc6c6aa402a152 | 1,290 | cpp | C++ | src/row.cpp | dashboardvision/aspose-php | e2931773cbb1f47ae4086d632faa3012bd952b99 | [
"MIT"
] | null | null | null | src/row.cpp | dashboardvision/aspose-php | e2931773cbb1f47ae4086d632faa3012bd952b99 | [
"MIT"
] | null | null | null | src/row.cpp | dashboardvision/aspose-php | e2931773cbb1f47ae4086d632faa3012bd952b99 | [
"MIT"
] | 1 | 2021-06-23T08:02:03.000Z | 2021-06-23T08:02:03.000Z | #include "../include/aspose.h"
#include "../include/collection.h"
#include "../include/cell.h"
#include "../include/row.h"
#include <phpcpp.h>
using namespace Aspose::Slides;
using namespace System;
using namespace std;
using namespace Aspose::Slides;
namespace AsposePhp {
/**
* @brief Desc.
*
... | 25.294118 | 117 | 0.608527 | dashboardvision |
310a0721b4f1babad3b580d662ee60138e02bbe8 | 4,085 | cc | C++ | sample/src/Program.cc | pengrui2009/aliyun-oss-cpp-sdk-windows | db3b42fb949d38c577876bcc8d65cd67e31d6dcd | [
"Apache-2.0"
] | null | null | null | sample/src/Program.cc | pengrui2009/aliyun-oss-cpp-sdk-windows | db3b42fb949d38c577876bcc8d65cd67e31d6dcd | [
"Apache-2.0"
] | null | null | null | sample/src/Program.cc | pengrui2009/aliyun-oss-cpp-sdk-windows | db3b42fb949d38c577876bcc8d65cd67e31d6dcd | [
"Apache-2.0"
] | null | null | null | #include <alibabacloud/oss/OssClient.h>
#include <iostream>
#include "Config.h"
#if !defined(OSS_DISABLE_BUCKET)
#include "service/ServiceSample.h"
#include "bucket/BucketSample.h"
#endif
#include "object/ObjectSample.h"
#include "presignedurl/PresignedUrlSample.h"
#if !defined(OSS_DISABLE_LIVECHANNEL)
#include "Liv... | 29.388489 | 85 | 0.761812 | pengrui2009 |
310d40b2fa9336c32c12b3962ecc8dc38036cdaa | 595 | cpp | C++ | src/Bubblewrap/Render/BgfxFont.cpp | bubblewrap-engine/bubblewrap_bfxr | dd41c8f2f43ce79c25ede39c3376292e83257d21 | [
"MIT"
] | null | null | null | src/Bubblewrap/Render/BgfxFont.cpp | bubblewrap-engine/bubblewrap_bfxr | dd41c8f2f43ce79c25ede39c3376292e83257d21 | [
"MIT"
] | null | null | null | src/Bubblewrap/Render/BgfxFont.cpp | bubblewrap-engine/bubblewrap_bfxr | dd41c8f2f43ce79c25ede39c3376292e83257d21 | [
"MIT"
] | null | null | null | #include "Bubblewrap/Render/BgfxFont.hpp"
#include "Bubblewrap/Base/Entity.hpp"
#include "Bubblewrap/Base/Base.hpp"
#include "Bubblewrap/Base/BgfxPhysFsInputStream.hpp"
namespace Bubblewrap
{
namespace Render
{
BgfxFont::BgfxFont()
{
}
void BgfxFont::Initialise( Json::Value Params )
{
Font::Initialise( ... | 15.25641 | 59 | 0.657143 | bubblewrap-engine |
310e6d46935b569640730afeb553dbc4f447fcd2 | 5,316 | hxx | C++ | Modules/Search/binary_log.hxx | Hurna/Hurna-Lib | 61c267fc6ccf617e92560a84800f6a719cc5c6c8 | [
"MIT"
] | 2 | 2019-03-29T21:23:02.000Z | 2019-04-02T19:13:32.000Z | Modules/Search/binary_log.hxx | Hurna/Hurna-Lib | 61c267fc6ccf617e92560a84800f6a719cc5c6c8 | [
"MIT"
] | null | null | null | Modules/Search/binary_log.hxx | Hurna/Hurna-Lib | 61c267fc6ccf617e92560a84800f6a719cc5c6c8 | [
"MIT"
] | null | null | null | /*===========================================================================================================
*
* HUL - Hurna Lib
*
* Copyright (c) Michael Jeulin-Lagarrigue
*
* Licensed under the MIT License, you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... | 31.832335 | 109 | 0.571482 | Hurna |
31125abc4fb8d5845287c0c3750e9053c61bd4b7 | 4,869 | cpp | C++ | Lib-ZeroG/src/ZeroG/metal/MetalCommandList.cpp | PetorSFZ/ZeroG | 0e3330c2877c3dd840f2a7864b5767d53a92b97d | [
"Zlib"
] | null | null | null | Lib-ZeroG/src/ZeroG/metal/MetalCommandList.cpp | PetorSFZ/ZeroG | 0e3330c2877c3dd840f2a7864b5767d53a92b97d | [
"Zlib"
] | null | null | null | Lib-ZeroG/src/ZeroG/metal/MetalCommandList.cpp | PetorSFZ/ZeroG | 0e3330c2877c3dd840f2a7864b5767d53a92b97d | [
"Zlib"
] | null | null | null | // Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se)
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for ... | 25.761905 | 99 | 0.783528 | PetorSFZ |
3112732b8811a4eeae7b5b91902208b0d3af7c6f | 1,933 | cpp | C++ | listas_PO/lista_1_1/src/Data.cpp | Tassany/Pesquisa_Operacional | 93890fef63dfd48a0e7867bf681ec01e05560fdc | [
"MIT"
] | null | null | null | listas_PO/lista_1_1/src/Data.cpp | Tassany/Pesquisa_Operacional | 93890fef63dfd48a0e7867bf681ec01e05560fdc | [
"MIT"
] | null | null | null | listas_PO/lista_1_1/src/Data.cpp | Tassany/Pesquisa_Operacional | 93890fef63dfd48a0e7867bf681ec01e05560fdc | [
"MIT"
] | null | null | null | #include "../include/Data.hpp"
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
Data::Data(char* filePath)
{
FILE* f = fopen(filePath,"r");
if(fscanf(f, "%d", &numCulturas) != 1)
{
printf("Problem while reading instance.1\n");
//exit(1);
}
//lendo limite do armazem ... | 19.72449 | 57 | 0.561304 | Tassany |
3113c3e5f164969cbf8a0db598b70c326f61d0e8 | 946 | cpp | C++ | src/homework/tic_tac_toe/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-LeytonLL | 0c544a3fa189dec5da827efe70fccb9f395cbe7d | [
"MIT"
] | null | null | null | src/homework/tic_tac_toe/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-LeytonLL | 0c544a3fa189dec5da827efe70fccb9f395cbe7d | [
"MIT"
] | null | null | null | src/homework/tic_tac_toe/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-LeytonLL | 0c544a3fa189dec5da827efe70fccb9f395cbe7d | [
"MIT"
] | null | null | null |
#include "tic_tac_toe_manager.h"
#include <tic_tac_toe_3.h>
#include <tic_tac_toe_4.h>
#include<iostream>
#include<string>
using std::cout;
using std::cin;
using std::string;
int main()
//tic TacToe3
{
auto response = 'y';
unique_ptr<TicTacToeManager> manager = std::make_unique<TicTacToeManager>();
string playe... | 14.119403 | 77 | 0.602537 | acc-cosc-1337-fall-2019 |
311bf9b19e24a8ed6bd79eebcea947eabb5ad94f | 4,237 | cpp | C++ | src/prim/hldr.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null | src/prim/hldr.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null | src/prim/hldr.cpp | 311Volt/axxegro | 61d7a1fb48f9bb581e0f4171d58499cf8c543728 | [
"MIT"
] | null | null | null | #include <axxegro/prim/hldr.hpp>
#include <allegro5/allegro.h>
#include <allegro5/allegro_primitives.h>
void al::DrawLine(
const al::Coord<>& a,
const al::Coord<>& b,
const Color& color,
float thickness
)
{
al_draw_line(a.x, a.y, b.x, b.y, color, thickness);
}
void al::DrawTriangle(
const a... | 17.654167 | 74 | 0.631579 | 311Volt |
311f77ac5a87b6e4a5958b9324f13d2d3fd0905e | 3,768 | hpp | C++ | include/gl/tone_mapping/segmentation_tmo_approx.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/gl/tone_mapping/segmentation_tmo_approx.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/gl/tone_mapping/segmentation_tmo_approx.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | /*
PICCANTE
The hottest HDR imaging library!
http://vcg.isti.cnr.it/piccante
Copyright (C) 2014
Visual Computing Laboratory - ISTI CNR
http://vcg.isti.cnr.it
First author: Francesco Banterle
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed ... | 22.97561 | 92 | 0.568737 | ecarpita93 |
3120a5fd12929fd16cd8a0b29840088e4c5070a4 | 5,544 | hpp | C++ | libcore/src/network/ASIOConnectAndHandshake.hpp | ericruth/sirikata | 9b4cad53b9bef46d318d52581d489d691b6f9e58 | [
"BSD-3-Clause"
] | 1 | 2016-05-09T11:45:31.000Z | 2016-05-09T11:45:31.000Z | libcore/src/network/ASIOConnectAndHandshake.hpp | mullwaden/sirikata | bedcf22c97f733d82bffcd787f21c25b4e6710ed | [
"BSD-3-Clause"
] | null | null | null | libcore/src/network/ASIOConnectAndHandshake.hpp | mullwaden/sirikata | bedcf22c97f733d82bffcd787f21c25b4e6710ed | [
"BSD-3-Clause"
] | null | null | null | /* Sirikata Network Utilities
* ASIOConnectAndHandshake.hpp
*
* Copyright (c) 2009, Daniel Reiter Horn
* 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 sou... | 56.571429 | 161 | 0.696789 | ericruth |
3120b4168fba48e658841be45de6c8c54eaaa1f9 | 733 | cpp | C++ | code-examples/lab_k28c_15_09_20_oop.cpp | kzhereb/knu-ips-ooop-2020-2021 | 777b4a847a537510048fd582eda0816ce05db4b5 | [
"MIT"
] | null | null | null | code-examples/lab_k28c_15_09_20_oop.cpp | kzhereb/knu-ips-ooop-2020-2021 | 777b4a847a537510048fd582eda0816ce05db4b5 | [
"MIT"
] | 34 | 2021-03-25T08:28:26.000Z | 2021-05-20T13:12:48.000Z | code-examples/lab_k28c_15_09_20_oop.cpp | kzhereb/knu-ips-ooop-2020-2021 | 777b4a847a537510048fd582eda0816ce05db4b5 | [
"MIT"
] | 1 | 2020-09-28T12:58:26.000Z | 2020-09-28T12:58:26.000Z | /*
* lab_k28c_15_09_20_oop.cpp
*
* Created on: Sep 15, 2020
* Author: KZ
*/
#include "doctest.h"
#include <string>
class Human {
private:
double height; // in cm
double weight; // in kg
std::string name;
public:
Human(double height, double weight, std::string name): height{height}, ... | 20.942857 | 103 | 0.645293 | kzhereb |
3124ad00a21443fa67c5c606c398bfe5cd9d957c | 7,321 | cpp | C++ | Libraries/RobsJuceModules/jura_framework/gui/panels/jura_WaveformDisplay.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Libraries/RobsJuceModules/jura_framework/gui/panels/jura_WaveformDisplay.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Libraries/RobsJuceModules/jura_framework/gui/panels/jura_WaveformDisplay.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z |
//-------------------------------------------------------------------------------------------------
// construction/destruction:
WaveformDisplay::WaveformDisplay(AudioFileBuffer *newBuffer)
: InteractiveCoordinateSystem("WaveformDisplay"), AudioFileBufferUser(newBuffer)
{
ScopedLock pointerLock(audioFileBufferPoint... | 31.692641 | 102 | 0.657014 | RobinSchmidt |
3124b9703540d2b0d976ae3e7c1f2238c0a049d9 | 630 | cpp | C++ | LeetCode/1000/812.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/1000/812.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/1000/812.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int cross(int x1, int y1, int x2, int y2) { return x1 * y2 - x2 * y1; }
double largestTriangleArea(vector<vector<int>>& points) {
double res = 0;
for (int i = 0; i < points.size(); i++) {
for (int j = i + 1; j < points.size(); j++) {
for (int k = j + 1; k < points.siz... | 33.157895 | 73 | 0.474603 | K-ona |
3125fd3d0369289349e3de0ea4dde1efd2eac79b | 15,526 | cpp | C++ | Source/Lib/Uncompressed/WAV/WAV.cpp | g-maxime/RAWCooked | 6b2ef51208a6b23822560112b024bdc2d3f595b0 | [
"BSD-2-Clause"
] | null | null | null | Source/Lib/Uncompressed/WAV/WAV.cpp | g-maxime/RAWCooked | 6b2ef51208a6b23822560112b024bdc2d3f595b0 | [
"BSD-2-Clause"
] | null | null | null | Source/Lib/Uncompressed/WAV/WAV.cpp | g-maxime/RAWCooked | 6b2ef51208a6b23822560112b024bdc2d3f595b0 | [
"BSD-2-Clause"
] | null | null | null | /* Copyright (c) MediaArea.net SARL & AV Preservation by reto.ch.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//---------------------------------------------------------------------------
#include "Lib/Unco... | 30.265107 | 118 | 0.51797 | g-maxime |
312791034812c6809945ca4b7f033363c0df0ae7 | 2,756 | cpp | C++ | 18_lab/main.cpp | TimmiJK/2021-spring-polytech-cpp | 1e957a2619e5c61f1dc1b7941ffae5d70b86870c | [
"MIT"
] | 6 | 2021-02-08T15:26:20.000Z | 2021-03-22T10:19:07.000Z | 18_lab/main.cpp | TimmiJK/2021-spring-polytech-cpp | 1e957a2619e5c61f1dc1b7941ffae5d70b86870c | [
"MIT"
] | 11 | 2021-02-09T06:41:50.000Z | 2021-04-18T08:36:32.000Z | 18_lab/main.cpp | TimmiJK/2021-spring-polytech-cpp | 1e957a2619e5c61f1dc1b7941ffae5d70b86870c | [
"MIT"
] | 48 | 2021-02-03T18:28:55.000Z | 2021-05-24T18:54:14.000Z | // Напишите программу, используя технику TDD. Реализуйте калькулятор,
// поддерживающий операции: +, -, *, /. Проверьте тестами свойства операций
// и законы элементарной алгебры.
#include <cassert>
enum class Command {
Add,
Sub,
Mul,
Div
};
double calc(enum class Command operation, double x, double ... | 30.285714 | 91 | 0.527213 | TimmiJK |
3129be97eea2a7d5b651ef849823a159f0d5711b | 5,935 | cpp | C++ | SourceFile/SearchSystem.cpp | hsu0602/oop_final_project | 53feacddaf7c5abb0b09c83ba9390f047b8fb5c8 | [
"MIT"
] | null | null | null | SourceFile/SearchSystem.cpp | hsu0602/oop_final_project | 53feacddaf7c5abb0b09c83ba9390f047b8fb5c8 | [
"MIT"
] | null | null | null | SourceFile/SearchSystem.cpp | hsu0602/oop_final_project | 53feacddaf7c5abb0b09c83ba9390f047b8fb5c8 | [
"MIT"
] | null | null | null | #include <iostream>
#include "../HeaderFile/SearchSystem.h"
#include "../HeaderFile/FileConnector.h"
#include "../HeaderFile/ConvertorOfTimeAndString.h"
//return the goodInventory of tech input id
GoodInventory SearchSystem::findInventoryById(int input_id){
FileConnector file("Inventory.csv");
file.search("id"... | 35.327381 | 152 | 0.648526 | hsu0602 |
312a3aa1d9be22370491ec2085c1fd6baa85b9df | 1,019 | cpp | C++ | Paladin/Templates/Sample HaikuFortune/App.cpp | humdingerb/Paladin | ef42b060656833f2887241c809690b263ddf2852 | [
"MIT"
] | 45 | 2018-10-05T21:50:17.000Z | 2022-01-31T11:52:59.000Z | Paladin/Templates/Sample HaikuFortune/App.cpp | humdingerb/Paladin | ef42b060656833f2887241c809690b263ddf2852 | [
"MIT"
] | 163 | 2018-10-01T23:52:12.000Z | 2022-02-15T18:05:58.000Z | Paladin/Templates/Sample HaikuFortune/App.cpp | humdingerb/Paladin | ef42b060656833f2887241c809690b263ddf2852 | [
"MIT"
] | 9 | 2018-10-01T23:48:02.000Z | 2022-01-23T21:28:52.000Z | #include "App.h"
#include <FindDirectory.h>
#include <OS.h>
#include <Path.h>
#include <stdlib.h>
#include "FortuneFunctions.h"
#include "MainWindow.h"
App::App(void)
: BApplication("application/x-vnd.test-HaikuFortune")
{
BPath path;
// We have to use an #ifdef here because the fortune files under R5
// and ... | 20.795918 | 73 | 0.701668 | humdingerb |
312b59b41269d179c28f1161a79d007df5d067aa | 710 | hpp | C++ | external/boost_1_60_0/qsboost/config/abi_prefix.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/config/abi_prefix.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/config/abi_prefix.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | // abi_prefix header -------------------------------------------------------//
// (c) Copyright John Maddock 2003
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#ifndef Q... | 27.307692 | 80 | 0.71831 | wouterboomsma |
312b616126ca8b4a9c023a4b2f9327f3db395ce7 | 1,775 | cpp | C++ | boj/gold/1753.cpp | pseudowasabi/Resolucion-de-problemas | 47164c106d666aa07a48b8c2909a3d81f26d3dc9 | [
"MIT"
] | null | null | null | boj/gold/1753.cpp | pseudowasabi/Resolucion-de-problemas | 47164c106d666aa07a48b8c2909a3d81f26d3dc9 | [
"MIT"
] | null | null | null | boj/gold/1753.cpp | pseudowasabi/Resolucion-de-problemas | 47164c106d666aa07a48b8c2909a3d81f26d3dc9 | [
"MIT"
] | 1 | 2020-03-14T10:58:54.000Z | 2020-03-14T10:58:54.000Z | // basic dijkstra algorithm
#include <iostream>
#include <queue>
#include <cstring>
#include <utility>
using namespace std;
int v, e;
int stp;
class Edge {
public:
Edge *next_one;
int from, to, weight;
bool checked;
Edge() {
next_one = nullptr;
from = to = weight = 0;
checked =... | 22.1875 | 82 | 0.502535 | pseudowasabi |
312c1a31a41e87631e38e0111c20f9c1c2f82adb | 1,876 | hpp | C++ | cpp-learn3d/Render.hpp | robotjunkyard/cl-learn3d | 040207b06117f7a6a9d5bd5f120c6209aa1157f5 | [
"MIT"
] | null | null | null | cpp-learn3d/Render.hpp | robotjunkyard/cl-learn3d | 040207b06117f7a6a9d5bd5f120c6209aa1157f5 | [
"MIT"
] | null | null | null | cpp-learn3d/Render.hpp | robotjunkyard/cl-learn3d | 040207b06117f7a6a9d5bd5f120c6209aa1157f5 | [
"MIT"
] | null | null | null | #pragma once
#include "Camera.hpp"
#include "CanvasDef.hpp"
#include "Mat.hpp"
#include "Mesh.hpp"
#include "Vec.hpp"
class Render {
public:
static void drawFlat3DTriangle(Canvas& canvas, const Camera& camera, byte color,
const Vec3& v1, const Vec3& v2, const Vec3& v3,
... | 50.702703 | 120 | 0.471748 | robotjunkyard |
3132fc26d8801af1baa8b3ae4d13f42bed8d8cbe | 34,407 | cpp | C++ | src/Ligg.SeqExec/main.cpp | Liggin2019/Ligg.SeqExec | f4d770a6ed50aa0874b6aa410d54074cd1251fa5 | [
"Apache-2.0"
] | 2 | 2019-10-29T05:15:03.000Z | 2019-11-01T18:18:02.000Z | src/Ligg.SeqExec/main.cpp | ligg2018/Ligg.SeqExec | 677d4bcca3b809443b9100cfa9bdf8cb49f96777 | [
"Apache-2.0"
] | null | null | null | src/Ligg.SeqExec/main.cpp | ligg2018/Ligg.SeqExec | 677d4bcca3b809443b9100cfa9bdf8cb49f96777 | [
"Apache-2.0"
] | 1 | 2019-11-01T18:18:03.000Z | 2019-11-01T18:18:03.000Z |
// includes
#include <windows.h>
//for _ASSERTE
#include <crtdbg.h>
#include <tchar.h>
#include <stdio.h>
#include "lm.h"
#include "CSingleInstance.hxx" // CSingleInstance implementation
#include "CError.h" // CError definition
#include "resource.h" // string defines
#include "SetupCodes.h" ... | 25.869925 | 145 | 0.630773 | Liggin2019 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.