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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20419ff541ea6aea735c6d5731d25609bde79291 | 2,752 | cpp | C++ | cpp_harness/HarnessUtils.cpp | 13ofClubs/parHarness | 1e82dfabc64af8bced353a5236d1888def8f5dab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cpp_harness/HarnessUtils.cpp | 13ofClubs/parHarness | 1e82dfabc64af8bced353a5236d1888def8f5dab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cpp_harness/HarnessUtils.cpp | 13ofClubs/parHarness | 1e82dfabc64af8bced353a5236d1888def8f5dab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Copyright 2015 University of Rochester
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 wr... | 22.193548 | 75 | 0.640625 | 13ofClubs |
20444e6d590c5db5d1d6fec05643d8a6815ecde1 | 1,360 | cpp | C++ | BOJ/boj13549_2.cpp | SukJinKim/Algo-Rhythm | db78de61643e9110ff0e721124a744e3b0ae27f0 | [
"MIT"
] | null | null | null | BOJ/boj13549_2.cpp | SukJinKim/Algo-Rhythm | db78de61643e9110ff0e721124a744e3b0ae27f0 | [
"MIT"
] | null | null | null | BOJ/boj13549_2.cpp | SukJinKim/Algo-Rhythm | db78de61643e9110ff0e721124a744e3b0ae27f0 | [
"MIT"
] | null | null | null | #include <array>
#include <deque>
#include <cstdio>
#include <limits>
#include <algorithm>
using namespace std;
const int MIN = 0;
const int MAX = (int)1e5;
const int INF = numeric_limits<int>::max();
array<int, MAX + 1> Time;
deque<int> dq;
bool inRange(int pos)
{
return (MIN <= pos && pos <= MAX);
}
int main... | 21.25 | 73 | 0.544118 | SukJinKim |
20499339390607b74e0dd42cd5506c14ce40cde5 | 1,230 | cpp | C++ | examples/cpp/reflection/nested_set_member/src/main.cpp | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 18 | 2021-09-17T16:41:14.000Z | 2022-02-01T15:22:20.000Z | examples/cpp/reflection/nested_set_member/src/main.cpp | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 36 | 2021-09-21T10:22:16.000Z | 2022-01-22T10:25:11.000Z | examples/cpp/reflection/nested_set_member/src/main.cpp | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 6 | 2021-09-26T11:06:32.000Z | 2022-01-21T15:07:05.000Z | #include <nested_set_member.h>
#include <iostream>
struct Point {
float x;
float y;
};
struct Line {
Point start;
Point stop;
};
int main(int, char *[]) {
flecs::world ecs;
ecs.component<Point>()
.member<float>("x")
.member<float>("y");
ecs.component<Line>()
.mem... | 24.117647 | 64 | 0.462602 | teh-cmc |
204f6459fdb6c2bea4b77a8d5378c20ebf959e0c | 6,821 | cpp | C++ | pcim.cpp | cshelton/pcim-plain | e48fa9ce3130f38a6b8da95d3fe121070d66d27d | [
"MIT"
] | 2 | 2018-09-17T10:03:12.000Z | 2021-01-10T03:09:14.000Z | pcim.cpp | cshelton/pcim-plain | e48fa9ce3130f38a6b8da95d3fe121070d66d27d | [
"MIT"
] | null | null | null | pcim.cpp | cshelton/pcim-plain | e48fa9ce3130f38a6b8da95d3fe121070d66d27d | [
"MIT"
] | 2 | 2018-04-13T01:37:28.000Z | 2019-02-01T16:44:33.000Z | #include "pcim.h"
#include <algorithm>
#include <cmath>
#include <mutex>
#include <future>
#include <queue>
#include "serial.h"
using namespace std;
inline vector<vartrajrange> torange(const vector<traj> &data) {
vector<vartrajrange> ret;
if (data.empty()) return ret;
int nv = data[0].size();
for(auto &x : data) ... | 27.393574 | 94 | 0.634218 | cshelton |
20556f7754c6f75e2f7ae5e881b60b422dae31dd | 7,378 | cpp | C++ | src/diffdrive_orientation.cpp | srmanikandasriram/ev3-ros | 8233c90934defd1db0616f8f83bc576e898c2a26 | [
"MIT"
] | 3 | 2016-11-30T19:23:16.000Z | 2020-07-13T12:16:08.000Z | src/diffdrive_orientation.cpp | srmanikandasriram/ev3-ros | 8233c90934defd1db0616f8f83bc576e898c2a26 | [
"MIT"
] | null | null | null | src/diffdrive_orientation.cpp | srmanikandasriram/ev3-ros | 8233c90934defd1db0616f8f83bc576e898c2a26 | [
"MIT"
] | 3 | 2016-11-30T19:23:19.000Z | 2019-06-19T14:46:18.000Z |
/*the srv file headers_ev3/go_to_goal.h should be of the form
float64 vecx
float64 vecy
---
float64 x
float64 y
float64 tf
This porgram enables the robot to orient itself along the vector (vecx,vecy) passed as request in rosservice call
*/
//Header files required to run ROS
#include <ros.h>
#include <nav_msgs... | 27.325926 | 149 | 0.561941 | srmanikandasriram |
2057181232b97d1b2157c851f24e60a42af468e8 | 197 | cpp | C++ | Content/Simulation/BodyInfo.cpp | jodavis42/NBody | 91a40ca60625494a27c517590d12df4a77f776b4 | [
"Unlicense"
] | null | null | null | Content/Simulation/BodyInfo.cpp | jodavis42/NBody | 91a40ca60625494a27c517590d12df4a77f776b4 | [
"Unlicense"
] | null | null | null | Content/Simulation/BodyInfo.cpp | jodavis42/NBody | 91a40ca60625494a27c517590d12df4a77f776b4 | [
"Unlicense"
] | 1 | 2018-12-07T22:19:06.000Z | 2018-12-07T22:19:06.000Z | #include "SimulationPrecompiled.hpp"
void BodyInfo::Load(Cog* cog)
{
mCog = cog;
mPosition = cog->has(Transform)->GetWorldTranslation();
mMass = cog->has(RigidBody)->GetMass();
}
| 19.7 | 58 | 0.659898 | jodavis42 |
20594cf85d943b944ec1da286269fbb073d497e5 | 1,544 | hpp | C++ | include/codegen/include/GlobalNamespace/ObstacleType.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/ObstacleType.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/ObstacleType.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Enum
#include "System/Enum.hpp"
// Completed inc... | 40.631579 | 76 | 0.709845 | Futuremappermydud |
205aaacb2624ffa1bf1f848f953d7ab4eaae8a7f | 18,461 | cpp | C++ | ardupilot/libraries/AP_HAL_Linux/RCInput_Navio.cpp | quadrotor-IITKgp/emulate_GPS | 3c888d5b27b81fb17e74d995370f64bdb110fb65 | [
"MIT"
] | 1 | 2021-07-17T11:37:16.000Z | 2021-07-17T11:37:16.000Z | ardupilot/libraries/AP_HAL_Linux/RCInput_Navio.cpp | arl-kgp/emulate_GPS | 3c888d5b27b81fb17e74d995370f64bdb110fb65 | [
"MIT"
] | null | null | null | ardupilot/libraries/AP_HAL_Linux/RCInput_Navio.cpp | arl-kgp/emulate_GPS | 3c888d5b27b81fb17e74d995370f64bdb110fb65 | [
"MIT"
] | null | null | null | #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_NAVIO
#include "GPIO.h"
#include "RCInput_Navio.h"
#include "Util_RPI.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdint.h>
#include <sys/ioctl.h>
#include <pthread.h>
#include <string.h>
... | 35.70793 | 200 | 0.657386 | quadrotor-IITKgp |
205c73ec2df4c3f9c85c202af7aaad2b4ad2eddb | 196 | cpp | C++ | src/better_ChatEntry.cpp | ddarknut/better | 47d801c4fa8de6c32dff933de7d25b559421ce09 | [
"Apache-2.0"
] | 5 | 2020-11-21T03:44:17.000Z | 2021-07-10T22:51:28.000Z | src/better_ChatEntry.cpp | ddarknut/better | 47d801c4fa8de6c32dff933de7d25b559421ce09 | [
"Apache-2.0"
] | null | null | null | src/better_ChatEntry.cpp | ddarknut/better | 47d801c4fa8de6c32dff933de7d25b559421ce09 | [
"Apache-2.0"
] | 1 | 2021-03-24T20:33:57.000Z | 2021-03-24T20:33:57.000Z | #include <cstdlib>
#include "better_ChatEntry.h"
#include "better_alloc.h"
void ChatEntry_free(ChatEntry* ce)
{
if (ce->name) BETTER_FREE(ce->name);
if (ce->msg) BETTER_FREE(ce->msg);
}
| 19.6 | 40 | 0.688776 | ddarknut |
205d4591ca401d01d1c69f660ebf63b30638c5a4 | 1,203 | cpp | C++ | LeetCode/cpp/127.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/cpp/127.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/cpp/127.cpp | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution {
public:
int ladderLength(string beginWord, string endWord, vector<string> &wordList) {
int n = beginWord.size(), count = 0;
if (n != endWord.size())
return 0;
unordered_map<string, bool> words;
for (auto &l:wordList)
words[l] = true;
q... | 30.846154 | 82 | 0.375727 | ZintrulCre |
205dbf81d1b2330b449caf7633e049408c5c1eba | 189 | cpp | C++ | recipes/imagl/all/test_package/example.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 562 | 2019-09-04T12:23:43.000Z | 2022-03-29T16:41:43.000Z | recipes/imagl/all/test_package/example.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 9,799 | 2019-09-04T12:02:11.000Z | 2022-03-31T23:55:45.000Z | recipes/imagl/all/test_package/example.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 1,126 | 2019-09-04T11:57:46.000Z | 2022-03-31T16:43:38.000Z | #include <iostream>
#include <imaGL/imaGL.h>
int main() {
try {
imaGL::CImaGL img("notfound.png");
}
catch(...) {
}
std::cout << "It works!\n";
return 0;
}
| 14.538462 | 42 | 0.502646 | rockandsalt |
206014f9e1269c5b0983deaea1dd932752f2a279 | 2,447 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcReferentTypeEnum.cpp | AlexVlk/ifcplusplus | 2f8cd5457312282b8d90b261dbf8fb66e1c84057 | [
"MIT"
] | 426 | 2015-04-12T10:00:46.000Z | 2022-03-29T11:03:02.000Z | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcReferentTypeEnum.cpp | AlexVlk/ifcplusplus | 2f8cd5457312282b8d90b261dbf8fb66e1c84057 | [
"MIT"
] | 124 | 2015-05-15T05:51:00.000Z | 2022-02-09T15:25:12.000Z | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcReferentTypeEnum.cpp | AlexVlk/ifcplusplus | 2f8cd5457312282b8d90b261dbf8fb66e1c84057 | [
"MIT"
] | 214 | 2015-05-06T07:30:37.000Z | 2022-03-26T16:14:04.000Z | /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include <map>
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/IFC4/include/IfcReferentTypeE... | 34.464789 | 154 | 0.734369 | AlexVlk |
20605f6282406f6912e3e3f5bd55441cfc49d0b0 | 617 | cpp | C++ | mine/46-permutations.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | mine/46-permutations.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | mine/46-permutations.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> ans;
void recursiveBody(vector<int>& nums, int sz, vector<int>& perm){
if(sz == 0) { ans.push_back(perm); return; }
for(int i = 0; i < sz; ++i){
perm.push_back(nums[i]);
nums.erase(nums.begin()+i);
recu... | 29.380952 | 70 | 0.504052 | Junlin-Yin |
206439cbbf0308036f2856125ffde097e5b80495 | 8,088 | hpp | C++ | keychain_lib/include/keychain_lib/secmod_protocol.hpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 29 | 2018-03-21T09:21:18.000Z | 2020-09-22T16:31:03.000Z | keychain_lib/include/keychain_lib/secmod_protocol.hpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 119 | 2018-03-16T14:02:04.000Z | 2019-04-16T21:16:32.000Z | keychain_lib/include/keychain_lib/secmod_protocol.hpp | jokefor300/array-io-keychain | 1c281b76332af339f0456de51caf65cae9950c91 | [
"MIT"
] | 3 | 2018-03-21T15:00:16.000Z | 2019-12-25T09:03:58.000Z | // Created by roman on 8/12/18.
//
#ifndef KEYCHAINAPP_KEYCHAIN_SEC_MOD_PROTOCOL_HPP
#define KEYCHAINAPP_KEYCHAIN_SEC_MOD_PROTOCOL_HPP
#include <string>
#include <fc_light/variant.hpp>
#include <fc_light/io/json.hpp>
#include <fc_light/reflect/reflect.hpp>
#include <fc_light/reflect/variant.hpp>
#include "bitcoin_tra... | 26.781457 | 193 | 0.740232 | jokefor300 |
206455e8ab5621e90739dc80f9a12d67d0628933 | 1,703 | hpp | C++ | include/problem/composition_8.hpp | tsakiridis/deplusplus | 383754182c929ab51d9af045bbf138d6d74c009c | [
"MIT"
] | null | null | null | include/problem/composition_8.hpp | tsakiridis/deplusplus | 383754182c929ab51d9af045bbf138d6d74c009c | [
"MIT"
] | null | null | null | include/problem/composition_8.hpp | tsakiridis/deplusplus | 383754182c929ab51d9af045bbf138d6d74c009c | [
"MIT"
] | null | null | null | #ifndef DE_OPTIMIZATION_PROBLEM_COMPOSITION_FUNCTION_8_HPP
#define DE_OPTIMIZATION_PROBLEM_COMPOSITION_FUNCTION_8_HPP
#include "problem/cec_composition_function.hpp"
#include "problem/ackley.hpp"
#include "problem/griewank.hpp"
#include "problem/discus.hpp"
#include "problem/rosenbrock.hpp"
#include "problem/happycat.... | 38.704545 | 77 | 0.669407 | tsakiridis |
206561929d985c270fafe9ca79f362fc0f9868a9 | 374 | cpp | C++ | ComputerGraphics/src/Main.cpp | gerrygoo/graficas | 443832dc6820c0a93c8291831109e3248f57f9b0 | [
"MIT"
] | null | null | null | ComputerGraphics/src/Main.cpp | gerrygoo/graficas | 443832dc6820c0a93c8291831109e3248f57f9b0 | [
"MIT"
] | null | null | null | ComputerGraphics/src/Main.cpp | gerrygoo/graficas | 443832dc6820c0a93c8291831109e3248f57f9b0 | [
"MIT"
] | null | null | null | // #include <string>
// #include "scene_manager.h"
// #include <glad/glad.h>
// int main(int argc, char* argv[])
// {
// scene_manager::start(argc, argv, "Hello, World!", 800, 800);
// return 0;
// }
#include <iostream>
#include "scene_manager.h"
#include <vector>
int main(int argc, char* argv[]) {
scene_mana... | 19.684211 | 65 | 0.631016 | gerrygoo |
206a5c78743dfa16273ef830cac78f9fc98e52c3 | 225 | cc | C++ | build/ARM/python/m5/internal/param_ClockDomain.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_ClockDomain.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_ClockDomain.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_ClockDomain();
}
EmbeddedSwig embed_swig_param_ClockDomain(init_param_ClockDomain, "m5.internal._param_ClockDomain");
| 25 | 108 | 0.617778 | Jakgn |
206fce9b09872b55229c545460ca01e62d203ac9 | 3,152 | cpp | C++ | aws-cpp-sdk-ce/source/model/PlatformDifference.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-ce/source/model/PlatformDifference.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-ce/source/model/PlatformDifference.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ce/model/PlatformDifference.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
... | 34.26087 | 116 | 0.650381 | perfectrecall |
2071919f1d637958bc0d7a11ee95de66e045a410 | 3,176 | cpp | C++ | modules/filters/src/detection/detectedObject.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/filters/src/detection/detectedObject.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/filters/src/detection/detectedObject.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2018 Simon Vogl <svogl@voxel.at>
Angel Merino-Sastre <amerino@voxel.at>
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/licen... | 25.821138 | 122 | 0.67034 | voxel-dot-at |
207342662282666246cb8a5668cbfc47b41a78d9 | 261 | cpp | C++ | recipes/platform.exceptions/all/test_package/test_package.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 562 | 2019-09-04T12:23:43.000Z | 2022-03-29T16:41:43.000Z | recipes/platform.exceptions/all/test_package/test_package.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 9,799 | 2019-09-04T12:02:11.000Z | 2022-03-31T23:55:45.000Z | recipes/platform.exceptions/all/test_package/test_package.cpp | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 1,126 | 2019-09-04T11:57:46.000Z | 2022-03-31T16:43:38.000Z | #include <Platform.Exceptions.h>
#include <iostream>
using namespace Platform::Exceptions;
auto main() -> int {
try {
Ensure::Always::ArgumentNotNull(nullptr);
} catch (std::exception& e) {
std::cout << e.what() << std::endl;
}
}
| 18.642857 | 49 | 0.605364 | rockandsalt |
2077a119247db1b7412879ef7d764425b631c1cc | 840 | hpp | C++ | src/map.hpp | REPOmAN2v2/Mindstorm-rover | 1529a02f246eaa5132be2b34bba27df6dc776ead | [
"MIT",
"Unlicense"
] | null | null | null | src/map.hpp | REPOmAN2v2/Mindstorm-rover | 1529a02f246eaa5132be2b34bba27df6dc776ead | [
"MIT",
"Unlicense"
] | null | null | null | src/map.hpp | REPOmAN2v2/Mindstorm-rover | 1529a02f246eaa5132be2b34bba27df6dc776ead | [
"MIT",
"Unlicense"
] | null | null | null | #ifndef MAP_HPP_INCLUDED
#define MAP_HPP_INCLUDED
#include <vector>
#include <utility>
#include <queue>
#include "cell.hpp"
class Map {
public:
// The map is composed of a 2D vector of cells
std::vector< std::vector< Cell > > cells;
// Queue of map states (a new state is created everytime something changes
// on ... | 26.25 | 89 | 0.680952 | REPOmAN2v2 |
20783817b2a92a9eb6b7514b6567d1121da4aa8f | 13,253 | cpp | C++ | ugene/src/corelibs/U2Formats/src/MSFFormat.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | ugene/src/corelibs/U2Formats/src/MSFFormat.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | ugene/src/corelibs/U2Formats/src/MSFFormat.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <ugene@unipro.ru>
* http://ugene.unipro.ru
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version... | 35.722372 | 202 | 0.600015 | iganna |
207933cf4a9423cc0d3fde9eb79e0c3c1e95c057 | 213 | cpp | C++ | DSA/Bit Manipulation/5.Find position of the only set bit.cpp | mridul8920/winter-of-contributing | 9ee7c32cf6568c01f6a5263f4130e8edebb442fb | [
"MIT"
] | null | null | null | DSA/Bit Manipulation/5.Find position of the only set bit.cpp | mridul8920/winter-of-contributing | 9ee7c32cf6568c01f6a5263f4130e8edebb442fb | [
"MIT"
] | null | null | null | DSA/Bit Manipulation/5.Find position of the only set bit.cpp | mridul8920/winter-of-contributing | 9ee7c32cf6568c01f6a5263f4130e8edebb442fb | [
"MIT"
] | null | null | null | int findPosition(int N) {
int pos = 0, count = 0;
while (N != 0) {
if (N & 1 == 1) {
count++;
}
pos++;
N = N >> 1;
}
if (count == 0 || count > 1) {
return -1;
}
return pos;
}
| 14.2 | 32 | 0.399061 | mridul8920 |
207cf53ad626a85fd8461da773ae0dd74669854a | 10,573 | cpp | C++ | WTesterClient/widget_answer.cpp | RockRockWhite/WTester | 50a9de8ba7c48738eb054680d6eae0a2fc0c06e3 | [
"MIT"
] | null | null | null | WTesterClient/widget_answer.cpp | RockRockWhite/WTester | 50a9de8ba7c48738eb054680d6eae0a2fc0c06e3 | [
"MIT"
] | null | null | null | WTesterClient/widget_answer.cpp | RockRockWhite/WTester | 50a9de8ba7c48738eb054680d6eae0a2fc0c06e3 | [
"MIT"
] | null | null | null | #include "widget_answer.h"
#include "ui_widget_answer.h"
#include <QMessageBox>
#include <cmath>
#include <QTimer>
#include <QTextEdit>
#include <QCheckBox>
#include <QTcpSocket>
#pragma execution_character_set("utf-8")
extern QStringList question;
extern QString time;
QString errorNum;
QStringList answer,answer_u,e... | 27.823684 | 207 | 0.449352 | RockRockWhite |
207d572ba60eeb4b1900d9ccacff00a0cb24ca2e | 600 | cpp | C++ | plugins/single_plugins/autostart.cpp | SirCmpwn/wayfire | 007452f6ccc07ceca51879187bba142431832382 | [
"MIT"
] | 3 | 2019-01-16T14:43:24.000Z | 2019-10-09T10:07:33.000Z | plugins/single_plugins/autostart.cpp | SirCmpwn/wayfire | 007452f6ccc07ceca51879187bba142431832382 | [
"MIT"
] | null | null | null | plugins/single_plugins/autostart.cpp | SirCmpwn/wayfire | 007452f6ccc07ceca51879187bba142431832382 | [
"MIT"
] | 1 | 2019-05-07T09:46:58.000Z | 2019-05-07T09:46:58.000Z | #include <plugin.hpp>
#include "../../shared/config.hpp"
#include <core.hpp>
class wayfire_autostart : public wayfire_plugin_t
{
public:
void init(wayfire_config *config)
{
/* make sure we are run only when adding the first output */
if (core->get_next_output(output) != output)
... | 21.428571 | 68 | 0.613333 | SirCmpwn |
2081557d8fa7550407dbe187a0206f3a7139fc53 | 6,493 | cpp | C++ | third_party/CppAD/test_more/general/sparse_sub_hes.cpp | eric-heiden/tds-merge | 1e18447b0096efbb6df5d9ad7d69c8b0cc282747 | [
"Apache-2.0"
] | 1 | 2019-11-05T02:23:47.000Z | 2019-11-05T02:23:47.000Z | third_party/CppAD/test_more/general/sparse_sub_hes.cpp | eric-heiden/tds-merge | 1e18447b0096efbb6df5d9ad7d69c8b0cc282747 | [
"Apache-2.0"
] | null | null | null | third_party/CppAD/test_more/general/sparse_sub_hes.cpp | eric-heiden/tds-merge | 1e18447b0096efbb6df5d9ad7d69c8b0cc282747 | [
"Apache-2.0"
] | 1 | 2019-11-05T02:23:51.000Z | 2019-11-05T02:23:51.000Z | /* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-18 Bradley M. Bell
CppAD is distributed under the terms of the
Eclipse Public License Version 2.0.
This Source Code may also be made available under the following
Secon... | 28.857778 | 79 | 0.525027 | eric-heiden |
2083b0b313c271d325b3c26f93d5e7b738e8d634 | 657 | cpp | C++ | DxLibEngine/base/Input.cpp | darknesswind/LiteSTG | ec24641948369e6ee1a3bdcc0d6b78515f1a0374 | [
"MIT"
] | 2 | 2015-09-11T08:17:20.000Z | 2018-03-13T07:21:15.000Z | DxLibEngine/base/Input.cpp | darknesswind/LiteSTG | ec24641948369e6ee1a3bdcc0d6b78515f1a0374 | [
"MIT"
] | null | null | null | DxLibEngine/base/Input.cpp | darknesswind/LiteSTG | ec24641948369e6ee1a3bdcc0d6b78515f1a0374 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Input.h"
LInput::LInput(void)
: m_nJoyNum(0)
{
m_curKeyState.fill(0);
m_keyList.fill(KeyState::None);
m_logicKeyMap.fill(Keys::None);
m_nJoyNum = DxLib::GetJoypadNum();
}
LInput::~LInput(void)
{
}
bool LInput::update()
{
const bool bSucceed = (0 == DxLib::GetHitKeyStateAll(m_curK... | 22.655172 | 107 | 0.656012 | darknesswind |
20891035a5804095b2634ce802a9eb9d4f7f906b | 2,244 | cpp | C++ | Source/Application.cpp | michal-z/PerfExperiments | 4431a74cb90407d7cd3645c4f218eaccd8516ea1 | [
"MIT"
] | 1 | 2021-11-07T07:22:47.000Z | 2021-11-07T07:22:47.000Z | Source/Application.cpp | michal-z/MyPerfExperiments | 4431a74cb90407d7cd3645c4f218eaccd8516ea1 | [
"MIT"
] | null | null | null | Source/Application.cpp | michal-z/MyPerfExperiments | 4431a74cb90407d7cd3645c4f218eaccd8516ea1 | [
"MIT"
] | null | null | null | #include "Pch.h"
#include "Application.h"
FApplication GApp;
void FApplication::Initialize()
{
QueryPerformanceCounter(&StartCounter);
QueryPerformanceFrequency(&Frequency);
SetProcessDPIAware();
MakeWindow(1280, 720);
}
void FApplication::Update()
{
UpdateFrameTime();
}
double FApplication::GetTime()
{
LARG... | 22.44 | 110 | 0.720588 | michal-z |
20899eef7027a43b056777e704f0326e9a4149b3 | 3,226 | hpp | C++ | src/ibeo_8l_sdk/src/ibeosdk/devices/IbeoEcu.hpp | tomcamp0228/ibeo_ros2 | ff56c88d6e82440ae3ce4de08f2745707c354604 | [
"MIT"
] | 1 | 2020-06-19T11:01:49.000Z | 2020-06-19T11:01:49.000Z | include/ibeosdk/devices/IbeoEcu.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | include/ibeosdk/devices/IbeoEcu.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | 2 | 2020-06-19T11:01:48.000Z | 2020-10-29T03:07:14.000Z | //======================================================================
/*! \file IbeoEcu.hpp
*
* \copydoc Copyright
* \author Mario Brumm (mb)
* \date Apr 24, 2012
*///-------------------------------------------------------------------
#ifndef IBEOSDK_IBEOECU_HPP_SEEN
#define IBEOSDK_IBEOECU_HPP_SEEN
//=======... | 33.604167 | 127 | 0.450713 | tomcamp0228 |
2089db00baaca9f27215e50d86bf88ee8f2080b6 | 346 | cpp | C++ | Software/swirli/WashingInstructions/AddSoapInstruction.cpp | martijnvandijk/th06 | 873c63fbd232c3465f700f5ecee945b2f2ecd8f2 | [
"MIT"
] | null | null | null | Software/swirli/WashingInstructions/AddSoapInstruction.cpp | martijnvandijk/th06 | 873c63fbd232c3465f700f5ecee945b2f2ecd8f2 | [
"MIT"
] | null | null | null | Software/swirli/WashingInstructions/AddSoapInstruction.cpp | martijnvandijk/th06 | 873c63fbd232c3465f700f5ecee945b2f2ecd8f2 | [
"MIT"
] | null | null | null | //
// Created by chiel on 18/01/16.
//
#include "AddSoapInstruction.h"
AddSoapInstruction::AddSoapInstruction(WashingMachine::SoapDispenser &dispenser) :
dispenser(dispenser) { }
void AddSoapInstruction::execute(WashingProgramRunner &runner, LogController &logController, bool doWait) {
dispenser.set(WashingMachin... | 26.615385 | 107 | 0.780347 | martijnvandijk |
208e31af872d140780be8836b8f8eb79ca09ca06 | 393 | hpp | C++ | inc/rook/ast/call.hpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | 1 | 2019-02-20T19:19:23.000Z | 2019-02-20T19:19:23.000Z | inc/rook/ast/call.hpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | null | null | null | inc/rook/ast/call.hpp | Vandise/Gambit-Archive | 6db1921d99d76cd10f8f1bd25c46776d435d85a7 | [
"MIT"
] | null | null | null | #ifndef __ROOK_CALLNODE
#define __ROOK_CALLNODE 1
#include "rook/ast/node.hpp"
#include <vector>
namespace RookAST
{
class CallNode : public RookAST::Node
{
protected:
std::string methodSignature;
int parameters;
public:
CallNode(std::string methodSignature, int parameters);
~... | 14.035714 | 60 | 0.669211 | Vandise |
209208747f4e473eef2c105d730a3f9331fceb88 | 19,876 | hpp | C++ | llvm-gcc-4.2-2.9/libstdc++-v3/testsuite/util/common_type/assoc/common_type.hpp | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 1 | 2016-04-09T02:58:13.000Z | 2016-04-09T02:58:13.000Z | llvm-gcc-4.2-2.9/libstdc++-v3/testsuite/util/common_type/assoc/common_type.hpp | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | llvm-gcc-4.2-2.9/libstdc++-v3/testsuite/util/common_type/assoc/common_type.hpp | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | // -*- C++ -*-
// Copyright (C) 2005, 2006 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the terms
// of the GNU General Public License as published by the Free Software
// Foundation; either version ... | 24.26862 | 90 | 0.721674 | vidkidz |
20945912f354bbfef46106af158a534e81a59ff1 | 25,618 | cc | C++ | ceee/ie/plugin/bho/frame_event_handler_unittest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | ceee/ie/plugin/bho/frame_event_handler_unittest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | null | null | null | ceee/ie/plugin/bho/frame_event_handler_unittest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | // Copyright (c) 2010 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.
//
// @file
// Frame event handler unittests.
#include "ceee/ie/plugin/bho/frame_event_handler.h"
#include <atlctl.h>
#include <map>
#include "base/f... | 34.5722 | 80 | 0.720587 | Gitman1989 |
209c4d620b6ba3e6717ab1b61a5efd30e62a2e99 | 1,036 | cpp | C++ | client/core/layers.cpp | syby119/icloth-web-application | 241d894b5f4805964ab7991b5ccb62e44a6aa7cb | [
"MIT"
] | 2 | 2021-11-12T05:53:48.000Z | 2021-11-12T05:53:59.000Z | client/core/layers.cpp | syby119/icloth-web-application | 241d894b5f4805964ab7991b5ccb62e44a6aa7cb | [
"MIT"
] | null | null | null | client/core/layers.cpp | syby119/icloth-web-application | 241d894b5f4805964ab7991b5ccb62e44a6aa7cb | [
"MIT"
] | null | null | null | #include <iostream>
#include "layers.h"
void Layers::set(int channel) noexcept {
_mask = 1 << channel;
}
void Layers::enable(int channel) noexcept {
_mask |= 1 << channel;
}
void Layers::enableAll() noexcept {
_mask = 0xFFFFFFFF;
}
void Layers::toggle(int channel) noexcept {
_mask ^= 1 << channel;
}... | 20.72 | 66 | 0.563707 | syby119 |
209cfe14153b98e74ba62878d208d95657a39e11 | 7,524 | cc | C++ | naos/src/kernel/arch/cpu.cc | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | 14 | 2020-02-12T11:07:58.000Z | 2022-02-02T00:05:08.000Z | naos/src/kernel/arch/cpu.cc | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | null | null | null | naos/src/kernel/arch/cpu.cc | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | 4 | 2020-02-27T09:53:53.000Z | 2021-11-07T17:43:44.000Z | #include "kernel/arch/cpu.hpp"
#include "kernel/arch/klib.hpp"
#include "kernel/arch/task.hpp"
#include "kernel/arch/tss.hpp"
#include "kernel/arch/paging.hpp"
#include "kernel/mm/vm.hpp"
#include "kernel/mm/memory.hpp"
#include "kernel/mm/mm.hpp"
#include "kernel/task.hpp"
#include "kernel/trace.hpp"
#include "kernel/... | 31.881356 | 118 | 0.68009 | kadds |
20a1ad7f67b2c8aa3198b8f6932f40ee3d39e1fb | 5,976 | cxx | C++ | src/Plugins/Plugin_PnPframegrabber/Widget_PnPframegrabber.cxx | gomezalberto/pretus | 63b05419f70ecf8b28ccbb6191eab79637c051ac | [
"MIT"
] | 18 | 2021-11-05T13:04:00.000Z | 2022-01-31T14:14:08.000Z | src/Plugins/Plugin_PnPframegrabber/Widget_PnPframegrabber.cxx | gomezalberto/pretus | 63b05419f70ecf8b28ccbb6191eab79637c051ac | [
"MIT"
] | 27 | 2021-09-14T14:04:28.000Z | 2022-02-15T09:58:30.000Z | src/Plugins/Plugin_PnPframegrabber/Widget_PnPframegrabber.cxx | gomezalberto/pretus | 63b05419f70ecf8b28ccbb6191eab79637c051ac | [
"MIT"
] | 1 | 2021-12-16T12:51:32.000Z | 2021-12-16T12:51:32.000Z | #include "Widget_PnPframegrabber.h"
#include <QLabel>
#include <QVBoxLayout>
#include <QPushButton>
#include <QComboBox>
#include <QSpacerItem>
Widget_PnPframegrabber::Widget_PnPframegrabber(
QWidget *parent, Qt::WindowFlags f)
: QtPluginWidgetBase(parent, f)
{
this->mWidgetLocation = WidgetLocation::top... | 30.030151 | 135 | 0.659806 | gomezalberto |
20a2ae88676f1ed59012289a780288c9fb47879c | 7,181 | hpp | C++ | QtDemoApp/auth/smbios.hpp | F474M0R64N4/license-system | 982f1297948353b58d736009a08c697c3e15a41b | [
"MIT"
] | 4 | 2020-10-13T19:57:16.000Z | 2021-09-08T11:57:12.000Z | client/client/src/auth/smbios.hpp | F474M0R64N4/license-system | 982f1297948353b58d736009a08c697c3e15a41b | [
"MIT"
] | null | null | null | client/client/src/auth/smbios.hpp | F474M0R64N4/license-system | 982f1297948353b58d736009a08c697c3e15a41b | [
"MIT"
] | null | null | null | #ifndef SMBIOS_H
#define SMBIOS_H
#pragma once
#include <cstdint>
#include <vector>
namespace smbios
{
namespace types
{
enum
{
bios_info = 0,
// Required
system_info = 1,
// Required
baseboard_info = 2,
module_info = 2,
system_enclosure = 3,
// Required
system_chassis = 3,
// Requ... | 17.179426 | 69 | 0.682495 | F474M0R64N4 |
20a2f90ab42e03dbeb32ad19813ec1e871972049 | 290,474 | cxx | C++ | panda/src/pgraph/nodePath.cxx | kestred/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | panda/src/pgraph/nodePath.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | panda/src/pgraph/nodePath.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | // Filename: nodePath.cxx
// Created by: drose (25Feb02)
// Updated by: fperazzi, PandaSE (06Apr10) (added more overloads
// for set_shader_input)
// Updated by: weifengh, PandaSE(30Apr10) (added set_shader_auto)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copy... | 38.555084 | 278 | 0.569225 | kestred |
20a36919a2849dc05936f9aedecf1dcbee09ae40 | 2,536 | cc | C++ | test/integration/kinetic_energy_monitor_system.cc | jasmeet0915/ign-gazebo | fc2a98ec5e1b149d773eeb6cae4a407bd82a81a2 | [
"ECL-2.0",
"Apache-2.0"
] | 198 | 2020-04-15T16:56:09.000Z | 2022-03-27T12:31:08.000Z | test/integration/kinetic_energy_monitor_system.cc | jasmeet0915/ign-gazebo | fc2a98ec5e1b149d773eeb6cae4a407bd82a81a2 | [
"ECL-2.0",
"Apache-2.0"
] | 1,220 | 2020-04-15T18:10:29.000Z | 2022-03-31T22:37:06.000Z | test/integration/kinetic_energy_monitor_system.cc | jasmeet0915/ign-gazebo | fc2a98ec5e1b149d773eeb6cae4a407bd82a81a2 | [
"ECL-2.0",
"Apache-2.0"
] | 134 | 2020-04-15T16:59:57.000Z | 2022-03-26T08:51:31.000Z | /*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 26.416667 | 76 | 0.69164 | jasmeet0915 |
20a383dc150347f4a66ce92e9e3607015dc031dd | 10,264 | cpp | C++ | src/game/server/hl2/grenade_tripwire.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/server/hl2/grenade_tripwire.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/server/hl2/grenade_tripwire.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Implements the tripmine grenade.
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "util.h"
#include "shake.h"
#include "grenade_tripwire.h"
#inc... | 25.853904 | 183 | 0.651598 | cstom4994 |
20a40fd50aeafde781c16d3638f6dae9fc9ff34d | 2,219 | cpp | C++ | server/SchiffeVersenkenServer/Buffer.cpp | chronoB/VoIP-Framework | 5a253dd665019e2f2acdd62fed11756cd7125286 | [
"MIT"
] | null | null | null | server/SchiffeVersenkenServer/Buffer.cpp | chronoB/VoIP-Framework | 5a253dd665019e2f2acdd62fed11756cd7125286 | [
"MIT"
] | null | null | null | server/SchiffeVersenkenServer/Buffer.cpp | chronoB/VoIP-Framework | 5a253dd665019e2f2acdd62fed11756cd7125286 | [
"MIT"
] | null | null | null | /*
This file is part of the project "Schiffe-Versenken" a Voice-over-IP chat with disturbance algorithms.
This software package was developed as a practical project in the 6th semester at the TGM (@Jade-Hochschule)
This project is released under the terms of the MIT-License.
For license details see the License file.
Co... | 18.805085 | 108 | 0.683641 | chronoB |
20a421a21adb494f67bfd0333cb69b1258419f2e | 210 | cpp | C++ | 2014/Communications/car-wire/slave_car_wire.cpp | WE-Bots/project-car-archive | 388fabc6e6c0cdde76a91d8277e29d29f01c5087 | [
"MIT"
] | null | null | null | 2014/Communications/car-wire/slave_car_wire.cpp | WE-Bots/project-car-archive | 388fabc6e6c0cdde76a91d8277e29d29f01c5087 | [
"MIT"
] | null | null | null | 2014/Communications/car-wire/slave_car_wire.cpp | WE-Bots/project-car-archive | 388fabc6e6c0cdde76a91d8277e29d29f01c5087 | [
"MIT"
] | 1 | 2018-08-15T14:30:54.000Z | 2018-08-15T14:30:54.000Z | #include "slave_car_wire.h"
void slave_car_wire::receiveEvent(){
if (Wire.available()){}
_cmd = Wire.readByte();
}
}
void slave_car_wire::requestEvent(){
//You kinda need to write this one yourself
} | 14 | 44 | 0.7 | WE-Bots |
20a626f8336273447e6fe5faa3a0fb2513d6251c | 55 | hpp | C++ | addons/admin/functions/script_component.hpp | ARCOMMADMIN/ARCORE | 5d8a632017abb646e6f01aa3eebf6c0747028213 | [
"MIT"
] | 1 | 2018-02-15T07:43:55.000Z | 2018-02-15T07:43:55.000Z | addons/admin/functions/script_component.hpp | ARCOMMADMIN/ARCORE | 5d8a632017abb646e6f01aa3eebf6c0747028213 | [
"MIT"
] | 36 | 2017-07-08T21:25:36.000Z | 2020-05-03T18:59:23.000Z | addons/admin/functions/script_component.hpp | ARCOMMADMIN/ARCORE | 5d8a632017abb646e6f01aa3eebf6c0747028213 | [
"MIT"
] | 4 | 2019-08-01T00:19:01.000Z | 2020-05-07T20:40:38.000Z | #include "\z\arcore\addons\admin\script_component.hpp"
| 27.5 | 54 | 0.8 | ARCOMMADMIN |
20a87caf8f6c132cf5237aa225734403bf7d678b | 286 | cpp | C++ | test_ext_core.cpp | tz-lom/thir | c85482f9fe6f7ecdfd9db6960f8e8277b3fe3979 | [
"MIT"
] | null | null | null | test_ext_core.cpp | tz-lom/thir | c85482f9fe6f7ecdfd9db6960f8e8277b3fe3979 | [
"MIT"
] | null | null | null | test_ext_core.cpp | tz-lom/thir | c85482f9fe6f7ecdfd9db6960f8e8277b3fe3979 | [
"MIT"
] | null | null | null | #include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/stringize.hpp>
#include BOOST_PP_STRINGIZE(BOOST_PP_CAT(BOOST_PP_CAT(test_ext_, THIR_TEST_EXTENSION), _.h))
int main(int argc, char *argv[])
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
| 26 | 92 | 0.751748 | tz-lom |
20a8d17dbb8eb529256e1e9c377f8c032ecc34bf | 280 | hpp | C++ | src/Elba/Graphics/GraphicsForwardDeclarations.hpp | nicholasammann/kotor-builder | ab0e042c09974a024a9884c6f9e34cf85ad63eeb | [
"MIT"
] | 1 | 2018-10-01T19:34:57.000Z | 2018-10-01T19:34:57.000Z | src/Elba/Graphics/GraphicsForwardDeclarations.hpp | nicholasammann/kotor-builder | ab0e042c09974a024a9884c6f9e34cf85ad63eeb | [
"MIT"
] | 9 | 2018-09-09T16:07:22.000Z | 2018-11-06T20:34:30.000Z | src/Elba/Graphics/GraphicsForwardDeclarations.hpp | nicholasammann/kotor-builder | ab0e042c09974a024a9884c6f9e34cf85ad63eeb | [
"MIT"
] | null | null | null | /**
* \file GraphicsForwardDeclarations.hpp
* \author Nicholas Ammann
* \date 2/24/2018
* \brief Forward declarations for all graphics classes.
*/
#pragma once
namespace Elba
{
class GraphicsModule;
class GraphicsFactory;
class Mesh;
class Submesh;
} // End of Elba namespace
| 14.736842 | 55 | 0.753571 | nicholasammann |
20a9fe709a650a0488eabb4e8d111ad85844a408 | 923 | cpp | C++ | codeforces/1480/A.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | codeforces/1480/A.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | codeforces/1480/A.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define inf INT_MAX
#define int long long
#define ump unordered_map
#define endl "\n"
#define mod 1000000007
void OJ() {
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
}
void lego() {
string s;
cin >> s;
... | 17.75 | 39 | 0.422535 | gnomegeek |
20ad9d60b5312298599d58361616d05d28bb3cfc | 8,143 | cpp | C++ | Gizmo/Sysex.cpp | eclab/gizmo | 4c429486c7231f6f8fbf708b03f8e23c76af5019 | [
"Apache-2.0"
] | 61 | 2016-11-21T08:43:45.000Z | 2022-03-12T13:34:01.000Z | Gizmo/Sysex.cpp | eclab/gizmo | 4c429486c7231f6f8fbf708b03f8e23c76af5019 | [
"Apache-2.0"
] | 7 | 2017-07-17T14:10:45.000Z | 2022-01-26T05:16:29.000Z | Gizmo/Sysex.cpp | eclab/gizmo | 4c429486c7231f6f8fbf708b03f8e23c76af5019 | [
"Apache-2.0"
] | 7 | 2019-08-22T19:05:41.000Z | 2021-08-20T18:31:05.000Z | ////// Copyright 2020 by Sean Luke
////// Licensed under the Apache 2.0 License
#include "All.h"
#ifdef INCLUDE_SYSEX
void loadHeader(uint8_t bytes[])
{
bytes[0] = 0xF0;
bytes[1] = 0x7D;
bytes[2] = 'G';
bytes[3] = 'I';
bytes[4] = 'Z';
bytes[5] = 'M';
bytes[6] = 'O';
byt... | 29.18638 | 144 | 0.503868 | eclab |
20b337b691666a3934e9e24260931cf31af9cfba | 75,778 | cpp | C++ | Code/WinApp/Render.cpp | spencerparkin/GAVisTool | fb61a1789d58aedce4dbb5a53b181fbc06172a2a | [
"MIT"
] | null | null | null | Code/WinApp/Render.cpp | spencerparkin/GAVisTool | fb61a1789d58aedce4dbb5a53b181fbc06172a2a | [
"MIT"
] | null | null | null | Code/WinApp/Render.cpp | spencerparkin/GAVisTool | fb61a1789d58aedce4dbb5a53b181fbc06172a2a | [
"MIT"
] | null | null | null | // Render.cpp
/*
* Copyright (C) 2013-2014 Spencer T. Parkin
*
* This software has been released under the MIT License.
* See the "License.txt" file in the project root directory
* for more information about this license.
*
*/
#include "Render.h"
#include "Application.h"
#include "wxAll.h"
// TODO: Use the Ve... | 35.761208 | 176 | 0.647088 | spencerparkin |
20b3a6230986b886d86ef65657b634c9394a52db | 265 | cpp | C++ | Engine/Source/Runtime/AIModule/Private/Perception/AISightTargetInterface.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | Engine/Source/Runtime/AIModule/Private/Perception/AISightTargetInterface.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | Engine/Source/Runtime/AIModule/Private/Perception/AISightTargetInterface.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "AIModulePrivate.h"
#include "Perception/AISightTargetInterface.h"
UAISightTargetInterface::UAISightTargetInterface(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
| 26.5 | 93 | 0.818868 | PopCap |
20b479b78885e0f0fb45bbd1798d4e0d44758c53 | 641 | cpp | C++ | src/main.cpp | EpicKiwi/Hero-fight | e3bae023006f25ffe0c4fc3f7141416c2b636da2 | [
"MIT"
] | null | null | null | src/main.cpp | EpicKiwi/Hero-fight | e3bae023006f25ffe0c4fc3f7141416c2b636da2 | [
"MIT"
] | null | null | null | src/main.cpp | EpicKiwi/Hero-fight | e3bae023006f25ffe0c4fc3f7141416c2b636da2 | [
"MIT"
] | null | null | null | #include <iostream>
#include "characters/Character.h"
#include "characters/Warrior.h"
#include "characters/Wizard.h"
int main(int argc, char *argv[]) {
Warrior bobby("Bobby");
bobby.sayHello();
cout << endl;
Wizard tobby("Tobby");
tobby.sayHelloTo(bobby);
cout << endl;
cout << bobby.ge... | 30.52381 | 181 | 0.613105 | EpicKiwi |
20b9715992f88d1694fc0ecb8c9df1632683a1bc | 12,804 | cpp | C++ | device/plugins/cpu_plugin/test/unittest/cpu_data_plugin_unittest.cpp | openharmony-gitee-mirror/developtools_profiler | 89bdc094fc84c40accb8c0e82dc8bbc7e85f0387 | [
"Apache-2.0"
] | null | null | null | device/plugins/cpu_plugin/test/unittest/cpu_data_plugin_unittest.cpp | openharmony-gitee-mirror/developtools_profiler | 89bdc094fc84c40accb8c0e82dc8bbc7e85f0387 | [
"Apache-2.0"
] | null | null | null | device/plugins/cpu_plugin/test/unittest/cpu_data_plugin_unittest.cpp | openharmony-gitee-mirror/developtools_profiler | 89bdc094fc84c40accb8c0e82dc8bbc7e85f0387 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:17:44.000Z | 2021-09-13T11:17:44.000Z | /*
* Copyright (c) 2021 Huawei Device 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 law or a... | 32.090226 | 120 | 0.658466 | openharmony-gitee-mirror |
20b975eab6655b804b6e51d9954e802b1fe52f69 | 686 | cpp | C++ | All About C/Pointers/4. Arithmatic Operation 1.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 7 | 2020-10-01T13:31:02.000Z | 2021-11-06T16:22:31.000Z | All About C/Pointers/4. Arithmatic Operation 1.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 9 | 2020-10-01T10:35:59.000Z | 2021-10-03T15:00:18.000Z | All About C/Pointers/4. Arithmatic Operation 1.cpp | tausiq2003/C-with-DS | 3ec324b180456116b03aec58f2a85025180af9aa | [
"Apache-2.0"
] | 44 | 2020-10-01T08:49:30.000Z | 2021-10-31T18:19:48.000Z | #include<iostream>
using namespace std;
int main(){
int A[]{1,2,3,4,5,6};
int *p=A;
//base address of A is given to pointer P.
cout<<*p<<endl;
cout<<p<<endl;
// output will be 1 and address
p++; //writing *p++ is not necessory.
cout<<*p<<endl; // * is used for derefrencing, it will print address without... | 19.6 | 145 | 0.625364 | tausiq2003 |
20be09e4c096718daf43243eb9724aeaaed76ec1 | 1,508 | cpp | C++ | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise6.cpp | Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 9 | 2018-10-24T15:16:47.000Z | 2021-12-14T13:53:50.000Z | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise6.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | null | null | null | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter3Exercise6.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 7 | 2018-10-29T15:30:37.000Z | 2021-01-18T15:15:09.000Z | /*
TITLE Comparison & Ordering Chapter3Exercise6.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Put in order three input numbers;
Next to each other if they are equal.
Input: Requests 3 numbers.
Output: Prints numbers in order.
Author: Ch... | 25.559322 | 80 | 0.547082 | Ziezi |
20be582a26d284e303c4f964404cc071d7226025 | 694 | cpp | C++ | problem_solving/SPOJ/OPCPIZZA/14158584_AC_180ms_16384kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 2 | 2020-09-02T12:07:47.000Z | 2020-11-17T11:17:16.000Z | problem_solving/SPOJ/OPCPIZZA/14158584_AC_180ms_16384kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | null | null | null | problem_solving/SPOJ/OPCPIZZA/14158584_AC_180ms_16384kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
#define le 100005
using namespace std;
int n[le];
bool fnc(int a, int b, int key){
int lo = a + 1, hi = b - 1, mid;
while(lo <= hi){
mid = (lo + hi) >> 1;
if(n[mid] == key) return 1;
else if(n[mid] > key) hi = mid - 1;
else lo = mid + 1;
}
return ... | 23.931034 | 57 | 0.402017 | cosmicray001 |
20be7c71644405fc4ff4703bb47fd3432d191d0f | 15,016 | cpp | C++ | src/density/nearest_neighbor_density.cpp | cogsys-tuebingen/muse_armcl | 63eb0c8d3a1d03d84222acbb5b0c9978065bcc3c | [
"BSD-3-Clause"
] | 5 | 2020-01-19T09:35:28.000Z | 2021-11-04T10:08:24.000Z | src/density/nearest_neighbor_density.cpp | cxdcxd/muse_armcl | 63eb0c8d3a1d03d84222acbb5b0c9978065bcc3c | [
"BSD-3-Clause"
] | null | null | null | src/density/nearest_neighbor_density.cpp | cxdcxd/muse_armcl | 63eb0c8d3a1d03d84222acbb5b0c9978065bcc3c | [
"BSD-3-Clause"
] | 1 | 2019-11-10T23:40:59.000Z | 2019-11-10T23:40:59.000Z | #include <muse_armcl/density/sample_density.hpp>
#include <unordered_map>
#include <cslibs_math/statistics/weighted_distribution.hpp>
#include <sensor_msgs/PointCloud2.h>
#include <cslibs_math_3d/linear/pointcloud.hpp>
#include <cslibs_math/color/color.hpp>
#include <cslibs_math_ros/sensor_msgs/conversion_3d.hpp>
name... | 42.780627 | 110 | 0.533897 | cogsys-tuebingen |
20c020d145b9af195f2e069547fbfab8c1f1c5b7 | 753 | cpp | C++ | Modules/Module10/SampleCode/a_basics/Example8_ConcatenationAndAppending.cpp | hackettccp/CSCI112 | 103893f5c3532839f6b0a8ff460f069b324bc199 | [
"MIT"
] | 3 | 2019-10-23T03:25:31.000Z | 2021-02-23T04:08:59.000Z | Modules/Module10/SampleCode/a_basics/Example8_ConcatenationAndAppending.cpp | hackettccp/CSCI112 | 103893f5c3532839f6b0a8ff460f069b324bc199 | [
"MIT"
] | null | null | null | Modules/Module10/SampleCode/a_basics/Example8_ConcatenationAndAppending.cpp | hackettccp/CSCI112 | 103893f5c3532839f6b0a8ff460f069b324bc199 | [
"MIT"
] | null | null | null | /**
* Demonstrates concatenating and appending Strings
*
*/
#include <iostream>
using namespace std;
/**
* Main Function.
*/
int main() {
string part1 = "Hello"; //std::string if std namespace is not used.
string part2 = "World!";
string ... | 31.375 | 131 | 0.472776 | hackettccp |
20c083c60bc05f9a0c0cc3e8f1f6fdf391477339 | 2,743 | cpp | C++ | src/Network/NetworkDevice.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | src/Network/NetworkDevice.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | src/Network/NetworkDevice.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | #include "Network/NetworkDevice.hpp"
#include "Network/Packet.hpp"
const int NetworkDevice::MAX_BUFFER;
NetworkDevice::NetworkDevice() {
recv_socket = nullptr;
send_socket = nullptr;
ps_buffer = queue<PacketStore>();
}
NetworkDevice::NetworkDevice(TCPsocket* recv_socket, TCPsocket* send_socket)
: recv_sock... | 28.278351 | 77 | 0.65731 | Harsh14901 |
20c0cb79b7ebfbf47fa19688903bde1eec2ce3f1 | 4,775 | cpp | C++ | gui/renderers/VolumeRenderer.cpp | pavelsevecek/OpenSPH | d547c0af6270a739d772a4dcba8a70dc01775367 | [
"MIT"
] | 20 | 2021-04-02T04:30:08.000Z | 2022-03-01T09:52:01.000Z | gui/renderers/VolumeRenderer.cpp | pavelsevecek/OpenSPH | d547c0af6270a739d772a4dcba8a70dc01775367 | [
"MIT"
] | null | null | null | gui/renderers/VolumeRenderer.cpp | pavelsevecek/OpenSPH | d547c0af6270a739d772a4dcba8a70dc01775367 | [
"MIT"
] | 1 | 2022-01-22T11:44:52.000Z | 2022-01-22T11:44:52.000Z | #include "gui/renderers/VolumeRenderer.h"
#include "gui/Factory.h"
#include "gui/objects/Camera.h"
#include "gui/objects/Colorizer.h"
#include "gui/renderers/FrameBuffer.h"
#include "objects/finders/KdTree.h"
#include "objects/utility/OutputIterators.h"
NAMESPACE_SPH_BEGIN
VolumeRenderer::VolumeRenderer(SharedPtr<ISc... | 37.015504 | 108 | 0.639372 | pavelsevecek |
20c11a4158a9b25d744f13c77336242061ea0686 | 2,212 | cpp | C++ | private/shell/cpls/appwiz/appsize.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/shell/cpls/appwiz/appsize.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/shell/cpls/appwiz/appsize.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | //---------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation
//
// File: appsize.cpp
//
// Compute the size of an application
//
// History:
// 2-17-98 by dli implemented CAppFolderSize
//---------------------------------------------------... | 22.571429 | 121 | 0.627939 | King0987654 |
20c12672fee4df28192a7f10dc5e6dc040f2090a | 606 | hh | C++ | click/elements/local/igmp/AddIPRouterAlertOption.hh | BasilRommens/IGMPv3-click | cb5d63192f0c0344d35dab35d928835c7c6f370f | [
"MIT"
] | null | null | null | click/elements/local/igmp/AddIPRouterAlertOption.hh | BasilRommens/IGMPv3-click | cb5d63192f0c0344d35dab35d928835c7c6f370f | [
"MIT"
] | null | null | null | click/elements/local/igmp/AddIPRouterAlertOption.hh | BasilRommens/IGMPv3-click | cb5d63192f0c0344d35dab35d928835c7c6f370f | [
"MIT"
] | null | null | null | #ifndef CLICK_AddIPRouterAlertOption_HH
#define CLICK_AddIPRouterAlertOption_HH
#include <click/element.hh>
#include <click/ipaddress.hh>
CLICK_DECLS
class AddIPRouterAlertOption : public Element {
public:
AddIPRouterAlertOption();
~AddIPRouterAlertOption();
const char *class_name() const { return "AddI... | 24.24 | 71 | 0.745875 | BasilRommens |
20c1a34f72fe6a0be98b8dda94854aaee65158a7 | 14,843 | hpp | C++ | library/src/include/tensile_host.hpp | amcamd/rocBLAS | f0986a922269c2fe343c414ec13a055cf8574bc3 | [
"MIT"
] | null | null | null | library/src/include/tensile_host.hpp | amcamd/rocBLAS | f0986a922269c2fe343c414ec13a055cf8574bc3 | [
"MIT"
] | null | null | null | library/src/include/tensile_host.hpp | amcamd/rocBLAS | f0986a922269c2fe343c414ec13a055cf8574bc3 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2019-2021 Advanced Micro Devices, Inc.
* ************************************************************************/
/*********************************************************
* Declaration of the rocBLAS<->Tensile interface layer... | 39.687166 | 98 | 0.418042 | amcamd |
20c3c75d9d3987d1ed165025b829f6e846b99d79 | 2,111 | cpp | C++ | src/bluecadet/tangibleengine/TangibleEngineSimulator.cpp | bluecadet/Cinder-BluecadetTangibleEngine | a96e08a8a4556d5699aea90cd04e687999e772a5 | [
"MIT"
] | null | null | null | src/bluecadet/tangibleengine/TangibleEngineSimulator.cpp | bluecadet/Cinder-BluecadetTangibleEngine | a96e08a8a4556d5699aea90cd04e687999e772a5 | [
"MIT"
] | null | null | null | src/bluecadet/tangibleengine/TangibleEngineSimulator.cpp | bluecadet/Cinder-BluecadetTangibleEngine | a96e08a8a4556d5699aea90cd04e687999e772a5 | [
"MIT"
] | null | null | null | #include "TangibleEngineSimulator.h"
#include "cinder/Log.h"
#include "cinder/Color.h"
#include "bluecadet/core/ScreenCamera.h"
#include "bluecadet/views/EllipseView.h"
using namespace ci;
using namespace ci::app;
using namespace std;
namespace bluecadet {
namespace tangibleengine {
//=============================... | 23.455556 | 128 | 0.704879 | bluecadet |
20c737737bdc0360fd1d7e3b6522b18c4d90ae0e | 381 | cc | C++ | BOJ/2953.cc | Yaminyam/Algorithm | fe49b37b4b310f03273864bcd193fe88139f1c01 | [
"MIT"
] | 1 | 2019-05-18T00:02:12.000Z | 2019-05-18T00:02:12.000Z | BOJ/2953.cc | siontama/Algorithm | bb419e0d4dd09682bd4542f90038b492ee232bd2 | [
"MIT"
] | null | null | null | BOJ/2953.cc | siontama/Algorithm | bb419e0d4dd09682bd4542f90038b492ee232bd2 | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int arr[5]={0,};
int ansn=0;
int ans=0;
for(int i=0;i<5;i++){
for(int j=0;j<4;j++){
int x;
cin >> x;
arr[i]+=x;
}
if(arr[i]>ans){
ansn = i+1;
ans... | 15.875 | 31 | 0.383202 | Yaminyam |
20c7395524317ec51015cc32d1dd164023b31905 | 536 | cpp | C++ | test/unit/math/mix/fun/csr_matrix_times_vector_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/mix/fun/csr_matrix_times_vector_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/mix/fun/csr_matrix_times_vector_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | #include <test/unit/math/test_ad.hpp>
#include <vector>
TEST(MathMixMatFun, csr_matrix_times_vector) {
auto f = [](const auto& w, const auto& b) {
using stan::math::csr_matrix_times_vector;
std::vector<int> v{1, 2, 3, 1, 2};
std::vector<int> u{1, 2, 3, 4, 5, 6};
return csr_matrix_times_vector(5, 5, w... | 26.8 | 53 | 0.602612 | LaudateCorpus1 |
20c7f5364e5566b486f8fe607f38e4e9b2a5dcc1 | 231 | hpp | C++ | Miracle/src/Miracle/Graphics/Vertex.hpp | McFlyboy/Miracle | 03a41bb8e24ecf2dfc18b5e3aee964640ec9a593 | [
"MIT"
] | null | null | null | Miracle/src/Miracle/Graphics/Vertex.hpp | McFlyboy/Miracle | 03a41bb8e24ecf2dfc18b5e3aee964640ec9a593 | [
"MIT"
] | 3 | 2021-12-10T23:19:29.000Z | 2022-03-27T05:04:14.000Z | Miracle/src/Miracle/Graphics/Vertex.hpp | McFlyboy/Miracle | 03a41bb8e24ecf2dfc18b5e3aee964640ec9a593 | [
"MIT"
] | null | null | null | #pragma once
#include <Miracle/components/Miracle/Math/Vector2f.hpp>
#include <Miracle/components/Miracle/Math/Vector3f.hpp>
namespace Miracle::Graphics {
struct Vertex {
Math::Vector2f position;
Math::Vector3f color;
};
}
| 19.25 | 55 | 0.757576 | McFlyboy |
20c8d8ec0658ab05f8fa53f8730e999e9d8776c9 | 1,832 | cpp | C++ | C-Plus-Plus-Programming/b. Tokens,Expressions and control Structures/h_operators.cpp | deepraj1729/Coding-From-Scratch | 6a7c5262f8843cc7e9447912aaa7260bbfa38e6e | [
"MIT"
] | 2 | 2020-09-06T15:51:15.000Z | 2020-10-04T23:29:20.000Z | C-Plus-Plus-Programming/b. Tokens,Expressions and control Structures/h_operators.cpp | deepraj1729/Coding-From-Scratch | 6a7c5262f8843cc7e9447912aaa7260bbfa38e6e | [
"MIT"
] | null | null | null | C-Plus-Plus-Programming/b. Tokens,Expressions and control Structures/h_operators.cpp | deepraj1729/Coding-From-Scratch | 6a7c5262f8843cc7e9447912aaa7260bbfa38e6e | [
"MIT"
] | null | null | null | /*
The operators in C++ includes:-
1. :: --> Scope resolution operator (returns the global scope value of any variable)
2. ::* --> Pointer-to-member declarator
3. ->* --> pointer-to-member operator
4. .* --> Pointer-to-member operator
5. delete --> Used to free up memo... | 31.050847 | 95 | 0.578057 | deepraj1729 |
20c8ed7ee46a4d274d0249ce2a6cc66b953f6dd0 | 599 | cpp | C++ | Cplusplus/trik.cpp | Jayseff/OpenKattis | 921ef2b6b5138505663edf53885fa8b6e655887e | [
"AFL-3.0"
] | null | null | null | Cplusplus/trik.cpp | Jayseff/OpenKattis | 921ef2b6b5138505663edf53885fa8b6e655887e | [
"AFL-3.0"
] | null | null | null | Cplusplus/trik.cpp | Jayseff/OpenKattis | 921ef2b6b5138505663edf53885fa8b6e655887e | [
"AFL-3.0"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main()
{
string actions;
int arr[3] = {1,0,0};
int temp = 0;
cin >> actions;
for (int i = 0; i < actions.length(); i++)
{
if (actions[i] == 'A')
{
temp = arr[0];
arr[0] = arr[1];
arr[1] = temp;
}
if (act... | 14.609756 | 44 | 0.420701 | Jayseff |
20cba4e40438a256da188e5a8d2217fb7220e037 | 11,928 | cpp | C++ | src/screen_settings.cpp | puzrin/dispenser | e0283af232a65a840dedb15feaaccf1294a3a7cb | [
"MIT"
] | 28 | 2019-09-02T05:23:00.000Z | 2022-01-16T22:19:55.000Z | src/screen_settings.cpp | puzrin/dispenser | e0283af232a65a840dedb15feaaccf1294a3a7cb | [
"MIT"
] | null | null | null | src/screen_settings.cpp | puzrin/dispenser | e0283af232a65a840dedb15feaaccf1294a3a7cb | [
"MIT"
] | 10 | 2019-12-31T02:22:22.000Z | 2021-12-14T04:11:27.000Z | #include "app.h"
#include "screen_settings.h"
#include "etl/to_string.h"
#include "etl/cyclic_value.h"
enum setting_type {
TYPE_NEEDLE_DIA = 0,
TYPE_SYRINGE_DIA = 1,
TYPE_VISCOSITY = 2,
TYPE_FLUX_PERCENT = 3,
TYPE_MOVE_PUSHER = 4
};
typedef struct {
float step_scale = 0.0f;
float current_... | 28.332542 | 102 | 0.618545 | puzrin |
20cc0bb0ae201641b69c9472060c3f71e47fff55 | 5,334 | cc | C++ | chromeos/services/secure_channel/nearby_connection_manager.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chromeos/services/secure_channel/nearby_connection_manager.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chromeos/services/secure_channel/nearby_connection_manager.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2020 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 "chromeos/services/secure_channel/nearby_connection_manager.h"
#include "base/containers/contains.h"
#include "chromeos/components/multidevice/l... | 37.300699 | 80 | 0.772591 | zealoussnow |
20cd7b1f74e573bc0f0d699d4ce4f0fdddb9ffc6 | 1,655 | cpp | C++ | test/substring/longest_common_substring.test.cpp | camilne/cardigan | 6cb07095c3dc06e558108a9986ab0e434c4b13e1 | [
"MIT"
] | 2 | 2018-04-26T04:24:47.000Z | 2018-04-26T04:25:28.000Z | test/substring/longest_common_substring.test.cpp | camilne/cardigan | 6cb07095c3dc06e558108a9986ab0e434c4b13e1 | [
"MIT"
] | 22 | 2018-04-26T04:41:19.000Z | 2018-05-13T02:49:04.000Z | test/substring/longest_common_substring.test.cpp | camilne/cardigan | 6cb07095c3dc06e558108a9986ab0e434c4b13e1 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <vector>
#include "third_party/catch.hpp"
#include "substring/longest_common_substring.hpp"
using namespace cgn;
TEST_CASE("Longest Common Substring: Base cases", "[longest-common-substring]") {
std::string a;
auto substrings = longest_common_substring(a, a);
REQUIRE(substr... | 31.226415 | 102 | 0.642296 | camilne |
20cd9bcaea5ce1bc2259d381a832ae6a18340fe1 | 2,742 | hpp | C++ | OptFrame/Util/ScalarEvaluator.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 2 | 2018-05-24T11:04:12.000Z | 2020-03-03T13:37:07.000Z | OptFrame/Util/ScalarEvaluator.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | null | null | null | OptFrame/Util/ScalarEvaluator.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 1 | 2019-06-06T16:57:49.000Z | 2019-06-06T16:57:49.000Z | // OptFrame - Optimization Framework
// Copyright (C) 2009-2015
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as published by... | 23.435897 | 83 | 0.716265 | 216k155 |
20cf88f3e506226bffa4558f5702a7774f0c1c55 | 1,900 | cpp | C++ | EngineTest/TestTileFlip.cpp | petrsnd/tetrad | 890221ca730011cac3437b92427d041cbc921db3 | [
"MIT"
] | null | null | null | EngineTest/TestTileFlip.cpp | petrsnd/tetrad | 890221ca730011cac3437b92427d041cbc921db3 | [
"MIT"
] | null | null | null | EngineTest/TestTileFlip.cpp | petrsnd/tetrad | 890221ca730011cac3437b92427d041cbc921db3 | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include "Engine/Game.h"
#include "Engine/GameMechanicsUtil.h"
BOOST_AUTO_TEST_CASE( TestPositionFlip )
{
{
Implbits::Position pos( 0, 0 );
Implbits::Position posflip = FlipPosition( Implbits::Position( 3, 0 ) );
BOOST_CHECK( pos == posflip );
}
... | 38 | 120 | 0.620526 | petrsnd |
20d0257f1178916f6dea3a51319aa56b1cdada3d | 726 | hpp | C++ | Framework/Common/BaseApplication.hpp | GameRay/GameEngineFromScratch | 96fe4990f743606683cbc93f6a4bdfc7e6ca55db | [
"MIT"
] | null | null | null | Framework/Common/BaseApplication.hpp | GameRay/GameEngineFromScratch | 96fe4990f743606683cbc93f6a4bdfc7e6ca55db | [
"MIT"
] | null | null | null | Framework/Common/BaseApplication.hpp | GameRay/GameEngineFromScratch | 96fe4990f743606683cbc93f6a4bdfc7e6ca55db | [
"MIT"
] | 1 | 2020-03-06T15:27:24.000Z | 2020-03-06T15:27:24.000Z | #pragma once
#include "IApplication.hpp"
namespace My {
class BaseApplication : implements IApplication
{
public:
BaseApplication(GfxConfiguration& cfg);
virtual int Initialize();
virtual void Finalize();
// One cycle of the main loop
virtual void Tick();
vi... | 22.6875 | 73 | 0.625344 | GameRay |
20d273159b2ef3eb4bfd9719dbfe4f6a1bf7156e | 287 | cpp | C++ | BOJ/10000/10951.cpp | minyong-jeong/hello-algorithm | 59f22c25cd4441254cfe91aed634d0a750021ea6 | [
"MIT"
] | null | null | null | BOJ/10000/10951.cpp | minyong-jeong/hello-algorithm | 59f22c25cd4441254cfe91aed634d0a750021ea6 | [
"MIT"
] | null | null | null | BOJ/10000/10951.cpp | minyong-jeong/hello-algorithm | 59f22c25cd4441254cfe91aed634d0a750021ea6 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
cin.tie(NULL);
ios::sync_with_stdio(false);
int num1, num2;
while (true)
{
cin >> num1 >> num2;
if (cin.eof())
{
break;
}
cout << num1 + num2 << "\n";
}
} | 14.35 | 36 | 0.449477 | minyong-jeong |
20dd0e723bee057be45aa79aa81930c73d7a233a | 193 | cpp | C++ | 07-Algorithm STL/01-Iterator/Pair.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 21 | 2020-10-03T03:57:19.000Z | 2022-03-25T22:41:05.000Z | 07-Algorithm STL/01-Iterator/Pair.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 40 | 2020-10-02T07:02:34.000Z | 2021-10-30T16:00:07.000Z | 07-Algorithm STL/01-Iterator/Pair.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 90 | 2020-10-02T07:06:22.000Z | 2022-03-25T22:41:17.000Z | #include<iostream>
#include<utility>
using namespace std;
int main()
{
pair<int,int>p(10,20), p1(30,40);
cout<<(p==p1)<<endl;
cout<<(p!=p1)<<endl;
cout<<(p>p1)<<endl;
cout<<(p<p1)<<endl;
} | 17.545455 | 34 | 0.611399 | ShreyashRoyzada |
22134f220212bbc2e29cea9a2a7dcdbc96c053ef | 1,811 | cpp | C++ | source/ff.dxgi/source/data_blob.cpp | spadapet/ff-engine | 244f653c5a25f22f2222842f32608f1101150c6f | [
"MIT"
] | null | null | null | source/ff.dxgi/source/data_blob.cpp | spadapet/ff-engine | 244f653c5a25f22f2222842f32608f1101150c6f | [
"MIT"
] | null | null | null | source/ff.dxgi/source/data_blob.cpp | spadapet/ff-engine | 244f653c5a25f22f2222842f32608f1101150c6f | [
"MIT"
] | null | null | null | #include "pch.h"
#include "data_blob.h"
ff::dxgi::data_blob_dx::data_blob_dx(ID3DBlob* blob)
: data_blob_dx(blob, 0, blob->GetBufferSize())
{}
ff::dxgi::data_blob_dx::data_blob_dx(ID3DBlob* blob, size_t offset, size_t size)
: blob(blob)
, offset(offset)
, size_(size)
{
assert(blob && offset + size... | 28.746032 | 107 | 0.696853 | spadapet |
2217863310194bc24097740123343683c502dd9a | 3,863 | hpp | C++ | source/housys/include/hou/sys/display_mode.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/housys/include/hou/sys/display_mode.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/housys/include/hou/sys/display_mode.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#ifndef HOU_SYS_DISPLAY_MODE_HPP
#define HOU_SYS_DISPLAY_MODE_HPP
#include "hou/sys/display_format.hpp"
#include "hou/sys/sys_config.hpp"
#include "hou/mth/matrix.hpp"
#include <ostream>
#include <vector>
namespace hou
... | 19.029557 | 81 | 0.676676 | DavideCorradiDev |
2218677dfcf3ba87190b9b29b2c9043a919cd5e5 | 531 | cpp | C++ | EventHandler/EventHandler_DemoSeek.cpp | chen0040/cpp-steering-behaviors | c73d2ae8037556d42440b54ba6eb6190e467fae9 | [
"MIT"
] | 2 | 2020-11-10T12:24:41.000Z | 2021-09-25T08:24:06.000Z | EventHandler/EventHandler_DemoSeek.cpp | chen0040/cpp-steering-behaviors | c73d2ae8037556d42440b54ba6eb6190e467fae9 | [
"MIT"
] | null | null | null | EventHandler/EventHandler_DemoSeek.cpp | chen0040/cpp-steering-behaviors | c73d2ae8037556d42440b54ba6eb6190e467fae9 | [
"MIT"
] | 1 | 2021-08-14T16:34:33.000Z | 2021-08-14T16:34:33.000Z | #include "EventHandler_DemoSeek.h"
#include "../GameWorld/GameWorld.h"
#include "../GLStates/GLState_Seek.h"
EventHandler_DemoSeek::EventHandler_DemoSeek(GLUIObj* pSubject)
: GLActionListener(pSubject)
, m_pWorld(NULL)
{
}
EventHandler_DemoSeek::~EventHandler_DemoSeek()
{
}
void EventHandler_DemoSeek::SetWorld(Gam... | 21.24 | 129 | 0.775895 | chen0040 |
221d6faa32e8595da0b1bd6ff086a65a8110a646 | 3,555 | cpp | C++ | tests/test-hdr/ordered_list/hdr_lazy_kv_rcu_shb.cpp | TatyanaBerlenko/libcds | 3f4dfab2aea72d70ce44e7fbc02da9a6908f0781 | [
"BSD-2-Clause"
] | 2 | 2016-12-03T22:09:50.000Z | 2021-08-31T12:44:24.000Z | tests/test-hdr/ordered_list/hdr_lazy_kv_rcu_shb.cpp | TatyanaBerlenko/libcds | 3f4dfab2aea72d70ce44e7fbc02da9a6908f0781 | [
"BSD-2-Clause"
] | null | null | null | tests/test-hdr/ordered_list/hdr_lazy_kv_rcu_shb.cpp | TatyanaBerlenko/libcds | 3f4dfab2aea72d70ce44e7fbc02da9a6908f0781 | [
"BSD-2-Clause"
] | 2 | 2018-05-26T19:27:12.000Z | 2021-08-31T12:44:28.000Z | //$$CDS-header$$
#include "ordered_list/hdr_lazy_kv.h"
#include <cds/urcu/signal_buffered.h>
#include <cds/container/lazy_kvlist_rcu.h>
namespace ordlist {
#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
namespace {
typedef cds::urcu::gc< cds::urcu::signal_buffered<> > rcu_type;
struct RCU_SHB_cmp_traits... | 28.902439 | 93 | 0.627848 | TatyanaBerlenko |
2221d8c3f785527fe82e4b088a483f0a12017919 | 7,967 | cc | C++ | talk/p2p/base/p2ptransport.cc | udit043/libjingle | dd7c03d0c5c358ada97feae44a5f76acad8dca13 | [
"BSD-3-Clause"
] | 5 | 2015-09-16T06:10:59.000Z | 2019-12-25T05:30:00.000Z | talk/p2p/base/p2ptransport.cc | udit043/libjingle | dd7c03d0c5c358ada97feae44a5f76acad8dca13 | [
"BSD-3-Clause"
] | null | null | null | talk/p2p/base/p2ptransport.cc | udit043/libjingle | dd7c03d0c5c358ada97feae44a5f76acad8dca13 | [
"BSD-3-Clause"
] | 3 | 2015-08-01T11:38:08.000Z | 2019-11-01T05:16:09.000Z | /*
* libjingle
* Copyright 2004--2005, Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions a... | 37.938095 | 80 | 0.702648 | udit043 |
22283dbfb773142e676b11005e62a63f25061cbf | 4,747 | cpp | C++ | check/core/matrix/dense/dense_matrix/test/get_col_segment.cpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | check/core/matrix/dense/dense_matrix/test/get_col_segment.cpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | check/core/matrix/dense/dense_matrix/test/get_col_segment.cpp | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | #include "../test.hpp"
#include <queue>
TYPED_TEST(DenseMatrixTest_ColMajor_Size8x5_Pitch8, GetColSegment) {
const auto pitch = this->pitch_;
const auto capacity = this->capacity_;
const auto offset = this->offset_;
const auto mat = this->mat_;
const auto valptr0 = this->valptr0_;
const mcnla::... | 27.281609 | 69 | 0.629029 | emfomy |
222a85381650c07b7396b04dae5f5179d22a6412 | 4,445 | cc | C++ | smallest-string-with-swaps.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | smallest-string-with-swaps.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | smallest-string-with-swaps.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <deque>
#include <algorithm>
class Solution
{
public:
std::string smallestStringWithSwaps(std::string s, const std::vector<std::vector<int>> &pairs)
{
return smallestStringWithSwapsUnionFind(s, pairs);
}
... | 27.608696 | 108 | 0.434196 | ArCan314 |
222abc64ceb4057739ba03d319b4da15a1daac47 | 258 | cpp | C++ | beep/main.cpp | ImprobabilityCast/Small-Projects | febfa7090dd6ec78888b2068f6d62b28216330bd | [
"MIT"
] | 1 | 2022-02-13T01:43:40.000Z | 2022-02-13T01:43:40.000Z | beep/main.cpp | ImprobabilityCast/Small-Projects | febfa7090dd6ec78888b2068f6d62b28216330bd | [
"MIT"
] | null | null | null | beep/main.cpp | ImprobabilityCast/Small-Projects | febfa7090dd6ec78888b2068f6d62b28216330bd | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
#if _WIN32_WINNT < 0x0500
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <windows.h>
int WinMain(HINSTANCE h, HINSTANCE h2, LPSTR whoKnows, int it)
{
Beep(0x320, 200);
return 0;
}
| 18.428571 | 62 | 0.686047 | ImprobabilityCast |
2232382c030235114b881763c556723d34a8d7e6 | 11,876 | cxx | C++ | StRoot/StEmcPool/StBarrelCalib2008/StBarrelMonitorMaker.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StRoot/StEmcPool/StBarrelCalib2008/StBarrelMonitorMaker.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | StRoot/StEmcPool/StBarrelCalib2008/StBarrelMonitorMaker.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | // *-- Author : Jan Balewski
//
// $Id: StBarrelMonitorMaker.cxx,v 1.5 2012/12/12 22:05:09 fisyak Exp $
#ifdef __APPLE__
#include <sys/types.h>
#endif
#include <TFile.h>
#include <TH1.h>
#include <TH2.h>
#include <TH3.h>
#include <StMessMgr.h>
#include "StBarrelMonitorMaker.h"
#include "StJanBarrelDbMaker.h"
#inclu... | 29.542289 | 165 | 0.674133 | xiaohaijin |
2232c20a6c1a4c2a04f3a89074d07b5007312040 | 2,608 | cpp | C++ | storage/src/Storage.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | storage/src/Storage.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | storage/src/Storage.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | #include "storage/Storage.h"
#include <yaml-cpp/yaml.h>
#include <filesystem>
#include <fstream>
#include <string>
namespace storage::key {
const std::string row = "row";
const std::string col = "col";
const std::string pos = "pos";
const std::string value = "value";
} // namespace storage::key
namespace YAML {
... | 26.612245 | 73 | 0.671779 | codingpotato |
2233a4028f66fb1b036dfb41e64e412943cd57cc | 6,278 | cpp | C++ | ace/ace/RMCast/RMCast_Fragment.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | ace/ace/RMCast/RMCast_Fragment.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | ace/ace/RMCast/RMCast_Fragment.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | // RMCast_Fragment.cpp,v 1.4 2000/10/11 00:57:08 coryan Exp
#include "RMCast_Fragment.h"
#include "ace/Message_Block.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (__ACE_INLINE__)
#include "RMCast_Fragment.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(... | 33.216931 | 92 | 0.620739 | tharindusathis |
2239226ca034a82757bfc7fe66f872245acb1fd5 | 631 | cpp | C++ | src/Callback-v11.cpp | Alfheim/node-julia | 72c202e149912ba09d3aea8c006aba83ae447b64 | [
"MIT"
] | 71 | 2015-01-17T12:35:43.000Z | 2021-12-01T06:04:22.000Z | src/Callback-v11.cpp | Alfheim/node-julia | 72c202e149912ba09d3aea8c006aba83ae447b64 | [
"MIT"
] | 33 | 2015-02-24T00:21:53.000Z | 2018-01-18T01:12:23.000Z | src/Callback-v11.cpp | Alfheim/node-julia | 72c202e149912ba09d3aea8c006aba83ae447b64 | [
"MIT"
] | 15 | 2015-04-24T06:48:03.000Z | 2021-12-07T20:39:38.000Z | #include <node_version.h>
#include "Callback.h"
using namespace v8;
nj::Callback::Callback(const Local<Function> &cb,const Local<Object> &recv):callback_persist(),recv_persist()
{
Isolate *I = Isolate::GetCurrent();
callback_persist.Reset(I,cb);
recv_persist.Reset(I,recv);
}
Local<Function> nj::Callback::c... | 19.121212 | 109 | 0.692552 | Alfheim |
223b72eb05b17f7e523649297589f8da0aa2f026 | 3,041 | cpp | C++ | GameServer/Battle_ProcDead_APet.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | GameServer/Battle_ProcDead_APet.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | GameServer/Battle_ProcDead_APet.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | 1 | 2022-01-17T09:34:39.000Z | 2022-01-17T09:34:39.000Z | #include "stdhdrs.h"
#include "Server.h"
#include "Battle.h"
#include "WarCastle.h"
#include "CmdMsg.h"
#include "Exp.h"
#include "Log.h"
#include "doFunc.h"
void ProcDead(CAPet* df, CCharacter* of)
{
CPC* opc = NULL;
CNPC* onpc = NULL;
CPet* opet = NULL;
CElemental* oelemental = NULL;
CAPet* oapet ... | 19.125786 | 97 | 0.604078 | openlastchaos |
223b9fda2af0acf14e3a5a4bdef518657a439af0 | 3,753 | cc | C++ | base/test/quaternion_test.cc | rkb-1/quad | 66ae3bc5ccb6db070bc1e32a3b9386f6d01a049e | [
"Apache-2.0"
] | 64 | 2017-01-18T15:12:05.000Z | 2022-02-16T08:28:11.000Z | base/test/quaternion_test.cc | rkb-1/quad | 66ae3bc5ccb6db070bc1e32a3b9386f6d01a049e | [
"Apache-2.0"
] | 2 | 2021-02-11T14:39:38.000Z | 2021-10-03T16:49:57.000Z | base/test/quaternion_test.cc | rkb-1/quad | 66ae3bc5ccb6db070bc1e32a3b9386f6d01a049e | [
"Apache-2.0"
] | 14 | 2021-01-11T09:48:34.000Z | 2021-12-16T16:20:35.000Z | // Copyright 2014-2015 Josh Pieper, jjp@pobox.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 by applicable... | 28.869231 | 75 | 0.637357 | rkb-1 |
2241d810412d9325c504a0a757283b15dcae67c9 | 3,000 | cpp | C++ | src/verify/main_verify.cpp | velidurmuscan/VDSProject_Group6 | 74ad2e315ffe271a66d744078bc16fe002d33874 | [
"Unlicense",
"MIT"
] | null | null | null | src/verify/main_verify.cpp | velidurmuscan/VDSProject_Group6 | 74ad2e315ffe271a66d744078bc16fe002d33874 | [
"Unlicense",
"MIT"
] | null | null | null | src/verify/main_verify.cpp | velidurmuscan/VDSProject_Group6 | 74ad2e315ffe271a66d744078bc16fe002d33874 | [
"Unlicense",
"MIT"
] | null | null | null | /*=============================================================================
Written by Mohammad R Fadiheh (2017)
=============================================================================*/
#include<iostream>
#include<fstream>
#include<string>
#include<sstream>
#include<map>
struct node {
std::string var_... | 22.900763 | 132 | 0.574333 | velidurmuscan |
22479d2daedc168c0f739920d2e729da195d6ce8 | 189 | hpp | C++ | src/components/allcomponents.hpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | src/components/allcomponents.hpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | src/components/allcomponents.hpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | #ifndef INCLUDE_BALLCOMPONENTS
#define INCLUDE_BALLCOMPONENTS
#include "../components.hpp"
#include "primitives.hpp"
#include "drawingcomponents.hpp"
#include "gamecomponents.hpp"
#endif
| 18.9 | 32 | 0.804233 | wareya |
22481376becb28333dc86377cfd200f030a63ac2 | 14,430 | cpp | C++ | OREData/ored/marketdata/inflationcurve.cpp | nvolfango/Engine | a5ee0fc09d5a50ab36e50d55893b6e484d6e7004 | [
"BSD-3-Clause"
] | 1 | 2021-03-30T17:24:17.000Z | 2021-03-30T17:24:17.000Z | OREData/ored/marketdata/inflationcurve.cpp | zhangjiayin/Engine | a5ee0fc09d5a50ab36e50d55893b6e484d6e7004 | [
"BSD-3-Clause"
] | null | null | null | OREData/ored/marketdata/inflationcurve.cpp | zhangjiayin/Engine | a5ee0fc09d5a50ab36e50d55893b6e484d6e7004 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (C) 2016 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 59.139344 | 120 | 0.570132 | nvolfango |
22493a49d2e35d060825b9b6db2a8badc554f516 | 7,609 | cpp | C++ | src/xtd.core.native.unix/src/xtd/native/unix/directory.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | 1 | 2022-02-25T16:53:06.000Z | 2022-02-25T16:53:06.000Z | src/xtd.core.native.unix/src/xtd/native/unix/directory.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | src/xtd.core.native.unix/src/xtd/native/unix/directory.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | #define __XTD_CORE_NATIVE_LIBRARY__
#include <xtd/native/directory.h>
#include <xtd/native/file_system.h>
#undef __XTD_CORE_NATIVE_LIBRARY__
#include <dirent.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/stat.h>
using namespace std;
using namespace xtd::native;
namespace {
bool pattern_compare(const s... | 34.90367 | 217 | 0.705086 | BaderEddineOuaich |
224cacc2e25eeabbac146d8cba9489c2bb5fe900 | 20,449 | cpp | C++ | libs/hmtslam/src/CHMTSLAM_main.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 2 | 2017-03-25T18:09:17.000Z | 2017-05-22T08:14:48.000Z | libs/hmtslam/src/CHMTSLAM_main.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/hmtslam/src/CHMTSLAM_main.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 1 | 2021-08-16T11:50:47.000Z | 2021-08-16T11:50:47.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 29.088193 | 113 | 0.554942 | yhexie |
224e0aaf3aae9fb677217087f4feeb5acfc8da0b | 678 | hpp | C++ | utilities/autoware_launcher_rviz/src/module_panel.hpp | alanjclark/autoware.ai | ba97edbbffb6f22e78912bf96400a59ef6a13daf | [
"Apache-2.0"
] | 20 | 2019-05-21T06:14:17.000Z | 2021-11-03T04:36:09.000Z | ros/src/util/packages/autoware_rviz_plugins/autoware_launcher_rviz/src/module_panel.hpp | anhnv3991/autoware | d5b2ed9dc309193c8a2a7c77a2b6c88104c28328 | [
"Apache-2.0"
] | 40 | 2019-06-24T16:56:15.000Z | 2022-02-28T13:41:58.000Z | ros/src/util/packages/autoware_rviz_plugins/autoware_launcher_rviz/src/module_panel.hpp | anhnv3991/autoware | d5b2ed9dc309193c8a2a7c77a2b6c88104c28328 | [
"Apache-2.0"
] | 31 | 2020-05-29T07:51:58.000Z | 2022-03-26T05:46:33.000Z | #ifndef AUTOWARE_LAUNCHER_RVIZ_CONTROLLER_HPP
#define AUTOWARE_LAUNCHER_RVIZ_CONTROLLER_HPP
#include <unordered_map>
#include <rviz/panel.h>
#include <QWidget>
#include <QPushButton>
#include <QTcpSocket>
namespace autoware_launcher_rviz {
class ModulePanel : public rviz::Panel {
Q_OBJECT
public:
ModulePanel(Q... | 18.324324 | 56 | 0.768437 | alanjclark |
225116285d24ca6e60ba3efca6ba3cd68e515985 | 6,441 | cpp | C++ | cppillr/parser.cpp | dacap/cppillr | 4b67403aab09c24d70c417e85567b48478f5aab0 | [
"MIT"
] | 4 | 2021-08-02T22:57:17.000Z | 2021-12-26T16:45:17.000Z | cppillr/parser.cpp | dacap/cppillr | 4b67403aab09c24d70c417e85567b48478f5aab0 | [
"MIT"
] | null | null | null | cppillr/parser.cpp | dacap/cppillr | 4b67403aab09c24d70c417e85567b48478f5aab0 | [
"MIT"
] | null | null | null | // Copyright (C) 2019-2021 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#include "cppillr/parser.h"
#include <memory>
void Parser::parse(const LexData& lex)
{
data.fn = lex.fn;
lex_data = &lex;
goto_token(-1);
dcl_seq();
}
// Conver... | 20.912338 | 72 | 0.567148 | dacap |
2252afa57cc8ec9b2d19325148cd3720d7dd5c34 | 7,530 | cc | C++ | cvmfs/receiver/payload_processor.cc | amadio/cvmfs | 2cc5dc22c6c163e8515229006a0c6f8fbad9c23d | [
"BSD-3-Clause"
] | null | null | null | cvmfs/receiver/payload_processor.cc | amadio/cvmfs | 2cc5dc22c6c163e8515229006a0c6f8fbad9c23d | [
"BSD-3-Clause"
] | 2 | 2018-05-04T13:43:45.000Z | 2018-08-27T13:53:45.000Z | cvmfs/receiver/payload_processor.cc | amadio/cvmfs | 2cc5dc22c6c163e8515229006a0c6f8fbad9c23d | [
"BSD-3-Clause"
] | null | null | null | /**
* This file is part of the CernVM File System.
*/
#include "payload_processor.h"
#include <fcntl.h>
#include <unistd.h>
#include <vector>
#include "logging.h"
#include "params.h"
#include "util/posix.h"
#include "util/string.h"
namespace {
const size_t kConsumerBuffer = 10 * 1024 * 1024; // 10 MB
}
namesp... | 28.740458 | 80 | 0.691368 | amadio |
225477a8424205cd4b10ab8b0b74bb3ccbf35960 | 8,294 | cpp | C++ | stdmap-speedup/stdmap-speedup.cpp | demonMOE-s/Toys | 09ddd7e3f1d3956427c2f3d9e99ca05fc63c177e | [
"BSD-2-Clause"
] | null | null | null | stdmap-speedup/stdmap-speedup.cpp | demonMOE-s/Toys | 09ddd7e3f1d3956427c2f3d9e99ca05fc63c177e | [
"BSD-2-Clause"
] | null | null | null | stdmap-speedup/stdmap-speedup.cpp | demonMOE-s/Toys | 09ddd7e3f1d3956427c2f3d9e99ca05fc63c177e | [
"BSD-2-Clause"
] | null | null | null | /*
Author: Wojciech Muła
e-mail: wojciech_mula@poczta.onet.pl
www: http://wm.ite.pl/
License: public domain
initial release 3-04-2010
*/
#include <iostream>
#include <vector>
#include <map>
#include <string>
#include <sys/time.h>
unsigned gettime() {
struct timeval tv;
gettimeofday(&tv, NULL);
return (t... | 26 | 83 | 0.464673 | demonMOE-s |
2255c2bc0f12bbaf4f04a3925c00b7c81bee2a5c | 557 | cpp | C++ | source/dataset/CameraMgr.cpp | xzrunner/easyeditor3 | 61c89c8534d1342fb2890d7e6218fd7614410861 | [
"MIT"
] | null | null | null | source/dataset/CameraMgr.cpp | xzrunner/easyeditor3 | 61c89c8534d1342fb2890d7e6218fd7614410861 | [
"MIT"
] | null | null | null | source/dataset/CameraMgr.cpp | xzrunner/easyeditor3 | 61c89c8534d1342fb2890d7e6218fd7614410861 | [
"MIT"
] | null | null | null | #include "ee3/CameraMgr.h"
#include <painting3/OrthoCam.h>
namespace ee3
{
CameraMgr::CameraMgr(bool only3d)
: m_curr(CAM_3D)
{
assert(m_cams[CAM_3D] == nullptr);
if (!only3d)
{
m_cams[CAM_XZ] = std::make_shared<pt3::OrthoCam>(pt3::OrthoCam::VP_XZ);
m_cams[CAM_XY] = std::make_shared<pt3::OrthoCam>(pt3::Orth... | 20.62963 | 73 | 0.70377 | xzrunner |
225c7fbc994b5d869f4c15e02ab60b461054f22b | 16,491 | cpp | C++ | Sources/Elastos/LibCore/src/org/apache/harmony/security/x509/CDNParser.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/LibCore/src/org/apache/harmony/security/x509/CDNParser.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/LibCore/src/org/apache/harmony/security/x509/CDNParser.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 29.660072 | 104 | 0.510703 | jingcao80 |