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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c62ba82f26507c4449211900d7af3342ea19710f | 854 | cpp | C++ | lab3/lab6/lab6/main.cpp | AlexBlack559/stllabs | 8dd7bcf154c87631e125874dffa9d5189d1c14f9 | [
"MIT"
] | null | null | null | lab3/lab6/lab6/main.cpp | AlexBlack559/stllabs | 8dd7bcf154c87631e125874dffa9d5189d1c14f9 | [
"MIT"
] | null | null | null | lab3/lab6/lab6/main.cpp | AlexBlack559/stllabs | 8dd7bcf154c87631e125874dffa9d5189d1c14f9 | [
"MIT"
] | null | null | null | //
// main.cpp
// lab6
//
// Created by Alexander Chernyi on 29/09/2017.
// Copyright © 2017 Alexander Chernyi. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <streambuf>
#include <vector>
#include <set>
using namespace std;
struct Point {
int x,y;
};
struct Shape {
int vetex_nu... | 16.113208 | 101 | 0.591335 | AlexBlack559 |
c62c55c7b1eb1fc5972b151f4e333698db251c05 | 1,133 | cc | C++ | UVa Online Judge/v110/11003.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | 1 | 2021-12-08T08:58:43.000Z | 2021-12-08T08:58:43.000Z | UVa Online Judge/v110/11003.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | UVa Online Judge/v110/11003.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | /*=============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 11003.cc
# Description: UVa Online Judge - 11003
=============================================================================*/
#include <bi... | 26.97619 | 79 | 0.375993 | mjenrungrot |
c632a0e5946095aca67f1f114964edc6bfc45080 | 14,720 | cpp | C++ | src/2ls/summary_checker_base.cpp | viktormalik/2ls | d35ccf73c34d48e6fbf9a25049cd9c77bc2cb02a | [
"BSD-4-Clause"
] | null | null | null | src/2ls/summary_checker_base.cpp | viktormalik/2ls | d35ccf73c34d48e6fbf9a25049cd9c77bc2cb02a | [
"BSD-4-Clause"
] | 3 | 2017-09-15T14:43:44.000Z | 2017-11-24T09:12:41.000Z | src/2ls/summary_checker_base.cpp | viktormalik/2ls | d35ccf73c34d48e6fbf9a25049cd9c77bc2cb02a | [
"BSD-4-Clause"
] | 2 | 2017-09-18T09:41:22.000Z | 2018-01-29T18:12:33.000Z | /*******************************************************************\
Module: Summary Checker Base
Author: Peter Schrammel
\*******************************************************************/
/// \file
/// Summary Checker Base
#include <iostream>
#include <util/options.h>
#include <util/i2string.h>
#include <uti... | 28.862745 | 80 | 0.68587 | viktormalik |
c6343e197bf845ef1682bf5f1721539496c8f16a | 5,260 | cc | C++ | chrome/browser/policy/device_token_fetcher_unittest.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-02-20T14:25:04.000Z | 2019-12-13T13:58:28.000Z | chrome/browser/policy/device_token_fetcher_unittest.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-07-25T09:37:22.000Z | 2017-08-04T07:18:56.000Z | chrome/browser/policy/device_token_fetcher_unittest.cc | SlimKatLegacy/android_external_chromium | bc611cda58cc18d0dbaa8a7aee05eb3c0742e573 | [
"BSD-3-Clause"
] | 2 | 2017-08-09T09:03:23.000Z | 2020-05-26T09:14:49.000Z | // Copyright (c) 2011 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/policy/device_token_fetcher.h"
#include "base/file_util.h"
#include "base/memory/scoped_temp_dir.h"
#include "base/message_l... | 37.042254 | 75 | 0.752281 | SlimKatLegacy |
c634b533805e345840f1a76fbdcf6a21e52977b2 | 2,745 | hpp | C++ | aessparse.hpp | pibara/AESsparsepp | 12c51fd93ea344e6a65715026fe5baa6c18c34ed | [
"BSD-3-Clause"
] | 1 | 2019-04-30T05:40:55.000Z | 2019-04-30T05:40:55.000Z | aessparse.hpp | pibara/AESsparsepp | 12c51fd93ea344e6a65715026fe5baa6c18c34ed | [
"BSD-3-Clause"
] | null | null | null | aessparse.hpp | pibara/AESsparsepp | 12c51fd93ea344e6a65715026fe5baa6c18c34ed | [
"BSD-3-Clause"
] | null | null | null | #ifndef _AESSPARSE_HPP
#define _AESSPARSE_HPP
namespace aessparse {
//Interface for any type of sparse file implementation.
struct abstract_sparse_file {
//Low level read and write.
virtual ssize_t read(void *buf, size_t count, off_t offset) = 0;
virtual ssize_t write(const void *buf, size_t count... | 45.75 | 125 | 0.704918 | pibara |
c637589e05691bfe79809edbeceb26fcd88d3765 | 1,972 | cpp | C++ | Other/CampusChapter1/GAMENUM.cpp | vinaysomawat/CodeChef-Solutions | 9a0666a4f1badd593cd075f3beb05377e3c6657a | [
"MIT"
] | 1 | 2020-04-12T01:39:10.000Z | 2020-04-12T01:39:10.000Z | Other/CampusChapter1/GAMENUM.cpp | vinaysomawat/CodeChef-Solutions | 9a0666a4f1badd593cd075f3beb05377e3c6657a | [
"MIT"
] | null | null | null | Other/CampusChapter1/GAMENUM.cpp | vinaysomawat/CodeChef-Solutions | 9a0666a4f1badd593cd075f3beb05377e3c6657a | [
"MIT"
] | null | null | null | /*
Contest: CodeChef March 2020 Cook-Off challange
Problem link:https://www.codechef.com/CHPTRS01/problems/GAMENUM
GitHub Solution Repository: https://github.com/vinaysomawat/CodeChef-Solutions
Author: Vinay Somawat
Author's Webpage: http://vinaysomawat.github.io/
Author's mail: vinaysomawat@ho... | 21.204301 | 82 | 0.501014 | vinaysomawat |
c637af69d097f5019a95a19120f626dc1e8250aa | 663 | hpp | C++ | extras/CAEN/include/CAENFlashException.hpp | flagarde/YAODAQ | 851df4aa32b8695c4706bb3ec9f353f4461c9cad | [
"MIT"
] | null | null | null | extras/CAEN/include/CAENFlashException.hpp | flagarde/YAODAQ | 851df4aa32b8695c4706bb3ec9f353f4461c9cad | [
"MIT"
] | 11 | 2021-05-14T19:50:27.000Z | 2022-03-31T07:19:41.000Z | extras/CAEN/include/CAENFlashException.hpp | flagarde/YAODAQ | 851df4aa32b8695c4706bb3ec9f353f4461c9cad | [
"MIT"
] | 5 | 2021-05-11T13:30:30.000Z | 2021-05-26T19:57:22.000Z | #pragma once
#include "Exception.hpp"
namespace CAEN
{
enum FLASH_API_ERROR_CODES : int_least32_t
{
SUCCESS = 0,
ACCESS_FAILED = -1,
PARAMETER_NOT_ALLOWED = -2,
FILE_OPEN_ERROR = -3,
MALLOC_ERROR = -4,
UNINITIALIZED = -5,
NOT_IMPLEMENTED ... | 22.1 | 110 | 0.656109 | flagarde |
c6390e9603cc1dc1a6049e71dfc2921decdf829d | 1,193 | hpp | C++ | peer/src/base/RpcId.hpp | MisterTea/we-go-all | a58948db466d419ea6b12e0bac61c383d1c49a83 | [
"Apache-2.0"
] | 2 | 2018-10-08T22:08:55.000Z | 2019-02-06T17:44:24.000Z | peer/src/base/RpcId.hpp | MisterTea/we-go-all | a58948db466d419ea6b12e0bac61c383d1c49a83 | [
"Apache-2.0"
] | null | null | null | peer/src/base/RpcId.hpp | MisterTea/we-go-all | a58948db466d419ea6b12e0bac61c383d1c49a83 | [
"Apache-2.0"
] | null | null | null | #ifndef __RPC_ID_H__
#define __RPC_ID_H__
#include "Headers.hpp"
namespace wga {
class RpcId {
public:
RpcId() : barrier(0), id(0) {}
RpcId(int64_t _barrier, uint64_t _id) : barrier(_barrier), id(_id) {}
bool operator==(const RpcId& other) const {
return barrier == other.barrier && id == other.id;
}
bo... | 25.934783 | 75 | 0.643755 | MisterTea |
c639773af75377d6274e825e3cbaafc1df93caeb | 662 | cpp | C++ | luogu/codes/P1226.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | 1 | 2021-02-22T03:39:24.000Z | 2021-02-22T03:39:24.000Z | luogu/codes/P1226.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | luogu/codes/P1226.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | /*************************************************************
* > File Name : P1226.cpp
* > Author : Tony
* > Created Time : 2019/05/07 15:29:41
**************************************************************/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
LL b, p, k;
... | 26.48 | 65 | 0.39426 | Tony031218 |
c63a3fcc62e822c9df1a52f796b4cdf04490ed5b | 289 | cpp | C++ | Backup/testappBackup.cpp | erzu12/Minerva-Engine | 8e280946d561d31a0e09fe9d576dfca1412cd9e3 | [
"Apache-2.0"
] | null | null | null | Backup/testappBackup.cpp | erzu12/Minerva-Engine | 8e280946d561d31a0e09fe9d576dfca1412cd9e3 | [
"Apache-2.0"
] | null | null | null | Backup/testappBackup.cpp | erzu12/Minerva-Engine | 8e280946d561d31a0e09fe9d576dfca1412cd9e3 | [
"Apache-2.0"
] | null | null | null | #include "minerva.h"
#include <iostream>
class Testapp : public Core
{
public:
Testapp()
{
}
~Testapp()
{
}
Log log;
void Update(UpdateEvent* updateEvent) override
{
}
// void Start(StartEvent* startEvent) override
// {
// }
};
Core* GameInit(){
return new Testapp();
} | 10.321429 | 47 | 0.633218 | erzu12 |
c63b2e19b704532e353fd351a3ea4ee464e5c16d | 14,753 | hpp | C++ | src/game.hpp | assasinwar9/Barony | c67c01de1168db1c5a2edad98b23cfff9f999187 | [
"FTL",
"Zlib",
"MIT"
] | 373 | 2016-06-28T06:56:46.000Z | 2022-03-23T02:32:54.000Z | src/game.hpp | assasinwar9/Barony | c67c01de1168db1c5a2edad98b23cfff9f999187 | [
"FTL",
"Zlib",
"MIT"
] | 361 | 2016-07-06T19:09:25.000Z | 2022-03-26T14:14:19.000Z | src/game.hpp | addictgamer/Barony | c67c01de1168db1c5a2edad98b23cfff9f999187 | [
"FTL",
"Zlib",
"MIT"
] | 129 | 2016-06-29T09:02:49.000Z | 2022-01-23T09:56:06.000Z | /*-------------------------------------------------------------------------------
BARONY
File: game.hpp
Desc: header file for the game
Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved.
See LICENSE for details.
-------------------------------------------------------------------------------*/
#prag... | 30.607884 | 164 | 0.793601 | assasinwar9 |
c63b3390ffb324c52fedcfe538c9dc06eceb630b | 21,772 | cpp | C++ | src/evolve_eas_multi_objective.cpp | mihaioltean/evolve-algorithms | 16c86b21effc137483040838162a18579bf76fc2 | [
"MIT"
] | 1 | 2021-09-29T13:07:47.000Z | 2021-09-29T13:07:47.000Z | src/evolve_eas_multi_objective.cpp | mihaioltean/evolve-algorithms | 16c86b21effc137483040838162a18579bf76fc2 | [
"MIT"
] | null | null | null | src/evolve_eas_multi_objective.cpp | mihaioltean/evolve-algorithms | 16c86b21effc137483040838162a18579bf76fc2 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
// Evolving Evolutionary Algorithms for MultiObjective problems
// Copyright (C) 2016, Mihai Oltean (mihai.oltean@gmail.com)
// Version 2016.12.26.1
// Compiled with Microsoft Visual C++ 2013
// Just create a console application a... | 39.158273 | 224 | 0.638894 | mihaioltean |
c63e90a89646c8cb2b4c62a1d55fee5b927f722d | 112 | cpp | C++ | algorithms/default.cpp | kosmaz/HackerRank | 1107804c8213d169070a5529de26b97eb190e06c | [
"MIT"
] | 1 | 2015-03-21T20:08:28.000Z | 2015-03-21T20:08:28.000Z | algorithms/default.cpp | kosmaz/HackerRank | 1107804c8213d169070a5529de26b97eb190e06c | [
"MIT"
] | null | null | null | algorithms/default.cpp | kosmaz/HackerRank | 1107804c8213d169070a5529de26b97eb190e06c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void Run()
{
return;
}
int main()
{
Run();
return 0;
} | 8.615385 | 21 | 0.553571 | kosmaz |
c646a6d6df3c7f49f5cef31870b401f9ef22413c | 1,479 | cpp | C++ | Dynamic Programming/Longest Increasing Subsequence/LargestDivisibleSubset368.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | 38 | 2021-10-14T09:36:53.000Z | 2022-01-27T02:36:19.000Z | Dynamic Programming/Longest Increasing Subsequence/LargestDivisibleSubset368.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | null | null | null | Dynamic Programming/Longest Increasing Subsequence/LargestDivisibleSubset368.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | 4 | 2021-12-06T15:47:12.000Z | 2022-02-04T04:25:00.000Z | // Given a set of distinct positive integers nums, return the largest subset answer such that every pair
// (answer[i], answer[j]) of elements in this subset satisfies:
// answer[i] % answer[j] == 0, or
// answer[j] % answer[i] == 0
// If there are multiple solutions, return any of them.
// Example 1:
// Inp... | 29 | 106 | 0.443543 | devangi2000 |
c647e1588ab85979651918406ec9a2d73a6df0ab | 225 | cpp | C++ | coin2xml.cpp | milasudril/coin | 3e2d4778560894a36dfec9fc6cc245faae7301ae | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | coin2xml.cpp | milasudril/coin | 3e2d4778560894a36dfec9fc6cc245faae7301ae | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2018-01-21T08:39:47.000Z | 2018-01-21T08:42:18.000Z | coin2xml.cpp | milasudril/coin | 3e2d4778560894a36dfec9fc6cc245faae7301ae | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | //@ {"targets":[{"name":"coin2xml","type":"application"}]}
#include "input.hpp"
#include "writerxml.hpp"
#include "lexercoin.hpp"
int main()
{
read(stdin, CoIN::LexerCoIN{}, CoIN::WriterXML<FILE*>(stdout));
return 0;
}
| 18.75 | 64 | 0.648889 | milasudril |
c6495482a87babd49bb27f4964c179ea7f9aa3b1 | 1,856 | cpp | C++ | src/app/app_cmd_parser.cpp | yyh12345685/libnbf | 64f6fa1b37b88f673ead8577291b10a30cac4040 | [
"Apache-2.0"
] | null | null | null | src/app/app_cmd_parser.cpp | yyh12345685/libnbf | 64f6fa1b37b88f673ead8577291b10a30cac4040 | [
"Apache-2.0"
] | null | null | null | src/app/app_cmd_parser.cpp | yyh12345685/libnbf | 64f6fa1b37b88f673ead8577291b10a30cac4040 | [
"Apache-2.0"
] | 1 | 2021-10-13T01:35:07.000Z | 2021-10-13T01:35:07.000Z |
#include <string.h>
#include <iostream>
#include "app/app_cmd_parser.h"
#ifndef __APP_VERSION__
#define __APP_VERSION__ "(date: 22:25:00 2019/12/15 +0800)"
#endif
namespace bdf{
static void UsageInner(const char *exe, bool help){
std::cerr << "Copyright 2019 by yyh,"
<< " Basic Net Framework Model" << std::en... | 22.91358 | 76 | 0.543642 | yyh12345685 |
c64dcbaa41d8d220adf73936fdb62bddb9b6f7e0 | 1,425 | cpp | C++ | app/src/SingleRunHandler.cpp | elchtzeasar/balcony-watering-system | 2fb20dc8bdf79cff4b7ba93cb362489562b62732 | [
"MIT"
] | null | null | null | app/src/SingleRunHandler.cpp | elchtzeasar/balcony-watering-system | 2fb20dc8bdf79cff4b7ba93cb362489562b62732 | [
"MIT"
] | null | null | null | app/src/SingleRunHandler.cpp | elchtzeasar/balcony-watering-system | 2fb20dc8bdf79cff4b7ba93cb362489562b62732 | [
"MIT"
] | null | null | null | #include "SingleRunHandler.h"
#include "IArduino.h"
#include "HWFactory.h"
#include "LogicFactory.h"
#include "WateringLogic.h"
#include <string>
#include <iostream>
namespace balcony_watering_system {
namespace app {
using ::balcony_watering_system::hardware::HWFactory;
using ::balcony_watering_system::logic::Logi... | 24.152542 | 98 | 0.701754 | elchtzeasar |
c64f8c1cd88021908e2eb9b8bb0695bfe3f5cd3b | 2,572 | cc | C++ | tests/unit/features/StreamingDenseFeatures_unittest.cc | srgnuclear/shogun | 33c04f77a642416376521b0cd1eed29b3256ac13 | [
"Ruby",
"MIT"
] | 1 | 2015-11-05T18:31:14.000Z | 2015-11-05T18:31:14.000Z | tests/unit/features/StreamingDenseFeatures_unittest.cc | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | tests/unit/features/StreamingDenseFeatures_unittest.cc | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | /*
* 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 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2013 Viktor Gal
*/
#include <shogun/features/... | 27.073684 | 96 | 0.734837 | srgnuclear |
c65132082e64302e29b178bd5c1a5db607bae6a9 | 991 | cpp | C++ | DataStructures/Trie/Contacts/contacts.cpp | suzyz/HackerRank | e97f76c4b39aa448e43e30b479d9718b8b88b2d2 | [
"MIT"
] | null | null | null | DataStructures/Trie/Contacts/contacts.cpp | suzyz/HackerRank | e97f76c4b39aa448e43e30b479d9718b8b88b2d2 | [
"MIT"
] | null | null | null | DataStructures/Trie/Contacts/contacts.cpp | suzyz/HackerRank | e97f76c4b39aa448e43e30b479d9718b8b88b2d2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
class Trie
{
public:
int count;
Trie *p[26];
Trie()
{
count = 0;
memset(p,0,sizeof(p));
}
~Trie();
void add(string name);
int find(string prefix);
};
void Trie::add(string name)
{
Trie *ch = this;
for (int i = 0; i < na... | 13.391892 | 42 | 0.543895 | suzyz |
c652265353ccd4981683a608c6fa1215ce18c62f | 1,661 | cpp | C++ | src/io/io_file.cpp | le1ca/silica-irc | c81117e0416eb4446e2eddf9e810087159fd05cc | [
"MIT"
] | null | null | null | src/io/io_file.cpp | le1ca/silica-irc | c81117e0416eb4446e2eddf9e810087159fd05cc | [
"MIT"
] | null | null | null | src/io/io_file.cpp | le1ca/silica-irc | c81117e0416eb4446e2eddf9e810087159fd05cc | [
"MIT"
] | null | null | null | #include <silica/common/error.h>
#include <silica/io/io_file.h>
#include <fcntl.h>
#include <unistd.h>
namespace silica {
namespace io {
const std::unordered_map<std::string, int> io_file::flag_map = {{"r", O_RDONLY},
{"r+", O_RDWR},
... | 33.897959 | 101 | 0.493679 | le1ca |
c65447f8c5916a9cc3c384b5f68039ec7392a483 | 1,715 | cpp | C++ | merge_sort/main.cpp | 215559085/AlogrithmAndDatastructrue | 00b24b150fea29d2339d6a1797768174e955fc05 | [
"MIT"
] | null | null | null | merge_sort/main.cpp | 215559085/AlogrithmAndDatastructrue | 00b24b150fea29d2339d6a1797768174e955fc05 | [
"MIT"
] | null | null | null | merge_sort/main.cpp | 215559085/AlogrithmAndDatastructrue | 00b24b150fea29d2339d6a1797768174e955fc05 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
vector<int> merge_twins(vector<vector<int>>* twin_group){
auto* tg = twin_group;
int i = 1;
do{
vector<int> result;
vector<int> Vs1 = (*tg)[i-1];
vector<int> Vs2 = (*tg)[i];
for(int a=0,b=0;a<Vs1.size()||b<Vs2.size();... | 29.568966 | 115 | 0.486297 | 215559085 |
c65532dcda327cba6f96cf98e6047f99002a1dcb | 118 | cpp | C++ | project646/src/component146/cpp/lib1.cpp | gradle/perf-native-large | af00fd258fbe9c7d274f386e46847fe12062cc71 | [
"Apache-2.0"
] | 2 | 2016-11-23T17:25:24.000Z | 2016-11-23T17:25:27.000Z | project646/src/component146/cpp/lib1.cpp | gradle/perf-native-large | af00fd258fbe9c7d274f386e46847fe12062cc71 | [
"Apache-2.0"
] | 15 | 2016-09-15T03:19:32.000Z | 2016-09-17T09:15:32.000Z | project646/src/component146/cpp/lib1.cpp | gradle/perf-native-large | af00fd258fbe9c7d274f386e46847fe12062cc71 | [
"Apache-2.0"
] | 2 | 2019-11-09T16:26:55.000Z | 2021-01-13T10:51:09.000Z | #include <stdio.h>
#include <component146/lib1.h>
int component146_1 () {
printf("Hello world!\n");
return 0;
}
| 13.111111 | 30 | 0.661017 | gradle |
c65655ea0fc5628ef66eb4ebe9c8ab24b4d58a30 | 482 | cpp | C++ | src/RE/NetImmerse/NiRefObject/NiObject/NiColorData.cpp | thallada/CommonLibSSE | b092c699c3ccd1af6d58d05f677f2977ec054cfe | [
"MIT"
] | 1 | 2021-08-30T20:33:43.000Z | 2021-08-30T20:33:43.000Z | src/RE/NetImmerse/NiRefObject/NiObject/NiColorData.cpp | thallada/CommonLibSSE | b092c699c3ccd1af6d58d05f677f2977ec054cfe | [
"MIT"
] | null | null | null | src/RE/NetImmerse/NiRefObject/NiObject/NiColorData.cpp | thallada/CommonLibSSE | b092c699c3ccd1af6d58d05f677f2977ec054cfe | [
"MIT"
] | 1 | 2020-10-08T02:48:33.000Z | 2020-10-08T02:48:33.000Z | #include "RE/NetImmerse/NiRefObject/NiObject/NiColorData.h"
namespace RE
{
NiColorData::NiColorData() :
numKeys(0),
pad14(0),
keys(nullptr),
type(KeyType::kNoInterp),
keySize(0),
pad25(0),
pad26(0)
{}
std::uint32_t NiColorData::GetNumKeys() const
{
return numKeys;
}
NiColorKey* NiColorData::... | 15.548387 | 104 | 0.682573 | thallada |
c6567048e511e42f403afd7a4dd35ed2a879183f | 7,055 | cpp | C++ | src/pgen/dusty_soundwave.cpp | PinghuiHuang/athena-pp-dustfluids | fce21992cc107aa553e83dd76b8d03ae90e990c7 | [
"BSD-3-Clause"
] | 2 | 2020-07-02T09:48:49.000Z | 2020-08-25T02:37:21.000Z | src/pgen/dusty_soundwave.cpp | PinghuiHuang/athena-pp-dustfluids | fce21992cc107aa553e83dd76b8d03ae90e990c7 | [
"BSD-3-Clause"
] | null | null | null | src/pgen/dusty_soundwave.cpp | PinghuiHuang/athena-pp-dustfluids | fce21992cc107aa553e83dd76b8d03ae90e990c7 | [
"BSD-3-Clause"
] | 1 | 2021-11-12T13:39:48.000Z | 2021-11-12T13:39:48.000Z | //========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//===============================... | 36.937173 | 101 | 0.617576 | PinghuiHuang |
c65d17798602b9ca5256d8dfa64085cebf993067 | 28,893 | cpp | C++ | UnrealMvvmTests/Source/UnrealMvvmTests/Private/ListenManager.spec.cpp | druhasu/UnrealMvvm | 3ab5a2e98a36583c74c72c0a76c1669f37ff1820 | [
"MIT"
] | 5 | 2021-11-28T17:09:25.000Z | 2022-03-14T08:55:03.000Z | UnrealMvvmTests/Source/UnrealMvvmTests/Private/ListenManager.spec.cpp | druhasu/UnrealMvvm | 3ab5a2e98a36583c74c72c0a76c1669f37ff1820 | [
"MIT"
] | null | null | null | UnrealMvvmTests/Source/UnrealMvvmTests/Private/ListenManager.spec.cpp | druhasu/UnrealMvvm | 3ab5a2e98a36583c74c72c0a76c1669f37ff1820 | [
"MIT"
] | 2 | 2021-12-23T14:10:28.000Z | 2022-03-27T15:34:10.000Z | // Copyright Andrei Sudarikov. All Rights Reserved.
#include "Misc/AutomationTest.h"
#include "Mvvm/ListenManager.h"
#include "TestListener.h"
BEGIN_DEFINE_SPEC(ListenManagerSpec, "UnrealMvvm.ListenManager", EAutomationTestFlags::ClientContext | EAutomationTestFlags::EditorContext | EAutomationTestFlags::ServerCont... | 41.692641 | 214 | 0.582736 | druhasu |
c6607ed75baf7e2ae95be4b8afdba08de2d70c57 | 5,159 | cpp | C++ | src/editable_graph.cpp | jlwitthuhn/cycles-shader-editor | 0d6771801402ca7ecff006f399be90b1beea2884 | [
"MIT"
] | 11 | 2018-04-05T06:52:17.000Z | 2021-12-14T07:02:52.000Z | src/editable_graph.cpp | jlwitthuhn/cycles-shader-editor | 0d6771801402ca7ecff006f399be90b1beea2884 | [
"MIT"
] | 2 | 2018-01-18T04:30:58.000Z | 2020-07-25T09:49:23.000Z | src/editable_graph.cpp | jlwitthuhn/cycles-shader-editor | 0d6771801402ca7ecff006f399be90b1beea2884 | [
"MIT"
] | 4 | 2018-04-02T13:36:40.000Z | 2021-08-21T21:23:23.000Z | #include "editable_graph.h"
#include "node_outputs.h"
#include "sockets.h"
#include "util_vector.h"
cse::EditableGraph::EditableGraph(const ShaderGraphType type)
{
reset(type);
}
void cse::EditableGraph::add_node(std::shared_ptr<EditableNode>& node, const Float2 world_pos)
{
if (node.use_count() == 0) {
return;
... | 24.684211 | 134 | 0.718356 | jlwitthuhn |
c660c618ee8ef913577bbbda3f560db160ae2d42 | 1,188 | cpp | C++ | Source/Core/Geometry/HittableList.cpp | T-rvw/RayTracingRender | 941782dc070b27db381976650aa6bddd8e6f45a1 | [
"MIT"
] | null | null | null | Source/Core/Geometry/HittableList.cpp | T-rvw/RayTracingRender | 941782dc070b27db381976650aa6bddd8e6f45a1 | [
"MIT"
] | null | null | null | Source/Core/Geometry/HittableList.cpp | T-rvw/RayTracingRender | 941782dc070b27db381976650aa6bddd8e6f45a1 | [
"MIT"
] | null | null | null | #include "HittableList.h"
std::optional<HitRecord> HittableList::hit(const Ray& ray, double minT, double maxT) const
{
bool hitAnything = false;
double closestT = maxT;
std::optional<HitRecord> finalResult = std::nullopt;
for (const auto& pHittableObject : m_vecHittableObjects)
{
std::opti... | 26.4 | 90 | 0.598485 | T-rvw |
c661be2d8619ef8cca0232b790ae6157d71518b7 | 1,725 | hpp | C++ | HttpServer/include/Http/HttpStatusCode.hpp | WoozChucky/cpp-webserver-eventdriven | 5ea96b299f7f948e45a7591b4aa46b3e6e895373 | [
"MIT"
] | 1 | 2021-04-13T18:36:38.000Z | 2021-04-13T18:36:38.000Z | HttpServer/include/Http/HttpStatusCode.hpp | WoozChucky/cpp-webserver-eventdriven | 5ea96b299f7f948e45a7591b4aa46b3e6e895373 | [
"MIT"
] | 1 | 2022-03-02T00:24:24.000Z | 2022-03-02T00:24:24.000Z | HttpServer/include/Http/HttpStatusCode.hpp | WoozChucky/cpp-webserver-eventdriven | 5ea96b299f7f948e45a7591b4aa46b3e6e895373 | [
"MIT"
] | null | null | null | //
// Created by Nuno Levezinho Silva on 17/09/2019.
//
#ifndef HTTPSTATUSCODE_HPP
#define HTTPSTATUSCODE_HPP
#include <Abstractions/Types.hpp>
enum HttpStatusCode : U16 {
/* 1xx Status Codes */
CONTINUE = 100,
SWITCHING_PROTOCOLS = 101,
EARLY_HINTS = 103,
/* 2xx Status Codes */
OK = 200,
... | 23.310811 | 49 | 0.669565 | WoozChucky |
c6620ab873aefa1315e7443326b824fab893e6ac | 949 | cpp | C++ | Dice_throw.cpp | shivamkrs89/DYNAMIC-PROGRAMMING | 7284918d61107ed9ac8092349b5289c69e628e2d | [
"MIT"
] | 2 | 2021-05-27T14:56:52.000Z | 2021-05-27T15:08:02.000Z | Dice_throw.cpp | shivamkrs89/DYNAMIC-PROGRAMMING | 7284918d61107ed9ac8092349b5289c69e628e2d | [
"MIT"
] | null | null | null | Dice_throw.cpp | shivamkrs89/DYNAMIC-PROGRAMMING | 7284918d61107ed9ac8092349b5289c69e628e2d | [
"MIT"
] | null | null | null | Given integers n, faces, and total, return the number of ways it is possible to throw n dice with faces faces each to get total.
Mod the result by 10 ** 9 + 7.
Constraints
1 ≤ n, faces, total ≤ 100
Example 1
Input
n = 2
faces = 6
total = 7
Output
6
Explanation
There are 6 ways to make 7 with 2 6-sided di... | 15.306452 | 128 | 0.582719 | shivamkrs89 |
c66346c8c4231e22097018ff169b19d3c7c200de | 1,314 | cpp | C++ | src/common/utils/timer.cpp | VNOpenAI/daisykit | 8c313c3ce067e0cc6e2880543a791a778a3f4bfa | [
"Apache-2.0"
] | 13 | 2021-09-06T04:15:45.000Z | 2021-09-30T04:03:36.000Z | src/common/utils/timer.cpp | Daisykit-AI/daisykit | 1342e2849e45f11cd05df7c2d990b4e4679c4e7e | [
"Apache-2.0"
] | 7 | 2021-09-17T17:43:11.000Z | 2021-09-28T12:38:11.000Z | src/common/utils/timer.cpp | Daisykit-AI/daisykit | 1342e2849e45f11cd05df7c2d990b4e4679c4e7e | [
"Apache-2.0"
] | 5 | 2021-09-12T03:26:28.000Z | 2021-10-09T07:39:15.000Z | // Copyright 2021 The DaisyKit Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | 32.04878 | 77 | 0.709285 | VNOpenAI |
c664f6a8ac1667c36a3a4c5bc1fb915baf952536 | 949 | cpp | C++ | arm/src/dynamixel_hand_control.cpp | AvatarQuest/AVA-ros | 3e945d859155f559761f47040b1431e0e9ee8da1 | [
"MIT"
] | null | null | null | arm/src/dynamixel_hand_control.cpp | AvatarQuest/AVA-ros | 3e945d859155f559761f47040b1431e0e9ee8da1 | [
"MIT"
] | null | null | null | arm/src/dynamixel_hand_control.cpp | AvatarQuest/AVA-ros | 3e945d859155f559761f47040b1431e0e9ee8da1 | [
"MIT"
] | null | null | null | #include "ros/ros.h"
#include <geometry_msgs/Vector3.h>
#define AXIS y
double states[5];
void pinkyCB(const geometry_msgs::Vector3::ConstPtr& msg) {
}
void ringCB(const geometry_msgs::Vector3::ConstPtr& msg) {
}
void indexCB(const geometry_msgs::Vector3::ConstPtr& msg) {
}
void middleCB(const geometry_msgs... | 23.146341 | 69 | 0.689146 | AvatarQuest |
c6655ba5c3b1ea97fca8c409457b22d999f41bdb | 7,068 | hh | C++ | core/bootstrap/srpc.hh | HXLLL/rlibv2 | a9165e5863dae9c54e0fe80e682f75ec31d858c6 | [
"Apache-2.0"
] | 17 | 2020-06-27T01:01:25.000Z | 2022-02-26T00:20:20.000Z | core/bootstrap/srpc.hh | HXLLL/rlibv2 | a9165e5863dae9c54e0fe80e682f75ec31d858c6 | [
"Apache-2.0"
] | null | null | null | core/bootstrap/srpc.hh | HXLLL/rlibv2 | a9165e5863dae9c54e0fe80e682f75ec31d858c6 | [
"Apache-2.0"
] | 6 | 2020-07-08T02:18:09.000Z | 2022-02-16T01:36:13.000Z | #pragma once
#include <mutex> // lock
#include <utility> // std::pair
#include "./channel.hh"
#include "./multi_msg.hh"
#include "./proto.hh"
namespace rdmaio {
namespace bootstrap {
using namespace proto;
enum CallStatus : u8 {
Ok = 0,
Nop,
WrongReply,
NotMatch,
FatalErr,
};
struct __attribute__((pa... | 27.826772 | 84 | 0.604697 | HXLLL |
c668d4df23c87822213e9a3314680eff69713ff9 | 361 | cpp | C++ | data_structure/test/union_find.test.cpp | cormoran/LibAlgorithm | 9eec05a36343c891be5fee475678a283081c68d3 | [
"MIT"
] | 1 | 2020-03-28T23:46:14.000Z | 2020-03-28T23:46:14.000Z | data_structure/test/union_find.test.cpp | cormoran/LibAlgorithm | 9eec05a36343c891be5fee475678a283081c68d3 | [
"MIT"
] | null | null | null | data_structure/test/union_find.test.cpp | cormoran/LibAlgorithm | 9eec05a36343c891be5fee475678a283081c68d3 | [
"MIT"
] | null | null | null | #define PROBLEM "https://judge.yosupo.jp/problem/unionfind"
#include "../union_find.hpp"
int main() {
int N, Q;
cin >> N >> Q;
UnionFind uf(N);
while (Q--) {
int t, u, v;
cin >> t >> u >> v;
if (t == 0)
uf.unite(u, v);
else
cout << (uf.query(u, v... | 20.055556 | 59 | 0.434903 | cormoran |
c66d7bd2cd24a9b86b2c0a2054db11807b7ad3e3 | 420 | cpp | C++ | ContainerWithMostWater/ContainerWithMostWater.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | ContainerWithMostWater/ContainerWithMostWater.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | ContainerWithMostWater/ContainerWithMostWater.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | #include<vector>
#include<iostream>
#include<algorithm>
using namespace::std;
class Solution {
public:
int maxArea(vector<int>& height) {
int m = 0, n = height.size();
for (int i = 0; i < n; ++i)
for (int j = i + 1; j < n;++j)
{
m = max(min(height[i], height[j])*(j - i),m);
}
return m;
}
};
int main... | 16.153846 | 48 | 0.566667 | yergen |
c66d9feab8bf43eb3a8d932bc2b5b85b71c95fab | 816 | cpp | C++ | 2out/NamedTest.cpp | DBrutski/2out | 28aecd80496250641672638c9ab2cfdc9e5df36d | [
"MIT"
] | null | null | null | 2out/NamedTest.cpp | DBrutski/2out | 28aecd80496250641672638c9ab2cfdc9e5df36d | [
"MIT"
] | null | null | null | 2out/NamedTest.cpp | DBrutski/2out | 28aecd80496250641672638c9ab2cfdc9e5df36d | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2020 Andrey Valyaev <dron.valyaev@gmail.com>
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
#include "NamedTest.h"
#include "NamedResult.h"
#include "SuiteTest.h"
using namespace std;
using namespace oout;
NamedTest:... | 25.5 | 83 | 0.746324 | DBrutski |
c66df8b390747c9ce12f0ade5066bbbada49eedb | 762 | cpp | C++ | UVa/AC/A_Change_in_Thermal_Unit-11984.cpp | AHJenin/acm-type-problems | e2a6d58fe8872ceaed822f5ee8911bfc173c6192 | [
"MIT"
] | 4 | 2018-05-17T08:37:53.000Z | 2018-06-08T18:47:21.000Z | UVa/AC/A_Change_in_Thermal_Unit-11984.cpp | arafat-hasan/acm-type-problems | e2a6d58fe8872ceaed822f5ee8911bfc173c6192 | [
"MIT"
] | null | null | null | UVa/AC/A_Change_in_Thermal_Unit-11984.cpp | arafat-hasan/acm-type-problems | e2a6d58fe8872ceaed822f5ee8911bfc173c6192 | [
"MIT"
] | null | null | null | /**************************************************************
* FILE NAME: A_Change_in_Thermal_Unit-11984.cpp
*
* PURPOSE: Solve of Uva problem.
*
* @author: Md. Arafat Hasan Jenin
* EMAIL: OpenDoor.Arafat@gmail.com
*
* DEVELOPMENT HISTORY:
* Date Change Version Description
* ----... | 27.214286 | 70 | 0.392388 | AHJenin |
c66e985c0711996f7104556c5b523c0e1ef16624 | 2,244 | cc | C++ | chrome/browser/download/download_resource_throttle.cc | iplo/Chain | 8bc8943d66285d5258fffc41bed7c840516c4422 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | chrome/browser/download/download_resource_throttle.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2017-02-14T21:55:58.000Z | 2017-02-14T21:55:58.000Z | chrome/browser/download/download_resource_throttle.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/download/download_resource_throttle.h"
#include "base/bind.h"
#include "chrome/browser/download/download_stats.h"
#include "... | 26.714286 | 75 | 0.717023 | iplo |
c670d9031f90bb661f04de19db1931e8af596364 | 4,039 | cxx | C++ | test/mpi/cxx/io/fileerrx.cxx | OpenCMISS-Dependencies/mpich2 | cc5f4d3fd0f8c9f2774d10deaebdced77985d839 | [
"Unlicense"
] | 7 | 2015-12-31T03:15:50.000Z | 2020-08-15T00:54:47.000Z | test/mpi/cxx/io/fileerrx.cxx | grondo/mvapich2-cce | ec084d8e07db1cf2ac1352ee4c604ae7dbae55cb | [
"Intel",
"mpich2",
"Unlicense"
] | 3 | 2015-12-30T22:28:15.000Z | 2017-05-16T19:17:42.000Z | test/mpi/cxx/io/fileerrx.cxx | grondo/mvapich2-cce | ec084d8e07db1cf2ac1352ee4c604ae7dbae55cb | [
"Intel",
"mpich2",
"Unlicense"
] | 3 | 2015-12-29T22:14:56.000Z | 2019-06-13T07:23:35.000Z | /* -*- Mode: C++; c-basic-offset:4 ; -*- */
/*
*
* (C) 2003 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "mpi.h"
#include "mpitestconf.h"
#ifdef HAVE_IOSTREAM
// Not all C++ compilers have iostream instead of iostream.h
#include <iostream>
#ifdef HAVE_NAMESPACE_STD
// Th... | 25.726115 | 78 | 0.607824 | OpenCMISS-Dependencies |
c67107e8ef019307c8a122f6a5d37eeaebb06ac6 | 2,006 | cpp | C++ | components/xtl/tests/xtl/types/type_info.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/xtl/tests/xtl/types/type_info.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/xtl/tests/xtl/types/type_info.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include <cstdio>
#include <xtl/type_info.h>
using namespace xtl;
struct A
{
virtual ~A () {}
};
void dump1 (const xtl::type_info& t)
{
#define DUMP_FIELD(X) if (t.X ()) printf (" %s\n", #X);
DUMP_FIELD (is_void);
DUMP_FIELD (is_integral);
DUMP_FIELD (is_floating_point);
DUMP_FIELD (... | 23.6 | 65 | 0.654536 | untgames |
c674dc404555c0f67ff09b2220a690bef2624a2d | 26,770 | cxx | C++ | Source/igstkLandmark3DRegistration.cxx | ipa/IGSTK | d31f77b04aa72469e18e8a989ed8316bad39ed7a | [
"BSD-3-Clause"
] | 5 | 2016-02-12T18:55:20.000Z | 2022-02-05T09:23:07.000Z | Source/igstkLandmark3DRegistration.cxx | ipa/IGSTK | d31f77b04aa72469e18e8a989ed8316bad39ed7a | [
"BSD-3-Clause"
] | 1 | 2018-01-26T10:39:31.000Z | 2018-01-26T10:39:31.000Z | Source/igstkLandmark3DRegistration.cxx | ipa/IGSTK | d31f77b04aa72469e18e8a989ed8316bad39ed7a | [
"BSD-3-Clause"
] | 4 | 2017-09-24T01:19:32.000Z | 2021-06-20T18:02:42.000Z | /*=========================================================================
Program: Image Guided Surgery Software Toolkit
Module: igstkLandmark3DRegistration.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) ISC Insight Software Consortium. All rights reserved.
See IGSTKCo... | 33.29602 | 80 | 0.617333 | ipa |
c679657a86fa3389305f5f1ea740f415f78da72e | 2,436 | cpp | C++ | dev/Basic/shared/database/DB_Config.cpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 50 | 2018-12-21T08:21:38.000Z | 2022-01-24T09:47:59.000Z | dev/Basic/shared/database/DB_Config.cpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 2 | 2018-12-19T13:42:47.000Z | 2019-05-13T04:11:45.000Z | dev/Basic/shared/database/DB_Config.cpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 27 | 2018-11-28T07:30:34.000Z | 2022-02-05T02:22:26.000Z | /*
* Copyright Singapore-MIT Alliance for Research and Technology
*
* File: DatabaseConfig.cpp
* Author: Pedro Gandola <pedrogandola@smart.mit.edu>
*
* Created on October 11, 2013, 11:26 AM
*/
#include "DB_Config.hpp"
#include "entities/profile/ProfileBuilder.hpp"
using namespace sim_mob;
using namespace ... | 22.555556 | 129 | 0.700328 | gusugusu1018 |
c67a69c925222045dc8c9466a3d985194826c68d | 8,394 | cpp | C++ | racermate/cpp_tester_save/trainer.cpp | SRAM/RacerMateDLL | a980e43919ae6c749561071cc135d5af221eb6c2 | [
"MIT"
] | 3 | 2020-10-08T21:30:28.000Z | 2021-04-27T00:24:00.000Z | racermate/cpp_tester_save/trainer.cpp | SRAM/RacerMateDLL | a980e43919ae6c749561071cc135d5af221eb6c2 | [
"MIT"
] | null | null | null | racermate/cpp_tester_save/trainer.cpp | SRAM/RacerMateDLL | a980e43919ae6c749561071cc135d5af221eb6c2 | [
"MIT"
] | null | null | null |
#include <stdlib.h>
#include <assert.h>
#include <glib_defines.h>
#include <fatalerror.h>
#include <dll_globals.h>
#include <errors.h>
#include "trainer.h"
int Trainer::Chainrings[MAX_FRONT_GEARS] = { 28, 39, 56, 0, 0 }; // up to 5 front gears
int Trainer::cogset[MAX_REAR_GEARS] = { ... | 26.479495 | 137 | 0.566476 | SRAM |
c690da46c5286e03571a740c0c5831a7dd3d8697 | 11,222 | cpp | C++ | src/uml/src_gen/uml/impl/TypeImpl.cpp | MichaelBranz/MDE4CPP | 5b918850a37e9cee54f6c3b92f381b0458451724 | [
"MIT"
] | null | null | null | src/uml/src_gen/uml/impl/TypeImpl.cpp | MichaelBranz/MDE4CPP | 5b918850a37e9cee54f6c3b92f381b0458451724 | [
"MIT"
] | 1 | 2019-03-01T00:54:13.000Z | 2019-03-04T02:15:50.000Z | src/uml/src_gen/uml/impl/TypeImpl.cpp | vallesch/MDE4CPP | 7f8a01dd6642820913b2214d255bef2ea76be309 | [
"MIT"
] | null | null | null | #include "uml/impl/TypeImpl.hpp"
#ifdef NDEBUG
#define DEBUG_MESSAGE(a) /**/
#else
#define DEBUG_MESSAGE(a) a
#endif
#ifdef ACTIVITY_DEBUG_ON
#define ACT_DEBUG(a) a
#else
#define ACT_DEBUG(a) /**/
#endif
//#include "util/ProfileCallCount.hpp"
#include <cassert>
#include <iostream>
#include <sstream>
#inc... | 25.105145 | 303 | 0.671894 | MichaelBranz |
c691771b3d95c6170f28ab814ecfc5b04c35fbad | 4,732 | cpp | C++ | terrain_generator/src/gen/Document.cpp | marek-cel/fightersfs-tools | e692a8af7e44cfae6e35ecfa916d3ffdc46a9eb3 | [
"CC0-1.0"
] | null | null | null | terrain_generator/src/gen/Document.cpp | marek-cel/fightersfs-tools | e692a8af7e44cfae6e35ecfa916d3ffdc46a9eb3 | [
"CC0-1.0"
] | null | null | null | terrain_generator/src/gen/Document.cpp | marek-cel/fightersfs-tools | e692a8af7e44cfae6e35ecfa916d3ffdc46a9eb3 | [
"CC0-1.0"
] | 1 | 2021-02-22T21:22:33.000Z | 2021-02-22T21:22:33.000Z | /****************************************************************************//*
* Copyright (C) 2020 Marek M. Cel
*
* 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, ... | 28.506024 | 80 | 0.531488 | marek-cel |
c691d6ee70928d2af3c4fda40cc2abc5dbe0c2bd | 402 | cpp | C++ | Codebreaker/problems/prefixsums/prefixsums.cpp | object-oriented-human/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | 2 | 2021-07-27T10:46:47.000Z | 2021-07-27T10:47:57.000Z | Codebreaker/problems/prefixsums/prefixsums.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | Codebreaker/problems/prefixsums/prefixsums.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
int n, q, l, r;
cin >> n >> q;
long long arr[n], pre[n+1];
pre[0] = 0;
for (int i = 0; i < n; i++) {
cin >> arr[i];
pre[i+1] = pre[i] + arr[i];
}
while... | 18.272727 | 42 | 0.41791 | object-oriented-human |
c694695e87e0bdedb9160fde71e98921f56e853f | 1,917 | hpp | C++ | src_code/AdvancedQt/timelog1/richtextlineedit.hpp | yanrong/book_demo | 20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f | [
"Apache-2.0"
] | null | null | null | src_code/AdvancedQt/timelog1/richtextlineedit.hpp | yanrong/book_demo | 20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f | [
"Apache-2.0"
] | null | null | null | src_code/AdvancedQt/timelog1/richtextlineedit.hpp | yanrong/book_demo | 20cd13f3c3507a11e826ebbf22bd1c7bcb36e06f | [
"Apache-2.0"
] | null | null | null | #ifndef RICHTEXTLINEEDIT_HPP
#define RICHTEXTLINEEDIT_HPP
/*
Copyright (c) 2009-10 Qtrac Ltd. All rights reserved.
This program or module 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 ver... | 27 | 72 | 0.718832 | yanrong |
c696f7511726ba3926ab439ccffe30451927f2ee | 265 | cpp | C++ | codeforce1/68A. Irrational problem.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce1/68A. Irrational problem.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce1/68A. Irrational problem.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | #include <stdio.h>
using namespace std;
int main() {
int p1, p2, p3, p4, a, b, res = 0;
scanf("%d %d %d %d %d %d", &p1, &p2, &p3, &p4, &a, &b);
for(int i = a; i <= b; ++i)
if(i == (((i % p1) % p2) % p3) % p4)
++res;
printf("%d\n", res);
return 0;
}
| 17.666667 | 56 | 0.449057 | khaled-farouk |
c6978ccc95c5107ae3b593a395d45c7448526eca | 7,899 | cpp | C++ | Examples/Tutorial1.cpp | haskellstudio/belle_old | a5ce86954b61dbacde1d1bf24472d95246be45e5 | [
"BSD-2-Clause"
] | null | null | null | Examples/Tutorial1.cpp | haskellstudio/belle_old | a5ce86954b61dbacde1d1bf24472d95246be45e5 | [
"BSD-2-Clause"
] | null | null | null | Examples/Tutorial1.cpp | haskellstudio/belle_old | a5ce86954b61dbacde1d1bf24472d95246be45e5 | [
"BSD-2-Clause"
] | null | null | null | /*
==============================================================================
Copyright 2007-2013 William Andrew Burnson. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistribut... | 39.298507 | 80 | 0.677681 | haskellstudio |
57927aac4a22c9f89ac86a3479e6d473a5015e39 | 998 | cpp | C++ | Hacker Rank/Equal_Stacks.cpp | aryabharat/ONLINE_CODING | 3f3318c5e660d9b30c14618db8068816ba902d0f | [
"Apache-2.0"
] | 1 | 2019-03-17T09:30:08.000Z | 2019-03-17T09:30:08.000Z | Hacker Rank/Equal_Stacks.cpp | aryabharat/ONLINE_CODING | 3f3318c5e660d9b30c14618db8068816ba902d0f | [
"Apache-2.0"
] | null | null | null | Hacker Rank/Equal_Stacks.cpp | aryabharat/ONLINE_CODING | 3f3318c5e660d9b30c14618db8068816ba902d0f | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n1,n2,n3;
cin >> n1 >> n2 >> n3;
vector <int> a (n1);
vector <int> b (n2);
vector <int> c (n3);
int s1=0,s2=0,s3=0;
for(int i=0;i<n1;i++)
{
cin >> a[i];
s1+=a[i];
}
for(int i=0;i<n2;i++)
{
... | 16.633333 | 68 | 0.298597 | aryabharat |
5792f109530c70a22aa33a23ff491e5c56d6fcc2 | 718 | cpp | C++ | src/regularizers/regularizer_l1_l2.cpp | Seraphid/eddl | f627585a05edb91aaf991b898163cbe8cca66caf | [
"MIT"
] | null | null | null | src/regularizers/regularizer_l1_l2.cpp | Seraphid/eddl | f627585a05edb91aaf991b898163cbe8cca66caf | [
"MIT"
] | null | null | null | src/regularizers/regularizer_l1_l2.cpp | Seraphid/eddl | f627585a05edb91aaf991b898163cbe8cca66caf | [
"MIT"
] | null | null | null | /*
* EDDL Library - European Distributed Deep Learning Library.
* Version: 0.3
* copyright (c) 2019, Universidad Politécnica de Valencia (UPV), PRHLT Research Centre
* Date: October 2019
* Author: PRHLT Research Centre, UPV, (rparedes@prhlt.upv.es), (jon@prhlt.upv.es)
* All rights reserved
*/
#include <stdio.h>
#incl... | 19.405405 | 86 | 0.643454 | Seraphid |
57953b4740e7cbf56e605f36e0e47547f20abe2e | 1,935 | cpp | C++ | Ds18b20.cpp | konkers/mcp | 4b926e886cb812177b3755f915bf53e866675c5d | [
"Apache-2.0"
] | null | null | null | Ds18b20.cpp | konkers/mcp | 4b926e886cb812177b3755f915bf53e866675c5d | [
"Apache-2.0"
] | null | null | null | Ds18b20.cpp | konkers/mcp | 4b926e886cb812177b3755f915bf53e866675c5d | [
"Apache-2.0"
] | null | null | null | // Copyright 2013 Erik Gilling <konkers@konkers.net>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... | 26.875 | 97 | 0.694057 | konkers |
579540c2c6fd2d4491af00e69b2522bb4d774fd9 | 4,426 | cpp | C++ | hal/src/main/native/sim/Notifier.cpp | nathanmutin/allwpilib | 3ff2c45e4559df7d6a28bac905ad92d0640c95ac | [
"BSD-3-Clause"
] | 5 | 2019-03-16T21:59:49.000Z | 2019-05-03T21:31:57.000Z | hal/src/main/native/sim/Notifier.cpp | nathanmutin/allwpilib | 3ff2c45e4559df7d6a28bac905ad92d0640c95ac | [
"BSD-3-Clause"
] | 1 | 2019-06-11T20:32:07.000Z | 2019-06-13T02:35:34.000Z | hal/src/main/native/sim/Notifier.cpp | nathanmutin/allwpilib | 3ff2c45e4559df7d6a28bac905ad92d0640c95ac | [
"BSD-3-Clause"
] | 5 | 2019-03-29T00:38:20.000Z | 2019-10-18T21:42:15.000Z | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 27.6625 | 80 | 0.641889 | nathanmutin |
579588c078078f70999774e00fd4cab4ecd210d1 | 2,055 | hpp | C++ | Tests/Tests.hpp | bbercovici/RigidBodyKinematics | 110d30cc20251081a4558f6851bdfd5abc0fdd82 | [
"MIT"
] | null | null | null | Tests/Tests.hpp | bbercovici/RigidBodyKinematics | 110d30cc20251081a4558f6851bdfd5abc0fdd82 | [
"MIT"
] | null | null | null | Tests/Tests.hpp | bbercovici/RigidBodyKinematics | 110d30cc20251081a4558f6851bdfd5abc0fdd82 | [
"MIT"
] | null | null | null | // MIT License
// Copyright (c) 2018 Benjamin Bercovici
// 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, mod... | 35.431034 | 81 | 0.771776 | bbercovici |
579a8f2bcac59e5a1b4c8cd04e1db176cfddd175 | 5,233 | cpp | C++ | src/thread.cpp | corehacker/ch-cpp-utils | 4b03045fbecc867f7c6b088eabd8aa4cc30f1170 | [
"MIT"
] | 5 | 2017-11-05T11:41:42.000Z | 2020-09-03T07:49:12.000Z | src/thread.cpp | corehacker/ch-cpp-utils | 4b03045fbecc867f7c6b088eabd8aa4cc30f1170 | [
"MIT"
] | 1 | 2017-11-14T02:50:16.000Z | 2017-11-14T02:50:16.000Z | src/thread.cpp | corehacker/ch-cpp-utils | 4b03045fbecc867f7c6b088eabd8aa4cc30f1170 | [
"MIT"
] | null | null | null | /*******************************************************************************
*
* BSD 2-Clause License
*
* Copyright (c) 2017, Sandeep Prakash
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... | 26.974227 | 85 | 0.590101 | corehacker |
579cf96ef36d30823a70b491cc0015e6813be116 | 7,562 | cpp | C++ | src/gpu/GrTextureParamsAdjuster.cpp | Perspex/skia | e25fe5a294e9cee8f23207eef63fad6cffa9ced4 | [
"Apache-2.0"
] | 2 | 2019-07-19T17:40:28.000Z | 2020-05-09T11:58:41.000Z | src/gpu/GrTextureParamsAdjuster.cpp | AvaloniaUI/skia | e25fe5a294e9cee8f23207eef63fad6cffa9ced4 | [
"Apache-2.0"
] | null | null | null | src/gpu/GrTextureParamsAdjuster.cpp | AvaloniaUI/skia | e25fe5a294e9cee8f23207eef63fad6cffa9ced4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrTextureParamsAdjuster.h"
#include "GrCaps.h"
#include "GrContext.h"
#include "GrDrawContext.h"
#include "GrGpu.h"
#include "GrGpuResourcePriv.h"
#include "GrResou... | 36.009524 | 100 | 0.609627 | Perspex |
579e193ddcadad859910cb1a513699ace70c2912 | 4,623 | cpp | C++ | Kamek/src/music.cpp | RedStoneMatt/SuperLuigiLandWii | 8b98f3b16a1e5d99681ac382d5e603248a1c53db | [
"MIT"
] | 4 | 2021-01-18T18:14:18.000Z | 2022-02-20T13:08:28.000Z | Kamek/src/music.cpp | RedStoneMatt/SuperLuigiLandWii | 8b98f3b16a1e5d99681ac382d5e603248a1c53db | [
"MIT"
] | null | null | null | Kamek/src/music.cpp | RedStoneMatt/SuperLuigiLandWii | 8b98f3b16a1e5d99681ac382d5e603248a1c53db | [
"MIT"
] | null | null | null | #include <game.h>
#include <sfx.h>
#include "music.h"
bool isTrailerMode;
struct HijackedStream {
//const char *original;
//const char *originalFast;
u32 stringOffset;
u32 stringOffsetFast;
u32 infoOffset;
u8 originalID;
int streamID;
};
struct Hijacker {
HijackedStream stream[2];
u8 currentStream;
u8 curr... | 23 | 134 | 0.687432 | RedStoneMatt |
579e4a7fae56346e0653227db8f680a97f5542d6 | 9,186 | cpp | C++ | src/demos/irrlicht/demo_IRR_fourbar.cpp | lucasw/chrono | e79d8c761c718ecb4c796725cff37026f357da8c | [
"BSD-3-Clause"
] | null | null | null | src/demos/irrlicht/demo_IRR_fourbar.cpp | lucasw/chrono | e79d8c761c718ecb4c796725cff37026f357da8c | [
"BSD-3-Clause"
] | null | null | null | src/demos/irrlicht/demo_IRR_fourbar.cpp | lucasw/chrono | e79d8c761c718ecb4c796725cff37026f357da8c | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 41.565611 | 116 | 0.629872 | lucasw |
57a02641dfeb01d4e5ac47a70fc678e18e36edd8 | 5,565 | hpp | C++ | sprite.hpp | mika314/brekout | 5ef4a08a84d250c5de340e593c1770ab92a4e8a9 | [
"MIT"
] | null | null | null | sprite.hpp | mika314/brekout | 5ef4a08a84d250c5de340e593c1770ab92a4e8a9 | [
"MIT"
] | null | null | null | sprite.hpp | mika314/brekout | 5ef4a08a84d250c5de340e593c1770ab92a4e8a9 | [
"MIT"
] | null | null | null | #pragma once
#include <sdlpp/sdlpp.hpp>
#define LOAD_SPRITE(name) loadSprite(sprite_##name##_bmp, sprite_##name##_bmp_len)
auto loadSprite(unsigned char *, unsigned) -> SDL_Surface *;
// clang-format off
extern unsigned char sprite_title_screen_bmp[];
extern unsigned sprite_title_screen_bmp_len;
extern unsigned... | 44.52 | 82 | 0.82372 | mika314 |
57a458bbb8d961b2c92c33c797a509351c88222e | 865 | hpp | C++ | src/Net.hpp | edelkas/pfdb | f492767cb1fce18e737cdd6beeca23293a6acab4 | [
"MIT"
] | null | null | null | src/Net.hpp | edelkas/pfdb | f492767cb1fce18e737cdd6beeca23293a6acab4 | [
"MIT"
] | null | null | null | src/Net.hpp | edelkas/pfdb | f492767cb1fce18e737cdd6beeca23293a6acab4 | [
"MIT"
] | null | null | null | #pragma once
#include "Downloader.hpp"
#include "Parser.hpp"
enum Website { NONE, IMDB, FILMAFFINITY };
enum UrlType { MOVIE, SEARCH };
/**
* Class for downloading and parsing movies and movies searches.
*
* Each supported website is implemented as a namespace. It is extensible.
* This class is a singleton, only... | 22.763158 | 74 | 0.684393 | edelkas |
57a56c63473220c2da0c8dbe4d200fbadf9efd18 | 3,049 | cpp | C++ | SoundManager.cpp | thuxtable/thomas-was-late-tutorial | e9d333a62a903d5d951917b35b84268ceb1831df | [
"MIT"
] | null | null | null | SoundManager.cpp | thuxtable/thomas-was-late-tutorial | e9d333a62a903d5d951917b35b84268ceb1831df | [
"MIT"
] | null | null | null | SoundManager.cpp | thuxtable/thomas-was-late-tutorial | e9d333a62a903d5d951917b35b84268ceb1831df | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "SoundManager.h"
#include <SFML/Audio.hpp>
using namespace sf;
SoundManager::SoundManager() {
//Load the sound in the buffers
m_FireBuffer.loadFromFile("sound/fire1.wav");
m_FallInFireBuffer.loadFromFile("sound/fallinfire.wav");
m_FallInWaterBuffer.loadFromFile("sound/fallin... | 27.718182 | 83 | 0.740899 | thuxtable |
57a586a31db0ed73304515c6257bcb4fd49a856f | 809 | hpp | C++ | Runtime/GuiSys/CHudBossEnergyInterface.hpp | henriquegemignani/urde | 78185e682e16c3e1b41294d92f2841357272acb2 | [
"MIT"
] | 1 | 2020-06-09T07:49:34.000Z | 2020-06-09T07:49:34.000Z | Runtime/GuiSys/CHudBossEnergyInterface.hpp | henriquegemignani/urde | 78185e682e16c3e1b41294d92f2841357272acb2 | [
"MIT"
] | 6 | 2020-06-09T07:49:45.000Z | 2021-04-06T22:19:57.000Z | Runtime/GuiSys/CHudBossEnergyInterface.hpp | henriquegemignani/urde | 78185e682e16c3e1b41294d92f2841357272acb2 | [
"MIT"
] | null | null | null | #pragma once
#include "Runtime/RetroTypes.hpp"
#include <zeus/CVector3f.hpp>
namespace urde {
class CAuiEnergyBarT01;
class CGuiFrame;
class CGuiTextPane;
class CGuiWidget;
class CHudBossEnergyInterface {
float x0_alpha = 0.f;
float x4_fader = 0.f;
float x8_curEnergy = 0.f;
float xc_maxEnergy = 0.f;
bool x... | 26.096774 | 95 | 0.765142 | henriquegemignani |
57a5b85097776bebb42f508452cdfc7592037f12 | 541 | cpp | C++ | Codeforces/118A String Task.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | null | null | null | Codeforces/118A String Task.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | null | null | null | Codeforces/118A String Task.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | 2 | 2018-11-06T19:37:56.000Z | 2018-11-09T19:05:46.000Z | #include <bits/stdc++.h>
using namespace std;
char str[102];
int main( int argc, char ** argv ) {
scanf( "%s", str );
int len = strlen( str );
for( int i = 0 ; i < len ; i++ ) {
if( str[i] >= 'A' && str[i] <='Z' ) {
str[i] = 'a' + (str[i] - 'A');
}
}
for( int i = 0 ; ... | 23.521739 | 114 | 0.358595 | sreejonK19 |
57a9741f2146f092d4dbdc5156e43dd5eb8acbee | 729 | cpp | C++ | uva/562.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | uva/562.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | uva/562.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | #include<stdio.h>
#include<malloc.h>
#include<math.h>
main(){
int sum,min,*s1=(int *)malloc(sizeof(int)*50001),i,m,
*tmp,k[100],*s2=(int *)malloc(sizeof(int)*50001),j,n;
scanf("%d",&n);
for(;n>0;n--){
scanf("%d",&m);
for(sum=(i=0);i<m;i++){
scanf("%d",&k[i]);
sum+=k[i];
s1[i]=(s2[i]=0);
... | 22.78125 | 54 | 0.418381 | dk00 |
57abe71a368dd98e118131317ce49f209b66e373 | 13,130 | cpp | C++ | src/qt/src/3rdparty/webkit/Source/WebCore/platform/graphics/cg/GraphicsContext3DCG.cpp | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 46 | 2015-01-08T14:32:34.000Z | 2022-02-05T16:48:26.000Z | src/qt/src/3rdparty/webkit/Source/WebCore/platform/graphics/cg/GraphicsContext3DCG.cpp | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 7 | 2015-01-20T14:28:12.000Z | 2017-01-18T17:21:44.000Z | src/qt/src/3rdparty/webkit/Source/WebCore/platform/graphics/cg/GraphicsContext3DCG.cpp | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 14 | 2015-10-27T06:17:48.000Z | 2020-03-03T06:15:50.000Z | /*
* Copyright (C) 2010 Apple Inc. All rights reserved.
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the ... | 46.725979 | 184 | 0.695506 | ant0ine |
57ac3fb47e1ebac7f43a3a91551508cf2387b2b8 | 8,114 | hpp | C++ | adaptors/fftw/mpi.hpp | correaa/b-multi | 1e961f877662aa7a26933834f9064d2ec8b00b4a | [
"Intel"
] | null | null | null | adaptors/fftw/mpi.hpp | correaa/b-multi | 1e961f877662aa7a26933834f9064d2ec8b00b4a | [
"Intel"
] | 11 | 2020-05-09T20:57:21.000Z | 2020-06-10T00:00:17.000Z | adaptors/fftw/mpi.hpp | correaa/b-multi | 1e961f877662aa7a26933834f9064d2ec8b00b4a | [
"Intel"
] | null | null | null | #if COMPILATION// -*-indent-tabs-mode:t;c-basic-offset:4;tab-width:4;-*-
ln -sf $0 $0.cpp;mpicxx -g -I$HOME/prj/alf $0.cpp -o $0x -lfftw3 -lfftw3_mpi&&time mpirun -n 4 $0x&&rm $0x $0.cpp;exit
#ln -sf $0 $0.cpp;mpicxx -g -I$HOME/prj/alf $0.cpp -o $0x -lfftw3 -lfftw3_mpi&&time mpirun -n 4 valgrind --leak-check=full --tr... | 39.009615 | 287 | 0.678087 | correaa |
57ac65275f24017930aaba052830defa1b3b4019 | 14,297 | cpp | C++ | src/runtime/base/memory/smart_allocator.cpp | burhan/hiphop-php | 6e02d7072a02fbaad1856878c2515e35f7e529f0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | src/runtime/base/memory/smart_allocator.cpp | burhan/hiphop-php | 6e02d7072a02fbaad1856878c2515e35f7e529f0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | src/runtime/base/memory/smart_allocator.cpp | burhan/hiphop-php | 6e02d7072a02fbaad1856878c2515e35f7e529f0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... | 30.945887 | 79 | 0.585927 | burhan |
57adea372917bbbcf7eae81f58b06a7d8bd1f7ac | 1,038 | hpp | C++ | engine/Engine.hpp | InfiniBrains/mobagen | 262fa833195cd1b32f82ee4d825b0a39e7ebe4cb | [
"WTFPL"
] | 32 | 2017-12-29T16:44:35.000Z | 2021-08-06T23:10:28.000Z | engine/Engine.hpp | InfiniBrains/mobagen | 262fa833195cd1b32f82ee4d825b0a39e7ebe4cb | [
"WTFPL"
] | 66 | 2017-12-29T16:37:35.000Z | 2019-04-19T23:57:20.000Z | engine/Engine.hpp | InfiniBrains/mobagen | 262fa833195cd1b32f82ee4d825b0a39e7ebe4cb | [
"WTFPL"
] | 7 | 2017-12-29T16:49:53.000Z | 2021-08-06T23:10:35.000Z | #pragma once
#include <chrono>
#include "GLManager.hpp"
#include "Window.hpp"
#include "GLEWManager.hpp"
#include "PhysicsManager.hpp"
#include "Game.hpp"
#include "Input.hpp"
namespace mobagen {
class Engine {
public:
Engine(Game *game, char *windowTitle, glm::vec2 windowSize);
~Engine(void);
#ifdef... | 19.961538 | 76 | 0.714836 | InfiniBrains |
57aeafc36db70ae263debb875f1aab33a499d4d9 | 7,683 | cpp | C++ | src/ppu.cpp | ceanrim/CarmiNES | f0f20b95dba916893b4c4eb41f4b15e4fd075df1 | [
"BSD-2-Clause"
] | 2 | 2018-02-15T07:40:35.000Z | 2018-09-22T21:17:33.000Z | src/ppu.cpp | ceanrim/CarmiNES | f0f20b95dba916893b4c4eb41f4b15e4fd075df1 | [
"BSD-2-Clause"
] | null | null | null | src/ppu.cpp | ceanrim/CarmiNES | f0f20b95dba916893b4c4eb41f4b15e4fd075df1 | [
"BSD-2-Clause"
] | null | null | null | /* ========================================================================
File:
Date:
Revision:
Creator: Carmine Foggia
======================================================================== */
/*TODO:
*Simulate PPU registers completely and properly
*Emulate read/write buffering
*Emulate sp... | 28.246324 | 86 | 0.411948 | ceanrim |
57aedb8e4e426e87a08dd158627d2962880dc56f | 14,662 | cpp | C++ | Eudora71/EuShlExt/ShellHookImpl.cpp | dusong7/eudora-win | 850a6619e6b0d5abc770bca8eb5f3b9001b7ccd2 | [
"BSD-3-Clause-Clear"
] | 10 | 2018-05-23T10:43:48.000Z | 2021-12-02T17:59:48.000Z | Eudora71/EuShlExt/ShellHookImpl.cpp | ivanagui2/hermesmail-code | 34387722d5364163c71b577fc508b567de56c5f6 | [
"BSD-3-Clause-Clear"
] | 1 | 2019-03-19T03:56:36.000Z | 2021-05-26T18:36:03.000Z | Eudora71/EuShlExt/ShellHookImpl.cpp | ivanagui2/hermesmail-code | 34387722d5364163c71b577fc508b567de56c5f6 | [
"BSD-3-Clause-Clear"
] | 11 | 2018-05-23T10:43:53.000Z | 2021-12-27T15:42:58.000Z |
#include "windows.h"
#include <stdio.h>
#include "ShellHookImpl.h"
#include "tchar.h"
#include "time.h"
#include "resource.h"
extern unsigned int g_cRefThisDll;
extern DWORD TlsIndex;
extern HANDLE g_hModule;
// The Shell Factory Class
CShellExtClassFactory::CShellExtClassFactory()
{
//DumpLogInformation("CSh... | 25.49913 | 145 | 0.666417 | dusong7 |
57afb922aa05a8271d69066a46ac26b34dcdad8f | 947 | hpp | C++ | include/xvega/grammar/config/error_band_config.hpp | domoritz/xvega | 3754dee3e7e38e79282ba267cd86c3885807a4cd | [
"BSD-3-Clause"
] | 34 | 2020-08-14T14:32:51.000Z | 2022-02-16T23:20:02.000Z | include/xvega/grammar/config/error_band_config.hpp | domoritz/xvega | 3754dee3e7e38e79282ba267cd86c3885807a4cd | [
"BSD-3-Clause"
] | 19 | 2020-08-20T20:04:39.000Z | 2022-02-28T14:34:37.000Z | include/xvega/grammar/config/error_band_config.hpp | domoritz/xvega | 3754dee3e7e38e79282ba267cd86c3885807a4cd | [
"BSD-3-Clause"
] | 7 | 2020-08-14T14:18:17.000Z | 2022-02-01T10:59:24.000Z | // Copyright (c) 2020, QuantStack and XVega Contributors
//
// Distributed under the terms of the BSD 3-Clause License.
//
// The full license is in the file LICENSE, distributed with this software.
#ifndef XVEGA_ERROR_BAND_CONFIG_HPP
#define XVEGA_ERROR_BAND_CONFIG_HPP
#include "./mark_config.hpp"
namespace xv
{
... | 33.821429 | 85 | 0.7434 | domoritz |
57b2e3f8c0c66b13c2c56059e8b73489931844a4 | 903 | cpp | C++ | 0013_Roman_to_Integer/solution.cpp | Heliovic/LeetCode_Solutions | 73d5a7aaffe62da9a9cd8a80288b260085fda08f | [
"MIT"
] | 2 | 2019-02-18T15:32:57.000Z | 2019-03-18T12:55:35.000Z | 0013_Roman_to_Integer/solution.cpp | Heliovic/LeetCode_Solutions | 73d5a7aaffe62da9a9cd8a80288b260085fda08f | [
"MIT"
] | null | null | null | 0013_Roman_to_Integer/solution.cpp | Heliovic/LeetCode_Solutions | 73d5a7aaffe62da9a9cd8a80288b260085fda08f | [
"MIT"
] | null | null | null | class Solution {
public:
map<char, int> mp;
int romanToInt(string s) {
mp['I'] = 1;
mp['V'] = 5;
mp['X'] = 10;
mp['L'] = 50;
mp['C'] = 100;
mp['D'] = 500;
mp['M'] = 1000;
int ans = 0;
for (int i = 0; i < s.size(); i++)
... | 27.363636 | 61 | 0.311185 | Heliovic |
57b2e8d7bc408c63121f64cac74df2a28044a127 | 683 | cpp | C++ | copyfile/main.cpp | mario21ic/cpp-demos | 286968591a586c2332b9fa915f330b1a0b1219ee | [
"MIT"
] | null | null | null | copyfile/main.cpp | mario21ic/cpp-demos | 286968591a586c2332b9fa915f330b1a0b1219ee | [
"MIT"
] | null | null | null | copyfile/main.cpp | mario21ic/cpp-demos | 286968591a586c2332b9fa915f330b1a0b1219ee | [
"MIT"
] | null | null | null | #include<iostream>
#include<ncurses.h>
#include<fstream>
#include<stdio.h>
#include<stdlib.h>
void main()
{
clrscr();
ifstream fs;
ofstream ft;
char ch, fname1[20], fname2[20];
cout<<"Enter source file name with extension (like files.txt) : ";
gets(fname1);
fs.open(fname1);
if(!fs)
{
cout<<"Error in opening... | 16.261905 | 67 | 0.617862 | mario21ic |
57b451a9b4fd704c703280407af46606c21b24e8 | 894 | cpp | C++ | tests/simple_pputil.cpp | crapp/pputil | d38edd744f3f998dd4957e659641cab2fa5c6a40 | [
"MIT"
] | null | null | null | tests/simple_pputil.cpp | crapp/pputil | d38edd744f3f998dd4957e659641cab2fa5c6a40 | [
"MIT"
] | null | null | null | tests/simple_pputil.cpp | crapp/pputil | d38edd744f3f998dd4957e659641cab2fa5c6a40 | [
"MIT"
] | null | null | null | #include <iostream>
#include "pputil.hpp"
#include "simple_pputil.hpp"
namespace ut = pputil;
StreamOp::StreamOp(){};
StreamOp::StreamOp(std::string s) : mystring(std::move(s)){};
StreamOp::~StreamOp(){};
void StreamOp::setMyString(std::string mystring)
{
this->mystring = std::move(mystring);
}
std::string St... | 25.542857 | 81 | 0.657718 | crapp |
57b5d5e9433f6463eccbfc6bb319306cc083cfff | 8,478 | cpp | C++ | src/robot_model.cpp | mayataka/invariant-ekf | 775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0 | [
"BSD-3-Clause"
] | 1 | 2022-03-28T12:38:09.000Z | 2022-03-28T12:38:09.000Z | src/robot_model.cpp | mayataka/inekf | 775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0 | [
"BSD-3-Clause"
] | null | null | null | src/robot_model.cpp | mayataka/inekf | 775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0 | [
"BSD-3-Clause"
] | null | null | null | #include "inekf/robot_model.hpp"
namespace inekf {
pinocchio::Model RobotModel::buildFloatingBaseModel(
const std::string& path_to_urdf) {
pinocchio::Model pin_model;
pinocchio::urdf::buildModel(path_to_urdf,
pinocchio::JointModelFreeFlyer(), pin_model);
return pin_model;
}
... | 31.054945 | 107 | 0.612173 | mayataka |
57b686bb8b3c6b1fc326542951589ea72a6010b5 | 2,799 | cpp | C++ | Service/gpiopin.cpp | elnappo/Baulicht | 9ff14938d01b228135eb7092891e31494176782e | [
"MIT"
] | null | null | null | Service/gpiopin.cpp | elnappo/Baulicht | 9ff14938d01b228135eb7092891e31494176782e | [
"MIT"
] | 1 | 2015-04-07T22:46:18.000Z | 2015-04-08T07:27:55.000Z | Service/gpiopin.cpp | elnappo/Baulicht | 9ff14938d01b228135eb7092891e31494176782e | [
"MIT"
] | null | null | null | #include "gpiopin.h"
#include <QFile>
#include <QDebug>
namespace {
static const QString exportPath = "/sys/class/gpio/export";
static const QString pinPath = "/sys/class/gpio/gpio%1";
static const QString valuePath = "/sys/class/gpio/gpio%1/value";
static const QString directionPath = "/sys/class/gpi... | 19.851064 | 76 | 0.586995 | elnappo |
57bdf8636eacaf95435fb2340cc319a7ba07f6d5 | 4,727 | cpp | C++ | WebKit2-7534.57.7/WebKit2-7534.57.7/Platform/qt/SharedMemorySymbian.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | 1 | 2021-05-27T07:29:31.000Z | 2021-05-27T07:29:31.000Z | WebKit2-7534.57.7/WebKit2-7534.57.7/Platform/qt/SharedMemorySymbian.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | null | null | null | WebKit2-7534.57.7/WebKit2-7534.57.7/Platform/qt/SharedMemorySymbian.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | null | null | null | /*
Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) an... | 28.305389 | 104 | 0.697271 | mlcldh |
57be0c35fcf710e6e160fa71ecdaa7a3a5a7475d | 10,400 | cc | C++ | source/tracking/pyG4VSteppingVerbose.cc | yu22mal/geant4_pybind | ff7efc322fe53f39c7ae7ed140861052a92479fd | [
"Unlicense"
] | 6 | 2021-08-08T08:40:13.000Z | 2022-03-23T03:05:15.000Z | source/tracking/pyG4VSteppingVerbose.cc | yu22mal/geant4_pybind | ff7efc322fe53f39c7ae7ed140861052a92479fd | [
"Unlicense"
] | 3 | 2021-12-01T14:38:06.000Z | 2022-02-10T11:28:28.000Z | source/tracking/pyG4VSteppingVerbose.cc | yu22mal/geant4_pybind | ff7efc322fe53f39c7ae7ed140861052a92479fd | [
"Unlicense"
] | 3 | 2021-07-16T13:57:34.000Z | 2022-02-07T11:17:19.000Z | #include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <G4VSteppingVerbose.hh>
#include <G4SteppingVerbose.hh>
#include <G4SteppingManager.hh>
#include <G4Navigator.hh>
#include <G4VPhysicalVolume.hh>
#include <G4VSensitiveDetector.hh>
#include <G4ProcessVector.hh>
#include <G4SteppingManager.hh>
#include <... | 47.058824 | 114 | 0.793846 | yu22mal |
57befa71c36d17f4002708b73496a2f71d0dedbf | 109 | cc | C++ | live/score.cc | netromdk/patching | e08dd1655c1c3464c54e633423f231780853afe9 | [
"MIT"
] | 2 | 2016-10-18T02:19:30.000Z | 2019-09-12T02:40:37.000Z | live/score.cc | netromdk/patching | e08dd1655c1c3464c54e633423f231780853afe9 | [
"MIT"
] | null | null | null | live/score.cc | netromdk/patching | e08dd1655c1c3464c54e633423f231780853afe9 | [
"MIT"
] | null | null | null | #include <iostream>
int main() {
int score = 1;
std::cout << "score = " << score << "\n";
return 0;
}
| 13.625 | 43 | 0.513761 | netromdk |
57c2d05e086d53b3dd0832a7a37a3583a84af4f6 | 10,687 | hpp | C++ | include/strf/to_string.hpp | robhz786/strf | 72163cb10f5cc725788bbce74ce16e4024489734 | [
"BSL-1.0"
] | 49 | 2019-12-16T10:39:22.000Z | 2022-03-28T02:32:47.000Z | include/strf/to_string.hpp | ckerr/strf | 72163cb10f5cc725788bbce74ce16e4024489734 | [
"BSL-1.0"
] | 36 | 2019-12-13T00:31:22.000Z | 2022-03-13T18:22:14.000Z | include/strf/to_string.hpp | ckerr/strf | 72163cb10f5cc725788bbce74ce16e4024489734 | [
"BSL-1.0"
] | 3 | 2019-12-07T20:05:51.000Z | 2021-11-30T02:45:35.000Z | #ifndef STRF_DETAIL_OUTPUT_TYPES_STD_STRING_HPP
#define STRF_DETAIL_OUTPUT_TYPES_STD_STRING_HPP
// Copyright (C) (See commit logs on github.com/robhz786/strf)
// 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)
... | 29.199454 | 98 | 0.669879 | robhz786 |
57c5b18d422e0297b27d64813751f64fefa63d02 | 456 | cpp | C++ | sc-virt/src/lib/Transforms/ScVirt/OpcodeGenerator.cpp | tum-i4/dta-vs-osc | b39f4d4eb6ffea501025fc3e07622251c2118fe0 | [
"MIT"
] | 15 | 2021-12-08T09:53:35.000Z | 2022-03-07T10:13:37.000Z | sc-virt/src/lib/Transforms/ScVirt/OpcodeGenerator.cpp | tum-i4/dta-vs-osc | b39f4d4eb6ffea501025fc3e07622251c2118fe0 | [
"MIT"
] | null | null | null | sc-virt/src/lib/Transforms/ScVirt/OpcodeGenerator.cpp | tum-i4/dta-vs-osc | b39f4d4eb6ffea501025fc3e07622251c2118fe0 | [
"MIT"
] | 1 | 2021-12-13T22:45:20.000Z | 2021-12-13T22:45:20.000Z | #include "llvm/Transforms/ScVirt/OpcodeGenerator.hpp"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#define DEBUG_TYPE "OpcodeGenerator"
using namespace llvm;
uint16_t OpcodeGenerator::generate() {
auto Res = Distr(Generator);
while(UsedList.find(Res) != UsedList.end()) {
Res = Distr... | 20.727273 | 53 | 0.730263 | tum-i4 |
57c5cd5b95fad6a645cf3533d90300ba97a02577 | 3,941 | cpp | C++ | UVa 1342 - That Nice Euler Circuit/sample/1342 - That Nice Euler Circuit.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 1342 - That Nice Euler Circuit/sample/1342 - That Nice Euler Circuit.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 1342 - That Nice Euler Circuit/sample/1342 - That Nice Euler Circuit.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | // Euler characteristic, V - E + F = 2
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <set>
#include <map>
#include <assert.h>
#include <vector>
#include <string.h>
using namespace std;
#define eps 1e-8
struct Pt {
double x, y;
Pt(double a = 0, double b = 0):
x(a), y(b) {}
Pt operato... | 24.177914 | 77 | 0.4915 | tadvi |
57c658905af1af182a86b61a8114805c9749fd27 | 4,836 | cc | C++ | net/instaweb/rewriter/mobilize_menu_render_filter_test.cc | crowell/modpagespeed_tmp | d2c063875d819c46c2d88a5ddb70578cae2a5909 | [
"Apache-2.0"
] | null | null | null | net/instaweb/rewriter/mobilize_menu_render_filter_test.cc | crowell/modpagespeed_tmp | d2c063875d819c46c2d88a5ddb70578cae2a5909 | [
"Apache-2.0"
] | null | null | null | net/instaweb/rewriter/mobilize_menu_render_filter_test.cc | crowell/modpagespeed_tmp | d2c063875d819c46c2d88a5ddb70578cae2a5909 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 Google 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... | 30.037267 | 77 | 0.622622 | crowell |
57c966f2fc476239a6d8772ac677792003b36486 | 735 | cpp | C++ | src/reference.cpp | cscheid/guitar | b6ae866f3724822e151d6e9ecedfabcf13860c48 | [
"Apache-2.0"
] | 2 | 2015-01-08T00:08:48.000Z | 2018-10-24T22:15:27.000Z | src/reference.cpp | cscheid/guitar | b6ae866f3724822e151d6e9ecedfabcf13860c48 | [
"Apache-2.0"
] | null | null | null | src/reference.cpp | cscheid/guitar | b6ae866f3724822e151d6e9ecedfabcf13860c48 | [
"Apache-2.0"
] | 1 | 2018-10-24T22:15:28.000Z | 2018-10-24T22:15:28.000Z | #include "reference.h"
#include "entry_points.h"
using namespace Rcpp;
GitReference::GitReference(git_reference *_ref)
{
ref = boost::shared_ptr<git_reference>(_ref, git_reference_free);
}
bool GitReference::has_log()
{
return git_reference_has_log(ref.get());
}
SEXP GitReference::peel(unsigned int otype)
{... | 22.272727 | 72 | 0.693878 | cscheid |
57cc9065e37403ba79e00f4dcf601fd1a4920adc | 681 | cpp | C++ | MainFolder/Compass_debug/calibrate_com.cpp | chrismolli/quad101 | 687e219d41bc247c61e4c7776ce8f0ada2e29551 | [
"MIT"
] | 1 | 2018-02-06T02:11:47.000Z | 2018-02-06T02:11:47.000Z | MainFolder/Compass_debug/calibrate_com.cpp | chrismolli/quad101 | 687e219d41bc247c61e4c7776ce8f0ada2e29551 | [
"MIT"
] | 4 | 2016-06-21T22:00:09.000Z | 2016-10-25T17:38:03.000Z | MainFolder/Compass_debug/calibrate_com.cpp | chrismolli/quad101 | 687e219d41bc247c61e4c7776ce8f0ada2e29551 | [
"MIT"
] | 3 | 2017-04-27T20:19:16.000Z | 2021-01-17T23:46:34.000Z | /*
Debuging script for tilt compensated compass
*/
#include "Arduino.h"
#include "Timer.h"
#include "../lib/Sensors/IMU/imu.h"
#define SAMPLE_RATE_X 10
Timer t;
IMU imu;
void data(){
imu.update(SAMPLE_RATE_X);
}
void serial(){
//imu.debug();
//imu.com.sendSerial();
Serial.print(imu.rot[0]);
Serial.print(... | 15.477273 | 44 | 0.646109 | chrismolli |
57cd0a87c1529f73fb77b5fbaf9ecd99b3d829e3 | 3,232 | cpp | C++ | applications/plugins/Compliant/misc/FailNode.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/Compliant/misc/FailNode.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/Compliant/misc/FailNode.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | #include "FailNode.h"
namespace sofa {
namespace simulation {
using namespace core::objectmodel;
void FailNode::doExecuteVisitor(simulation::Visitor* /*action*/, bool /*precomputedOrder*/) {
fail();
}
void FailNode::fail() {
throw std::logic_error("not implemented");
}
void* FailNode::getObject(const sofa::cor... | 33.319588 | 139 | 0.678527 | sofa-framework |
57ce35b77d04cbea2b6b75b272998f6a8a49f8e9 | 1,895 | cpp | C++ | Includes/font.cpp | dracc/NevolutionX | a1a9495282cc5516ff17521cd57dc46dfa52b85d | [
"MIT"
] | 72 | 2019-03-28T19:23:52.000Z | 2022-03-12T05:58:19.000Z | Includes/font.cpp | dracc/NevolutionX | a1a9495282cc5516ff17521cd57dc46dfa52b85d | [
"MIT"
] | 94 | 2019-04-30T06:59:43.000Z | 2022-02-20T23:06:25.000Z | Includes/font.cpp | dracc/NevolutionX | a1a9495282cc5516ff17521cd57dc46dfa52b85d | [
"MIT"
] | 26 | 2019-04-27T14:11:11.000Z | 2022-03-27T03:18:47.000Z | #include "font.h"
#include <cassert>
#include "3rdparty/SDL_FontCache/SDL_FontCache.h"
#include "infoLog.h"
Font::Font(Renderer& renderer, const char* path) : renderer(renderer) {
fcFont = FC_CreateFont();
assert(fcFont);
bool load_success = FC_LoadFont(fcFont, renderer.getRenderer(), path, 20,
... | 36.442308 | 90 | 0.614248 | dracc |
57ce4fb7cb3d20c09ecb466270ed13f31ea84b47 | 6,046 | cpp | C++ | src/HPMeshGen2/main.cpp | DanielZint/hpmeshgen | cdfb9163ed92523fcf41a127c8173097e935c0a3 | [
"MIT"
] | 2 | 2022-02-09T08:51:16.000Z | 2022-02-09T08:51:27.000Z | src/HPMeshGen2/main.cpp | DanielZint/hpmeshgen | cdfb9163ed92523fcf41a127c8173097e935c0a3 | [
"MIT"
] | null | null | null | src/HPMeshGen2/main.cpp | DanielZint/hpmeshgen | cdfb9163ed92523fcf41a127c8173097e935c0a3 | [
"MIT"
] | null | null | null | #include <experimental/filesystem>
// glog
#include <glog/logging.h>
#include "Config.h"
#include "BsgGenerator.h"
// Mesh Function
#include "MeshFunctions.h"
#include "Simplificator.h"
#include "DMO/Solver.h"
#include "GridEvaluation/eval.h"
#include "baseDirectory.h"
#include "Simplify.h"
#include "ScalarField/... | 36.421687 | 169 | 0.700298 | DanielZint |
57ce95504d7b142d41b21bd26ed2768dde5ff27c | 712 | hpp | C++ | jobin/atomic.hpp | Marcos30004347/jobin | 40eec7bf9579002426320253eae6eaaea6b50d10 | [
"Apache-2.0"
] | 2 | 2020-09-30T05:12:09.000Z | 2020-10-12T23:40:32.000Z | jobin/atomic.hpp | Marcos30004347/Jobin | 40eec7bf9579002426320253eae6eaaea6b50d10 | [
"Apache-2.0"
] | null | null | null | jobin/atomic.hpp | Marcos30004347/Jobin | 40eec7bf9579002426320253eae6eaaea6b50d10 | [
"Apache-2.0"
] | null | null | null | #ifndef JOBIN_ATOMIC_H
#define JOBIN_ATOMIC_H
#include <atomic>
template <typename T>
class atomic {
private:
std::atomic<T> _atomic;
public:
atomic(T initial): _atomic(initial) {}
atomic() {}
~atomic() {}
bool compare_exchange_strong(T current_value, T new_value){
return _atomic.compare... | 17.8 | 73 | 0.65309 | Marcos30004347 |
57d3b4319e93ba09b78646b0772987f75a42c873 | 15,969 | cc | C++ | chrome/browser/download/download_request_manager.cc | bluebellzhy/chromium | 008c4fef2676506869a0404239da31e83fd6ccc7 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T15:35:17.000Z | 2016-05-08T15:35:17.000Z | chrome/browser/download/download_request_manager.cc | bluebellzhy/chromium | 008c4fef2676506869a0404239da31e83fd6ccc7 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/download/download_request_manager.cc | bluebellzhy/chromium | 008c4fef2676506869a0404239da31e83fd6ccc7 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2006-2008 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/download/download_request_manager.h"
#include "base/message_loop.h"
#include "base/thread.h"
#include "chrome/browser/n... | 33.26875 | 80 | 0.710439 | bluebellzhy |
57d3f68de943e8499169642d2af602d257560edb | 2,589 | cpp | C++ | source/aoc/src/aoc2018/d08/solver.cpp | daduraro/aoc | 9029de9d6e703fa1b20a466c1286b74ce9a7b23c | [
"BSD-2-Clause"
] | 1 | 2019-12-06T11:29:14.000Z | 2019-12-06T11:29:14.000Z | source/aoc/src/aoc2018/d08/solver.cpp | daduraro/aoc | 9029de9d6e703fa1b20a466c1286b74ce9a7b23c | [
"BSD-2-Clause"
] | null | null | null | source/aoc/src/aoc2018/d08/solver.cpp | daduraro/aoc | 9029de9d6e703fa1b20a466c1286b74ce9a7b23c | [
"BSD-2-Clause"
] | null | null | null | #include "aoc/solver.h"
#include <memory>
#include <iostream>
#include <string>
#include <vector>
#include <array>
#include <algorithm>
#include <numeric>
#include <iterator>
#include <limits>
#include <type_traits>
#include <cassert>
#include <ddr/data/tree.h>
namespace {
using namespace aoc;
constexpr std:... | 30.458824 | 107 | 0.555041 | daduraro |
57d47d9749c836f8aa60d9357a9d746672aa9e99 | 11,710 | cpp | C++ | src/kerberos/Kerberos.cpp | wollars/kerberos-machinery | 95c648133a7229b94b78af74283b3a8a1574922b | [
"Unlicense"
] | 1 | 2018-06-12T21:48:53.000Z | 2018-06-12T21:48:53.000Z | src/kerberos/Kerberos.cpp | wollars/kerberos-machinery | 95c648133a7229b94b78af74283b3a8a1574922b | [
"Unlicense"
] | null | null | null | src/kerberos/Kerberos.cpp | wollars/kerberos-machinery | 95c648133a7229b94b78af74283b3a8a1574922b | [
"Unlicense"
] | null | null | null | #include "Kerberos.h"
namespace kerberos
{
void Kerberos::bootstrap(StringMap & parameters)
{
// --------------------------------
// Set parameters from command-line
setParameters(parameters);
// ---------------------
// Initialize kerberos
... | 30.336788 | 110 | 0.453288 | wollars |
57d851ae0017539de24973dbefb1403309175015 | 3,234 | hh | C++ | surfaces/CenteredSphere.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | surfaces/CenteredSphere.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | surfaces/CenteredSphere.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | //---------------------------------*-C++-*-----------------------------------//
/*!
* \file surfaces/CenteredSphere.hh
* \brief CenteredCenteredSphere class declaration
* \note Copyright (c) 2020 Oak Ridge National Laboratory, UT-Battelle, LLC.
*/
//----------------------------------------------------------------... | 31.096154 | 85 | 0.552876 | celeritas-project |
57dcecfb55e531f906d765c095cf588fe4d9794e | 9,684 | cpp | C++ | Libraries/Utility/JSON.cpp | xycsoscyx/gekengine | cb9c933c6646169c0af9c7e49be444ff6f97835d | [
"MIT"
] | 1 | 2019-04-22T00:10:49.000Z | 2019-04-22T00:10:49.000Z | Libraries/Utility/JSON.cpp | xycsoscyx/gekengine | cb9c933c6646169c0af9c7e49be444ff6f97835d | [
"MIT"
] | null | null | null | Libraries/Utility/JSON.cpp | xycsoscyx/gekengine | cb9c933c6646169c0af9c7e49be444ff6f97835d | [
"MIT"
] | 2 | 2017-10-16T15:40:55.000Z | 2019-04-22T00:10:50.000Z | #include <jsoncons/json.hpp>
#include "GEK/Utility/JSON.hpp"
#include "GEK/Utility/FileSystem.hpp"
#include "GEK/Utility/Context.hpp"
namespace Gek
{
const JSON::Array JSON::EmptyArray = JSON::Array();
const JSON::Object JSON::EmptyObject = JSON::Object();
const JSON JSON::Empty = JSON();
JSON GetFrom... | 28.821429 | 169 | 0.491119 | xycsoscyx |
57dd7f66c393b3c9ac123b4cee2754bd124fdcb4 | 1,895 | cpp | C++ | runtime/libs/tflite/src/RandomInputInitializer.cpp | chogba6/ONE | 3d35259f89ee3109cfd35ab6f38c231904487f3b | [
"Apache-2.0"
] | 255 | 2020-05-22T07:45:29.000Z | 2022-03-29T23:58:22.000Z | runtime/libs/tflite/src/RandomInputInitializer.cpp | chogba6/ONE | 3d35259f89ee3109cfd35ab6f38c231904487f3b | [
"Apache-2.0"
] | 5,102 | 2020-05-22T07:48:33.000Z | 2022-03-31T23:43:39.000Z | runtime/libs/tflite/src/RandomInputInitializer.cpp | chogba6/ONE | 3d35259f89ee3109cfd35ab6f38c231904487f3b | [
"Apache-2.0"
] | 120 | 2020-05-22T07:51:08.000Z | 2022-02-16T19:08:05.000Z | /*
* Copyright (c) 2021 Samsung Electronics Co., Ltd. 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... | 28.712121 | 99 | 0.687071 | chogba6 |
57e07c8bb6d9a6242cd4d2c8d2a11f9aed8cbe87 | 2,730 | cpp | C++ | week5/code/btree_tree_print.cpp | hj02/Vor2015 | 675641f12773229e242c6e0bde290bdd537bf830 | [
"MIT"
] | null | null | null | week5/code/btree_tree_print.cpp | hj02/Vor2015 | 675641f12773229e242c6e0bde290bdd537bf830 | [
"MIT"
] | null | null | null | week5/code/btree_tree_print.cpp | hj02/Vor2015 | 675641f12773229e242c6e0bde290bdd537bf830 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
struct TreeNode
{
int data;
TreeNode* left;
TreeNode* right;
bool is_leaf();
};
bool TreeNode::is_leaf()
{
return (left == NULL && right == NULL);
}
typedef TreeNode* NodePtr;
NodePtr parse_tree()
{
char c;
cin >> c; // Read (
... | 18.571429 | 78 | 0.558974 | hj02 |
57e25bcc359aa95ba9adf31c0df0fca12ef8f594 | 8,760 | cc | C++ | src/vw/GPU/TexAlloc.cc | tkeemon/visionworkbench | df59fcb31191e1fc4fecfe1901963da1614a52b1 | [
"NASA-1.3"
] | 1 | 2020-06-02T04:06:43.000Z | 2020-06-02T04:06:43.000Z | src/vw/GPU/TexAlloc.cc | tkeemon/visionworkbench | df59fcb31191e1fc4fecfe1901963da1614a52b1 | [
"NASA-1.3"
] | null | null | null | src/vw/GPU/TexAlloc.cc | tkeemon/visionworkbench | df59fcb31191e1fc4fecfe1901963da1614a52b1 | [
"NASA-1.3"
] | null | null | null | // __BEGIN_LICENSE__
// Copyright (C) 2006-2010 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#include <vw/GPU/TexAlloc.h>
namespace vw { namespace GPU {
//###########################################... | 39.459459 | 157 | 0.575571 | tkeemon |
57e2fcceba37ff5cc50f347e505114f0dc1297b5 | 1,162 | hpp | C++ | include/mettle/driver/subprocess_test_runner.hpp | JohnGalbraith/mettle | 38b70fe1dc0f30e98b768a37108196328182b5f4 | [
"BSD-3-Clause"
] | 1 | 2019-06-07T08:03:33.000Z | 2019-06-07T08:03:33.000Z | include/mettle/driver/subprocess_test_runner.hpp | JohnGalbraith/mettle | 38b70fe1dc0f30e98b768a37108196328182b5f4 | [
"BSD-3-Clause"
] | null | null | null | include/mettle/driver/subprocess_test_runner.hpp | JohnGalbraith/mettle | 38b70fe1dc0f30e98b768a37108196328182b5f4 | [
"BSD-3-Clause"
] | 2 | 2018-07-02T19:28:43.000Z | 2019-06-07T08:03:35.000Z | #ifndef INC_METTLE_DRIVER_SUBPROCESS_TEST_RUNNER_HPP
#define INC_METTLE_DRIVER_SUBPROCESS_TEST_RUNNER_HPP
#include <chrono>
#include <optional>
#ifdef _WIN32
# include <wtypes.h>
#endif
#include <mettle/suite/compiled_suite.hpp>
#include <mettle/driver/log/core.hpp>
#include <mettle/driver/detail/export.hpp>
names... | 21.924528 | 77 | 0.74957 | JohnGalbraith |
57e36318440c12465fa8f81ec416b3634c165154 | 659 | cc | C++ | Q_06.cc | koichi-murakami/c-pre | 75bd902172d89af50e86a50d8a8dbfcbfb913635 | [
"BSD-2-Clause"
] | 1 | 2019-04-02T21:57:48.000Z | 2019-04-02T21:57:48.000Z | Q_06.cc | koichi-murakami/cpp_pre | 75bd902172d89af50e86a50d8a8dbfcbfb913635 | [
"BSD-2-Clause"
] | null | null | null | Q_06.cc | koichi-murakami/cpp_pre | 75bd902172d89af50e86a50d8a8dbfcbfb913635 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
using namespace std;
class Ellipse {
public:
Ellipse( ) = default;
Ellipse( double x, double y ){ a = x; b = y; }
~Ellipse( ) = default;
double area(){ return pi*a*b; }
string shapeName(){ return "Ellipse"; }
private:
double a, b;
const double ... | 22.724138 | 50 | 0.53566 | koichi-murakami |
57e52371c2c80a644b438e9a3ec7e4e5e84aff29 | 2,950 | cpp | C++ | src/abpos.cpp | barrystyle/xpchain-v2 | 6ef26771300d1db0398b0d51b74db9119307708b | [
"MIT"
] | null | null | null | src/abpos.cpp | barrystyle/xpchain-v2 | 6ef26771300d1db0398b0d51b74db9119307708b | [
"MIT"
] | null | null | null | src/abpos.cpp | barrystyle/xpchain-v2 | 6ef26771300d1db0398b0d51b74db9119307708b | [
"MIT"
] | null | null | null | // Copyright (c) 2019-2020 barrystyle/xpchain team
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <amount.h>
#include <chainparams.h>
#include <util.h>
#include <validation.h>
//! return if we're in mainnet or not
boo... | 30.412371 | 85 | 0.649153 | barrystyle |
57e89dd379394574585b82b36dc6d3096913ef18 | 155 | cc | C++ | Emscripten/file_io/file_io.cc | stephenfire/Book-DISO-WebAssembly | 35054b59caa4284680d7dd73bf2637de5631caa7 | [
"MIT"
] | 57 | 2018-02-14T02:12:00.000Z | 2022-03-04T09:12:26.000Z | Emscripten/file_io/file_io.cc | stephenfire/Book-DISO-WebAssembly | 35054b59caa4284680d7dd73bf2637de5631caa7 | [
"MIT"
] | 15 | 2018-08-23T12:37:53.000Z | 2021-05-09T10:22:27.000Z | Emscripten/file_io/file_io.cc | stephenfire/Book-DISO-WebAssembly | 35054b59caa4284680d7dd73bf2637de5631caa7 | [
"MIT"
] | 15 | 2019-01-27T09:35:19.000Z | 2022-02-03T13:56:03.000Z | #include <iostream>
using namespace std;
int main(int argc, char **argv) {
char _t;
cin >> _t;
cout << _t << endl;
cerr << _t << endl;
return 0;
} | 14.090909 | 33 | 0.593548 | stephenfire |