hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
232b0190be58f244992d15180c209b8a9c6e6382 | 5,891 | cc | C++ | google/cloud/iam_bindings_test.cc | orinem/google-cloud-cpp | c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1 | [
"Apache-2.0"
] | 3 | 2020-05-27T23:21:23.000Z | 2020-05-31T22:31:53.000Z | google/cloud/iam_bindings_test.cc | orinem/google-cloud-cpp | c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1 | [
"Apache-2.0"
] | 2 | 2020-05-31T22:26:57.000Z | 2020-06-19T00:14:10.000Z | google/cloud/iam_bindings_test.cc | orinem/google-cloud-cpp | c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1 | [
"Apache-2.0"
] | 1 | 2021-12-09T16:26:23.000Z | 2021-12-09T16:26:23.000Z | // Copyright 2018 Google LLC
//
// 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 w... | 31.843243 | 75 | 0.721609 | orinem |
232bd4a9a7d6d3e438ae0a90496ac3215cdc20b3 | 1,654 | cpp | C++ | codeforces/E - Alternating Tree/Wrong answer on test 5.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/E - Alternating Tree/Wrong answer on test 5.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/E - Alternating Tree/Wrong answer on test 5.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Aug/26/2018 09:46
* solution_verdict: Wrong answer on test 5 language: GNU C++14
* run... | 30.62963 | 111 | 0.477025 | kzvd4729 |
232d46cb0148db8e05d528497309fe6ec4f489ce | 9,914 | cpp | C++ | old/cppcon-2017-web-service/example/server/beast/src/main.cpp | Voultapher/Presentations | 67e79dc4ce37cc563d1f976507095ab64c8ed8a1 | [
"Apache-2.0"
] | 7 | 2017-09-15T19:11:24.000Z | 2020-03-04T10:47:29.000Z | old/cppcon-2017-web-service/example/server/beast/src/main.cpp | Voultapher/Presentations | 67e79dc4ce37cc563d1f976507095ab64c8ed8a1 | [
"Apache-2.0"
] | 1 | 2018-03-08T07:02:59.000Z | 2018-03-11T20:51:02.000Z | old/cppcon-2017-web-service/example/server/beast/src/main.cpp | Voultapher/Presentations | 67e79dc4ce37cc563d1f976507095ab64c8ed8a1 | [
"Apache-2.0"
] | 1 | 2020-03-04T10:47:30.000Z | 2020-03-04T10:47:30.000Z | //
// Copyright (c) 2017 Lukas Bergdoll lukas.bergdoll@gmail.com
//
#include <boost/beast/core.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/strand.hpp>
#include <boost/functional/hash.hpp>
#include <iostream>
#include <array>
#include <unordered_map>
#include <strawp... | 23.604762 | 83 | 0.621142 | Voultapher |
232e78455a5504c010fb9c474543bde1fd64e341 | 3,094 | cpp | C++ | src/0.3.7-R1/CVehiclePool.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | 7 | 2019-09-23T10:19:40.000Z | 2021-07-25T06:17:27.000Z | src/0.3.7-R1/CVehiclePool.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | null | null | null | src/0.3.7-R1/CVehiclePool.cpp | DarkP1xel/SAMP-API | 0d43a3603239f2f4bc65b8305ffc72177386cc29 | [
"MIT"
] | 1 | 2021-04-11T17:13:00.000Z | 2021-04-11T17:13:00.000Z | /*
This is a SAMP (0.3.7-R1) API project file.
Developer: LUCHARE <luchare.dev@gmail.com>
See more here https://github.com/LUCHARE/SAMP-API
Copyright (c) 2018 BlastHack Team <BlastHack.Net>. All rights reserved.
*/
#include "CVehiclePool.h"
SAMP::CVehiclePool::CVehiclePool() {
((void(__thiscall *... | 34.377778 | 118 | 0.701034 | DarkP1xel |
2334b3ea9ce2b60a25bef2bb98e769ef6cd63e4f | 2,683 | hpp | C++ | NWNXLib/API/API/CNWBaseItem.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 111 | 2018-01-16T18:49:19.000Z | 2022-03-13T12:33:54.000Z | NWNXLib/API/API/CNWBaseItem.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 636 | 2018-01-17T10:05:31.000Z | 2022-03-28T20:06:03.000Z | NWNXLib/API/API/CNWBaseItem.hpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 110 | 2018-01-16T19:05:54.000Z | 2022-03-28T03:44:16.000Z | #pragma once
#include "nwn_api.hpp"
#include "CExoString.hpp"
#include "CResRef.hpp"
#ifdef NWN_API_PROLOGUE
NWN_API_PROLOGUE(CNWBaseItem)
#endif
typedef int BOOL;
typedef uint32_t STRREF;
struct CNWBaseItem
{
uint32_t m_nName;
uint32_t m_nEquipableSlots;
uint8_t m_nWeaponWield;
uint8_t m_nWeapo... | 26.303922 | 84 | 0.77227 | summonFox |
2336d034c0392bb62b50ffa729c17855eb78c5ca | 45,212 | cpp | C++ | src/libs/socket/Server.cpp | mscoccimarro/1942-multiplayer | 58db747cf5d7519156c251dbbc37b1adeaa615d1 | [
"MIT"
] | null | null | null | src/libs/socket/Server.cpp | mscoccimarro/1942-multiplayer | 58db747cf5d7519156c251dbbc37b1adeaa615d1 | [
"MIT"
] | null | null | null | src/libs/socket/Server.cpp | mscoccimarro/1942-multiplayer | 58db747cf5d7519156c251dbbc37b1adeaa615d1 | [
"MIT"
] | null | null | null | #include "Server.h"
#include "../transmitter/Transmitter.h"
#include "../socket/sock_dep.h" /* socket dependencies */
#include "../../xml/parser/XMLParser.h"
#include "../palette/palette.h"
#include "../../utils/K.h"
#define DEBUG 1
#include "../debug/dg_msg.h"
#include <regex>
#include <thread>
#include <mutex>
#inclu... | 30.323273 | 141 | 0.603114 | mscoccimarro |
233c9c480f700fba9c3e66d0f880bfca1f8354b5 | 265 | hpp | C++ | source/parlex/include/parlex/detail/permutation.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | source/parlex/include/parlex/detail/permutation.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | source/parlex/include/parlex/detail/permutation.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PERMUTATION_HPP
#define PERMUTATION_HPP
#include <vector>
#include "parlex/detail/match.hpp"
#include "transition.hpp"
namespace parlex {
namespace detail {
typedef std::vector<transition> permutation;
}
} // namespace parlex
#endif //PERMUTATION_HPP
| 14.722222 | 44 | 0.769811 | dlin172 |
23400a64e6fd4e51c1b5d9a6718cedc9a604f465 | 3,160 | cpp | C++ | patched/WKString.cpp | paulwratt/phantomjs-2.1.1-multi | 9a2b739a0636af919ebdf25ddd7018a8558301d1 | [
"BSD-3-Clause"
] | null | null | null | patched/WKString.cpp | paulwratt/phantomjs-2.1.1-multi | 9a2b739a0636af919ebdf25ddd7018a8558301d1 | [
"BSD-3-Clause"
] | null | null | null | patched/WKString.cpp | paulwratt/phantomjs-2.1.1-multi | 9a2b739a0636af919ebdf25ddd7018a8558301d1 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2010 Apple 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 above copyright
* notice, this list of conditions a... | 32.916667 | 103 | 0.772468 | paulwratt |
2347b660a12c275135e6b678ba762254a56d4a7c | 1,532 | cpp | C++ | scugog_project/frontend_src/ErrorScreen.cpp | akinshonibare/Food-Fight-Game | cad246c5e29dab32c94d52ab97804575edd2233c | [
"MIT"
] | null | null | null | scugog_project/frontend_src/ErrorScreen.cpp | akinshonibare/Food-Fight-Game | cad246c5e29dab32c94d52ab97804575edd2233c | [
"MIT"
] | null | null | null | scugog_project/frontend_src/ErrorScreen.cpp | akinshonibare/Food-Fight-Game | cad246c5e29dab32c94d52ab97804575edd2233c | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ErrorScreen.h"
void ErrorScreen::Show(sf::RenderWindow & renderWindow)
{
//sf::Image image;
sf::Texture texture;
if (texture.loadFromFile("../scugog_project/resources/images/error_screen.png") != true)
{
return;
}
sf::Font font;
if (!font.loadFromFile("../scugog_project/resources... | 27.357143 | 112 | 0.713446 | akinshonibare |
2348a6637fe6137b7efaa8c1675f64716b18bdfa | 232 | cpp | C++ | AtCoder/abc143/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc143/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc143/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int A, B; cin >> A >> B;
int ans = A - B * 2;
if (ans < 0) printf("%d\n", 0);
else printf("%d\n", ans);
}
| 19.333333 | 35 | 0.556034 | H-Tatsuhiro |
054e59a6877fcaf9fd6a681fbf78cae7f400de73 | 416 | cpp | C++ | Lab2April/permutation.cpp | forkkr/Assembly-Lab | e038fb965e45a88aa670a1158bf99a4b62ac374f | [
"MIT"
] | null | null | null | Lab2April/permutation.cpp | forkkr/Assembly-Lab | e038fb965e45a88aa670a1158bf99a4b62ac374f | [
"MIT"
] | null | null | null | Lab2April/permutation.cpp | forkkr/Assembly-Lab | e038fb965e45a88aa670a1158bf99a4b62ac374f | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int ar[111];
int n;
int cnt = 0;
void perm(int pos)
{
if(pos > n)
{
for(int i = 1; i <= n; i++)
{
cout<<ar[i]<<" ";
}
cout<<endl;
cnt +=1;
}
for(int i = pos; i <= n; i++)
{
swap(ar[i], ar[pos]);
perm(pos+1);
swap(ar[i] , ar[pos]);
}
return;
}
int ... | 11.243243 | 30 | 0.46875 | forkkr |
054f94db4c1f90c0803bf4520127701c70bbb744 | 2,336 | cpp | C++ | DataStructure/code/HW6/HW6_1.cpp | yuanyangwangTJ/algorithm | ab7a959a00f290a0adc9af278f9a5de60be22af1 | [
"MIT"
] | null | null | null | DataStructure/code/HW6/HW6_1.cpp | yuanyangwangTJ/algorithm | ab7a959a00f290a0adc9af278f9a5de60be22af1 | [
"MIT"
] | null | null | null | DataStructure/code/HW6/HW6_1.cpp | yuanyangwangTJ/algorithm | ab7a959a00f290a0adc9af278f9a5de60be22af1 | [
"MIT"
] | null | null | null | // 先序遍历线索二叉树
#include <iostream>
#define OVERFLOW -2
using namespace std;
typedef enum{Link, Thread} PointerTag;
// Link = 0:指针,指向孩子结点
// Thread = 1:线索,指向前驱或后继结点
typedef char TElemType;
typedef struct BiThrNode {
TElemType data;
struct BiThrNode *lchild, *rchild;
PointerTag LTag, RTag;
... | 22.461538 | 65 | 0.514555 | yuanyangwangTJ |
055ab1789bbb499c12e4c23dc4e2c5f0b8a84a7e | 1,409 | cpp | C++ | system-test/schemarouter/mxs1849_table_sharding.cpp | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | 1,157 | 2015-01-06T15:44:47.000Z | 2022-03-28T02:52:37.000Z | system-test/schemarouter/mxs1849_table_sharding.cpp | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | 80 | 2015-02-13T11:49:05.000Z | 2022-01-17T09:00:11.000Z | system-test/schemarouter/mxs1849_table_sharding.cpp | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | 361 | 2015-01-14T03:01:00.000Z | 2022-03-28T00:14:04.000Z | /**
* MXS-1849: Table family sharding router test
*
* https://jira.mariadb.org/browse/MXS-1849
*/
#include <iostream>
#include <maxtest/testconnections.hh>
int main(int argc, char* argv[])
{
TestConnections test(argc, argv);
test.reset_timeout();
test.repl->execute_query_all_nodes("STOP SLAVE");
... | 31.311111 | 107 | 0.597587 | sdrik |
0561370ec0ad11fa6e714182395c898c45336dd0 | 557 | cpp | C++ | solutions/1541.minimum-insertions-to-balance-a-parentheses-string.378711414.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/1541.minimum-insertions-to-balance-a-parentheses-string.378711414.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/1541.minimum-insertions-to-balance-a-parentheses-string.378711414.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
int minInsertions(string s) {
int ans = 0;
int count = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == '(')
count++;
else {
if (i + 1 < s.size() && s[i + 1] == ')') {
i++;
if (count > 0) {
count--;
} else {
... | 17.967742 | 50 | 0.29623 | satu0king |
056ea8d1617f1d6d505623edaa68c922fc291e33 | 128 | cpp | C++ | Core/DataModel/Entities/Commitment.cpp | ITBear/SolanaCPP | 9c98d72564a3fa174ba2c6dd59217676069b4997 | [
"Apache-2.0"
] | 6 | 2021-06-13T19:21:22.000Z | 2022-03-26T14:31:22.000Z | Core/DataModel/Entities/Commitment.cpp | ITBear/SolanaCPP | 9c98d72564a3fa174ba2c6dd59217676069b4997 | [
"Apache-2.0"
] | 5 | 2021-07-15T10:33:08.000Z | 2021-07-15T11:55:13.000Z | Core/DataModel/Entities/Commitment.cpp | ITBear/SolanaCPP | 9c98d72564a3fa174ba2c6dd59217676069b4997 | [
"Apache-2.0"
] | 2 | 2021-07-09T20:05:53.000Z | 2022-03-22T01:00:08.000Z | #include "Commitment.hpp"
namespace Sol::Core::DataModel {
GP_ENUM_IMPL(Commitment)
}//namespace Sol::Core::DataModel
| 16 | 34 | 0.71875 | ITBear |
056fa6044fa00dc1ae673db57d48c49b31c9f752 | 1,863 | hpp | C++ | include/argot/concepts/trivially_destructible.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 49 | 2018-05-09T23:17:45.000Z | 2021-07-21T10:05:19.000Z | include/argot/concepts/trivially_destructible.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | null | null | null | include/argot/concepts/trivially_destructible.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 2 | 2019-08-04T03:51:36.000Z | 2020-12-28T06:53:29.000Z | /*==============================================================================
Copyright (c) 2018, 2019 Matt Calabrese
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)
=============================================... | 28.661538 | 80 | 0.73591 | mattcalabrese |
0572610cdee5ad65c071c75f908cfa1c54486e4f | 1,362 | cpp | C++ | Fibonacci/Fibonacci.cpp | UtkarshMish/Data-Structures | 15425704d7a0f1a665e39bd9ca2e9f370b8a835b | [
"Unlicense"
] | null | null | null | Fibonacci/Fibonacci.cpp | UtkarshMish/Data-Structures | 15425704d7a0f1a665e39bd9ca2e9f370b8a835b | [
"Unlicense"
] | null | null | null | Fibonacci/Fibonacci.cpp | UtkarshMish/Data-Structures | 15425704d7a0f1a665e39bd9ca2e9f370b8a835b | [
"Unlicense"
] | null | null | null | #include "iostream"
using namespace std;
// Using loops :: ==>>>
// void fibonacci(int &n)
// {
// double firstElement = 0, secondElement = 1, newElement;
// if (n > 250)
// {
// cout << "Too long to Compute !!";
// return;
// }
// for (int index = 0; index < n; index++)
// {
// if (index == 0)... | 18.405405 | 60 | 0.45815 | UtkarshMish |
05799ac29a43effeda0899e398015a5e1dbc5ba6 | 2,239 | hpp | C++ | LOGGER_sample/setup.hpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 56 | 2015-06-04T14:15:38.000Z | 2022-03-01T22:58:49.000Z | LOGGER_sample/setup.hpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 30 | 2019-07-27T11:03:14.000Z | 2021-12-14T09:59:57.000Z | LOGGER_sample/setup.hpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 15 | 2017-06-24T11:33:39.000Z | 2021-12-07T07:26:58.000Z | #pragma once
//=====================================================================//
/*! @file
@brief セットアップ
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//=========... | 26.341176 | 74 | 0.374721 | hirakuni45 |
0579ff4821695788e20f5e3d82305342250fb214 | 2,695 | cc | C++ | sw/src/connection_manager.cc | varungohil/Dagger | b063e19a3a89a944caefb2bcbcb89b3bfaad466e | [
"MIT"
] | 1 | 2022-03-31T22:29:52.000Z | 2022-03-31T22:29:52.000Z | sw/src/connection_manager.cc | varungohil/Dagger | b063e19a3a89a944caefb2bcbcb89b3bfaad466e | [
"MIT"
] | null | null | null | sw/src/connection_manager.cc | varungohil/Dagger | b063e19a3a89a944caefb2bcbcb89b3bfaad466e | [
"MIT"
] | null | null | null | #include "connection_manager.h"
#include <algorithm>
#include <cassert>
#include <iostream>
#include<tuple>
#include "logger.h"
namespace dagger {
ConnectionManager::ConnectionManager() : max_connections_(0) {}
ConnectionManager::ConnectionManager(size_t max_connections)
: max_connections_(max_connections) {
... | 28.978495 | 122 | 0.664935 | varungohil |
057bea574378d4318fa0bb9faca67d09d21df0d2 | 20,602 | cpp | C++ | workers/unreal/Source/Engineers/Commandlets/ExportSnapshotCommandlet.cpp | spatialos/ue4-demo-dusk | f07f03cde0bd66a8478e34390512fcfd3c5cb2e7 | [
"MIT"
] | 51 | 2017-03-29T18:20:43.000Z | 2021-04-19T06:05:03.000Z | workers/unreal/Source/Engineers/Commandlets/ExportSnapshotCommandlet.cpp | spatialos/DuskPreview | f07f03cde0bd66a8478e34390512fcfd3c5cb2e7 | [
"MIT"
] | null | null | null | workers/unreal/Source/Engineers/Commandlets/ExportSnapshotCommandlet.cpp | spatialos/DuskPreview | f07f03cde0bd66a8478e34390512fcfd3c5cb2e7 | [
"MIT"
] | 29 | 2017-05-12T08:57:49.000Z | 2021-08-06T08:55:53.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "Engineers.h"
#include "ExportSnapshotCommandlet.h"
#include "ConversionsFunctionLibrary.h"
#include "improbable/collections.h"
#include "improbable/math/coordinates.h"
#include "improbable/math/vector3d.h"
#include "improbable/ma... | 43.281513 | 247 | 0.779342 | spatialos |
057d5896ff677d9e0ec6d401c783d6f1b12e7591 | 1,251 | hpp | C++ | src/umpire/strategy/DefaultAllocationStrategy.hpp | aaroncblack/Umpire | 5089a55aeed8b269112125e917f08b10e1797ae5 | [
"MIT"
] | null | null | null | src/umpire/strategy/DefaultAllocationStrategy.hpp | aaroncblack/Umpire | 5089a55aeed8b269112125e917f08b10e1797ae5 | [
"MIT"
] | null | null | null | src/umpire/strategy/DefaultAllocationStrategy.hpp | aaroncblack/Umpire | 5089a55aeed8b269112125e917f08b10e1797ae5 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2018-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory
//
// Created by David Beckingsale, david@llnl.gov
// LLNL-CODE-747640
//
// All rights reserved.
//
// This fil... | 24.529412 | 78 | 0.635492 | aaroncblack |
057e9500cb7f275501dc7cb5863db7988b245203 | 2,506 | cpp | C++ | Game/Cards/Magic/DarkLight.cpp | CrusaderCrab/YugiohPhantomRealm | 79bd1e9948d2d2d29acf042fd412804c30562a8e | [
"Zlib"
] | 13 | 2018-04-13T22:10:00.000Z | 2022-01-01T08:26:23.000Z | Game/Cards/Magic/DarkLight.cpp | CrusaderCrab/YugiohPhantomRealm | 79bd1e9948d2d2d29acf042fd412804c30562a8e | [
"Zlib"
] | null | null | null | Game/Cards/Magic/DarkLight.cpp | CrusaderCrab/YugiohPhantomRealm | 79bd1e9948d2d2d29acf042fd412804c30562a8e | [
"Zlib"
] | 3 | 2017-02-22T16:35:06.000Z | 2019-12-21T20:39:23.000Z | #include <Game\Cards\Magic\DarkLight.h>
#include <Utility\Clock.h>
#include <Game\Cards\Magic\MagicUnit.h>
#include <Game\Animation\ParticlesUnit.h>
#include <Game\Duel\Board.h>
#include <Game\Animation\FadeUnit.h>
#include <Utility\SoundUnit.h>
#define ZYUG_GO 0
#define ZYUG_GLOW 1
#define ZYUG_FLASH 2
#define ZYUG_F... | 21.982456 | 65 | 0.689545 | CrusaderCrab |
05869f3dc417acaca91576137455e83baa482028 | 50,999 | cpp | C++ | Targets/STM32F7xx/STM32F7_Display.cpp | valoni/TinyCLR-Ports | 2c8c510aaa6f1ee26ecf12c13fcea678de31545e | [
"Apache-2.0"
] | 30 | 2017-07-18T10:03:36.000Z | 2021-05-20T12:35:06.000Z | Targets/STM32F7xx/STM32F7_Display.cpp | valoni/TinyCLR-Ports | 2c8c510aaa6f1ee26ecf12c13fcea678de31545e | [
"Apache-2.0"
] | 294 | 2017-07-09T23:06:04.000Z | 2019-07-23T18:26:28.000Z | Targets/STM32F7xx/STM32F7_Display.cpp | valoni/TinyCLR-Ports | 2c8c510aaa6f1ee26ecf12c13fcea678de31545e | [
"Apache-2.0"
] | 28 | 2017-07-08T07:52:54.000Z | 2022-03-13T19:35:34.000Z | // Copyright Microsoft Corporation
// Copyright GHI Electronics, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... | 39.109663 | 260 | 0.659582 | valoni |
0589e4961678090c69690fa004d11e4d14338115 | 12,390 | cpp | C++ | tests/helics/core/InfoClass-tests.cpp | corinnegroth/HELICS | b8eda371b081a7d391d019c14bba5cf5042ae590 | [
"BSD-3-Clause"
] | null | null | null | tests/helics/core/InfoClass-tests.cpp | corinnegroth/HELICS | b8eda371b081a7d391d019c14bba5cf5042ae590 | [
"BSD-3-Clause"
] | null | null | null | tests/helics/core/InfoClass-tests.cpp | corinnegroth/HELICS | b8eda371b081a7d391d019c14bba5cf5042ae590 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2017-2020,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See
the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include "helics/core/BasicHandleInfo.hpp"
#include "helics/core/Endpo... | 37.319277 | 114 | 0.684665 | corinnegroth |
0589f2cecd0ff256314827b698400555b73639f0 | 24,672 | cpp | C++ | Tests/DiligentCoreAPITest/src/QueryTest.cpp | Zone-organization/DiligentCore | a9091a1848492ae1aecece3a955badf9367b189f | [
"Apache-2.0"
] | 398 | 2016-04-21T03:38:50.000Z | 2022-03-23T15:27:31.000Z | Tests/DiligentCoreAPITest/src/QueryTest.cpp | Zone-organization/DiligentCore | a9091a1848492ae1aecece3a955badf9367b189f | [
"Apache-2.0"
] | 275 | 2017-12-27T04:11:55.000Z | 2022-03-30T07:35:11.000Z | Tests/DiligentCoreAPITest/src/QueryTest.cpp | Zone-organization/DiligentCore | a9091a1848492ae1aecece3a955badf9367b189f | [
"Apache-2.0"
] | 139 | 2017-09-13T06:19:49.000Z | 2022-03-28T15:01:20.000Z | /*
* Copyright 2019-2021 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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.... | 37.268882 | 139 | 0.620866 | Zone-organization |
0589fa5eabede9edee552b0c6a8c4770826901e3 | 567 | cpp | C++ | src/parser/transform/statement/transform_export.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/parser/transform/statement/transform_export.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/parser/transform/statement/transform_export.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | #include "guinsoodb/parser/statement/export_statement.hpp"
#include "guinsoodb/parser/transformer.hpp"
namespace guinsoodb {
unique_ptr<ExportStatement> Transformer::TransformExport(guinsoodb_libpgquery::PGNode *node) {
auto stmt = reinterpret_cast<guinsoodb_libpgquery::PGExportStmt *>(node);
auto info = make_uniqu... | 29.842105 | 94 | 0.772487 | GuinsooLab |
058e4c0e1f0e9588844a2d39f7e1d1b0a15e7c26 | 2,253 | cpp | C++ | examples/any.cpp | cyber5tar86/cppbackport | b9db696e0f2f2d8225bbd65fc6a45f88307a1f14 | [
"BSD-3-Clause"
] | 47 | 2016-07-20T21:12:04.000Z | 2021-09-05T22:39:04.000Z | examples/any.cpp | cyber5tar86/cppbackport | b9db696e0f2f2d8225bbd65fc6a45f88307a1f14 | [
"BSD-3-Clause"
] | 9 | 2016-07-21T21:03:36.000Z | 2018-04-26T01:36:10.000Z | examples/any.cpp | cyber5tar86/cppbackport | b9db696e0f2f2d8225bbd65fc6a45f88307a1f14 | [
"BSD-3-Clause"
] | 4 | 2017-05-04T22:38:32.000Z | 2021-09-09T08:12:30.000Z | /* Copyright (c) 2016, Pollard Banknote Limited
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of cond... | 38.186441 | 93 | 0.714603 | cyber5tar86 |
0591619afe935e87f2523cc1e28e46f8c6d90370 | 5,528 | cpp | C++ | src/wiztk/gui/display.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 37 | 2017-11-22T14:15:33.000Z | 2021-11-25T20:39:39.000Z | src/wiztk/gui/display.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 3 | 2018-03-01T12:44:22.000Z | 2021-01-04T23:14:41.000Z | src/wiztk/gui/display.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 10 | 2017-11-25T19:09:11.000Z | 2020-12-02T02:05:47.000Z | /*
* Copyright 2017 - 2018 The WizTK Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 30.20765 | 93 | 0.721599 | wiztk |
05925481dfc10b1704c79c304b067cc044b538e6 | 50,740 | hpp | C++ | source/pixie/pixie_build.hpp | rdacomp/pixie | cc2abb5572952ce567f96d19244996f249a423ca | [
"Unlicense"
] | 148 | 2018-01-22T05:32:04.000Z | 2022-01-09T22:36:10.000Z | source/pixie/pixie_build.hpp | rdacomp/pixie | cc2abb5572952ce567f96d19244996f249a423ca | [
"Unlicense"
] | null | null | null | source/pixie/pixie_build.hpp | rdacomp/pixie | cc2abb5572952ce567f96d19244996f249a423ca | [
"Unlicense"
] | 3 | 2018-02-08T12:51:16.000Z | 2020-02-01T21:04:38.000Z | /*
------------------------------------------------------------------------------
Licensing information can be found at the end of the file.
------------------------------------------------------------------------------
pixie_build.hpp - v0.1 -
*/
#ifndef pixie_build_hpp
#define pixie_build_hpp
#include <stdde... | 29.98818 | 171 | 0.653252 | rdacomp |
0592ef0da60334bf4ac0e0780502fa56c526fa53 | 6,546 | cc | C++ | src/web_server/old/sim.cc | varqox/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 12 | 2017-11-05T21:02:58.000Z | 2022-03-28T23:11:51.000Z | src/web_server/old/sim.cc | varqox/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 11 | 2017-01-05T18:11:41.000Z | 2019-11-01T12:40:55.000Z | src/web_server/old/sim.cc | krzyk240/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 6 | 2016-12-25T11:22:34.000Z | 2020-10-20T16:03:51.000Z | #include "src/web_server/old/sim.hh"
#include "simlib/mysql/mysql.hh"
#include "simlib/path.hh"
#include "simlib/random.hh"
#include "simlib/time.hh"
#include "src/web_server/http/request.hh"
#include "src/web_server/http/response.hh"
#include <memory>
#include <sys/stat.h>
using sim::users::User;
using std::string;
... | 29.754545 | 94 | 0.517721 | varqox |
0594c5f21f74a434e815da459f6e374fc53c160e | 511 | cpp | C++ | 448/findDisappearedNumbers.cpp | Lixu518/leetcode | f8e868ef6963da92237e6dc6888d7dda0b9bdd19 | [
"MIT"
] | 1 | 2018-06-24T13:58:07.000Z | 2018-06-24T13:58:07.000Z | 448/findDisappearedNumbers.cpp | Lixu518/leetcode | f8e868ef6963da92237e6dc6888d7dda0b9bdd19 | [
"MIT"
] | null | null | null | 448/findDisappearedNumbers.cpp | Lixu518/leetcode | f8e868ef6963da92237e6dc6888d7dda0b9bdd19 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
vector<int> findDisappearedNumbers(vector<int>& nums) {
vector<int>res;
int i = 0;
while(i < nums.size()){
if(nums[i] != nums[nums[i] - 1]) swap(nums[i], nums[nums[i] - 1]);
else i++;
}
for(int i = 0;i < nums.size();i++){
if(nums[i] != i + 1)res.push_b... | 20.44 | 68 | 0.610568 | Lixu518 |
0598abe3105f0dea9bdafe60826c66b646257788 | 1,932 | cpp | C++ | lab14/0-1 - set.cpp | uiowa-cs-3210-0001/cs3210-labs | d6263d719a45257ba056a1ead7cc3dd428d377f3 | [
"MIT"
] | 1 | 2019-01-24T14:04:45.000Z | 2019-01-24T14:04:45.000Z | lab14/0-1 - set.cpp | uiowa-cs-3210-0001/cs3210-labs | d6263d719a45257ba056a1ead7cc3dd428d377f3 | [
"MIT"
] | 1 | 2019-01-24T18:32:45.000Z | 2019-01-28T04:10:28.000Z | lab14/0-1 - set.cpp | uiowa-cs-3210-0001/cs3210-labs | d6263d719a45257ba056a1ead7cc3dd428d377f3 | [
"MIT"
] | 1 | 2019-02-07T00:28:20.000Z | 2019-02-07T00:28:20.000Z | #include <iostream>
#include <set>
#include <stdexcept>
using namespace std;
struct Student
{
string name;
string email;
string id;
};
namespace std {
template<>
struct less<Student>
{
using is_transparent = void;
bool operator()( Student const& lhs, Student const& rhs ) const
{
... | 19.32 | 68 | 0.547101 | uiowa-cs-3210-0001 |
05a097e584b97f39957ed6c38bd4a705b6786114 | 4,078 | cc | C++ | src/StandAlone/tools/mpi_test/async_mpi_test.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | 2 | 2021-12-17T05:50:44.000Z | 2021-12-22T21:37:32.000Z | src/StandAlone/tools/mpi_test/async_mpi_test.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | null | null | null | src/StandAlone/tools/mpi_test/async_mpi_test.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | 1 | 2020-11-30T04:46:05.000Z | 2020-11-30T04:46:05.000Z | /*
* The MIT License
*
* Copyright (c) 1997-2020 The University of Utah
*
* 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
* right... | 29.338129 | 93 | 0.709662 | damu1000 |
05a401e09ae76a2aec7b9c8079570ff68a28a352 | 5,953 | hpp | C++ | include/sdsl/sorted_stack_support.hpp | wolfee001/sdsl-lite | 3061a0b64f75f070bb8f4a1f91e570fcfc7ebe75 | [
"BSD-3-Clause"
] | 54 | 2017-03-23T23:10:40.000Z | 2022-03-22T14:25:11.000Z | include/sdsl/sorted_stack_support.hpp | wolfee001/sdsl-lite | 3061a0b64f75f070bb8f4a1f91e570fcfc7ebe75 | [
"BSD-3-Clause"
] | 65 | 2017-05-09T05:28:43.000Z | 2021-12-16T13:02:25.000Z | include/sdsl/sorted_stack_support.hpp | wolfee001/sdsl-lite | 3061a0b64f75f070bb8f4a1f91e570fcfc7ebe75 | [
"BSD-3-Clause"
] | 23 | 2017-03-23T23:11:44.000Z | 2022-02-20T22:36:33.000Z | // Copyright (c) 2016, the SDSL Project Authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD license that can be found in the LICENSE file.
/*!\file sorted_stack_support.hpp
* \author Simon Gog
*/
#ifndef INCLUDED_SDSL_SORTED_STACK_SUPPORT
#define... | 31.005208 | 114 | 0.629934 | wolfee001 |
05a4a12012a2e275dd1b79ae4774c50276b41d9f | 167 | hpp | C++ | include/nocopy/fwd/box.hpp | mikezackles/nocopy | 7ddae640e88b2bc2ab3b1130d16616da2f673c2a | [
"Apache-2.0"
] | null | null | null | include/nocopy/fwd/box.hpp | mikezackles/nocopy | 7ddae640e88b2bc2ab3b1130d16616da2f673c2a | [
"Apache-2.0"
] | null | null | null | include/nocopy/fwd/box.hpp | mikezackles/nocopy | 7ddae640e88b2bc2ab3b1130d16616da2f673c2a | [
"Apache-2.0"
] | null | null | null | #ifndef UUID_E46E9091_283C_46FE_ACE3_6712B60338C7
#define UUID_E46E9091_283C_46FE_ACE3_6712B60338C7
namespace nocopy {
template <typename T>
class box;
}
#endif
| 16.7 | 49 | 0.832335 | mikezackles |
05a5fcdafd4c1055445151eb6ca06fb0e4231789 | 6,044 | cpp | C++ | case/weatherwidget.cpp | dreamtravel/Sensor_PC | 7fa7b4acd217fd97ada5c19a7127d0332b1e6256 | [
"MIT"
] | null | null | null | case/weatherwidget.cpp | dreamtravel/Sensor_PC | 7fa7b4acd217fd97ada5c19a7127d0332b1e6256 | [
"MIT"
] | null | null | null | case/weatherwidget.cpp | dreamtravel/Sensor_PC | 7fa7b4acd217fd97ada5c19a7127d0332b1e6256 | [
"MIT"
] | null | null | null | /*****************************************************************************
**
**Copyright (C) 2014 UP-TECH Corporation and/or its subsidiary(-ies).
**All rights reserved.
**Contact: UP-TECH Corporation (anld@up-tech.com)
**
**This file is the weather interface class of Sensor platform system software.
**
*********... | 38.496815 | 130 | 0.622105 | dreamtravel |
05a69a35ba28111bfbf8867ab92f947a1be54fd7 | 623 | cpp | C++ | baekjoonOnlineJudge/3040/main.cpp | sdkcoding/baekjoonOnlineJudge | de36e501021a9a4ed5d2676a46627013bbf2c70f | [
"Apache-2.0"
] | null | null | null | baekjoonOnlineJudge/3040/main.cpp | sdkcoding/baekjoonOnlineJudge | de36e501021a9a4ed5d2676a46627013bbf2c70f | [
"Apache-2.0"
] | null | null | null | baekjoonOnlineJudge/3040/main.cpp | sdkcoding/baekjoonOnlineJudge | de36e501021a9a4ed5d2676a46627013bbf2c70f | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int sum = 0;
int len = 9;
int* numList = new int[len]{ 0 };
for (int i = 0; i < len; i++) {
scanf("%d", &numList[i]);
sum += numList[i];
}
int idx1 = 0, idx2 = 0;
bool flag = false;
for (int i = 0; i < len - 1; i++) {
for (int j =... | 16.394737 | 48 | 0.476726 | sdkcoding |
05a90d4dcfd35fa7eb2e47bab826cc6aa911913b | 5,323 | cpp | C++ | tests/argos-Core-Tests/Text/TextSpanTests.cpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | null | null | null | tests/argos-Core-Tests/Text/TextSpanTests.cpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | 19 | 2021-12-01T20:37:23.000Z | 2022-02-14T21:05:43.000Z | tests/argos-Core-Tests/Text/TextSpanTests.cpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <argos-Core/Text/TextSpan.hpp>
using argos::Core::Text::TextSpan;
TEST_CASE("TextSpan default constructor", "[Core][Text]")
{
const TextSpan span{};
REQUIRE(span.start() == 0);
REQUIRE(span.end() == 0);
REQUIRE(span.length() == 0);
REQUIRE(span.isEmpty());
... | 32.656442 | 76 | 0.669172 | henrikfroehling |
05b255cd58da6b84bf85c9557ceb47335f294d6c | 1,331 | cpp | C++ | rpcclient.cpp | akshatpandya/AirSim-Plugin-App | 40a14cc38480ee9ecb8b7bed67addcc6d2723718 | [
"MIT"
] | null | null | null | rpcclient.cpp | akshatpandya/AirSim-Plugin-App | 40a14cc38480ee9ecb8b7bed67addcc6d2723718 | [
"MIT"
] | null | null | null | rpcclient.cpp | akshatpandya/AirSim-Plugin-App | 40a14cc38480ee9ecb8b7bed67addcc6d2723718 | [
"MIT"
] | null | null | null | #include "rpcclient.h"
RPCclient::RPCclient()
{
while(!((uint8_t)client.getConnectionState() == 1))
{
qDebug() << "Connecting to AirSim....." << (uint8_t)client.getConnectionState();;
client.confirmConnection();
}
while(!(client.isApiControlEnabled() == true))
{
qDebug() <<... | 21.819672 | 137 | 0.676935 | akshatpandya |
05b688d29b71b5c51eade760ad329ee71ef6a156 | 7,271 | cpp | C++ | src/Algorithms/RawArraySort.cpp | Straydragonl/DataStructure-Algorithm-Cpp | 276b6ca9df54f2425732f7c9c9e9dd60c59033d1 | [
"MIT"
] | 1 | 2018-12-20T09:41:49.000Z | 2018-12-20T09:41:49.000Z | src/Algorithms/RawArraySort.cpp | StrayDragon/DataStructure-Algorithm-Cpp | 276b6ca9df54f2425732f7c9c9e9dd60c59033d1 | [
"MIT"
] | 3 | 2018-10-15T06:49:39.000Z | 2018-10-25T13:09:36.000Z | src/Algorithms/RawArraySort.cpp | StrayDragon/DataStructure-Algorithm-Cpp | 276b6ca9df54f2425732f7c9c9e9dd60c59033d1 | [
"MIT"
] | null | null | null | //
// Created by straydragon on 18-10-16.
//
#include "RawArraySort.h"
#include <algorithm>
#include <typeinfo>
int RawArray::SortBy::HelperFunc::findIndexOfLargest(
const RawArray::ElementType* targetArray,
int size) {
int guessBiggestIndex = 0;
for (int cur = 1; cur < size; cur++) {
if (targetArray... | 28.968127 | 80 | 0.563334 | Straydragonl |
05b6cc340b3ab29085981041e50e64567d254b0c | 276 | hpp | C++ | vulkan_layer/include/buffers.hpp | JnCrMx/cheeky-imp | 7f2064fa421444bbd2e426879af3becd6c5e7ea8 | [
"MIT"
] | 2 | 2021-09-12T06:57:23.000Z | 2021-09-12T14:09:00.000Z | vulkan_layer/include/buffers.hpp | JnCrMx/cheeky-imp | 7f2064fa421444bbd2e426879af3becd6c5e7ea8 | [
"MIT"
] | null | null | null | vulkan_layer/include/buffers.hpp | JnCrMx/cheeky-imp | 7f2064fa421444bbd2e426879af3becd6c5e7ea8 | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include "layer.hpp"
extern std::map<VkBuffer, VkBufferCreateInfo> buffers;
extern std::map<VkBuffer, VkDevice> bufferDevices;
extern std::map<VkBuffer, VkDeviceMemory> bufferMemories;
extern std::map<VkBuffer, VkDeviceSize> bufferMemoryOffsets;
| 27.6 | 60 | 0.797101 | JnCrMx |
05bb00739bcda2387224ddbe545fef5675c8e95e | 998 | hpp | C++ | include/Sound.hpp | mariohackandglitch/YAMKC_3DS | aed7d9b1d714b13391ebb40377c4ac36892ab82f | [
"RSA-MD"
] | 12 | 2021-05-13T12:47:25.000Z | 2021-05-30T19:22:43.000Z | include/Sound.hpp | mariohackandglitch/YAMKC_3DS | aed7d9b1d714b13391ebb40377c4ac36892ab82f | [
"RSA-MD"
] | null | null | null | include/Sound.hpp | mariohackandglitch/YAMKC_3DS | aed7d9b1d714b13391ebb40377c4ac36892ab82f | [
"RSA-MD"
] | null | null | null | #pragma once
#include <string>
#include <3ds.h>
#include <cwav.h>
class Sound {
public:
Sound(const std::string& fileName, int simulPlays);
~Sound();
bool IsLoaded();
bool IsPlaying();
void Play();
void EnsurePlaying();
void StereoPlay();
void Stop();
void SetMasterVolume(float vo... | 28.514286 | 85 | 0.687375 | mariohackandglitch |
05c18465809c5273d713afbff97e14fda55a849f | 231 | cpp | C++ | src/examples/04_module/05_value_and_reference_params/main.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-djchenevert | 0f7b3f47eb518fc4e85ec853cab9ceb4c629025a | [
"MIT"
] | null | null | null | src/examples/04_module/05_value_and_reference_params/main.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-djchenevert | 0f7b3f47eb518fc4e85ec853cab9ceb4c629025a | [
"MIT"
] | null | null | null | src/examples/04_module/05_value_and_reference_params/main.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-djchenevert | 0f7b3f47eb518fc4e85ec853cab9ceb4c629025a | [
"MIT"
] | null | null | null | #include<iostream>
#include "value_ref.h"
using std::cout;
int main()
{
static_example();
static_example();
static_example();
pass_by_val_and_ref(5);
int num1 = 5, num2 = 10;
pass_by_val_and_ref(num1, num2);
return 0;
} | 13.588235 | 33 | 0.69697 | acc-cosc-1337-fall-2020 |
05c6ceb7d4ed3228012689187c7137646205ba74 | 3,279 | cpp | C++ | modules/webbrowser/src/browserclient.cpp | nbartzokas/OpenSpace | 9df1e9b4821fade185b6e0a31b7cce1e67752a44 | [
"MIT"
] | null | null | null | modules/webbrowser/src/browserclient.cpp | nbartzokas/OpenSpace | 9df1e9b4821fade185b6e0a31b7cce1e67752a44 | [
"MIT"
] | null | null | null | modules/webbrowser/src/browserclient.cpp | nbartzokas/OpenSpace | 9df1e9b4821fade185b6e0a31b7cce1e67752a44 | [
"MIT"
] | null | null | null | /*****************************************************************************************
* *
* OpenSpace *
* ... | 51.234375 | 90 | 0.541934 | nbartzokas |
05c8b3d6e5a8688626195e1650863552336478c9 | 1,056 | cpp | C++ | geo/pathpt.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | geo/pathpt.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | geo/pathpt.cpp | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | // -*- coding: us-ascii-unix -*-
// Copyright 2013 Lukas Kemmer
//
// 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 a... | 30.171429 | 70 | 0.721591 | lukas-ke |
fe45c3d5af4ff03e10f18d01e03d629b627b5b9d | 1,349 | hh | C++ | CLARKSCV1.2.6.1/src/analyser.hh | Intensive-School-Virology-Unipv/metaviromics_data | df56c517b7d08000db0096b823a633450b15c0a1 | [
"MIT"
] | null | null | null | CLARKSCV1.2.6.1/src/analyser.hh | Intensive-School-Virology-Unipv/metaviromics_data | df56c517b7d08000db0096b823a633450b15c0a1 | [
"MIT"
] | null | null | null | CLARKSCV1.2.6.1/src/analyser.hh | Intensive-School-Virology-Unipv/metaviromics_data | df56c517b7d08000db0096b823a633450b15c0a1 | [
"MIT"
] | null | null | null | /*
* CLARK, CLAssifier based on Reduced K-mers.
*/
/*
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.
This pr... | 24.089286 | 77 | 0.711638 | Intensive-School-Virology-Unipv |
fe464b4b88409e8699da06d268833caced9dbea2 | 2,009 | cpp | C++ | src/gui/chat_view.cpp | lucckb/telesecure | 9da299c29551d8abdba244458a0f894a9cc89b19 | [
"BSD-3-Clause"
] | 1 | 2020-03-22T17:06:43.000Z | 2020-03-22T17:06:43.000Z | src/gui/chat_view.cpp | lucckb/telesecure | 9da299c29551d8abdba244458a0f894a9cc89b19 | [
"BSD-3-Clause"
] | null | null | null | src/gui/chat_view.cpp | lucckb/telesecure | 9da299c29551d8abdba244458a0f894a9cc89b19 | [
"BSD-3-Clause"
] | null | null | null | #include <gui/chat_view.hpp>
#include <gui/chat_doc.hpp>
#include <gui/window_driver_context.hpp>
#include <gui/utility.hpp>
#include <ctime>
namespace gui {
//! Construtor
chat_view::chat_view(color_t bg, color_t fg)
: window(0,bg,fg)
{
}
//! Destructor
chat_view::~chat_view()
{
}
//When screen should ... | 23.916667 | 69 | 0.56446 | lucckb |
fe48ccd4cfffc7014476514587037f11d6660019 | 7,381 | cpp | C++ | tool_kits/ui_component/ui_kit/module/session/session_manager_dragdrop.cpp | stephenzhj/NIM_PC_Demo | 0d2933955e079afa5c9e4df196ee017fad6c79af | [
"BSD-2-Clause",
"OpenSSL"
] | 161 | 2016-01-24T13:55:15.000Z | 2021-06-01T03:48:56.000Z | tool_kits/ui_component/ui_kit/module/session/session_manager_dragdrop.cpp | stephenzhj/NIM_PC_Demo | 0d2933955e079afa5c9e4df196ee017fad6c79af | [
"BSD-2-Clause",
"OpenSSL"
] | 49 | 2016-01-24T14:06:52.000Z | 2021-06-01T07:14:53.000Z | tool_kits/ui_component/ui_kit/module/session/session_manager_dragdrop.cpp | xiejiulong/NIM_PC_Demo | 47f74270b200bb365035209c9734723f1cb7efea | [
"BSD-2-Clause",
"OpenSSL"
] | 140 | 2016-02-22T09:42:07.000Z | 2021-05-26T01:15:12.000Z | #include "stdafx.h"
#include "session_manager.h"
#include "gui/session/session_form.h"
#include "gui/session/session_box.h"
#include "gui/session/dragdrop/drag_form.h"
#include "gui/session/session_dock_def.h"
#include "module/dragdrop/drag_drop.h"
namespace
{
const int kSplitFormXOffset = 20; //自动拆分会话窗口后新窗口的x偏移坐标
c... | 24.279605 | 109 | 0.730524 | stephenzhj |
fe4dbaf64a7aa3f13ef7fda3cd07c5d1eb8d5706 | 94 | hpp | C++ | hostsdk/include/rtvamp/hostsdk.hpp | lukasberbuer/rt-vamp-plugin-sdk | 745e3e30d2899669ff3a482135c58407b3b3b36b | [
"MIT"
] | null | null | null | hostsdk/include/rtvamp/hostsdk.hpp | lukasberbuer/rt-vamp-plugin-sdk | 745e3e30d2899669ff3a482135c58407b3b3b36b | [
"MIT"
] | null | null | null | hostsdk/include/rtvamp/hostsdk.hpp | lukasberbuer/rt-vamp-plugin-sdk | 745e3e30d2899669ff3a482135c58407b3b3b36b | [
"MIT"
] | null | null | null | #pragma once
#include "rtvamp/hostsdk/Plugin.hpp"
#include "rtvamp/hostsdk/PluginLoader.hpp"
| 18.8 | 42 | 0.787234 | lukasberbuer |
fe4e8dec153da3fd5a6bce8bdea21d57a7f435d8 | 10,219 | cpp | C++ | Source/Data/TLS/Base/NptTlsTrustAnchor_Base_0079.cpp | mcgwh/Neptune | 9f95d33e594088d9e95a3d77818de3cc6e4b7dba | [
"BSD-3-Clause"
] | 1 | 2019-07-20T02:26:52.000Z | 2019-07-20T02:26:52.000Z | Source/Data/TLS/Base/NptTlsTrustAnchor_Base_0079.cpp | mcgwh/Neptune | 9f95d33e594088d9e95a3d77818de3cc6e4b7dba | [
"BSD-3-Clause"
] | null | null | null | Source/Data/TLS/Base/NptTlsTrustAnchor_Base_0079.cpp | mcgwh/Neptune | 9f95d33e594088d9e95a3d77818de3cc6e4b7dba | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************
|
| Neptune - Trust Anchors
|
| This file is automatically generated by a script, do not edit!
|
| Copyright (c) 2002-2010, Axiomatic Systems, LLC.
| All rights reserved.
|
| Redistribution and use in source and binary forms, with or without
| modif... | 42.757322 | 79 | 0.767883 | mcgwh |
fe50aab4de840cd4cab2118fc0ccae75257302f6 | 10,285 | cpp | C++ | baseoperations/math/binarymath.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | baseoperations/math/binarymath.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | baseoperations/math/binarymath.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | #include <functional>
#include <future>
#include "kernel.h"
#include "raster.h"
#include "symboltable.h"
#include "ilwisoperation.h"
#include "binarymath.h"
using namespace Ilwis;
using namespace BaseOperations;
OperationImplementation *BinaryMath::create(quint64 metaid, const Ilwis::OperationExpression &expr)
{
... | 33.721311 | 148 | 0.581624 | ridoo |
fe534add0e69038d2951136b4fb5c1bb8381d8a5 | 1,696 | cpp | C++ | TacticalFPS/Private/Weapons/WeaponStates/TacticalWeaponStateUnequipping.cpp | Tomura/TacticalPrototypeCPP | 0c8599a681222ad8e25f6db05e3e580b89c52974 | [
"MIT"
] | 6 | 2018-07-10T06:46:15.000Z | 2020-01-09T23:06:49.000Z | TacticalFPS/Private/Weapons/WeaponStates/TacticalWeaponStateUnequipping.cpp | Tomura/TacticalPrototypeCPP | 0c8599a681222ad8e25f6db05e3e580b89c52974 | [
"MIT"
] | null | null | null | TacticalFPS/Private/Weapons/WeaponStates/TacticalWeaponStateUnequipping.cpp | Tomura/TacticalPrototypeCPP | 0c8599a681222ad8e25f6db05e3e580b89c52974 | [
"MIT"
] | 1 | 2020-04-11T13:12:18.000Z | 2020-04-11T13:12:18.000Z | // Copyright (c) 2015-2016, Tammo Beil - All rights reserved
#include "TacticalFPS.h"
#include "TacticalCharacter.h"
#include "TacticalWeapon.h"
#include "TacticalWeaponState.h"
#include "TacticalWeaponStateEquipping.h"
#include "TacticalWeaponStateUnequipping.h"
UTacticalWeaponStateUnequipping::UTacticalWeaponState... | 26.092308 | 118 | 0.772995 | Tomura |
fe5368a2b513e51d16cb618d7cacb42b137e9138 | 1,992 | cpp | C++ | source/tests.cpp | GottaGoGitHub/programmiersprachen2020-aufgabe-1 | d7ec99a5f7cfd51bb54719887d7b51e5675b0b25 | [
"MIT"
] | null | null | null | source/tests.cpp | GottaGoGitHub/programmiersprachen2020-aufgabe-1 | d7ec99a5f7cfd51bb54719887d7b51e5675b0b25 | [
"MIT"
] | null | null | null | source/tests.cpp | GottaGoGitHub/programmiersprachen2020-aufgabe-1 | d7ec99a5f7cfd51bb54719887d7b51e5675b0b25 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_RUNNER
#include <catch.hpp>
#include <cmath>
int gcd(int a, int b)
{
if(b == 0)
return a;
return gcd(b, a % b);
}
TEST_CASE("describe_gcd", "[gcd]")
{
REQUIRE(gcd(2, 4) == 2);
REQUIRE(gcd(9, 6) == 3);
REQUIRE(gcd(3, 7) == 1);
}
int checksum(long num)
{
if(num < 0)
{
st... | 16.881356 | 72 | 0.585341 | GottaGoGitHub |
fe54c9b916c7940035eccb40afe61efb612f1909 | 6,652 | cpp | C++ | third/3rd_qwt/qwt_compass_rose.cpp | alexwang815/QWidgetDemo | 293a8d9c40d686397829c5d415fc531b6956883e | [
"MulanPSL-1.0"
] | 3,095 | 2019-10-11T03:00:33.000Z | 2022-03-31T08:15:13.000Z | third/3rd_qwt/qwt_compass_rose.cpp | alexwang815/QWidgetDemo | 293a8d9c40d686397829c5d415fc531b6956883e | [
"MulanPSL-1.0"
] | 28 | 2019-11-12T07:24:06.000Z | 2022-02-28T02:04:48.000Z | third/3rd_qwt/qwt_compass_rose.cpp | alexwang815/QWidgetDemo | 293a8d9c40d686397829c5d415fc531b6956883e | [
"MulanPSL-1.0"
] | 1,023 | 2019-10-09T12:54:07.000Z | 2022-03-30T04:02:07.000Z | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*************... | 24.546125 | 81 | 0.622369 | alexwang815 |
fe5567630d6abdd647aac1141aaf146bce1d5381 | 221 | cpp | C++ | 4th semester/lab_7/src/Skaner.cpp | kmalski/cpp_labs | 52b0fc84319d6cc57ff7bfdb787aa5eb09edf592 | [
"MIT"
] | 1 | 2020-05-19T17:14:55.000Z | 2020-05-19T17:14:55.000Z | 4th semester/lab_7/src/Skaner.cpp | kmalski/CPP_Laboratories | 52b0fc84319d6cc57ff7bfdb787aa5eb09edf592 | [
"MIT"
] | null | null | null | 4th semester/lab_7/src/Skaner.cpp | kmalski/CPP_Laboratories | 52b0fc84319d6cc57ff7bfdb787aa5eb09edf592 | [
"MIT"
] | null | null | null | #include <string>
#include "Skaner.h"
Skaner::Skaner(Rozdzielczosc roz) : _roz(roz) {}
std::string Skaner::rodzaj() const {
return "Skaner";
}
std::string Skaner::rozdzielczosc() const {
return _roz.print();
}
| 17 | 48 | 0.669683 | kmalski |
fe5a3ab7a44bcbc4aaacb45888e5ae4959f9f768 | 4,600 | cpp | C++ | utils/eglplus/egl/src/EGL/glx/extensions.cpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 364 | 2015-01-01T09:38:23.000Z | 2022-03-22T05:32:00.000Z | utils/eglplus/egl/src/EGL/glx/extensions.cpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | utils/eglplus/egl/src/EGL/glx/extensions.cpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | /**
* .file EGL/glx/extension.cpp
* .brief EGL Extensions functionality implementation.
*
* @author Matus Chochlik
*
* Copyright 2012-2019 Matus Chochlik. 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)
... | 42.201835 | 80 | 0.606087 | matus-chochlik |
fe602b75c04af56410af0af201b9448ed922edca | 16,407 | cpp | C++ | CaptureManagerSource/CustomisedMixerNode/CustomisedMixerNode.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 64 | 2020-07-20T09:35:16.000Z | 2022-03-27T19:13:08.000Z | CaptureManagerSource/CustomisedMixerNode/CustomisedMixerNode.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 8 | 2020-07-30T09:20:28.000Z | 2022-03-03T22:37:10.000Z | CaptureManagerSource/CustomisedMixerNode/CustomisedMixerNode.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 28 | 2020-07-20T13:02:42.000Z | 2022-03-18T07:36:05.000Z | /*
MIT License
Copyright(c) 2020 Evgeny Pereguda
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, ... | 23.141044 | 124 | 0.702627 | luoyingwen |
fe62cbd256227776390af7b35737e37a567b36fc | 2,331 | cpp | C++ | 04_sequence_containers/03_list/01_intro.cpp | Gmrakari/STL | 1fc90b1c573a140efa695efd5c55e80ad03b7595 | [
"MIT"
] | null | null | null | 04_sequence_containers/03_list/01_intro.cpp | Gmrakari/STL | 1fc90b1c573a140efa695efd5c55e80ad03b7595 | [
"MIT"
] | null | null | null | 04_sequence_containers/03_list/01_intro.cpp | Gmrakari/STL | 1fc90b1c573a140efa695efd5c55e80ad03b7595 | [
"MIT"
] | null | null | null |
/*
* Date:2021-05-28 13:10
* filename:01_intro
*
*/
/*
* 相较于vector连续性空间,list复杂许多,它的好处是每次插入或和删除一个元素
* 就配置或释放一个元素空间
* 对于任何位置的元素插入或删除移除,list永远是常熟时间
*
*
* list和vector是两个最常被使用的容器
*
*/
/*
* list node
*/
template <class T>
struct __list_node {
typedef void* void_pointer;
void_pointer prev;
void_pointer n... | 18.95122 | 64 | 0.697555 | Gmrakari |
fe62d43f6963dd25b4bafee2dc27735d17e01046 | 193 | hpp | C++ | src/Griddly/Core/Observers/Vulkan/VulkanQueueFamilyIndices.hpp | DavidSlayback/Griddly | b97866905fd897f5e8d4c36e1f0cf48893b1fff6 | [
"MIT"
] | null | null | null | src/Griddly/Core/Observers/Vulkan/VulkanQueueFamilyIndices.hpp | DavidSlayback/Griddly | b97866905fd897f5e8d4c36e1f0cf48893b1fff6 | [
"MIT"
] | null | null | null | src/Griddly/Core/Observers/Vulkan/VulkanQueueFamilyIndices.hpp | DavidSlayback/Griddly | b97866905fd897f5e8d4c36e1f0cf48893b1fff6 | [
"MIT"
] | null | null | null | #pragma once
#include <vulkan/vulkan.h>
namespace vk {
struct VulkanQueueFamilyIndices {
uint32_t graphicsIndices = UINT32_MAX;
uint32_t computeIndices = UINT32_MAX;
};
} // namespace vk | 19.3 | 40 | 0.761658 | DavidSlayback |
fe6427d40627c5b921a651cdd224c9b0c236aadc | 1,146 | cpp | C++ | VDM/main.cpp | ALEHACKsp/VDM | 08983dc37f1ed371800d87305d07f30c6e7b3f42 | [
"MIT"
] | 1 | 2020-11-13T15:39:30.000Z | 2020-11-13T15:39:30.000Z | VDM/main.cpp | ALEHACKsp/VDM | 08983dc37f1ed371800d87305d07f30c6e7b3f42 | [
"MIT"
] | null | null | null | VDM/main.cpp | ALEHACKsp/VDM | 08983dc37f1ed371800d87305d07f30c6e7b3f42 | [
"MIT"
] | 1 | 2021-07-03T03:49:28.000Z | 2021-07-03T03:49:28.000Z | #include "vdm_ctx/vdm_ctx.h"
int __cdecl main(int argc, char** argv)
{
const auto [drv_handle, drv_key] = vdm::load_drv();
if (!drv_handle || drv_key.empty())
{
std::printf("[!] unable to load vulnerable driver...\n");
return -1;
}
vdm::vdm_ctx vdm;
const auto ntoskrnl_base =
reinterpret_cast<void*>(
u... | 27.285714 | 104 | 0.659686 | ALEHACKsp |
fe657894b85566eb097051da062ed6111f9c687e | 1,397 | cpp | C++ | TPDPHook/main.cpp | php42/TPDPHook | f80b71069f468e38f12157c6ea73eeaf1ab13c48 | [
"MIT"
] | 1 | 2021-08-14T13:49:58.000Z | 2021-08-14T13:49:58.000Z | TPDPHook/main.cpp | php42/TPDPHook | f80b71069f468e38f12157c6ea73eeaf1ab13c48 | [
"MIT"
] | null | null | null | TPDPHook/main.cpp | php42/TPDPHook | f80b71069f468e38f12157c6ea73eeaf1ab13c48 | [
"MIT"
] | null | null | null | #include <Windows.h>
#include <filesystem>
#include <sstream>
#include "ini_parser.h"
#include "hook.h"
#include "log.h"
#include "tpdp/hook_tpdp.h"
HMODULE g_hmodule = nullptr;
static void read_config()
{
IniFile::global.read("TPDPHook.ini");
if(IniFile::global["general"]["logging"] == "debug")
log_set_level(Log... | 23.283333 | 90 | 0.691482 | php42 |
fe68d5c17ff590129a4cb082f65fc0dad860c1be | 8,769 | hh | C++ | EnergyPlus/OutsideEnergySources.hh | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | EnergyPlus/OutsideEnergySources.hh | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | 1 | 2020-07-08T13:32:09.000Z | 2020-07-08T13:32:09.000Z | EnergyPlus/OutsideEnergySources.hh | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | // EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Batt... | 45.435233 | 150 | 0.63485 | yurigabrich |
fe6b398caa0a823511d6e7302cce6522173479b0 | 8,875 | cpp | C++ | sources/libcpp83gts_callback_and_action/iipg_scan.cpp | Savraska2/GTS | 78c8b4d634f1379eb3e33642716717f53bf7e1ad | [
"BSD-3-Clause"
] | 61 | 2016-03-26T03:04:43.000Z | 2021-09-17T02:11:18.000Z | sources/libcpp83gts_callback_and_action/iipg_scan.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 92 | 2016-04-10T23:40:22.000Z | 2022-03-11T21:49:12.000Z | sources/libcpp83gts_callback_and_action/iipg_scan.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 18 | 2016-03-26T11:19:14.000Z | 2021-08-07T00:26:02.000Z | #include <iostream>
#include <iomanip> // std::setprecision(-)
#include <limits> // std::numeric_limits<double>::max_digits10
#include <string>
#include "FL/fl_ask.H" // fl_alert(-)
#include "pri.h"
#include "gts_master.h"
#include "gts_gui.h"
int gts_master::iipg_scan_open_setup_unit_get_spec_( void )
{
/* すべてセンチメータ... | 27.057927 | 75 | 0.706704 | Savraska2 |
fe6c0b8023dd5dd12a5c4fb9b5bf842a0a83aca7 | 6,036 | cpp | C++ | src/keep_backups.cpp | bluedevils23/slumbot2019 | a1b65b84c89ab2eff9e2e0c16cedcfcbd479dffd | [
"MIT"
] | 80 | 2019-03-28T02:57:51.000Z | 2022-03-17T05:41:48.000Z | src/keep_backups.cpp | bluedevils23/slumbot2019 | a1b65b84c89ab2eff9e2e0c16cedcfcbd479dffd | [
"MIT"
] | 19 | 2019-06-11T08:01:06.000Z | 2022-01-28T23:13:49.000Z | src/keep_backups.cpp | bluedevils23/slumbot2019 | a1b65b84c89ab2eff9e2e0c16cedcfcbd479dffd | [
"MIT"
] | 28 | 2019-07-18T01:36:35.000Z | 2021-12-26T14:37:10.000Z | #include <stdio.h>
#include <stdlib.h>
#include <string.h> // strcpy()
#include <sys/wait.h> // waitpid()
#include <unistd.h> // vfork
#include <string>
#include <vector>
#include "io.h"
#include "split.h"
using std::string;
using std::vector;
// 2019-06-13 16:31:28 1187056 regrets.x.0.0.0.0.p0.i
// 2019-06-... | 27.944444 | 94 | 0.578694 | bluedevils23 |
fe6f096ec60c53d73625682edbd30debb3663395 | 2,492 | cpp | C++ | ftsoftds_vc6/ch7/prg7_3.cpp | guarana-x/fwg | 5a56dcb4caee5dca6744fca8e21b987b07106513 | [
"MIT"
] | null | null | null | ftsoftds_vc6/ch7/prg7_3.cpp | guarana-x/fwg | 5a56dcb4caee5dca6744fca8e21b987b07106513 | [
"MIT"
] | null | null | null | ftsoftds_vc6/ch7/prg7_3.cpp | guarana-x/fwg | 5a56dcb4caee5dca6744fca8e21b987b07106513 | [
"MIT"
] | null | null | null | // File: prg7_3.cpp
// the program inputs an infix expression until the user enters an empty
// string. it uses the class infix2Postfix to convert the infix expression
// to postfix, handling errors that may occur by catching the corresponding
// expressionError exception. if there is no error, the postfix string i... | 25.958333 | 76 | 0.67496 | guarana-x |
fe6f5ce548265109884ba8bf7d1513ea1da92abb | 57 | cpp | C++ | CompetitonTemplate_23:53:33/output/main.cpp | ehami/VexCodingStudioExtractor | 29bfe9091f4e6ac650bd3e7339739d70a4d9f0d0 | [
"MIT"
] | null | null | null | CompetitonTemplate_23:53:33/output/main.cpp | ehami/VexCodingStudioExtractor | 29bfe9091f4e6ac650bd3e7339739d70a4d9f0d0 | [
"MIT"
] | null | null | null | CompetitonTemplate_23:53:33/output/main.cpp | ehami/VexCodingStudioExtractor | 29bfe9091f4e6ac650bd3e7339739d70a4d9f0d0 | [
"MIT"
] | null | null | null | #include "robot-config.h"
int main() {
} | 9.5 | 25 | 0.45614 | ehami |
fe73180f8a4e5e330d118332ed30c097b6474aa9 | 5,208 | cpp | C++ | src/frontend/combine.cpp | Jelinek-J/INSPiRE | 425c6fba18170b34001b1f00b3f827b83c80ce68 | [
"Apache-2.0"
] | 2 | 2020-10-20T11:29:11.000Z | 2022-03-24T09:08:30.000Z | src/frontend/combine.cpp | Jelinek-J/INSPiRE | 425c6fba18170b34001b1f00b3f827b83c80ce68 | [
"Apache-2.0"
] | 1 | 2018-11-23T11:02:11.000Z | 2018-11-23T11:02:11.000Z | src/frontend/combine.cpp | Jelinek-J/INSPiRE | 425c6fba18170b34001b1f00b3f827b83c80ce68 | [
"Apache-2.0"
] | 1 | 2021-06-22T08:53:23.000Z | 2021-06-22T08:53:23.000Z | // mine.cpp : Defines the entry point for the console application.
//
#include "../backend/combine.h"
#include "../common/exception.h"
#include "../common/string.h"
#include <iostream>
#include <fstream>
//#define TESTING
void help() {
std::cout << "Help\n\n";
std::cout << "Combine multiple optimi... | 37.73913 | 206 | 0.572389 | Jelinek-J |
fe7845388df6648a69594ee993e70fd76eead9e4 | 408 | cpp | C++ | subseque.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | subseque.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | subseque.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
using namespace std;
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
string s;
cin>>s;
map<char,int> mp;
for(int i=0;i<s.length();i++)
{
mp[s[i]]++;
}
int flag=0;
for(map<char,int>::iterator it=mp.begin();it!=mp.end();it++)
{
if(it->second>=2)
{
f... | 12.75 | 62 | 0.509804 | sagar-sam |
fe7f859214ff95ecc923fbccbd0f185a3176b8be | 8,760 | cpp | C++ | libs/locale/src/icu/time_zone.cpp | lijgame/boost | ec2214a19cdddd1048058321a8105dd0231dac47 | [
"BSL-1.0"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | libs/boost/libs/locale/src/icu/time_zone.cpp | flingone/frameworks_base_cmds_remoted | 4509d9f0468137ed7fd8d100179160d167e7d943 | [
"Apache-2.0"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | libs/boost/libs/locale/src/icu/time_zone.cpp | flingone/frameworks_base_cmds_remoted | 4509d9f0468137ed7fd8d100179160d167e7d943 | [
"Apache-2.0"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | //
// Copyright (c) 2009-2011 Artyom Beilis (Tonkikh)
//
// 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)
//
#define BOOST_LOCALE_SOURCE
#include "time_zone.hpp"
//
// Bug - when ICU tries to find ... | 36.806723 | 115 | 0.410502 | lijgame |
fe86a4b07c452ab0781075448b14386c7eda3cf7 | 1,007 | cpp | C++ | src/Interface/Resource/Factory/Factory.cpp | korenandr/poco_restful_webservice | 864b02fb0cd500c9c74fb2f6931c44ecd6f4d019 | [
"Apache-2.0"
] | 1 | 2021-07-01T18:45:35.000Z | 2021-07-01T18:45:35.000Z | src/Interface/Resource/Factory/Factory.cpp | korenandr/poco_restful_webservice | 864b02fb0cd500c9c74fb2f6931c44ecd6f4d019 | [
"Apache-2.0"
] | null | null | null | src/Interface/Resource/Factory/Factory.cpp | korenandr/poco_restful_webservice | 864b02fb0cd500c9c74fb2f6931c44ecd6f4d019 | [
"Apache-2.0"
] | null | null | null | #include "Interface/Resource/Factory/Factory.h"
#include "Interface/Resource/Factory/VoteFactory.h"
#include "Interface/Resource/Factory/PollFactory.h"
#include "Interface/Resource/Factory/ApplicationFactory.h"
#include "log/logger.hpp"
namespace Interface::Resource::Factory {
IFactory * Factory::createResourc... | 26.5 | 76 | 0.630586 | korenandr |
fe8de6a5bbe81139cfa0cf451a14ce5b3e737c32 | 559 | cpp | C++ | C++/number-of-distinct-substrings-in-a-string.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/number-of-distinct-substrings-in-a-string.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/number-of-distinct-substrings-in-a-string.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n^2)
// Space: O(t), t is the number of trie nodes
class Solution {
public:
int countDistinct(string s) {
vector<array<int, 26>> trie(1);
for (int i = 0; i < size(s); ++i) {
int curr = 0;
for (int j = i; j < size(s); ++j) {
if (!trie[curr][s[j] - ... | 26.619048 | 60 | 0.388193 | Priyansh2 |
fe914df8ab3ec9073582dfd5b3db38c6d8b32e81 | 2,654 | cc | C++ | April/20220407/practice/cow2.cc | RecklessTeikon/MyCPPJourney | 0f11b810703f487cdbaf7a19e1ed6f999340a66a | [
"MIT"
] | 1 | 2022-03-28T15:59:22.000Z | 2022-03-28T15:59:22.000Z | April/20220407/practice/cow2.cc | RecklessTeikon/MyCPPJourney | 0f11b810703f487cdbaf7a19e1ed6f999340a66a | [
"MIT"
] | null | null | null | April/20220407/practice/cow2.cc | RecklessTeikon/MyCPPJourney | 0f11b810703f487cdbaf7a19e1ed6f999340a66a | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using std::cout;
using std::endl;
class Mystring
{
public:
Mystring()
:_ptr(new char[1 + 4])
,_charproxy(this, 0)
{
_ptr += 4;
getRefCount() = 1;
*_ptr = '\0';
}
Mystring(const char *str)
:_ptr(new char[strlen(str + 1) + 4]... | 21.063492 | 96 | 0.487189 | RecklessTeikon |
fe9153155f5c4a7d0d8290c0d5d2c3b3792d97f9 | 1,176 | cpp | C++ | OJ/LeetCode/leetcode/problems/1299.cpp | ONGOING-Z/DataStructure | 9099393d1c7dfabc3e2939586ea6d1d254631eb2 | [
"MIT"
] | null | null | null | OJ/LeetCode/leetcode/problems/1299.cpp | ONGOING-Z/DataStructure | 9099393d1c7dfabc3e2939586ea6d1d254631eb2 | [
"MIT"
] | 2 | 2021-10-31T10:05:45.000Z | 2022-02-12T15:17:53.000Z | OJ/LeetCode/leetcode/problems/1299.cpp | ONGOING-Z/DataStructure | 9099393d1c7dfabc3e2939586ea6d1d254631eb2 | [
"MIT"
] | null | null | null | /* 1299. Replace Elements with Greatest Element on Right Side
* Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with -1.
After doing so, return the array.
Example 1:
Input: arr = [17,18,5,4,6,1]
Output: [18,6,6,6,1,-1]... | 22.188679 | 155 | 0.511054 | ONGOING-Z |
fe9a41298452cc760db43faef72c4ca90c316034 | 28,314 | cpp | C++ | test/recognizer_float_tests.cpp | spavloff/conversion | bd8128487ede0d4500df5c760c6c70355ff2ed9a | [
"BSD-2-Clause"
] | null | null | null | test/recognizer_float_tests.cpp | spavloff/conversion | bd8128487ede0d4500df5c760c6c70355ff2ed9a | [
"BSD-2-Clause"
] | null | null | null | test/recognizer_float_tests.cpp | spavloff/conversion | bd8128487ede0d4500df5c760c6c70355ff2ed9a | [
"BSD-2-Clause"
] | 1 | 2020-08-14T06:21:29.000Z | 2020-08-14T06:21:29.000Z | //===--- recognizer_float_tests.cpp -----------------------------*- C++ -*-===//
//
// Copyright(c) 2016, Serge Pavlov.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// - Redistributions ... | 39.053793 | 80 | 0.714311 | spavloff |
fe9c5bb6dc65190c3b5fe33c9394c358dd96a5c1 | 4,916 | cpp | C++ | test/PegtlExecutableTests.cpp | gitmodimo/cppgraphqlgen | bee89894653ad12f574f941d27c156354b1d497c | [
"MIT"
] | 52 | 2018-08-12T15:36:12.000Z | 2019-05-04T09:22:34.000Z | test/PegtlExecutableTests.cpp | gitmodimo/cppgraphqlgen | bee89894653ad12f574f941d27c156354b1d497c | [
"MIT"
] | 30 | 2018-09-10T18:05:16.000Z | 2019-05-02T00:43:01.000Z | test/PegtlExecutableTests.cpp | gitmodimo/cppgraphqlgen | bee89894653ad12f574f941d27c156354b1d497c | [
"MIT"
] | 13 | 2018-08-20T03:40:22.000Z | 2019-04-19T08:15:46.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <gtest/gtest.h>
#include "graphqlservice/GraphQLParse.h"
#include "graphqlservice/internal/Grammar.h"
#include <tao/pegtl/contrib/analyze.hpp>
using namespace graphql;
using namespace graphql::peg;
using names... | 21.189655 | 106 | 0.664158 | gitmodimo |
fe9f9f022b8b0fa0dd71c3e8cdc030200a5cb9c9 | 4,387 | cpp | C++ | qplacesearchsuggestionreplyimpl.cpp | mfbernardes/googlemaps | 7ce7124b385b2ebac0f72c38b094f436d4fe5c58 | [
"MIT"
] | 123 | 2016-07-18T07:53:34.000Z | 2022-02-21T20:30:27.000Z | qplacesearchsuggestionreplyimpl.cpp | mfbernardes/googlemaps | 7ce7124b385b2ebac0f72c38b094f436d4fe5c58 | [
"MIT"
] | 30 | 2016-07-18T07:55:30.000Z | 2022-03-06T02:03:24.000Z | qplacesearchsuggestionreplyimpl.cpp | mfbernardes/googlemaps | 7ce7124b385b2ebac0f72c38b094f436d4fe5c58 | [
"MIT"
] | 66 | 2016-09-17T12:41:41.000Z | 2021-12-28T16:39:48.000Z | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtLocation module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
** Licensees holding valid com... | 34.007752 | 113 | 0.662412 | mfbernardes |
fea080aeeb2048c21d10127d23cbe7461383c40e | 694 | cpp | C++ | src/test-last-n.cpp | pmcharrison/ppm | d58e7598e02a6df8a4ef013f5e19987311295196 | [
"MIT"
] | 9 | 2019-12-28T16:03:48.000Z | 2021-07-02T07:59:17.000Z | src/test-last-n.cpp | pmcharrison/ppm | d58e7598e02a6df8a4ef013f5e19987311295196 | [
"MIT"
] | null | null | null | src/test-last-n.cpp | pmcharrison/ppm | d58e7598e02a6df8a4ef013f5e19987311295196 | [
"MIT"
] | 3 | 2021-09-15T10:34:16.000Z | 2022-03-17T21:36:44.000Z | #include <testthat.h>
typedef std::vector<int> sequence;
sequence last_n (const sequence&, int);
context("last_n") {
test_that("example 1") {
sequence input;
input.push_back(1);
input.push_back(2);
input.push_back(3);
sequence output = last_n(input, 0);
expect_true(output.size() == 0);
... | 20.411765 | 41 | 0.616715 | pmcharrison |
fea162c41c1c26929a5f008a7542780dd89aa75f | 678 | hpp | C++ | DataStructures/Model/Structures/Linear/List.hpp | PearsonAnimates/DataStructures | 79732365ad4f0b84f40b6b3c5280dec3032ee99d | [
"Unlicense"
] | null | null | null | DataStructures/Model/Structures/Linear/List.hpp | PearsonAnimates/DataStructures | 79732365ad4f0b84f40b6b3c5280dec3032ee99d | [
"Unlicense"
] | null | null | null | DataStructures/Model/Structures/Linear/List.hpp | PearsonAnimates/DataStructures | 79732365ad4f0b84f40b6b3c5280dec3032ee99d | [
"Unlicense"
] | null | null | null | //
// List.hpp
// DataStructures
//
// Created by Amaya Penunuri, Yael on 2/8/18.
// Copyright © 2018 Amaya Penunuri, Yael. All rights reserved.
//
#ifndef List_hpp
#define List_hpp
#include <assert.h>
#include "../../Nodes/LinearNode.cpp"
template <class Type>
class List
{
protected:
int size;
public:
/... | 20.545455 | 63 | 0.654867 | PearsonAnimates |
fea5013266bd04ee8f3e0c90fe308ea553cb70f4 | 283 | cpp | C++ | Test/MockWatch.cpp | Unitrunker/Tile | 71b8b0e33bf8100090be6d9ac45e7d300f812cbc | [
"Apache-2.0"
] | null | null | null | Test/MockWatch.cpp | Unitrunker/Tile | 71b8b0e33bf8100090be6d9ac45e7d300f812cbc | [
"Apache-2.0"
] | 1 | 2017-11-14T16:56:26.000Z | 2017-11-20T02:00:23.000Z | Test/MockWatch.cpp | Unitrunker/Tile | 71b8b0e33bf8100090be6d9ac45e7d300f812cbc | [
"Apache-2.0"
] | 2 | 2017-11-14T14:18:51.000Z | 2019-06-16T11:58:47.000Z | #include "stdafx.h"
#include "MockWatch.h"
#include "../Tile/ITile.h"
/*
Copyright 2011 Rick Parrish
*/
/// <param name="pDraw">control in need of redrawing.</param>
void MockWatch::Redraw(ITile *pTile)
{
printf("%ld called %s\n", pTile->identity(), __FUNCTION__);
}
| 20.214286 | 62 | 0.65371 | Unitrunker |
fea5ca89b90ac5dcfd1a8bdf5f0c3a1f80f43167 | 591 | cc | C++ | apps/rosetta/python/test/test_pybind.cc | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 25 | 2019-07-23T01:03:48.000Z | 2022-03-31T04:16:08.000Z | apps/rosetta/python/test/test_pybind.cc | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 13 | 2018-01-30T17:45:57.000Z | 2022-03-28T11:02:44.000Z | apps/rosetta/python/test/test_pybind.cc | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 14 | 2018-02-08T01:42:28.000Z | 2022-03-31T12:56:17.000Z | #include <pybind11/pybind11.h>
#include <memory>
#include <iostream>
namespace py = pybind11;
struct Foo : public std::enable_shared_from_this<Foo> {
Foo(){}
void bar() const {
std::cout << "bar" << std::endl;
}
};
std::shared_ptr<Foo> make_Foo(){
return std::make_shared<Foo>();
}
PYBIND11_DECLARE_HOLDER_TYPE... | 17.909091 | 55 | 0.637902 | YaoYinYing |
fea9b83df94e6af234c8279993feb2596801cfa1 | 2,386 | cpp | C++ | src/NewTileDialog.cpp | lawadr/gridiron | 950aa96a7574a825fb3eb56e802f54c311587413 | [
"MIT"
] | 1 | 2020-01-03T07:04:32.000Z | 2020-01-03T07:04:32.000Z | src/NewTileDialog.cpp | lawadr/gridiron | 950aa96a7574a825fb3eb56e802f54c311587413 | [
"MIT"
] | null | null | null | src/NewTileDialog.cpp | lawadr/gridiron | 950aa96a7574a825fb3eb56e802f54c311587413 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2012-2013 Lawrence Adranghi
See LICENSE in root directory.
*/
#include "NewTileDialog.h"
#include "TileSet.h"
#include "Tile.h"
#include "ResourceModel.h"
#include <QtGui/qboxlayout.h>
#include <QtGui/qformlayout.h>
#include <QtGui/qspinbox.h>
#include <QtGui/qdialogbuttonbox.h>
#include <QtCore/qset... | 31.394737 | 104 | 0.686505 | lawadr |
fead2a1d883a9d0b85e83943358bc70996257301 | 10,686 | hh | C++ | gazebo/gui/building/RectItem.hh | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-07-14T19:36:51.000Z | 2020-04-01T06:47:59.000Z | gazebo/gui/building/RectItem.hh | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2017-07-20T21:04:49.000Z | 2017-10-19T19:32:38.000Z | gazebo/gui/building/RectItem.hh | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012-2016 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 35.62 | 78 | 0.659929 | otamachan |
feb478a9424a3108034b69a3c9074bf7d4840633 | 6,324 | cxx | C++ | ivp/ivp_physics/ivp_performancecounter.cxx | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | ivp/ivp_physics/ivp_performancecounter.cxx | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | ivp/ivp_physics/ivp_performancecounter.cxx | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | // Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved.
#include <ivp_physics.hxx>
#ifndef WIN32
# pragma implementation "ivp_performancecounter.hxx"
#endif
#include <ivp_performancecounter.hxx>
void IVP_PerformanceCounter_Simple::reset_and_print_performance_counters(IVP_Time current_time){... | 29.830189 | 107 | 0.656072 | DannyParker0001 |
feb7932ca8430e2c00e70afd578fd077c8217f3e | 41,396 | cpp | C++ | Windflower/src/Parser.cpp | Ornibyl/Windflower | 5a8f18aa970d8145faf065170b4541e2bf1e592c | [
"MIT"
] | null | null | null | Windflower/src/Parser.cpp | Ornibyl/Windflower | 5a8f18aa970d8145faf065170b4541e2bf1e592c | [
"MIT"
] | null | null | null | Windflower/src/Parser.cpp | Ornibyl/Windflower | 5a8f18aa970d8145faf065170b4541e2bf1e592c | [
"MIT"
] | null | null | null | #include "Parser.hpp"
#include <unordered_map>
#include <filesystem>
#include <fstream>
#include "Utils/Format.hpp"
namespace wf
{
Parser::Parser(std::string_view file_name, std::string_view text, Compiler::Flags& flags)
: flags(flags)
{
file_tokenizers.emplace_back(file_name, text);
... | 37.462443 | 143 | 0.539472 | Ornibyl |
fec60c1c51ff507952693ab094918b9d62e0aa09 | 4,506 | cpp | C++ | WildMagic4/LibFoundation/Distance/Wm4DistRay3Rectangle3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 23 | 2015-08-13T07:36:00.000Z | 2022-01-24T19:00:04.000Z | WildMagic4/LibFoundation/Distance/Wm4DistRay3Rectangle3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | null | null | null | WildMagic4/LibFoundation/Distance/Wm4DistRay3Rectangle3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 6 | 2015-07-06T21:37:31.000Z | 2020-07-01T04:07:50.000Z | // Geometric Tools, LLC
// Copyright (c) 1998-2010
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 4.10.0 (2009/11/18)
#include "Wm4FoundationPCH.h"
#include "Wm4DistRay3Rec... | 36.934426 | 79 | 0.539725 | rms80 |
fec6a68842029b15ba5131daa40bf88c69cc60f1 | 3,837 | cpp | C++ | test/src/core/reactor_echo.cpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | 6 | 2018-07-28T08:03:24.000Z | 2022-03-31T08:56:57.000Z | test/src/core/reactor_echo.cpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | null | null | null | test/src/core/reactor_echo.cpp | chensoft/libxio | 17345e500cca5085641b5392ce8ef7dc65369d69 | [
"MIT"
] | 2 | 2019-05-21T02:26:36.000Z | 2020-04-13T16:46:20.000Z | /**
* Created by Jian Chen
* @since 2016.12.29
* @author Jian Chen <admin@chensoft.com>
* @link http://chensoft.com
*/
#include "socket/inet/inet_address.hpp"
#include "socket/base/basic_socket.hpp"
#include "socket/core/reactor.hpp"
#include "chen/mt/threadpool.hpp"
#include "gtest/gtest.h"
using chen::reacto... | 28.849624 | 85 | 0.604639 | chensoft |
fec6faad68b85e3553fb0bc98ac8f15626f2bb91 | 4,847 | cpp | C++ | plugins/qm-dsp/dsp/chromagram/Chromagram.cpp | horstsoft0815/qlcplus | 249da9d165630b89fe9fbb0796d892c992645709 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | plugins/qm-dsp/dsp/chromagram/Chromagram.cpp | horstsoft0815/qlcplus | 249da9d165630b89fe9fbb0796d892c992645709 | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2021-11-14T16:31:59.000Z | 2021-12-11T19:53:10.000Z | plugins/qm-dsp/dsp/chromagram/Chromagram.cpp | horstsoft0815/qlcplus | 249da9d165630b89fe9fbb0796d892c992645709 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
QM DSP Library
Centre for Digital Music, Queen Mary, University of London.
This file 2005-2006 Christian Landone.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Gen... | 26.2 | 85 | 0.590262 | horstsoft0815 |
fecaa3df6196c16688993c11106071a5d8446bd5 | 1,276 | cpp | C++ | apps/test_typeid_name.cpp | mxgrey/sandbox | 6f3c316702a47053499222dbf293efe6c1f43f0c | [
"BSD-3-Clause"
] | null | null | null | apps/test_typeid_name.cpp | mxgrey/sandbox | 6f3c316702a47053499222dbf293efe6c1f43f0c | [
"BSD-3-Clause"
] | null | null | null | apps/test_typeid_name.cpp | mxgrey/sandbox | 6f3c316702a47053499222dbf293efe6c1f43f0c | [
"BSD-3-Clause"
] | null | null | null |
#include <iostream>
#include <typeinfo>
#include <cxxabi.h>
namespace space {
template<typename T>
class SomeClass
{
};
namespace nam {
class Huff
{
};
inline namespace ill_one
{
class VersionedClass
{
};
} // inline namespace ill_one
inline namespace ill_two
{
class VersionedClass
{
};
} // inline name... | 13.869565 | 79 | 0.666928 | mxgrey |
fecab7843b5a5ce5e5286b991cc73b09d26f16b2 | 3,286 | cpp | C++ | TxtMiruFunc2/TxtFuncBookmarkSqlite3/PictRendererMgr.cpp | gearsns/TxtMiru2 | f829803721354e0639e791ba63962bd702aebfd1 | [
"MIT"
] | 5 | 2019-09-28T09:41:24.000Z | 2020-08-28T07:38:32.000Z | TxtMiruFunc2/TxtFuncBookmarkSqlite3/PictRendererMgr.cpp | gearsns/TxtMiru2 | f829803721354e0639e791ba63962bd702aebfd1 | [
"MIT"
] | null | null | null | TxtMiruFunc2/TxtFuncBookmarkSqlite3/PictRendererMgr.cpp | gearsns/TxtMiru2 | f829803721354e0639e791ba63962bd702aebfd1 | [
"MIT"
] | null | null | null | #pragma warning( disable : 4786 )
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include "PictRendererMgr.h"
#include "stltchar.h"
#include "Image.h"
#include "TxtFunc.h"
#include "TxtFuncIParam.h"
#include "Shell.h"
CGrPictRendererMgr::CGrPictRendererMgr()
{
memset(m_pictRendererMap, 0x00, sizeof... | 25.874016 | 93 | 0.696896 | gearsns |
fecfbf1f7da58342f5ce9d90c2cecfb9a6db145e | 761 | cpp | C++ | src/vsgXchange/ReaderWriter_all.cpp | andesengineering/vsgXchange | 88a3356cdb92792190e878fe8eb3a2436e7b3b67 | [
"MIT"
] | null | null | null | src/vsgXchange/ReaderWriter_all.cpp | andesengineering/vsgXchange | 88a3356cdb92792190e878fe8eb3a2436e7b3b67 | [
"MIT"
] | null | null | null | src/vsgXchange/ReaderWriter_all.cpp | andesengineering/vsgXchange | 88a3356cdb92792190e878fe8eb3a2436e7b3b67 | [
"MIT"
] | null | null | null | #include <vsgXchange/ReaderWriter_all.h>
#include <vsg/io/ReaderWriter_vsg.h>
#include "../glsl//ReaderWriter_glsl.h"
#include "../spirv/ReaderWriter_spirv.h"
#include "../cpp/ReaderWriter_cpp.h"
#ifdef USE_FREETYPE
#include "../freetype/FreeTypeFont.h"
#endif
#ifdef USE_OPENSCENEGRAPH
#include "../osg/ReaderWriter... | 23.78125 | 53 | 0.751643 | andesengineering |
fed005b74434390094522fb83d56db923dbcabe5 | 2,536 | hpp | C++ | src/DataStructures/SliceTensorToVariables.hpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | src/DataStructures/SliceTensorToVariables.hpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | src/DataStructures/SliceTensorToVariables.hpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <boost/range/combine.hpp>
#include <boost/tuple/tuple.hpp>
#include <cstddef>
#include "DataStructures/Index.hpp"
#include "DataStructures/SliceIterator.hpp"
#include "DataStructures/Tensor/Tensor.hpp"
#include "DataStructure... | 38.424242 | 80 | 0.705442 | nilsvu |
fed12f12c79b07fbfad6deed35f232dbb6f2ead0 | 141 | hpp | C++ | src/controllers/ignores/IgnoreController.hpp | NilsIrl/chatterino2 | b7e86a8de66e53876d7a71376c43529597ee6c12 | [
"MIT"
] | 2 | 2018-12-26T15:41:08.000Z | 2021-04-30T11:41:39.000Z | src/controllers/ignores/IgnoreController.hpp | NilsIrl/chatterino2 | b7e86a8de66e53876d7a71376c43529597ee6c12 | [
"MIT"
] | 62 | 2021-02-27T15:09:31.000Z | 2022-03-31T03:09:56.000Z | src/controllers/ignores/IgnoreController.hpp | NilsIrl/chatterino2 | b7e86a8de66e53876d7a71376c43529597ee6c12 | [
"MIT"
] | null | null | null | #pragma once
namespace chatterino {
enum class ShowIgnoredUsersMessages { Never, IfModerator, IfBroadcaster };
} // namespace chatterino
| 17.625 | 74 | 0.780142 | NilsIrl |
fed4ff53d025f27d5a0c068698703bbc24107505 | 648 | cpp | C++ | test/snippet/alphabet/gap/gapped.cpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | 1 | 2021-03-01T11:12:56.000Z | 2021-03-01T11:12:56.000Z | test/snippet/alphabet/gap/gapped.cpp | simonsasse/seqan3 | 0ff2e117952743f081735df9956be4c512f4ccba | [
"CC0-1.0",
"CC-BY-4.0"
] | 2 | 2017-05-17T07:16:19.000Z | 2020-02-13T16:10:10.000Z | test/snippet/alphabet/gap/gapped.cpp | simonsasse/seqan3 | 0ff2e117952743f081735df9956be4c512f4ccba | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | #include <seqan3/alphabet/gap/gapped.hpp>
#include <seqan3/alphabet/nucleotide/dna4.hpp>
int main()
{
using seqan3::operator""_dna4;
seqan3::gapped<seqan3::dna4> gapped_letter{};
seqan3::gapped<seqan3::dna4> converted_letter{'C'_dna4};
seqan3::gapped<seqan3::dna4> gap_letter{seqan3::gap{}};
seqan... | 38.117647 | 109 | 0.638889 | marehr |
fed8c6d160b28d6ca61d7c00c636c2b271801584 | 8,974 | cc | C++ | libs/fssr/mesh_clean.cc | lemony-fresh/mve | d90cc2c813fef026f7732c5a26f6c15973a36042 | [
"BSD-3-Clause"
] | 1 | 2019-05-30T13:19:21.000Z | 2019-05-30T13:19:21.000Z | libs/fssr/mesh_clean.cc | MasterShockwave/mve | 7a96751db098bb6f5c0b4075921b0e8e43a69bb6 | [
"BSD-3-Clause"
] | null | null | null | libs/fssr/mesh_clean.cc | MasterShockwave/mve | 7a96751db098bb6f5c0b4075921b0e8e43a69bb6 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2015, Simon Fuhrmann
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the LICENSE.txt file for details.
*/
#include "math/defines.h"
#include "mve/mes... | 35.192157 | 79 | 0.589035 | lemony-fresh |
fed97fe09ba054ce76bd1e780c74f5fc77250065 | 477 | cpp | C++ | src/UOJ_1061 - (2729840) Accepted.cpp | dreamtocode/URI | 1f402853e8ae43f3761fc3099e7694bff721d5bc | [
"MIT"
] | 1 | 2015-04-26T03:55:07.000Z | 2015-04-26T03:55:07.000Z | src/UOJ_1061 - (2729840) Accepted.cpp | dreamtocode/URI | 1f402853e8ae43f3761fc3099e7694bff721d5bc | [
"MIT"
] | null | null | null | src/UOJ_1061 - (2729840) Accepted.cpp | dreamtocode/URI | 1f402853e8ae43f3761fc3099e7694bff721d5bc | [
"MIT"
] | null | null | null | #include <iostream>
int main(){
int d, dt, h, ht, m, mt, s, st;
scanf("Dia %d", &d);
scanf("%d : %d : %d\n", &h, &m, &s);
scanf("Dia %d", &dt);
scanf("%d : %d : %d", &ht, &mt, &st);
s = st - s;
m = mt - m;
h = ht - h;
d = dt - d;
if (s < 0){
s += 60;
m--;
}
if (m < 0){
m += 60;
h--;
... | 12.891892 | 38 | 0.385744 | dreamtocode |
fedf4a386527949071fb4d1e6c19f1b8841ed5a4 | 1,044 | cpp | C++ | 000/33.cpp | correipj/ProjectEuler | 0173d8ec7f309b4f0c243a94351772b1be55e8bf | [
"Unlicense"
] | null | null | null | 000/33.cpp | correipj/ProjectEuler | 0173d8ec7f309b4f0c243a94351772b1be55e8bf | [
"Unlicense"
] | null | null | null | 000/33.cpp | correipj/ProjectEuler | 0173d8ec7f309b4f0c243a94351772b1be55e8bf | [
"Unlicense"
] | null | null | null | // https://projecteuler.net/problem=33
// Digit cancelling fractions
#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;
int cancel(int a, int b) {
if (a == b)
return 0;
double frac = (double)a/b;
int da1 = (a/10)%10;
int da2 = a%10;
int db1 = (b/... | 18 | 50 | 0.522031 | correipj |
fedfc9cf2ceb4e46a7c1a2d8ec3a0bfca541bb42 | 2,734 | cpp | C++ | uint128_test_app/src/cpp/testing.cpp | cpsusie/cjm-numerics | 9719f4aa7ed0fa157f4705e3f20f069e28a5755f | [
"MIT"
] | 2 | 2021-04-18T07:35:56.000Z | 2021-04-23T07:37:58.000Z | uint128_test_app/src/cpp/testing.cpp | cpsusie/Int128 | 9719f4aa7ed0fa157f4705e3f20f069e28a5755f | [
"MIT"
] | 29 | 2020-12-18T00:50:36.000Z | 2021-03-22T21:35:18.000Z | uint128_test_app/src/cpp/testing.cpp | cpsusie/cjm-numerics | 9719f4aa7ed0fa157f4705e3f20f069e28a5755f | [
"MIT"
] | null | null | null | // Copyright © 2020-2021 CJM Screws, LLC
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis... | 31.068182 | 150 | 0.730797 | cpsusie |
fee09e59ebfbe5bae6fd193ae4d00a4a4fe7b528 | 552 | cpp | C++ | src/prof.cpp | mariokonrad/bitset | 8f95b8ab45a41e5bbe652979ec55427e6317a58a | [
"BSD-4-Clause"
] | null | null | null | src/prof.cpp | mariokonrad/bitset | 8f95b8ab45a41e5bbe652979ec55427e6317a58a | [
"BSD-4-Clause"
] | null | null | null | src/prof.cpp | mariokonrad/bitset | 8f95b8ab45a41e5bbe652979ec55427e6317a58a | [
"BSD-4-Clause"
] | 1 | 2021-10-31T10:13:44.000Z | 2021-10-31T10:13:44.000Z | #include "bitset.hpp"
using namespace mk;
static void create_and_append_uint32_t(uint64_t times)
{
static const uint32_t value = 0xaa55aa55;
for (uint64_t i = 0; i < times; ++i) {
bitset<uint8_t> b;
b.append(value);
}
}
static void set_bits_large_bitset(uint64_t times)
{
const int SIZE = 1024 * 1024;
for ... | 17.25 | 54 | 0.653986 | mariokonrad |
fee792d11a0c4f006c47c6a1e98de50276153be7 | 14,002 | hpp | C++ | include/System/UriSyntaxFlags.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/UriSyntaxFlags.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/UriSyntaxFlags.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "System/Enum.h... | 61.682819 | 94 | 0.769676 | v0idp |
fee95cf99701be023262d325c5c351925e15b1ab | 901 | cpp | C++ | avs/vis_avs/g_chanshift.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 18 | 2020-07-30T11:55:23.000Z | 2022-02-25T02:39:15.000Z | avs/vis_avs/g_chanshift.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 34 | 2021-01-13T02:02:12.000Z | 2022-03-23T12:09:55.000Z | avs/vis_avs/g_chanshift.cpp | semiessessi/vis_avs | e99a3803e9de9032e0e6759963b2c2798f3443ef | [
"BSD-3-Clause"
] | 3 | 2021-03-18T12:53:58.000Z | 2021-10-02T20:24:41.000Z | #include "g__lib.h"
#include "g__defs.h"
#include "c_chanshift.h"
#include "resource.h"
#include <windows.h>
int win32_dlgproc_chanshift(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM)
{
C_THISCLASS* g_ConfigThis = (C_THISCLASS*)g_current_render;
int ids[] = { IDC_RBG, IDC_BRG, IDC_BGR, IDC_GBR, IDC_GRB, IDC_RGB };... | 23.710526 | 82 | 0.689234 | semiessessi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.