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
40e372b192499940daa402e5a935df39436e443e
575
cpp
C++
BZOJ/4269/brute.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
BZOJ/4269/brute.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
BZOJ/4269/brute.cpp
sjj118/OI-Code
964ea6e799d14010f305c7e4aee269d860a781f7
[ "MIT" ]
null
null
null
#include<iostream> #include<cstdio> #define rg register #define rep(i,x,y) for(rg int i=(x);i<=(y);++i) #define per(i,x,y) for(rg int i=(x);i>=(y);--i) using namespace std; namespace brute{ const int N=1e5+10; int n,a[N],fir,sec; void dfs(int k,int d){ if(k==n+1){ if(d>fir)sec=fir,fir=d; if(d<fir&&d>sec)sec=d; ...
17.96875
62
0.587826
sjj118
40e70b7bfb7c911e8a4e27976c29302e33c5e6b5
5,166
cc
C++
google/cloud/storage/examples/storage_bucket_cors_samples.cc
tritone/google-cloud-cpp
fac45971f70205dfeebe88c472c2da1ed4eb8ce5
[ "Apache-2.0" ]
3
2020-05-27T23:21:23.000Z
2020-05-31T22:31:53.000Z
google/cloud/storage/examples/storage_bucket_cors_samples.cc
cjrolo/google-cloud-cpp
bf7a432146952c5f3e8f29b84f5bf85eff69d327
[ "Apache-2.0" ]
2
2020-05-31T22:26:57.000Z
2020-06-19T00:14:10.000Z
google/cloud/storage/examples/storage_bucket_cors_samples.cc
cjrolo/google-cloud-cpp
bf7a432146952c5f3e8f29b84f5bf85eff69d327
[ "Apache-2.0" ]
1
2020-05-09T20:12:05.000Z
2020-05-09T20:12:05.000Z
// Copyright 2020 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 writi...
39.435115
80
0.659892
tritone
40ea82e41ebbe80c9c8ab3aa1d7dc78bde1528aa
37,648
cpp
C++
modules/humanStructure/main.cpp
robotology/assistive-rehab
7c148385010483202d91b92d6b20c09996d6452e
[ "BSD-3-Clause" ]
17
2019-01-28T08:38:42.000Z
2022-03-25T13:23:08.000Z
modules/humanStructure/main.cpp
robotology/assistive-rehab
7c148385010483202d91b92d6b20c09996d6452e
[ "BSD-3-Clause" ]
120
2019-01-29T10:54:53.000Z
2022-03-30T13:18:37.000Z
modules/humanStructure/main.cpp
robotology/assistive-rehab
7c148385010483202d91b92d6b20c09996d6452e
[ "BSD-3-Clause" ]
5
2019-04-29T14:30:40.000Z
2020-09-10T06:29:48.000Z
/* * Copyright (C) 2019 iCub Facility - Istituto Italiano di Tecnologia * Author: Vadim Tikhanoff * email: vadim.tikhanoff@iit.it * Permission is granted to copy, distribute, and/or modify this program * under the terms of the GNU General Public License, version 2 or any * later version published by the Free Sof...
40.877307
171
0.472376
robotology
40eb446c05a02e67af4adcba57f35c035efec6f8
2,383
cpp
C++
firmware/main/DeviceStorage/DeviceStorage.cpp
ARQMS/arqms-device
8278c693d91b8973997a16e4f72b75e7e9a5fb26
[ "MIT" ]
2
2022-02-01T18:04:32.000Z
2022-02-15T08:25:42.000Z
firmware/main/DeviceStorage/DeviceStorage.cpp
ARQMS/arqms-device
8278c693d91b8973997a16e4f72b75e7e9a5fb26
[ "MIT" ]
null
null
null
firmware/main/DeviceStorage/DeviceStorage.cpp
ARQMS/arqms-device
8278c693d91b8973997a16e4f72b75e7e9a5fb26
[ "MIT" ]
null
null
null
#include "DeviceStorage.h" #include "esp_wifi.h" #include "nvs_flash.h" #include "nvs.h" // Maximal 15 characters inkl zero-terminator #define STORAGE_NAMESPACE "HumiConfStore" #define DEVICE_CONFIG "DeviceConfig" DeviceStorage::DeviceStorage() : initialized(false) { } DeviceStorage::~DeviceStorage() { } void ...
26.775281
87
0.73311
ARQMS
40ec0170e297b0bdb99c51fc482814537a0aa0eb
861
cpp
C++
src/SineGenerator.cpp
Silexars/VeritasAudio
2e55914ad040b057fb9ebf7590d7f0b9731e8606
[ "Apache-2.0" ]
null
null
null
src/SineGenerator.cpp
Silexars/VeritasAudio
2e55914ad040b057fb9ebf7590d7f0b9731e8606
[ "Apache-2.0" ]
null
null
null
src/SineGenerator.cpp
Silexars/VeritasAudio
2e55914ad040b057fb9ebf7590d7f0b9731e8606
[ "Apache-2.0" ]
null
null
null
#include <Veritas/Audio/SineGenerator.h> #include <Veritas/Math/Math.h> #include <Veritas/Audio/ValueNode.h> using namespace Veritas; using namespace Audio; using namespace Math; SineGenerator::SineGenerator(uint32 framerate, FORMAT format, float32 timespan) : AudioNode(framerate, format, 1, timespan) , Audi...
26.90625
79
0.67712
Silexars
40f0c02b3b5cfa0a3c0a34bc5bfc2078e2644089
3,096
hpp
C++
Sources/Sampler/py_metropolis_local.hpp
tvieijra/netket
ef3ff32b242f25b6a6ae0f08db1aada85775a2ea
[ "Apache-2.0" ]
10
2019-11-29T02:51:53.000Z
2021-08-14T18:52:33.000Z
Sources/Sampler/py_metropolis_local.hpp
tvieijra/netket
ef3ff32b242f25b6a6ae0f08db1aada85775a2ea
[ "Apache-2.0" ]
2
2018-11-04T14:38:01.000Z
2018-11-08T16:56:10.000Z
Sources/Sampler/py_metropolis_local.hpp
tvieijra/netket
ef3ff32b242f25b6a6ae0f08db1aada85775a2ea
[ "Apache-2.0" ]
6
2019-12-02T07:29:01.000Z
2021-04-04T21:55:21.000Z
// Copyright 2018 The Simons Foundation, 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 // // Unless requi...
38.7
82
0.596899
tvieijra
40f468bf26b85dff12d48bc48200ed2651464e1e
6,277
cpp
C++
debugger/src/common/generic/bus_generic.cpp
hossameldin1995/riscv_vhdl
aab7196a6b9962626ed7314b7c86b93760e76f83
[ "Apache-2.0" ]
1
2020-07-19T19:24:36.000Z
2020-07-19T19:24:36.000Z
debugger/src/common/generic/bus_generic.cpp
hossameldin1995/riscv_vhdl
aab7196a6b9962626ed7314b7c86b93760e76f83
[ "Apache-2.0" ]
null
null
null
debugger/src/common/generic/bus_generic.cpp
hossameldin1995/riscv_vhdl
aab7196a6b9962626ed7314b7c86b93760e76f83
[ "Apache-2.0" ]
1
2021-11-18T17:40:35.000Z
2021-11-18T17:40:35.000Z
/* * Copyright 2018 Sergey Khabarov, sergeykhbr@gmail.com * * 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...
32.863874
76
0.582922
hossameldin1995
40f4f6279abf44999120f22b799aa2ad5f52a6d6
537
hpp
C++
goop/generic/draw_state.hpp
johannes-braun/goop-gfx
f2a5dbac3d18299efdffe900e0e1d615c0c3c98d
[ "MIT" ]
null
null
null
goop/generic/draw_state.hpp
johannes-braun/goop-gfx
f2a5dbac3d18299efdffe900e0e1d615c0c3c98d
[ "MIT" ]
null
null
null
goop/generic/draw_state.hpp
johannes-braun/goop-gfx
f2a5dbac3d18299efdffe900e0e1d615c0c3c98d
[ "MIT" ]
null
null
null
#pragma once #include <memory> #include <utility> #include <GLFW/glfw3.h> namespace goop { class render_target_base; class draw_state_base { public: virtual void from_window(GLFWwindow* window) = 0; virtual std::pair<int, int> current_surface_size() const = 0; virtual int display(re...
26.85
100
0.6946
johannes-braun
40f744d6941bd04d69979915814845b6739623d0
355
cpp
C++
src/platform/other/OutputColorizer.cpp
MaxMutantMayer/wolfram_r184
3ba55e4c10f071384dc174d348d0556c4f462688
[ "MIT" ]
null
null
null
src/platform/other/OutputColorizer.cpp
MaxMutantMayer/wolfram_r184
3ba55e4c10f071384dc174d348d0556c4f462688
[ "MIT" ]
null
null
null
src/platform/other/OutputColorizer.cpp
MaxMutantMayer/wolfram_r184
3ba55e4c10f071384dc174d348d0556c4f462688
[ "MIT" ]
null
null
null
#include "OutputColorizer.hpp" #include <stdio.h> #define YELBG "\x1B[103m" #define RESET "\x1B[0m" namespace wolfram_r184 { namespace colorizer { void Init(void) { ResetOutputColor(); } void ChangeToYellowBackground(void) { printf(YELBG); } void ResetOutputColor(void) { printf(RESET); } } // namespace col...
11.833333
35
0.721127
MaxMutantMayer
40f8802d49a8f9bff95435c94bdd67a1a09b7d86
13,637
cpp
C++
ams/src/v20201229/model/AudioResult.cpp
sinjoywong/tencentcloud-sdk-cpp
1b931d20956a90b15a6720f924e5c69f8786f9f4
[ "Apache-2.0" ]
null
null
null
ams/src/v20201229/model/AudioResult.cpp
sinjoywong/tencentcloud-sdk-cpp
1b931d20956a90b15a6720f924e5c69f8786f9f4
[ "Apache-2.0" ]
null
null
null
ams/src/v20201229/model/AudioResult.cpp
sinjoywong/tencentcloud-sdk-cpp
1b931d20956a90b15a6720f924e5c69f8786f9f4
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
28.529289
134
0.65249
sinjoywong
40fc554c6d22824884cb719b18bfaf3083014fb0
15,838
hh
C++
Async/Locks/range_lock.hh
jlandess/LandessDevCore
3319c36c3232415d6bdba7da8b4896c0638badf2
[ "BSD-3-Clause" ]
2
2021-06-09T00:38:46.000Z
2021-09-04T21:55:33.000Z
Async/Locks/range_lock.hh
jlandess/LandessDevCore
3319c36c3232415d6bdba7da8b4896c0638badf2
[ "BSD-3-Clause" ]
null
null
null
Async/Locks/range_lock.hh
jlandess/LandessDevCore
3319c36c3232415d6bdba7da8b4896c0638badf2
[ "BSD-3-Clause" ]
1
2021-08-30T00:46:12.000Z
2021-08-30T00:46:12.000Z
/* * Copyright (C) 2016 Raphael S. Carvalho * * This program can be distributed under the terms of the GNU GPL. * See the file COPYING. */ #pragma once #if __cplusplus < 201103L #error This file requires compiler and library support for the \ ISO C++ 2011 standard. This support is currently experimental, and mus...
28.588448
115
0.599508
jlandess
40fd0a8609b02bb65ea7a39246ba53b7c63bdf92
3,453
cc
C++
cartographer/mapping_3d/local_trajectory_builder_options.cc
linghusmile/Cartographer_-
28be85c1af353efae802cebb299b8d2486fbd800
[ "Apache-2.0" ]
36
2017-01-17T10:19:30.000Z
2022-02-13T09:11:51.000Z
cartographer/mapping_3d/local_trajectory_builder_options.cc
linghusmile/Cartographer_-
28be85c1af353efae802cebb299b8d2486fbd800
[ "Apache-2.0" ]
null
null
null
cartographer/mapping_3d/local_trajectory_builder_options.cc
linghusmile/Cartographer_-
28be85c1af353efae802cebb299b8d2486fbd800
[ "Apache-2.0" ]
37
2016-10-09T01:52:45.000Z
2022-01-22T10:51:54.000Z
/* * Copyright 2016 The Cartographer 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...
44.844156
80
0.769765
linghusmile
40fdbab2f79cfb42656c4ffef34768559455a270
7,958
cpp
C++
third_party/subzero/crosstest/test_fcmp_main.cpp
sunnycase/swiftshader
592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc
[ "Apache-2.0" ]
1,570
2016-06-30T10:40:04.000Z
2022-03-31T01:47:33.000Z
third_party/subzero/crosstest/test_fcmp_main.cpp
sunnycase/swiftshader
592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc
[ "Apache-2.0" ]
9
2017-01-16T07:09:08.000Z
2020-08-25T18:28:59.000Z
third_party/subzero/crosstest/test_fcmp_main.cpp
sunnycase/swiftshader
592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc
[ "Apache-2.0" ]
253
2016-06-30T18:57:10.000Z
2022-03-25T03:57:40.000Z
//===- subzero/crosstest/test_fcmp_main.cpp - Driver for tests ------------===// // // The Subzero Code Generator // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------...
37.186916
80
0.554788
sunnycase
40fea15f64ce7f4eb436e57ebc018d3c7561b382
912
cpp
C++
CppPool/cpp_d14a/ex02/CommunicationDevice.cpp
667MARTIN/Epitech
81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e
[ "MIT" ]
40
2018-01-28T14:23:27.000Z
2022-03-05T15:57:47.000Z
CppPool/cpp_d14a/ex02/CommunicationDevice.cpp
667MARTIN/Epitech
81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e
[ "MIT" ]
1
2021-10-05T09:03:51.000Z
2021-10-05T09:03:51.000Z
CppPool/cpp_d14a/ex02/CommunicationDevice.cpp
667MARTIN/Epitech
81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e
[ "MIT" ]
73
2019-01-07T18:47:00.000Z
2022-03-31T08:48:38.000Z
#include <iostream> #include <stdexcept> #include "Errors.hpp" #include "CommunicationDevice.hpp" CommunicationDevice::CommunicationDevice(std::istream &input, std::ostream &output) : _api(input, output) { } CommunicationDevice::~CommunicationDevice() { } void Communicat...
22.8
65
0.596491
667MARTIN
dc0030e5d338de53e6a2df695a2c5b427c808c4e
4,710
cpp
C++
gecode/search/meta/rbs.cpp
zoomer/gecode
b16d00b209bba8602233a087be50d2d11ddba5fa
[ "MIT-feh" ]
1
2017-05-10T05:42:43.000Z
2017-05-10T05:42:43.000Z
gecode/search/meta/rbs.cpp
eatstreet/gecode
b16d00b209bba8602233a087be50d2d11ddba5fa
[ "MIT-feh" ]
null
null
null
gecode/search/meta/rbs.cpp
eatstreet/gecode
b16d00b209bba8602233a087be50d2d11ddba5fa
[ "MIT-feh" ]
1
2017-01-27T14:52:22.000Z
2017-01-27T14:52:22.000Z
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Guido Tack <tack@gecode.org> * * Copyright: * Guido Tack, 2012 * * Last modified: * $Date$ by $Author$ * $Revision$ * * This file is part of Gecode, the generic constraint * development environment: ...
28.373494
76
0.597452
zoomer
dc07f13d82d176b096db17e55847fc38ec06d610
882
cc
C++
tests/fullscreen_test.cc
ogukei/cinderella-screen
f3fb188e521cd2d0f960b1ec19d8a28c014d7c53
[ "MIT" ]
null
null
null
tests/fullscreen_test.cc
ogukei/cinderella-screen
f3fb188e521cd2d0f960b1ec19d8a28c014d7c53
[ "MIT" ]
null
null
null
tests/fullscreen_test.cc
ogukei/cinderella-screen
f3fb188e521cd2d0f960b1ec19d8a28c014d7c53
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include "fullscreen.h" TEST(FullscreenTest, FullHD) { SIZE frame_size = {1920, 1080}; SIZE aspect_ratio = {16, 9}; imascs::WindowResizeConstraint constraint(frame_size, aspect_ratio); imascs::WindowResizeConfiguration configuration(constraint); EXPECT_EQ(configuration.Offs...
33.923077
71
0.72449
ogukei
dc0a7b06811f3c617fe87767b087a9dd48f0fd95
4,015
cpp
C++
ndn-cxx/security/pib/impl/key-impl.cpp
Pesa/ndn-cxx
0249d71d97b2f1f5313f24cec7c84450a795f2ca
[ "OpenSSL" ]
null
null
null
ndn-cxx/security/pib/impl/key-impl.cpp
Pesa/ndn-cxx
0249d71d97b2f1f5313f24cec7c84450a795f2ca
[ "OpenSSL" ]
null
null
null
ndn-cxx/security/pib/impl/key-impl.cpp
Pesa/ndn-cxx
0249d71d97b2f1f5313f24cec7c84450a795f2ca
[ "OpenSSL" ]
null
null
null
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2013-2021 Regents of the University of California. * * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). * * ndn-cxx library is free software: you can redistribute it and/or modify it under the ...
29.094203
111
0.757659
Pesa
dc122bc17a5aa63495182c8d7ffaf007e36e886a
22,940
cpp
C++
MSVC/14.24.28314/atlmfc/src/mfc/afxribbonconstructor.cpp
825126369/UCRT
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
[ "MIT" ]
2
2021-01-27T10:19:30.000Z
2021-02-09T06:24:30.000Z
MSVC/14.24.28314/atlmfc/src/mfc/afxribbonconstructor.cpp
825126369/UCRT
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
[ "MIT" ]
null
null
null
MSVC/14.24.28314/atlmfc/src/mfc/afxribbonconstructor.cpp
825126369/UCRT
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
[ "MIT" ]
1
2021-01-27T10:19:36.000Z
2021-01-27T10:19:36.000Z
// This MFC Library source code supports the Microsoft Office Fluent User Interface // (the "Fluent UI") and is provided only as referential material to supplement the // Microsoft Foundation Classes Reference and related electronic documentation // included with the MFC C++ library software. // License terms to c...
35.455951
326
0.770052
825126369
dc12a18b70aa99687230978c7c5db0a42fbaeec2
1,738
hpp
C++
lib/wal/sources/Models/Callback.hpp
EternalRat/Bomberman
d4d0c6dea61f7de1e71c6f182a6bf27407092356
[ "MIT" ]
6
2021-05-27T13:31:37.000Z
2021-11-21T17:35:08.000Z
lib/wal/sources/Models/Callback.hpp
EternalRat/Bomberman
d4d0c6dea61f7de1e71c6f182a6bf27407092356
[ "MIT" ]
174
2021-05-12T14:10:04.000Z
2021-06-26T11:29:39.000Z
lib/wal/sources/Models/Callback.hpp
EternalRat/Bomberman
d4d0c6dea61f7de1e71c6f182a6bf27407092356
[ "MIT" ]
2
2021-05-27T13:28:46.000Z
2021-06-21T12:25:27.000Z
// // Created by Zoe Roux on 5/21/21. // #pragma once #include <functional> #include <utility> #include <unordered_map> namespace WAL { //! @brief A callback where you can subscribe to and emit it. template<typename ...Types> class Callback { private: int _nextID = 0; //! @brief The list of functions to ca...
25.940299
91
0.673188
EternalRat
dc17db0822f6b4a5eacbf109af86da9077db8598
318
hpp
C++
sdk/template/azure-template/inc/azure/template/template_client.hpp
RickWinter/azure-sdk-for-cpp
b4fe751310f53669a941e00aa93072f2d10a4eba
[ "MIT" ]
1
2022-01-19T22:54:41.000Z
2022-01-19T22:54:41.000Z
sdk/template/azure-template/inc/azure/template/template_client.hpp
RickWinter/azure-sdk-for-cpp
b4fe751310f53669a941e00aa93072f2d10a4eba
[ "MIT" ]
null
null
null
sdk/template/azure-template/inc/azure/template/template_client.hpp
RickWinter/azure-sdk-for-cpp
b4fe751310f53669a941e00aa93072f2d10a4eba
[ "MIT" ]
null
null
null
// Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT #pragma once #include <string> namespace Azure { namespace Template { class TemplateClient final { public: std::string ClientVersion() const; int GetValue(int key) const; }; }} // namespace Azure::Template
18.705882
60
0.710692
RickWinter
dc181ff10fbe87cd636b95185e5da62160f77321
1,045
cpp
C++
common/netdispatcher.cpp
andriymoroz-mlnx/sonic-swss-common
e06988dd2c44f6c5200f16c765a0e9a64a0ce274
[ "Apache-2.0" ]
null
null
null
common/netdispatcher.cpp
andriymoroz-mlnx/sonic-swss-common
e06988dd2c44f6c5200f16c765a0e9a64a0ce274
[ "Apache-2.0" ]
null
null
null
common/netdispatcher.cpp
andriymoroz-mlnx/sonic-swss-common
e06988dd2c44f6c5200f16c765a0e9a64a0ce274
[ "Apache-2.0" ]
null
null
null
#include <map> #include "common/netdispatcher.h" #include "common/netmsg.h" using namespace swss; NetDispatcher::NetDispatcher() { } NetDispatcher::~NetDispatcher() { } NetDispatcher& NetDispatcher::getInstance() { static NetDispatcher gInstance; return gInstance; } void NetDispatcher::registerMessageHandl...
22.717391
77
0.721531
andriymoroz-mlnx
dc197f99abb5d8dc7de1ad5d680d36777adb7e85
7,228
cpp
C++
src/brpc/nshead_message.cpp
PeterRK/brpc
55c3177f53adac1bd149c5e80a7609b758ca7492
[ "Apache-2.0" ]
27
2019-04-11T07:57:29.000Z
2022-03-26T11:34:22.000Z
src/brpc/nshead_message.cpp
ww5365/brpc
33538c6bb69f3151863707b2ebdeff74f93e4b65
[ "Apache-2.0" ]
1
2019-08-05T13:29:01.000Z
2019-08-05T13:29:01.000Z
src/brpc/nshead_message.cpp
ww5365/brpc
33538c6bb69f3151863707b2ebdeff74f93e4b65
[ "Apache-2.0" ]
11
2017-12-28T03:22:45.000Z
2022-02-09T09:19:48.000Z
// Copyright (c) 2014 Baidu, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
30.49789
100
0.723298
PeterRK
dc1c59ee5b72b36b13574ac2d51a97bd5c8f25d0
3,848
cc
C++
tests/catch/unit/streamperthread/hipStreamPerThread_DeviceReset.cc
FMarno/HIP
f0e03e9d45d9ad2c15bf5ec4d44452f17216ade8
[ "MIT" ]
null
null
null
tests/catch/unit/streamperthread/hipStreamPerThread_DeviceReset.cc
FMarno/HIP
f0e03e9d45d9ad2c15bf5ec4d44452f17216ade8
[ "MIT" ]
null
null
null
tests/catch/unit/streamperthread/hipStreamPerThread_DeviceReset.cc
FMarno/HIP
f0e03e9d45d9ad2c15bf5ec4d44452f17216ade8
[ "MIT" ]
null
null
null
/* Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. 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, mo...
38.48
89
0.734927
FMarno
dc1fdf8ec44ed66dff452f71f4d58dce7372021a
21,576
cpp
C++
src/OpenSpaceToolkit/Physics/Coordinate/Frame.cpp
robinpdm/open-space-toolkit-physics
b53e5d4287fa6568d700cb8942c9a56d57b8d7cf
[ "Apache-2.0" ]
5
2018-08-20T06:47:42.000Z
2019-07-15T03:36:52.000Z
src/OpenSpaceToolkit/Physics/Coordinate/Frame.cpp
robinpdm/open-space-toolkit-physics
b53e5d4287fa6568d700cb8942c9a56d57b8d7cf
[ "Apache-2.0" ]
24
2018-06-25T08:06:39.000Z
2020-01-05T20:34:02.000Z
src/OpenSpaceToolkit/Physics/Coordinate/Frame.cpp
robinpdm/open-space-toolkit-physics
b53e5d4287fa6568d700cb8942c9a56d57b8d7cf
[ "Apache-2.0" ]
1
2019-09-19T22:44:23.000Z
2019-09-19T22:44:23.000Z
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// @project Open Space Toolkit ▸ Physics /// @file OpenSpaceToolkit/Physics/Coordinate/Frame.cpp /// @author Lucas Brémond <lucas@lo...
37.135972
214
0.484103
robinpdm
dc2dd0f71d21cdacce63ad78eca9c7f0fea41e2d
16,807
hpp
C++
Engine/Include/Sapphire/Maths/Space/Vector3.hpp
SapphireSuite/Sapphire
f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47
[ "MIT" ]
2
2020-03-18T09:06:21.000Z
2020-04-09T00:07:56.000Z
Engine/Include/Sapphire/Maths/Space/Vector3.hpp
SapphireSuite/Sapphire
f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47
[ "MIT" ]
null
null
null
Engine/Include/Sapphire/Maths/Space/Vector3.hpp
SapphireSuite/Sapphire
f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47
[ "MIT" ]
null
null
null
// Copyright 2020 Sapphire development team. All Rights Reserved. #pragma once #ifndef SAPPHIRE_MATHS_VECTOR3_GUARD #define SAPPHIRE_MATHS_VECTOR3_GUARD #include <Maths/Misc/Maths.hpp> namespace Sa { template <typename T> struct Vec2; /** * \file Vector3.hpp * * \brief \b Definition of Sapphire's \b Vector ...
24.716176
114
0.646516
SapphireSuite
dc3183454af39084355539b98e411ef20c085ac2
5,694
cpp
C++
brsdk/process/process_info.cpp
JerryYu512/arss
bd113d7f1ff2f09d210103cd5cc3dcc7c82f99dc
[ "MIT" ]
null
null
null
brsdk/process/process_info.cpp
JerryYu512/arss
bd113d7f1ff2f09d210103cd5cc3dcc7c82f99dc
[ "MIT" ]
null
null
null
brsdk/process/process_info.cpp
JerryYu512/arss
bd113d7f1ff2f09d210103cd5cc3dcc7c82f99dc
[ "MIT" ]
null
null
null
/** * MIT License * * Copyright © 2021 <wotsen>. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documentation files (the “Software”), to deal in the Software without * restriction, including without limitation the rights to use, copy, mod...
26.858491
97
0.624517
JerryYu512
dc3a4310e351c1e2960f88604cd61a26dfaf1f29
449
cpp
C++
array/equilibrium-point.cpp
Nilesh-Das/mustdogfg
bb39fe6eb9dd4964f97a7ab6d4e65e4c3994fc3f
[ "MIT" ]
null
null
null
array/equilibrium-point.cpp
Nilesh-Das/mustdogfg
bb39fe6eb9dd4964f97a7ab6d4e65e4c3994fc3f
[ "MIT" ]
null
null
null
array/equilibrium-point.cpp
Nilesh-Das/mustdogfg
bb39fe6eb9dd4964f97a7ab6d4e65e4c3994fc3f
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int equilibrium(vector<int> arr) { int n = arr.size(); int right = 0; int left = 0; for (int i = 0; i < n; ++i) right += arr[i]; for (int i = 0; i < n; ++i) { right -= arr[i]; if (left == right) return i; left += arr[i]; } return -1; } int main() { in...
12.828571
41
0.496659
Nilesh-Das
dc3d5b62b1f93388bad07ae50183481c5e7382ef
5,837
cpp
C++
CH02/PhilosophersDinner/PhilosophersDinner.cpp
pitaga/CppMultiThread
a103833743aa52e08783fc319c58de1d47b0750f
[ "MIT" ]
null
null
null
CH02/PhilosophersDinner/PhilosophersDinner.cpp
pitaga/CppMultiThread
a103833743aa52e08783fc319c58de1d47b0750f
[ "MIT" ]
null
null
null
CH02/PhilosophersDinner/PhilosophersDinner.cpp
pitaga/CppMultiThread
a103833743aa52e08783fc319c58de1d47b0750f
[ "MIT" ]
null
null
null
#include "stdafx.h" #define BUTTON_CLOSE 100 #define PHILOSOPHER_COUNT 5 #define WM_INVALIDATE WM_USER + 1 typedef struct _tagCOMMUNICATIONOBJECT { HWND hWnd; bool bExitApplication; int iPhilosopherArray[PHILOSOPHER_COUNT]; int PhilosopherCount; } COMMUNICATIONOBJECT, * PCOMMUNICATIONOBJECT; HWND InitInstance(HI...
27.533019
77
0.726743
pitaga
dc3ddee1b4973703946839d088d2b3c338c2717c
12,246
cpp
C++
pass/compiler/lcompiler.cpp
jesec/livehd
1a82dbea1d86dbd1511de588609de320aa4ef6ed
[ "BSD-3-Clause" ]
null
null
null
pass/compiler/lcompiler.cpp
jesec/livehd
1a82dbea1d86dbd1511de588609de320aa4ef6ed
[ "BSD-3-Clause" ]
null
null
null
pass/compiler/lcompiler.cpp
jesec/livehd
1a82dbea1d86dbd1511de588609de320aa4ef6ed
[ "BSD-3-Clause" ]
null
null
null
// This file is distributed under the BSD 3-Clause License. See LICENSE for details. #include "lcompiler.hpp" #include <bits/stdint-uintn.h> Lcompiler::Lcompiler(std::string_view _path, std::string_view _odir, std::string_view _top, bool _gviz) : path(_path), odir(_odir), top(_top), gviz(_gviz), gv(true, false, ...
37.913313
120
0.572105
jesec
dc41a44e4dddc2b92afe8bfaf7e3a052d2c4d91e
556
cpp
C++
src/Geometry.cpp
savageking-io/evelengine
f4f31419077e3467db271e82b05164eafa521eb7
[ "Apache-2.0" ]
null
null
null
src/Geometry.cpp
savageking-io/evelengine
f4f31419077e3467db271e82b05164eafa521eb7
[ "Apache-2.0" ]
null
null
null
src/Geometry.cpp
savageking-io/evelengine
f4f31419077e3467db271e82b05164eafa521eb7
[ "Apache-2.0" ]
null
null
null
#include "Geometry.hpp" namespace EvelEngine { Vector2D::Vector2D(int x, int y) : x(x), y(y) { } void Vector2D::normalize() { int magnitude = this->magnitude(); x /= magnitude; y /= magnitude; } Rect2D::Rect2D(Vector2D position, Vector2D size) : position(position...
17.935484
85
0.555755
savageking-io
dc41a645ac289afd7d40d9b61f7bcb347b7c11f7
2,031
cpp
C++
TinyWebServer/src/webserver.cpp
ho-229/Network-Learn
b87d112b2f93c5f4d0d522629c15f8bba254ff2d
[ "MIT" ]
1
2022-02-01T18:50:18.000Z
2022-02-01T18:50:18.000Z
TinyWebServer/src/webserver.cpp
ho-229/Network-Learn
b87d112b2f93c5f4d0d522629c15f8bba254ff2d
[ "MIT" ]
null
null
null
TinyWebServer/src/webserver.cpp
ho-229/Network-Learn
b87d112b2f93c5f4d0d522629c15f8bba254ff2d
[ "MIT" ]
null
null
null
/** * @author Ho 229 * @date 2021/7/26 */ #include "webserver.h" #include "util/util.h" #include "core/tcpsocket.h" #include "core/sslsocket.h" #include "core/eventloop.h" #include <signal.h> WebServer::WebServer() { #ifdef _WIN32 if(!AbstractSocket::initializatWsa()) throw std::runtime_error("WebSe...
21.378947
78
0.63614
ho-229
dc48d9a939c1ae9e558abd40c697af9ba3d29d75
2,240
cpp
C++
src/xalanc/XPath/XPathFactoryDefault.cpp
rherardi/xml-xalan-c-src_1_10_0
24e6653a617a244e4def60d67b57e70a192a5d4d
[ "Apache-2.0" ]
null
null
null
src/xalanc/XPath/XPathFactoryDefault.cpp
rherardi/xml-xalan-c-src_1_10_0
24e6653a617a244e4def60d67b57e70a192a5d4d
[ "Apache-2.0" ]
null
null
null
src/xalanc/XPath/XPathFactoryDefault.cpp
rherardi/xml-xalan-c-src_1_10_0
24e6653a617a244e4def60d67b57e70a192a5d4d
[ "Apache-2.0" ]
null
null
null
/* * Copyright 1999-2004 The Apache Software 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 requir...
20
114
0.691071
rherardi
dc4993741275b49e93e8a9825193fa0cb39c2349
48,174
cpp
C++
modules/core/src/norm.cpp
zhongshenxuexi/opencv
10ae0c4364ecf1bebf3a80f7a6570142e4da7632
[ "BSD-3-Clause" ]
2
2020-01-05T21:34:22.000Z
2020-07-19T20:13:06.000Z
modules/core/src/norm.cpp
zhongshenxuexi/opencv
10ae0c4364ecf1bebf3a80f7a6570142e4da7632
[ "BSD-3-Clause" ]
null
null
null
modules/core/src/norm.cpp
zhongshenxuexi/opencv
10ae0c4364ecf1bebf3a80f7a6570142e4da7632
[ "BSD-3-Clause" ]
1
2021-07-12T08:03:07.000Z
2021-07-12T08:03:07.000Z
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html #include "precomp.hpp" #include "opencl_kernels_core.hpp" #include "stat.hpp" /*********************************************...
37.114022
187
0.513285
zhongshenxuexi
dc4ac3acb68def72225a5efc8e65a337dfda8be0
11,808
cpp
C++
Mitsuba/src/libcore/track.cpp
mkettune/temporal-gpt
e0a4ca6c6f29ff6c3733f88894289575d77313dc
[ "Unlicense" ]
14
2016-11-30T22:51:45.000Z
2021-10-01T02:16:59.000Z
Mitsuba/src/libcore/track.cpp
mkettune/temporal-gpt
e0a4ca6c6f29ff6c3733f88894289575d77313dc
[ "Unlicense" ]
null
null
null
Mitsuba/src/libcore/track.cpp
mkettune/temporal-gpt
e0a4ca6c6f29ff6c3733f88894289575d77313dc
[ "Unlicense" ]
4
2016-12-01T14:55:48.000Z
2018-10-28T12:44:31.000Z
#include <mitsuba/core/track.h> #include <mitsuba/core/aabb.h> #include <Eigen/SVD> MTS_NAMESPACE_BEGIN AnimatedTransform::AnimatedTransform(const AnimatedTransform *trafo) : m_transform(trafo->m_transform) { m_tracks.reserve(trafo->getTrackCount()); for (size_t i=0; i<trafo->getTrackCount(); ++i) { AbstractAni...
29.969543
102
0.685129
mkettune
dc4de7932dc0cbb48486452a7296468f4f7a63c8
3,571
hpp
C++
source/FAST/Visualization/Renderer.hpp
gjertmagne/FAST
acd6f6f365b8ed9e0cedf5a5de99870669b449b0
[ "BSD-2-Clause" ]
null
null
null
source/FAST/Visualization/Renderer.hpp
gjertmagne/FAST
acd6f6f365b8ed9e0cedf5a5de99870669b449b0
[ "BSD-2-Clause" ]
null
null
null
source/FAST/Visualization/Renderer.hpp
gjertmagne/FAST
acd6f6f365b8ed9e0cedf5a5de99870669b449b0
[ "BSD-2-Clause" ]
null
null
null
#ifndef RENDERER_HPP_ #define RENDERER_HPP_ #include "FAST/ProcessObject.hpp" #include "FAST/Data/BoundingBox.hpp" #include "FAST/Data/SpatialDataObject.hpp" #include <mutex> #include <QOpenGLFunctions_3_3_Core> namespace fast { class View; class BoundingBox; class FAST_EXPORT Renderer : public ProcessObject, pr...
35.71
112
0.639877
gjertmagne
dc5208a0bb484af3fafa27887ae45deb9752a81c
2,991
cc
C++
src/alpaka/plugin-PixelTriplets/alpaka/PixelTrackSoAFromAlpaka.cc
waredjeb/pixeltrack-standalone
d26e4c31db144b0068824ee77b681bd0dd8447c1
[ "Apache-2.0" ]
null
null
null
src/alpaka/plugin-PixelTriplets/alpaka/PixelTrackSoAFromAlpaka.cc
waredjeb/pixeltrack-standalone
d26e4c31db144b0068824ee77b681bd0dd8447c1
[ "Apache-2.0" ]
1
2020-05-04T09:09:55.000Z
2020-05-04T09:09:55.000Z
src/alpaka/plugin-PixelTriplets/alpaka/PixelTrackSoAFromAlpaka.cc
felicepantaleo/pixeltrack-standalone
6bc5445a9ecd2b71831a6c0152bf7a2c3650ba10
[ "Apache-2.0" ]
null
null
null
#include "AlpakaCore/alpakaCommon.h" #include "AlpakaDataFormats/PixelTrackAlpaka.h" #include "Framework/EventSetup.h" #include "Framework/Event.h" #include "Framework/PluginFactory.h" #include "Framework/EDProducer.h" #include "AlpakaCore/ScopedContext.h" namespace ALPAKA_ACCELERATOR_NAMESPACE { #ifdef TODO class...
33.233333
99
0.699432
waredjeb
dc563487001b66759f829838886d6a365ef5ef4f
29,506
cpp
C++
tools/editor/plugins/polygon_2d_editor_plugin.cpp
literaldumb/godot
a2903fc51d1d20eba4dc451bdacbe477d6670163
[ "CC-BY-3.0", "MIT" ]
null
null
null
tools/editor/plugins/polygon_2d_editor_plugin.cpp
literaldumb/godot
a2903fc51d1d20eba4dc451bdacbe477d6670163
[ "CC-BY-3.0", "MIT" ]
null
null
null
tools/editor/plugins/polygon_2d_editor_plugin.cpp
literaldumb/godot
a2903fc51d1d20eba4dc451bdacbe477d6670163
[ "CC-BY-3.0", "MIT" ]
1
2019-01-13T00:44:17.000Z
2019-01-13T00:44:17.000Z
/*************************************************************************/ /* polygon_2d_editor_plugin.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
28.674441
129
0.680031
literaldumb
dc58662834e32c36f7131545d2eda0a1dbcccbc5
2,393
cpp
C++
src/dxgi/dxgi_main.cpp
dports/dxup
e961838d3d0d5db02cd065b782ad890bf876ceef
[ "Zlib" ]
268
2018-04-27T14:05:01.000Z
2022-03-24T03:55:54.000Z
src/dxgi/dxgi_main.cpp
dports/dxup
e961838d3d0d5db02cd065b782ad890bf876ceef
[ "Zlib" ]
49
2018-04-29T09:39:03.000Z
2019-09-14T12:33:44.000Z
src/dxgi/dxgi_main.cpp
dports/dxup
e961838d3d0d5db02cd065b782ad890bf876ceef
[ "Zlib" ]
28
2018-05-16T12:07:49.000Z
2022-02-26T09:19:18.000Z
#include "dxgi_swapchain.h" #include "dxgi_factory.h" typedef HRESULT(__stdcall *CreateDXGIFactory1Func)(REFIID riid, void **ppFactory); using namespace dxup; class DXGIWrapper { public: DXGIWrapper() { HMODULE dxgiModule = LoadLibraryA("dxgi_original.dll"); HMODULE dxgiModuleWindows = LoadLibraryA("C:\\Windo...
25.457447
145
0.76682
dports
dc58bf29276a0af47fef8a09c3fbc0e716ba36ff
4,008
hpp
C++
3rdparty/stout/include/stout/cache.hpp
zagrev/mesos
eefec152dffc4977183089b46fbfe37dbd19e9d7
[ "Apache-2.0" ]
4,537
2015-01-01T03:26:40.000Z
2022-03-31T03:07:00.000Z
3rdparty/stout/include/stout/cache.hpp
zagrev/mesos
eefec152dffc4977183089b46fbfe37dbd19e9d7
[ "Apache-2.0" ]
227
2015-01-29T02:21:39.000Z
2022-03-29T13:35:50.000Z
3rdparty/stout/include/stout/cache.hpp
zagrev/mesos
eefec152dffc4977183089b46fbfe37dbd19e9d7
[ "Apache-2.0" ]
1,992
2015-01-05T12:29:19.000Z
2022-03-31T03:07:07.000Z
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed und...
25.528662
75
0.65519
zagrev
dc5bf861cb6c7104998bc4b10fcee9fb9f8fcfae
8,748
cpp
C++
server_code/query_cursor_basic.cpp
InitialDLab/SampleIndex
c83d6f53f8419cdb78f49935f41eb39447918ced
[ "MIT" ]
3
2017-09-30T22:34:57.000Z
2019-07-18T21:21:35.000Z
server_code/query_cursor_basic.cpp
InitialDLab/SONAR-SamplingIndex
c83d6f53f8419cdb78f49935f41eb39447918ced
[ "MIT" ]
null
null
null
server_code/query_cursor_basic.cpp
InitialDLab/SONAR-SamplingIndex
c83d6f53f8419cdb78f49935f41eb39447918ced
[ "MIT" ]
null
null
null
/* Copyright 2017 InitialDLab 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, distribute, s...
35.417004
116
0.652949
InitialDLab
dc5e89692718e5d1e7bd78a9c5b62b0634e487f4
873
cpp
C++
upload_voltage/libraries/Adafruit_IO_Arduino-master/src/blocks/MapBlock.cpp
sudhi345/mAhTime
bb8b03a6816d18aefe00f6014ff0b127fdea1843
[ "BSD-3-Clause" ]
1
2019-09-21T01:48:09.000Z
2019-09-21T01:48:09.000Z
upload_voltage/libraries/Adafruit_IO_Arduino-master/src/blocks/MapBlock.cpp
sudhi345/mAhTime
bb8b03a6816d18aefe00f6014ff0b127fdea1843
[ "BSD-3-Clause" ]
null
null
null
upload_voltage/libraries/Adafruit_IO_Arduino-master/src/blocks/MapBlock.cpp
sudhi345/mAhTime
bb8b03a6816d18aefe00f6014ff0b127fdea1843
[ "BSD-3-Clause" ]
null
null
null
// // Adafruit invests time and resources providing this open source code. // Please support Adafruit and open source hardware by purchasing // products from Adafruit! // // Copyright (c) 2015-2016 Adafruit Industries // Authors: Tony DiCola, Todd Treece // Licensed under the MIT license. // // All text above must be i...
22.973684
103
0.630011
sudhi345
dc5ecf0d9e9c408941c6d98343b4f4b3142f0ba2
2,969
cpp
C++
automated-tests/src/dali-platform-abstraction/utc-image-loading-load-completion.cpp
pwisbey/dali-adaptor
21d5e77316e53285fa1e210a93b13cf9889e3b54
[ "Apache-2.0" ]
null
null
null
automated-tests/src/dali-platform-abstraction/utc-image-loading-load-completion.cpp
pwisbey/dali-adaptor
21d5e77316e53285fa1e210a93b13cf9889e3b54
[ "Apache-2.0" ]
null
null
null
automated-tests/src/dali-platform-abstraction/utc-image-loading-load-completion.cpp
pwisbey/dali-adaptor
21d5e77316e53285fa1e210a93b13cf9889e3b54
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
36.654321
243
0.7484
pwisbey
dc6100e822bac72e8eaa767344aa985688c31857
34,188
cpp
C++
tests/unit/tests/block_tests.cpp
VIM-Arcange/hive
991c6cdfd195a4f97fc27d3f7f393c7dfb5f1bd2
[ "MIT" ]
283
2020-03-20T02:13:12.000Z
2022-03-31T22:40:07.000Z
tests/unit/tests/block_tests.cpp
mlrequena78/hive
991c6cdfd195a4f97fc27d3f7f393c7dfb5f1bd2
[ "MIT" ]
19
2020-03-20T03:09:16.000Z
2021-08-28T22:35:09.000Z
tests/unit/tests/block_tests.cpp
mlrequena78/hive
991c6cdfd195a4f97fc27d3f7f393c7dfb5f1bd2
[ "MIT" ]
94
2020-03-20T01:53:05.000Z
2022-03-04T11:08:23.000Z
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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 limitat...
37.323144
155
0.700012
VIM-Arcange
dc610e697032f0d5d9c7a6524aeb34984041dec7
11,458
hpp
C++
3rdparty/libprocess/3rdparty/stout/include/stout/duration.hpp
yisun99/yisun
0bef3cdd0de61d4c5e10e1f995caffbaff0c6856
[ "Apache-2.0" ]
5
2016-04-09T00:39:28.000Z
2019-10-08T18:10:24.000Z
include/stout/duration.hpp
euskadi31/stout-cpp
85850386348c9996a9700421993c71b13bf0c24c
[ "Apache-2.0" ]
null
null
null
include/stout/duration.hpp
euskadi31/stout-cpp
85850386348c9996a9700421993c71b13bf0c24c
[ "Apache-2.0" ]
null
null
null
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed und...
27.346062
80
0.637459
yisun99
dc6cca282810a3b1d2e7698ba962062aa9a9be91
2,481
hpp
C++
test/core/point_swap.hpp
cynodelic/tesela
3b86a7b9501c7136d5168c7e314740fa7f72f7a7
[ "BSL-1.0" ]
null
null
null
test/core/point_swap.hpp
cynodelic/tesela
3b86a7b9501c7136d5168c7e314740fa7f72f7a7
[ "BSL-1.0" ]
null
null
null
test/core/point_swap.hpp
cynodelic/tesela
3b86a7b9501c7136d5168c7e314740fa7f72f7a7
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2019 Álvaro Ceballos // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt #ifndef CYNODELIC_TESELA_TEST_CORE_POINT_SWAP_HPP #define CYNODELIC_TESELA_TEST_CORE_POINT_SWAP_HPP CYNODELIC_TESTER_TEST_CASE(point_swa...
32.220779
80
0.680371
cynodelic
dc6cd2aa48636d5639c5eb07fa16b75efc974c3f
11,593
cpp
C++
tests/DrawOpAtlasTest.cpp
Rusino/skia
b3929a01f476c63e5358e97128ba7eb9f14e806e
[ "BSD-3-Clause" ]
1
2019-03-25T15:37:48.000Z
2019-03-25T15:37:48.000Z
tests/DrawOpAtlasTest.cpp
bryphe/esy-skia
9810a02f28270535de10b584bffc536182224c83
[ "BSD-3-Clause" ]
null
null
null
tests/DrawOpAtlasTest.cpp
bryphe/esy-skia
9810a02f28270535de10b584bffc536182224c83
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTypes.h" #include "GrContext.h" #include "GrContextFactory.h" #include "GrContextPriv.h" #include "GrDeferredUpload.h" #include "GrDrawOpAtlas.h" #include "GrDraw...
38.643333
98
0.63038
Rusino
dc6d8aa6d6554e2b426e3e0a64295fff0e95d69c
1,678
hpp
C++
irohad/network/mst_transport.hpp
e-ivkov/iroha
5fec6c585721ec98a7e2e5220ca5525099e5f670
[ "Apache-2.0" ]
1
2020-05-15T10:02:38.000Z
2020-05-15T10:02:38.000Z
irohad/network/mst_transport.hpp
e-ivkov/iroha
5fec6c585721ec98a7e2e5220ca5525099e5f670
[ "Apache-2.0" ]
8
2017-12-25T05:25:58.000Z
2018-01-20T10:12:45.000Z
irohad/network/mst_transport.hpp
e-ivkov/iroha
5fec6c585721ec98a7e2e5220ca5525099e5f670
[ "Apache-2.0" ]
1
2020-07-25T11:15:16.000Z
2020-07-25T11:15:16.000Z
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef IROHA_MST_TRANSPORT_HPP #define IROHA_MST_TRANSPORT_HPP #include <memory> #include "interfaces/common_objects/peer.hpp" #include "multi_sig_transactions/state/mst_state.hpp" namespace iroha { namespace netw...
28.931034
74
0.648391
e-ivkov
dc6f1dd8e442ecb1f4ac1c1cc129613b287e3b5b
4,516
cpp
C++
ass5.cpp
anaghad01/OOP_assignments
6b1dccb9ef214d72b5be986bfc0fdb56a0838723
[ "MIT" ]
null
null
null
ass5.cpp
anaghad01/OOP_assignments
6b1dccb9ef214d72b5be986bfc0fdb56a0838723
[ "MIT" ]
null
null
null
ass5.cpp
anaghad01/OOP_assignments
6b1dccb9ef214d72b5be986bfc0fdb56a0838723
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; template <class T> class vector { T *v; int size,a; public: int i; vector() { int a; cout<<"\nWELCOME !!!\n"; cout<<"\nEnter size of vector: \n"; cin>>a; size=a; v= new T[size]; for(int i=0; i< size; i++) {v[i]=0;} } void...
26.409357
121
0.340788
anaghad01
dc7202f42cdc0224d9e771e14814374826086357
239
cpp
C++
COREDLL/mmsystem_wcecl.cpp
feel-the-dz3n/wcecl
ea29d587056625b40bf942d9cba0fb38cb848aed
[ "MIT" ]
54
2019-07-05T22:03:30.000Z
2022-03-28T08:16:17.000Z
COREDLL/mmsystem_wcecl.cpp
feel-the-dz3n/wcecl
ea29d587056625b40bf942d9cba0fb38cb848aed
[ "MIT" ]
16
2019-06-24T21:29:05.000Z
2020-06-16T19:04:57.000Z
COREDLL/mmsystem_wcecl.cpp
feel-the-dz3n/WinCeCompatLayer
ea29d587056625b40bf942d9cba0fb38cb848aed
[ "MIT" ]
9
2019-07-31T23:49:09.000Z
2022-03-30T15:32:10.000Z
// mmsystem_wcecl.cpp : wce/mmsystem.h functions #include "stdafx.h" // Functions BOOL APIENTRY sndPlaySoundW_WCECL(LPCWSTR lpszSoundName, UINT fuSound) { auto result = sndPlaySoundW(lpszSoundName, fuSound); return result; } // Stubs
18.384615
70
0.76569
feel-the-dz3n
dc787d6417abc7b0023157a0a796afc511f0257b
676
cpp
C++
src/cpp/uml/forkNode.cpp
nemears/uml-cpp
d72c8b5506f391f2b6a5696972ff8da7ec10bd21
[ "MIT" ]
null
null
null
src/cpp/uml/forkNode.cpp
nemears/uml-cpp
d72c8b5506f391f2b6a5696972ff8da7ec10bd21
[ "MIT" ]
1
2022-02-25T18:14:21.000Z
2022-03-10T08:59:55.000Z
src/cpp/uml/forkNode.cpp
nemears/uml-cpp
d72c8b5506f391f2b6a5696972ff8da7ec10bd21
[ "MIT" ]
null
null
null
#include "uml/forkNode.h" #include "uml/activity.h" #include "uml/activityEdge.h" #include "uml/package.h" #include "uml/property.h" #include "uml/generalization.h" #include "uml/dataType.h" #include "uml/association.h" #include "uml/interruptibleActivityRegion.h" #include "uml/stereotype.h" #include "uml/interface.h" ...
20.484848
56
0.70858
nemears
dc7bfda543d2a6308bc27a88a5bbbfde873090f9
2,639
cpp
C++
src/budget/UpdateConditionCommand.cpp
vimofthevine/UnderBudget
5711be8e5da3cb7a78da007fe43cf1ce1b796493
[ "Apache-2.0" ]
2
2016-07-17T02:12:44.000Z
2016-11-22T14:04:55.000Z
src/budget/UpdateConditionCommand.cpp
vimofthevine/UnderBudget
5711be8e5da3cb7a78da007fe43cf1ce1b796493
[ "Apache-2.0" ]
null
null
null
src/budget/UpdateConditionCommand.cpp
vimofthevine/UnderBudget
5711be8e5da3cb7a78da007fe43cf1ce1b796493
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2013 Kyle Treubig * * 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...
28.074468
82
0.604396
vimofthevine
dc86fa125f226279be449d03ff0a504e483cf1ed
808
cpp
C++
testOpenCP/testConcat.cpp
norishigefukushima/OpenCP
63090131ec975e834f85b04e84ec29b2893845b2
[ "BSD-3-Clause" ]
137
2015-03-27T07:11:19.000Z
2022-03-30T05:58:22.000Z
testOpenCP/testConcat.cpp
Pandinosaurus/OpenCP
a5234ed531c610d7944fa14d42f7320442ea34a1
[ "BSD-3-Clause" ]
2
2016-05-18T06:33:16.000Z
2016-07-11T17:39:17.000Z
testOpenCP/testConcat.cpp
Pandinosaurus/OpenCP
a5234ed531c610d7944fa14d42f7320442ea34a1
[ "BSD-3-Clause" ]
43
2015-02-20T15:34:25.000Z
2022-01-27T14:59:37.000Z
#include <opencp.hpp> using namespace std; using namespace cv; using namespace cp; void testConcat() { vector<Mat> kodak24; for (int i = 1; i < 25; i++) { Mat temp = imread(format("img/kodak/kodim%02d.png", i), 1); if (temp.cols < temp.rows)transpose(temp, temp); //imshow("a", temp); waitKey(); kodak24.pus...
21.263158
61
0.632426
norishigefukushima
dc8e36d16102526dc4e41250f03850326765c6fa
492
cpp
C++
LeetCode/374.Guess_Number_Higher_or_Lower.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
9
2017-10-08T16:22:03.000Z
2021-08-20T09:32:17.000Z
LeetCode/374.Guess_Number_Higher_or_Lower.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
null
null
null
LeetCode/374.Guess_Number_Higher_or_Lower.cpp
w181496/OJ
67d1d32770376865eba8a9dd1767e97dae68989a
[ "MIT" ]
2
2018-01-15T16:35:44.000Z
2019-03-21T18:30:04.000Z
// Forward declaration of guess API. // @param num, your guess // @return -1 if my number is lower, 1 if my number is higher, otherwise return 0 int guess(int num); class Solution { public: int guessNumber(int n) { long long int l = 0, r = n; while(l < r) { int mid = (l + r) >> 1; ...
24.6
81
0.497967
w181496
dc8f710144abf3cb27b139a164d56d130cd493e0
5,790
cpp
C++
JammaLib/src/base/GuiElement.cpp
malisimo/Jamma
69831e79a64e652e82aa41f8141e082c3899896b
[ "MIT" ]
null
null
null
JammaLib/src/base/GuiElement.cpp
malisimo/Jamma
69831e79a64e652e82aa41f8141e082c3899896b
[ "MIT" ]
null
null
null
JammaLib/src/base/GuiElement.cpp
malisimo/Jamma
69831e79a64e652e82aa41f8141e082c3899896b
[ "MIT" ]
null
null
null
#include "GuiElement.h" #include "glm/glm.hpp" #include "glm/ext.hpp" using namespace base; using namespace utils; using namespace actions; using graphics::GlDrawContext; using graphics::ImageParams; using resources::ResourceLib; GuiElement::GuiElement(GuiElementParams params) : Drawable(params), Moveable(params), ...
22.97619
122
0.728325
malisimo
dc8fd468fce63293598dc5986824c3127ea39199
746
hpp
C++
src/classes/method.hpp
Zoxc/mirb
14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6
[ "BSD-3-Clause" ]
10
2016-10-06T06:22:20.000Z
2022-02-28T05:33:09.000Z
src/classes/method.hpp
Zoxc/mirb
14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6
[ "BSD-3-Clause" ]
null
null
null
src/classes/method.hpp
Zoxc/mirb
14c2fe2d2a026fb3bb62c883e8839e1078ebc3b6
[ "BSD-3-Clause" ]
3
2018-01-08T03:34:34.000Z
2021-09-12T12:12:22.000Z
#pragma once #include "object.hpp" #include "class.hpp" namespace Mirb { class Method: public Object { public: // Used as DSL for native methods enum Flags { Internal, Singleton, Private }; public: Method(Class *instance_of) : Object(Type::Method, instance_of), block(0), scope(0), s...
17.761905
159
0.620643
Zoxc
dc90e2fc04ea429b06fbccbec9f2498e7c11c6e5
1,522
cpp
C++
src/main.cpp
jamillosantos/mote-vision
31ebec5ced714fb497cb2740c9a65e66a2408078
[ "MIT" ]
null
null
null
src/main.cpp
jamillosantos/mote-vision
31ebec5ced714fb497cb2740c9a65e66a2408078
[ "MIT" ]
16
2016-07-08T17:35:32.000Z
2016-07-24T02:11:07.000Z
src/main.cpp
jamillosantos/mote-vision
31ebec5ced714fb497cb2740c9a65e66a2408078
[ "MIT" ]
null
null
null
/** * @author J. Santos <jamillo@gmail.com> * @date July 11, 2016 */ #include <http/server.h> #include "application.h" #include <boost/program_options.hpp> #include <boost/filesystem.hpp> #include <json/reader.h> #include <json/value.h> using namespace mote; Application app; void handleInt(int sig) { BOOST_LO...
22.057971
116
0.673456
jamillosantos
dc952481a2cc7d4b45562b5039c0eb82d0b732e0
27,145
cc
C++
src/libxtp/gwbse/gwbse.cc
rubengerritsen/xtp
af4db53ca99853280d0e2ddc7f3c41bce8ae6e91
[ "Apache-2.0" ]
null
null
null
src/libxtp/gwbse/gwbse.cc
rubengerritsen/xtp
af4db53ca99853280d0e2ddc7f3c41bce8ae6e91
[ "Apache-2.0" ]
null
null
null
src/libxtp/gwbse/gwbse.cc
rubengerritsen/xtp
af4db53ca99853280d0e2ddc7f3c41bce8ae6e91
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2009-2020 The VOTCA Development Team * (http://www.votca.org) * * 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 * * ...
36.193333
80
0.603684
rubengerritsen
dc98d23bb301283ee98b5306d1beb954f93f4cf6
21,152
hh
C++
dstorm/include/dstorm_any2.hh
malt2/malt2
e3407e8483857979d191044d377674a2eb251508
[ "BSD-3-Clause" ]
null
null
null
dstorm/include/dstorm_any2.hh
malt2/malt2
e3407e8483857979d191044d377674a2eb251508
[ "BSD-3-Clause" ]
null
null
null
dstorm/include/dstorm_any2.hh
malt2/malt2
e3407e8483857979d191044d377674a2eb251508
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (C) 2017 NEC Laboratories America, Inc. ("NECLA"). All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. An additional grant of patent rights * can be found in the PATENTS file in the same directory. */ #ifnde...
54.797927
145
0.553565
malt2
dc9d41d23ce950310202cd085a0b172f6392e8b7
51
cpp
C++
Refureku/Library/Source/Object.cpp
Angelysse/Refureku
1f01107c94cd81998068ce3fde02bb21c180166b
[ "MIT" ]
143
2020-04-07T21:38:21.000Z
2022-03-30T01:06:33.000Z
Refureku/Library/Source/Object.cpp
Angelysse/Refureku
1f01107c94cd81998068ce3fde02bb21c180166b
[ "MIT" ]
7
2021-03-30T07:26:21.000Z
2022-03-28T16:31:02.000Z
Refureku/Library/Source/Object.cpp
Angelysse/Refureku
1f01107c94cd81998068ce3fde02bb21c180166b
[ "MIT" ]
11
2020-06-06T09:45:12.000Z
2022-01-25T17:17:55.000Z
#include "Refureku/Object.h" using namespace rfk;
12.75
28
0.764706
Angelysse
dc9f8640e8e2c66788d71354eee766cea6db8ac3
47,680
cpp
C++
src/Base/PositionTagGroupItem.cpp
team-FisMa/choreonoid
83265e8ffe96eb0aec977be7a43cd8c218fc5905
[ "MIT" ]
66
2020-03-11T14:06:01.000Z
2022-03-23T23:18:27.000Z
src/Base/PositionTagGroupItem.cpp
team-FisMa/choreonoid
83265e8ffe96eb0aec977be7a43cd8c218fc5905
[ "MIT" ]
12
2020-07-23T06:13:11.000Z
2022-01-13T14:25:01.000Z
src/Base/PositionTagGroupItem.cpp
team-FisMa/choreonoid
83265e8ffe96eb0aec977be7a43cd8c218fc5905
[ "MIT" ]
18
2020-07-17T15:57:54.000Z
2022-03-29T13:18:59.000Z
#include "PositionTagGroupItem.h" #include "ItemManager.h" #include "SceneWidget.h" #include "SceneWidgetEventHandler.h" #include "PositionDragger.h" #include "CoordinateFrameMarker.h" #include "Dialog.h" #include "Buttons.h" #include "CheckBox.h" #include "LazyCaller.h" #include "Archive.h" #include "PutPropertyFuncti...
27.014164
119
0.672273
team-FisMa
dca0a556c73c1bd59e8c05acc74bd7406b28e47a
619
cpp
C++
flood-fill/flood-fill.cpp
sharmishtha2401/leetcode
0c7389877afb64b3ff277f075ed9c87b24cb587b
[ "MIT" ]
1
2022-02-14T07:57:07.000Z
2022-02-14T07:57:07.000Z
flood-fill/flood-fill.cpp
sharmishtha2401/leetcode
0c7389877afb64b3ff277f075ed9c87b24cb587b
[ "MIT" ]
null
null
null
flood-fill/flood-fill.cpp
sharmishtha2401/leetcode
0c7389877afb64b3ff277f075ed9c87b24cb587b
[ "MIT" ]
null
null
null
class Solution { public: vector<vector<int>> floodFill(vector<vector<int>>& image, int sr, int sc, int color) { if(image[sr][sc]!=color) change(image, sr, sc, image[sr][sc], color); return image; } void change(vector<vector<int>>& image, int i, int j, int og, int color) { ...
28.136364
90
0.526656
sharmishtha2401
dca0a879a4562be72836224867b8c99995e8b0ef
3,208
cpp
C++
src/lib/crypto/OSSLDHPublicKey.cpp
spacekpe/SoftHSMv2
fd5bdfd8289c5a156627cb8dfad574ec1055bdc4
[ "BSD-2-Clause" ]
null
null
null
src/lib/crypto/OSSLDHPublicKey.cpp
spacekpe/SoftHSMv2
fd5bdfd8289c5a156627cb8dfad574ec1055bdc4
[ "BSD-2-Clause" ]
null
null
null
src/lib/crypto/OSSLDHPublicKey.cpp
spacekpe/SoftHSMv2
fd5bdfd8289c5a156627cb8dfad574ec1055bdc4
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (c) 2010 SURFnet bv * 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 condition...
25.664
79
0.685162
spacekpe
dca1a8cabccbdc7ca7be7d0ff42fd6f8e1318bf2
551
cpp
C++
LinkingToDLL/MathFuncsDll/MathFuncsDll.cpp
edetoc/samples
3223b3111f77fd6cedad31b4685dd19615e91725
[ "MIT" ]
2
2019-12-16T09:31:27.000Z
2021-09-03T01:12:24.000Z
LinkingToDLL/MathFuncsDll/MathFuncsDll.cpp
edetoc/samples
3223b3111f77fd6cedad31b4685dd19615e91725
[ "MIT" ]
1
2021-08-23T14:52:46.000Z
2021-08-23T14:52:46.000Z
LinkingToDLL/MathFuncsDll/MathFuncsDll.cpp
edetoc/samples
3223b3111f77fd6cedad31b4685dd19615e91725
[ "MIT" ]
null
null
null
// MathFuncsDll.cpp : Defines the exported functions for the DLL application. // #include "stdafx.h" #include "MathFuncsDll.h" #include <stdexcept> using namespace std; namespace MathFuncs { double MyMathFuncs::Add(double a, double b) { return a + b; } double MyMathFuncs::Subtract(double a, double b) { re...
15.305556
78
0.664247
edetoc
dca260c7612b197bf23bfa54870b6428015e5963
4,814
cpp
C++
test/unit/alphabet/aminoacid/aa27_test.cpp
SGSSGene/seqan3
ab9ccb94d02c2f27b9b73b134ee2713de91bf722
[ "CC0-1.0", "CC-BY-4.0" ]
null
null
null
test/unit/alphabet/aminoacid/aa27_test.cpp
SGSSGene/seqan3
ab9ccb94d02c2f27b9b73b134ee2713de91bf722
[ "CC0-1.0", "CC-BY-4.0" ]
null
null
null
test/unit/alphabet/aminoacid/aa27_test.cpp
SGSSGene/seqan3
ab9ccb94d02c2f27b9b73b134ee2713de91bf722
[ "CC0-1.0", "CC-BY-4.0" ]
null
null
null
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
38.206349
116
0.537599
SGSSGene
dca88b857836702bc865159d18ab471157781016
6,048
hh
C++
dist_apps/experimental/pr_bc_v2/pr_bc_v2_sync.hh
maleen89/Galois
babc933c4306a17a41f355d510734e17af4affff
[ "BSD-3-Clause" ]
null
null
null
dist_apps/experimental/pr_bc_v2/pr_bc_v2_sync.hh
maleen89/Galois
babc933c4306a17a41f355d510734e17af4affff
[ "BSD-3-Clause" ]
null
null
null
dist_apps/experimental/pr_bc_v2/pr_bc_v2_sync.hh
maleen89/Galois
babc933c4306a17a41f355d510734e17af4affff
[ "BSD-3-Clause" ]
null
null
null
/* * This file belongs to the Galois project, a C++ library for exploiting parallelism. * The code is being released under the terms of the 3-Clause BSD License (a * copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
36.878049
87
0.643353
maleen89
dca8b571dc0770fdd3c243f9b606499f42d0f4b4
220
hh
C++
extern/polymesh/src/polymesh/pm.hh
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
extern/polymesh/src/polymesh/pm.hh
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
extern/polymesh/src/polymesh/pm.hh
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
#pragma once // Includes most commonly used polymesh features #include <polymesh/Mesh.hh> #include <polymesh/properties.hh> #include <polymesh/formats.hh> #include <polymesh/objects.hh> #include <polymesh/hash.hh>
15.714286
48
0.759091
rovedit
dca966cd02fb2937dbe63203ebd356f39c5c136d
421
cpp
C++
HackerRank/Interview Preparation Kit/String Manipulation/AlternatingCharacters.cpp
Anni1123/competitive-programming
bfcc72ff3379d09dee22f30f71751a32c0cc511b
[ "MIT" ]
1
2021-04-03T13:33:00.000Z
2021-04-03T13:33:00.000Z
HackerRank/Interview Preparation Kit/String Manipulation/AlternatingCharacters.cpp
iamsuryakant/competitive-programming
413000f5bc4a627407e1335c35dcdbee516e8cc1
[ "MIT" ]
null
null
null
HackerRank/Interview Preparation Kit/String Manipulation/AlternatingCharacters.cpp
iamsuryakant/competitive-programming
413000f5bc4a627407e1335c35dcdbee516e8cc1
[ "MIT" ]
2
2021-01-23T14:35:48.000Z
2021-03-15T05:04:24.000Z
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int q; string s; cin >> q; while (q--) { cin >> s; int ans = 0; for (int i = 0; i < s.size() - 1; i++) { if (s[i] == ...
19.136364
49
0.391924
Anni1123
dcad8c0031e013da49c7475886ecbe9d36bd7622
2,330
cc
C++
mars/sdt/sdt_logic.cc
20150723/mars
916f895d5d6c31a1f4720b189bb0a83e92e0161c
[ "Apache-2.0", "BSD-2-Clause" ]
325
2016-12-28T14:19:10.000Z
2021-11-24T07:01:51.000Z
mars/sdt/sdt_logic.cc
wblzu/mars
4396e753aee627a92b55ae7a1bc12b4d6f4f6445
[ "Apache-2.0" ]
2
2019-10-22T02:57:02.000Z
2019-10-31T23:30:17.000Z
mars/sdt/sdt_logic.cc
pengjinning/mars
227aff64a5b819555091a7d6eae6727701e9fff0
[ "Apache-2.0", "BSD-2-Clause" ]
114
2016-12-28T14:36:15.000Z
2021-12-08T09:05:50.000Z
// Tencent is pleased to support the open source community by making Mars available. // Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. // Licensed under the MIT License (the "License"); you may not use this file except in // compliance with the License. You may obtain a copy of the Licens...
26.179775
123
0.742918
20150723
dcb62a421c9dac7d3123ec069e665e3a3f73f446
2,233
cpp
C++
common/src/constants.cpp
tyoma/micro-profiler
32f6981c643b93997752d414f631fd6684772b28
[ "MIT" ]
194
2015-07-27T09:54:24.000Z
2022-03-21T20:50:22.000Z
common/src/constants.cpp
tyoma/micro-profiler
32f6981c643b93997752d414f631fd6684772b28
[ "MIT" ]
63
2015-08-19T16:42:33.000Z
2022-02-22T20:30:49.000Z
common/src/constants.cpp
tyoma/micro-profiler
32f6981c643b93997752d414f631fd6684772b28
[ "MIT" ]
33
2015-08-21T17:48:03.000Z
2022-02-23T03:54:17.000Z
// Copyright (c) 2011-2021 by Artem A. Gevorkyan (gevorkyan.org) // // 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, ...
38.5
101
0.744738
tyoma
dcb7f2b0929a6c474a1e85cc56a4b526b48e08e3
2,402
cpp
C++
HAPI/optix/main.cpp
Geerthan/HAPI-GPU
a9ffe70b1b43392344fef2ba552965b4eb8cc4a2
[ "MIT" ]
null
null
null
HAPI/optix/main.cpp
Geerthan/HAPI-GPU
a9ffe70b1b43392344fef2ba552965b4eb8cc4a2
[ "MIT" ]
null
null
null
HAPI/optix/main.cpp
Geerthan/HAPI-GPU
a9ffe70b1b43392344fef2ba552965b4eb8cc4a2
[ "MIT" ]
null
null
null
/* nvcc -ptx -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\Hostx64\x64" -I "C:\ProgramData\NVIDIA Corporation\OptiX SDK 6.0.0\include" bounding_box.cu http://blog.three-eyed-games.com/2018/05/03/gpu-ray-tracing-in-unity-part-1/ */ #include <string> #include "Rende...
32.90411
201
0.745629
Geerthan
dcbd7f8c807e528787d051e65e39103f23aaeceb
11,017
hxx
C++
src/algorithm/frames.hxx
ikalevatykh/pinocchio
2c22ca240e78e5a6c20e7b2cb6c44e7a45658d38
[ "BSD-2-Clause-FreeBSD" ]
1
2020-04-07T07:23:34.000Z
2020-04-07T07:23:34.000Z
src/algorithm/frames.hxx
ikalevatykh/pinocchio
2c22ca240e78e5a6c20e7b2cb6c44e7a45658d38
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/algorithm/frames.hxx
ikalevatykh/pinocchio
2c22ca240e78e5a6c20e7b2cb6c44e7a45658d38
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
// // Copyright (c) 2015-2020 CNRS INRIA // #ifndef __pinocchio_frames_hxx__ #define __pinocchio_frames_hxx__ #include "pinocchio/algorithm/kinematics.hpp" #include "pinocchio/algorithm/jacobian.hpp" #include "pinocchio/algorithm/check.hpp" namespace pinocchio { template<typename Scalar, int Options, template<ty...
41.573585
139
0.651992
ikalevatykh
dcbd8f2721d67d564bc26a2a38ae1464d690b7f1
8,879
cpp
C++
openstudiocore/src/model/CoilSystemCoolingWaterHeatExchangerAssisted.cpp
BIMDataHub/OpenStudio-1
13ec115b00aa6a2af1426ceb26446f05014c8c8d
[ "blessing" ]
4
2015-05-02T21:04:15.000Z
2015-10-28T09:47:22.000Z
openstudiocore/src/model/CoilSystemCoolingWaterHeatExchangerAssisted.cpp
BIMDataHub/OpenStudio-1
13ec115b00aa6a2af1426ceb26446f05014c8c8d
[ "blessing" ]
null
null
null
openstudiocore/src/model/CoilSystemCoolingWaterHeatExchangerAssisted.cpp
BIMDataHub/OpenStudio-1
13ec115b00aa6a2af1426ceb26446f05014c8c8d
[ "blessing" ]
1
2020-11-12T21:52:36.000Z
2020-11-12T21:52:36.000Z
/********************************************************************** * Copyright (c) 2008-2015, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
44.395
168
0.721703
BIMDataHub
dcbd99d4a42cc15ce1b6e28f863dd3cabf2e8f31
1,380
cpp
C++
taichi/analysis/check_fields_registered.cpp
zf38473013/taichi
ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb
[ "MIT" ]
1
2020-04-08T08:55:13.000Z
2020-04-08T08:55:13.000Z
taichi/analysis/check_fields_registered.cpp
zf38473013/taichi
ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb
[ "MIT" ]
null
null
null
taichi/analysis/check_fields_registered.cpp
zf38473013/taichi
ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb
[ "MIT" ]
null
null
null
#include "taichi/ir/ir.h" TLANG_NAMESPACE_BEGIN class FieldsRegisteredChecker : public BasicStmtVisitor { public: using BasicStmtVisitor::visit; FieldsRegisteredChecker() { allow_undefined_visitor = true; invoke_default_visitor = true; } void visit(Stmt *stmt) override { TI_ASSERT(stmt->fields_...
22.622951
57
0.708696
zf38473013
dcbf5af72cce16de6a893ab0df7f244b86d27cac
5,575
cpp
C++
src/fdm/models/fdm_Stabilizer.cpp
fe5084/mscsim
2b0025a9e4bda69b0d83147b1e701375fef437f8
[ "MIT" ]
1
2020-02-11T08:17:23.000Z
2020-02-11T08:17:23.000Z
src/fdm/models/fdm_Stabilizer.cpp
fe5084/mscsim
2b0025a9e4bda69b0d83147b1e701375fef437f8
[ "MIT" ]
null
null
null
src/fdm/models/fdm_Stabilizer.cpp
fe5084/mscsim
2b0025a9e4bda69b0d83147b1e701375fef437f8
[ "MIT" ]
null
null
null
/****************************************************************************//* * Copyright (C) 2020 Marek M. Cel * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, ...
36.92053
106
0.547982
fe5084
dcbfcfbeee2b7aad507d1fe0b233d413bdea18d6
1,178
cpp
C++
src/9000/9370.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
8
2018-04-12T15:54:09.000Z
2020-06-05T07:41:15.000Z
src/9000/9370.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
src/9000/9370.cpp14.cpp
upple/BOJ
e6dbf9fd17fa2b458c6a781d803123b14c18e6f1
[ "MIT" ]
null
null
null
#include <cstdio> #include <vector> #include <queue> #include <algorithm> using namespace std; int INF = 111111111; vector<vector<pair<int, int> > >adj; void dijk(int start, vector<int> &dist) { priority_queue<pair<int, int> > pq; dist[start] = 0; pq.push({ 0, start }); while (!pq.empty()) { int cur = pq.top()...
18.698413
59
0.511036
upple
dcc08d6db537229fa01af75ceb1a75486172d55b
783
hpp
C++
ragnarok/ds10/branches/network/netbase.hpp
kaina/sandbox
15a464fe1a1f17f4d475947ceeffa41df4b3eba5
[ "WTFPL" ]
5
2015-10-30T12:12:37.000Z
2018-04-23T15:46:26.000Z
ragnarok/ds10/trunk/network/netbase.hpp
yuiAs/sandbox
15a464fe1a1f17f4d475947ceeffa41df4b3eba5
[ "WTFPL" ]
null
null
null
ragnarok/ds10/trunk/network/netbase.hpp
yuiAs/sandbox
15a464fe1a1f17f4d475947ceeffa41df4b3eba5
[ "WTFPL" ]
2
2016-11-29T10:14:53.000Z
2017-10-23T18:05:11.000Z
#ifndef NETBASE_HPP_3F0121D8_C486_401c_88F4_771280BFC85D #define NETBASE_HPP_3F0121D8_C486_401c_88F4_771280BFC85D #include <winsock2.h> //////////////////////////////////////////////////////////////////////////////// class CNetBase { u_char* m_backBuf; int m_backLen; int m_backCnt; enum { MAX_BUF...
17.4
81
0.619413
kaina
dcc351e4b0764504e8127d5d7ce7b734cfbf6f81
17,775
cpp
C++
connectivity/lorawan/lorastack/mac/LoRaMacCrypto.cpp
Lljiro/mbed-os
3af9e4ece78b84fe95ca65b5433bb6452f41aac2
[ "Apache-2.0" ]
null
null
null
connectivity/lorawan/lorastack/mac/LoRaMacCrypto.cpp
Lljiro/mbed-os
3af9e4ece78b84fe95ca65b5433bb6452f41aac2
[ "Apache-2.0" ]
null
null
null
connectivity/lorawan/lorastack/mac/LoRaMacCrypto.cpp
Lljiro/mbed-os
3af9e4ece78b84fe95ca65b5433bb6452f41aac2
[ "Apache-2.0" ]
null
null
null
/** * / _____) _ | | * ( (____ _____ ____ _| |_ _____ ____| |__ * \____ \| ___ | (_ _) ___ |/ ___) _ \ * _____) ) ____| | | || |_| ____( (___| | | | * (______/|_____)_|_|_| \__)_____)\____)_| |_| * (C)2013 Semtech * ___ _____ _ ___ _ _____ ___ ___ ___ ___ * / __|_ ...
28.57717
107
0.576653
Lljiro
dcc5f9d504b814705fe38a5ef790a15c5bf2b30b
3,413
cpp
C++
src/engine/audio/src/audio_mixer.cpp
sunhay/halley
fc4f153956cc34d7fa02b76850e22183b8e30e25
[ "Apache-2.0" ]
null
null
null
src/engine/audio/src/audio_mixer.cpp
sunhay/halley
fc4f153956cc34d7fa02b76850e22183b8e30e25
[ "Apache-2.0" ]
null
null
null
src/engine/audio/src/audio_mixer.cpp
sunhay/halley
fc4f153956cc34d7fa02b76850e22183b8e30e25
[ "Apache-2.0" ]
null
null
null
#include "audio_mixer.h" #include "halley/utils/utils.h" #include "audio_mixer_sse.h" #include "audio_mixer_avx.h" using namespace Halley; void AudioMixer::mixAudio(gsl::span<const AudioSamplePack> src, gsl::span<AudioSamplePack> dst, float gain0, float gain1) { const size_t nPacks = size_t(src.size()); if (gain0 ...
24.553957
121
0.648696
sunhay
dcc75e92d1b0bef4585d1d90c1dbb0e40bb9aa41
25,261
cpp
C++
src/game/WorldHandlers/LFGHandler.cpp
tbayart/mangostwoserver
fc26f650b9f72c1f7376207f9b9d3fdf66387a1e
[ "PostgreSQL", "Zlib", "OpenSSL" ]
1
2021-04-30T05:18:37.000Z
2021-04-30T05:18:37.000Z
src/game/WorldHandlers/LFGHandler.cpp
tbayart/mangostwoserver
fc26f650b9f72c1f7376207f9b9d3fdf66387a1e
[ "PostgreSQL", "Zlib", "OpenSSL" ]
null
null
null
src/game/WorldHandlers/LFGHandler.cpp
tbayart/mangostwoserver
fc26f650b9f72c1f7376207f9b9d3fdf66387a1e
[ "PostgreSQL", "Zlib", "OpenSSL" ]
null
null
null
/** * MaNGOS is a full featured server for World of Warcraft, supporting * the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8 * * Copyright (C) 2005-2017 MaNGOS project <https://getmangos.eu> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gen...
35.379552
130
0.562131
tbayart
dccb449154a126cd7fe82ce4158a0bf3639bc2a7
16,263
hpp
C++
test/algorithms/buffer/test_buffer_svg.hpp
onlykzy/geometry
be6794b606d25cf53fe2fd312f9b5fe30ddda6fb
[ "BSL-1.0" ]
null
null
null
test/algorithms/buffer/test_buffer_svg.hpp
onlykzy/geometry
be6794b606d25cf53fe2fd312f9b5fe30ddda6fb
[ "BSL-1.0" ]
null
null
null
test/algorithms/buffer/test_buffer_svg.hpp
onlykzy/geometry
be6794b606d25cf53fe2fd312f9b5fe30ddda6fb
[ "BSL-1.0" ]
null
null
null
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test Helper // Copyright (c) 2010-2015 Barend Gehrels, Amsterdam, the Netherlands. // This file was modified by Oracle on 2020-2021. // Modifications copyright (c) 2020-2021 Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, o...
32.921053
126
0.562811
onlykzy
dccd3305767f42e9f303f34f8eaa85baf1f5f45f
670
cpp
C++
engine/Engine.UI/src/ui/control/ControlParent.cpp
Kartikeyapan598/Ghurund
bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea
[ "MIT" ]
66
2018-12-16T21:03:36.000Z
2022-03-26T12:23:57.000Z
engine/Engine.UI/src/ui/control/ControlParent.cpp
Kartikeyapan598/Ghurund
bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea
[ "MIT" ]
57
2018-04-24T20:53:01.000Z
2021-02-21T12:14:20.000Z
engine/Engine.UI/src/ui/control/ControlParent.cpp
Kartikeyapan598/Ghurund
bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea
[ "MIT" ]
7
2019-07-16T08:25:25.000Z
2022-03-21T08:29:46.000Z
#include "ghuipch.h" #include "ControlParent.h" #include "core/reflection/Property.h" namespace Ghurund::UI { const Ghurund::Core::Type& ControlParent::GET_TYPE() { using namespace Ghurund::Core; static auto PROPERTY_FOCUS = Property<ControlParent, Control*>("Focus", &getFocus, &setFocus); ...
30.454545
120
0.676119
Kartikeyapan598
dcce5854944c4dd15df9063e1b3311d673c7145b
28,937
cpp
C++
src/openms/source/ANALYSIS/ID/PILISModelGenerator.cpp
mrurik/OpenMS
3bf48247423dc28a7df7b12b72fbc7751965c321
[ "Zlib", "Apache-2.0" ]
null
null
null
src/openms/source/ANALYSIS/ID/PILISModelGenerator.cpp
mrurik/OpenMS
3bf48247423dc28a7df7b12b72fbc7751965c321
[ "Zlib", "Apache-2.0" ]
null
null
null
src/openms/source/ANALYSIS/ID/PILISModelGenerator.cpp
mrurik/OpenMS
3bf48247423dc28a7df7b12b72fbc7751965c321
[ "Zlib", "Apache-2.0" ]
null
null
null
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
50.766667
204
0.615544
mrurik
dcd08add3e77bcc5eef000d7274663a04977ea69
10,913
cpp
C++
src/tests/class_tests/openms/source/ConsensusID_test.cpp
aiche/OpenMS
5d212db863ff1ef48b3a70fe4d556ef179ae4f49
[ "Zlib", "Apache-2.0" ]
null
null
null
src/tests/class_tests/openms/source/ConsensusID_test.cpp
aiche/OpenMS
5d212db863ff1ef48b3a70fe4d556ef179ae4f49
[ "Zlib", "Apache-2.0" ]
null
null
null
src/tests/class_tests/openms/source/ConsensusID_test.cpp
aiche/OpenMS
5d212db863ff1ef48b3a70fe4d556ef179ae4f49
[ "Zlib", "Apache-2.0" ]
null
null
null
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
32.19174
78
0.65115
aiche
dcd2b7beca4d9af31d73352c94323eaecff7c248
3,851
cpp
C++
src/data/dictionary.cpp
jonasstrandstedt/owl
463e2761cf1407378d5ca18bd176f316c5c65151
[ "MIT" ]
null
null
null
src/data/dictionary.cpp
jonasstrandstedt/owl
463e2761cf1407378d5ca18bd176f316c5c65151
[ "MIT" ]
null
null
null
src/data/dictionary.cpp
jonasstrandstedt/owl
463e2761cf1407378d5ca18bd176f316c5c65151
[ "MIT" ]
null
null
null
/***************************************************************************************** * * * owl * * ...
38.89899
92
0.511555
jonasstrandstedt
dcd2c836a9fba413b998d20d38725a5a0fe2806c
10,904
cpp
C++
heap_storage.cpp
klundeen/5300-Hyena
268a4f31a028215f1182ef0b5c14c770870324f5
[ "MIT" ]
null
null
null
heap_storage.cpp
klundeen/5300-Hyena
268a4f31a028215f1182ef0b5c14c770870324f5
[ "MIT" ]
null
null
null
heap_storage.cpp
klundeen/5300-Hyena
268a4f31a028215f1182ef0b5c14c770870324f5
[ "MIT" ]
1
2021-05-02T22:26:14.000Z
2021-05-02T22:26:14.000Z
// heap_storage.cpp #include "heap_storage.h" #include <cstring> #include <map> #include <vector> // test function -- returns true if all tests pass bool test_heap_storage() { ColumnNames column_names; column_names.push_back("a"); column_names.push_back("b"); ColumnAttributes column_attributes; ColumnAttribut...
23.004219
180
0.641049
klundeen
dcd4e3d875f6d2d46662a71f11df9abe700b509a
801
hpp
C++
source/framework/algorithm/include/lue/framework/algorithm/default_policies/aspect.hpp
pcraster/lue
e64c18f78a8b6d8a602b7578a2572e9740969202
[ "MIT" ]
1
2019-04-14T15:51:12.000Z
2019-04-14T15:51:12.000Z
source/framework/algorithm/include/lue/framework/algorithm/default_policies/aspect.hpp
pcraster/lue
e64c18f78a8b6d8a602b7578a2572e9740969202
[ "MIT" ]
262
2016-08-11T10:12:02.000Z
2020-10-13T18:09:16.000Z
source/framework/algorithm/include/lue/framework/algorithm/default_policies/aspect.hpp
pcraster/lue
e64c18f78a8b6d8a602b7578a2572e9740969202
[ "MIT" ]
1
2020-03-11T09:49:41.000Z
2020-03-11T09:49:41.000Z
#pragma once #include "lue/framework/algorithm/aspect.hpp" namespace lue { namespace policy::aspect { template< typename Element> using DefaultPolicies = policy::DefaultSpatialOperationPolicies< AllValuesWithinDomain<Element>, OutputElements<Element>, ...
24.272727
72
0.615481
pcraster
dcd720273ba24ae52d22547a011c5c2021a699c9
442
cpp
C++
02_Programming_Fundamentals/06_Programming_Fundamentals_CPP/02_FunctionsArraysAndVectors/Demos/15.Returning-STL-Vectors-from-Functions.cpp
Knightwalker/Knowledgebase
00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161
[ "MIT" ]
null
null
null
02_Programming_Fundamentals/06_Programming_Fundamentals_CPP/02_FunctionsArraysAndVectors/Demos/15.Returning-STL-Vectors-from-Functions.cpp
Knightwalker/Knowledgebase
00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161
[ "MIT" ]
null
null
null
02_Programming_Fundamentals/06_Programming_Fundamentals_CPP/02_FunctionsArraysAndVectors/Demos/15.Returning-STL-Vectors-from-Functions.cpp
Knightwalker/Knowledgebase
00c6dea5e52c0d2b0fe0dc3b7b5c298d445f0161
[ "MIT" ]
null
null
null
#include<iostream> #include<vector> #include<cmath> using namespace std; vector<double> getSquareRoots(int from, int to) { vector<double> roots; for (int i = from; i <= to; i++) { roots.push_back(sqrt(i)); } return roots; } void print(vector<double> numbers) { for (int number : numbers) {...
17
49
0.58371
Knightwalker
dcd72522fddf796a6fba66e293079926bec596a9
2,427
cpp
C++
examples/tsp/Main.cpp
sk177y/sexy
d3384044f91f442341edb0928267c86d80697c33
[ "Apache-2.0" ]
5
2018-03-12T14:39:44.000Z
2021-12-21T23:31:53.000Z
examples/tsp/Main.cpp
sk177y/sexy
d3384044f91f442341edb0928267c86d80697c33
[ "Apache-2.0" ]
null
null
null
examples/tsp/Main.cpp
sk177y/sexy
d3384044f91f442341edb0928267c86d80697c33
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <sstream> #include <stdlib.h> using namespace std; #include "PropertiesMap.h" #include "mtrand.h" #include "AlgorithmTSPAIS.h" #include "AlgorithmTSPAIS2.h" #include "AlgorithmTSPGA.h" #include "AlgorithmTSPGA2.h" /** * Prints default usage of the program. */ void usage(){ cout << "Usa...
25.819149
111
0.624227
sk177y
dcdd933b1d352927f8e42dab3db7ccfac35f5dfa
372
cpp
C++
Projects/009 first letter of string/first letter of string/main.cpp
RoundBearChoi/CPP_Tutorial_Projects
19b52a054f4c8c83ed7f09d834109ddb57e423ad
[ "Unlicense" ]
2
2020-11-02T18:47:33.000Z
2021-04-12T15:28:14.000Z
Projects/009 first letter of string/first letter of string/main.cpp
RoundBearChoi/CPP_Tutorial_Projects
19b52a054f4c8c83ed7f09d834109ddb57e423ad
[ "Unlicense" ]
null
null
null
Projects/009 first letter of string/first letter of string/main.cpp
RoundBearChoi/CPP_Tutorial_Projects
19b52a054f4c8c83ed7f09d834109ddb57e423ad
[ "Unlicense" ]
3
2021-02-15T13:54:36.000Z
2021-11-23T06:22:51.000Z
#include <iostream> int main() { std::string yourString; while (yourString[0] != 'q') { std::cout << "say something: "; std::cin >> yourString; std::cout << std::endl; std::cout << "you said: " << yourString << std::endl; std::cout << "first letter: " << yourString[0] << std::endl; std::cin.clear(); ...
18.6
62
0.575269
RoundBearChoi
dcde3b3d1c3e8513e9d6929a1b029d0708650e72
2,247
cpp
C++
Sources/engine/vulkangfx/private/Device.cpp
Zino2201/ZinoEngine
519d34a1d2b09412c8e2cba6b685b4556ec2c2ac
[ "MIT" ]
20
2019-12-22T20:40:22.000Z
2021-07-06T00:23:45.000Z
Sources/engine/vulkangfx/private/Device.cpp
Zino2201/ZinoEngine
519d34a1d2b09412c8e2cba6b685b4556ec2c2ac
[ "MIT" ]
32
2020-07-11T15:51:13.000Z
2021-06-07T10:25:07.000Z
Sources/engine/vulkangfx/private/Device.cpp
Zino2201/ZinoEngine
519d34a1d2b09412c8e2cba6b685b4556ec2c2ac
[ "MIT" ]
3
2019-12-19T17:04:04.000Z
2021-05-17T01:49:59.000Z
#include "Device.h" #include <set> #include "Queue.h" #include "VulkanBackend.h" namespace ze::gfx::vulkan { Device::Device(const vk::PhysicalDevice& in_phys_device) : physical_device(in_phys_device) { /** Get queue family indices */ { std::vector<vk::QueueFamilyProperties> queue_families = physical_device.getQu...
26.75
108
0.721851
Zino2201
dce41568e4034733e0af04c7610f35da93f2bdee
335
cpp
C++
_includes/leet162/leet162.cpp
mingdaz/leetcode
64f2e5ad0f0446d307e23e33a480bad5c9e51517
[ "MIT" ]
null
null
null
_includes/leet162/leet162.cpp
mingdaz/leetcode
64f2e5ad0f0446d307e23e33a480bad5c9e51517
[ "MIT" ]
8
2019-12-19T04:46:05.000Z
2022-02-26T03:45:22.000Z
_includes/leet162/leet162.cpp
mingdaz/leetcode
64f2e5ad0f0446d307e23e33a480bad5c9e51517
[ "MIT" ]
null
null
null
class Solution { public: int findPeakElement(vector<int>& nums) { if(nums.size()==1) return 0; int n = nums.size(); if(nums[0]>nums[1]) return 0; if(nums[n-1]>nums[n-2]) return n-1; for(int i=1;i<n-1;i++){ while(nums[i]>nums[i-1]) i++; return i-1; ...
23.928571
44
0.471642
mingdaz
dce470ebca5be3782233b543b7f9cc5ed1d2d438
49,427
cpp
C++
Samples/Win7Samples/multimedia/mediafoundation/topoedit/tedutil/PropertyView.cpp
windows-development/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
8
2017-04-30T17:38:27.000Z
2021-11-29T00:59:03.000Z
Samples/Win7Samples/multimedia/mediafoundation/topoedit/tedutil/PropertyView.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
null
null
null
Samples/Win7Samples/multimedia/mediafoundation/topoedit/tedutil/PropertyView.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
2
2020-08-11T13:21:49.000Z
2021-09-01T10:41:51.000Z
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // Copyright (c) Microsoft Corporation. All rights reserved #include "stdafx.h" ...
35.584593
172
0.638194
windows-development
dce698bc29562a04b19df7cb68f758544c555697
371
cpp
C++
C++/First Steps in Coding - Basics of C++/While Loops/Max Number.cpp
EduardV777/Softuni-Python-Exercises
79db667028aea7dfecb3dbbd834c752180c50f44
[ "Unlicense" ]
null
null
null
C++/First Steps in Coding - Basics of C++/While Loops/Max Number.cpp
EduardV777/Softuni-Python-Exercises
79db667028aea7dfecb3dbbd834c752180c50f44
[ "Unlicense" ]
null
null
null
C++/First Steps in Coding - Basics of C++/While Loops/Max Number.cpp
EduardV777/Softuni-Python-Exercises
79db667028aea7dfecb3dbbd834c752180c50f44
[ "Unlicense" ]
null
null
null
#include <cstdlib> #include <iostream> #include <string> using namespace std; int main() { int maxNum, k=0; while (true) { string currNum; cin >> currNum; if (currNum=="Stop"){ cout << maxNum; break; } else { int number = stoi(currNum); if (k == 0) { maxNum = number; k++; } if (max...
14.269231
30
0.549865
EduardV777
dce6f145b7343fc30d6edb7f743b3ae53efc872a
21,745
hpp
C++
viennadata/storage.hpp
viennadata/viennadata-dev
4c64fa8e131dcc6d2574b5b9456d8c8d4456b1aa
[ "MIT" ]
1
2015-09-13T03:51:41.000Z
2015-09-13T03:51:41.000Z
viennadata/storage.hpp
viennadata/viennadata-dev
4c64fa8e131dcc6d2574b5b9456d8c8d4456b1aa
[ "MIT" ]
null
null
null
viennadata/storage.hpp
viennadata/viennadata-dev
4c64fa8e131dcc6d2574b5b9456d8c8d4456b1aa
[ "MIT" ]
null
null
null
#ifndef VIENNADATA_STORAGE_HPP #define VIENNADATA_STORAGE_HPP /* ======================================================================= Copyright (c) 2011-2013, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU Wien. ...
50.925059
164
0.699333
viennadata
dce6f68eda4cb1f4187d74f94f049975a08e1050
518
cpp
C++
DirectUI/Dispatcher.cpp
oven425/DirectUI
00bc0f018a045cbe1709e893ed10a37e2fe1e4e4
[ "MIT" ]
2
2021-01-14T00:54:58.000Z
2021-01-14T00:55:01.000Z
DirectUI/Dispatcher.cpp
oven425/DirectUI
00bc0f018a045cbe1709e893ed10a37e2fe1e4e4
[ "MIT" ]
null
null
null
DirectUI/Dispatcher.cpp
oven425/DirectUI
00bc0f018a045cbe1709e893ed10a37e2fe1e4e4
[ "MIT" ]
null
null
null
#include "pch.h" #include "Dispatcher.h" using namespace DirectUI; using namespace Threading; Dispatcher::Dispatcher() { //this->m_hTimerQueue = ::CreateTimerQueue(); //::CreateTimerQueueTimer(&this->m_hTimeUI, this->m_hTimerQueue, &Dispatcher::UITimer, this, 10000, 0, 0); this->m_Pool = thread(&Dispatcher::Pollin...
19.185185
107
0.710425
oven425
dce8c11b63f254f1c21fdf6289ab97f4a0d67afa
10,522
cpp
C++
examples/49_SimpleTessellation/SimpleTessellationDemo.cpp
zsb534923374/VulkanDemos
3bda2a8f29cfb69ffdb1bed5a53ffa1c4a2c1dc5
[ "MIT" ]
1
2019-10-12T15:07:38.000Z
2019-10-12T15:07:38.000Z
examples/49_SimpleTessellation/SimpleTessellationDemo.cpp
Guangehhhh/VulkanDemos
d3b9cc113aa3657689a0e7828892fb754f73361f
[ "MIT" ]
null
null
null
examples/49_SimpleTessellation/SimpleTessellationDemo.cpp
Guangehhhh/VulkanDemos
d3b9cc113aa3657689a0e7828892fb754f73361f
[ "MIT" ]
null
null
null
#include "Common/Common.h" #include "Common/Log.h" #include "Demo/DVKCommon.h" #include "Math/Vector4.h" #include "Math/Matrix4x4.h" #include <vector> class SimpleTessellationDemo : public DemoBase { public: SimpleTessellationDemo(int32 width, int32 height, const char* title, const std::vector<std::string>& cmdLi...
26.370927
140
0.715358
zsb534923374
dceb2f7e8901d4355e71a2291388fac0b1ca53cd
30,141
cc
C++
util/makeMapSectioned.cc
MartinezTorres/Edelweiss
ef7eeaa1b8262e85f708c672fbb3310a6912be0c
[ "MIT" ]
2
2021-01-20T13:12:31.000Z
2021-02-24T17:00:36.000Z
util/makeMapSectioned.cc
MartinezTorres/Edelweiss
ef7eeaa1b8262e85f708c672fbb3310a6912be0c
[ "MIT" ]
1
2021-04-07T20:19:37.000Z
2021-04-07T20:19:37.000Z
util/makeMapSectioned.cc
MartinezTorres/Edelweiss
ef7eeaa1b8262e85f708c672fbb3310a6912be0c
[ "MIT" ]
1
2021-02-24T17:00:43.000Z
2021-02-24T17:00:43.000Z
//////////////////////////////////////////////////////////////////////// // Build MSX1 palette // // Manuel Martinez (salutte@gmail.com) // // FLAGS: -std=gnu++14 -g `pkg-config opencv --cflags --libs` -Ofast -lpthread -fopenmp -lgomp -Wno-format-nonliteral #include <opencv2/core.hpp> #include <opencv2/imgproc.hpp> #i...
39.555118
170
0.438605
MartinezTorres
dcece1ecc68c0dcea13dbd246f3977a328a8f631
4,874
cpp
C++
offline_compiler/utilities/windows/seh_exception.cpp
cwang64/compute-runtime
440520ffdc5807574f0abfbf64b3790d1c0547e4
[ "MIT" ]
3
2019-09-20T23:26:36.000Z
2019-10-03T17:44:12.000Z
offline_compiler/utilities/windows/seh_exception.cpp
cwang64/compute-runtime
440520ffdc5807574f0abfbf64b3790d1c0547e4
[ "MIT" ]
1
2019-09-17T08:06:24.000Z
2019-09-17T08:06:24.000Z
offline_compiler/utilities/windows/seh_exception.cpp
cwang64/compute-runtime
440520ffdc5807574f0abfbf64b3790d1c0547e4
[ "MIT" ]
3
2019-05-16T07:22:51.000Z
2019-11-11T03:05:32.000Z
/* * Copyright (C) 2018-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "seh_exception.h" #include "runtime/os_interface/os_library.h" #include <memory> #include <string> #pragma warning(push) #pragma warning(disable : 4091) #include <dbghelp.h> #pragma warning(pop) #include <windows.h> ...
29.185629
145
0.669881
cwang64
dceea8de8f2da38e8984527c0ff0a1d17fc9356a
2,088
cpp
C++
full_code/Input Combos/Motor2D/ctEntities.cpp
Wilhelman/Input-Combos
9aeb5621c0148318caf7cfbc31972856d149587e
[ "MIT" ]
null
null
null
full_code/Input Combos/Motor2D/ctEntities.cpp
Wilhelman/Input-Combos
9aeb5621c0148318caf7cfbc31972856d149587e
[ "MIT" ]
null
null
null
full_code/Input Combos/Motor2D/ctEntities.cpp
Wilhelman/Input-Combos
9aeb5621c0148318caf7cfbc31972856d149587e
[ "MIT" ]
null
null
null
#include "ctApp.h" #include "ctRender.h" #include "ctEntities.h" #include "ctTextures.h" #include "Entity.h" #include "ctAudio.h" #include "ctWindow.h" #include "ctLog.h" #include "ctFadeToBlack.h" #include "Player.h" ctEntities::ctEntities() { name = "entities"; } // Destructor ctEntities::~ctEntities() { LOG("U...
16.704
83
0.660441
Wilhelman
fd5f0ef43bf1e26a62d1702c83614711a8de2b9c
1,069
cpp
C++
vtools/Sample/src/Application.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
8
2017-12-21T07:00:16.000Z
2020-04-02T09:05:55.000Z
vtools/Sample/src/Application.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
null
null
null
vtools/Sample/src/Application.cpp
SergeyStrukov/CCore-3-xx
820507e78f8aa35ca05761e00e060c8f64c59af5
[ "BSL-1.0" ]
1
2020-03-30T09:54:18.000Z
2020-03-30T09:54:18.000Z
/* Application.cpp */ //---------------------------------------------------------------------------------------- // // Project: Sample 1.00 // // License: Boost Software License - Version 1.0 - August 17th, 2003 // // see http://www.boost.org/LICENSE_1_0.txt or the local copy // // Copyright (c) 2017 Serg...
25.452381
90
0.565014
SergeyStrukov