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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
188c682e13e2b48640c0e8ed6c3b41088570741e | 985 | cpp | C++ | src/crypto/RsaKey.cpp | toolbrew/libtoolchain | fd98be60d1c5ca62871c16c88b8e59be05d7f0ac | [
"MIT"
] | 4 | 2019-01-30T21:04:33.000Z | 2022-03-20T04:24:34.000Z | src/crypto/RsaKey.cpp | toolbrew/libtoolchain | fd98be60d1c5ca62871c16c88b8e59be05d7f0ac | [
"MIT"
] | 2 | 2021-11-18T09:07:53.000Z | 2021-11-19T13:25:20.000Z | src/crypto/RsaKey.cpp | toolbrew/libtoolchain | fd98be60d1c5ca62871c16c88b8e59be05d7f0ac | [
"MIT"
] | 1 | 2021-11-18T09:11:04.000Z | 2021-11-18T09:11:04.000Z | #include <tc/crypto/RsaKey.h>
tc::crypto::RsaPublicKey::RsaPublicKey(const byte_t* modulus, size_t modulus_size)
{
static const byte_t kPublicExponent[3] = { 0x01, 0x00, 0x01 };
if (modulus != nullptr && modulus_size != 0)
{
this->n = tc::ByteData(modulus, modulus_size);
this->e = tc::ByteData(kPublicExponent,... | 33.965517 | 146 | 0.722843 | toolbrew |
188f7f8ac0582f03242f27ce5a33f429eb32532a | 9,520 | hpp | C++ | src/core/math_func.hpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/core/math_func.hpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/core/math_func.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... | 27.2 | 185 | 0.689496 | trademarks |
188fd34689a01e00169a8c77c4b3d3f2ddb114d1 | 8,771 | cpp | C++ | EScript/Utils/StringUtils.cpp | antifermion/EScript | eca6765c28e319eb77b4da81125bdbb2510c9add | [
"MIT"
] | 3 | 2017-06-01T15:58:43.000Z | 2019-08-07T05:36:44.000Z | EScript/Utils/StringUtils.cpp | antifermion/EScript | eca6765c28e319eb77b4da81125bdbb2510c9add | [
"MIT"
] | 4 | 2015-01-23T18:17:50.000Z | 2019-02-10T11:48:55.000Z | EScript/Utils/StringUtils.cpp | antifermion/EScript | eca6765c28e319eb77b4da81125bdbb2510c9add | [
"MIT"
] | 12 | 2015-01-04T16:07:45.000Z | 2020-10-06T15:42:46.000Z | // StringUtils.cpp
// This file is part of the EScript programming language (https://github.com/EScript)
//
// Copyright (C) 2011-2013 Claudius Jähn <ClaudiusJ@live.de>
// Copyright (C) 2011-2012 Benjamin Eikel <benjamin@eikel.org>
//
// Licensed under the MIT License. See LICENSE file for details.
// -----------------... | 27.070988 | 140 | 0.598221 | antifermion |
189309b189ef2a7c81a032054990158edefebe36 | 2,150 | cpp | C++ | src/camera-window-manager/src/wayland_exporter.cpp | webosose/g-camera-pipeline | 8556015279e60ce4531f8566d1d62522faf6d63d | [
"Apache-2.0"
] | 2 | 2019-05-06T05:28:05.000Z | 2020-05-11T16:24:29.000Z | src/camera-window-manager/src/wayland_exporter.cpp | webosose/g-camera-pipeline | 8556015279e60ce4531f8566d1d62522faf6d63d | [
"Apache-2.0"
] | 1 | 2019-10-19T12:22:36.000Z | 2019-10-19T12:22:36.000Z | src/camera-window-manager/src/wayland_exporter.cpp | webosose/g-camera-pipeline | 8556015279e60ce4531f8566d1d62522faf6d63d | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2020 LG Electronics, 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 agre... | 30.714286 | 115 | 0.73907 | webosose |
1894824c572149dce7dd6048bb1b0dd424057556 | 1,167 | cpp | C++ | src/PixelSampler.cpp | fuchsteufelswild/Ray-Tracer | d83553db691543b7925a31ca57139490547279c0 | [
"MIT"
] | null | null | null | src/PixelSampler.cpp | fuchsteufelswild/Ray-Tracer | d83553db691543b7925a31ca57139490547279c0 | [
"MIT"
] | null | null | null | src/PixelSampler.cpp | fuchsteufelswild/Ray-Tracer | d83553db691543b7925a31ca57139490547279c0 | [
"MIT"
] | null | null | null | #include "PixelSampler.h"
#include "Camera.h"
namespace actracer
{
PixelSampler *PixelSampler::CreatePixelSampler(PixelSampleMethod method)
{
switch(method)
{
case PixelSampleMethod::JITTERED:
return new JitteredPixelSampler();
}
return nullptr;
... | 29.923077 | 196 | 0.655527 | fuchsteufelswild |
1895814a43f7931419ca6f3e711413691498f88c | 5,883 | cpp | C++ | IntegrationPlatform/Adapters/Subversion/Interop.Subversion/SubversionClient.cpp | adamdriscoll/TfsIntegrationPlatform | 28e0f51e804423bbde61083422711113662f2710 | [
"MIT"
] | 6 | 2016-09-06T19:41:51.000Z | 2021-06-08T19:50:15.000Z | IntegrationPlatform/Adapters/Subversion/Interop.Subversion/SubversionClient.cpp | adamdriscoll/TfsIntegrationPlatform | 28e0f51e804423bbde61083422711113662f2710 | [
"MIT"
] | null | null | null | IntegrationPlatform/Adapters/Subversion/Interop.Subversion/SubversionClient.cpp | adamdriscoll/TfsIntegrationPlatform | 28e0f51e804423bbde61083422711113662f2710 | [
"MIT"
] | 6 | 2016-05-24T13:57:54.000Z | 2020-01-27T12:11:57.000Z | #include "stdafx.h"
#include "AprPool.h"
#include "LibraryLoader.h"
#include "SvnError.h"
#include "SubversionClient.h"
#include "SubversionContext.h"
#include "Utils.h"
#include "ChangeSet.h"
#include "Item.h"
#include "DiffSummaryCommand.h"
#include "DownloadCommand.h"
#include "ItemInfoCommand.h"
#include "LatestR... | 23.438247 | 117 | 0.767126 | adamdriscoll |
189ab1746731ed04a998dfa4cd3d82c3d019fbc2 | 3,420 | cpp | C++ | tests/math/TestDegMinSec.cpp | marek-cel/libmcutils | 671a20f37378d32ade4decefdbfba70448d12504 | [
"MIT"
] | null | null | null | tests/math/TestDegMinSec.cpp | marek-cel/libmcutils | 671a20f37378d32ade4decefdbfba70448d12504 | [
"MIT"
] | null | null | null | tests/math/TestDegMinSec.cpp | marek-cel/libmcutils | 671a20f37378d32ade4decefdbfba70448d12504 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <mcutils/math/DegMinSec.h>
#include <mcutils/misc/Units.h>
////////////////////////////////////////////////////////////////////////////////
class TestDegMinSec : public ::testing::Test
{
protected:
TestDegMinSec() {}
virtual ~TestDegMinSec() {}
void SetUp() override {}
... | 25.333333 | 80 | 0.442105 | marek-cel |
189d437d84aa7e638e11153d010e2eae2ef5abaf | 175 | cpp | C++ | hermes/src/edu/cmu/hermes/runtime/ThreadDelayFault.cpp | rolandomar/hermesCPP | 32ba11155a88ba0292c4467c08cf6efbc90e37b2 | [
"Apache-2.0"
] | 1 | 2017-10-09T03:50:37.000Z | 2017-10-09T03:50:37.000Z | hermes/src/edu/cmu/hermes/runtime/ThreadDelayFault.cpp | rolandomar/hermesCPP | 32ba11155a88ba0292c4467c08cf6efbc90e37b2 | [
"Apache-2.0"
] | null | null | null | hermes/src/edu/cmu/hermes/runtime/ThreadDelayFault.cpp | rolandomar/hermesCPP | 32ba11155a88ba0292c4467c08cf6efbc90e37b2 | [
"Apache-2.0"
] | null | null | null | /*
* File: ThreadDelayFault.cpp
* Author: rmartins
*
* Created on May 3, 2013, 2:06 PM
*/
#include "ThreadDelayFault.h"
ThreadDelayFault::~ThreadDelayFault() {
}
| 12.5 | 39 | 0.657143 | rolandomar |
189dd762c3f93eed453312720521f283395b5022 | 3,367 | cpp | C++ | base64.cpp | MichaelWallace30/fileTransfer | d2950a7f24d82ee03ce42fa77fe173614bd21239 | [
"MIT"
] | null | null | null | base64.cpp | MichaelWallace30/fileTransfer | d2950a7f24d82ee03ce42fa77fe173614bd21239 | [
"MIT"
] | null | null | null | base64.cpp | MichaelWallace30/fileTransfer | d2950a7f24d82ee03ce42fa77fe173614bd21239 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
/*
encode: 6bit to 8bit
decode: 8bit to 6bit
needs padding if:
convert 3 bytes of 8 bit data into 4 chunks of 6 bits each
don't add new value of 0 to buffer use = sign
value char
0 A 16 Q 32 g 48 w
1 B 17 R 33 h 49 x
2 C 18 S 34 i 50 y
3 D 19 T 35 j 51 z
4 E 20 U 36 k 52 0
5 F ... | 27.373984 | 189 | 0.608851 | MichaelWallace30 |
18a0c0bf52b589eba12fa14176cd6b60ca0b54a9 | 165 | cpp | C++ | test/llvm_test_code/inst_interaction/call_03.cpp | janniclas/phasar | 324302ae96795e6f0a065c14d4f7756b1addc2a4 | [
"MIT"
] | 1 | 2022-02-15T07:56:29.000Z | 2022-02-15T07:56:29.000Z | test/llvm_test_code/inst_interaction/call_03.cpp | fabianbs96/phasar | 5b8acd046d8676f72ce0eb85ca20fdb0724de444 | [
"MIT"
] | null | null | null | test/llvm_test_code/inst_interaction/call_03.cpp | fabianbs96/phasar | 5b8acd046d8676f72ce0eb85ca20fdb0724de444 | [
"MIT"
] | null | null | null | unsigned factorial(unsigned n) {
if (n <= 1) {
return 1;
}
return n * factorial(n - 1);
}
int main() {
int i = 7;
int j = factorial(i);
return j;
}
| 12.692308 | 32 | 0.533333 | janniclas |
18a3f669a79f7fb1497e93cd6e1c65e4aabc2da0 | 3,600 | cpp | C++ | include/ibeosdk/database/datamodel/BsonT_Processing.cpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | 1 | 2020-07-04T15:23:05.000Z | 2020-07-04T15:23:05.000Z | include/ibeosdk/database/datamodel/BsonT_Processing.cpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | include/ibeosdk/database/datamodel/BsonT_Processing.cpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | //======================================================================
/*! \file BsonT_Processing.cpp
*
* \copydoc Copyright
* \author Kristian Bischoff (kb)
* \date Feb 8, 2016
*///-------------------------------------------------------------------
//=============================================================... | 39.130435 | 92 | 0.525 | chouer19 |
18a508afc7992496e3e529e792d1d966a2e88bf8 | 443 | cpp | C++ | UVa/10394 - Twin Primes.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | 1 | 2018-11-21T07:36:16.000Z | 2018-11-21T07:36:16.000Z | UVa/10394 - Twin Primes.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | null | null | null | UVa/10394 - Twin Primes.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
int prime[20000005] = {1, 1, 0};
int answer[100005] = {0};
int main(void)
{
int cnt = 1;
long long i, j;
for(i = 3; i < 20000000 && cnt <= 100000; i += 2) {
if(!prime[i]) {
for(j = i * i; j < 20000000; j+=i)
prime[j] = 1;
if(!prime[i] && !prime[i-2])
answer[cnt++] = i-2... | 20.136364 | 53 | 0.471783 | geniustanley |
18a7a3e7ab2055ea602c5b62e535d56ce665e2bd | 2,004 | hpp | C++ | irohad/ametsuchi/index/index.hpp | tkyonezu/iroha-hakodate | 4545c22bfb0db10d441182540d3caa7fd8375c48 | [
"Apache-2.0"
] | null | null | null | irohad/ametsuchi/index/index.hpp | tkyonezu/iroha-hakodate | 4545c22bfb0db10d441182540d3caa7fd8375c48 | [
"Apache-2.0"
] | null | null | null | irohad/ametsuchi/index/index.hpp | tkyonezu/iroha-hakodate | 4545c22bfb0db10d441182540d3caa7fd8375c48 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... | 34.551724 | 76 | 0.6502 | tkyonezu |
18abbff99ad0364b6fc3227ddbbbb323f47a9965 | 637 | cpp | C++ | LongestSubstring/LongestSubstring_2.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | LongestSubstring/LongestSubstring_2.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | LongestSubstring/LongestSubstring_2.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | #include<string>
#include<unordered_set>
#include<algorithm>
#include<iostream>
using namespace std;
class Solution {
public:
int lengthOfLongestSubstring(string s) {
int n = s.size();
unordered_set<char> set;
int length = 0,temp = 0;
for (int i = 0; i < n; ++i)
for (int j = temp; j < n; ++j)
{
if (se... | 15.536585 | 54 | 0.590267 | yergen |
18ac184b8cb8bf0a521f736b9de9e4be069708c5 | 563 | cpp | C++ | src/coherence/lang/ClassNotFoundException.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | src/coherence/lang/ClassNotFoundException.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | src/coherence/lang/ClassNotFoundException.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "coherence/lang/ClassNotFoundException.hpp"
#include <sstream>
COH_OPEN_NAMESPACE2(coherence,lang)
// ----- constructors ----------... | 26.809524 | 91 | 0.653641 | chpatel3 |
18b41a401f9746f8705d127528ceec05563fa286 | 1,337 | hpp | C++ | include/ear/warnings.hpp | rsjtaylor/libear | 40a4000296190c3f91eba79e5b92141e368bd72a | [
"Apache-2.0"
] | 14 | 2019-07-30T17:58:00.000Z | 2022-02-15T15:33:36.000Z | include/ear/warnings.hpp | rsjtaylor/libear | 40a4000296190c3f91eba79e5b92141e368bd72a | [
"Apache-2.0"
] | 27 | 2019-07-30T18:01:58.000Z | 2021-12-14T10:24:52.000Z | include/ear/warnings.hpp | rsjtaylor/libear | 40a4000296190c3f91eba79e5b92141e368bd72a | [
"Apache-2.0"
] | 5 | 2019-07-30T15:12:02.000Z | 2020-09-14T16:22:43.000Z | #pragma once
#include <functional>
#include <string>
#include "export.hpp"
namespace ear {
/// A warning message, containing a code and a corresponding message. The code
/// does not need to be shown when displaying warnings; the message should
/// contain all the information required, the code is just to allow
... | 34.282051 | 80 | 0.715782 | rsjtaylor |
18b5fe778684da01ff1fbc9f616ea01d7b890b2d | 15,233 | hpp | C++ | include/vif/core/bits/vectorize.hpp | lmorabit/vif | 459715c60e0ef6c83c7ebfb8741355d597dbc7aa | [
"Apache-2.0"
] | 6 | 2018-09-04T10:57:00.000Z | 2021-10-05T07:41:50.000Z | include/vif/core/bits/vectorize.hpp | lmorabit/vif | 459715c60e0ef6c83c7ebfb8741355d597dbc7aa | [
"Apache-2.0"
] | 2 | 2019-05-22T02:59:46.000Z | 2019-12-02T19:15:43.000Z | include/vif/core/bits/vectorize.hpp | lmorabit/vif | 459715c60e0ef6c83c7ebfb8741355d597dbc7aa | [
"Apache-2.0"
] | 3 | 2019-05-01T10:20:47.000Z | 2021-09-20T16:35:34.000Z | #ifndef VIF_INCLUDING_CORE_VEC_BITS
#error this file is not meant to be included separately, include "vif/core/vec.hpp" instead
#endif
namespace vif {
////////////////////////////////////////////
// Vectorization helpers //
////////////////////////////////////////////
#define VIF_VECT... | 45.607784 | 122 | 0.495044 | lmorabit |
18b77802b8e2fa60527b93d605a3f1d859e7abbb | 254 | cpp | C++ | aula_25/TrajetoManhattan.cpp | matheusalanojoenck/aula_cpp | 039bd4f4b11a736f1d800cad97a530e212b30375 | [
"MIT"
] | null | null | null | aula_25/TrajetoManhattan.cpp | matheusalanojoenck/aula_cpp | 039bd4f4b11a736f1d800cad97a530e212b30375 | [
"MIT"
] | null | null | null | aula_25/TrajetoManhattan.cpp | matheusalanojoenck/aula_cpp | 039bd4f4b11a736f1d800cad97a530e212b30375 | [
"MIT"
] | null | null | null | #include "TrajetoManhattan.hpp"
#include <cmath>
double TrajetoManhattan::calcularDistanciaPontos(const Ponto* const p1, const Ponto* const p2) const{
return std::abs(p1->getCoordX() - p2->getCoordX()) + std::abs(p1->getCoordY() - p2->getCoordY());
}
| 31.75 | 101 | 0.724409 | matheusalanojoenck |
18bc0819b939ceaab3a7cf55215971d56aee9f96 | 1,299 | cpp | C++ | 154.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 154.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 154.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#define eps 1e-9
#... | 19.102941 | 63 | 0.553503 | felikjunvianto |
18c4db409264a14492bfc376fa2a9143451cea09 | 1,789 | cpp | C++ | data/transcoder_evaluation_gfg/cpp/SUBSEQUENCES_SIZE_THREE_ARRAY_WHOSE_SUM_DIVISIBLE_M.cpp | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 241 | 2021-07-20T08:35:20.000Z | 2022-03-31T02:39:08.000Z | data/transcoder_evaluation_gfg/cpp/SUBSEQUENCES_SIZE_THREE_ARRAY_WHOSE_SUM_DIVISIBLE_M.cpp | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 49 | 2021-07-22T23:18:42.000Z | 2022-03-24T09:15:26.000Z | data/transcoder_evaluation_gfg/cpp/SUBSEQUENCES_SIZE_THREE_ARRAY_WHOSE_SUM_DIVISIBLE_M.cpp | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 71 | 2021-07-21T05:17:52.000Z | 2022-03-29T23:49:28.000Z | // Copyright (c) 2019-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the license found in the
// LICENSE file in the root directory of this source tree.
//
#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <fstream>
#include <iomanip>
#include... | 33.754717 | 654 | 0.536054 | mxl1n |
18c52ebff1afd6ce6e3c5d65fe9e42a50051e9fe | 738 | cxx | C++ | POSN Camp2/ban_word-113028.cxx | ParamaaS/ParamaaS-Cpp-code- | a6c78151defe38d1460cde2b005a67be5a1d092d | [
"MIT"
] | null | null | null | POSN Camp2/ban_word-113028.cxx | ParamaaS/ParamaaS-Cpp-code- | a6c78151defe38d1460cde2b005a67be5a1d092d | [
"MIT"
] | null | null | null | POSN Camp2/ban_word-113028.cxx | ParamaaS/ParamaaS-Cpp-code- | a6c78151defe38d1460cde2b005a67be5a1d092d | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define X first
#define Y second
#define pb push_back
#define mp make_pair
long long n;
long long ar[60][10];
long long dp(long long idx,long long ch)
{
if(ar[idx][ch]!=-1)
return ar[idx][ch];
if(idx==1)
return ar[idx][ch]=1;
if(ch!=1)///... | 19.945946 | 64 | 0.47561 | ParamaaS |
18c6f5b0ca802e3a3cff23d58e9e22b53e304993 | 1,609 | cpp | C++ | cpp/851. Loud and Rich.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | 3 | 2021-08-07T07:01:34.000Z | 2021-08-07T07:03:02.000Z | cpp/851. Loud and Rich.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | cpp/851. Loud and Rich.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/loud-and-rich/
// In a group of N people (labelled 0, 1, 2, ..., N-1), each person has different
// amounts of money, and different levels of quietness.
// For convenience, we'll call the person with label x, simply "person x".
// We'll say that richer[i] = [x, y] if person x definit... | 37.418605 | 83 | 0.585457 | longwangjhu |
18c7f597236d07a90fb6e7e71d1fe22ccd75fb25 | 1,916 | hpp | C++ | src/types.hpp | PranayAnchuri/approx-graph-mining-with-label-costs | 4bb1d78b52175add3955de47281c3ee0073c7943 | [
"MIT"
] | null | null | null | src/types.hpp | PranayAnchuri/approx-graph-mining-with-label-costs | 4bb1d78b52175add3955de47281c3ee0073c7943 | [
"MIT"
] | null | null | null | src/types.hpp | PranayAnchuri/approx-graph-mining-with-label-costs | 4bb1d78b52175add3955de47281c3ee0073c7943 | [
"MIT"
] | 1 | 2020-05-08T11:17:33.000Z | 2020-05-08T11:17:33.000Z | #pragma once
#include <string>
#include <vector>
#include <map>
#include <set>
#include <unordered_set>
#include <unordered_map>
namespace types {
typedef int integer_t;
typedef integer_t int_t;
typedef unsigned int unsigned_integer_t;
typedef unsigned_integer_t uint_t;
typedef uint_t symbol_t;
typedef ... | 31.409836 | 102 | 0.756785 | PranayAnchuri |
18c8fbbbe1a7e91792553cfe93e4e2e19133ad6c | 746 | hpp | C++ | DlgApp/AppDlg.hpp | chrisoldwood/Template | 9c09d28d97d821753a1607b92cd03cfa70d48353 | [
"MIT"
] | 3 | 2015-10-13T00:51:58.000Z | 2020-09-11T13:13:28.000Z | DlgApp/AppDlg.hpp | chrisoldwood/Template | 9c09d28d97d821753a1607b92cd03cfa70d48353 | [
"MIT"
] | null | null | null | DlgApp/AppDlg.hpp | chrisoldwood/Template | 9c09d28d97d821753a1607b92cd03cfa70d48353 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//! \file AppDlg.hpp
//! \brief The AppDlg class declaration.
//! \author Chris Oldwood
// Check for previous inclusion
#ifndef APP_APPDLG_HPP
#define APP_APPDLG_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <WCL/MainDlg.hpp>
... | 19.128205 | 80 | 0.548257 | chrisoldwood |
18c9fcc6bbda982e62fa88f76c53db5246d67764 | 3,925 | cc | C++ | cc/trees/layer_tree_host_unittest_remote_server.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 1 | 2020-09-15T08:43:34.000Z | 2020-09-15T08:43:34.000Z | cc/trees/layer_tree_host_unittest_remote_server.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | cc/trees/layer_tree_host_unittest_remote_server.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 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 <memory>
#include "base/memory/ptr_util.h"
#include "base/threading/thread_task_runner_handle.h"
#include "cc/test/fake_image_serialization_proc... | 37.380952 | 80 | 0.74828 | maidiHaitai |
18cc94708e24ffa0a3ae9e1c38744ed4c06cea31 | 4,198 | hpp | C++ | include/atma/shared_memory.hpp | omnigoat/atma | 73833f41373fac2af695587786c00a307046de64 | [
"MIT"
] | 7 | 2016-04-08T03:53:42.000Z | 2020-07-06T05:52:35.000Z | include/atma/shared_memory.hpp | omnigoat/atma | 73833f41373fac2af695587786c00a307046de64 | [
"MIT"
] | 1 | 2018-04-14T13:56:06.000Z | 2018-04-14T13:56:06.000Z | include/atma/shared_memory.hpp | omnigoat/atma | 73833f41373fac2af695587786c00a307046de64 | [
"MIT"
] | null | null | null | #pragma once
#include <atma/platform/allocation.hpp>
import atma.types;
namespace atma
{
namespace detail
{
constexpr size_t header_size = sizeof(size_t) + sizeof(std::atomic_uint32_t) + 4u;
constexpr inline size_t allocation_size(size_t alignment, size_t size)
{
return header_size + (heade... | 24.694118 | 105 | 0.670796 | omnigoat |
18ce0bb394738ee31bcb67b641dd069384026962 | 1,662 | cpp | C++ | Source/OverlordProject/Components/Other/ColorFlickerComponent.cpp | TomvanWaas/OvercookedImitation | 895b98ff23b026bafc24267c8707d68870a2ac58 | [
"MIT"
] | null | null | null | Source/OverlordProject/Components/Other/ColorFlickerComponent.cpp | TomvanWaas/OvercookedImitation | 895b98ff23b026bafc24267c8707d68870a2ac58 | [
"MIT"
] | null | null | null | Source/OverlordProject/Components/Other/ColorFlickerComponent.cpp | TomvanWaas/OvercookedImitation | 895b98ff23b026bafc24267c8707d68870a2ac58 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ColorFlickerComponent.h"
#include "GameObject.h"
#include "SpriteComponent.h"
#include "GameScene.h"
#include "Destroyer.h"
ColorFlickerComponent::ColorFlickerComponent(const DirectX::XMFLOAT4& colorA, const DirectX::XMFLOAT4& colorB, float speed,
std::vector<SpriteComponent*> pS... | 22.767123 | 124 | 0.633574 | TomvanWaas |
18cffc0b71b7cebce9c043dc76d90fa6f86755c4 | 1,669 | hpp | C++ | rm_task/include/rm_task/task_image_proc.hpp | Hqz971016/rmoss_core | e9e37096ceb883945a838774e20ef58f2de0b10b | [
"MIT"
] | 1 | 2020-12-06T13:12:31.000Z | 2020-12-06T13:12:31.000Z | rm_task/include/rm_task/task_image_proc.hpp | Hqz971016/rmoss_core | e9e37096ceb883945a838774e20ef58f2de0b10b | [
"MIT"
] | null | null | null | rm_task/include/rm_task/task_image_proc.hpp | Hqz971016/rmoss_core | e9e37096ceb883945a838774e20ef58f2de0b10b | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2020 robomaster-oss, All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the MIT License, See the MIT License for more details.
*
* You should hav... | 29.280702 | 80 | 0.603355 | Hqz971016 |
18d15bd603150dbbdcb88f9aecbbb72bdd3c14a0 | 1,193 | hpp | C++ | src/Test.PlcNext/Deployment/ProgramWithNestedAndStructInStruct/src/MyProgramImpl.hpp | PLCnext/PLCnext_CLI | cf8ad590f05196747b403da891bdd5da86f82469 | [
"Apache-2.0"
] | 7 | 2020-10-08T12:37:49.000Z | 2021-03-29T07:49:52.000Z | src/Test.PlcNext/Deployment/ProgramWithNestedAndStructInStruct/src/MyProgramImpl.hpp | PLCnext/PLCnext_CLI | cf8ad590f05196747b403da891bdd5da86f82469 | [
"Apache-2.0"
] | 10 | 2020-10-09T14:04:01.000Z | 2022-03-09T09:38:58.000Z | src/Test.PlcNext/Deployment/ProgramWithNestedAndStructInStruct/src/MyProgramImpl.hpp | PLCnext/PLCnext_CLI | cf8ad590f05196747b403da891bdd5da86f82469 | [
"Apache-2.0"
] | 2 | 2020-09-04T06:45:39.000Z | 2020-10-30T10:07:33.000Z | #pragma once
#include "Arp/System/Core/Arp.h"
#include "Arp/Plc/Esm/ProgramBase.hpp"
#include "Arp/System/Commons/Logging.h"
namespace ProgramWithNestedAndStructInStruct { namespace MyComponent {
using namespace Arp;
using namespace Arp::Plc::Esm;
//#program
//#component(MyComponent)
class MyProgramImpl ... | 23.392157 | 80 | 0.658843 | PLCnext |
18d281d705ffbb21956cda53215bce631ca92ec8 | 690 | cpp | C++ | examples/graphics/gnomon.cpp | AlloSphere-Research-Group/al_lib | 94d23fe71b79d3464a658f16ca34c2040e6d7334 | [
"BSD-3-Clause"
] | 26 | 2018-11-05T23:29:43.000Z | 2022-03-17T18:16:49.000Z | examples/graphics/gnomon.cpp | yangevelyn/allolib | 1654be795b6515c058eb8243751b903a2aa6efdc | [
"BSD-3-Clause"
] | 41 | 2018-01-19T18:34:41.000Z | 2022-01-27T23:52:01.000Z | examples/graphics/gnomon.cpp | yangevelyn/allolib | 1654be795b6515c058eb8243751b903a2aa6efdc | [
"BSD-3-Clause"
] | 11 | 2018-01-05T16:42:19.000Z | 2022-01-27T22:08:01.000Z | #include "al/app/al_App.hpp"
#include "al/graphics/al_Font.hpp"
#include "al/ui/al_Gnomon.hpp"
using namespace al;
struct MyApp : public App {
Gnomon gnomon;
FontRenderer fontRender;
void onCreate() { fontRender.load(Font::defaultFont().c_str(), 24, 1024); }
void onDraw(Graphics& g) {
g.clear(0.2f);
... | 20.294118 | 77 | 0.630435 | AlloSphere-Research-Group |
18d9603349604dad388e3eb31dde6bb4f83c195a | 2,285 | cpp | C++ | project-euler/src/pe34.cpp | ammarhusain/challenges | efdb907833d04e9e37fc800d1b2b32507cfcd2e4 | [
"MIT"
] | null | null | null | project-euler/src/pe34.cpp | ammarhusain/challenges | efdb907833d04e9e37fc800d1b2b32507cfcd2e4 | [
"MIT"
] | null | null | null | project-euler/src/pe34.cpp | ammarhusain/challenges | efdb907833d04e9e37fc800d1b2b32507cfcd2e4 | [
"MIT"
] | null | null | null | /** ----------------------------------------------------------------------
* Copyright 2014 < Ammar Husain (Carnegie Mellon University) >
*
* @file pe1.cpp
* @author Ammar Husain <ahusain@nrec.ri.cmu.edu>
* @date Thu Jul 31 17:18:28 2014
*
* @brief Boiler Plate
*
*
---------------------------------... | 21.971154 | 78 | 0.476586 | ammarhusain |
18ddb8a5ebb3a4f000f095759205d7866f95384b | 8,193 | cc | C++ | xt_base/www/www/keyform.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | xt_base/www/www/keyform.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | xt_base/www/www/keyform.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Copyright (c) 2016 Whiteley Research Inc, all rights reserved. *
* *
* WHITELEY RE... | 31.511538 | 93 | 0.415965 | wrcad |
18dea84a1a363f1f784a879e81c7f1a589eae3b3 | 409 | cpp | C++ | codechef/bolt.cpp | zshashz/CS50- | 79067df0df1da02d716591a29f3b8670618c962d | [
"MIT"
] | 4 | 2021-01-11T13:05:33.000Z | 2022-02-02T18:17:53.000Z | codechef/bolt.cpp | zshashz/CS50- | 79067df0df1da02d716591a29f3b8670618c962d | [
"MIT"
] | null | null | null | codechef/bolt.cpp | zshashz/CS50- | 79067df0df1da02d716591a29f3b8670618c962d | [
"MIT"
] | 1 | 2021-10-03T12:46:20.000Z | 2021-10-03T12:46:20.000Z | #include <iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
int T;
cin>>T;
for(int i=0; i<T; i++)
{
double k1,k2,k3,v;
cin>>k1>>k2>>k3>>v;
double tans = 100/(k1*k2*k3*v);
double t = (round(tans*100))/100;
if (t<9.58)
c... | 16.36 | 41 | 0.432763 | zshashz |
18e03d1d708bdb656177db3811bb6d1089d1e45b | 10,018 | cpp | C++ | ZooidEngine/SceneRenderer/RenderPass/DepthRenderPass.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | 4 | 2019-05-31T22:55:49.000Z | 2020-11-26T11:55:34.000Z | ZooidEngine/SceneRenderer/RenderPass/DepthRenderPass.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | null | null | null | ZooidEngine/SceneRenderer/RenderPass/DepthRenderPass.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | 1 | 2018-04-11T02:50:47.000Z | 2018-04-11T02:50:47.000Z | #include "DepthRenderPass.h"
#include "ResourceManagers/ShaderManager.h"
#include "ResourceManagers/BufferManager.h"
#include "Resources/Texture.h"
#include "Renderer/IRenderer.h"
#include "Renderer/RenderZooid.h"
#include "Renderer/IGPURenderBuffer.h"
#include "Renderer/IGPUFrameBuffer.h"
#include "Renderer/IGPUTextu... | 34.191126 | 188 | 0.759034 | azon04 |
18e8bbbdc11f52188820140a0ae88bd9fa3fe142 | 6,901 | cpp | C++ | loop-perf/LoopPerforation.cpp | avanhatt/llvm-loop-perforation | 5182f366ea4df2fa5dbf5f0863809f2d17f495a4 | [
"MIT"
] | 3 | 2020-01-17T22:05:11.000Z | 2020-12-15T18:48:25.000Z | loop-perf/LoopPerforation.cpp | avanhatt/llvm-loop-perforation | 5182f366ea4df2fa5dbf5f0863809f2d17f495a4 | [
"MIT"
] | null | null | null | loop-perf/LoopPerforation.cpp | avanhatt/llvm-loop-perforation | 5182f366ea4df2fa5dbf5f0863809f2d17f495a4 | [
"MIT"
] | 1 | 2020-01-17T22:06:41.000Z | 2020-01-17T22:06:41.000Z | #include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/LoopPass.h"
#include "llvm/Analysis/IVUsers.h"
#include "llvm/Pass.h"
#include "llvm/IR/Function.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
#include "llvm/Transforms/Utils... | 29.618026 | 94 | 0.61252 | avanhatt |
18ea96d0c0d3ae734df3fd3379dddaf3ffe75306 | 2,699 | cpp | C++ | src/GPE_Engine/GPE_Audio.cpp | creikey/Game-Pencil-Engine | 961a33f090b6b8d94a660db9e4b67644d829c96f | [
"MIT"
] | null | null | null | src/GPE_Engine/GPE_Audio.cpp | creikey/Game-Pencil-Engine | 961a33f090b6b8d94a660db9e4b67644d829c96f | [
"MIT"
] | null | null | null | src/GPE_Engine/GPE_Audio.cpp | creikey/Game-Pencil-Engine | 961a33f090b6b8d94a660db9e4b67644d829c96f | [
"MIT"
] | null | null | null | /*
GPE_Audio.cpp
This file is part of:
GAME PENCIL ENGINE
https://create.pawbyte.com
Copyright (c) 2014-2019 Nathan Hurde, Chase Lee.
Copyright (c) 2014-2019 PawByte LLC.
Copyright (c) 2014-2019 Game Pencil Engine contributors ( Contributors Page )
Permission is hereby granted, free of charge, to any person... | 21.943089 | 79 | 0.690626 | creikey |
18eb34869fd03cfd84df3483c3524043d4cec38e | 4,659 | hxx | C++ | main/filter/source/pdf/pdfexport.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/filter/source/pdf/pdfexport.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/filter/source/pdf/pdfexport.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.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 y... | 35.030075 | 147 | 0.657437 | Grosskopf |
18f0ea5527cb789b6c4aa7af6bffee73d562164a | 16,636 | cpp | C++ | linear_solvers/Solver.cpp | acse-qq219/Linear_Solvers_app | faf5c2272a542a21a3da0c4689adc7eaad30b8e5 | [
"MIT"
] | null | null | null | linear_solvers/Solver.cpp | acse-qq219/Linear_Solvers_app | faf5c2272a542a21a3da0c4689adc7eaad30b8e5 | [
"MIT"
] | null | null | null | linear_solvers/Solver.cpp | acse-qq219/Linear_Solvers_app | faf5c2272a542a21a3da0c4689adc7eaad30b8e5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include "Solver.h"
#define COUNT_TIME_MAX 10001
using namespace std;
template <class T>
Solver<T>::Solver() {}
template <class T>
Solver<T>::~Solver() {}
template <class T>
bool Solver<T>::solverJacobi(int iterations, double allowed_convergence, T init_guess... | 25.476263 | 154 | 0.594975 | acse-qq219 |
18f7d8b99ab0329b98f5b67678bf3508ce0fae11 | 2,153 | cpp | C++ | DawnBreakers/Source/Basic/Private/TestAttrModifyActor.cpp | 954818696/FPSGame | bc82ceb1b56460a8e0e0c0e9a0da20fb5898e158 | [
"MIT"
] | 1 | 2017-01-21T14:08:06.000Z | 2017-01-21T14:08:06.000Z | DawnBreakers/Source/Basic/Private/TestAttrModifyActor.cpp | 954818696/FPSGame | bc82ceb1b56460a8e0e0c0e9a0da20fb5898e158 | [
"MIT"
] | null | null | null | DawnBreakers/Source/Basic/Private/TestAttrModifyActor.cpp | 954818696/FPSGame | bc82ceb1b56460a8e0e0c0e9a0da20fb5898e158 | [
"MIT"
] | 2 | 2017-11-14T10:36:01.000Z | 2020-07-13T08:52:08.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "TestAttrModifyActor.h"
//#if WITH_DEV_AUTOMATION_TESTS
// Sets default values
ATestAttrModifyActor::ATestAttrModifyActor()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you d... | 24.465909 | 115 | 0.775662 | 954818696 |
18fd5e51b9ace076e762342b477cefb7d7ac7c90 | 773 | hpp | C++ | src/data/Contour.hpp | haruneko/uzume_vocoder | 63343118fd8d0dd8b7ebb92d98f023bfa6b9855e | [
"MIT"
] | 1 | 2020-04-28T06:29:25.000Z | 2020-04-28T06:29:25.000Z | src/data/Contour.hpp | haruneko/uzume | 63343118fd8d0dd8b7ebb92d98f023bfa6b9855e | [
"MIT"
] | null | null | null | src/data/Contour.hpp | haruneko/uzume | 63343118fd8d0dd8b7ebb92d98f023bfa6b9855e | [
"MIT"
] | null | null | null | // Copyright 2020 Hal@shurabaP. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
#ifndef UZUME_VOCODER_CONTOUR_HPP
#define UZUME_VOCODER_CONTOUR_HPP
namespace uzume { namespace vocoder {
/**
* Contour represents array values in time axis.
... | 20.891892 | 53 | 0.673997 | haruneko |
7a02887e5bd1b83b8cfe300891ddcd59959f23c1 | 8,735 | cpp | C++ | shell/explorer/trayitem.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | shell/explorer/trayitem.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | shell/explorer/trayitem.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "cabinet.h"
#include "trayitem.h"
#include "shellapi.h"
#include "strsafe.h"
//
// CTrayItem members...
//
DWORD CTrayItem::_GetStateFlag(ICONSTATEFLAG sf)
{
DWORD dwFlag = 0;
switch (sf)
{
case TIF_HIDDEN:
dwFlag = NIS_HIDDEN;
break;
... | 26.959877 | 103 | 0.565999 | npocmaka |
bb394459d8e4a09198056a1c696801744b958669 | 52 | cpp | C++ | inetsrv/msmq/src/migtool/mqdbodbc/stdh.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/msmq/src/migtool/mqdbodbc/stdh.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/msmq/src/migtool/mqdbodbc/stdh.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //
// file: stdh.cpp
//
#include "dbsys.h"
| 7.428571 | 19 | 0.461538 | npocmaka |
bb4402880342b48323057c0d00c0b5329f3a1af3 | 605 | cpp | C++ | tests/BinaryTreeRightSideViewTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | tests/BinaryTreeRightSideViewTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | tests/BinaryTreeRightSideViewTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "catch.hpp"
#include "BinaryTreeRightSideView.hpp"
TEST_CASE("Binary Tree Right Side View") {
BinaryTreeRightSideView s;
TreeNode *root = nullptr;
SECTION("Sample test") {
TreeNode *_5 = new TreeNode(5);
TreeNode *_4 = new TreeNode(4);
TreeNode *_2 = new TreeNode(2, nullpt... | 28.809524 | 52 | 0.603306 | yanzhe-chen |
bb4455886d8dbff0625ae111afb488763a801462 | 2,012 | cpp | C++ | TouchGFX/generated/fonts/src/Table_trebucbd_80_4bpp.cpp | timagr615/ILI9488_touchGFX | 5d3695f09a440edefe3d0ddf727e08c7fd5e5bd2 | [
"MIT"
] | null | null | null | TouchGFX/generated/fonts/src/Table_trebucbd_80_4bpp.cpp | timagr615/ILI9488_touchGFX | 5d3695f09a440edefe3d0ddf727e08c7fd5e5bd2 | [
"MIT"
] | null | null | null | TouchGFX/generated/fonts/src/Table_trebucbd_80_4bpp.cpp | timagr615/ILI9488_touchGFX | 5d3695f09a440edefe3d0ddf727e08c7fd5e5bd2 | [
"MIT"
] | null | null | null | // Autogenerated, do not edit
#include <fonts/GeneratedFont.hpp>
FONT_TABLE_LOCATION_FLASH_PRAGMA
KEEP extern const touchgfx::GlyphNode glyphs_trebucbd_80_4bpp[] FONT_TABLE_LOCATION_FLASH_ATTRIBUTE = {
{ 0, 0x0020, 0, 0, 0, 0, 24, 0, 1, 0x00 },
{ 0, 0x003F, 29, 60, 59, 4, 35, 0, ... | 49.073171 | 167 | 0.644135 | timagr615 |
bb454db385d80d86cacdcbb9cae15acb8695970e | 5,907 | hpp | C++ | src/module/sps_module.hpp | byrcoder/sps | 20c910f6f3a2784f7bbab316d8a4049076650286 | [
"MIT"
] | 8 | 2021-06-13T18:15:27.000Z | 2022-02-05T07:39:58.000Z | src/module/sps_module.hpp | byrcoder/sps | 20c910f6f3a2784f7bbab316d8a4049076650286 | [
"MIT"
] | 4 | 2021-06-12T20:06:44.000Z | 2022-02-05T08:22:08.000Z | src/module/sps_module.hpp | byrcoder/sps | 20c910f6f3a2784f7bbab316d8a4049076650286 | [
"MIT"
] | 1 | 2022-02-21T00:58:31.000Z | 2022-02-21T00:58:31.000Z | /*****************************************************************************
MIT License
Copyright (c) 2021 byrcoder
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, includin... | 32.103261 | 96 | 0.555104 | byrcoder |
bb46c9e2d9bb0d25f35777c8508455ea9cc91693 | 495 | hxx | C++ | include/ui.hxx | gviegas/mad-meat-rampage | 2edd70ab4a54fda344f410c498896077f0e994e2 | [
"MIT"
] | null | null | null | include/ui.hxx | gviegas/mad-meat-rampage | 2edd70ab4a54fda344f410c498896077f0e994e2 | [
"MIT"
] | null | null | null | include/ui.hxx | gviegas/mad-meat-rampage | 2edd70ab4a54fda344f410c498896077f0e994e2 | [
"MIT"
] | null | null | null | /*
* Created by Gustavo Viegas (2016/11)
*/
#ifndef UI_HXX
#define UI_HXX
#include <SFML/Graphics.hpp>
#include <vector>
class UI {
public:
UI(int digits = 3);
~UI();
void loadConf(const std::string& fileName);
void update(int score, double updateInterval);
void draw(sf::RenderWindow* screen);
... | 17.068966 | 50 | 0.662626 | gviegas |
bb4925305a58ee6e569b836d42b887e5429ec2f2 | 16,621 | cpp | C++ | ExeExplorer/CodeCommon.cpp | Fiskmans/FiskDisassembler | 0ede8f0ebf307bf45730e36258f6718312d40490 | [
"MIT"
] | null | null | null | ExeExplorer/CodeCommon.cpp | Fiskmans/FiskDisassembler | 0ede8f0ebf307bf45730e36258f6718312d40490 | [
"MIT"
] | null | null | null | ExeExplorer/CodeCommon.cpp | Fiskmans/FiskDisassembler | 0ede8f0ebf307bf45730e36258f6718312d40490 | [
"MIT"
] | null | null | null | #include "CodeCommon.h"
#include "ConsoleHelp.h"
#include <algorithm>
#include <map>
namespace globals {
std::vector<BranchType> globalFunctions;
std::vector<BranchType> globalBranches;
const size_t globalLocationColumn = 50;
size_t globalImageBase = 0;
} // globals
std::string
GenerateName(
std::stri... | 21.336329 | 126 | 0.621082 | Fiskmans |
bb4da8a8a526dee82519216963ea175634ed8763 | 5,800 | cpp | C++ | high_level_controller/examples/cpp/eight_zero/src/main.cpp | Durrrr95/cpm_lab | e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67 | [
"MIT"
] | 9 | 2020-06-24T11:22:15.000Z | 2022-01-13T14:14:13.000Z | high_level_controller/examples/cpp/eight_zero/src/main.cpp | Durrrr95/cpm_lab | e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67 | [
"MIT"
] | 1 | 2021-05-10T13:48:04.000Z | 2021-05-10T13:48:04.000Z | high_level_controller/examples/cpp/eight_zero/src/main.cpp | Durrrr95/cpm_lab | e2e6f4ace4ebc01e8ddd87e2f4acf13e6ffdcc67 | [
"MIT"
] | 2 | 2021-11-08T11:59:29.000Z | 2022-03-15T13:50:54.000Z | #include "cpm/Logging.hpp"
#include "cpm/CommandLineReader.hpp"
#include "cpm/init.hpp"
#include "cpm/HLCCommunicator.hpp"
#include "cpm/Writer.hpp"
#include "VehicleCommandTrajectory.hpp"
#include "Eight.hpp"
#include <iostream>
#include <memory>
#include <stdlib.h>
using std::vector;
//Description for bash files... | 37.908497 | 123 | 0.704483 | Durrrr95 |
bb4f71d24ca575595cdbc23da001e9b2c458d520 | 428 | hpp | C++ | src/libs/cosinesimilarity.hpp | ronaldpereira/collaborative-filtering-movie-recommendation | 0ecdd5f531a677540c0047c09d300d81c85dc821 | [
"MIT"
] | null | null | null | src/libs/cosinesimilarity.hpp | ronaldpereira/collaborative-filtering-movie-recommendation | 0ecdd5f531a677540c0047c09d300d81c85dc821 | [
"MIT"
] | null | null | null | src/libs/cosinesimilarity.hpp | ronaldpereira/collaborative-filtering-movie-recommendation | 0ecdd5f531a677540c0047c09d300d81c85dc821 | [
"MIT"
] | null | null | null | #ifndef COSINESIM
#define COSINESIM
#include <unordered_map>
#include "itemuser.hpp"
class CosineSimilarity
{
private:
// Data
std::unordered_map<int, std::unordered_map<int, double>> computedSimilarities;
// Methods
std::unordered_map<int, double> getKNearestNeighbors(std::unordered_map<int, double> ... | 21.4 | 97 | 0.731308 | ronaldpereira |
bb52f4073517a6c40660dfeda4f047b6f34ea571 | 2,581 | cpp | C++ | Codeforces/Lyft/Elimination2018/D.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | 2 | 2018-12-11T14:37:24.000Z | 2022-01-23T18:11:54.000Z | Codeforces/Lyft/Elimination2018/D.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | Codeforces/Lyft/Elimination2018/D.cpp | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | // Implement this. DON'T CLOSE IT
#include<bits/stdc++.h>
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 998244353
#define ll long long int
#define ld long double
#define vi vector<int>
#define vll vector<long long int>
#define sc(n) scanf("%d",&n);
#define scll(n) sc... | 21.330579 | 73 | 0.483146 | Mindjolt2406 |
bb54bd95cfa5a715d0c1492c203c807a40b15239 | 12,642 | cpp | C++ | libs/object/tests/TCntPtrTest.cpp | ZachHenkel/Mso | ee250782dfc67e309a1c66c67e97f774727b56af | [
"MIT"
] | null | null | null | libs/object/tests/TCntPtrTest.cpp | ZachHenkel/Mso | ee250782dfc67e309a1c66c67e97f774727b56af | [
"MIT"
] | null | null | null | libs/object/tests/TCntPtrTest.cpp | ZachHenkel/Mso | ee250782dfc67e309a1c66c67e97f774727b56af | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/****************************************************************************
Unit tests for the TCntPtr smart pointer
****************************************************************************/
#include "precomp.h"
#include <atomic>
#includ... | 28.408989 | 111 | 0.742525 | ZachHenkel |
bb565e823c97421d0945ac22f09f969a61112027 | 1,226 | hpp | C++ | test-suite/generated-src/cwrapper/cw__Foo_Callback2.hpp | ubook-editora/finn | 9a2b0e442c94e7311f85d2892dd33b1e3579bb1f | [
"Apache-2.0"
] | 3 | 2019-11-07T03:38:03.000Z | 2020-03-28T10:24:40.000Z | test-suite/generated-src/cwrapper/cw__Foo_Callback2.hpp | ubook-editora/finn | 9a2b0e442c94e7311f85d2892dd33b1e3579bb1f | [
"Apache-2.0"
] | null | null | null | test-suite/generated-src/cwrapper/cw__Foo_Callback2.hpp | ubook-editora/finn | 9a2b0e442c94e7311f85d2892dd33b1e3579bb1f | [
"Apache-2.0"
] | 2 | 2020-12-01T18:39:26.000Z | 2021-02-04T03:55:31.000Z | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from foo_duplicate_file_creation.djinni
#pragma once
#include <atomic>
#include <experimental/optional>
#include "Foo_Callback2.hpp"
#ifdef __cplusplus
extern "C" {
#endif
#include "cw__Foo_Callback2.h"
#ifdef __cplusplus
}
#endif
struct Djinni... | 29.902439 | 106 | 0.74062 | ubook-editora |
bb5a0334002f1517f6a080b793f0ced044a4c5c1 | 230,241 | cc | C++ | tensorflow/core/profiler/tfprof_log.pb.cc | 1250281649/tensorflow | fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c | [
"Apache-2.0"
] | null | null | null | tensorflow/core/profiler/tfprof_log.pb.cc | 1250281649/tensorflow | fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c | [
"Apache-2.0"
] | 2 | 2021-08-25T15:57:35.000Z | 2022-02-10T01:09:32.000Z | tensorflow/core/profiler/tfprof_log.pb.cc | 1250281649/tensorflow | fc6f4ec813c3514fc4a4c6a078f3f492b3ff325c | [
"Apache-2.0"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/profiler/tfprof_log.proto
#include "tensorflow/core/profiler/tfprof_log.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.... | 44.611703 | 243 | 0.736398 | 1250281649 |
bb5cabb75565a5bfda40797aa68518c687b0edc7 | 33,944 | cpp | C++ | frameworks/kits/content/cpp/src/ohos/aafwk/content/want_params.cpp | chaoyangcui/aafwk_standard | 6a1ba0b0aa175c709e7a0d684f89ebd41a006061 | [
"Apache-2.0"
] | null | null | null | frameworks/kits/content/cpp/src/ohos/aafwk/content/want_params.cpp | chaoyangcui/aafwk_standard | 6a1ba0b0aa175c709e7a0d684f89ebd41a006061 | [
"Apache-2.0"
] | null | null | null | frameworks/kits/content/cpp/src/ohos/aafwk/content/want_params.cpp | chaoyangcui/aafwk_standard | 6a1ba0b0aa175c709e7a0d684f89ebd41a006061 | [
"Apache-2.0"
] | 1 | 2021-09-13T12:07:39.000Z | 2021-09-13T12:07:39.000Z | /*
* Copyright (c) 2021 Huawei Device 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.693744 | 120 | 0.624705 | chaoyangcui |
bb5cbcdd274ece693781081ec0d792c503723887 | 1,194 | hpp | C++ | module-08/ex02/mutantstack.hpp | kotabrog/CPP-module | db858e57ac194d4ca9b38667ff3820418b42e9c8 | [
"MIT"
] | 1 | 2021-09-05T14:59:20.000Z | 2021-09-05T14:59:20.000Z | module-08/ex02/mutantstack.hpp | kotabrog/CPP-module | db858e57ac194d4ca9b38667ff3820418b42e9c8 | [
"MIT"
] | null | null | null | module-08/ex02/mutantstack.hpp | kotabrog/CPP-module | db858e57ac194d4ca9b38667ff3820418b42e9c8 | [
"MIT"
] | null | null | null | #ifndef MUTANTSTACK_H
#define MUTANTSTACK_H
#include <stack>
template <typename T>
class MutantStack : public std::stack<T>
{
public:
typedef typename std::stack<T>::container_type::iterator iterator;
typedef typename std::stack<T>::container_type::const_iterator const_iterator;
typedef typename std::stac... | 33.166667 | 98 | 0.691792 | kotabrog |
bb5d6b464d756f20311a5895324bb33bb629734d | 789 | hpp | C++ | include/depthai-shared/datatype/RawImgDetections.hpp | kamleshbhalui/depthai-shared | 28da84fc8a81b8d692d801924598ce9cb34ac761 | [
"MIT"
] | null | null | null | include/depthai-shared/datatype/RawImgDetections.hpp | kamleshbhalui/depthai-shared | 28da84fc8a81b8d692d801924598ce9cb34ac761 | [
"MIT"
] | null | null | null | include/depthai-shared/datatype/RawImgDetections.hpp | kamleshbhalui/depthai-shared | 28da84fc8a81b8d692d801924598ce9cb34ac761 | [
"MIT"
] | null | null | null | #pragma once
#include "RawBuffer.hpp"
#include "depthai-shared/common/Point3f.hpp"
#include "depthai-shared/utility/Serialization.hpp"
namespace dai {
/// ImgDetection structure
struct ImgDetection {
uint32_t label;
float confidence;
float xmin;
float ymin;
float xmax;
float ymax;
};
DEPTHAI... | 23.205882 | 96 | 0.721166 | kamleshbhalui |
bb5e18cb03423ed0c63210d105648ad672af010c | 1,933 | cpp | C++ | luogu/codes/P3367_test.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | 1 | 2021-02-22T03:39:24.000Z | 2021-02-22T03:39:24.000Z | luogu/codes/P3367_test.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | luogu/codes/P3367_test.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | /*************************************************************
* > File Name : P3367_test.cpp
* > Author : Tony
* > Created Time : 2019/09/21 17:57:40
* > Algorithm : ufs
**************************************************************/
#include <bits/stdc++.h>
using namespace std;
i... | 22.476744 | 65 | 0.366787 | Tony031218 |
bb62529e61fbb71d6159ef513dec02bdd9fb7f1d | 1,155 | hpp | C++ | src/core/simulate/src/duneini.hpp | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 4 | 2019-07-18T15:05:09.000Z | 2020-03-14T09:50:07.000Z | src/core/simulate/src/duneini.hpp | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 418 | 2020-10-08T07:42:27.000Z | 2022-03-08T12:10:52.000Z | src/core/simulate/src/duneini.hpp | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 2 | 2021-09-02T11:20:38.000Z | 2021-10-13T14:05:32.000Z | // DUNE-copasi ini file generation
// - iniFile class: simple ini file generation one line at a time
#pragma once
#include <QString>
namespace sme {
namespace simulate {
class IniFile {
private:
QString text;
public:
[[nodiscard]] const QString &getText() const;
void addSection(const QString &str);
void ... | 30.394737 | 80 | 0.678788 | henryiii |
bb6390187f9d91bd014cba5bad92977c4504e2fa | 370 | cpp | C++ | console/src/boost_1_78_0/libs/config/test/boost_override_test.cpp | vany152/FilesHash | 39f282807b7f1abc56dac389e8259ee3bb557a8d | [
"MIT"
] | 106 | 2015-08-07T04:23:50.000Z | 2020-12-27T18:25:15.000Z | console/src/boost_1_78_0/libs/config/test/boost_override_test.cpp | vany152/FilesHash | 39f282807b7f1abc56dac389e8259ee3bb557a8d | [
"MIT"
] | 130 | 2016-06-22T22:11:25.000Z | 2020-11-29T20:24:09.000Z | Libs/boost_1_76_0/libs/config/test/boost_override_test.cpp | Antd23rus/S2DE | 47cc7151c2934cd8f0399a9856c1e54894571553 | [
"MIT"
] | 41 | 2015-07-08T19:18:35.000Z | 2021-01-14T16:39:56.000Z | /*
Copyright 2020 Glen Joseph Fernandes
(glenjofe@gmail.com)
Distributed under Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/config.hpp>
struct base {
virtual void first() = 0;
virtual void second() { }
};
struct derived
: base {
void first() BOOST_OVE... | 18.5 | 54 | 0.678378 | vany152 |
bb68cf75ac974a6789efbd2bba88b89579f7e0c2 | 3,673 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/plugins/valgrind/callgrind/callgrindfunctioncycle.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/src/plugins/valgrind/callgrind/callgrindfunctioncycle.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/src/plugins/valgrind/callgrind/callgrindfunctioncycle.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 32.794643 | 80 | 0.653689 | kevinlq |
bb69645df5e1abe2569d8ad5f7f17cdf983facac | 8,404 | cc | C++ | src/net/cert/ev_root_ca_metadata_unittest.cc | godfo/naiveproxy | 369269a12832bf34bf01c7b0e7ca121555abd3eb | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | src/net/cert/ev_root_ca_metadata_unittest.cc | wclmgcd/naiveproxy | e32a3afb76fd21207c322f2d5e794c4f5505fb59 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | src/net/cert/ev_root_ca_metadata_unittest.cc | wclmgcd/naiveproxy | e32a3afb76fd21207c322f2d5e794c4f5505fb59 | [
"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 "net/cert/ev_root_ca_metadata.h"
#include "build/build_config.h"
#include "net/cert/x509_cert_types.h"
#include "net/der/input.h"
#include "... | 34.584362 | 80 | 0.73108 | godfo |
bb69dbd249724d064cb803ab3e6389c54b515455 | 1,692 | hpp | C++ | src/SingleLayerOptics/src/BaseCell.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/SingleLayerOptics/src/BaseCell.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/SingleLayerOptics/src/BaseCell.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #ifndef BASECELL_H
#define BASECELL_H
#include <memory>
#include <vector>
namespace FenestrationCommon {
enum class Side;
class CSeries;
}
namespace SingleLayerOptics {
class CMaterial;
class ICellDescription;
class CBeamDirection;
// Handles optical layer "cell". Base behavior is to calculate specular (di... | 30.214286 | 109 | 0.72104 | bakonyidani |
bb6e6836a82cfab2293892d87697c52e711d0956 | 561 | hpp | C++ | src/xmesh.d/cramer3.hpp | naruto2/CodeFEM | eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90 | [
"MIT"
] | 1 | 2020-09-27T07:28:04.000Z | 2020-09-27T07:28:04.000Z | src/xmesh.d/cramer3.hpp | naruto2/CodeFEM | eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90 | [
"MIT"
] | null | null | null | src/xmesh.d/cramer3.hpp | naruto2/CodeFEM | eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90 | [
"MIT"
] | null | null | null | #ifndef CRAMER3_HPP_
#define CRAMER3_HPP_
#include "sarrus.hpp"
template<class Real>
void cramer3(Real *px,Real *py,Real *pz,
Real a11,Real a12,Real a13,
Real a21,Real a22,Real a23,
Real a31,Real a32,Real a33,
Real b1,Real b2, Real b3 )
{ Real det;
*px = sarrus(b1 ,a12,a13, b2 ,a22... | 28.05 | 54 | 0.614973 | naruto2 |
bb6f6a9899e7430bb2baa063d47f87f6d5d5fd8c | 2,446 | cc | C++ | smartag/src/model/ListDpiGroupsResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | smartag/src/model/ListDpiGroupsResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | smartag/src/model/ListDpiGroupsResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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... | 31.358974 | 104 | 0.769011 | aliyun |
bb80df157fd5d29ec9fecf367f679530b3722441 | 3,649 | cpp | C++ | 02-functions-and-libs/readerEx.02.09/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 81 | 2018-11-15T21:23:19.000Z | 2022-03-06T09:46:36.000Z | 02-functions-and-libs/readerEx.02.09/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | null | null | null | 02-functions-and-libs/readerEx.02.09/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 41 | 2018-11-15T21:23:24.000Z | 2022-02-24T03:02:26.000Z | //
// main.cpp
//
// This program implements the classic permutation function from
// statistics:
//
// P(n, k) = n! / (n - k)!
//
// in such a way as to avoid overflow for potentially large factorials.
//
// --------------------------------------------------------------------------
// Attribution: "Programming Abst... | 29.192 | 91 | 0.560702 | heavy3 |
bb82786b464cb26a5ff7bbbce7c227c9daf1cccc | 444 | hpp | C++ | xctest/xctest_process.hpp | daher-alfawares/xctest | 70a38a54e8d8229bd51182cf518a4a5ea3d4257f | [
"Apache-2.0"
] | 1 | 2017-12-08T22:35:28.000Z | 2017-12-08T22:35:28.000Z | xctest/xctest_process.hpp | daher-alfawares/xctest | 70a38a54e8d8229bd51182cf518a4a5ea3d4257f | [
"Apache-2.0"
] | null | null | null | xctest/xctest_process.hpp | daher-alfawares/xctest | 70a38a54e8d8229bd51182cf518a4a5ea3d4257f | [
"Apache-2.0"
] | null | null | null | //
// xctest_process.hpp
// xctest
//
// Created by Daher Alfawares on 8/29/17.
// Copyright © 2017 Daher Alfawares. All rights reserved.
//
#ifndef xctest_process_hpp
#define xctest_process_hpp
#include <string>
#include <sstream>
namespace xctest {
class process {
public:
process(std::string pr... | 17.076923 | 58 | 0.655405 | daher-alfawares |
bb844b3252df0c53e5516622c90cd5c446e4edd0 | 5,759 | cpp | C++ | jni/src/java-m3g-common.cpp | bryan10328/java-m3g | 571baeae7be590b78a0f73a5d5e58506b5525446 | [
"MIT"
] | 2 | 2017-03-19T09:00:45.000Z | 2021-01-17T13:25:56.000Z | jni/src/java-m3g-common.cpp | bryan10328/java-m3g | 571baeae7be590b78a0f73a5d5e58506b5525446 | [
"MIT"
] | null | null | null | jni/src/java-m3g-common.cpp | bryan10328/java-m3g | 571baeae7be590b78a0f73a5d5e58506b5525446 | [
"MIT"
] | 3 | 2017-01-31T17:25:06.000Z | 2017-07-12T10:11:03.000Z | #include <jni.h>
#include <iostream>
#include <typeinfo>
#include "m3g/m3g.hpp"
#include "java-Loader.hpp"
#include "java-m3g-common.hpp"
using namespace m3g;
using namespace std;
void* getNativePointer (JNIEnv* env, jobject obj)
{
if (obj == 0) {
return NULL;
}
jclass clazz = env->GetObjectC... | 28.369458 | 78 | 0.624761 | bryan10328 |
bb9445bddc9e50bb7b8b0b482dd231dd0ce8bed0 | 611 | cpp | C++ | engine/calculators/source/unit_tests/SpellboundCalculator_test.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/calculators/source/unit_tests/SpellboundCalculator_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/calculators/source/unit_tests/SpellboundCalculator_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "gtest/gtest.h"
TEST(SW_World_Calculator_SpellboundCalculator, calc_pct_chance_spellbound)
{
CreaturePtr creature = std::make_shared<Creature>();
creature->set_willpower(3);
creature->get_resistances().set_resistance_value(DamageType::DAMAGE_TYPE_ARCANE, 1.0);
SpellboundCalculator sc;
EXPECT_EQ... | 26.565217 | 88 | 0.792144 | sidav |
bb95d7ec8196807f1ca1519a45c555327be12565 | 1,605 | hpp | C++ | include/ecs/RigidBodyObjectComponent.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/ecs/RigidBodyObjectComponent.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/ecs/RigidBodyObjectComponent.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | 1 | 2019-06-11T03:41:48.000Z | 2019-06-11T03:41:48.000Z | #ifndef RIGIDBODYOBJECTCOMPONENT_H_
#define RIGIDBODYOBJECTCOMPONENT_H_
#include "physics/CollisionShapeHandle.hpp"
#include "physics/RigidBodyObjectHandle.hpp"
#include "serialization/Serialization.hpp"
namespace ice_engine
{
namespace ecs
{
struct RigidBodyObjectComponent
{
RigidBodyObjectComponent() = default;
... | 23.602941 | 184 | 0.8 | icebreakersentertainment |
bba3e41b6d4ffffcaeaea2cb27e00546c6b987c7 | 8,843 | cpp | C++ | allofw.node/src/node_sharedmemory.cpp | donghaoren/AllofwModule | 4367327cda0605aad53469294ed8751f8befbdc3 | [
"Unlicense"
] | 3 | 2016-05-04T23:23:48.000Z | 2021-08-03T21:48:07.000Z | allofw.node/src/node_sharedmemory.cpp | donghaoren/AllofwModule | 4367327cda0605aad53469294ed8751f8befbdc3 | [
"Unlicense"
] | null | null | null | allofw.node/src/node_sharedmemory.cpp | donghaoren/AllofwModule | 4367327cda0605aad53469294ed8751f8befbdc3 | [
"Unlicense"
] | 2 | 2016-01-31T04:06:51.000Z | 2016-09-30T16:38:36.000Z | #include <node.h>
#include <node_buffer.h>
#include <v8.h>
#include "node_sharedmemory.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/sem.h>
#include <stdexcept>
using namespace v8;
void NODE_SharedMemory::Init(Handle<Object> exports) {
Local<FunctionTempl... | 34.952569 | 137 | 0.622979 | donghaoren |
bbaec392dfb693c4adc22fe7d91aac984a4cefd7 | 6,591 | cpp | C++ | source/octoon-hal/OpenGL 30/gl30_texture.cpp | naeioi/octoon | e32152fe4730fa609def41114613dbe067d31276 | [
"MIT"
] | null | null | null | source/octoon-hal/OpenGL 30/gl30_texture.cpp | naeioi/octoon | e32152fe4730fa609def41114613dbe067d31276 | [
"MIT"
] | null | null | null | source/octoon-hal/OpenGL 30/gl30_texture.cpp | naeioi/octoon | e32152fe4730fa609def41114613dbe067d31276 | [
"MIT"
] | null | null | null | #include "gl30_texture.h"
namespace octoon
{
namespace hal
{
OctoonImplementSubClass(GL30Texture, GraphicsTexture, "GL30Texture")
GL30Texture::GL30Texture() noexcept
: _texture(GL_NONE)
, _target(GL_INVALID_ENUM)
, _pbo(GL_NONE)
, _pboSize(0)
{
}
GL30Texture::~GL30Texture() noexcept
{
th... | 26.258964 | 132 | 0.656046 | naeioi |
bbb469bcc1e2ca6aa4d70e262070ee4eb862c92d | 23,128 | cpp | C++ | library/Java/Util/Vector/VectorTest.cpp | foodtiny/native | 9025d337c50951b2d31eb243d0b5414496171ea5 | [
"Zlib"
] | 19 | 2017-06-10T11:32:06.000Z | 2018-07-07T13:38:50.000Z | library/Java/Util/Vector/VectorTest.cpp | tinylife-io/native | 9025d337c50951b2d31eb243d0b5414496171ea5 | [
"Zlib"
] | 188 | 2017-06-10T19:45:18.000Z | 2018-07-27T16:52:21.000Z | library/Java/Util/Vector/VectorTest.cpp | foodtiny/native | 9025d337c50951b2d31eb243d0b5414496171ea5 | [
"Zlib"
] | 8 | 2017-06-23T06:59:16.000Z | 2018-07-19T11:38:24.000Z | /**
* Copyright (c) 2016 Tiny Express Project. 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 condit... | 27.698204 | 101 | 0.642987 | foodtiny |
bbb58ffceb8ecdb195da3b9189229bcc639e5b98 | 865 | hpp | C++ | src/lib/storage/proxy_chunk.hpp | nilsthamm/hyrise | 75a701f281bb7dc1636832012c43005ec3c66384 | [
"MIT"
] | 2 | 2019-01-22T19:44:32.000Z | 2019-01-22T19:52:33.000Z | src/lib/storage/proxy_chunk.hpp | nilsthamm/hyrise | 75a701f281bb7dc1636832012c43005ec3c66384 | [
"MIT"
] | 33 | 2019-02-02T09:52:50.000Z | 2019-03-07T13:14:40.000Z | src/lib/storage/proxy_chunk.hpp | nilsthamm/hyrise | 75a701f281bb7dc1636832012c43005ec3c66384 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #pragma once
#include <algorithm>
#include <atomic>
#include <memory>
#include "chunk.hpp"
namespace opossum {
// The ProxyChunk class wraps chunk objects and implements the RAII pattern
// to track the time a particular chunk has been in scope. These times are
// measured using the RDTSC instructions and are store... | 25.441176 | 79 | 0.730636 | nilsthamm |
bbb7a7fdb37b7082341295665bff96c2d5a148cb | 376 | cpp | C++ | 2021/05/02/jh20s/Biweekly Contest 49/1815.cpp | jh20s/stupid-week-2021 | 790d9a361ce708ea3e3dad33a5dc2d5549482a9b | [
"MIT"
] | 28 | 2020-12-21T16:16:55.000Z | 2022-02-08T08:20:55.000Z | 2021/05/02/jh20s/Biweekly Contest 49/1815.cpp | jh20s/stupid-week-2021 | 790d9a361ce708ea3e3dad33a5dc2d5549482a9b | [
"MIT"
] | 98 | 2021-01-01T11:07:02.000Z | 2021-08-28T06:49:43.000Z | 2021/05/02/jh20s/Biweekly Contest 49/1815.cpp | jh20s/stupid-week-2021 | 790d9a361ce708ea3e3dad33a5dc2d5549482a9b | [
"MIT"
] | 37 | 2021-01-02T07:44:28.000Z | 2021-11-01T03:51:16.000Z | class Solution {
public:
int rev(int num) {
int ret = 0;
while (num) {
ret = ret * 10 + num % 10;
num /= 10;
}
return ret;
}
int countNicePairs(vector<int>& nums) {
int ret = 0;
vector<int> v;
map<int, int> m;
for (int i = 0; i < nums.size(); i++) {
int f = nums[i] - rev(nums[i]);
if(m.count(f))
ret... | 15.666667 | 40 | 0.539894 | jh20s |
bbb80428e65e149720126a5b2579d9d28ac55014 | 2,088 | cpp | C++ | svntrunk/src/BlueMatter/bringup/tenrootl/call_tenrootl.cpp | Bhaskers-Blu-Org1/BlueMatter | 1ab2c41af870c19e2e1b1095edd1d5c85eeb9b5e | [
"BSD-2-Clause"
] | 7 | 2020-02-25T15:46:18.000Z | 2022-02-25T07:04:47.000Z | svntrunk/src/BlueMatter/bringup/tenrootl/call_tenrootl.cpp | IBM/BlueMatter | 5243c0ef119e599fc3e9b7c4213ecfe837de59f3 | [
"BSD-2-Clause"
] | null | null | null | svntrunk/src/BlueMatter/bringup/tenrootl/call_tenrootl.cpp | IBM/BlueMatter | 5243c0ef119e599fc3e9b7c4213ecfe837de59f3 | [
"BSD-2-Clause"
] | 5 | 2019-06-06T16:30:21.000Z | 2020-11-16T19:43:01.000Z | /* Copyright 2001, 2019 IBM Corporation
*
* 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, this list of conditions and the
* following d... | 34.8 | 118 | 0.704502 | Bhaskers-Blu-Org1 |
c7d96742855a437a4b4b4de2b8eca08defde13c4 | 4,014 | cc | C++ | multibody/fem/dev/linear_constitutive_model.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 2 | 2021-02-25T02:01:02.000Z | 2021-03-17T04:52:04.000Z | multibody/fem/dev/linear_constitutive_model.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | null | null | null | multibody/fem/dev/linear_constitutive_model.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 1 | 2021-06-13T12:05:39.000Z | 2021-06-13T12:05:39.000Z | #include "drake/multibody/fem/dev/linear_constitutive_model.h"
#include "drake/common/unused.h"
namespace drake {
namespace multibody {
namespace fem {
template <typename T>
LinearConstitutiveModel<T>::LinearConstitutiveModel(const T& youngs_modulus,
const T& poisso... | 36.825688 | 79 | 0.661684 | RobotLocomotion |
c7dd3e1073c647dae2f1ffc4c27ae24be1714020 | 4,029 | hxx | C++ | include/itkSinusoidImageSource.hxx | dzenanz/ITKPhaseSymmetry | 0b6993c4f7d1d48db110d145f6f2b22c84e5f2dd | [
"Apache-2.0"
] | null | null | null | include/itkSinusoidImageSource.hxx | dzenanz/ITKPhaseSymmetry | 0b6993c4f7d1d48db110d145f6f2b22c84e5f2dd | [
"Apache-2.0"
] | null | null | null | include/itkSinusoidImageSource.hxx | dzenanz/ITKPhaseSymmetry | 0b6993c4f7d1d48db110d145f6f2b22c84e5f2dd | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 28.778571 | 112 | 0.704641 | dzenanz |
c7de81427d353d552d641dd888d213754632c4ce | 2,083 | cpp | C++ | oactobjs32/piadata/pib54ame.cpp | codeforboston/anypia-emscripten | d4d1d154bae6b97acc619d5588d9a7515d220338 | [
"CC0-1.0"
] | 1 | 2020-09-23T21:46:55.000Z | 2020-09-23T21:46:55.000Z | oactobjs32/piadata/pib54ame.cpp | codeforboston/anypia-emscripten | d4d1d154bae6b97acc619d5588d9a7515d220338 | [
"CC0-1.0"
] | 16 | 2020-05-07T18:53:55.000Z | 2021-03-24T03:16:29.000Z | oactobjs32/piadata/pib54ame.cpp | codeforboston/anypia-emscripten | d4d1d154bae6b97acc619d5588d9a7515d220338 | [
"CC0-1.0"
] | 6 | 2020-04-19T23:04:22.000Z | 2021-03-17T01:40:10.000Z | // Functions for the <see cref=Pib54Ame"/> class to handle 1954 pib-ame
// conversion table.
//
// $Id: pib54ame.cpp 1.2 2011/08/08 08:45:12EDT 044579 Development $
#include "pibtable.h"
#include "Resource.h"
#include "PiaException.h"
// <summary>The 1954 ame's.</summary>
const double Pib54Ame::ame54[] = {... | 40.843137 | 75 | 0.550648 | codeforboston |
c7e2b142c61337ac424a2697289efb0f88c05745 | 700 | cpp | C++ | Patterns/In-placeTraversalOfLinkedList/61_rotate_list.cpp | xtstc131/mall0x_Leetcode | db528f2a78808d4123785c35218cce00906166dd | [
"MIT"
] | 1 | 2019-12-25T16:19:21.000Z | 2019-12-25T16:19:21.000Z | Patterns/In-placeTraversalOfLinkedList/61_rotate_list.cpp | xtstc131/mall0x_Leetcode | db528f2a78808d4123785c35218cce00906166dd | [
"MIT"
] | null | null | null | Patterns/In-placeTraversalOfLinkedList/61_rotate_list.cpp | xtstc131/mall0x_Leetcode | db528f2a78808d4123785c35218cce00906166dd | [
"MIT"
] | null | null | null | #include "header.hpp"
// Definition for singly-linked list.
struct ListNode
{
int val;
ListNode *next;
ListNode(int x) : val(x), next(nullptr) {}
};
class Solution {
public:
ListNode* rotateRight(ListNode* head, int k) {
if (!head || !head->next || k == 0) return head;
int len = 1;
... | 21.875 | 58 | 0.46 | xtstc131 |
c7e6e0996cfa865dad7cda2a18032633634b558d | 229 | hpp | C++ | shift/scene/public/shift/scene/renderer.hpp | cspanier/shift | 5b3b9be310155fbc57d165d06259b723a5728828 | [
"Apache-2.0"
] | 2 | 2018-11-28T18:14:08.000Z | 2020-08-06T07:44:36.000Z | shift/scene/public/shift/scene/renderer.hpp | cspanier/shift | 5b3b9be310155fbc57d165d06259b723a5728828 | [
"Apache-2.0"
] | 4 | 2018-11-06T21:01:05.000Z | 2019-02-19T07:52:52.000Z | shift/scene/public/shift/scene/renderer.hpp | cspanier/shift | 5b3b9be310155fbc57d165d06259b723a5728828 | [
"Apache-2.0"
] | null | null | null | #ifndef SHIFT_SCENE_RENDERER_HPP
#define SHIFT_SCENE_RENDERER_HPP
#include <shift/core/abstract_factory.hpp>
#include "shift/scene/entity.hpp"
namespace shift
{
namespace scene
{
class renderer
{
public:
};
}
}
#endif
| 12.052632 | 42 | 0.755459 | cspanier |
c7e89a5a4fc5e5b72177e859d8b346950962a287 | 699 | cpp | C++ | Leetcode/0295. Find Median from Data Stream/0295.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0295. Find Median from Data Stream/0295.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0295. Find Median from Data Stream/0295.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class MedianFinder {
public:
void addNum(int num) {
if (maxHeap.empty() || num <= maxHeap.top())
maxHeap.push(num);
else
minHeap.push(num);
// balance two heaps s.t.
// |maxHeap| >= |minHeap| and |maxHeap| - |minHeap| <= 1
if (maxHeap.size() < minHeap.size())
maxHeap.push(minHe... | 25.888889 | 60 | 0.596567 | Next-Gen-UI |
c7e997c0a28d55fdded483a918e29e51687e3406 | 4,202 | cc | C++ | permut/permut.cc | alex4747-pub/scratchpad | 507c16adf50e0abe7abbbbc6cc093736b939b8d5 | [
"MIT"
] | null | null | null | permut/permut.cc | alex4747-pub/scratchpad | 507c16adf50e0abe7abbbbc6cc093736b939b8d5 | [
"MIT"
] | null | null | null | permut/permut.cc | alex4747-pub/scratchpad | 507c16adf50e0abe7abbbbc6cc093736b939b8d5 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cassert>
#include <functional>
#include <iostream>
#include <vector>
static void PrintVec(std::vector<int> const& vec) {
if (vec.empty()) {
return;
}
auto cit = vec.cbegin();
std::cout << (*cit++);
while(cit != vec.cend()) {
std::cout <<... | 24.289017 | 83 | 0.52237 | alex4747-pub |
c7e9d675a3c91d828b88549fb83a06912575a227 | 2,095 | cpp | C++ | example/rpc/rpc_client.cpp | gatsbyd/HPNL | 8e95eef4cb076292b9cf4d88bbb59b37d7beb4eb | [
"MIT"
] | 38 | 2019-12-07T04:51:36.000Z | 2022-03-04T03:17:46.000Z | example/rpc/rpc_client.cpp | gatsbyd/HPNL | 8e95eef4cb076292b9cf4d88bbb59b37d7beb4eb | [
"MIT"
] | 1 | 2020-07-02T03:55:53.000Z | 2020-07-02T03:55:53.000Z | example/rpc/rpc_client.cpp | gatsbyd/HPNL | 8e95eef4cb076292b9cf4d88bbb59b37d7beb4eb | [
"MIT"
] | 10 | 2019-12-21T08:44:36.000Z | 2022-02-14T14:09:14.000Z | #include "echo.pb.h"
#include "args.pb.h"
#include "Log.h"
#include "rpc/RpcClient.h"
#include <assert.h>
#include <stdio.h>
#include <memory>
using namespace melon;
using namespace melon::rpc;
using namespace cherry;
std::shared_ptr<RequestAppendArgs> constructAppendArgs() {
std::shared_ptr<RequestAppendArgs> appe... | 27.565789 | 110 | 0.715513 | gatsbyd |
c7ea61af89a54d524bec5cf158112fb0777bd136 | 3,674 | cpp | C++ | voronoiFinal - working/Box.cpp | mcastorena/voronoi | 09c0d934c7da78d8e53688d81cddf9423a5e904c | [
"MIT"
] | null | null | null | voronoiFinal - working/Box.cpp | mcastorena/voronoi | 09c0d934c7da78d8e53688d81cddf9423a5e904c | [
"MIT"
] | null | null | null | voronoiFinal - working/Box.cpp | mcastorena/voronoi | 09c0d934c7da78d8e53688d81cddf9423a5e904c | [
"MIT"
] | null | null | null | #include "Box.h"
#include "doubleArray.h"
#define INFINITY ((unsigned) ~0)
bool Box::contains(const Vector2& point) const
{
return point.x >= left - EPSILON && point.x <= right + EPSILON &&
point.y >= bottom - EPSILON && point.y <= top + EPSILON;
}
Box::Intersection Box::getFirstIntersection(const Vec... | 33.706422 | 115 | 0.534567 | mcastorena |
c7eaf987990ab215dffe455ff117a0ae72b4b4e4 | 583 | cpp | C++ | Online-Judge-Solution/Codeforces Solutions/91(A.Lucky Division).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/Codeforces Solutions/91(A.Lucky Division).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/Codeforces Solutions/91(A.Lucky Division).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,r,k,i,count;
while(cin>>n)
{
k=count=0;
if(n%4==0 || n%7==0 || n%44==0 || n%47==0 || n%444==0 || n%447==0 || n%474==0)
cout<<"YES"<<endl;
else
{
while(n!=0)
{
r... | 20.821429 | 86 | 0.324185 | arifparvez14 |
c7ecaae102772a23104ab10cdbb4091186a1391e | 4,212 | cpp | C++ | src/DefaultPropertyControl.cpp | TimoKunze/ExplorerListView | 8bc0299b7d58def5393527f518fd857f5122b42d | [
"MIT"
] | 2 | 2019-12-12T08:12:28.000Z | 2020-10-02T09:56:48.000Z | src/DefaultPropertyControl.cpp | TimoKunze/ExplorerListView | 8bc0299b7d58def5393527f518fd857f5122b42d | [
"MIT"
] | null | null | null | src/DefaultPropertyControl.cpp | TimoKunze/ExplorerListView | 8bc0299b7d58def5393527f518fd857f5122b42d | [
"MIT"
] | 1 | 2021-12-09T18:20:14.000Z | 2021-12-09T18:20:14.000Z | // DefaultPropertyControl.cpp: Default implementation of the IPropertyControl interface
#include "stdafx.h"
#include "DefaultPropertyControl.h"
#ifdef INCLUDESUBITEMCALLBACKCODE
DefaultPropertyControl::Properties::~Properties()
{
if(pOwnerExLvw) {
pOwnerExLvw->Release();
}
}
////////////////////////////... | 25.527273 | 162 | 0.695157 | TimoKunze |
c7ee8d62dd43437da0809c73ce16a9384628a35e | 1,502 | cpp | C++ | 1 sem/10 week/1 problem/1 problem/test.cpp | resueman/HW_Sem1 | f096c7b026ce13ec4b7df5c9bea980a33697e60a | [
"Apache-2.0"
] | null | null | null | 1 sem/10 week/1 problem/1 problem/test.cpp | resueman/HW_Sem1 | f096c7b026ce13ec4b7df5c9bea980a33697e60a | [
"Apache-2.0"
] | 1 | 2018-11-22T14:14:55.000Z | 2018-11-22T14:14:55.000Z | 1 sem/10 week/1 problem/1 problem/test.cpp | resueman/HW_Sem1 | f096c7b026ce13ec4b7df5c9bea980a33697e60a | [
"Apache-2.0"
] | null | null | null | #include "test.h"
#include "readFromFile.h"
#include <iostream>
using namespace std;
bool test()
{
set<int> noStateVertecies;
vector<int> states;
//Test1
Graph* graph1 = createGraph();
readFromFile("test1.txt", graph1, states, noStateVertecies);
distributeCities(graph1, states, noStateVertecies);
vector<int>... | 23.46875 | 64 | 0.693076 | resueman |
c7f1f5cfbfd989f07df8a6028962e794a27e539c | 1,237 | hpp | C++ | src/include/framework/accessmode.hpp | achreto/fm-translation-framework | a46afcc43f94c8a224f32fcad988a830689a9256 | [
"MIT"
] | null | null | null | src/include/framework/accessmode.hpp | achreto/fm-translation-framework | a46afcc43f94c8a224f32fcad988a830689a9256 | [
"MIT"
] | null | null | null | src/include/framework/accessmode.hpp | achreto/fm-translation-framework | a46afcc43f94c8a224f32fcad988a830689a9256 | [
"MIT"
] | null | null | null | /**
* The Access Modes and Permissions
*
* SPDX-License-Identifier: MIT
*
* Copyright (C) 2022, Reto Achermann (The University of British Columbia)
*/
#ifndef _ACCESS_MODE_H_
#define _ACCESS_MODE_H_ 1
// access permissions
#define ACCESS_PERMISSION_USER_READ (1 << 0)
#define ACCESS_PERMISSION_USER_WRITE (1 ... | 30.925 | 74 | 0.765562 | achreto |
c7f31c7004107a2509705e742e916f694f0ecde1 | 977 | cpp | C++ | suanfake/HanoiTower.cpp | Leon-Francis/AlgorithmPractice | bfff066da64ebbb00ecd33d94ebbe5bcc382867c | [
"MIT"
] | 1 | 2020-10-07T12:03:12.000Z | 2020-10-07T12:03:12.000Z | suanfake/HanoiTower.cpp | Leon-Francis/AlgorithmPractice | bfff066da64ebbb00ecd33d94ebbe5bcc382867c | [
"MIT"
] | null | null | null | suanfake/HanoiTower.cpp | Leon-Francis/AlgorithmPractice | bfff066da64ebbb00ecd33d94ebbe5bcc382867c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void MoveTowers(int n, int tower1[52], int tower2[52], int tower3[52])
{
if (n == 1)
{
int temp = tower1[--tower1[1]];
tower3[tower3[1]++] = temp;
cout << "move disk " << temp << " from tower " << tower1[0] << " to tower " << tower3[0] << endl;
... | 25.710526 | 105 | 0.502559 | Leon-Francis |
c7f48b90476d9273a83a835e825a587bc26d085e | 7,212 | cpp | C++ | CodeXL/Components/ShaderAnalyzer/AMDTBackEnd/Emulator/Parser/ParserSIVOP.cpp | jeongjoonyoo/CodeXL | ea6d623d0530aa3a862ef0bf60ad2923a2f8f8a5 | [
"MIT"
] | 1,025 | 2016-04-19T21:36:08.000Z | 2020-04-26T05:12:53.000Z | RadeonGPUAnalyzerBackend/Emulator/Parser/ParserSIVOP.cpp | Acidburn0zzz/RGA | 35cd028602e21f6b8853fdc86b16153b693acb72 | [
"MIT"
] | 244 | 2016-04-20T02:05:43.000Z | 2020-04-29T17:40:49.000Z | RadeonGPUAnalyzerBackend/Emulator/Parser/ParserSIVOP.cpp | Acidburn0zzz/RGA | 35cd028602e21f6b8853fdc86b16153b693acb72 | [
"MIT"
] | 161 | 2016-04-20T03:23:53.000Z | 2020-04-14T01:46:55.000Z | #include "ParserSIVOP.h"
ParserSI::kaStatus
ParserSIVOP::Parse(GDT_HW_GENERATION hwGen, Instruction::instruction32bit hexInstruction, Instruction*& instruction, bool, uint32_t, int iLabel /*=NO_LABEL*/ , int iGotoLabel /*=NO_LABEL*/)
{
kaStatus retStatus = ParserSI::Status_32BitInstructionNotSupported;
VOPIn... | 40.290503 | 189 | 0.655713 | jeongjoonyoo |
c7f5d37f2f9affbcdd465c9f91e8781534c13646 | 5,801 | cpp | C++ | pytorch/torch/csrc/jit/codegen/cuda/ir_base_nodes.cpp | zhou3968322/dl-code-read | aca204a986dabe2755becff0f42de1082299d791 | [
"MIT"
] | null | null | null | pytorch/torch/csrc/jit/codegen/cuda/ir_base_nodes.cpp | zhou3968322/dl-code-read | aca204a986dabe2755becff0f42de1082299d791 | [
"MIT"
] | null | null | null | pytorch/torch/csrc/jit/codegen/cuda/ir_base_nodes.cpp | zhou3968322/dl-code-read | aca204a986dabe2755becff0f42de1082299d791 | [
"MIT"
] | null | null | null |
#include <torch/csrc/jit/codegen/cuda/dispatch.h>
#include <torch/csrc/jit/codegen/cuda/fusion.h>
#include <torch/csrc/jit/codegen/cuda/ir_all_nodes.h>
#include <torch/csrc/jit/codegen/cuda/ir_cloner.h>
#include <torch/csrc/jit/codegen/cuda/ir_printer.h>
#include <torch/csrc/jit/codegen/cuda/mutator.h>
#include <torc... | 25.331878 | 80 | 0.649198 | zhou3968322 |
c7f67ff450e18a1e3a905a4e42055e19347c62d5 | 919 | cc | C++ | pw_rpc/client_call.cc | curtin-space/pigweed | fe2e1743e03fabd2676f01d9de0ac9d34a426076 | [
"Apache-2.0"
] | 86 | 2021-03-09T23:49:40.000Z | 2022-03-30T08:14:51.000Z | pw_rpc/client_call.cc | curtin-space/pigweed | fe2e1743e03fabd2676f01d9de0ac9d34a426076 | [
"Apache-2.0"
] | 4 | 2021-07-27T20:32:03.000Z | 2022-03-08T10:39:07.000Z | pw_rpc/client_call.cc | curtin-space/pigweed | fe2e1743e03fabd2676f01d9de0ac9d34a426076 | [
"Apache-2.0"
] | 22 | 2021-03-11T15:15:47.000Z | 2022-02-09T06:16:36.000Z | // Copyright 2021 The Pigweed 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | 32.821429 | 80 | 0.73123 | curtin-space |
c7f72e6d15db91277c9f4fb1210e6213dd14a20e | 791 | cpp | C++ | Codeforces/1618A-polycarp-and-sums-of-subsequences.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | Codeforces/1618A-polycarp-and-sums-of-subsequences.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | Codeforces/1618A-polycarp-and-sums-of-subsequences.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | /*
author: Susmoy Sen Gupta
email: susmoy.cse@gmail.com
github: github.com/SusmoySenGupta
Judge: Codeforces
problem no: 1618A
problem name: Polycarp and Sums of Subsequences
problem link: https://codeforces.com/problemset/problem/1618/A
Status: ____
Solved at: __
*/
#include <iost... | 16.142857 | 100 | 0.60177 | SusmoySenGupta |
c7f84d6a17f9d22101dfbad974788699083da3f0 | 7,462 | cc | C++ | src/htsim/flow_driver.cc | ngvozdiev/ncode | 269573ee651f3b5e13d323ee747fede244d47564 | [
"Apache-2.0"
] | null | null | null | src/htsim/flow_driver.cc | ngvozdiev/ncode | 269573ee651f3b5e13d323ee747fede244d47564 | [
"Apache-2.0"
] | null | null | null | src/htsim/flow_driver.cc | ngvozdiev/ncode | 269573ee651f3b5e13d323ee747fede244d47564 | [
"Apache-2.0"
] | null | null | null | #include "flow_driver.h"
#include <algorithm>
#include <limits>
#include "../common/logging.h"
#include "packet.h"
namespace ncode {
namespace htsim {
void ManualFlowDriver::AddData(const std::vector<AddDataEvent>& events) {
add_data_events_.insert(add_data_events_.end(), events.begin(), events.end());
std::sta... | 30.581967 | 80 | 0.713214 | ngvozdiev |
c7fbd92e7d4db60613a9ef434077b074ab2335ca | 37,463 | hpp | C++ | include/tao/algorithm/adjacent_swap.hpp | tao-cpp/algorithm | 156655aed1c522a3386cb82fb4aa2b3a302ee7e8 | [
"MIT"
] | 2 | 2017-01-13T09:20:58.000Z | 2019-06-28T15:27:13.000Z | include/tao/algorithm/adjacent_swap.hpp | tao-cpp/algorithm | 156655aed1c522a3386cb82fb4aa2b3a302ee7e8 | [
"MIT"
] | null | null | null | include/tao/algorithm/adjacent_swap.hpp | tao-cpp/algorithm | 156655aed1c522a3386cb82fb4aa2b3a302ee7e8 | [
"MIT"
] | 2 | 2017-05-31T12:05:26.000Z | 2019-10-13T22:36:32.000Z | //! \file tao/algorithm/adjacent_swap.hpp
// Tao.Algorithm
//
// Copyright (c) 2016-2021 Fernando Pelliccioni.
//
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef TAO_ALGORITHM_ADJACENT_SWAP_HPP_
#define TAO_ALGORITHM_ADJ... | 36.90936 | 117 | 0.564077 | tao-cpp |
c7fd68c3bb0e7f828e32f707a2c1f0769da5e05e | 26,218 | cpp | C++ | test/com/ComModTestAAF/ModuleTests/CAAFTypeDefWeakObjRefTest.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | test/com/ComModTestAAF/ModuleTests/CAAFTypeDefWeakObjRefTest.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | test/com/ComModTestAAF/ModuleTests/CAAFTypeDefWeakObjRefTest.cpp | Phygon/aaf | faef720e031f501190481e1d1fc1870a7dc8f98b | [
"Linux-OpenIB"
] | null | null | null | //=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... | 36.013736 | 117 | 0.729079 | Phygon |
c7fd6bb7f2d8e5953656243d97b5db63a9aeada5 | 5,321 | cpp | C++ | hw1/p2.cpp | andy0130tw/NTU-DSnP2015 | 38c883db0c94509819f6bd72bbc581bec42e18d7 | [
"MIT"
] | 6 | 2016-10-29T05:50:13.000Z | 2020-02-16T22:20:25.000Z | hw1/p2.cpp | andy0130tw/NTU-DSnP2015 | 38c883db0c94509819f6bd72bbc581bec42e18d7 | [
"MIT"
] | 1 | 2016-12-13T20:28:13.000Z | 2016-12-14T12:01:02.000Z | hw1/p2.cpp | andy0130tw/NTU-DSnP2015 | 38c883db0c94509819f6bd72bbc581bec42e18d7 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<iostream>
#include<iomanip>
#include<algorithm>
#include<vector>
#define UNDEF 9999
using namespace std;
class Data {
public:
Data(size_t s) {
_cols = new int[s];
}
const int operator[] (size_t i) const { return _cols[i]; }
int& operator[] (size_t i) { r... | 24.748837 | 78 | 0.430934 | andy0130tw |
c7fde809d3cae6496f625738bb68bf5e73b9de03 | 4,318 | hpp | C++ | src/game_api/savedata.hpp | estebanfer/overlunky | ffc41e7cc9bb6345942ed346f1a65a966fd0f39d | [
"MIT"
] | null | null | null | src/game_api/savedata.hpp | estebanfer/overlunky | ffc41e7cc9bb6345942ed346f1a65a966fd0f39d | [
"MIT"
] | null | null | null | src/game_api/savedata.hpp | estebanfer/overlunky | ffc41e7cc9bb6345942ed346f1a65a966fd0f39d | [
"MIT"
] | 1 | 2020-11-15T05:43:12.000Z | 2020-11-15T05:43:12.000Z | #pragma once
#include <array>
#include <cstdint>
#include "state_structs.hpp"
#pragma pack(push, 1)
struct SaveGameArenaRuleset
{
uint8_t unknown1;
uint8_t unknown12;
uint8_t timer;
uint8_t timer_ending;
uint8_t wins;
uint8_t lives;
uint8_t unknown7;
uint8_t unknown8;
std::array<... | 30.195804 | 189 | 0.695924 | estebanfer |
c7ff8d1ca5558b155a60f714ab2ab389ad30bd33 | 614 | hpp | C++ | include/boost/sml/policies.hpp | GuiCodron/sml | 2dab1265f87f70a2941af9de8f3f157df9a6a53f | [
"BSL-1.0"
] | 320 | 2020-07-03T18:58:34.000Z | 2022-03-31T05:31:44.000Z | include/boost/sml/policies.hpp | GuiCodron/sml | 2dab1265f87f70a2941af9de8f3f157df9a6a53f | [
"BSL-1.0"
] | 106 | 2020-06-30T15:03:00.000Z | 2022-03-31T10:42:38.000Z | include/boost/sml/policies.hpp | GuiCodron/sml | 2dab1265f87f70a2941af9de8f3f157df9a6a53f | [
"BSL-1.0"
] | 55 | 2020-07-10T12:32:49.000Z | 2022-03-14T07:12:28.000Z | #include "boost/sml/back/policies.hpp"
#include "boost/sml/front/actions/defer.hpp"
template <class T>
struct thread_safe : aux::pair<back::thread_safety_policy__, thread_safe<T>> {
using type = T;
};
template <template <class...> class T>
struct defer_queue : aux::pair<back::defer_queue_policy__, defer_queue<T>> {... | 25.583333 | 78 | 0.701954 | GuiCodron |
2a011b6bef490a13a1d357054abc7e639f9bdbff | 1,132 | cpp | C++ | UVA/vol-111/11110.cpp | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | 3 | 2017-05-12T14:45:37.000Z | 2020-01-18T16:51:25.000Z | UVA/vol-111/11110.cpp | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | null | null | null | UVA/vol-111/11110.cpp | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n; char A[120][120];
int dfs(int y, int x, char c) {
if (A[y][x] != c) return 0;
A[y][x] = -1;
int r = 1;
if (x > 0) r += dfs(y, x-1, c);
if (x<n-1) r += dfs(y, x+1, c);
if (y > 0) r += dfs(y-1, x, c);
if (y<n-1) r += dfs(y+1, x, c);
re... | 21.769231 | 49 | 0.373675 | arash16 |