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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
821b8e3f95259ea4b9ceb2574ab694b1ac210f3d | 20,558 | cc | C++ | u2fd/g2f_tools/g2f_client_test.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | null | null | null | u2fd/g2f_tools/g2f_client_test.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | null | null | null | u2fd/g2f_tools/g2f_client_test.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | // Copyright 2018 The Chromium OS 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 <algorithm>
#include <base/logging.h>
#include <base/strings/stringprintf.h>
#include <base/strings/string_number_conversions.h>
#include <gmo... | 29.243243 | 80 | 0.654636 | strassek |
821f44999ec58d8df9d789bdcfee8fb49c5c37a0 | 2,546 | hpp | C++ | include/Nazara/Core/Stream.hpp | NazaraEngine/NazaraEngine | 093d9d344e4459f40fc0119c8779673fa7e16428 | [
"MIT"
] | 11 | 2019-11-27T00:40:43.000Z | 2020-01-29T14:31:52.000Z | include/Nazara/Core/Stream.hpp | NazaraEngine/NazaraEngine | 093d9d344e4459f40fc0119c8779673fa7e16428 | [
"MIT"
] | 7 | 2019-11-27T00:29:08.000Z | 2020-01-08T18:53:39.000Z | include/Nazara/Core/Stream.hpp | NazaraEngine/NazaraEngine | 093d9d344e4459f40fc0119c8779673fa7e16428 | [
"MIT"
] | 7 | 2019-11-27T10:27:40.000Z | 2020-01-15T17:43:33.000Z | // Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_CORE_STREAM_HPP
#define NAZARA_CORE_STREAM_HPP
#include <Nazara/Prerequisites.hpp>
#in... | 29.264368 | 115 | 0.737235 | NazaraEngine |
8222ff5954619fc2fb0ca42c5acabd3f5937683e | 630 | cpp | C++ | src_ref/main.cpp | Joilnen/rge | df20a68a9f86239d9801fcd77f2131e8977a594e | [
"MIT"
] | null | null | null | src_ref/main.cpp | Joilnen/rge | df20a68a9f86239d9801fcd77f2131e8977a594e | [
"MIT"
] | null | null | null | src_ref/main.cpp | Joilnen/rge | df20a68a9f86239d9801fcd77f2131e8977a594e | [
"MIT"
] | null | null | null | #include "ECS.h"
#include "GameNode.h"
#include <string>
#include "Actor.h"
#include <OGRE/Ogre.h>
#include "GameManager.h"
#include "SceneManager.h"
#include "RootGame.h"
using namespace Ogre;
int main()
{
auto world { World::createWorld() };
auto gameSystem { world->registerSystem(new GameManager) };
a... | 21 | 80 | 0.684127 | Joilnen |
822830b1735e0c5b7bb432a56cc121a5749080a0 | 4,251 | cc | C++ | linkwan/src/model/GetNotificationResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | linkwan/src/model/GetNotificationResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | linkwan/src/model/GetNotificationResult.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... | 44.28125 | 115 | 0.78311 | aliyun |
8228d12f592107df1ad1433e86cc3713d187a42e | 671 | cpp | C++ | Array/Insertion Sort/Sol.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 19 | 2021-04-28T13:32:15.000Z | 2022-03-08T11:52:59.000Z | Array/Insertion Sort/Sol.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 17 | 2021-02-28T17:03:50.000Z | 2021-10-19T13:02:03.000Z | Array/Insertion Sort/Sol.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 27 | 2021-01-18T22:35:01.000Z | 2022-02-22T19:52:19.000Z | #include<iostream>
using namespace std;
class sort
{
private : int a[20],n,pos,i,j,temp;
public: void input();
void process();
void output();
};
void sort :: input()
{
cout<<"Input the number of array elements :"; cin>>n;
cout<<"Input "<<n<<" elements for the array:\n"; for(i=0;i<n;i+... | 13.156863 | 65 | 0.532042 | shouryagupta21 |
8228da25cc9470f59bc400927b0f7861f7ab7c82 | 1,356 | cc | C++ | melon/src/global.cc | hankai17/test | 8f38d999a7c6a92eac94b4d9dc8e444619d2144f | [
"MIT"
] | 7 | 2017-07-16T15:09:26.000Z | 2021-09-01T02:13:15.000Z | melon/src/global.cc | hankai17/test | 8f38d999a7c6a92eac94b4d9dc8e444619d2144f | [
"MIT"
] | null | null | null | melon/src/global.cc | hankai17/test | 8f38d999a7c6a92eac94b4d9dc8e444619d2144f | [
"MIT"
] | 3 | 2017-09-13T09:54:49.000Z | 2019-03-18T01:29:15.000Z | #include"global.hh"
#include"mtasker.hh"
#include"multiplex.hh"
void func_test(int fd, boost::any args) {
std::cout<<fd<<" hello world"<<endl;
}
extern MTasker<RWEvent>* MT;
extern FDMultiplexer* t_fdm;
// -1 is error, 0 is timeout, 1 is success
int asendtcp(const string& data, Socket* sock) {
int fd = sock->get_... | 26.076923 | 112 | 0.637906 | hankai17 |
822987537b56a0d7dcc43e424c62bb3f87ff087b | 552 | hh | C++ | RecoDataProducts/inc/ExtMonFNALRawClusterCollection.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2021-06-25T00:00:12.000Z | 2021-06-25T00:00:12.000Z | RecoDataProducts/inc/ExtMonFNALRawClusterCollection.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | RecoDataProducts/inc/ExtMonFNALRawClusterCollection.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | //
// $Id: ExtMonFNALRawClusterCollection.hh,v 1.1 2012/09/19 03:29:45 gandr Exp $
// $Author: gandr $
// $Date: 2012/09/19 03:29:45 $
//
// Original author Andrei Gaponenko
//
#ifndef RecoDataProducts_ExtMonFNALRawClusterCollection_hh
#define RecoDataProducts_ExtMonFNALRawClusterCollection_hh
#include <vector>
#incl... | 25.090909 | 79 | 0.791667 | bonventre |
822c3e1ef6546aa3c1decd5825dc3356fab5f086 | 8,036 | cc | C++ | third_party/WebKit/Source/platform/scheduler/renderer/budget_pool_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/platform/scheduler/renderer/budget_pool_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/platform/scheduler/renderer/budget_pool_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 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 "platform/scheduler/renderer/task_queue_throttler.h"
#include <stddef.h>
#include <memory>
#include "base/callback.h"
#include "base/macros.h"... | 42.073298 | 80 | 0.753484 | metux |
822f6162d32a407af7c9116c9d2a24d8cd8aed1e | 5,392 | hpp | C++ | PlayRho/Dynamics/Joints/TargetJoint.hpp | godinj/PlayRho | f6f19598a8fca67e10a574faa9bc732d1bd20a2e | [
"Zlib"
] | null | null | null | PlayRho/Dynamics/Joints/TargetJoint.hpp | godinj/PlayRho | f6f19598a8fca67e10a574faa9bc732d1bd20a2e | [
"Zlib"
] | null | null | null | PlayRho/Dynamics/Joints/TargetJoint.hpp | godinj/PlayRho | f6f19598a8fca67e10a574faa9bc732d1bd20a2e | [
"Zlib"
] | null | null | null | /*
* Original work Copyright (c) 2006-2007 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/PlayRho
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* a... | 33.91195 | 94 | 0.727745 | godinj |
4361f1349b01b2aa209a0db6087d5caddd1d54b2 | 1,551 | cpp | C++ | 2020-11-25/friday.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | 2 | 2020-12-12T00:02:40.000Z | 2021-04-21T19:49:59.000Z | 2020-11-25/friday.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | null | null | null | 2020-11-25/friday.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | null | null | null | /*
ID: pufepro1
LANG: C++
TASK: friday
*/
#include <cstdio>
#include <cstdlib>
int week[7]; // sat=0, sun=1, mon=2 ... fri=6
int month[12] = {31, 28, 31, 30, 31, 30,
31, 31, 30, 31, 30, 31};
int regular_year[7];
int leap_year[7];
bool is_leap(int year) {
if (year % 400 == 0)
return tr... | 18.914634 | 46 | 0.462927 | pufe |
4362ec304989de0f67e610c933125e06505fd5b4 | 549 | cpp | C++ | C++ Solutions/HackerEarth/Distribute chocolates.cpp | LearnEarn-Fun/Competitive-Programming-Solutions | 2c353bea49413e3f0f14b8980baf982881ad2c65 | [
"MIT"
] | 1 | 2021-02-06T04:24:05.000Z | 2021-02-06T04:24:05.000Z | C++ Solutions/HackerEarth/equalSubarrays.cpp | hridaya423/Competitive-Programming-Solutions | 2c353bea49413e3f0f14b8980baf982881ad2c65 | [
"MIT"
] | null | null | null | C++ Solutions/HackerEarth/equalSubarrays.cpp | hridaya423/Competitive-Programming-Solutions | 2c353bea49413e3f0f14b8980baf982881ad2c65 | [
"MIT"
] | 1 | 2021-11-13T18:46:55.000Z | 2021-11-13T18:46:55.000Z | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int T;
cin>>T;
while(T--){
long long int c, n, sum, remain;
cin>>c>>n;
sum = (n*(n+1))/2;
sum -= n;
re... | 17.15625 | 41 | 0.377049 | LearnEarn-Fun |
436387615b72e3f1b95618b03ee2605695bdf702 | 60,498 | cpp | C++ | Editor/_src/PhysicsStudio.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | 2 | 2022-02-11T11:59:44.000Z | 2022-02-16T20:33:25.000Z | Editor/_src/PhysicsStudio.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | Editor/_src/PhysicsStudio.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | #include "all.h"
#include <win_res.h>
#include <Insanity\PhysTemplate.h>
#include <windows.h>
#include "winstuff.h"
#include "..\..\Source\IEditor\resource.h"
#include "common.h"
//----------------------------
//we use -0 to mark 'default float value for some params
//const float DEFAULT... | 34.025872 | 999 | 0.484066 | mice777 |
4363b83d413603e467f495715fca5c031c7a1b73 | 40,006 | hpp | C++ | libs/c3ga/src/c3ga/InnerExplicit.hpp | qcoumes/GA-physics | be72e0959620973ab29cd9e4705e97eda4356fe9 | [
"MIT"
] | null | null | null | libs/c3ga/src/c3ga/InnerExplicit.hpp | qcoumes/GA-physics | be72e0959620973ab29cd9e4705e97eda4356fe9 | [
"MIT"
] | null | null | null | libs/c3ga/src/c3ga/InnerExplicit.hpp | qcoumes/GA-physics | be72e0959620973ab29cd9e4705e97eda4356fe9 | [
"MIT"
] | 1 | 2020-03-23T19:17:06.000Z | 2020-03-23T19:17:06.000Z | // Copyright (c) 2018 by University Paris-Est Marne-la-Vallee
// InnerExplicit.hpp
// This file is part of the Garamon for c3ga.
// Authors: Stephane Breuils and Vincent Nozick
// Contact: vincent.nozick@u-pem.fr
//
// Licence MIT
// A a copy of the MIT License is given along with this program
/// \file InnerExplicit.... | 70.185965 | 300 | 0.691996 | qcoumes |
43645317dac1cc9e6156bd8dba90d8f7ce9f3915 | 1,214 | hpp | C++ | .vscode/cquery_cached_index/@Users@erichamilton@Development@Robotics@VEX-2018-2019@CART-2019-PROS-V5/include@motorControlFuncs.hpp | ehami/CART-2019-PROS-V5 | d02f302a214a633ceb8abd73fb5fed0348340007 | [
"MIT"
] | 1 | 2019-01-22T02:16:34.000Z | 2019-01-22T02:16:34.000Z | .vscode/cquery_cached_index/@Users@erichamilton@Development@Robotics@VEX-2018-2019@CART-2019-PROS-V5/include@motorControlFuncs.hpp | ehami/CART-2019-PROS-V5 | d02f302a214a633ceb8abd73fb5fed0348340007 | [
"MIT"
] | 1 | 2019-03-01T14:47:26.000Z | 2019-03-01T14:47:26.000Z | include/motorControlFuncs.hpp | ehami/CART-2019-PROS-V5 | d02f302a214a633ceb8abd73fb5fed0348340007 | [
"MIT"
] | null | null | null |
// resets all motor encoder positions to zero
void resetMotorEncoderPositions();
// initializes all motors with correct settings
void initMotors();
void setDriveWheelsToPower(int left, int right);
// Sets the left motors to a specific velocity. (positive values go forward)
void setLeftWheelsToPower(int power);
// ... | 24.28 | 76 | 0.762768 | ehami |
43647569042f6841ccd500cadd5f18fc070e9318 | 6,794 | cpp | C++ | sdktools/debuggers/exts/uextdll/uext.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | sdktools/debuggers/exts/uextdll/uext.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | sdktools/debuggers/exts/uextdll/uext.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 2000-2001 Microsoft Corporation
Module Name:
exts.cpp
Abstract:
This file contains the generic routines and initialization code
for the kernel debugger extensions dll.
Environment:
User Mode
--*/
#include "precomp.h"
#pragma hdrstop
#include <ntverp.h>... | 23.427586 | 94 | 0.546512 | npocmaka |
4364f6cc753f696f97e0a09466366e99d5761033 | 27,183 | cpp | C++ | test/src/tc/cs/gtest/csdk/src/stc/CSCsdkGroupTest.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 301 | 2015-01-20T16:11:32.000Z | 2021-11-25T04:29:36.000Z | test/src/tc/cs/gtest/csdk/src/stc/CSCsdkGroupTest.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 13 | 2015-06-04T09:55:15.000Z | 2020-09-23T00:38:07.000Z | test/src/tc/cs/gtest/csdk/src/stc/CSCsdkGroupTest.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 233 | 2015-01-26T03:41:59.000Z | 2022-03-18T23:54:04.000Z | /******************************************************************
*
* Copyright 2017 Samsung Electronics 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
*
... | 52.782524 | 216 | 0.700769 | jonghenhan |
43661fec3da366448856d105a8b4e9fb7127c93d | 390 | hh | C++ | src/timer.hh | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | null | null | null | src/timer.hh | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | null | null | null | src/timer.hh | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | 1 | 2019-01-24T16:14:56.000Z | 2019-01-24T16:14:56.000Z | // timer.hh
//
// A timer class
#ifndef TIMER_HEADER
#define TIMER_HEADER
#include <ctime>
class Timer
{
public:
Timer(); //!< construct and start
void Start(); //!< start clock
double Stop(); //!< reset clock & return time in seconds
//! return time in seconds
double Dtime() const;
private:
std::... | 15.6 | 59 | 0.638462 | maciejwlodek |
4366226fbc670d2c61d95a71fc3f2bccabe5b77b | 744 | cpp | C++ | algorithm-challenges/baekjoon-online-judge/challenges/9000/9942.cpp | nbsp1221/algorithm | a227bbc7cf43dbf2cadc8d47052b9a92875dfa77 | [
"MIT"
] | null | null | null | algorithm-challenges/baekjoon-online-judge/challenges/9000/9942.cpp | nbsp1221/algorithm | a227bbc7cf43dbf2cadc8d47052b9a92875dfa77 | [
"MIT"
] | null | null | null | algorithm-challenges/baekjoon-online-judge/challenges/9000/9942.cpp | nbsp1221/algorithm | a227bbc7cf43dbf2cadc8d47052b9a92875dfa77 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(NULL);
vector<int> inputs;
int maxInput = 0;
while (true) {
int n;
cin >> n;
if (cin.fail() || cin.eof()) {
break;
}
... | 18.146341 | 68 | 0.456989 | nbsp1221 |
4367112792a638f77c87350852f965347958b654 | 437 | cpp | C++ | OO/[OO] Folha de Pagamento/OrcamentoEstouradoException.cpp | JovemPedr0/LP1 | d1e1a6df95812cab1dca3b981273c9557557572e | [
"MIT"
] | null | null | null | OO/[OO] Folha de Pagamento/OrcamentoEstouradoException.cpp | JovemPedr0/LP1 | d1e1a6df95812cab1dca3b981273c9557557572e | [
"MIT"
] | null | null | null | OO/[OO] Folha de Pagamento/OrcamentoEstouradoException.cpp | JovemPedr0/LP1 | d1e1a6df95812cab1dca3b981273c9557557572e | [
"MIT"
] | null | null | null | #include "OrcamentoEstouradoException.hpp"
#include <iostream>
OrcamentoEstouradoException::OrcamentoEstouradoException(double total){
//std::cout << "OrcamentoEstouradoException " << total << std::endl;
valorCapturado = total;
}
std::string OrcamentoEstouradoException::getMessage(){
char texto[50];
s... | 31.214286 | 72 | 0.723112 | JovemPedr0 |
43674e03267b79bb9bc44ba8ae72ce92758983b4 | 375 | cpp | C++ | chapter-19/19.14.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-19/19.14.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-19/19.14.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | #include "Screen.hpp"
int main()
{
// legal;
auto pmf = &Screen::get_cursor;
// pmf is a member function pointer points to Screen::get_cursor, which is a member function which accepts no parameter and return type as char;
pmf = &Screen::get;
// now pmf points to Screen::get, which has same function type as S... | 34.090909 | 146 | 0.72 | zero4drift |
43678c48cca4b1030020002e6f4f84823c1f544e | 308 | cpp | C++ | src/crypt.cpp | Shtille/scythe | 795b482921bed9ab36fd9ced38863371c75367ab | [
"MIT"
] | null | null | null | src/crypt.cpp | Shtille/scythe | 795b482921bed9ab36fd9ced38863371c75367ab | [
"MIT"
] | 8 | 2018-07-12T14:10:53.000Z | 2020-09-17T11:15:52.000Z | src/crypt.cpp | Shtille/scythe | 795b482921bed9ab36fd9ced38863371c75367ab | [
"MIT"
] | null | null | null | #include "crypt.h"
#include <cstring>
namespace scythe {
void Encrypt(char* buffer_out, const char* buffer_in, size_t length, const char* key)
{
size_t key_size = strlen(key);
for (size_t i = 0; i < length; ++i)
{
buffer_out[i] = buffer_in[i] ^ key[i % key_size];
}
}
} // namespace scythe | 19.25 | 86 | 0.646104 | Shtille |
436861f85c4c3c2caa5c4b1cc510c741b110e4da | 1,821 | cpp | C++ | source/playthrough.cpp | Dani88alv/OoT3D_Randomizer | 93b0117672acc0775c164026f71e772c5089e1b8 | [
"MIT"
] | null | null | null | source/playthrough.cpp | Dani88alv/OoT3D_Randomizer | 93b0117672acc0775c164026f71e772c5089e1b8 | [
"MIT"
] | null | null | null | source/playthrough.cpp | Dani88alv/OoT3D_Randomizer | 93b0117672acc0775c164026f71e772c5089e1b8 | [
"MIT"
] | null | null | null | #include "playthrough.hpp"
#include "fill.hpp"
#include "location_access.hpp"
#include "logic.hpp"
#include "random.hpp"
#include "spoiler_log.hpp"
#include "../code/src/item_override.h"
#include <3ds.h>
#include <unistd.h>
namespace Playthrough {
int Playthrough_Init(u32 seed) {
Random_Ini... | 23.960526 | 59 | 0.531027 | Dani88alv |
436a72c45235605642016845a87e5b8d9e3bc8e4 | 1,607 | hpp | C++ | sprout/type/iterator/advance.hpp | Manu343726/Sprout | feac3f52c785deb0e5e6cd70c8b4960095b064be | [
"BSL-1.0"
] | null | null | null | sprout/type/iterator/advance.hpp | Manu343726/Sprout | feac3f52c785deb0e5e6cd70c8b4960095b064be | [
"BSL-1.0"
] | null | null | null | sprout/type/iterator/advance.hpp | Manu343726/Sprout | feac3f52c785deb0e5e6cd70c8b4960095b064be | [
"BSL-1.0"
] | 1 | 2018-09-03T05:38:27.000Z | 2018-09-03T05:38:27.000Z | /*=============================================================================
Copyright (c) 2011-2015 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx... | 35.711111 | 80 | 0.665837 | Manu343726 |
436c823c4508c0f2a24b02abf33ece24ab966527 | 1,915 | hpp | C++ | ReactAndroid/build/third-party-ndk/boost/boost_1_57_0/boost/geometry/algorithms/detail/course.hpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 85 | 2015-02-08T20:36:17.000Z | 2021-11-14T20:38:31.000Z | ReactAndroid/build/third-party-ndk/boost/boost_1_57_0/boost/geometry/algorithms/detail/course.hpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | ReactAndroid/build/third-party-ndk/boost/boost_1_57_0/boost/geometry/algorithms/detail/course.hpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 27 | 2015-01-28T16:33:30.000Z | 2021-08-12T05:04:39.000Z | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// This file was modified by Oracle on 2014.
// Modifications copyright (c) 2014, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
... | 33.596491 | 80 | 0.701828 | kimwoongkyu |
436eb109cf174314f0cbb599e87f49be17501c84 | 905 | cpp | C++ | src/mapper/s3/S3MapperNaive.cpp | akougkas/iris | ae8b077afa6cec7ce3ea845dc7caad9b5e105c9d | [
"Apache-2.0"
] | 1 | 2019-04-06T08:43:15.000Z | 2019-04-06T08:43:15.000Z | src/mapper/s3/S3MapperNaive.cpp | akougkas/iris | ae8b077afa6cec7ce3ea845dc7caad9b5e105c9d | [
"Apache-2.0"
] | 1 | 2019-04-15T09:49:13.000Z | 2019-04-15T09:49:13.000Z | src/mapper/s3/S3MapperNaive.cpp | akougkas/iris | ae8b077afa6cec7ce3ea845dc7caad9b5e105c9d | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
*include files
******************************************************************************/
#include "../../utils/tools/city.h"
#include "S3MapperNaive.h"
/******************************************************************************
*... | 33.518519 | 79 | 0.472928 | akougkas |
436f67f30b6bd0bad01e21b0a5f1d95257e73447 | 1,147 | cpp | C++ | libvast/test/system/sink.cpp | lava/vast | 0bc9e3c12eb31ec50dd0270626d55e84b2255899 | [
"BSD-3-Clause"
] | 249 | 2019-08-26T01:44:45.000Z | 2022-03-26T14:12:32.000Z | libvast/test/system/sink.cpp | 5l1v3r1/vast | a2cb4be879a13cef855da2c1d73083204aed4dff | [
"BSD-3-Clause"
] | 586 | 2019-08-06T13:10:36.000Z | 2022-03-31T08:31:00.000Z | libvast/test/system/sink.cpp | satta/vast | 6c7587effd4265c4a5de23252bc7c7af3ef78bee | [
"BSD-3-Clause"
] | 37 | 2019-08-16T02:01:14.000Z | 2022-02-21T16:13:59.000Z | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2016 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#include "vast/system/sink.hpp"
#include "vast/error.hp... | 28.675 | 64 | 0.681779 | lava |
4372dcffd6dbdb3702036e1c592e860f950b5881 | 545 | cpp | C++ | source/Engine/GameObject.cpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | 8 | 2018-06-27T00:34:11.000Z | 2018-09-07T06:56:20.000Z | source/Engine/GameObject.cpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | null | null | null | source/Engine/GameObject.cpp | rincew1nd/Minesweeper-Switch | 6a441c4bbcc33cdbd0fe17fd5b9d4fb7e7cb0467 | [
"MIT"
] | 2 | 2018-06-28T03:02:07.000Z | 2019-01-26T06:02:17.000Z | #include "GameObject.hpp"
GameObject::GameObject(int x, int y, int w, int h)
{
_rect = new SDL_Rect();
_rect->x = x;
_rect->y = y;
_rect->w = w;
_rect->h = h;
}
void GameObject::Move(int dx, int dy)
{
_rect->x += dx;
_rect->y += dy;
};
void GameObject::SetAction(std::function<void()> func... | 20.185185 | 77 | 0.572477 | rincew1nd |
43754afce02e1e1766c53960343ec04c331b50a3 | 2,977 | hpp | C++ | src/hotspot/cpu/zero/javaFrameAnchor_zero.hpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/hotspot/cpu/zero/javaFrameAnchor_zero.hpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/hotspot/cpu/zero/javaFrameAnchor_zero.hpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright 2007, 2008, 2010 Red Hat, Inc.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License ... | 30.690722 | 79 | 0.709775 | siweilxy |
4377417baf9a1e949e6080bb1ae99dcf9ff202fb | 1,753 | cpp | C++ | Hw3/Hw3.cpp | dumblole/CMSC-140 | 00e8ad5f273fe7414e2b15eb28b7e39b25ab188a | [
"MIT"
] | 1 | 2022-03-01T00:30:34.000Z | 2022-03-01T00:30:34.000Z | Hw3/Hw3.cpp | dumblole/CMSC-140 | 00e8ad5f273fe7414e2b15eb28b7e39b25ab188a | [
"MIT"
] | null | null | null | Hw3/Hw3.cpp | dumblole/CMSC-140 | 00e8ad5f273fe7414e2b15eb28b7e39b25ab188a | [
"MIT"
] | null | null | null | /*
Hw3.cpp
CMSC 140, CRN 24381, Dr. Kuijt
Max C.
Develop a program that calculates the final score and the average score for a student from his/her (1)class participation, (2) test, (3) assignment, (4) exam, and (5) practice scores.
The user should enter the name of the student and scores ranging from 0 to 100 for... | 29.216667 | 285 | 0.600685 | dumblole |
4377bfd06ea872fe4b8744feef0eef10ca39c8b9 | 1,420 | cpp | C++ | test/gc_ptr_test.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | null | null | null | test/gc_ptr_test.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | 2 | 2017-01-17T16:24:59.000Z | 2017-06-08T17:39:26.000Z | test/gc_ptr_test.cpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include <liballocgc/liballocgc.hpp>
using namespace allocgc;
using namespace allocgc::serial;
TEST(gc_ptr_test, test_gc_ptr)
{
static const size_t SIZE = 8;
gc_ptr<int[]> ptr1 = gc_new<int[]>(SIZE);
gc_ptr<int[]> ptr2 = ptr1;
ASSERT_EQ(ptr1, ptr2);
++ptr2;
ASSERT_N... | 16.705882 | 66 | 0.592254 | eucpp |
43784a7984ea4b02da481bc9a48ab1f2a699cbc1 | 252 | cpp | C++ | all/native/rastertiles/ElevationDecoder.cpp | Akylas/mobile-sdk | 744040d87344ee76b4ad14281d9467da1b5f0788 | [
"BSD-3-Clause"
] | null | null | null | all/native/rastertiles/ElevationDecoder.cpp | Akylas/mobile-sdk | 744040d87344ee76b4ad14281d9467da1b5f0788 | [
"BSD-3-Clause"
] | null | null | null | all/native/rastertiles/ElevationDecoder.cpp | Akylas/mobile-sdk | 744040d87344ee76b4ad14281d9467da1b5f0788 | [
"BSD-3-Clause"
] | null | null | null | #include "ElevationDecoder.h"
#include "utils/Log.h"
#include "utils/TileUtils.h"
#include <algorithm>
namespace carto
{
ElevationDecoder::~ElevationDecoder()
{
}
ElevationDecoder::ElevationDecoder()
{
}
} // namespace carto
| 14.823529 | 41 | 0.674603 | Akylas |
4378ba0b8f929a843112c7e2c8bd518b6da63414 | 1,133 | hh | C++ | inc/grayvalley/common/OrderID.hh | grayvalley/common | fb5547898ae71c6a86bae6630e7193f5e1cff5db | [
"Apache-2.0"
] | null | null | null | inc/grayvalley/common/OrderID.hh | grayvalley/common | fb5547898ae71c6a86bae6630e7193f5e1cff5db | [
"Apache-2.0"
] | null | null | null | inc/grayvalley/common/OrderID.hh | grayvalley/common | fb5547898ae71c6a86bae6630e7193f5e1cff5db | [
"Apache-2.0"
] | null | null | null | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 29.051282 | 84 | 0.671668 | grayvalley |
4379d2e0c323cdad76dec2186576ae5fb6c77743 | 830 | hpp | C++ | src/core/lib/core_reflection/interfaces/i_class_definition_modifier.hpp | wgsyd/wgtf | d8cacb43e2c5d40080d33c18a8c2f5bd27d21bed | [
"BSD-3-Clause"
] | 28 | 2016-06-03T05:28:25.000Z | 2019-02-14T12:04:31.000Z | src/core/lib/core_reflection/interfaces/i_class_definition_modifier.hpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | null | null | null | src/core/lib/core_reflection/interfaces/i_class_definition_modifier.hpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | 14 | 2016-06-03T05:52:27.000Z | 2019-03-21T09:56:03.000Z | #ifndef I_CLASS_DEFINITION_MODIFIER_HPP
#define I_CLASS_DEFINITION_MODIFIER_HPP
#include <memory>
#include "core_common/signal.hpp"
namespace wgt
{
class IDefinitionManager;
class MetaData;
typedef std::shared_ptr<class IBaseProperty> IBasePropertyPtr;
class IClassDefinitionModifier
{
typedef Signal<void(const char... | 25.151515 | 96 | 0.781928 | wgsyd |
437d5bac8c129c549f047fdfe612cb984c49449a | 17,434 | cpp | C++ | tests/validation/CL/DirectConvolutionLayer.cpp | giorgio-arena/ComputeLibraryBinary | b8bb65f0dc2561907e566908e102aabcb7d41d61 | [
"MIT"
] | 1 | 2019-05-14T11:36:51.000Z | 2019-05-14T11:36:51.000Z | tests/validation/CL/DirectConvolutionLayer.cpp | giorgio-arena/ComputeLibraryBinary | b8bb65f0dc2561907e566908e102aabcb7d41d61 | [
"MIT"
] | null | null | null | tests/validation/CL/DirectConvolutionLayer.cpp | giorgio-arena/ComputeLibraryBinary | b8bb65f0dc2561907e566908e102aabcb7d41d61 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... | 69.18254 | 270 | 0.568774 | giorgio-arena |
437ec2a6c333555098af52656b472e9308b860cd | 2,963 | cpp | C++ | Lithium/vendor/assimp/contrib/openddlparser/code/OpenDDLStream.cpp | ayoubbelatrous/LithiumEngine | bc24d277058b12cce3d95c8494fe366acda48462 | [
"MIT"
] | 1 | 2021-12-04T18:07:22.000Z | 2021-12-04T18:07:22.000Z | Lithium/vendor/assimp/contrib/openddlparser/code/OpenDDLStream.cpp | ayoubbelatrous/LithiumEngine | bc24d277058b12cce3d95c8494fe366acda48462 | [
"MIT"
] | null | null | null | Lithium/vendor/assimp/contrib/openddlparser/code/OpenDDLStream.cpp | ayoubbelatrous/LithiumEngine | bc24d277058b12cce3d95c8494fe366acda48462 | [
"MIT"
] | null | null | null | /*-----------------------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2014-2015 Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal i... | 30.546392 | 98 | 0.649342 | ayoubbelatrous |
43814f2e2070c02daaf4c8cd41be59bcb25ab2db | 79,366 | cpp | C++ | src/hardware/vga.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | 3 | 2022-02-20T11:06:29.000Z | 2022-03-11T08:16:55.000Z | src/hardware/vga.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | null | null | null | src/hardware/vga.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2002-2021 The DOSBox Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This p... | 36.490115 | 200 | 0.646876 | mediaexplorer74 |
438795ea8fbfbb98dfe232b8bfc84798e0ffbb0e | 1,473 | hpp | C++ | clm/src/main/clm/jni/boost/armv7a/include/boost/test/utils/runtime/env/fwd.hpp | BruceNUAA/gaze-detection-android-app | 5daa2c8a0e51eb506fe435a6f8d03758162d0579 | [
"MIT"
] | 1,210 | 2020-08-18T07:57:36.000Z | 2022-03-31T15:06:05.000Z | clm/src/main/clm/jni/boost/armv7a/include/boost/test/utils/runtime/env/fwd.hpp | BruceNUAA/gaze-detection-android-app | 5daa2c8a0e51eb506fe435a6f8d03758162d0579 | [
"MIT"
] | 1,074 | 2015-08-25T15:08:14.000Z | 2019-07-22T20:28:39.000Z | clm/src/main/clm/jni/boost/armv7a/include/boost/test/utils/runtime/env/fwd.hpp | BruceNUAA/gaze-detection-android-app | 5daa2c8a0e51eb506fe435a6f8d03758162d0579 | [
"MIT"
] | 275 | 2020-08-18T08:35:16.000Z | 2022-03-31T15:06:07.000Z | // (C) Copyright Gennadiy Rozental 2005-2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version ... | 23.758065 | 78 | 0.721656 | BruceNUAA |
438b794f6cb9e99fad368b51b68d6fe50c5867cd | 4,498 | cpp | C++ | src/plugins/map/plugin.cpp | osen/openradiant | 47f0b65006e3e3325003f65cddbc7f1c78b5f138 | [
"BSD-3-Clause"
] | 11 | 2021-01-04T16:27:48.000Z | 2022-01-22T00:37:31.000Z | src/plugins/map/plugin.cpp | osen/openradiant | 47f0b65006e3e3325003f65cddbc7f1c78b5f138 | [
"BSD-3-Clause"
] | 6 | 2021-01-05T04:47:45.000Z | 2021-11-30T09:25:11.000Z | src/plugins/map/plugin.cpp | osen/openradiant | 47f0b65006e3e3325003f65cddbc7f1c78b5f138 | [
"BSD-3-Clause"
] | 1 | 2021-04-01T20:57:22.000Z | 2021-04-01T20:57:22.000Z | /*
Copyright (C) 1999-2007 id Software, Inc. and contributors.
For a list of contributors, see the accompanying CONTRIBUTORS file.
This file is part of GtkRadiant.
GtkRadiant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
... | 33.073529 | 130 | 0.714095 | osen |
438e1d3d425b8b6c961db3db7a1a633c067c5780 | 107 | cpp | C++ | docs/mfc/codesnippet/CPP/coledispatchdriver-class_7.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 14 | 2018-01-28T18:10:55.000Z | 2021-11-16T13:21:18.000Z | docs/mfc/codesnippet/CPP/coledispatchdriver-class_7.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/mfc/codesnippet/CPP/coledispatchdriver-class_7.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-11-01T12:33:08.000Z | 2021-11-16T13:21:19.000Z | void IMyComObject::SetString(DISPID dispid, LPCTSTR propVal)
{
SetProperty(dispid, VT_BSTR, propVal);
} | 26.75 | 60 | 0.766355 | jmittert |
438fc1a650a8ae6c233503a005fea5fdead5bdca | 838 | hh | C++ | RecoDataProducts/inc/ExtMonFNALRawCluster.hh | michaelmackenzie/Offline | 57bcd11d499af77ed0619deeddace51ed2b0b097 | [
"Apache-2.0"
] | null | null | null | RecoDataProducts/inc/ExtMonFNALRawCluster.hh | michaelmackenzie/Offline | 57bcd11d499af77ed0619deeddace51ed2b0b097 | [
"Apache-2.0"
] | 26 | 2019-11-08T09:56:55.000Z | 2020-09-09T17:25:33.000Z | RecoDataProducts/inc/ExtMonFNALRawCluster.hh | ryuwd/Offline | 92957f111425910274df61dbcbd2bad76885f993 | [
"Apache-2.0"
] | null | null | null | // "Raw" pixel clusters are groups of adjacent hits.
//
//
// Original author Andrei Gaponenko
//
#ifndef RecoDataProducts_ExtMonFNALRawCluster_hh
#define RecoDataProducts_ExtMonFNALRawCluster_hh
#include <ostream>
#include "canvas/Persistency/Common/PtrVector.h"
#include "Offline/RecoDataProducts/inc/ExtMonFNALRaw... | 21.487179 | 76 | 0.73747 | michaelmackenzie |
439155803f776aff9ed957924626335410bba550 | 6,644 | cc | C++ | bpnn/bpnn.cc | ruoshuiwyl/Machine-Learning | 22d835ae63a84855472f0f0de8b31a9ce637ba21 | [
"Apache-2.0"
] | null | null | null | bpnn/bpnn.cc | ruoshuiwyl/Machine-Learning | 22d835ae63a84855472f0f0de8b31a9ce637ba21 | [
"Apache-2.0"
] | null | null | null | bpnn/bpnn.cc | ruoshuiwyl/Machine-Learning | 22d835ae63a84855472f0f0de8b31a9ce637ba21 | [
"Apache-2.0"
] | null | null | null | //
// Created by ruoshui on 9/22/16.
//
#include <algorithm>
#include <iostream>
#include "bpnn.h"
BackPropNNetwork::BackPropNNetwork(std::vector<int> &sizes, double eta, int max_iters, int batch_num) :
sizes_(sizes), eta_(eta), max_iters_(max_iters), batch_num_(batch_num) {
for (int i = 1; i < sizes.si... | 36.505495 | 116 | 0.587748 | ruoshuiwyl |
43923cb1e26431eccb4865fd1e3a3766a0a25554 | 1,286 | cpp | C++ | C++/1295.cpp | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | C++/1295.cpp | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | C++/1295.cpp | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 0 ms submission
class Solution {
public:
int findNumbers(vector<int>& nums) {
int count=0;
for(int i=0; i<nums.size(); ++i){
int c=0;
while(nums[i]>0){
nu... | 27.956522 | 108 | 0.572317 | rakhi2001 |
4396245ead61fd8d0c2cd5dcdcc970e3b3aacc7e | 2,272 | cc | C++ | components/policy/core/common/configuration_policy_provider.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | components/policy/core/common/configuration_policy_provider.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | components/policy/core/common/configuration_policy_provider.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2013 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 "components/policy/core/common/configuration_policy_provider.h"
#include "base/callback.h"
#include "base/lazy_instance.h"
#include "components/... | 27.373494 | 73 | 0.779489 | zealoussnow |
4397271eaaef8a2767bdab53da86e1da515ff40d | 755 | cpp | C++ | src/cidk/types/int.cpp | codr7/cidk | be88b548077484710edee11fbab5ef590de64fd1 | [
"MIT"
] | 24 | 2019-07-02T12:56:32.000Z | 2020-12-24T12:49:43.000Z | src/cidk/types/int.cpp | codr7/cidk | be88b548077484710edee11fbab5ef590de64fd1 | [
"MIT"
] | null | null | null | src/cidk/types/int.cpp | codr7/cidk | be88b548077484710edee11fbab5ef590de64fd1 | [
"MIT"
] | null | null | null | #include "cidk/cx.hpp"
#include "cidk/types/int.hpp"
#include "cidk/val.hpp"
namespace cidk {
IntType::IntType(Cx &cx,
const Pos &pos,
Env &env,
const Sym *id,
const vector<Type *> &parents):
TValType<Int>(cx, pos, env, id, parents) {}
... | 30.2 | 85 | 0.586755 | codr7 |
4398533c342a1caecb87daa971f53eaf122c4476 | 21,143 | hpp | C++ | include/tomlex/serializer.hpp | estshorter/tomlex | 9ea9fa924a6876134609b103366ae136dcfd3247 | [
"Apache-2.0"
] | null | null | null | include/tomlex/serializer.hpp | estshorter/tomlex | 9ea9fa924a6876134609b103366ae136dcfd3247 | [
"Apache-2.0"
] | null | null | null | include/tomlex/serializer.hpp | estshorter/tomlex | 9ea9fa924a6876134609b103366ae136dcfd3247 | [
"Apache-2.0"
] | null | null | null | #pragma once
/*
The MIT License (MIT)
Copyright (c) 2017 Toru Niina
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... | 29.082531 | 91 | 0.593672 | estshorter |
439978ea5aab64eece3b54072e90ff01c90d04e0 | 27,564 | cpp | C++ | main.cpp | MrBlinky/ard-drivin | eef17d856f8b7bb982802b038333b7738691f647 | [
"MIT"
] | null | null | null | main.cpp | MrBlinky/ard-drivin | eef17d856f8b7bb982802b038333b7738691f647 | [
"MIT"
] | null | null | null | main.cpp | MrBlinky/ard-drivin | eef17d856f8b7bb982802b038333b7738691f647 | [
"MIT"
] | null | null | null | /*
Buttons example
June 11, 2015
Copyright (C) 2015 David Martinez
All rights reserved.
This code is the most basic barebones code for showing how to use buttons in
Arduboy.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as pub... | 31.429875 | 1,064 | 0.638333 | MrBlinky |
439ae0eb804f8d50081015165e6f2eca28df520f | 7,925 | cpp | C++ | src/slave/containerizer/mesos/provisioner/appc/store.cpp | yisun99/yisun | 0bef3cdd0de61d4c5e10e1f995caffbaff0c6856 | [
"Apache-2.0"
] | null | null | null | src/slave/containerizer/mesos/provisioner/appc/store.cpp | yisun99/yisun | 0bef3cdd0de61d4c5e10e1f995caffbaff0c6856 | [
"Apache-2.0"
] | null | null | null | src/slave/containerizer/mesos/provisioner/appc/store.cpp | yisun99/yisun | 0bef3cdd0de61d4c5e10e1f995caffbaff0c6856 | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 27.61324 | 77 | 0.678738 | yisun99 |
439b2b1acc9318fc9a438e524031bb1931c6e0ff | 8,319 | hpp | C++ | sycl/include/CL/sycl/property_list.hpp | ProGTX/llvm | 0125496c8ea404ffac05588b27a889ce2a704112 | [
"Apache-2.0"
] | 34 | 2020-01-31T17:50:00.000Z | 2022-02-16T20:19:29.000Z | sycl/include/CL/sycl/property_list.hpp | ProGTX/llvm | 0125496c8ea404ffac05588b27a889ce2a704112 | [
"Apache-2.0"
] | 14 | 2020-02-03T23:39:51.000Z | 2021-07-20T16:24:25.000Z | sycl/include/CL/sycl/property_list.hpp | ProGTX/llvm | 0125496c8ea404ffac05588b27a889ce2a704112 | [
"Apache-2.0"
] | 5 | 2020-07-22T16:56:37.000Z | 2022-01-08T02:50:20.000Z | //==--------- property_list.hpp --- SYCL property list ---------------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 29.39576 | 80 | 0.677125 | ProGTX |
439da1bc1b5bf79319b4896c69518f39bba2a09f | 744 | cxx | C++ | Software/CPU/myscrypt/build/cmake-3.12.3/Source/cmDocumentationSection.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 107 | 2021-08-28T20:08:42.000Z | 2022-03-22T08:02:16.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Source/cmDocumentationSection.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 2 | 2022-01-13T04:03:55.000Z | 2022-03-12T01:02:31.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Source/cmDocumentationSection.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 16 | 2021-08-30T06:57:36.000Z | 2022-03-22T08:05:52.000Z | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmDocumentationSection.h"
void cmDocumentationSection::Append(const char* data[][2])
{
int i = 0;
while (data[i][1]) {
this->Entries.emplace_back(data[i]... | 25.655172 | 77 | 0.665323 | duonglvtnaist |
439f18a3d19efd2e1b3df1bd6bfea4ec20459971 | 8,239 | cpp | C++ | sp/src/game/client/hl2/c_rotorwash.cpp | joshmartel/source-sdk-2013 | 524e87f708d6c30360613b1f65ee174deafa20f4 | [
"Unlicense"
] | 2,268 | 2015-01-01T19:31:56.000Z | 2022-03-31T20:15:31.000Z | sp/src/game/client/hl2/c_rotorwash.cpp | joshmartel/source-sdk-2013 | 524e87f708d6c30360613b1f65ee174deafa20f4 | [
"Unlicense"
] | 241 | 2015-01-01T15:26:14.000Z | 2022-03-31T22:09:59.000Z | sp/src/game/client/hl2/c_rotorwash.cpp | DimasDSF/SMI | 76cc2df8d1f51eb06743d66169524c3493b6d407 | [
"Unlicense"
] | 2,174 | 2015-01-01T08:18:05.000Z | 2022-03-31T10:43:59.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "particlemgr.h"
#include "particle_prototype.h"
#include "particle_util.h"
#include "c_te_partic... | 26.837134 | 159 | 0.609419 | joshmartel |
439f2ba39bab3a52dfdcb9144b7f700ce9578e8a | 782 | hh | C++ | src/pindefs.hh | klaus-liebler/smopla-dps | ab92c73d16769a09d70b5519792c29a4276543c5 | [
"MIT"
] | null | null | null | src/pindefs.hh | klaus-liebler/smopla-dps | ab92c73d16769a09d70b5519792c29a4276543c5 | [
"MIT"
] | null | null | null | src/pindefs.hh | klaus-liebler/smopla-dps | ab92c73d16769a09d70b5519792c29a4276543c5 | [
"MIT"
] | null | null | null | #pragma once
#include "gpio.hh"
constexpr Pin DBGPIN = Pin::PA06;
constexpr Pin SW_ONOFF = Pin::PB04;
constexpr Pin SW_DOWN = Pin::PA01;
constexpr Pin SW_SET = Pin::PA02;
constexpr Pin SW_UP = Pin::PA03;
constexpr Pin ROTENC_SW = Pin::PB05;
constexpr Pin ROTENC_A = Pin::PB08;
constexpr Pin ROTENC_B = Pin::PB09;
... | 23.69697 | 46 | 0.734015 | klaus-liebler |
439f8f5ac427167ccaf20dc36390c8d1073e5763 | 1,379 | cpp | C++ | ros/src/computing/perception/detection/vision_detector/libs/dpm_ttic/common/common.cpp | filiperinaldi/Autoware | 9fae6cc7cb8253586578dbb62a2f075b52849e6e | [
"Apache-2.0"
] | 20 | 2019-05-21T06:14:17.000Z | 2021-11-03T04:36:09.000Z | ros/src/computing/perception/detection/vision_detector/libs/dpm_ttic/common/common.cpp | anhnv3991/autoware | d5b2ed9dc309193c8a2a7c77a2b6c88104c28328 | [
"Apache-2.0"
] | 18 | 2019-04-08T16:09:37.000Z | 2019-06-05T15:24:40.000Z | ros/src/computing/perception/detection/vision_detector/libs/dpm_ttic/common/common.cpp | anhnv3991/autoware | d5b2ed9dc309193c8a2a7c77a2b6c88104c28328 | [
"Apache-2.0"
] | 8 | 2019-04-28T13:15:18.000Z | 2021-06-03T07:05:16.000Z | /*
* Copyright 2015-2019 Autoware Foundation. 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 requi... | 27.58 | 99 | 0.693981 | filiperinaldi |
43a02f4e18a8c0e3c5e1296f7692bce70bb11a1e | 411 | cpp | C++ | pi/pi.cpp | anydream/PerfTest | b22d0e4463036cda5c20b55681f28dfc36caf356 | [
"MIT"
] | 2 | 2018-12-31T13:13:43.000Z | 2019-01-04T02:58:36.000Z | pi/pi.cpp | anydream/PerfTest | b22d0e4463036cda5c20b55681f28dfc36caf356 | [
"MIT"
] | null | null | null | pi/pi.cpp | anydream/PerfTest | b22d0e4463036cda5c20b55681f28dfc36caf356 | [
"MIT"
] | 1 | 2018-12-28T05:30:09.000Z | 2018-12-28T05:30:09.000Z | #include <stdio.h>
#include <time.h>
int main()
{
time_t start = clock();
double s = 1;
double pi = 0;
double i = 1.0;
double n = 1.0;
for (int x = 0; x < 500000000; ++x)
{
pi += i;
n = n + 2;
s = -s;
i = s / n;
}
volatile double result = 4 * pi;
time_t elapsed = clock() - start... | 16.44 | 72 | 0.520681 | anydream |
43a1a9f87e04b5f27d1739ba8be7438b5f0f1973 | 4,968 | cpp | C++ | BenchElise/bench/b_0_20.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 451 | 2016-11-25T09:40:28.000Z | 2022-03-30T04:20:42.000Z | BenchElise/bench/b_0_20.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 143 | 2016-11-25T20:35:57.000Z | 2022-03-01T11:58:02.000Z | BenchElise/bench/b_0_20.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 139 | 2016-12-02T10:26:21.000Z | 2022-03-10T19:40:29.000Z | /*eLiSe06/05/99
Copyright (C) 1999 Marc PIERROT DESEILLIGNY
eLiSe : Elements of a Linux Image Software Environment
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the ... | 25.740933 | 76 | 0.496981 | kikislater |
43a23e25b179e4aca7994855a71772c5d5cbbbdc | 37 | cpp | C++ | ProceduralGeneration/VertexBufferLayout.cpp | cristi191096/ProceduralGeneration | 912b738ced73d676f9d0885d917a94c710857396 | [
"Apache-2.0"
] | null | null | null | ProceduralGeneration/VertexBufferLayout.cpp | cristi191096/ProceduralGeneration | 912b738ced73d676f9d0885d917a94c710857396 | [
"Apache-2.0"
] | null | null | null | ProceduralGeneration/VertexBufferLayout.cpp | cristi191096/ProceduralGeneration | 912b738ced73d676f9d0885d917a94c710857396 | [
"Apache-2.0"
] | null | null | null | #include "VertexBufferLayout.h"
| 5.285714 | 31 | 0.702703 | cristi191096 |
43a31b0cfaa145640d1d7deadecfbecb6b119a3b | 6,134 | cpp | C++ | SDK/Extras/Textify3DMF/Source/TypeHandlers/Geometries/TriMesh.cpp | h-haris/Quesa | a438ab824291ce6936a88dfae4fd0482dcba1247 | [
"BSD-3-Clause"
] | 24 | 2019-10-28T07:01:48.000Z | 2022-03-04T16:10:39.000Z | SDK/Extras/Textify3DMF/Source/TypeHandlers/Geometries/TriMesh.cpp | h-haris/Quesa | a438ab824291ce6936a88dfae4fd0482dcba1247 | [
"BSD-3-Clause"
] | 8 | 2020-04-22T19:42:45.000Z | 2021-04-30T16:28:32.000Z | SDK/Extras/Textify3DMF/Source/TypeHandlers/Geometries/TriMesh.cpp | h-haris/Quesa | a438ab824291ce6936a88dfae4fd0482dcba1247 | [
"BSD-3-Clause"
] | 6 | 2019-09-22T14:44:15.000Z | 2021-04-01T20:04:29.000Z | /*
* TriMesh.cpp
* Textify3DMF
*
* Created by James Walker on 4/7/12.
* Copyright (c) 2012 James W. Walker.
*
* 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.
*
* Permis... | 25.991525 | 80 | 0.659439 | h-haris |
43a4bae48e95c5180682b576e9a9bb460ee1c89e | 304 | cpp | C++ | clang/test/SemaCXX/gnu_inline.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,102 | 2015-01-04T02:28:35.000Z | 2022-03-30T12:53:41.000Z | clang/test/SemaCXX/gnu_inline.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang/test/SemaCXX/gnu_inline.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 1,868 | 2015-01-03T04:27:11.000Z | 2022-03-25T13:37:35.000Z | // RUN: %clang_cc1 -fsyntax-only -verify %s
extern inline
__attribute__((__gnu_inline__))
void gnu_inline1() {}
inline
__attribute__((__gnu_inline__)) // expected-warning {{'gnu_inline' attribute without 'extern' in C++ treated as externally available, this changed in Clang 10}}
void gnu_inline2() {}
| 30.4 | 160 | 0.756579 | medismailben |
43a72f5f32fae1746df2cfe184f9a7ff4c2249cd | 1,664 | hpp | C++ | src/ngraph/result_vector.hpp | huningxin/ngraph | 28622bdea4b4ad84405b8484b31673ae7d31cf76 | [
"Apache-2.0"
] | null | null | null | src/ngraph/result_vector.hpp | huningxin/ngraph | 28622bdea4b4ad84405b8484b31673ae7d31cf76 | [
"Apache-2.0"
] | null | null | null | src/ngraph/result_vector.hpp | huningxin/ngraph | 28622bdea4b4ad84405b8484b31673ae7d31cf76 | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2018 Intel 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://w... | 30.254545 | 85 | 0.581731 | huningxin |
43a78b6a53f338ce7efe3f42ece9b9178f2cba87 | 7,408 | cpp | C++ | Firmware/OTPManagerFirmware/gui_ssd1306_i2c.cpp | DarkCaster/ArduinoOTP | ce6ff3b041abe3b38647c0ded9caa64b750891fa | [
"MIT"
] | 1 | 2018-12-10T18:03:45.000Z | 2018-12-10T18:03:45.000Z | Firmware/OTPManagerFirmware/gui_ssd1306_i2c.cpp | DarkCaster/ArduinoOTP | ce6ff3b041abe3b38647c0ded9caa64b750891fa | [
"MIT"
] | null | null | null | Firmware/OTPManagerFirmware/gui_ssd1306_i2c.cpp | DarkCaster/ArduinoOTP | ce6ff3b041abe3b38647c0ded9caa64b750891fa | [
"MIT"
] | null | null | null | #include <U8g2lib.h>
#include "configuration.h"
#include "gui_ssd1306_i2c.h"
#include "debug.h"
static U8G2_SSD1306_128X64_NONAME_2_HW_I2C u8g2(U8G2_R0, U8X8_PIN_NONE);
GuiSSD1306_I2C::GuiSSD1306_I2C(uint8_t displayPowerPin, uint8_t displayAddr, ClockHelper &clockHelper, ProfileManager &profileManager, CodeGenAggrega... | 25.111864 | 174 | 0.734746 | DarkCaster |
43a82a0ddc17c0cdae418cb2f9a2aa8fd64765b6 | 649 | cpp | C++ | UICPC/11/UICPC Round #11 (Div 1)/solutions/Problem A - DA-Sort/dasort2.cpp | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | UICPC/11/UICPC Round #11 (Div 1)/solutions/Problem A - DA-Sort/dasort2.cpp | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | UICPC/11/UICPC Round #11 (Div 1)/solutions/Problem A - DA-Sort/dasort2.cpp | MilladMuhammadi/Competitive-Programming | 9f84a2d2734a5efe0e1fde0062e51782cd5af2c6 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// DA-Sort
int p, k, n, x;
map<int, vector<int>> ind;
int main(){
cin >> p;
while(p--){
cin >> k >> n;
ind.clear();
for(int i = 0; i < n; i++)
cin >> x, ind[x].push_back(i + 1);
int ans = 0, cover = 0;
for(auto ... | 22.37931 | 64 | 0.382126 | MilladMuhammadi |
43a99d04447cdc66ec8c3f95d4a7819dd5fc2314 | 7,651 | cpp | C++ | src/fhd_candidate_db.cpp | seemk/FastHumanDetection | 097564ba703dbcbe9737c63882e7dc986646e328 | [
"MIT"
] | 27 | 2016-04-10T19:37:47.000Z | 2020-09-26T10:38:07.000Z | src/fhd_candidate_db.cpp | seemk/FastHumanDetection | 097564ba703dbcbe9737c63882e7dc986646e328 | [
"MIT"
] | 3 | 2016-06-04T16:12:41.000Z | 2020-08-02T23:08:22.000Z | src/fhd_candidate_db.cpp | seemk/FastHumanDetection | 097564ba703dbcbe9737c63882e7dc986646e328 | [
"MIT"
] | 10 | 2016-06-13T04:48:31.000Z | 2021-04-14T15:28:13.000Z | #include "fhd_candidate_db.h"
#include "fhd_candidate.h"
#include "fhd_hash.h"
#include "sqlite3/sqlite3.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
bool fhd_db_check_existing(fhd_candidate_db* db, int64_t hash) {
sqlite3_reset(db->existing_query);
sqlite3_bind_int64(db->existing_query, 1, hash);... | 31.485597 | 87 | 0.657692 | seemk |
43a9f1107ff31eab3ebfd60f9b0fd5dc33f2a02d | 2,544 | cc | C++ | public/util/thread/rate_limited_shared_queue_test.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | 3 | 2015-05-18T14:52:47.000Z | 2018-11-12T07:51:00.000Z | public/util/thread/rate_limited_shared_queue_test.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | null | null | null | public/util/thread/rate_limited_shared_queue_test.cc | room77/77up | 736806fbf52a5e722e8e57ef5c248823b067175d | [
"MIT"
] | 3 | 2015-08-04T05:58:18.000Z | 2018-11-12T07:51:01.000Z | // Copyright 2013 Room77, Inc.
// Author: Nicholas Edelman (edelman)
#include <thread>
#include "test/cc/test_main.h"
#include "util/thread/rate_limited_shared_queue.h"
namespace util {
namespace threading {
namespace test {
uint64_t TimestampMs() {
return chrono::duration_cast<chrono::milliseconds>(
chrono::... | 29.929412 | 85 | 0.717767 | room77 |
43afab95526333683faf830053d4b12f58749c5a | 8,654 | cc | C++ | java/cpp_version/cstr/est/Item.cc | Equidamoid/speech_tools | 9208f35ac1a8cd32c949b069c3ef073364f18a8b | [
"Unlicense"
] | 43 | 2017-09-13T10:54:00.000Z | 2022-03-23T02:11:39.000Z | usr_local/src/speech_tools/java/cpp_version/cstr/est/Item.cc | xbsdsongnan/docker-festival | 1e1c50c8bbd92d47ecb7edc7a464aadad5b9a0d6 | [
"Apache-2.0"
] | 20 | 2017-09-13T10:53:29.000Z | 2022-03-10T20:44:03.000Z | usr_local/src/speech_tools/java/cpp_version/cstr/est/Item.cc | xbsdsongnan/docker-festival | 1e1c50c8bbd92d47ecb7edc7a464aadad5b9a0d6 | [
"Apache-2.0"
] | 19 | 2017-09-17T23:42:57.000Z | 2021-11-28T11:31:20.000Z | /*************************************************************************/
/* */
/* Centre for Speech Technology Research */
/* University of Edinburgh, UK */
/* ... | 30.687943 | 123 | 0.608851 | Equidamoid |
43b0ed8adb0583bce0f41ec3e60711f5384d536b | 3,488 | cpp | C++ | cpp/dev/other/simple-zmq-test.cpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | 2 | 2020-03-11T03:53:19.000Z | 2020-10-06T03:18:32.000Z | cpp/dev/other/simple-zmq-test.cpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | null | null | null | cpp/dev/other/simple-zmq-test.cpp | MomsFriendlyRobotCompany/gecko | f340381113bdb423a39d47aaee61e013bb9e002a | [
"MIT"
] | null | null | null | #include <iostream>
#include <thread>
#include <chrono>
#include <stdio.h>
#include <unistd.h> // usleep
#include "time.hpp"
#include "event.hpp"
#include "signals.hpp"
// copy header from here
// https://github.com/zeromq/cppzmq
#include "zmq.hpp"
#include "zmq_addon.hpp"
using namespace std;
void sub(Event *e){
... | 26.029851 | 88 | 0.530963 | MomsFriendlyRobotCompany |
43b3a6569f3b970f5909467faee736b3052e6da1 | 1,246 | hpp | C++ | src/fcgisrv/dispatcher.hpp | Ezbob/fcgisrv | 9a32225fa1664f3c5aa654999599cb83c9249d58 | [
"MIT"
] | 1 | 2020-02-03T20:01:05.000Z | 2020-02-03T20:01:05.000Z | src/fcgisrv/dispatcher.hpp | Ezbob/fcgisrv | 9a32225fa1664f3c5aa654999599cb83c9249d58 | [
"MIT"
] | null | null | null | src/fcgisrv/dispatcher.hpp | Ezbob/fcgisrv | 9a32225fa1664f3c5aa654999599cb83c9249d58 | [
"MIT"
] | null | null | null |
#pragma once
#include <unordered_map>
#include <memory>
#include <string>
#include "http_method.hpp"
#include "iauthenticator.hpp"
#include "idispatcher.hpp"
#include "iserver_request_response.hpp"
#include "ierror_handler_provider.hpp"
#include "error_handler_set.hpp"
namespace fcgisrv {
class Dispatcher: publ... | 27.688889 | 76 | 0.675762 | Ezbob |
43b7ec4e738f20a643bc756d4fa029a4b93a743d | 8,958 | cpp | C++ | src/modules/detrend.cpp | bakerb845/rtseis | 7d1e9493e68c9d848daa5b5e89239cdfcddaa757 | [
"MIT"
] | 2 | 2021-03-27T17:26:06.000Z | 2022-02-02T16:55:10.000Z | src/modules/detrend.cpp | uofuseismo/rtseis | ee44ea68c22726cf0d24485e205cb91bc15436da | [
"MIT"
] | 1 | 2020-01-08T17:25:07.000Z | 2020-02-24T15:50:21.000Z | src/modules/detrend.cpp | bakerb845/rtseis | 7d1e9493e68c9d848daa5b5e89239cdfcddaa757 | [
"MIT"
] | 2 | 2019-11-19T06:32:35.000Z | 2020-12-11T04:20:38.000Z | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cstdint>
#include <ipps.h>
#include "private/throw.hpp"
#include "rtseis/postProcessing/singleChannel/detrend.hpp"
using namespace RTSeis::PostProcessing::SingleChannel;
class DetrendParameters::DetrendParmsImpl
{
public:
void clear()
{
... | 29.370492 | 107 | 0.582273 | bakerb845 |
43bbc69c75c395bbdfb99dc3cdae7134657af51a | 2,699 | cpp | C++ | Tools/ShaderCompiler/src/DEMShaderCompilerDLL.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 15 | 2019-05-07T11:26:13.000Z | 2022-01-12T18:26:45.000Z | Tools/ShaderCompiler/src/DEMShaderCompilerDLL.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 16 | 2021-10-04T17:15:31.000Z | 2022-03-20T09:34:29.000Z | Tools/ShaderCompiler/src/DEMShaderCompilerDLL.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 2 | 2019-04-28T23:27:48.000Z | 2019-05-07T11:26:18.000Z | #include "DEMShaderCompilerDLL.h"
/*
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
static HMODULE hDLL = nullptr;
static FDEMShaderCompiler_InitCompiler pInitCompiler = nullptr;
static FDEMShaderCompiler_GetLastOperationMessages pGetLastOperationMessages = nullptr;
static FDEMShaderCompiler_CompileShader pCompileS... | 34.164557 | 133 | 0.718414 | niello |
43c1086c9cce804f080e1726bf128619abd2ce42 | 18,031 | cpp | C++ | src/generate_dynamic_scene/generate_obstacle.cpp | test-bai-cpu/hdi_plan | 89684bb73832d7e40f3c669f284ffddb56a1e299 | [
"MIT"
] | 1 | 2021-07-31T12:34:11.000Z | 2021-07-31T12:34:11.000Z | src/generate_dynamic_scene/generate_obstacle.cpp | test-bai-cpu/hdi_plan | 89684bb73832d7e40f3c669f284ffddb56a1e299 | [
"MIT"
] | null | null | null | src/generate_dynamic_scene/generate_obstacle.cpp | test-bai-cpu/hdi_plan | 89684bb73832d7e40f3c669f284ffddb56a1e299 | [
"MIT"
] | 2 | 2021-05-08T13:27:31.000Z | 2021-09-24T07:59:04.000Z | #include "generate_dynamic_scene/generate_obstacle.hpp"
namespace hdi_plan {
GenerateObstacle::GenerateObstacle(const ros::NodeHandle &nh, const ros::NodeHandle &pnh)
: nh_(nh),
pnh_(pnh) {
// load parameters
if (!this->load_params()) {
ROS_WARN("[%s] Could not load all parameters in motion planner.",
... | 38.201271 | 156 | 0.72941 | test-bai-cpu |
43c6a295199dec79b5162b2b05b6c9657a841a6f | 2,494 | cpp | C++ | src/systems/RenderSystem.cpp | SgtCoDFish/obelisk | 8ff736a720f2604c7990477791cb5a983271f66a | [
"CC0-1.0",
"MIT"
] | 1 | 2018-10-03T20:46:57.000Z | 2018-10-03T20:46:57.000Z | src/systems/RenderSystem.cpp | SgtCoDFish/obelisk | 8ff736a720f2604c7990477791cb5a983271f66a | [
"CC0-1.0",
"MIT"
] | null | null | null | src/systems/RenderSystem.cpp | SgtCoDFish/obelisk | 8ff736a720f2604c7990477791cb5a983271f66a | [
"CC0-1.0",
"MIT"
] | null | null | null | #include <Ashley/Ashley.hpp>
#include <APG/graphics/SpriteBatch.hpp>
#include <components/CarriedComponent.hpp>
#include <components/DeckComponent.hpp>
#include "systems/RenderSystem.hpp"
namespace obelisk {
RenderSystem::RenderSystem(APG::SpriteBatch *batch, int64_t priority, APG::FontManager *fontManager,
... | 31.974359 | 110 | 0.699679 | SgtCoDFish |
43c88c3fea02760d482c72abaff5c32fd5dacf78 | 7,110 | cpp | C++ | Eunoia-Engine/Src/Eunoia/Core/Input.cpp | EunoiaGames/Eunoia-Dev | 94edea774d1de05dc6a0c24ffdd3bb91b91a3346 | [
"Apache-2.0"
] | null | null | null | Eunoia-Engine/Src/Eunoia/Core/Input.cpp | EunoiaGames/Eunoia-Dev | 94edea774d1de05dc6a0c24ffdd3bb91b91a3346 | [
"Apache-2.0"
] | null | null | null | Eunoia-Engine/Src/Eunoia/Core/Input.cpp | EunoiaGames/Eunoia-Dev | 94edea774d1de05dc6a0c24ffdd3bb91b91a3346 | [
"Apache-2.0"
] | null | null | null | #include "Input.h"
#include <cstring>
#ifdef EU_PLATFORM_WINDOWS
#include "../Platform/Win32/DisplayWin32.h"
#include <Xinput.h>
#endif
namespace Eunoia {
u8 EUInput::s_Keys[];
u8 EUInput::s_LastKeys[];
u8 EUInput::s_Buttons[];
u8 EUInput::s_LastButtons[];
u16 EUInput::s_GamepadButtons[];
u16 EUInput::s_LastGa... | 34.019139 | 179 | 0.696624 | EunoiaGames |
43cadcd456e0e1111e6607e5d3880b571da0f6fb | 46,798 | cpp | C++ | Src/C_BaseLib/FabArray.cpp | dappelha/BoxLib-omp4-Hackathon2016 | d35c11aaa85eed03baa04317c346921a349fdfcf | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/C_BaseLib/FabArray.cpp | dappelha/BoxLib-omp4-Hackathon2016 | d35c11aaa85eed03baa04317c346921a349fdfcf | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/C_BaseLib/FabArray.cpp | dappelha/BoxLib-omp4-Hackathon2016 | d35c11aaa85eed03baa04317c346921a349fdfcf | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-08-06T13:09:09.000Z | 2019-08-06T13:09:09.000Z | #include <winstd.H>
#include <iterator>
#include <numeric>
#ifdef BL_LAZY
#include <Lazy.H>
#endif
#include <Utility.H>
#include <FabArray.H>
#include <ParmParse.H>
#include <Geometry.H>
#ifdef BL_MEM_PROFILING
#include <MemProfiler.H>
#endif
//
// Set default values in Initialize()!!!
//
bool FabArrayBase::do_... | 26.559591 | 101 | 0.627698 | dappelha |
43cbe292b91de2b6acce12950bda6388ad7b3cb1 | 3,937 | cpp | C++ | FlowchartEditor/FlowchartLabel.cpp | pmachapman/Tulip | 54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a | [
"Unlicense"
] | null | null | null | FlowchartEditor/FlowchartLabel.cpp | pmachapman/Tulip | 54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a | [
"Unlicense"
] | 33 | 2018-09-14T21:58:20.000Z | 2022-01-12T21:39:22.000Z | FlowchartEditor/FlowchartLabel.cpp | pmachapman/Tulip | 54f7bc3e8d5bb452ed8de6e6622e23d5e9be650a | [
"Unlicense"
] | null | null | null | /* ==========================================================================
CFlowchartLabel
Author : Johan Rosengren, Abstrakt Mekanik AB
Date : 2004-04-29
Purpose : CFlowchartLabel is a CDiagramEntity-derived class.
It is a non-linkable transparent box with no border and
the title attribute disp... | 25.732026 | 106 | 0.566675 | pmachapman |
43cc4cc39a455fe655a2a1c148055992d5f959af | 3,618 | hpp | C++ | include/bitflag/bitflag.hpp | EmilyMansfield/cpp-bitflag | 158cc25f8d94ee93fb93e86b76a7d078c1b48ba1 | [
"CC0-1.0"
] | null | null | null | include/bitflag/bitflag.hpp | EmilyMansfield/cpp-bitflag | 158cc25f8d94ee93fb93e86b76a7d078c1b48ba1 | [
"CC0-1.0"
] | null | null | null | include/bitflag/bitflag.hpp | EmilyMansfield/cpp-bitflag | 158cc25f8d94ee93fb93e86b76a7d078c1b48ba1 | [
"CC0-1.0"
] | null | null | null | #ifndef EM_CPPBITFLAG_BITFLAG_HPP
#define EM_CPPBITFLAG_BITFLAG_HPP
#include <bitset>
#include <type_traits>
namespace em {
struct BitflagMarker {};
// Alternative to scoped enums for implementing bit flags, without using macros.
// Usage is
//
// struct MyFlags : Bitflag<32, MyFlags> {
// static constexpr enum_t... | 24.951724 | 80 | 0.668878 | EmilyMansfield |
43ccc581478c0a371fb766a28030ff37a4124547 | 335 | cpp | C++ | Solutions/6.cpp | Ignatoff/Project-Euler | 75e2bb74b30ddfe15fc07887c6d9943aa8ddbd87 | [
"MIT"
] | 1 | 2018-07-09T14:44:51.000Z | 2018-07-09T14:44:51.000Z | Solutions/6.cpp | Ignatoff/Project-Euler | 75e2bb74b30ddfe15fc07887c6d9943aa8ddbd87 | [
"MIT"
] | null | null | null | Solutions/6.cpp | Ignatoff/Project-Euler | 75e2bb74b30ddfe15fc07887c6d9943aa8ddbd87 | [
"MIT"
] | null | null | null | /*
TASK 6:
Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.
*/
#include <iostream>
int main()
{
int lim = 100;
int sqrOfSum = lim * lim * (lim + 1) * (lim + 1) / 4;
int sumOfSqr = (2 * lim + 1)*(lim + 1)*lim / 6;
std::cout << sqrOfSum - sumO... | 19.705882 | 118 | 0.614925 | Ignatoff |
43cd55c908685f16640ef6db605c50a2ed82e652 | 1,438 | cpp | C++ | C++Server/TM_Archive/src/ArchiveMessageProcessor.cpp | IncompleteWorlds/01_gs4cubesat | 4386a3a8b984e96cab364bab83fc2fb49aa5cc3d | [
"RSA-MD"
] | null | null | null | C++Server/TM_Archive/src/ArchiveMessageProcessor.cpp | IncompleteWorlds/01_gs4cubesat | 4386a3a8b984e96cab364bab83fc2fb49aa5cc3d | [
"RSA-MD"
] | null | null | null | C++Server/TM_Archive/src/ArchiveMessageProcessor.cpp | IncompleteWorlds/01_gs4cubesat | 4386a3a8b984e96cab364bab83fc2fb49aa5cc3d | [
"RSA-MD"
] | null | null | null | /**
* CubeGS
* An online Ground Segment for Cubesats and Small Sats
* (c) 2017 Incomplete Worlds
*
*/
#include <memory>
#include <thread>
using namespace std;
#include "AvroTypes.h"
#include "ArchiveModuleManager.h"
#include "ArchiveFactoryMessage.h"
#include "MessageUtils.h"
#include "ArchiveMessageProces... | 23.57377 | 109 | 0.716273 | IncompleteWorlds |
43cd983de999bc9ec5338b70fbe59500253dacbf | 3,834 | cpp | C++ | c++/Assignment 3 - Trees/test_driver.cpp | branjwong/portfolio | 1900293edc3dd99a0e50c6812fd5b74a0ab31085 | [
"MIT"
] | null | null | null | c++/Assignment 3 - Trees/test_driver.cpp | branjwong/portfolio | 1900293edc3dd99a0e50c6812fd5b74a0ab31085 | [
"MIT"
] | null | null | null | c++/Assignment 3 - Trees/test_driver.cpp | branjwong/portfolio | 1900293edc3dd99a0e50c6812fd5b74a0ab31085 | [
"MIT"
] | null | null | null | //============================================================================
// Name : test_driver.cpp
//============================================================================
#include "Customer.h"
#include "BSTree.h"
#include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
#defi... | 23.096386 | 78 | 0.589724 | branjwong |
43d22218e00c98b7c05feeb973b9aa6ffd975a29 | 1,866 | hh | C++ | spot/spot/tl/snf.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2018-03-02T14:29:57.000Z | 2018-03-02T14:29:57.000Z | spot/spot/tl/snf.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | null | null | null | spot/spot/tl/snf.hh | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2015-06-05T12:42:07.000Z | 2015-06-05T12:42:07.000Z | // -*- coding: utf-8 -*-
// Copyright (C) 2012, 2013, 2014, 2015 Laboratoire de Recherche et
// Developpement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
// Spot is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as publis... | 33.927273 | 72 | 0.661308 | mcc-petrinets |
43d5588b5e46c983a36043a44655d71fd9be6eef | 6,784 | hpp | C++ | util.hpp | darksky1605/accountsimulator | 77648a6e2f56ac75a4c327ed0b3eb9fd49787d8b | [
"MIT"
] | null | null | null | util.hpp | darksky1605/accountsimulator | 77648a6e2f56ac75a4c327ed0b3eb9fd49787d8b | [
"MIT"
] | null | null | null | util.hpp | darksky1605/accountsimulator | 77648a6e2f56ac75a4c327ed0b3eb9fd49787d8b | [
"MIT"
] | null | null | null | #ifndef UTIL_HPP
#define UTIL_HPP
#include <algorithm>
#include <cassert>
#include <functional>
#include <numeric>
#include <omp.h>
__inline__ int get_num_omp_threads() {
int num_threads = 1;
//get available number of threads
#pragma omp parallel
{
#pragma omp master
num_threads = omp_get_num_thre... | 34.612245 | 146 | 0.666421 | darksky1605 |
43d5d4b6043427fadadd8743ab1a694672170ef2 | 3,465 | cpp | C++ | Chapter5/DemoPlayer.cpp | sgeos/book_sdl_game_development | a37466bfe916313216f332cbcff07dc6b3800908 | [
"BSD-3-Clause"
] | 5 | 2020-08-01T21:18:55.000Z | 2021-11-30T12:12:37.000Z | Chapter5/DemoPlayer.cpp | sgeos/book_sdl_game_development | a37466bfe916313216f332cbcff07dc6b3800908 | [
"BSD-3-Clause"
] | null | null | null | Chapter5/DemoPlayer.cpp | sgeos/book_sdl_game_development | a37466bfe916313216f332cbcff07dc6b3800908 | [
"BSD-3-Clause"
] | null | null | null | #include <cmath>
#include <SDL2/SDL.h>
#include "DemoPlayer.h"
#include "Constants.h"
#include "InputHandler.h"
#include "SdlGameObject.h"
#include "TextureManager.h"
DemoPlayer::DemoPlayer(const LoaderParams *pParams) : SdlGameObject(pParams), mTarget(0.0, 0.0), mTargetApproachSpeed(0) {
TextureManager::Instance()... | 35.357143 | 122 | 0.667821 | sgeos |
43ddc07451870ff6a173576e39f907af6e76bfc4 | 394 | cpp | C++ | src/gl_test/Helper.cpp | russkev/opengl | 73417d1697d1964cfa001efc8e54eb90da95ed6e | [
"MIT"
] | 5 | 2020-03-26T11:55:55.000Z | 2021-07-30T04:14:21.000Z | src/gl_test/Helper.cpp | russkev/opengl | 73417d1697d1964cfa001efc8e54eb90da95ed6e | [
"MIT"
] | 3 | 2020-12-05T06:02:07.000Z | 2021-06-02T03:42:34.000Z | src/gl_test/Helper.cpp | russkev/opengl | 73417d1697d1964cfa001efc8e54eb90da95ed6e | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Helper.h"
namespace Helper
{
bool Helper::matrix_is_similar(const glm::mat4& result, const glm::mat4& expected, float tolerance)
{
bool is_similar = true;
for (auto i = 0; i < 4; ++i)
{
for (auto j = 0; j < 4; ++j)
{
if ((std::abs(result[i][j] - expected[i][j])) > toleranc... | 17.909091 | 100 | 0.576142 | russkev |
43de689122a8ceccf5e5cb92507b3bd71d362eef | 1,768 | cc | C++ | chrome/browser/browsing_data/counters/signin_data_counter.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/browsing_data/counters/signin_data_counter.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/browsing_data/counters/signin_data_counter.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/browsing_data/counters/signin_data_counter.h"
#include <string>
#include <utility>
namespace browsing_data {
SigninDataCounter... | 35.36 | 74 | 0.699095 | sarang-apps |
43dee39c446827cec6fb8b4b32dbc9a4fdd96987 | 330 | cpp | C++ | CodeForces/ChatRoom.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 3 | 2021-07-26T15:58:45.000Z | 2021-09-08T14:55:11.000Z | CodeForces/ChatRoom.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | null | null | null | CodeForces/ChatRoom.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 2 | 2021-05-31T11:27:59.000Z | 2021-10-03T13:26:00.000Z | /*
* 58A ChatRoom
* Jiawei Wang
* 19 May 2021
*/
#include <iostream>
#include <string>
using namespace::std;
int main() {
string s;
cin >> s;
string hello = "hello";
int index = 0; // to find
for (char c : s) if (c == hello[index]) index++;
if (index == 5) cout << "YES";
else cout <... | 14.347826 | 52 | 0.533333 | a4org |
43df2263ce8956eb110b6a0c78cd409eb3841384 | 12,329 | cpp | C++ | Testing/test_vector.cpp | neonkingfr/wildogcad | 6d9798daa672d3ab293579439f38bb279fa376c7 | [
"BSD-3-Clause"
] | null | null | null | Testing/test_vector.cpp | neonkingfr/wildogcad | 6d9798daa672d3ab293579439f38bb279fa376c7 | [
"BSD-3-Clause"
] | null | null | null | Testing/test_vector.cpp | neonkingfr/wildogcad | 6d9798daa672d3ab293579439f38bb279fa376c7 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2007, 2008, CerroKai Development
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redi... | 32.106771 | 111 | 0.680347 | neonkingfr |
43e2d972ddc4b6d1f73b722733a5a16a9b6837c9 | 4,049 | cpp | C++ | src/backends/sdl/system/event/original_processor.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | src/backends/sdl/system/event/original_processor.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | src/backends/sdl/system/event/original_processor.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | #include <awl/exception.hpp>
#include <awl/backends/sdl/system/event/original_processor.hpp>
#include <awl/backends/sdl/system/event/poll.hpp>
#include <awl/backends/sdl/system/event/processor.hpp>
#include <awl/backends/sdl/system/event/register.hpp>
#include <awl/backends/sdl/system/event/translate.hpp>
#include <awl... | 35.831858 | 98 | 0.71104 | freundlich |
43e3079be3ba0de4b400df152fce403d54fe8f1f | 314 | hpp | C++ | src/audio/decoder.hpp | kounoike/hisui | 7dca5cf4fedfdcf9320a1299ed61f16ee6a3a3ce | [
"Apache-2.0"
] | 31 | 2020-09-25T06:48:51.000Z | 2022-03-23T10:34:19.000Z | src/audio/decoder.hpp | kounoike/hisui | 7dca5cf4fedfdcf9320a1299ed61f16ee6a3a3ce | [
"Apache-2.0"
] | 17 | 2021-01-13T04:07:21.000Z | 2021-11-25T01:58:25.000Z | src/audio/decoder.hpp | kounoike/hisui | 7dca5cf4fedfdcf9320a1299ed61f16ee6a3a3ce | [
"Apache-2.0"
] | 2 | 2022-02-19T14:42:41.000Z | 2022-03-08T10:47:51.000Z | #pragma once
#include <cstddef>
#include <cstdint>
#include <utility>
namespace hisui::audio {
class Decoder {
public:
virtual ~Decoder() = default;
virtual std::pair<const std::int16_t*, const std::size_t> decode(
const unsigned char*,
const std::size_t) = 0;
};
} // namespace hisui::audio
| 17.444444 | 67 | 0.66879 | kounoike |
43ef8e33b26ff4a0209ef6640729abbc7e629e1d | 4,636 | cc | C++ | node_modules/nodegit/src/diff_hunk.cc | jiumx60rus/grishyGhost | c56241304da11b9a1307c6261cca50f7546981b1 | [
"MIT"
] | null | null | null | node_modules/nodegit/src/diff_hunk.cc | jiumx60rus/grishyGhost | c56241304da11b9a1307c6261cca50f7546981b1 | [
"MIT"
] | null | null | null | node_modules/nodegit/src/diff_hunk.cc | jiumx60rus/grishyGhost | c56241304da11b9a1307c6261cca50f7546981b1 | [
"MIT"
] | null | null | null | // This is a generated file, modify: generate/templates/class_content.cc.
#include <nan.h>
#include <string.h>
#include <chrono>
#include <thread>
extern "C" {
#include <git2.h>
}
#include "../include/functions/copy.h"
#include "../include/macros.h"
#include "../include/diff_hunk.h"
#include <iostream>
using n... | 28.09697 | 139 | 0.653149 | jiumx60rus |
43f0205db308bcee718c97b8fcda3bc73557b629 | 74,819 | cpp | C++ | SCARD-v3/4DPlugin-SCARD.cpp | miyako/4d-plugin-scard-v3 | 02c8ab02c1b26a44131023bad0302a755b6a26e9 | [
"MIT"
] | null | null | null | SCARD-v3/4DPlugin-SCARD.cpp | miyako/4d-plugin-scard-v3 | 02c8ab02c1b26a44131023bad0302a755b6a26e9 | [
"MIT"
] | null | null | null | SCARD-v3/4DPlugin-SCARD.cpp | miyako/4d-plugin-scard-v3 | 02c8ab02c1b26a44131023bad0302a755b6a26e9 | [
"MIT"
] | null | null | null | /* --------------------------------------------------------------------------------
#
# 4DPlugin-SCARD.cpp
# source generated by 4D Plugin Wizard
# Project : SCARD
# author : miyako
# 2021/11/04
#
# --------------------------------------------------------------------------------*/
#include "4DPlug... | 43.024152 | 181 | 0.345233 | miyako |
43f021543f14e0202a2c5e5a337d935ab0df4774 | 8,222 | cpp | C++ | src/main.cpp | bmstu-gaming/SquaresAndPairs | 9f52b0e509c5f46971264ce8f23acf700f184dce | [
"Apache-2.0"
] | null | null | null | src/main.cpp | bmstu-gaming/SquaresAndPairs | 9f52b0e509c5f46971264ce8f23acf700f184dce | [
"Apache-2.0"
] | null | null | null | src/main.cpp | bmstu-gaming/SquaresAndPairs | 9f52b0e509c5f46971264ce8f23acf700f184dce | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
*
* @file main.cpp
*
* @brief This file contains the game logic
*
* Group: BMSTU GaminG
* Target Device: PC
*
******************************************************************************
Copyright (c) 2019, BMSTU GaminG Incorporated
All ... | 33.422764 | 98 | 0.585016 | bmstu-gaming |
43f11a7842552df6f1b6a01dd5e9ebc3db3e3146 | 6,098 | cc | C++ | src/comm/HPLAI_2ring.cc | ATestGroup233/HPL-AI | 2eb76d856d9ed2bd565014e1004d735755e061c9 | [
"MIT"
] | 11 | 2021-03-16T11:21:42.000Z | 2022-01-25T20:42:16.000Z | src/comm/HPLAI_2ring.cc | ATestGroup233/HPL-AI | 2eb76d856d9ed2bd565014e1004d735755e061c9 | [
"MIT"
] | 1 | 2021-03-13T18:19:54.000Z | 2021-03-20T14:07:31.000Z | src/comm/HPLAI_2ring.cc | ATestGroup233/HPL-AI | 2eb76d856d9ed2bd565014e1004d735755e061c9 | [
"MIT"
] | 5 | 2021-03-16T11:21:44.000Z | 2022-02-13T05:09:24.000Z | /*
* MIT License
*
* Copyright (c) 2021 WuK
*
* 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, me... | 26.398268 | 81 | 0.568383 | ATestGroup233 |
43f2e24668bbb4b4dfa765c1c1d58891afbdb623 | 359 | cpp | C++ | C++/1436.cpp | TianChenjiang/LeetCode | a680c90bc968eba5aa76c3674af1f2d927986ec7 | [
"MIT"
] | 1 | 2021-08-31T08:53:47.000Z | 2021-08-31T08:53:47.000Z | C++/1436.cpp | TianChenjiang/LeetCode | a680c90bc968eba5aa76c3674af1f2d927986ec7 | [
"MIT"
] | null | null | null | C++/1436.cpp | TianChenjiang/LeetCode | a680c90bc968eba5aa76c3674af1f2d927986ec7 | [
"MIT"
] | null | null | null | class Solution {
public:
string destCity(vector<vector<string>>& paths) {
unordered_set<string> m;
for (auto path : paths) {
m.insert(path[0]);
}
for (auto path : paths) {
if (!m.count(path[0])) return path[0];
if (!m.count(path[1])) return path[1]... | 25.642857 | 52 | 0.48468 | TianChenjiang |
43f3d40f5b6bd59d9cdb75e306a2a7a60c0cf550 | 2,099 | cc | C++ | src/lib/fast_erosion.cc | jube/mapmaker | e2eb6b1fbc3d803d56817aea86b350bd26ad5fa4 | [
"ISC"
] | 15 | 2015-03-18T18:07:30.000Z | 2020-10-15T16:59:19.000Z | src/lib/fast_erosion.cc | jube/mapmaker | e2eb6b1fbc3d803d56817aea86b350bd26ad5fa4 | [
"ISC"
] | null | null | null | src/lib/fast_erosion.cc | jube/mapmaker | e2eb6b1fbc3d803d56817aea86b350bd26ad5fa4 | [
"ISC"
] | 1 | 2020-01-16T17:37:11.000Z | 2020-01-16T17:37:11.000Z | /*
* Copyright (c) 2014, Julien Bernard
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS... | 33.854839 | 127 | 0.655074 | jube |
43f41f1c212f5509167cfc327c221c92834db095 | 138 | hpp | C++ | src/gameworld/gameworld/effect/sceneeffect/sceneskill.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/gameworld/gameworld/effect/sceneeffect/sceneskill.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/gameworld/gameworld/effect/sceneeffect/sceneskill.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #ifndef __SCENE_SKILL_HPP__
#define __SCENE_SKILL_HPP__
#include "effect/sceneeffect/sceneskillbase.hpp"
#endif // __SCENE_SKILL_HPP__
| 17.25 | 48 | 0.833333 | mage-game |
43f4aff944b278f80081e25b812db90d3c7c0927 | 19,496 | inl | C++ | opencl/test/unit_test/api/cl_get_kernel_sub_group_info_tests.inl | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 778 | 2017-09-29T20:02:43.000Z | 2022-03-31T15:35:28.000Z | opencl/test/unit_test/api/cl_get_kernel_sub_group_info_tests.inl | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 478 | 2018-01-26T16:06:45.000Z | 2022-03-30T10:19:10.000Z | opencl/test/unit_test/api/cl_get_kernel_sub_group_info_tests.inl | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 215 | 2018-01-30T08:39:32.000Z | 2022-03-29T11:08:51.000Z | /*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/test/unit_test/fixtures/hello_world_fixture.h"
#include "opencl/test/unit_test/test_macros/test_checks_ocl.h"
using namespace NEO;
struct KernelSubGroupInfoFixture : HelloWorldFixture<HelloWorldFixtureFactory> ... | 33.212947 | 169 | 0.690501 | troels |
43f6d1337ac7a4592687a851ed0a763bbd0cb3b8 | 415 | hh | C++ | psdaq/epicsArch/EpicsConfigType.hh | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | null | null | null | psdaq/epicsArch/EpicsConfigType.hh | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | null | null | null | psdaq/epicsArch/EpicsConfigType.hh | JBlaschke/lcls2 | 30523ef069e823535475d68fa283c6387bcf817b | [
"BSD-3-Clause-LBNL"
] | null | null | null | #ifndef Pds_EpicsConfigType_hh
#define Pds_EpicsConfigType_hh
#include "xtcdata/xtc/TypeId.hh"
#include "xtcdata/psddl/epics.ddl.h"
typedef Pds::Epics::ConfigV1 EpicsConfigType;
static Pds::TypeId _epicsConfigType(Pds::TypeId::Id_EpicsConfig,
EpicsConfigType::Version);
namespace ... | 21.842105 | 64 | 0.715663 | JBlaschke |
43fa97fe09d6d1b3145683f98b27e17a7c802436 | 2,261 | hpp | C++ | Sources/Models/Model.hpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | 1 | 2019-03-13T08:26:38.000Z | 2019-03-13T08:26:38.000Z | Sources/Models/Model.hpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | null | null | null | Sources/Models/Model.hpp | hhYanGG/Acid | f5543e9290aee5e25c6ecdafe8a3051054b203c0 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include "Renderer/Buffers/IndexBuffer.hpp"
#include "Renderer/Buffers/VertexBuffer.hpp"
#include "Resources/Resources.hpp"
#include "IVertex.hpp"
namespace acid
{
/// <summary>
/// Class that represents a OBJ model.
/// </summary>
class ACID_EXPORT Model :
publi... | 27.240964 | 107 | 0.688633 | hhYanGG |
43fef5d10e4d4fc82f09d5468593b67c60f98ed9 | 6,812 | cpp | C++ | ventana_03/ventana_03.cpp | asm128/101_graphics | 8bcdc6cdd7c471e6fdb00df777a05f6afdb7f986 | [
"Apache-2.0"
] | 1 | 2020-02-06T00:48:35.000Z | 2020-02-06T00:48:35.000Z | ventana_03/ventana_03.cpp | asm128/101_graphics | 8bcdc6cdd7c471e6fdb00df777a05f6afdb7f986 | [
"Apache-2.0"
] | null | null | null | ventana_03/ventana_03.cpp | asm128/101_graphics | 8bcdc6cdd7c471e6fdb00df777a05f6afdb7f986 | [
"Apache-2.0"
] | null | null | null | #include <Windows.h>
#include "framework.h"
// Callback for window events (required to handle window events such as click or closing the window)
LRESULT WINAPI WndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
switch(uMsg) {
case WM_DESTROY: // Catch the window's DESTROY message which is p... | 43.948387 | 181 | 0.659718 | asm128 |
43fffefb06ef4149b1f413c347bf67e6badaf05e | 4,990 | cpp | C++ | nanosrv/nanosoft/snmp/snmpparser.cpp | zolotov-av/nanosoft | 2aebb09d7d8a424d4de9b57d7586dbb72eed9fa0 | [
"MIT"
] | 1 | 2019-11-19T14:31:37.000Z | 2019-11-19T14:31:37.000Z | nanosrv/nanosoft/snmp/snmpparser.cpp | zolotov-av/nanosoft | 2aebb09d7d8a424d4de9b57d7586dbb72eed9fa0 | [
"MIT"
] | null | null | null | nanosrv/nanosoft/snmp/snmpparser.cpp | zolotov-av/nanosoft | 2aebb09d7d8a424d4de9b57d7586dbb72eed9fa0 | [
"MIT"
] | 1 | 2020-01-14T10:30:59.000Z | 2020-01-14T10:30:59.000Z |
#include <nanosoft/snmp/snmpparser.h>
#include <stdio.h>
#include <string.h>
SNMPParser::SNMPParser()
{
}
SNMPParser::~SNMPParser()
{
}
/**
* Обработчик чтения переменной
*/
void SNMPParser::onGetValue(const int *oid, size_t len)
{
printf(" GET(%d.%d", oid[0], oid[1]);
for(size_t i = 2; i < len; i++) pr... | 21.324786 | 94 | 0.635872 | zolotov-av |
a103d8269181b254d00b4da00abb8df864503e76 | 115,230 | cpp | C++ | asm/vm.cpp | janm31415/skiwi | 851a006c2964d527cc38b7a71f3e835b8dab52b5 | [
"MIT"
] | 4 | 2020-10-06T14:09:13.000Z | 2020-10-24T17:34:53.000Z | asm/vm.cpp | janm31415/skiwi | 851a006c2964d527cc38b7a71f3e835b8dab52b5 | [
"MIT"
] | null | null | null | asm/vm.cpp | janm31415/skiwi | 851a006c2964d527cc38b7a71f3e835b8dab52b5 | [
"MIT"
] | null | null | null | #include "vm.h"
#include <iostream>
#include <sstream>
#include <cassert>
#include <cmath>
#include <algorithm>
ASM_BEGIN
namespace
{
bool is_8_bit(uint64_t number)
{
int8_t b = int8_t(number);
return int64_t(b) == (int64_t)number;
}
bool is_16_bit(uint64_t number)
{
int16_t b = int16... | 34.366239 | 209 | 0.599835 | janm31415 |
a1071c1a19d23b9bcbb7b13e977aea73a62ea3bd | 1,594 | cpp | C++ | platforms/leetcode/0046_longest_repeating_character_replacement.cpp | idfumg/algorithms_collection | adc2288e20476d289a26a2db0734c6630118129c | [
"MIT"
] | 2 | 2020-09-17T09:04:00.000Z | 2020-11-20T19:43:18.000Z | platforms/leetcode/0046_longest_repeating_character_replacement.cpp | idfumg/algorithms_collection | adc2288e20476d289a26a2db0734c6630118129c | [
"MIT"
] | null | null | null | platforms/leetcode/0046_longest_repeating_character_replacement.cpp | idfumg/algorithms_collection | adc2288e20476d289a26a2db0734c6630118129c | [
"MIT"
] | null | null | null | #include "../../template.hpp"
int tab(const string& s, const int k) {
const int n = s.size();
unordered_map<int, int> window;
int window_size = 0;
int ans = 0;
for (int i = 0; i < n; ++i) {
++window[s[i]];
++window_size;
int same = 0;
for (const auto& [ch, count] : w... | 29.518519 | 140 | 0.525721 | idfumg |
a107570e56d27fc0523fca6764fcfac46ea4dabd | 3,567 | cpp | C++ | utils/L1/tests/stream_shuffle/test.cpp | heeran-xilinx/Vitis_Libraries | ab3f6969e397dc44705a7278fb0d480e905e72db | [
"Apache-2.0"
] | 1 | 2021-06-14T17:02:06.000Z | 2021-06-14T17:02:06.000Z | utils/L1/tests/stream_shuffle/test.cpp | heeran-xilinx/Vitis_Libraries | ab3f6969e397dc44705a7278fb0d480e905e72db | [
"Apache-2.0"
] | null | null | null | utils/L1/tests/stream_shuffle/test.cpp | heeran-xilinx/Vitis_Libraries | ab3f6969e397dc44705a7278fb0d480e905e72db | [
"Apache-2.0"
] | 1 | 2021-06-08T06:18:10.000Z | 2021-06-08T06:18:10.000Z | /*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 27.022727 | 116 | 0.5649 | heeran-xilinx |