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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dbd92830d82fb7c1dbf5cb22f494c1c01ba041f9 | 1,626 | hpp | C++ | include/mtao/geometry/mesh/triangle_fan.hpp | mtao/core | 91f9bc6e852417989ed62675e2bb372e6afc7325 | [
"MIT"
] | null | null | null | include/mtao/geometry/mesh/triangle_fan.hpp | mtao/core | 91f9bc6e852417989ed62675e2bb372e6afc7325 | [
"MIT"
] | 4 | 2020-04-18T16:16:05.000Z | 2020-04-18T16:17:36.000Z | include/mtao/geometry/mesh/triangle_fan.hpp | mtao/core | 91f9bc6e852417989ed62675e2bb372e6afc7325 | [
"MIT"
] | null | null | null | #pragma once
#include "mtao/types.hpp"
#include "mtao/type_utils.h"
#include "mtao/eigen/stl2eigen.hpp"
#include "mtao/iterator/shell.hpp"
#include <list>
namespace mtao::geometry::mesh {
template <typename BeginIt, typename EndIt>
std::vector<std::array<int,3>> triangle_fan_stl(const BeginIt& beginit, const ... | 33.875 | 97 | 0.531365 | mtao |
dbdb9f2fd3ab2ec71471a114984e2591469ef965 | 11,510 | hpp | C++ | src/ganon-classify/include/ganon-classify/Config.hpp | benvenutti/ganon | 0d6f1b73eacb7659a0d541567b9aa60287e05f82 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-04-11T22:09:18.000Z | 2021-04-11T22:09:18.000Z | src/ganon-classify/include/ganon-classify/Config.hpp | benvenutti/ganon | 0d6f1b73eacb7659a0d541567b9aa60287e05f82 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/ganon-classify/include/ganon-classify/Config.hpp | benvenutti/ganon | 0d6f1b73eacb7659a0d541567b9aa60287e05f82 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <algorithm>
#include <cinttypes>
#include <iomanip>
#include <iostream>
#include <map>
#include <ostream>
#include <string>
#include <vector>
namespace GanonClassify
{
struct FilterConfig
{
std::string ibf_file;
std::string map_file;
std::string tax_file;
int16_t max_error;
... | 34.878788 | 113 | 0.482884 | benvenutti |
dbdd5abe0accf7f06ccea27f68a7c55dbbaa260a | 51,996 | cpp | C++ | src/pafpython/PythonWrapper.cpp | fdyjfd/paf | fb6b275532483184b5e02f2d6850e503eb9bfad1 | [
"MIT"
] | 1 | 2021-04-02T10:17:59.000Z | 2021-04-02T10:17:59.000Z | src/pafpython/PythonWrapper.cpp | fdyjfd/paf | fb6b275532483184b5e02f2d6850e503eb9bfad1 | [
"MIT"
] | null | null | null | src/pafpython/PythonWrapper.cpp | fdyjfd/paf | fb6b275532483184b5e02f2d6850e503eb9bfad1 | [
"MIT"
] | null | null | null | #include <new.h>
#include "Python.h"
#include "../pafcore/Variant.h"
#include "../pafcore/InstanceMethod.h"
#include "../pafcore/NameSpace.h"
#include "../pafcore/NameSpace.mh"
#include "../pafcore/Metadata.mh"
#include "../pafcore/Type.mh"
#include "../pafcore/ClassType.h"
#include "../pafcore/EnumType.h"
#include "..... | 29.244094 | 166 | 0.748846 | fdyjfd |
dbddc049640e172e2976532d88e9479093090ff4 | 1,186 | cc | C++ | ash/wm/window_dimmer_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | ash/wm/window_dimmer_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | ash/wm/window_dimmer_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/wm/window_dimmer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/aura/test/aura_test_base.h"
#include "ui/aura/test/test_wind... | 38.258065 | 74 | 0.724283 | zipated |
dbdec26c028ff42e9f5f193c9eea7efe879435dd | 4,500 | cpp | C++ | Signal Flow Simulation/truetime-2.0/examples/advanced_demos/RUNES_demo/node/AODVsndcode.cpp | raulest50/MicroGrid_GITCoD | 885001242c8e581a6998afb4be2ae1c0b923e9c4 | [
"MIT"
] | 1 | 2019-08-31T08:06:48.000Z | 2019-08-31T08:06:48.000Z | Signal Flow Simulation/truetime-2.0/examples/advanced_demos/RUNES_demo/node/AODVsndcode.cpp | raulest50/MicroGrid_GITCoD | 885001242c8e581a6998afb4be2ae1c0b923e9c4 | [
"MIT"
] | null | null | null | Signal Flow Simulation/truetime-2.0/examples/advanced_demos/RUNES_demo/node/AODVsndcode.cpp | raulest50/MicroGrid_GITCoD | 885001242c8e581a6998afb4be2ae1c0b923e9c4 | [
"MIT"
] | 1 | 2020-01-07T10:46:23.000Z | 2020-01-07T10:46:23.000Z | double AODVsndcode(int seg, void* data) {
AODVsnd_Data* d = (AODVsnd_Data*) data;
int myID = d->nodeID;
MailboxMsg *mailboxmsg;
GenericNwkMsg *nwkmsg;
DataMsg *datamsg;
RREQMsg *rreqmsg;
int dest;
double now, etime;
RouteEntry *dest_entry;
DataNode *dn;
switch (seg) {... | 14.469453 | 136 | 0.582222 | raulest50 |
dbdf58de09ffeed6854c5f822b4fa4d7caa9d730 | 1,563 | cpp | C++ | sdk/object/entity.cpp | playday3008/herby | 3ab4594588c4776182f18edf89d461adef583614 | [
"MIT"
] | null | null | null | sdk/object/entity.cpp | playday3008/herby | 3ab4594588c4776182f18edf89d461adef583614 | [
"MIT"
] | null | null | null | sdk/object/entity.cpp | playday3008/herby | 3ab4594588c4776182f18edf89d461adef583614 | [
"MIT"
] | null | null | null | #include "entity.hpp"
#include "csgo/engine.hpp"
C_BaseEntity* C_BaseEntity::GetBaseEntity(int index)
{
auto client_entity = csgo::m_client_entity_list->GetClientEntity(index);
return (client_entity ? client_entity->GetBaseEntity() : nullptr);
}
int C_BaseEntity::GetMoveType()
{
auto& netvar = csgo::engine::NetPro... | 28.944444 | 113 | 0.751759 | playday3008 |
dbdf5e502674a08010f428b1000f028875412737 | 14,606 | cpp | C++ | InitFile/Tests/ifTestSupport.cpp | opendragon/IF | 11e9132b896a67115b8fc9fc9cddcd592b838bfa | [
"BSD-3-Clause"
] | null | null | null | InitFile/Tests/ifTestSupport.cpp | opendragon/IF | 11e9132b896a67115b8fc9fc9cddcd592b838bfa | [
"BSD-3-Clause"
] | null | null | null | InitFile/Tests/ifTestSupport.cpp | opendragon/IF | 11e9132b896a67115b8fc9fc9cddcd592b838bfa | [
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------------------------------
//
// File: Tests/ifTestSupport.cpp
//
// Project: IF
//
// Contains: The function and class definitions for InitFile test programs.
//
// Written by: Norman Jaffe
//
// Copyright: (c) 2020 by OpenDrago... | 27.768061 | 100 | 0.598863 | opendragon |
dbe01a7a918e25d8af6f4f4186ca3f27826f9e95 | 1,617 | cc | C++ | net/socket.cc | xingdl2007/polly | c23906d7f58d2eb263cb102b0343dccd5a245881 | [
"BSD-3-Clause"
] | 2 | 2018-04-12T21:13:18.000Z | 2018-06-10T14:18:04.000Z | net/socket.cc | xingdl2007/polly | c23906d7f58d2eb263cb102b0343dccd5a245881 | [
"BSD-3-Clause"
] | null | null | null | net/socket.cc | xingdl2007/polly | c23906d7f58d2eb263cb102b0343dccd5a245881 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2018 The Polly Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <stdlib.h>
#include <sys/socket.h>
#include "socket.h"
#include "log/logger.h"
namespace polly ... | 27.87931 | 86 | 0.687075 | xingdl2007 |
dbe839aaaa905f258032ddd7d5ff5568245b3081 | 1,465 | hpp | C++ | include/xvega/grammar/encodings/encoding-channels/hyperlink-channels/href.hpp | domoritz/xvega | 3754dee3e7e38e79282ba267cd86c3885807a4cd | [
"BSD-3-Clause"
] | 34 | 2020-08-14T14:32:51.000Z | 2022-02-16T23:20:02.000Z | include/xvega/grammar/encodings/encoding-channels/hyperlink-channels/href.hpp | domoritz/xvega | 3754dee3e7e38e79282ba267cd86c3885807a4cd | [
"BSD-3-Clause"
] | 19 | 2020-08-20T20:04:39.000Z | 2022-02-28T14:34:37.000Z | include/xvega/grammar/encodings/encoding-channels/hyperlink-channels/href.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_ENCODING_HREF_HPP
#define XVEGA_ENCODING_HREF_HPP
#include <xproperty/xobserved.hpp>
#include <xtl/xopti... | 32.555556 | 75 | 0.698976 | domoritz |
dbf2034212f87b8a744ba3a9a3b39d9adc0b80ed | 221 | cc | C++ | codeforces/246/a.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | codeforces/246/a.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | codeforces/246/a.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
int c = 0;
while (n--) {
int v;
cin >> v;
if (v + k <= 5) c++;
}
cout << (c / 3) << endl;
}
| 13.8125 | 28 | 0.38009 | metaflow |
dbf6e33ac75bfa73b68fa656dddc3b1e5f035c7a | 808 | hpp | C++ | Siv3D/include/Siv3D/EmojiDictionary.hpp | ai2playgame/OpenSiv3D | e8814b4bb2baf23fcfc300325f700b842cce79b1 | [
"MIT"
] | null | null | null | Siv3D/include/Siv3D/EmojiDictionary.hpp | ai2playgame/OpenSiv3D | e8814b4bb2baf23fcfc300325f700b842cce79b1 | [
"MIT"
] | null | null | null | Siv3D/include/Siv3D/EmojiDictionary.hpp | ai2playgame/OpenSiv3D | e8814b4bb2baf23fcfc300325f700b842cce79b1 | [
"MIT"
] | null | null | null | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2019 Ryo Suzuki
// Copyright (c) 2016-2019 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <memory>
# include "Fw... | 17.955556 | 93 | 0.612624 | ai2playgame |
dbf8b652b081c6876c2586a5371fc019198306ec | 962 | cpp | C++ | CodeForces/964B/13538902_AC_15ms_3304kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | CodeForces/964B/13538902_AC_15ms_3304kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | CodeForces/964B/13538902_AC_15ms_3304kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | /**
* @author Moe_Sakiya sakiya@tun.moe
* @date 2018-04-17 22:33:09
*
*/
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace std;
... | 17.178571 | 45 | 0.529106 | BakaErii |
dbf90495427ac7591c1027b14ba3c08bdde28591 | 1,513 | cpp | C++ | ch04/e4-08.cpp | nanonashy/PPPUCpp2ndJP | b829867e9e21bf59d9c5ea6c2fbe96bb03597301 | [
"MIT"
] | 3 | 2021-12-17T17:25:18.000Z | 2022-03-02T15:52:23.000Z | ch04/e4-08.cpp | nashinium/PPPUCpp2ndJP | b829867e9e21bf59d9c5ea6c2fbe96bb03597301 | [
"MIT"
] | 1 | 2020-04-22T07:16:34.000Z | 2020-04-22T10:04:04.000Z | ch04/e4-08.cpp | nashinium/PPPUCpp2ndJP | b829867e9e21bf59d9c5ea6c2fbe96bb03597301 | [
"MIT"
] | 1 | 2020-04-22T08:13:51.000Z | 2020-04-22T08:13:51.000Z | // 問題文:
// 「チェス」を考案したものに褒美を与えようと考えた皇帝が、望みは何かと尋ねたという昔話があ
// る。そのものは、チェス盤の1つ目の升目に1グレインのコメ、2つ目の升目に2グレインの米、
// 3つ目の升目には4グレインの米といったように、64の升目ごとに2倍のの量の米を所望した。謙
// 虚な申し出のように思えたが、帝国にはそれだけの米がなかった。少なくとも1,000グレイン、
// 少なくとも100万グレイン、そして少なくとも10億グレインの米を褒美として与えるのに必要
// な升目の数を計算するプログラムを作成する。当然ながら、ループが必要である。また、現在の
// 升目を追跡す... | 29.096154 | 72 | 0.551223 | nanonashy |
dbf9e591593ea426d4d2006806c04acacfe7ecd2 | 2,337 | cpp | C++ | Ray/Mono/RScript.cpp | CAt0mIcS/Ray | 898ebbfe1207513045718a4fb1df339621568de4 | [
"MIT"
] | null | null | null | Ray/Mono/RScript.cpp | CAt0mIcS/Ray | 898ebbfe1207513045718a4fb1df339621568de4 | [
"MIT"
] | null | null | null | Ray/Mono/RScript.cpp | CAt0mIcS/Ray | 898ebbfe1207513045718a4fb1df339621568de4 | [
"MIT"
] | null | null | null | #include "RScript.h"
#include <mono/jit/jit.h>
#include <mono/metadata/object.h>
#include <mono/metadata/environment.h>
#include <mono/metadata/assembly.h>
#include <mono/metadata/debug-helpers.h>
#include <mono/metadata/mono-config.h>
namespace At0::Ray::Mono
{
bool Script::s_MonoInitialized = false;
Script::Sc... | 26.556818 | 88 | 0.708601 | CAt0mIcS |
dbfa42d8d9f64bb063ac1f7144888d06207464df | 730 | cpp | C++ | codeforces/1433/B.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/1433/B.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/1433/B.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=200005;
int arr[55];
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;cin>>t;
while(t--){
int n;
cin>>n;
int st=0,en=0;
for(int i=0;i<n;i++){cin>>arr[i];}
for (int i=0;i<n;i... | 16.590909 | 39 | 0.367123 | Mohammad-Elsharkawy |
dbfd67a71e765c01d8c37f4754a1bcd787a6f1e3 | 3,956 | cpp | C++ | lib/commonAPI/coreapi/ext/platform/wm/src/NetworkDetect.cpp | hanazuki/rhodes | eff0e410361dba791853a235d58471ba9e25e2fc | [
"MIT"
] | 1 | 2015-11-06T00:31:36.000Z | 2015-11-06T00:31:36.000Z | lib/commonAPI/coreapi/ext/platform/wm/src/NetworkDetect.cpp | rajcybage/rhodes | 40e75776134b79ce269adc9e38ef99dafac42c0d | [
"MIT"
] | null | null | null | lib/commonAPI/coreapi/ext/platform/wm/src/NetworkDetect.cpp | rajcybage/rhodes | 40e75776134b79ce269adc9e38ef99dafac42c0d | [
"MIT"
] | null | null | null | #include "NetworkDetect.h"
INetworkDetection* NetworkDetectionFactory::createNetworkDetection() {
return new CNetworkDetection();
}
void CNetworkDetection::Cleanup()
{
stop(1000);
WSACleanup();
}
void CNetworkDetection::Startup()
{
WSADATA wsaData;
WSAStartup(MAKEWORD(2, 2), &wsaData);
}
/**
* \author D... | 27.859155 | 118 | 0.676188 | hanazuki |
dbfe04b57322672e3526d5f6ee42855fd256065c | 4,662 | cpp | C++ | Tests/L0MgrExecuteTest.cpp | intel-go/omniscidb | 86068a229beddf7b117febcacdbd6b60a0279282 | [
"Apache-2.0"
] | 2 | 2020-03-04T12:01:10.000Z | 2020-07-24T15:12:55.000Z | Tests/L0MgrExecuteTest.cpp | intel-go/omniscidb | 86068a229beddf7b117febcacdbd6b60a0279282 | [
"Apache-2.0"
] | 18 | 2019-11-20T11:11:19.000Z | 2020-08-27T13:21:12.000Z | Tests/L0MgrExecuteTest.cpp | intel-go/omniscidb | 86068a229beddf7b117febcacdbd6b60a0279282 | [
"Apache-2.0"
] | 1 | 2020-04-04T06:25:32.000Z | 2020-04-04T06:25:32.000Z | #include <gtest/gtest.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/Module.h>
#include <llvm/Support/raw_ostream.h>
#include <LLVMSPIRVLib/LLVMSPIRVLib.h>
#include <level_zero/ze_api.h>
#include "L0Mgr/L0Mgr.h"
#include "TestHelpers.h"
template <typename T, size_t N>
struct aligna... | 33.3 | 150 | 0.683398 | intel-go |
dbfe04cf1c58c348023fb999e085cafe93b144da | 1,805 | cpp | C++ | handout/Game/Source/SceneIntro.cpp | MHF13/VideoPlayer | 861790d7482bb32c36f8be77e4a57482cd3d207c | [
"MIT"
] | null | null | null | handout/Game/Source/SceneIntro.cpp | MHF13/VideoPlayer | 861790d7482bb32c36f8be77e4a57482cd3d207c | [
"MIT"
] | null | null | null | handout/Game/Source/SceneIntro.cpp | MHF13/VideoPlayer | 861790d7482bb32c36f8be77e4a57482cd3d207c | [
"MIT"
] | null | null | null | #include "App.h"
#include "Input.h"
#include "Textures.h"
#include "Audio.h"
#include "Render.h"
#include "Fonts.h"
#include "SceneIntro.h"
#include "SceneManager.h"
#include <SDL_mixer\include\SDL_mixer.h>
#include "Defs.h"
#include "Log.h"
SceneIntro::SceneIntro()
{
active = true;
name.Create("sceneIntro");
}
... | 13.884615 | 79 | 0.645429 | MHF13 |
e000e988ce3722403b6fc67add980d8361d4bb25 | 1,393 | hpp | C++ | engine/include/ph/util/GltfWriter.hpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | engine/include/ph/util/GltfWriter.hpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | engine/include/ph/util/GltfWriter.hpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | // Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se)
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for ... | 36.657895 | 96 | 0.758794 | PetorSFZ |
e0080f612766902e08e8491f1d6c6475d041bd54 | 191 | cpp | C++ | Codeforces/Write.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | Codeforces/Write.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | Codeforces/Write.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <stdio.h>
int main() {
freopen("i.in", "w", stdout);
printf("%d\n", 200000);
for(int i = 1; i <= 20000; i++) {
printf("%d ", i);
}
return 0;
}
| 17.363636 | 38 | 0.424084 | aajjbb |
e0088941fbfffd55079b88cf6b541ff017203d01 | 3,635 | cc | C++ | src/network/client_handler.cc | zzunny97/Graduate-Velox | d820e7c8cee52f22d7cd9027623bd82ca59733ca | [
"Apache-2.0"
] | 17 | 2016-11-27T13:13:40.000Z | 2021-09-07T06:42:25.000Z | src/network/client_handler.cc | zzunny97/Graduate-Velox | d820e7c8cee52f22d7cd9027623bd82ca59733ca | [
"Apache-2.0"
] | 22 | 2017-01-18T06:10:18.000Z | 2019-05-15T03:49:19.000Z | src/network/client_handler.cc | zzunny97/Graduate-Velox | d820e7c8cee52f22d7cd9027623bd82ca59733ca | [
"Apache-2.0"
] | 5 | 2017-07-24T15:19:32.000Z | 2022-02-19T09:11:01.000Z | #include "client_handler.hh"
#include "../messages/factory.hh"
#include "../common/context_singleton.hh"
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/asio/error.hpp>
#include <boost/asio/connect.hpp>
#include <boost/asio/spawn.hpp>
#include <exception>
#include <boost/scoped_ptr.hpp>
using names... | 26.727941 | 93 | 0.625585 | zzunny97 |
e008b58e2dff76f4f02393c22eeb36519dc3929e | 1,952 | cpp | C++ | opencl/source/kernel/image_transformer.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | 1 | 2019-03-01T13:54:45.000Z | 2019-03-01T13:54:45.000Z | opencl/source/kernel/image_transformer.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | 5 | 2019-03-26T17:26:07.000Z | 2021-03-30T12:17:10.000Z | opencl/source/kernel/image_transformer.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | 4 | 2018-05-09T10:04:27.000Z | 2018-07-12T13:33:31.000Z | /*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/kernel/image_transformer.h"
#include "shared/source/helpers/ptr_math.h"
#include "opencl/source/mem_obj/image.h"
#include "opencl/source/program/kernel_info.h"
namespace NEO {
void ImageTransformer::reg... | 39.04 | 155 | 0.721311 | lukaszgotszaldintel |
e009d19d55138021b147a48ad8b257c77d85b3b4 | 602 | hpp | C++ | smart_tales_ii/game/ui/scorebubble.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | null | null | null | smart_tales_ii/game/ui/scorebubble.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | 11 | 2018-02-08T14:50:16.000Z | 2022-01-21T19:54:24.000Z | smart_tales_ii/game/ui/scorebubble.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | null | null | null | /*
scorebubble.hpp
This class is nothing more than a number floating upwards.
It has a lifetime and velocity defined in its cpp file.
*/
#pragma once
#include <SFML/Graphics.hpp>
#include <string>
class ScoreBubble : public sf::Drawable
{
private:
sf::Text text;
float timeAlive = 0.f; // in seconds
protected:... | 20.758621 | 78 | 0.739203 | TijmenUU |
e00aa79854d72fc0c9d2e918db9f38ff06131034 | 1,209 | cpp | C++ | recordMagData.cpp | chuanstudyup/MPU9250 | aa41c58e8100b56bdcb1261d9617552378417257 | [
"Apache-2.0"
] | 5 | 2021-09-15T09:10:08.000Z | 2022-02-09T11:44:14.000Z | recordMagData.cpp | chuanstudyup/MPU9250 | aa41c58e8100b56bdcb1261d9617552378417257 | [
"Apache-2.0"
] | null | null | null | recordMagData.cpp | chuanstudyup/MPU9250 | aa41c58e8100b56bdcb1261d9617552378417257 | [
"Apache-2.0"
] | 4 | 2021-09-15T09:10:44.000Z | 2022-02-09T11:44:17.000Z | #include "MPU9250.h"
#include <fstream>
using namespace std;
int main()
{
MPU9250 mpu;
bcm2835_init();
mpu.verbose(true);
if(!mpu.setup(0x68))
{
while(1){
printf("MPU connection failed.\n");
delay(5000);
}
}else
printf("MPU setup successfully!\n");
mpu.initRecordCalData(); //记录用来校准的原始数据时,先把校准参数都设置为... | 24.673469 | 91 | 0.652605 | chuanstudyup |
e00b8a19609f85c72c7ff49f7a115ce31e908494 | 8,416 | cpp | C++ | test/stdgpu/iterator.cpp | ykkawana/stdgpu | 43442090de76d09626bee542edfe11a5d71390de | [
"Apache-2.0"
] | 1 | 2022-02-10T09:16:27.000Z | 2022-02-10T09:16:27.000Z | test/stdgpu/iterator.cpp | ykkawana/stdgpu | 43442090de76d09626bee542edfe11a5d71390de | [
"Apache-2.0"
] | null | null | null | test/stdgpu/iterator.cpp | ykkawana/stdgpu | 43442090de76d09626bee542edfe11a5d71390de | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Patrick Stotko
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 22.994536 | 107 | 0.676925 | ykkawana |
e00c96ad564ea7fc974d666898080db71d109d7b | 2,890 | hpp | C++ | include/TE/DrawManager.hpp | bitDaft/grid-game-system | e11e45b6ed3ce12e04ebf76c93c3d8cc5335679e | [
"MIT"
] | 1 | 2020-06-24T16:16:49.000Z | 2020-06-24T16:16:49.000Z | include/DrawManager.hpp | bitDaft/Project-TE | f0e0ec184d42b46799d48d69eb4eb9d369cbfcc3 | [
"MIT"
] | null | null | null | include/DrawManager.hpp | bitDaft/Project-TE | f0e0ec184d42b46799d48d69eb4eb9d369cbfcc3 | [
"MIT"
] | null | null | null | /*
* File: DrawManager.hpp
* Project: Project-TE
* Created Date: Sunday December 1st 2019
* Author: bitDaft
* -----
* Last Modified: Saturday December 28th 2019 11:24:55 pm
* Modified By: bitDaft at <ajaxhis@tutanota.com>
* -----
* Copyright (c) 2019 bitDaft
*/
#ifndef DRAWMANAGER_HPP
#define DRAWMANAGER_HPP... | 28.058252 | 104 | 0.703806 | bitDaft |
e00f12eaa2adce906e4ec2538793ef56fed030f6 | 303 | cpp | C++ | Assignments/Data Structure/Lab6WordHub/NodeL.cpp | oliviapy960825/oliviapy960825.github.io | 7a07fd0887e5854b0b92e4cc8e20ff1fd2219fde | [
"CC-BY-3.0"
] | null | null | null | Assignments/Data Structure/Lab6WordHub/NodeL.cpp | oliviapy960825/oliviapy960825.github.io | 7a07fd0887e5854b0b92e4cc8e20ff1fd2219fde | [
"CC-BY-3.0"
] | null | null | null | Assignments/Data Structure/Lab6WordHub/NodeL.cpp | oliviapy960825/oliviapy960825.github.io | 7a07fd0887e5854b0b92e4cc8e20ff1fd2219fde | [
"CC-BY-3.0"
] | null | null | null | /*
* NodeL.cpp
*
* Created on: Oct 19, 2017
* Author: Debra
*/
#include "NodeL.hpp"
#include <string>
#include <iostream>
using namespace std;
NodeL::NodeL(string s) {
word = s;
next = NULL;
wscore = 0;
}
NodeL::~NodeL() {
cout << "Deleting " << word << endl;
}
| 13.173913 | 38 | 0.541254 | oliviapy960825 |
e01012d313a06a489d450610f0989ed5d010ee35 | 1,788 | cpp | C++ | Engine/Scene/Common/Mesh.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 47 | 2018-04-27T02:16:26.000Z | 2022-02-28T05:21:24.000Z | Engine/Scene/Common/Mesh.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 2 | 2018-11-13T18:46:41.000Z | 2022-03-12T00:04:44.000Z | Engine/Scene/Common/Mesh.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 6 | 2019-08-10T21:56:23.000Z | 2020-10-21T11:18:29.000Z | /****************************************************************************
// Usagi Engine, Copyright © Vitei, Inc. 2013
****************************************************************************/
#include "Engine/Common/Common.h"
#include "Engine/Graphics/Device/GFXDevice.h"
#include "Engine/Scene/RenderGroup.h"
... | 23.84 | 134 | 0.675056 | vitei |
e01452e80d56f1ddb33ff3686662b65255315ca6 | 2,292 | cpp | C++ | mmcv/ops/csrc/parrots/masked_conv2d_parrots.cpp | Alsasolo/mmcv | 6dfc9312fa872c7fd63a5e6971e9ecca8e3d4ef1 | [
"Apache-2.0"
] | 3 | 2022-03-09T13:15:15.000Z | 2022-03-21T06:59:10.000Z | mmcv/ops/csrc/parrots/masked_conv2d_parrots.cpp | Alsasolo/mmcv | 6dfc9312fa872c7fd63a5e6971e9ecca8e3d4ef1 | [
"Apache-2.0"
] | 10 | 2020-10-15T19:31:38.000Z | 2021-03-21T16:16:28.000Z | mmcv/ops/csrc/parrots/masked_conv2d_parrots.cpp | Alsasolo/mmcv | 6dfc9312fa872c7fd63a5e6971e9ecca8e3d4ef1 | [
"Apache-2.0"
] | 1 | 2019-12-14T12:12:48.000Z | 2019-12-14T12:12:48.000Z | #include <parrots/compute/aten.hpp>
#include <parrots/extension.hpp>
#include <parrots/foundation/ssattrs.hpp>
#include "masked_conv2d_pytorch.h"
using namespace parrots;
void masked_im2col_forward_cuda_parrots(CudaContext& ctx, const SSElement& attr,
const OperatorBase::in_li... | 32.742857 | 80 | 0.606021 | Alsasolo |
e01558fdf7f7980279a601b4408f553664c36967 | 9,513 | cpp | C++ | engine/src/communication/messages/GPUComponentMessage.cpp | dsusanibarblazing/blazingsql | 8b27fc36cb982b8e2df1acec66a40ff00e79b252 | [
"Apache-2.0"
] | null | null | null | engine/src/communication/messages/GPUComponentMessage.cpp | dsusanibarblazing/blazingsql | 8b27fc36cb982b8e2df1acec66a40ff00e79b252 | [
"Apache-2.0"
] | null | null | null | engine/src/communication/messages/GPUComponentMessage.cpp | dsusanibarblazing/blazingsql | 8b27fc36cb982b8e2df1acec66a40ff00e79b252 | [
"Apache-2.0"
] | null | null | null | #include "GPUComponentMessage.h"
using namespace fmt::literals;
namespace ral {
namespace communication {
namespace messages {
gpu_raw_buffer_container serialize_gpu_message_to_gpu_containers(ral::frame::BlazingTableView table_view){
std::vector<std::size_t> buffer_sizes;
std::vector<const char *> raw_buffers;
st... | 46.632353 | 187 | 0.738253 | dsusanibarblazing |
e015da95851bf7c2cfc045b0baefd8d0ecb543a9 | 2,251 | cpp | C++ | source/basic/ref_ptr.cpp | JianboYan/cppthings-learning | 71c15213474786795fb09800efd3cf19ee562681 | [
"MIT"
] | null | null | null | source/basic/ref_ptr.cpp | JianboYan/cppthings-learning | 71c15213474786795fb09800efd3cf19ee562681 | [
"MIT"
] | null | null | null | source/basic/ref_ptr.cpp | JianboYan/cppthings-learning | 71c15213474786795fb09800efd3cf19ee562681 | [
"MIT"
] | null | null | null | //
// ref_ptr.cpp
// CppThings
//
// Created by Ryan on 2020/10/2.
//
#include <iostream>
#include <vector>
namespace RefPtr{
using namespace std;
// 1. 指针与引用的区别
// 1.1. 定义初始化
// int &ri; // error: Declaration of reference variable 'ri' requires an initializer
int i;
int &ri = i; // 定义必须初始化
int *pi; // 定义可以不初始... | 20.651376 | 187 | 0.59307 | JianboYan |
e015dc74a7cc9c7e0145aced78c8ebe431d54bc0 | 7,097 | cc | C++ | src/column/column.cc | marcinz/legate.pandas | 94c21c436f59c06cfba454c6569e9f5d7109d839 | [
"Apache-2.0"
] | 67 | 2021-04-12T18:06:55.000Z | 2022-03-28T06:51:05.000Z | src/column/column.cc | marcinz/legate.pandas | 94c21c436f59c06cfba454c6569e9f5d7109d839 | [
"Apache-2.0"
] | 2 | 2021-06-22T00:30:36.000Z | 2021-07-01T22:12:43.000Z | src/column/column.cc | marcinz/legate.pandas | 94c21c436f59c06cfba454c6569e9f5d7109d839 | [
"Apache-2.0"
] | 6 | 2021-04-14T21:28:00.000Z | 2022-03-22T09:45:25.000Z | /* Copyright 2021 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 28.388 | 99 | 0.681837 | marcinz |
e0179465b9cb5aa3cf0b479421f9f0457b5cc1ac | 14,008 | cpp | C++ | Source/FAP.cpp | biug/XBot | 20f51094ee18aeaa58d769a894c68b4f05f900d4 | [
"MIT"
] | 1 | 2017-09-21T19:08:42.000Z | 2017-09-21T19:08:42.000Z | Source/FAP.cpp | biug/XBot | 20f51094ee18aeaa58d769a894c68b4f05f900d4 | [
"MIT"
] | null | null | null | Source/FAP.cpp | biug/XBot | 20f51094ee18aeaa58d769a894c68b4f05f900d4 | [
"MIT"
] | null | null | null | #include "FAP.h"
#include "BWAPI.h"
XBot::FastAPproximation fap;
namespace XBot {
FastAPproximation::FastAPproximation() {
}
void FastAPproximation::addUnitPlayer1(FAPUnit fu) {
player1.push_back(fu);
}
void FastAPproximation::addIfCombatUnitPlayer1(FAPUnit fu) {
if (fu.groundDamage || fu.airDamage || fu... | 29.366876 | 198 | 0.666119 | biug |
e01a758c3acfc94a99a93f10bbd5db16f70d2f6e | 522 | cpp | C++ | Homework/3.35.cpp | TuringGu/C-code | 76085120a930a900e7d686065261032288858fb6 | [
"MIT"
] | null | null | null | Homework/3.35.cpp | TuringGu/C-code | 76085120a930a900e7d686065261032288858fb6 | [
"MIT"
] | null | null | null | Homework/3.35.cpp | TuringGu/C-code | 76085120a930a900e7d686065261032288858fb6 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
using namespace std;
const int MAXSIZE=100;
class Stock{
public:
Stock()
{
strcpy_s(stockcode, " ");
}
Stock(char na[MAXSIZE], int q = 1000, double p = 8.98)
{
strcpy_s(stockcode, na);
quan = q;
price = p;
}
void print()
{
cout << stockcode<<" " << quan <<" "<< pr... | 13.736842 | 57 | 0.599617 | TuringGu |
e01e77202b5a9ef61ef96c1246e34c6f9ed6f18f | 16,962 | hpp | C++ | flat_map.hpp | pingwindyktator/cpp_sandbox | 815a80f826aa0ea718389ebda0f8e6513a051de1 | [
"WTFPL"
] | 1 | 2018-02-15T21:06:17.000Z | 2018-02-15T21:06:17.000Z | flat_map.hpp | pingwindyktator/cpp_sandbox | 815a80f826aa0ea718389ebda0f8e6513a051de1 | [
"WTFPL"
] | null | null | null | flat_map.hpp | pingwindyktator/cpp_sandbox | 815a80f826aa0ea718389ebda0f8e6513a051de1 | [
"WTFPL"
] | null | null | null | #pragma once
#include <algorithm>
#include <cstddef>
#include <functional>
#include <stdexcept>
#include <type_traits>
#include <utility>
#include <vector>
namespace sandbox {
template<class Key, class T, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>>
class flat_map
{
public... | 24.547033 | 154 | 0.545219 | pingwindyktator |
e01ed24114b75a583eb3245f60b6b9beee369553 | 42,652 | cc | C++ | routerNodeBase.cc | aakritanshuman/mtp | d24c09e99e01904ffc0d779c5e031bb7c03cff8e | [
"MIT"
] | 11 | 2020-03-03T11:58:23.000Z | 2021-04-20T02:01:30.000Z | routerNodeBase.cc | aakritanshuman/mtp | d24c09e99e01904ffc0d779c5e031bb7c03cff8e | [
"MIT"
] | null | null | null | routerNodeBase.cc | aakritanshuman/mtp | d24c09e99e01904ffc0d779c5e031bb7c03cff8e | [
"MIT"
] | 9 | 2020-03-17T02:17:07.000Z | 2022-02-17T16:12:31.000Z | #include "routerNodeBase.h"
#include "hostInitialize.h"
#include <queue>
Define_Module(routerNodeBase);
int routerNodeBase::myIndex(){
return getIndex() + _numHostNodes;
}
/* helper function to go through all transactions in a queue and print their details out
* meant for debugging
*/
void routerNodeBase::chec... | 41.011538 | 112 | 0.647262 | aakritanshuman |
e02014b05501991553ac371e36e42e20de9e0a15 | 222 | cpp | C++ | Leetcode/2001-3000/2239. Find Closest Number to Zero/2239.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/2001-3000/2239. Find Closest Number to Zero/2239.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/2001-3000/2239. Find Closest Number to Zero/2239.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class Solution {
public:
int findClosestNumber(vector<int>& nums) {
return *min_element(begin(nums), end(nums), [](const int a, const int b) {
return abs(a) == abs(b) ? a > b : abs(a) < abs(b);
});
}
};
| 24.666667 | 78 | 0.572072 | Next-Gen-UI |
e020dbb997287980cb17e804366dd87eb2338188 | 108 | cpp | C++ | ro-string-db/string_pool/run_local_tests.cpp | vladcc/ro-string-db | 6f27a71e583f1816277c4027b51fe45c29e017fd | [
"MIT"
] | 1 | 2020-09-20T22:12:53.000Z | 2020-09-20T22:12:53.000Z | ro-string-db/string_pool/run_local_tests.cpp | vladcc/ro-string-db | 6f27a71e583f1816277c4027b51fe45c29e017fd | [
"MIT"
] | null | null | null | ro-string-db/string_pool/run_local_tests.cpp | vladcc/ro-string-db | 6f27a71e583f1816277c4027b51fe45c29e017fd | [
"MIT"
] | null | null | null | #include "test_string_pool.hpp"
int main()
{
run_test_string_pool();
return test_string_pool_failed();
}
| 13.5 | 34 | 0.759259 | vladcc |
e0249a262cd61106e21005cfabe5f19fb889e8a7 | 1,456 | cpp | C++ | 3DLfC4D shaders/source/DL_Principled_Object.cpp | FilipMalmberg/3Delight-for-Cinema-4D | 3394f8cd9e1121b8c35aa4e2b2443450ef82cbff | [
"MIT"
] | null | null | null | 3DLfC4D shaders/source/DL_Principled_Object.cpp | FilipMalmberg/3Delight-for-Cinema-4D | 3394f8cd9e1121b8c35aa4e2b2443450ef82cbff | [
"MIT"
] | null | null | null | 3DLfC4D shaders/source/DL_Principled_Object.cpp | FilipMalmberg/3Delight-for-Cinema-4D | 3394f8cd9e1121b8c35aa4e2b2443450ef82cbff | [
"MIT"
] | null | null | null | #include "c4d.h"
#include "IDs.h"
/*
We want our shaders to be directly on the create menu of materials
instead of being on create->shader->YourShaderDir->yourShader
to do so we use C4DPL_BUILDMENU to dynamically enhance the menu
In C4D you can only call objects or commands to C4DPL_BUILDMENU.
But cinema4d regist... | 33.860465 | 143 | 0.791896 | FilipMalmberg |
e024cf04b6e9269577717c77c6dc6388843a8cc2 | 1,904 | hpp | C++ | library/include/darcel/data_types/callable_data_type.hpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | null | null | null | library/include/darcel/data_types/callable_data_type.hpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | null | null | null | library/include/darcel/data_types/callable_data_type.hpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | 1 | 2020-04-17T13:25:25.000Z | 2020-04-17T13:25:25.000Z | #ifndef DARCEL_CALLABLE_DATA_TYPE_HPP
#define DARCEL_CALLABLE_DATA_TYPE_HPP
#include "darcel/data_types/data_type.hpp"
#include "darcel/data_types/data_type_visitor.hpp"
#include "darcel/data_types/data_types.hpp"
#include "darcel/semantics/function.hpp"
namespace darcel {
//! A data type used to represent all of a... | 27.594203 | 78 | 0.707458 | spiretrading |
e02b48f54b5e5ee32c43890c1ec0aa11543fe7a8 | 7,990 | cpp | C++ | os/internal/threads.cpp | JehTeh/jel | 2c43cf23ea7b89e7ec0f7c2e9549be74ab0bbc4b | [
"MIT"
] | 14 | 2018-10-09T00:08:26.000Z | 2021-09-24T19:49:42.000Z | os/internal/threads.cpp | JehTeh/jel | 2c43cf23ea7b89e7ec0f7c2e9549be74ab0bbc4b | [
"MIT"
] | null | null | null | os/internal/threads.cpp | JehTeh/jel | 2c43cf23ea7b89e7ec0f7c2e9549be74ab0bbc4b | [
"MIT"
] | null | null | null | /** @file os/internal/threads.cpp
* @brief Implementation of the threading wrappers for jel.
*
* @detail
* The Thread wrappers used by the jel perform two functions: Abstracting the C API of the RTOS
* and providing some additional setup and teardown capability, such as exception capture. This
* is don... | 26.993243 | 100 | 0.673967 | JehTeh |
e02b80492b11d593f0c813c15a06408f4db5b6ec | 3,948 | cpp | C++ | XYModem/examples/example_ymodem.cpp | Riuzakiii/XYModem | 97d5dba9285aaefa2668865e4088a579cccc53a7 | [
"MIT"
] | null | null | null | XYModem/examples/example_ymodem.cpp | Riuzakiii/XYModem | 97d5dba9285aaefa2668865e4088a579cccc53a7 | [
"MIT"
] | null | null | null | XYModem/examples/example_ymodem.cpp | Riuzakiii/XYModem | 97d5dba9285aaefa2668865e4088a579cccc53a7 | [
"MIT"
] | null | null | null | /*
* Usage : ./ymodem.exe -f "filepath" -port COM1
* -h : get help
* -port : the serial port of your device. If you don't add a port after this, it will display the available ports
* -f "filepath1": send file (filepath should be absolute, don't
* know what happens if the path is relative) -hex : activate the hex... | 36.220183 | 114 | 0.531408 | Riuzakiii |
e02d2784f099894e23c86d2570450059dd5d44ee | 3,978 | cpp | C++ | src/line.cpp | ansko/geom3d | a46d53d28c61491cdaeea38314da12ea00b2c3db | [
"Apache-2.0"
] | null | null | null | src/line.cpp | ansko/geom3d | a46d53d28c61491cdaeea38314da12ea00b2c3db | [
"Apache-2.0"
] | null | null | null | src/line.cpp | ansko/geom3d | a46d53d28c61491cdaeea38314da12ea00b2c3db | [
"Apache-2.0"
] | null | null | null | #include "point.hpp"
#include "line.hpp"
#include "line_segment.hpp"
#include "plane.hpp"
#include "polygon.hpp"
namespace geom3d
{
Point
Line::pt1() const
{
return pt1_;
}
Point
Line::pt2() const
{
return pt2_;
}
double
Line::distance_to(const Point &pt) const
{
double x1 = pt1_.x(), x2 = pt2_.x(),... | 29.25 | 82 | 0.498994 | ansko |
e02dc9f6697a0d173695232b98998a6caee18cb2 | 2,127 | cpp | C++ | fasterrcnnmethod/test/src/face_det.cpp | HorizonRobotics/x2_applications | 4be5724731c8bec56b94a0a1f59c9aab7c457359 | [
"Apache-2.0"
] | 5 | 2020-01-17T10:05:55.000Z | 2020-08-24T02:36:55.000Z | fasterrcnnmethod/test/src/face_det.cpp | HorizonRobotics/x2_applications | 4be5724731c8bec56b94a0a1f59c9aab7c457359 | [
"Apache-2.0"
] | null | null | null | fasterrcnnmethod/test/src/face_det.cpp | HorizonRobotics/x2_applications | 4be5724731c8bec56b94a0a1f59c9aab7c457359 | [
"Apache-2.0"
] | 3 | 2020-02-09T10:51:38.000Z | 2021-11-05T09:50:15.000Z | //
// Created by yaoyao.sun on 2019-05-14.
// Copyright (c) 2019 Horizon Robotics. All rights reserved.
//
#include <gtest/gtest.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <fstream>
#include "yuv_utils.h"
#include "FasterRCNNMethod/dump.h"
#include "bpu_predict/bpu_io.h"
#include "horizon... | 29.957746 | 107 | 0.740009 | HorizonRobotics |
e02de197270a1e8b93e668161b4a4dae6dc79c54 | 3,040 | cpp | C++ | Projects/ShipGame/src/Main.cpp | SemperParatusGithub/SemperGL | b2866b43224cc1afa17c7ce0445507eb4733adc8 | [
"MIT"
] | 7 | 2020-11-10T23:43:49.000Z | 2021-04-25T20:13:40.000Z | Projects/ShipGame/src/Main.cpp | SemperParatusGithub/SemperGL | b2866b43224cc1afa17c7ce0445507eb4733adc8 | [
"MIT"
] | null | null | null | Projects/ShipGame/src/Main.cpp | SemperParatusGithub/SemperGL | b2866b43224cc1afa17c7ce0445507eb4733adc8 | [
"MIT"
] | null | null | null | #include "Level.h"
enum State
{
MainMenu = 0, Playing, Dead, Close
};
int main()
{
sgl::Core::Init();
sgl::Window window("Ship Game", 1280, 720);
window.SetIcon(sgl::WindowIcon("res/icons/Icon.png"));
window.SetVsync(1);
bool fullscreen = false;
window.SetEventCallback([&](sgl::Event &e)
{
if (e.isType<... | 25.123967 | 110 | 0.642434 | SemperParatusGithub |
e0306a85bdbba3a75ea283908382efea5e64e581 | 2,684 | cpp | C++ | untests/sources/untests_core/debug.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 92 | 2018-08-07T14:45:33.000Z | 2021-11-14T20:37:23.000Z | untests/sources/untests_core/debug.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 43 | 2018-09-30T20:48:03.000Z | 2020-04-20T20:05:26.000Z | untests/sources/untests_core/debug.cpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 13 | 2018-08-08T13:45:28.000Z | 2020-10-02T11:55:58.000Z | /*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018-2020, by Matvey Cherevko (blackmatov@gmail.com)
***************************************************... | 34.857143 | 88 | 0.552534 | NechukhrinN |
e031a23cbca914c8a235bb565283706ca2800ad9 | 3,009 | cc | C++ | Development/OrignalDev/ProbabilityFramework/Distributions/CPD/CPDDiscreteDiscrete.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | Development/OrignalDev/ProbabilityFramework/Distributions/CPD/CPDDiscreteDiscrete.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | Development/OrignalDev/ProbabilityFramework/Distributions/CPD/CPDDiscreteDiscrete.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2006, OmniPerception Ltd.
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here
... | 47.761905 | 155 | 0.73114 | isuhao |
e03268d013bd44d5ed1d9bc787bf40e15fb1cb46 | 51,165 | cpp | C++ | src/GUI/scrollbar.cpp | HonzaMD/Krkal2 | e53e9b096d89d1441ec472deb6d695c45bcae41f | [
"OLDAP-2.5"
] | 1 | 2018-04-01T16:47:52.000Z | 2018-04-01T16:47:52.000Z | src/GUI/scrollbar.cpp | HonzaMD/Krkal2 | e53e9b096d89d1441ec472deb6d695c45bcae41f | [
"OLDAP-2.5"
] | null | null | null | src/GUI/scrollbar.cpp | HonzaMD/Krkal2 | e53e9b096d89d1441ec472deb6d695c45bcae41f | [
"OLDAP-2.5"
] | null | null | null | ///////////////////////////////////////////////
//
// scrollbar.cpp
//
// Implementace pro scrollbar a jeho casti scrollbarButtons
//
// A: Jan Poduska
//
///////////////////////////////////////////////
#include "stdafx.h"
#include "scrollbar.h"
#include "widgets.h"
#include "dxbliter.h"
//////////... | 40.192459 | 305 | 0.619936 | HonzaMD |
e035c9a48b1b21dbbe2f9f9aa82a8342d379ddaa | 5,254 | cpp | C++ | torch_mlu/csrc/aten/operators/cnnl/internal/index_put_internal.cpp | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | 20 | 2022-03-01T11:40:51.000Z | 2022-03-30T08:17:47.000Z | torch_mlu/csrc/aten/operators/cnnl/internal/index_put_internal.cpp | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | null | null | null | torch_mlu/csrc/aten/operators/cnnl/internal/index_put_internal.cpp | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | null | null | null | /*
All modification made by Cambricon Corporation: © 2022 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2022, the respective contributors
All rights reserved.
For the list of contributors go to https://github.com/pytorch/pytorch/graphs/contributors
Redistribution and use in sou... | 44.525424 | 93 | 0.710697 | Cambricon |
e03cc21a2068f1b4eae7e1fb9974d81dbc44ccd5 | 3,016 | cc | C++ | RecoMuon/L2MuonProducer/src/L2MuonCandidateProducer.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | RecoMuon/L2MuonProducer/src/L2MuonCandidateProducer.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | RecoMuon/L2MuonProducer/src/L2MuonCandidateProducer.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | /** \class L2MuonCandidateProducer
*
* Intermediate step in the L2 muons selection.
* This class takes the L2 muons (which are reco::Tracks)
* and creates the correspondent reco::RecoChargedCandidate.
*
* Riccardo's comment:
* The separation between the L2MuonProducer and this class allows
* the ... | 35.904762 | 108 | 0.73508 | nistefan |
e03d6aa003ca8bd54ec8993b909c9093fa671d35 | 717 | cpp | C++ | APIs_Drivers/DigitalIn_ex_1/main.cpp | adbridge/mbed-os-examples-docs_only | 3f71b9fae755955ba6e5b2c8978a9f83f65c0f9c | [
"Apache-2.0"
] | 4 | 2018-11-21T06:56:02.000Z | 2021-12-02T13:51:18.000Z | APIs_Drivers/DigitalIn_ex_1/main.cpp | adbridge/mbed-os-examples-docs_only | 3f71b9fae755955ba6e5b2c8978a9f83f65c0f9c | [
"Apache-2.0"
] | 62 | 2018-10-12T16:19:19.000Z | 2021-09-19T23:44:21.000Z | APIs_Drivers/DigitalIn_ex_1/main.cpp | adbridge/mbed-os-examples-docs_only | 3f71b9fae755955ba6e5b2c8978a9f83f65c0f9c | [
"Apache-2.0"
] | 27 | 2018-10-12T15:52:45.000Z | 2021-08-13T05:42:33.000Z | /*
* Copyright (c) 2006-2020 Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*/
#include "mbed.h"
DigitalIn mypin(SW2); // change this to the button on your board
DigitalOut myled(LED1);
int main()
{
// check mypin object is initialized and connected to a pin
if (mypin.is_connected()) {... | 25.607143 | 65 | 0.645746 | adbridge |
e03e802c063552fbd089e01242b5e9e197ee469f | 2,455 | cpp | C++ | Code/Object Database/Blueprint/Blueprint.cpp | QuestionableM/Blueprint-Converter | 4f9b8d92f0c94a77098bfa2d9b45fe81f79aace9 | [
"MIT"
] | 5 | 2021-08-07T02:45:03.000Z | 2022-01-24T09:30:42.000Z | Code/Object Database/Blueprint/Blueprint.cpp | QuestionableM/Blueprint-Converter | 4f9b8d92f0c94a77098bfa2d9b45fe81f79aace9 | [
"MIT"
] | 1 | 2021-12-26T19:14:14.000Z | 2021-12-26T19:14:14.000Z | Code/Object Database/Blueprint/Blueprint.cpp | QuestionableM/Blueprint-Converter | 4f9b8d92f0c94a77098bfa2d9b45fe81f79aace9 | [
"MIT"
] | 1 | 2022-01-08T19:17:25.000Z | 2022-01-08T19:17:25.000Z | #include "Blueprint.h"
#include "Lib/OtherFunc/OtherFunc.h"
#include "Lib/File/FileFunc.h"
#include "Lib/Json/JsonFunc.h"
#include "Lib/String/String.h"
#include <filesystem>
namespace fs = std::filesystem;
namespace SMBC
{
const static std::unordered_map<std::wstring, bool> SupportedImageExtensions = { { L".jpg",... | 26.978022 | 131 | 0.685947 | QuestionableM |
e0411a6404bca9d2b90aefb3ef94b78edb1ee377 | 8,848 | cpp | C++ | src/puzzles.cpp | LeifAndersen/remarkable_puzzles | 2745eceeb5965406d3e9dd5fbf6b5057706a3f69 | [
"MIT"
] | 8 | 2021-01-14T16:07:05.000Z | 2021-12-07T11:35:31.000Z | src/puzzles.cpp | LeifAndersen/remarkable_puzzles | 2745eceeb5965406d3e9dd5fbf6b5057706a3f69 | [
"MIT"
] | 15 | 2021-01-14T21:00:03.000Z | 2022-01-04T04:09:12.000Z | src/puzzles.cpp | LeifAndersen/remarkable_puzzles | 2745eceeb5965406d3e9dd5fbf6b5057706a3f69 | [
"MIT"
] | 2 | 2021-01-14T20:56:15.000Z | 2021-03-04T19:59:13.000Z | #include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <sys/time.h>
#include "puzzles.hpp"
#include "config.hpp"
// === Debug ===
#include "debug.hpp"
#ifdef NDEBUG
#undef DEBUG_FRONTEND
#undef DEBUG_DRAW
#undef DEBUG_TIMER
#endif
#ifdef DEBUG_FRO... | 26.41194 | 86 | 0.615732 | LeifAndersen |
e0416211c0e40fd25cdad8bdd7988763f08e11b4 | 11,279 | cpp | C++ | semantic_kitti/src/semantic_kitti_read.cpp | wangx1996/Semantic-Kitti-Label-Read | 680ab68b1c053fd2e19ddc6f236ab6049ff52305 | [
"MIT"
] | null | null | null | semantic_kitti/src/semantic_kitti_read.cpp | wangx1996/Semantic-Kitti-Label-Read | 680ab68b1c053fd2e19ddc6f236ab6049ff52305 | [
"MIT"
] | null | null | null | semantic_kitti/src/semantic_kitti_read.cpp | wangx1996/Semantic-Kitti-Label-Read | 680ab68b1c053fd2e19ddc6f236ab6049ff52305 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <ctime>
#include <stdlib.h>
#include <time.h>
#include <algorithm>
#include <unordered_set>
#include <unordered_map>
#include <math.h>
//PCL
#include <pcl/common/transforms.h>
#include <pcl/ModelCoefficients.h>
#include <pcl/sample_consensus/method_typ... | 25.869266 | 109 | 0.646334 | wangx1996 |
e043eb1f59f4577012d4abf7160302b79a6c3e6b | 8,144 | cpp | C++ | NYPR/PlateLocate/NYPlateDetect.cpp | NathanYu1124/PLR_Vision | 2eceda3462e656a257a6cabb18fef6bee448fb9b | [
"Apache-2.0"
] | 17 | 2018-06-20T17:48:47.000Z | 2021-12-01T10:40:27.000Z | NYPR/PlateLocate/NYPlateDetect.cpp | rsingh2083/PLR_Vision | 2eceda3462e656a257a6cabb18fef6bee448fb9b | [
"Apache-2.0"
] | null | null | null | NYPR/PlateLocate/NYPlateDetect.cpp | rsingh2083/PLR_Vision | 2eceda3462e656a257a6cabb18fef6bee448fb9b | [
"Apache-2.0"
] | 10 | 2019-03-02T07:15:34.000Z | 2021-08-11T12:07:06.000Z | //
// NYPlateDetect.cpp
// NYPlateRecognition
//
// Created by NathanYu on 24/01/2018.
// Copyright © 2018 NathanYu. All rights reserved.
//
#include "NYPlateDetect.hpp"
// 检测图片中的车牌
vector<NYPlate> NYPlateDetect::detectPlates(Mat src)
{
vector<NYPlate> platesVec;
vector<NYPlate> sobel_plates;
vector<N... | 28.376307 | 125 | 0.564219 | NathanYu1124 |
e046fad6017a6d5a87e8d502f1fd6864f856a370 | 2,960 | cpp | C++ | framework/operators/shuffle_channel.cpp | Shixiaowei02/Anakin | f1ea086c5dfa1009ba15a64bc3e30cde07356360 | [
"Apache-2.0"
] | 1 | 2018-08-03T05:14:27.000Z | 2018-08-03T05:14:27.000Z | framework/operators/shuffle_channel.cpp | Shixiaowei02/Anakin | f1ea086c5dfa1009ba15a64bc3e30cde07356360 | [
"Apache-2.0"
] | 3 | 2018-06-22T09:08:44.000Z | 2018-07-04T08:38:30.000Z | framework/operators/shuffle_channel.cpp | Shixiaowei02/Anakin | f1ea086c5dfa1009ba15a64bc3e30cde07356360 | [
"Apache-2.0"
] | 1 | 2021-01-27T07:44:55.000Z | 2021-01-27T07:44:55.000Z | #include "framework/operators/shuffle_channel.h"
namespace anakin {
namespace ops {
#define INSTANCE_SHUFFLE_CHANNEL(Ttype, Dtype, Ptype) \
template<> \
void ShuffleChannel<Ttype, Dtype, Ptype>::operator()(OpContext<Ttype>& ctx, \
const std::vector<Tensor4dPtr<Ttype, Dtype> >& ins, \
std::vector<Tens... | 37 | 114 | 0.752703 | Shixiaowei02 |
e04ad05935dea20898a64e88554d93dbc07fd729 | 5,153 | cpp | C++ | Development/External/wxWindows_2.4.0/src/msw/data.cpp | addstone/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | 37 | 2020-05-22T18:18:47.000Z | 2022-03-19T06:51:54.000Z | Development/External/wxWindows_2.4.0/src/msw/data.cpp | AdanosGotoman/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | null | null | null | Development/External/wxWindows_2.4.0/src/msw/data.cpp | AdanosGotoman/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | 27 | 2020-05-17T01:03:30.000Z | 2022-03-06T19:10:14.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: data.cpp
// Purpose: Various data
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
// RCS-ID: $Id: data.cpp,v 1.40.2.5 2002/12/26 19:11:04 RD Exp $
// Copyright: (c) Julian Smart and Markus Holz... | 33.461039 | 81 | 0.750631 | addstone |
e04ceeb56788a5b8cda7f248428ac669cd955aeb | 1,731 | cpp | C++ | Easy/valid-parentheses.cpp | utkarshavardhana/LeetCode-Problems | 1b574945c59d8050a55a9d1c922dde65e6bb7c75 | [
"MIT"
] | 1 | 2020-05-10T07:21:24.000Z | 2020-05-10T07:21:24.000Z | Easy/valid-parentheses.cpp | utkarshavardhana/LeetCode-Problems | 1b574945c59d8050a55a9d1c922dde65e6bb7c75 | [
"MIT"
] | null | null | null | Easy/valid-parentheses.cpp | utkarshavardhana/LeetCode-Problems | 1b574945c59d8050a55a9d1c922dde65e6bb7c75 | [
"MIT"
] | null | null | null | // Problem: https://leetcode.com/problems/valid-parentheses/
//
// Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
//
// An input string is valid if:
//
// Open brackets must be closed by the same type of brackets.
// Open brackets must be cl... | 25.086957 | 122 | 0.353553 | utkarshavardhana |
e04dfe2331a9c141b5ae3fec88e534d0f6549211 | 1,486 | cpp | C++ | Valtrook/Valtrook/RenderingEngine.cpp | animeenginedev/Valtrook | 10cf7332643765534f8a4263cc4e422c4356487b | [
"MIT"
] | null | null | null | Valtrook/Valtrook/RenderingEngine.cpp | animeenginedev/Valtrook | 10cf7332643765534f8a4263cc4e422c4356487b | [
"MIT"
] | null | null | null | Valtrook/Valtrook/RenderingEngine.cpp | animeenginedev/Valtrook | 10cf7332643765534f8a4263cc4e422c4356487b | [
"MIT"
] | null | null | null | #include "RenderingEngine.h"
#include <gl\glew.h>
#include <iostream>
#include <sstream>
namespace Val {
Window RenderingEngine::window;
RenderingEngine::RenderingEngine() {
}
RenderingEngine::~RenderingEngine() {
}
void RenderingEngine::InitWindow() {
window.create(0);
std::stringstream str = std::stri... | 20.081081 | 63 | 0.711306 | animeenginedev |
e05059cf8c65f90777bcff5cebe533bfa326746b | 2,229 | hpp | C++ | src/SynthesizeSegment.hpp | haruneko/uzume_vocoder | 63343118fd8d0dd8b7ebb92d98f023bfa6b9855e | [
"MIT"
] | 1 | 2020-04-28T06:29:25.000Z | 2020-04-28T06:29:25.000Z | src/SynthesizeSegment.hpp | haruneko/uzume | 63343118fd8d0dd8b7ebb92d98f023bfa6b9855e | [
"MIT"
] | null | null | null | src/SynthesizeSegment.hpp | haruneko/uzume | 63343118fd8d0dd8b7ebb92d98f023bfa6b9855e | [
"MIT"
] | null | null | null | // Copyright 2020 Hal@shurabaP. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
#ifndef __UZUME_VOCODER_SYNTHESIZE_SEGMENT_HPP__
#define __UZUME_VOCODER_SYNTHESIZE_SEGMENT_HPP__
#include "Spectrogram.hpp"
namespace uzume { namespace vocoder... | 33.772727 | 124 | 0.75729 | haruneko |
e050f21091ba16d03fa8ce813149006f205678e6 | 3,217 | cpp | C++ | CONTRIB/LLVM/src/lib/Tg/AMDGPU/AMDGPUTargetObjectFile.cpp | Cwc-Test/CpcdosOS2.1 | d52c170be7f11cc50de38ef536d4355743d21706 | [
"Apache-2.0"
] | 30 | 2016-09-06T06:58:43.000Z | 2021-12-23T11:59:38.000Z | CONTRIB/LLVM/src/lib/Tg/AMDGPU/AMDGPUTargetObjectFile.cpp | Cwc-Test/CpcdosOS2.1 | d52c170be7f11cc50de38ef536d4355743d21706 | [
"Apache-2.0"
] | 21 | 2016-08-11T09:43:43.000Z | 2017-01-29T12:52:56.000Z | CONTRIB/LLVM/src/lib/Tg/AMDGPU/AMDGPUTargetObjectFile.cpp | Cwc-Test/CpcdosOS2.1 | d52c170be7f11cc50de38ef536d4355743d21706 | [
"Apache-2.0"
] | 17 | 2016-10-24T06:08:16.000Z | 2022-02-18T17:27:14.000Z | //===-- AMDGPUHSATargetObjectFile.cpp - AMDGPU Object Files ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 36.556818 | 81 | 0.578489 | Cwc-Test |
e051d22a254e20b8bfb901f382b8749a23b187cd | 4,221 | cpp | C++ | target/device/libio/arduino/x86/libraries/SPI/SPI.cpp | ilc-opensource/io-js | 462943d67e3e8985d085898cabe5629006f66e33 | [
"BSD-3-Clause"
] | 8 | 2015-01-24T18:40:21.000Z | 2016-03-22T07:04:07.000Z | target/device/libio/arduino/x86/libraries/SPI/SPI.cpp | ilc-opensource/io-js | 462943d67e3e8985d085898cabe5629006f66e33 | [
"BSD-3-Clause"
] | null | null | null | target/device/libio/arduino/x86/libraries/SPI/SPI.cpp | ilc-opensource/io-js | 462943d67e3e8985d085898cabe5629006f66e33 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2010 by Cristian Maglie <c.maglie@bug.st>
* Copyright (c) 2013 Intel Corporation
* SPI Master library for arduino.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of either the GNU General Public License version 2
* or the GNU Lesser General Public L... | 21.105 | 72 | 0.703388 | ilc-opensource |
e051f2422e3ff0ebeea24593e27b4b2762c4b2aa | 539 | hpp | C++ | src/player_human.hpp | a-n-t-h-o-n-y/cursed-chess | a932f48bac0431c927e7ec569e8d167e3b261754 | [
"MIT"
] | null | null | null | src/player_human.hpp | a-n-t-h-o-n-y/cursed-chess | a932f48bac0431c927e7ec569e8d167e3b261754 | [
"MIT"
] | null | null | null | src/player_human.hpp | a-n-t-h-o-n-y/cursed-chess | a932f48bac0431c927e7ec569e8d167e3b261754 | [
"MIT"
] | null | null | null | #ifndef CHESS_PLAYER_HUMAN_HPP
#define CHESS_PLAYER_HUMAN_HPP
#include <mutex>
#include "move.hpp"
#include "player.hpp"
#include "shared_user_input.hpp"
namespace chess {
class Chess_engine;
} // namespace chess
namespace chess::player {
inline auto human() -> Player
{
return {"Human", [](Chess_engine const&)... | 21.56 | 74 | 0.679035 | a-n-t-h-o-n-y |
e053d66898ad019e0101859f68cd0c73e58218db | 1,284 | hpp | C++ | include/Game/Item.hpp | darwin-s/nanocraft | dcb8b590fa3310b726529ab5e36b18893f6a3b1f | [
"Apache-2.0"
] | 2 | 2021-08-12T10:05:53.000Z | 2021-08-13T16:25:49.000Z | include/Game/Item.hpp | darwin-s/nanocraft | dcb8b590fa3310b726529ab5e36b18893f6a3b1f | [
"Apache-2.0"
] | null | null | null | include/Game/Item.hpp | darwin-s/nanocraft | dcb8b590fa3310b726529ab5e36b18893f6a3b1f | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Sirbu Dan
//
// 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... | 29.181818 | 75 | 0.715732 | darwin-s |
e0546cb6216e6946ff2b3bec378ac70d890d1da8 | 465 | cpp | C++ | src/tools/tools__MB.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/tools/tools__MB.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/tools/tools__MB.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | //
//
//
/// @brief Returns the conversion factor from bytes to megabytes.
//
/// @return @f$ 0.000000954 @f$
//
inline const double MB()
{
return 0.000000954;
};
//
//
//
/// @param [in] data_size A numerical (only) argument in byte units.
//
/// @brief Converts the given @c data_size to megabyte units.
//
/// @retur... | 17.884615 | 68 | 0.664516 | violador |
e054d96afb4867d6e5dee9a2d51042dce8b99679 | 5,457 | hpp | C++ | src/backend/cuda/kernel/resize.hpp | ckeitz/arrayfire | a1a1bbbc8487a032eb27a6c894b1b3dfb19d123b | [
"BSD-3-Clause"
] | 4 | 2015-12-16T09:41:32.000Z | 2018-10-29T10:38:53.000Z | src/backend/cuda/kernel/resize.hpp | ckeitz/arrayfire | a1a1bbbc8487a032eb27a6c894b1b3dfb19d123b | [
"BSD-3-Clause"
] | 3 | 2015-11-15T18:43:47.000Z | 2015-12-16T09:43:14.000Z | src/backend/cuda/kernel/resize.hpp | pavanky/arrayfire | f983a79c7d402450bd2a704bbc1015b89f0cd504 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | 40.422222 | 105 | 0.439069 | ckeitz |
e0576645a761fdeaebb6655a7fbee24b356879da | 25,721 | cpp | C++ | src/Socket.cpp | seppeon/NetChat | 9b30513179f5d97a39ad9444dc94640976218b77 | [
"MIT"
] | null | null | null | src/Socket.cpp | seppeon/NetChat | 9b30513179f5d97a39ad9444dc94640976218b77 | [
"MIT"
] | null | null | null | src/Socket.cpp | seppeon/NetChat | 9b30513179f5d97a39ad9444dc94640976218b77 | [
"MIT"
] | null | null | null | #include "Socket.h"
#include "WinsockRaii.h"
#include "WindowsSocketRaii.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <ws2tcpip.h>
#pragma comment(lib, "ws2_32.lib")
namespace Net
{
std::string GetStatusDescription(BindStatus status) noexcept
{
switch(status)
{
case BindStatus::Success: retur... | 50.832016 | 422 | 0.755647 | seppeon |
e057dc6310154c57912c788292829909feffde5a | 2,169 | cpp | C++ | pc/1.6.4_lcddisplay.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | pc/1.6.4_lcddisplay.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | pc/1.6.4_lcddisplay.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cctype>
#define VERT 1
#define HOR 0
using namespace std;
const int MAXN = 8+2;
const int MAXS = 10+5;
const int MAXR = 2*MAXS+3;
const int MAXC = MAXN*(MAXS+2);
int S; // [1, 10] size
int N; // [0, 9999 9999] number
int digits[10][7] = {{1, 1, 1, 1, 1... | 23.576087 | 71 | 0.384509 | aoibird |
e05844649f727696eca04f4542aab71cbfe7031c | 395 | cc | C++ | src/leetcode/palindromeNumber.cc | yuebanyishenqiu/my_repo | ecc05146eac9f85ccb1ba07717a36f3044652264 | [
"MIT"
] | null | null | null | src/leetcode/palindromeNumber.cc | yuebanyishenqiu/my_repo | ecc05146eac9f85ccb1ba07717a36f3044652264 | [
"MIT"
] | null | null | null | src/leetcode/palindromeNumber.cc | yuebanyishenqiu/my_repo | ecc05146eac9f85ccb1ba07717a36f3044652264 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
bool judge(int i){
if(i < 0 || ((i % 10 == 0 && i != 0)))
return false;
int j = 0;
while(i > j){
j = j*10 + i%10;
i /= 10;
}
return (i == j || i == j/10)? true:false;
}
int main(){
int i;
cin >> i;
if(judge(i))
cout ... | 17.954545 | 45 | 0.425316 | yuebanyishenqiu |
e063649cb9f2f51b43d201ae2b3a4d068105ad40 | 675 | cpp | C++ | Problems/234. Palindrome Linked List/pointers_array.cpp | uSlashVlad/MyLeetCode | 3d5e8e347716beb0ffadb538c92eceb42ab7fcf9 | [
"MIT"
] | 1 | 2022-01-29T01:52:58.000Z | 2022-01-29T01:52:58.000Z | Problems/234. Palindrome Linked List/pointers_array.cpp | uSlashVlad/MyLeetCode | 3d5e8e347716beb0ffadb538c92eceb42ab7fcf9 | [
"MIT"
] | null | null | null | Problems/234. Palindrome Linked List/pointers_array.cpp | uSlashVlad/MyLeetCode | 3d5e8e347716beb0ffadb538c92eceb42ab7fcf9 | [
"MIT"
] | null | null | null | #include "../includes.hpp"
using namespace std;
struct ListNode
{
int val;
ListNode *next;
ListNode() : val(0), next(nullptr) {}
ListNode(int x) : val(x), next(nullptr) {}
ListNode(int x, ListNode *next) : val(x), next(next) {}
};
class Solution
{
public:
bool isPalindrome(ListNode *head)
... | 19.285714 | 59 | 0.472593 | uSlashVlad |
e0659d765ab0cc8a761b63d0ce40c537f57ba20d | 9,762 | cc | C++ | cblite/cbliteTool+query.cc | mhocouchbase/couchbase-mobile-tools | d2f2a9f45ff7d6ec4956e994561825a13f0be313 | [
"Apache-2.0"
] | null | null | null | cblite/cbliteTool+query.cc | mhocouchbase/couchbase-mobile-tools | d2f2a9f45ff7d6ec4956e994561825a13f0be313 | [
"Apache-2.0"
] | null | null | null | cblite/cbliteTool+query.cc | mhocouchbase/couchbase-mobile-tools | d2f2a9f45ff7d6ec4956e994561825a13f0be313 | [
"Apache-2.0"
] | null | null | null | //
// cbliteTool+Query.cc
//
// Copyright (c) 2017 Couchbase, Inc 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
//
... | 32.006557 | 100 | 0.541487 | mhocouchbase |
e06d9cd70b869e3329ab4b524dd76112e04aa3d9 | 6,439 | cpp | C++ | src/Settings/Constants.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | src/Settings/Constants.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | src/Settings/Constants.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | /**
* Definition of OptionConstants constants.
*/
#include "DREAM/Settings/OptionConstants.hpp"
using namespace DREAM;
/**
* NAMES OF UNKNOWN QUANTITIES
*/
const char *OptionConstants::UQTY_E_FIELD = "E_field";
const char *OptionConstants::UQTY_F_HOT = "f_hot";
const char *OptionConstants::... | 72.348315 | 156 | 0.702283 | chalmersplasmatheory |
e06f56385da1f7fcf39d2e6691a2cddca6855a08 | 5,221 | cpp | C++ | src/tests/test_lift.cpp | victimsnino/ReactivePlusPlus | bb187cc52936bce7c1ef4899d7dbb9c970cef291 | [
"MIT"
] | 1 | 2022-03-19T20:15:50.000Z | 2022-03-19T20:15:50.000Z | src/tests/test_lift.cpp | victimsnino/ReactivePlusPlus | bb187cc52936bce7c1ef4899d7dbb9c970cef291 | [
"MIT"
] | 12 | 2022-03-22T21:18:14.000Z | 2022-03-30T05:37:58.000Z | src/tests/test_lift.cpp | victimsnino/ReactivePlusPlus | bb187cc52936bce7c1ef4899d7dbb9c970cef291 | [
"MIT"
] | null | null | null | // ReactivePlusPlus library
//
// Copyright Aleksey Loginov 2022 - present.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.com/victimsnin... | 36.256944 | 107 | 0.500287 | victimsnino |
e070bf8609cf27f34b95d773ab77e70c6157a017 | 17,355 | cpp | C++ | src/zyre/zyre.cpp | staroy/gyro | 3cc048af5605cf4aad50812733cebe1e0232c2f9 | [
"MIT"
] | null | null | null | src/zyre/zyre.cpp | staroy/gyro | 3cc048af5605cf4aad50812733cebe1e0232c2f9 | [
"MIT"
] | null | null | null | src/zyre/zyre.cpp | staroy/gyro | 3cc048af5605cf4aad50812733cebe1e0232c2f9 | [
"MIT"
] | null | null | null | #include "zyre.hpp"
#include "auth.h"
#include <iostream>
#include <boost/filesystem.hpp>
#include "misc_log_ex.h"
#include "sodium.h"
#undef MONERO_DEFAULT_LOG_CATEGORY
#define MONERO_DEFAULT_LOG_CATEGORY "zyre.cc"
namespace zyre
{
void *server::ctx_ = nullptr;
server::server(
const std::string& name,
... | 29.666667 | 148 | 0.492711 | staroy |
e072d136e19f02ac31b851992288d07fa419b358 | 6,594 | cpp | C++ | lammps-master/src/USER-OMP/angle_class2_omp.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | lammps-master/src/USER-OMP/angle_class2_omp.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | lammps-master/src/USER-OMP/angle_class2_omp.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | /* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... | 27.247934 | 79 | 0.53397 | rajkubp020 |
e0748d77b416cedd619686df8638e1e61c33663c | 26,624 | cpp | C++ | Source/FemPhysicsLinear.cpp | MihaiF/SolidFEM | 58e08130e2f31be3b056c387ed03aab3b0b3db38 | [
"BSD-3-Clause"
] | 3 | 2020-05-19T10:59:01.000Z | 2022-02-04T08:59:32.000Z | Source/FemPhysicsLinear.cpp | MihaiF/SolidFEM | 58e08130e2f31be3b056c387ed03aab3b0b3db38 | [
"BSD-3-Clause"
] | null | null | null | Source/FemPhysicsLinear.cpp | MihaiF/SolidFEM | 58e08130e2f31be3b056c387ed03aab3b0b3db38 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T16:14:53.000Z | 2019-11-08T16:14:53.000Z | /*
BSD 3-Clause License
Copyright (c) 2019, Mihai Francu
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 condit... | 33.829733 | 145 | 0.654485 | MihaiF |
2fd93bac461a6dfdcac6bdd0aacdba4d908f5c8b | 91 | cpp | C++ | 80186PC/UI/Keyboard.cpp | moon-touched/80186PC | 60b461b584f6454b36a863f473d812658ee1e54d | [
"MIT"
] | null | null | null | 80186PC/UI/Keyboard.cpp | moon-touched/80186PC | 60b461b584f6454b36a863f473d812658ee1e54d | [
"MIT"
] | null | null | null | 80186PC/UI/Keyboard.cpp | moon-touched/80186PC | 60b461b584f6454b36a863f473d812658ee1e54d | [
"MIT"
] | null | null | null | #include <UI/Keyboard.h>
Keyboard::Keyboard() = default;
Keyboard::~Keyboard() = default;
| 18.2 | 32 | 0.703297 | moon-touched |
2fdc5c5102a0a36fbca5887981673ee8aaf857dd | 963 | cpp | C++ | test/sequenceobjects.cpp | tschijnmo/cpypp | ee9c6e7c4bcd4579c7b5a58a4c7626630f8c8ffd | [
"MIT"
] | null | null | null | test/sequenceobjects.cpp | tschijnmo/cpypp | ee9c6e7c4bcd4579c7b5a58a4c7626630f8c8ffd | [
"MIT"
] | null | null | null | test/sequenceobjects.cpp | tschijnmo/cpypp | ee9c6e7c4bcd4579c7b5a58a4c7626630f8c8ffd | [
"MIT"
] | null | null | null | /** Tests for the utility for sequence objects.
*/
#include <catch.hpp>
#include <Python.h>
#include <cpypp.hpp>
using namespace cpypp;
TEST_CASE("Tuples can be constructed", "[Handle][Tuple]")
{
Tuple tup(2);
tup.setitem(0, Handle(1l));
tup.setitem(1, Handle(2l));
CHECK(tup.check_tuple());
H... | 20.489362 | 80 | 0.650052 | tschijnmo |
2fdd9b4502588839b2fc890eccd9542edf134894 | 625 | cpp | C++ | hash/hash_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 264 | 2015-01-03T11:50:17.000Z | 2022-03-17T02:38:34.000Z | hash/hash_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 12 | 2015-04-27T15:17:34.000Z | 2021-05-01T04:31:18.000Z | hash/hash_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 128 | 2015-02-07T18:13:10.000Z | 2022-02-21T14:24:14.000Z | // Copyright (c) 2013, The Toft Authors. All rights reserved.
// Author: Ye Shunping <yeshunping@gmail.com>
#include <string>
#include "toft/hash/hash.h"
#include "thirdparty/gtest/gtest.h"
namespace toft {
TEST(HashUnittest, Fingerprint) {
const std::string& url = "http://app.kid.qq.com/exam/5528/5528_103392.h... | 29.761905 | 79 | 0.7264 | hjinlin |
2fddce6a0d5df9e95639c4bfb13c1be6925b3aa3 | 2,011 | hpp | C++ | labs/parallel_merge/helper.hpp | amirsojoodi/gpu-algorithms-labs | 27993d0f40822d7195ada79645ca1ed7dd875803 | [
"NCSA"
] | 23 | 2019-01-15T23:13:22.000Z | 2022-03-18T05:25:11.000Z | labs/parallel_merge/helper.hpp | amirsojoodi/gpu-algorithms-labs | 27993d0f40822d7195ada79645ca1ed7dd875803 | [
"NCSA"
] | 9 | 2019-01-15T22:25:02.000Z | 2021-07-15T16:59:49.000Z | labs/parallel_merge/helper.hpp | amirsojoodi/gpu-algorithms-labs | 27993d0f40822d7195ada79645ca1ed7dd875803 | [
"NCSA"
] | 19 | 2019-01-22T17:09:00.000Z | 2022-03-10T11:57:05.000Z | #pragma once
#define CATCH_CONFIG_CPP11_TO_STRING
#define CATCH_CONFIG_COLOUR_ANSI
#define CATCH_CONFIG_MAIN
#include "common/catch.hpp"
#include "common/fmt.hpp"
#include "common/utils.hpp"
#include "assert.h"
#include "stdint.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include <algorithm>
#incl... | 30.469697 | 151 | 0.663352 | amirsojoodi |
2fdf0ec1e8a7781618bdc3ca01cfa62307675cde | 410 | cpp | C++ | tests/doc/vector3d/vector3d-3.cpp | jmintser/chemfiles | fb1ed5ee47790cc004468e5484954e2b3d1adff2 | [
"BSD-3-Clause"
] | 116 | 2015-11-05T01:18:13.000Z | 2022-02-20T06:33:47.000Z | tests/doc/vector3d/vector3d-3.cpp | jmintser/chemfiles | fb1ed5ee47790cc004468e5484954e2b3d1adff2 | [
"BSD-3-Clause"
] | 307 | 2015-10-08T09:22:46.000Z | 2022-03-28T13:42:51.000Z | tests/doc/vector3d/vector3d-3.cpp | Luthaf/Chemharp | d41036ff5645954bd691f868f066c760560eee13 | [
"BSD-3-Clause"
] | 57 | 2015-10-22T06:45:40.000Z | 2022-03-27T17:33:05.000Z | // Chemfiles, a modern library for chemistry file reading and writing
// Copyright (C) Guillaume Fraux and contributors -- BSD license
#include <catch.hpp>
#include <chemfiles.hpp>
using namespace chemfiles;
#undef assert
#define assert CHECK
TEST_CASE() {
// [example]
auto u = Vector3D(1.5, 2.0, -3.0);
a... | 22.777778 | 69 | 0.639024 | jmintser |
2fe400e50fb276b4251a23540e03497e989f210e | 616 | cpp | C++ | Dynamic Programming/Knapsnack.cpp | aviral243/interviewbit-solutions-1 | 7b4bda68b2ff2916263493f40304b20fade16c9a | [
"MIT"
] | null | null | null | Dynamic Programming/Knapsnack.cpp | aviral243/interviewbit-solutions-1 | 7b4bda68b2ff2916263493f40304b20fade16c9a | [
"MIT"
] | null | null | null | Dynamic Programming/Knapsnack.cpp | aviral243/interviewbit-solutions-1 | 7b4bda68b2ff2916263493f40304b20fade16c9a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int maximiseProfit(vector<int> &p, vector<int> &w, int m) {
int n = w.size();
vector<int> ans(n, 0);
vector<vector<int>> dp(n + 1, vector<int>(m + 1, 0));
for (int i = 1; i < n + 1; i++)
for (int j = 1; j < m + 1; j++)
if (w[i - 1] > j)
dp[i][j]... | 21.241379 | 73 | 0.477273 | aviral243 |
2fe57690a55e66d9578c20a9c04b5aafec7e0c30 | 253 | cpp | C++ | problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/c++/Raizes.cpp | Ramo-UERJ/competitive-programming | 7f2b821862853a7ebc1de5454914bcc9ea626083 | [
"MIT"
] | null | null | null | problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/c++/Raizes.cpp | Ramo-UERJ/competitive-programming | 7f2b821862853a7ebc1de5454914bcc9ea626083 | [
"MIT"
] | 1 | 2020-07-29T13:23:25.000Z | 2020-07-29T13:23:25.000Z | problemas-resolvidos/neps-academy/programacao-basica-competicoes-c++/c++/Raizes.cpp | ieee-uerj/competitive-programming | 7f2b821862853a7ebc1de5454914bcc9ea626083 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int N;
double x;
cin >> N;
cout.precision(4);
cout.setf(ios::fixed);
for (int i =0; i < N; i++){
cin >> x;
cout << sqrt(x) << endl;
}
} | 11.5 | 31 | 0.490119 | Ramo-UERJ |
2fe6891ff90c388888df3ff5931d7343b3d09b48 | 3,670 | cpp | C++ | src/foundation/Buffer.cpp | ma-bo/lua-poco | b19a38c42ff6bcd06a4fda2a5aff826056735678 | [
"BSD-3-Clause"
] | 16 | 2015-10-15T16:38:32.000Z | 2022-01-29T16:20:14.000Z | src/foundation/Buffer.cpp | ma-bo/lua-poco | b19a38c42ff6bcd06a4fda2a5aff826056735678 | [
"BSD-3-Clause"
] | 2 | 2016-08-11T22:14:31.000Z | 2016-08-12T16:02:20.000Z | src/foundation/Buffer.cpp | ma-bo/lua-poco | b19a38c42ff6bcd06a4fda2a5aff826056735678 | [
"BSD-3-Clause"
] | 8 | 2015-07-17T09:15:56.000Z | 2021-05-20T06:49:57.000Z | /// Mutable buffers.
// A module that implements mutable buffers for use with memoryostream and memoryistream.
// Note: buffer userdata are copyable between threads.
// @module buffer
#include <iostream>
#include "Buffer.h"
#include <Poco/Exception.h>
int luaopen_poco_buffer(lua_State* L)
{
LuaPoco::BufferUserdat... | 26.402878 | 99 | 0.677384 | ma-bo |
2fe79310e5405c3a6e4a499ed6b5b31d2678df9a | 8,565 | cpp | C++ | 2A. C++ Advanced (STL)/Attic/sorts.cpp | alemesa1991/School-Projects | ed9170fa4cadfe18c6d9850a17077686ca16d1a1 | [
"MIT"
] | null | null | null | 2A. C++ Advanced (STL)/Attic/sorts.cpp | alemesa1991/School-Projects | ed9170fa4cadfe18c6d9850a17077686ca16d1a1 | [
"MIT"
] | null | null | null | 2A. C++ Advanced (STL)/Attic/sorts.cpp | alemesa1991/School-Projects | ed9170fa4cadfe18c6d9850a17077686ca16d1a1 | [
"MIT"
] | null | null | null | // best reference:
// https://en.wikibooks.org/wiki/Special:Search/Algorithm_Implementation/Sorting/
// some sorts are also in see Numerical Recipes in C
// GB original code hacked from
// http://stackoverflow.com/questions/244252/a-good-reference-card-cheat-sheet-with-the-basic-sort-algorithms-in-c
// GB ported C-c... | 25.876133 | 114 | 0.493053 | alemesa1991 |
2fe9fcca7db0175ba5a6f7130e4c6f32c562f968 | 6,912 | hpp | C++ | HugeCTR/include/gpu_resource.hpp | awesome-archive/HugeCTR | ee920b03bbcd68414a30cc76ec98bae32d6047cd | [
"Apache-2.0"
] | 2 | 2019-11-27T10:40:30.000Z | 2019-11-27T10:40:35.000Z | HugeCTR/include/gpu_resource.hpp | awesome-archive/HugeCTR | ee920b03bbcd68414a30cc76ec98bae32d6047cd | [
"Apache-2.0"
] | null | null | null | HugeCTR/include/gpu_resource.hpp | awesome-archive/HugeCTR | ee920b03bbcd68414a30cc76ec98bae32d6047cd | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 33.882353 | 91 | 0.689525 | awesome-archive |
2ff1c3c9c70262f567269e823da531dc31be2115 | 8,452 | cpp | C++ | MeshTools/QuadricFit.cpp | EMinsight/FEBioStudio | d3e6485610d19217550fb94cb22180bc4bda45f9 | [
"MIT"
] | 27 | 2020-06-25T06:34:52.000Z | 2022-03-11T08:58:57.000Z | MeshTools/QuadricFit.cpp | EMinsight/FEBioStudio | d3e6485610d19217550fb94cb22180bc4bda45f9 | [
"MIT"
] | 42 | 2020-06-15T18:40:57.000Z | 2022-03-24T05:38:54.000Z | MeshTools/QuadricFit.cpp | EMinsight/FEBioStudio | d3e6485610d19217550fb94cb22180bc4bda45f9 | [
"MIT"
] | 12 | 2020-06-27T13:58:57.000Z | 2022-03-24T05:39:10.000Z | /*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to ... | 32.507692 | 135 | 0.479886 | EMinsight |
2ff7457bf2fe4d2d3c0bc27af0930303fb70b26b | 432 | cpp | C++ | libfairygui/proj.ios_mac/libfairygui MAC/libfairygui_MAC.cpp | umair6/FairyGUI-cocos2dx | 7b21889a48b6ff5878b407c2a484670ebd8a4549 | [
"MIT"
] | 308 | 2017-10-15T14:26:45.000Z | 2022-03-22T09:06:57.000Z | libfairygui/proj.ios_mac/libfairygui MAC/libfairygui_MAC.cpp | umair6/FairyGUI-cocos2dx | 7b21889a48b6ff5878b407c2a484670ebd8a4549 | [
"MIT"
] | 73 | 2017-10-25T06:41:57.000Z | 2022-03-21T06:49:38.000Z | libfairygui/proj.ios_mac/libfairygui MAC/libfairygui_MAC.cpp | umair6/FairyGUI-cocos2dx | 7b21889a48b6ff5878b407c2a484670ebd8a4549 | [
"MIT"
] | 108 | 2017-11-01T08:22:00.000Z | 2021-11-19T10:29:29.000Z | /*
* libfairygui_MAC.cpp
* libfairygui MAC
*
* Created by ytom on 17/11/9.
*
*
*/
#include <iostream>
#include "libfairygui_MAC.hpp"
#include "libfairygui_MACPriv.hpp"
void libfairygui_MAC::HelloWorld(const char * s)
{
libfairygui_MACPriv *theObj = new libfairygui_MACPriv;
theObj->HelloWorldPriv(s);
d... | 16.615385 | 57 | 0.699074 | umair6 |
2ff8a072db190083a0bd4de78330e881d25a0bf3 | 239 | cpp | C++ | src/autowiring/CallExtractor.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | src/autowiring/CallExtractor.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | src/autowiring/CallExtractor.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "CallExtractor.h"
#include "AutoPacket.h"
using namespace autowiring;
CESetup<>::CESetup(AutoPacket& packet) :
pshr(packet.GetContext())
{}
| 21.727273 | 65 | 0.732218 | CaseyCarter |
2ffacb880e69077ba5223c6dc2e378a75dfb4f87 | 41,267 | hpp | C++ | libnd4j/include/ops/declarable/helpers/cpu/indexReductions.hpp | steljord2/deeplearning4j | 4653c97a713cc59e41d4313ddbafc5ff527f8714 | [
"Apache-2.0"
] | 2,206 | 2019-06-12T18:57:14.000Z | 2022-03-29T08:14:27.000Z | libnd4j/include/ops/declarable/helpers/cpu/indexReductions.hpp | steljord2/deeplearning4j | 4653c97a713cc59e41d4313ddbafc5ff527f8714 | [
"Apache-2.0"
] | 1,685 | 2019-06-12T17:41:33.000Z | 2022-03-29T21:45:15.000Z | libnd4j/include/ops/declarable/helpers/cpu/indexReductions.hpp | steljord2/deeplearning4j | 4653c97a713cc59e41d4313ddbafc5ff527f8714 | [
"Apache-2.0"
] | 572 | 2019-06-12T22:13:57.000Z | 2022-03-31T16:46:46.000Z | /* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* See the NOTICE file distributed wit... | 45.699889 | 120 | 0.613081 | steljord2 |
2fff5d5a1f67ca52bd17486a69e8e7b2188919cf | 4,437 | cpp | C++ | CPM/SlabSpectrumCode.cpp | FrancisKhan/ALMOST | 06e36666ca18aa06167baac3123dbbe913f74b5d | [
"MIT"
] | 5 | 2020-12-20T15:37:59.000Z | 2021-03-18T18:11:17.000Z | CPM/SlabSpectrumCode.cpp | FrancisKhan/ALMOST | 06e36666ca18aa06167baac3123dbbe913f74b5d | [
"MIT"
] | null | null | null | CPM/SlabSpectrumCode.cpp | FrancisKhan/ALMOST | 06e36666ca18aa06167baac3123dbbe913f74b5d | [
"MIT"
] | null | null | null | #include "BaseSpectrumCode.h"
#include "SlabSpectrumCode.h"
#include "numeric_tools.h"
#include <boost/math/special_functions/expint.hpp>
#include <iostream>
using namespace Eigen;
using namespace Numerics;
using namespace PrintFuncs;
using namespace boost::math;
std::pair<Tensor3d, Tensor4d> SlabSpectrumCode::calcT... | 26.254438 | 103 | 0.506874 | FrancisKhan |
6402960a16739f7901cfd5a7baac7cf3bb5ff7bc | 5,847 | cc | C++ | cpp/normalize.cc | streamcorpus/streamcorpus-filter | 7687aa25260d95b861efa63d7369e6dcd6bb20a4 | [
"MIT"
] | 1 | 2015-11-13T15:48:23.000Z | 2015-11-13T15:48:23.000Z | cpp/normalize.cc | streamcorpus/streamcorpus-filter | 7687aa25260d95b861efa63d7369e6dcd6bb20a4 | [
"MIT"
] | null | null | null | cpp/normalize.cc | streamcorpus/streamcorpus-filter | 7687aa25260d95b861efa63d7369e6dcd6bb20a4 | [
"MIT"
] | null | null | null |
#include <assert.h>
#include <ctype.h>
#include <stddef.h>
#include "normalize.h"
// icu
//#include <normalizer2.h>
#if HAVE_ICU
#include <unicode/normalizer2.h>
#include <unicode/unistr.h>
#include <unicode/utypes.h>
#include <vector>
#include <iostream>
using std::vector;
using std::cerr;
using std::endl;
usin... | 24.880851 | 128 | 0.601676 | streamcorpus |
6408e3aa3f1b0a96ed2553fffb6042fbcf4c2c49 | 5,304 | cpp | C++ | src/test/SlamManagerTest.cpp | AlexeyMerzlyakov/lpslam | e473de4f53c49d2fc3cc123758d0ac987afdabbd | [
"Apache-2.0"
] | 4 | 2021-05-27T21:42:46.000Z | 2022-03-07T04:47:13.000Z | src/test/SlamManagerTest.cpp | AlexeyMerzlyakov/lpslam | e473de4f53c49d2fc3cc123758d0ac987afdabbd | [
"Apache-2.0"
] | 1 | 2021-11-17T08:42:43.000Z | 2021-12-07T03:11:11.000Z | src/test/SlamManagerTest.cpp | AlexeyMerzlyakov/lpslam | e473de4f53c49d2fc3cc123758d0ac987afdabbd | [
"Apache-2.0"
] | 2 | 2021-09-05T11:02:12.000Z | 2021-11-16T01:17:23.000Z |
#include "Manager/SlamManager.h"
#include "Interface/LpSlamTypes.h"
#include <gtest/gtest.h>
#include <string>
#include <sstream>
using namespace LpSlam;
// make sure providing wrong json config is handled
// properly
TEST(slam_manager, read_config_file)
{
const std::string testJsonConfigFile = "lpgf_unitttest_... | 26.787879 | 84 | 0.49227 | AlexeyMerzlyakov |
6409e68ce5c1b3308fd36d1367609cc3a1ac8fbb | 392 | hpp | C++ | include/clpp/map_access.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 5 | 2015-09-08T01:59:26.000Z | 2018-11-26T10:19:29.000Z | include/clpp/map_access.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 6 | 2015-11-29T03:00:11.000Z | 2015-11-29T03:11:52.000Z | include/clpp/map_access.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | null | null | null | #ifndef CLPP_MAP_ACCESS_HPP
#define CLPP_MAP_ACCESS_HPP
#include "clpp/detail/common.hpp"
namespace cl {
enum class MapAccess : cl_map_flags {
read = CL_MAP_READ
, write = CL_MAP_WRITE
, readWrite = CL_MAP_READ | CL_MAP_WRITE
#if defined(CL_VERSION_1_2)
, write... | 21.777778 | 58 | 0.67602 | Robbepop |
640a44df0c5786d5b2701bcc72f0a14a0b2f89bd | 829 | cc | C++ | kth-smallest-element-in-a-sorted-matrix.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | kth-smallest-element-in-a-sorted-matrix.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | kth-smallest-element-in-a-sorted-matrix.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | #include <vector>
class Solution
{
public:
int kthSmallest(std::vector<std::vector<int>> &matrix, int k)
{
std::vector<int> pos(matrix.size(), 0);
int res = 0;
for (int i = 0; i < k; i++)
{
int min_ind = -1;
for (int j = 0; j < pos.size(); j++)
... | 28.586207 | 91 | 0.408926 | ArCan314 |
640ae043eeef8995bda27b9f94ef630cb19df36f | 3,531 | hpp | C++ | orca_shared/include/orca_shared/mw/observation.hpp | clydemcqueen/orca2 | 9a8add5e65201e84af19f037c187d0ce6ec702e3 | [
"BSD-3-Clause"
] | 9 | 2019-07-08T08:55:34.000Z | 2020-11-23T16:57:41.000Z | orca_shared/include/orca_shared/mw/observation.hpp | clydemcqueen/orca2 | 9a8add5e65201e84af19f037c187d0ce6ec702e3 | [
"BSD-3-Clause"
] | 11 | 2019-06-01T00:25:18.000Z | 2021-02-06T18:15:58.000Z | orca_shared/include/orca_shared/mw/observation.hpp | clydemcqueen/orca2 | 9a8add5e65201e84af19f037c187d0ce6ec702e3 | [
"BSD-3-Clause"
] | 3 | 2019-07-19T10:26:34.000Z | 2020-02-03T09:14:08.000Z | // Copyright (c) 2020, Clyde McQueen.
// All rights reserved.
//
// Software License Agreement (BSD License 2.0)
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of source code must retain ... | 26.155556 | 99 | 0.673464 | clydemcqueen |
640afb480f49cf8e501b89bd72d5f630eaaec055 | 6,377 | cpp | C++ | lib/1d/FinSolveUser.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | lib/1d/FinSolveUser.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | lib/1d/FinSolveUser.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <iomanip>
#include "dog_math.h"
#include "stdlib.h"
#include "dogdefs.h"
#include "IniParams.h"
#include "StateVars.h"
using namespace std;
// ------------------------------------------------------------
// Function definitions
void ConSoln( const StateVars& Q );
// Stuff used for a sing... | 33.740741 | 91 | 0.476556 | dcseal |
640e99307016e080ef588472bf9b43881ab0020a | 4,354 | cpp | C++ | tests/stl/concept_check.cpp | Mogball/waterloop-wlib | 41890e0c1b12d0d1df8eecf84a466d4e1558fe9d | [
"MIT"
] | 2 | 2017-11-06T22:57:31.000Z | 2017-12-06T14:51:16.000Z | tests/stl/concept_check.cpp | Mogball/waterloop-wlib | 41890e0c1b12d0d1df8eecf84a466d4e1558fe9d | [
"MIT"
] | 43 | 2017-10-30T04:31:38.000Z | 2017-12-06T05:39:38.000Z | tests/stl/concept_check.cpp | Mogball/waterloop-wlib | 41890e0c1b12d0d1df8eecf84a466d4e1558fe9d | [
"MIT"
] | 8 | 2017-11-02T03:00:19.000Z | 2017-11-25T21:36:02.000Z | #include <gtest/gtest.h>
#include <wlib/strings/String.h>
#include <wlib/stl/Comparator.h>
#include <wlib/stl/HashMap.h>
#include <wlib/stl/OpenMap.h>
#include <wlib/stl/TreeMap.h>
#include <wlib/stl/ArrayList.h>
#include <wlib/stl/HashSet.h>
#include <wlib/stl/OpenSet.h>
#include <wlib/stl/TreeSet.h>
#include <wlib/st... | 35.983471 | 84 | 0.703261 | Mogball |
640f35f24e39299c8c63bb8978e717a69721bccb | 430 | cpp | C++ | archive_cppthreads/thread_creation.cpp | kumar-parveen/csbits | a18c099dbde45a4e0dff0bced9986623b81089a6 | [
"MIT"
] | 1 | 2020-06-14T07:14:45.000Z | 2020-06-14T07:14:45.000Z | archive_cppthreads/thread_creation.cpp | kumar-parveen/csbits | a18c099dbde45a4e0dff0bced9986623b81089a6 | [
"MIT"
] | null | null | null | archive_cppthreads/thread_creation.cpp | kumar-parveen/csbits | a18c099dbde45a4e0dff0bced9986623b81089a6 | [
"MIT"
] | null | null | null | #include<iostream>
#include<thread>
using namespace std;
void fun(){
cout<< "fun function" << endl;
}
class FunObject{
public:
void operator()() const {
cout << "Fun Object" << endl;
}
};
int main(){
cout << endl;
thread t1(fun);
FunObject obj;
thread t2(obj);
thread t3... | 13.4375 | 54 | 0.534884 | kumar-parveen |
640f68e7ce0055e795b52ae3b4162f9d6c40c764 | 1,050 | cpp | C++ | Homework4/Q47/Source.cpp | DeepAQ/Cpp-Homework | 1ad64deb7b25ee35d01c3c9f8a873a54dfff2c21 | [
"MIT"
] | 1 | 2017-10-08T18:16:12.000Z | 2017-10-08T18:16:12.000Z | Homework4/Q47/Source.cpp | DeepAQ/Cpp-Homework | 1ad64deb7b25ee35d01c3c9f8a873a54dfff2c21 | [
"MIT"
] | null | null | null | Homework4/Q47/Source.cpp | DeepAQ/Cpp-Homework | 1ad64deb7b25ee35d01c3c9f8a873a54dfff2c21 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
class Point
{
public:
Point(int x, int y) : x(x), y(y) {}
void Output() const
{
cout << "(" << x << "," << y << ")";
}
double Distance(Point& p) const
{
return round(sqrt(pow(p.x - x, 2) + pow(p.y - y, 2)) * 100.0) / 100.0;
}
private:
int x, y;
};
... | 16.935484 | 78 | 0.506667 | DeepAQ |