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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
78970d4524a752d6f4374359c1e412bed994e97f | 805 | cpp | C++ | test/SeeDeviceAddress.cpp | genevea/TankController | 18c47c54737800cca09525d907c8ddf4f6e36750 | [
"MIT"
] | null | null | null | test/SeeDeviceAddress.cpp | genevea/TankController | 18c47c54737800cca09525d907c8ddf4f6e36750 | [
"MIT"
] | 1 | 2021-05-10T05:41:39.000Z | 2021-05-10T05:41:39.000Z | test/SeeDeviceAddress.cpp | genevea/TankController | 18c47c54737800cca09525d907c8ddf4f6e36750 | [
"MIT"
] | null | null | null | #include "SeeDeviceAddress.h"
#include <Arduino.h>
#include <ArduinoUnitTests.h>
#include "Keypad_TC.h"
#include "LiquidCrystal_TC.h"
#include "TankControllerLib.h"
unittest(testOutput) {
TankControllerLib* tc = TankControllerLib::instance();
LiquidCrystal_TC* display = LiquidCrystal_TC::instance();
assertEqua... | 27.758621 | 61 | 0.710559 | genevea |
789752e9399a02405a1da70f1958f3491dd7c602 | 545 | cpp | C++ | Easy Challenges/Ciel and A-B.cpp | Akashverma247/Coding_Library | 09c28a71c7ba5b2f192bb8ef26b2d0a41905f011 | [
"MIT"
] | null | null | null | Easy Challenges/Ciel and A-B.cpp | Akashverma247/Coding_Library | 09c28a71c7ba5b2f192bb8ef26b2d0a41905f011 | [
"MIT"
] | null | null | null | Easy Challenges/Ciel and A-B.cpp | Akashverma247/Coding_Library | 09c28a71c7ba5b2f192bb8ef26b2d0a41905f011 | [
"MIT"
] | null | null | null | /*
In Ciel's restaurant, a waiter is training. Since the waiter isn't good at arithmetic, sometimes he gives guests wrong change. Ciel gives him a simple problem. What is A-B (A minus B) ?
Surprisingly, his answer is wrong. To be more precise, his answer has exactly one wrong digit. Can you imagine this? Can you make ... | 25.952381 | 185 | 0.638532 | Akashverma247 |
7898e79d60d92ba5b556054923231de1c9141dca | 790 | cpp | C++ | cpp/src/exercise/e0100/e0098.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0100/e0098.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0100/e0098.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | // https://leetcode-cn.com/problems/validate-binary-search-tree/
#include "extern.h"
class S0098 {
bool leftFirst(TreeNode* root, vector<int>& vec) {
if (root->left && !leftFirst(root->left, vec)) return false;
if (!vec.empty() && vec.back() >= root->val) return false;
vec.push_back(root->... | 28.214286 | 70 | 0.6 | ajz34 |
78990cb7b401b12c5bb8983ba059e6734fa46a4a | 5,974 | cpp | C++ | src/utils/Blob.cpp | hpc/hxhim | 1a2224a200cb5a9fae33da13720e68beb5bee746 | [
"BSD-3-Clause"
] | 2 | 2020-11-25T17:45:58.000Z | 2021-12-21T02:01:16.000Z | src/utils/Blob.cpp | hpc/hxhim | 1a2224a200cb5a9fae33da13720e68beb5bee746 | [
"BSD-3-Clause"
] | null | null | null | src/utils/Blob.cpp | hpc/hxhim | 1a2224a200cb5a9fae33da13720e68beb5bee746 | [
"BSD-3-Clause"
] | 1 | 2021-10-11T19:54:05.000Z | 2021-10-11T19:54:05.000Z | #include <cstring>
#include <iomanip>
#include <stdexcept>
#include <utility>
#include "utils/Blob.hpp"
#include "utils/little_endian.hpp"
#include "utils/memory.hpp"
Blob::Blob(void *ptr, const std::size_t len, const hxhim_data_t type, const bool clean)
: ptr(ptr),
len(len),
type(type),
clean(c... | 20.888112 | 87 | 0.58085 | hpc |
789cfa59cc193d3548d4d62cf96743b9fa99e656 | 7,664 | cpp | C++ | src/XPTools/ConvertObj3DS.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 71 | 2015-12-15T19:32:27.000Z | 2022-02-25T04:46:01.000Z | src/XPTools/ConvertObj3DS.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 19 | 2016-07-09T19:08:15.000Z | 2021-07-29T10:30:20.000Z | src/XPTools/ConvertObj3DS.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 42 | 2015-12-14T19:13:02.000Z | 2022-03-01T15:15:03.000Z | /*
* Copyright (c) 2004, Laminar Research.
*
* 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, ... | 29.590734 | 99 | 0.635569 | rromanchuk |
789d80e2e0142611c4c8d2abe5fd9c9c05a19060 | 4,542 | cpp | C++ | frontends/p4/typeChecking/syntacticEquivalence.cpp | DTharun/p4lang | d83d078f95ae2eaf054955fb645fa4d4a7e54847 | [
"Apache-2.0"
] | 27 | 2018-06-30T13:01:40.000Z | 2022-01-28T09:07:21.000Z | frontends/p4/typeChecking/syntacticEquivalence.cpp | DTharun/p4lang | d83d078f95ae2eaf054955fb645fa4d4a7e54847 | [
"Apache-2.0"
] | 8 | 2018-06-01T11:19:02.000Z | 2018-06-09T13:09:15.000Z | frontends/p4/typeChecking/syntacticEquivalence.cpp | DTharun/p4lang | d83d078f95ae2eaf054955fb645fa4d4a7e54847 | [
"Apache-2.0"
] | 6 | 2019-02-24T11:20:22.000Z | 2021-05-25T17:21:07.000Z | /*
Copyright 2016 VMware, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | 42.849057 | 100 | 0.60502 | DTharun |
a191d05341c14819ccb1b24f8319b73074ed6fba | 322 | hpp | C++ | source/luaquicks.hpp | Pika-Software/gmsv_network | 037ddbaf5b9c29e9e2bbfdc0db45a51dfbe03733 | [
"MIT"
] | 2 | 2021-12-25T17:59:38.000Z | 2021-12-25T17:59:45.000Z | source/luaquicks.hpp | Pika-Software/gmsv_network | 037ddbaf5b9c29e9e2bbfdc0db45a51dfbe03733 | [
"MIT"
] | 1 | 2021-12-26T13:51:58.000Z | 2021-12-26T19:03:02.000Z | source/luaquicks.hpp | Pika-Software/gmsv_network | 037ddbaf5b9c29e9e2bbfdc0db45a51dfbe03733 | [
"MIT"
] | null | null | null | #ifndef GMNETWORK_LUAQUICKS_H
#define GMNETWORK_LUAQUICKS_H
#ifdef SYSTEM_WINDOWS
#pragma once
#endif
#include "main.hpp"
namespace GmNetwork::LuaQuicks {
bool PushHookCall(GarrysMod::Lua::ILuaInterface* LUA, const char* eventName);
bool RunHookCall(GarrysMod::Lua::ILuaInterface* LUA, int argC, int retC);
}
#end... | 21.466667 | 78 | 0.785714 | Pika-Software |
a19800bcc0d8a25160214e357dda16db5c68465f | 5,429 | cpp | C++ | src/LCDController.cpp | danielmcmillan/CharLCD | c367b1fcf03306c1d11cd9b24785518ae019b762 | [
"BSD-2-Clause"
] | null | null | null | src/LCDController.cpp | danielmcmillan/CharLCD | c367b1fcf03306c1d11cd9b24785518ae019b762 | [
"BSD-2-Clause"
] | null | null | null | src/LCDController.cpp | danielmcmillan/CharLCD | c367b1fcf03306c1d11cd9b24785518ae019b762 | [
"BSD-2-Clause"
] | null | null | null | #include "LCDController.h"
#include <algorithm>
#include <iterator>
#include <cassert>
#include <lcd.h>
namespace CharLCD
{
const LCDController::BufferChar LCDController::emptyChar = {false, {' '}};
LCDController::LCDController(LCDBackend lcd)
: lcd(std::move(lcd)), numRows(lcd.getRows()), numCols(lcd... | 30.846591 | 120 | 0.500829 | danielmcmillan |
a199aca4f640c384880747da1b343f44f12d37ac | 710 | hpp | C++ | modules/control/include/toffy/web/sensor2dGroupController.hpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/control/include/toffy/web/sensor2dGroupController.hpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/control/include/toffy/web/sensor2dGroupController.hpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <toffy/web/filterController.hpp>
#include <toffy/web/requestAction.hpp>
namespace toffy {
namespace control {
/**
* @brief Extended controller to handle multiples sensor2d filter at the same time
* @ingroup Control
*
* Apply the Action on all 2d filters declared in the filterBanks
*/
class... | 23.666667 | 83 | 0.733803 | voxel-dot-at |
a19bc512eaa8cc87ff46dc61866b9755863c94c2 | 812 | cpp | C++ | codeforces/C - NN and the Optical Illusion/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - NN and the Optical Illusion/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - NN and the Optical Illusion/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jan/13/2019 21:08
* solution_verdict: Accepted language: GNU C++14
* run... | 42.736842 | 111 | 0.348522 | kzvd4729 |
a19be4ff220efe907f6f0d9edce3293d50cbede5 | 26,684 | cpp | C++ | Code/Engine/DebugGui/DebugGuiHelper.cpp | WarzesProject/Micro3DRPG | 36604d51d5dd640836cad77995abbfecfe4bdccc | [
"MIT"
] | 3 | 2020-05-12T04:36:38.000Z | 2021-04-04T07:21:44.000Z | Code/Engine/DebugGui/DebugGuiHelper.cpp | WarzesProject/Micro3DRPG | 36604d51d5dd640836cad77995abbfecfe4bdccc | [
"MIT"
] | null | null | null | Code/Engine/DebugGui/DebugGuiHelper.cpp | WarzesProject/Micro3DRPG | 36604d51d5dd640836cad77995abbfecfe4bdccc | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "DebugGui/DebugGuiHelper.h"
#include "Core/Math/Transform.h"
#include "Core/Math/EulerAngles.h"
#include "Resource/Scene/SceneNode.h"
#include "Resource/Scene/SceneResource.h"
#include "Resource/Scene/Item/Camera/CameraSceneItem.h"
#include "Resource/Scene/Item/Mesh/SkeletonMeshSceneItem.h"... | 54.016194 | 434 | 0.713386 | WarzesProject |
a19cb47ca3651bc3e5c42cda2c7ac04a291ef15e | 18,124 | cpp | C++ | src/webview/webpage.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | 1 | 2017-05-21T15:31:02.000Z | 2017-05-21T15:31:02.000Z | src/webview/webpage.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | null | null | null | src/webview/webpage.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | null | null | null | /* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2012 David Rosca <nowrep@gmail.com>
*
* 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 ... | 33.133455 | 160 | 0.640422 | bubapl |
a19f31700ba3ce48e8f7e139dc6fdf8a5d925b47 | 244 | cpp | C++ | control-flow/return.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | 2 | 2019-04-11T16:41:42.000Z | 2019-11-19T22:07:57.000Z | control-flow/return.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | null | null | null | control-flow/return.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int function1(int a){
return a + 1;
return a+2;
cout<<"hello";
}
int main(){
int result;
result = function1(7);
cout<<result<<endl;
return 0;
}
| 11.619048 | 26 | 0.516393 | punithpatil |
a1a05d13cb589d78a1a077645873a3b35f369c56 | 2,680 | hpp | C++ | include/ghex/device/cuda/runtime.hpp | GridTools/GHEX | 1adce924c02cf0553d2ceed69f7dc37e39c7013d | [
"BSD-3-Clause"
] | 9 | 2020-01-30T08:12:40.000Z | 2022-01-17T11:18:07.000Z | include/ghex/device/cuda/runtime.hpp | ghex-org/GHEX | 6eb91410d5c01d36a70f0eb106c1f065df3cee9f | [
"BSD-3-Clause"
] | 50 | 2019-12-19T13:25:56.000Z | 2021-09-16T13:57:36.000Z | include/ghex/device/cuda/runtime.hpp | ghex-org/GHEX | 6eb91410d5c01d36a70f0eb106c1f065df3cee9f | [
"BSD-3-Clause"
] | 10 | 2019-12-10T15:31:36.000Z | 2021-07-04T19:31:28.000Z | /*
* GridTools
*
* Copyright (c) 2014-2021, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#pragma once
#ifdef __HIP_PLATFORM_HCC__
#include <hip/hip_runtime.h>
#include <ghex/device/cuda/undef_cuda_macros.hpp>
/* G... | 35.263158 | 68 | 0.873507 | GridTools |
a1a161930ab97e58a54ad1f09a7f427a03e1c6fb | 392 | cpp | C++ | cpp/541-550/Output Contest Matches.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/541-550/Output Contest Matches.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/541-550/Output Contest Matches.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
public:
string findContestMatch(int n) {
vector<string> m(n);
for (int i = 0; i < n; i++) {
m[i] = to_string(i + 1);
}
while (n > 1) {
for (int i = 0; i < n / 2; i++) {
m[i] = "(" + m[i] + "," + m[n - 1 - i] + ")";
... | 20.631579 | 61 | 0.306122 | KaiyuWei |
a1a1e7c0aab8bd2c65f33f1d8d6e581472223f44 | 951 | cpp | C++ | DSA/Building a linked list.cpp | lixk28/Assignment | 1128d041a111063be0dba1699ebcf4aa8a74e49c | [
"MIT"
] | null | null | null | DSA/Building a linked list.cpp | lixk28/Assignment | 1128d041a111063be0dba1699ebcf4aa8a74e49c | [
"MIT"
] | null | null | null | DSA/Building a linked list.cpp | lixk28/Assignment | 1128d041a111063be0dba1699ebcf4aa8a74e49c | [
"MIT"
] | null | null | null | #include <iostream>
#define JUST_CHECK
using namespace std;
typedef string T;
struct Node
{
//data members
T data;
Node *next;
//constructors
Node() { next = NULL;};
Node(T item, Node *add_on = NULL)
{
data = item;
next = add_on;
};
};
Node *foo()
... | 16.684211 | 49 | 0.477392 | lixk28 |
a1a2c0ae4c87d618f814a7e0686b4723833b7e36 | 2,243 | cpp | C++ | src/zorbatypes/rchandle.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 94 | 2015-01-18T09:40:36.000Z | 2022-03-02T21:14:55.000Z | src/zorbatypes/rchandle.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 72 | 2015-01-05T22:00:31.000Z | 2021-07-17T11:35:03.000Z | src/zorbatypes/rchandle.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 27 | 2015-01-18T20:20:54.000Z | 2020-11-01T18:01:07.000Z | /*
* Copyright 2006-2008 The FLWOR 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 applicable law... | 26.081395 | 81 | 0.579581 | jsoniq |
a1a4841562c5a2eb83898c6398460f7fcd04d0d8 | 1,895 | hpp | C++ | include/SSVOpenHexagon/Core/Steam.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 409 | 2015-01-03T00:08:16.000Z | 2021-11-29T05:42:06.000Z | include/SSVOpenHexagon/Core/Steam.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 185 | 2015-01-03T14:52:31.000Z | 2021-11-19T20:58:48.000Z | include/SSVOpenHexagon/Core/Steam.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 74 | 2015-01-12T19:08:54.000Z | 2021-11-22T23:43:59.000Z | // Copyright (c) 2013-2020 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: https://opensource.org/licenses/AFL-3.0
#pragma once
#include "SSVOpenHexagon/Utils/UniquePtr.hpp"
#include <cstdint>
#include <functional>
#include <optional>
#include <string_view>
#include <string>
nam... | 27.071429 | 79 | 0.727704 | duck-37 |
a1abc358146106cb6d96b49c93e31e3c15904ba9 | 7,748 | cpp | C++ | dc/src/v20180410/model/DirectConnectTunnelRoute.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | dc/src/v20180410/model/DirectConnectTunnelRoute.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | dc/src/v20180410/model/DirectConnectTunnelRoute.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* 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
... | 29.8 | 163 | 0.692953 | suluner |
a1ad6726f38dc872891381e33ce8cac59cf6d3f3 | 2,160 | cpp | C++ | aws-cpp-sdk-accessanalyzer/source/model/KmsKeyConfiguration.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-accessanalyzer/source/model/KmsKeyConfiguration.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-accessanalyzer/source/model/KmsKeyConfiguration.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/accessanalyzer/model/KmsKeyConfiguration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace ... | 23.736264 | 108 | 0.731944 | perfectrecall |
a1ada5eebf4f4c1f16c54d12c4e5c61dcdee30d0 | 1,351 | cpp | C++ | liblumi/sources/Ray.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | liblumi/sources/Ray.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | liblumi/sources/Ray.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* ,, */
/* `7MMF' db `7MM"""Mq. MMP""MM""YMM */
/* MM MM `MM.P' MM `7 ... | 39.735294 | 80 | 0.350111 | Rertsyd |
a1adf3bd15e3a7a05636f556764d6340ad66968c | 13,482 | hh | C++ | Mu2eUtilities/inc/RootTreeSampler.hh | sophiemiddleton/Offline | d0c570158c88b7311e758666ab47fafc828f39b0 | [
"Apache-2.0"
] | null | null | null | Mu2eUtilities/inc/RootTreeSampler.hh | sophiemiddleton/Offline | d0c570158c88b7311e758666ab47fafc828f39b0 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | Mu2eUtilities/inc/RootTreeSampler.hh | sophiemiddleton/Offline | d0c570158c88b7311e758666ab47fafc828f39b0 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | // A helper class to randomly sample entries read from a collection of
// ROOT trees. Input ROOT files are read only once, during the
// construction phase, and data are stored in memory. There are two
// template arguments: EventRecord and NtupleRecord. They can be the
// same type (the default), then a single row ... | 35.952 | 118 | 0.564605 | sophiemiddleton |
a1afc12bec8fb6c671eec5e36724fc69d537d493 | 542 | cpp | C++ | MGAME.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | MGAME.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | MGAME.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define MOD 1000000007
#define print(A,n) for(ll i=0;i<n;++i)cout<<A[i]<<' ';cout<<endl;
#define take(A,n) for(ll i=0;i<n;++i)cin>>A[i];
// for(auto& it : m)
void fastio(){ios_base::sync_with_stdio(false);cin.tie(NULL);}
int main()
{
fastio();
... | 19.357143 | 65 | 0.527675 | trehanarsh |
a1b33557aac8576ea9835fce819cecdf76ab0cae | 34,003 | hpp | C++ | include/UnityEngine/AndroidJNI.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/AndroidJNI.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/AndroidJNI.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.jvalue
#include "UnityEngine/jvalue.hpp"
// Completed inc... | 65.897287 | 134 | 0.736141 | darknight1050 |
a1b651f13299bddcad47a84b23b7ef1e5c2a3f46 | 3,006 | cpp | C++ | calc.cpp | ShotaIuchi/InfiniteCalculator | 70f40f50b2bb7265cfe8fdb2532796f978b61c7d | [
"MIT"
] | null | null | null | calc.cpp | ShotaIuchi/InfiniteCalculator | 70f40f50b2bb7265cfe8fdb2532796f978b61c7d | [
"MIT"
] | null | null | null | calc.cpp | ShotaIuchi/InfiniteCalculator | 70f40f50b2bb7265cfe8fdb2532796f978b61c7d | [
"MIT"
] | null | null | null | #include "util.hpp"
#include "calc.hpp"
#include <iostream>
namespace ic {
std::string calcAddition(std::vector<std::string>& argValue)
{
std::vector<std::vector<int>> value;
for (const std::string v : argValue) {
value.push_back(str2vec(rstring(v)));
}
std::vector<int> anser;
int moveUp =... | 24.241935 | 78 | 0.482369 | ShotaIuchi |
a1b6fa7e08eb99f9d698a63f7d3e5f136e453dce | 22,803 | cpp | C++ | Cpp/acc bridge.cpp | alexfordc/Au | 9253f0716fca6aa93d0acc61d45df911bdfb0fe9 | [
"MIT"
] | 1 | 2020-04-17T12:25:07.000Z | 2020-04-17T12:25:07.000Z | Cpp/acc bridge.cpp | alexfordc/Au | 9253f0716fca6aa93d0acc61d45df911bdfb0fe9 | [
"MIT"
] | null | null | null | Cpp/acc bridge.cpp | alexfordc/Au | 9253f0716fca6aa93d0acc61d45df911bdfb0fe9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "cpp.h"
#include "acc.h"
HRESULT AccFind(AccFindCallback& callback, HWND w, Cpp_Acc* aParent, const Cpp_AccParams& ap, eAF2 flags2, out BSTR& errStr);
HRESULT AccFromPoint(POINT p, int flags, int specWnd, out Cpp_Acc& aResult);
HRESULT AccNavigate(Cpp_Acc aFrom, STR navig, out Cpp_Acc& aRe... | 34.445619 | 184 | 0.710784 | alexfordc |
a1bbcdb67eb60c99e1b459019c6796eb7c9079c4 | 1,026 | hpp | C++ | samples/WindowsVulkan/gli/sampler.hpp | dnikolaidis2/optick | 9c692bca0d542c768eb02db8f81f44d57f626e55 | [
"MIT"
] | 1,711 | 2019-04-15T16:39:00.000Z | 2022-03-31T22:06:38.000Z | samples/WindowsVulkan/gli/sampler.hpp | dnikolaidis2/optick | 9c692bca0d542c768eb02db8f81f44d57f626e55 | [
"MIT"
] | 113 | 2019-12-14T04:28:04.000Z | 2021-09-26T18:40:27.000Z | samples/WindowsVulkan/gli/sampler.hpp | dnikolaidis2/optick | 9c692bca0d542c768eb02db8f81f44d57f626e55 | [
"MIT"
] | 172 | 2019-04-23T05:08:55.000Z | 2022-03-31T17:30:35.000Z | /// @brief Include to use wrap modes and the sampler base class.
/// @file gli/sampler.hpp
#pragma once
#include "core/filter.hpp"
namespace gli
{
/// Texture coordinate wrapping mode
enum wrap
{
WRAP_CLAMP_TO_EDGE, WRAP_FIRST = WRAP_CLAMP_TO_EDGE,
WRAP_CLAMP_TO_BORDER,
WRAP_REPEAT,
WRAP_MIRROR_REPEAT,
... | 20.117647 | 81 | 0.736842 | dnikolaidis2 |
a1bd8ab1dd1325d2463e238f4adaf256adb75913 | 41,525 | cc | C++ | tensorflow/core/kernels/sdca_ops.cc | topsun888/tensorflow | bad7c50b9dc9789ad7dd0a62daca40b7269841ed | [
"Apache-2.0"
] | 2 | 2019-07-05T15:17:01.000Z | 2020-04-16T07:25:56.000Z | tensorflow/core/kernels/sdca_ops.cc | topsun888/tensorflow | bad7c50b9dc9789ad7dd0a62daca40b7269841ed | [
"Apache-2.0"
] | 1 | 2021-04-12T03:51:59.000Z | 2021-04-12T03:51:59.000Z | tensorflow/core/kernels/sdca_ops.cc | topsun888/tensorflow | bad7c50b9dc9789ad7dd0a62daca40b7269841ed | [
"Apache-2.0"
] | 5 | 2018-02-27T00:34:23.000Z | 2022-02-28T16:38:08.000Z | /* Copyright 2016 The TensorFlow Authors. 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 required by applicable law or a... | 40.710784 | 80 | 0.684359 | topsun888 |
a1bec3d4f239995a579afb417f9b2fe91b778649 | 3,385 | cpp | C++ | src/Native/libcryptonight/xmrig/Mem_unix.cpp | lurchinms/miningcore-2 | 1ab7d1ce1b3dd3c28e35348e0b701fd5b5e264b1 | [
"MIT"
] | 28 | 2018-05-24T06:35:38.000Z | 2021-11-29T17:18:32.000Z | src/Native/libcryptonight/xmrig/Mem_unix.cpp | lurchinms/miningcore-2 | 1ab7d1ce1b3dd3c28e35348e0b701fd5b5e264b1 | [
"MIT"
] | 19 | 2019-03-30T23:23:02.000Z | 2021-12-19T09:12:00.000Z | src/Native/libcryptonight/xmrig/Mem_unix.cpp | lurchinms/miningcore-2 | 1ab7d1ce1b3dd3c28e35348e0b701fd5b5e264b1 | [
"MIT"
] | 37 | 2021-03-19T02:56:14.000Z | 2022-03-19T16:42:51.000Z | /* XMRig
* Copyright 2010 Jeff Garzik <jgarzik@pobox.com>
* Copyright 2012-2014 pooler <pooler@litecoinpool.org>
* Copyright 2014 Lucas Jones <https://github.com/lucasjones>
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
* C... | 29.692982 | 160 | 0.675923 | lurchinms |
a1c007235c0d50e8f8f47ee48bac963fe11a28b7 | 5,054 | cpp | C++ | MLP.cpp | LiliamPumpernickel/DAMIS | 51369f27ad907b21548bccd6ad184e2e2858e707 | [
"Apache-2.0"
] | 1 | 2018-05-13T11:42:44.000Z | 2018-05-13T11:42:44.000Z | MLP.cpp | LiliamPumpernickel/DAMIS | 51369f27ad907b21548bccd6ad184e2e2858e707 | [
"Apache-2.0"
] | null | null | null | MLP.cpp | LiliamPumpernickel/DAMIS | 51369f27ad907b21548bccd6ad184e2e2858e707 | [
"Apache-2.0"
] | 1 | 2018-05-01T16:53:27.000Z | 2018-05-01T16:53:27.000Z | #include "MLP.h"
MLP::MLP()
{
//ctor
}
MLP::MLP(int h1pNo, int h2pNo, double qtty, int maxIter, bool validationMethod)
{
//no of neurons in hidden layer
HiddenNeuronNo1 = h1pNo;
HiddenNeuronNo2 = h2pNo;
// param = qtty;
// this->dL = dL; //learning
// this->dT = dT; //testing
// this->decay... | 32.606452 | 231 | 0.688959 | LiliamPumpernickel |
a1c302d58f1e3dc8a35f60aed12a52fac38b7b90 | 26,438 | cpp | C++ | MovementSimulation.cpp | Cloudfare/123123123123123 | 879954a3f628f2173ab221070e1d9bf119304ff7 | [
"Apache-2.0"
] | null | null | null | MovementSimulation.cpp | Cloudfare/123123123123123 | 879954a3f628f2173ab221070e1d9bf119304ff7 | [
"Apache-2.0"
] | null | null | null | MovementSimulation.cpp | Cloudfare/123123123123123 | 879954a3f628f2173ab221070e1d9bf119304ff7 | [
"Apache-2.0"
] | null | null | null | #include "sdk.h"
#include "MovementSimulation.h"
#include "Math.h"
/*
RebuildGameMovement::RebuildGameMovement(void)
{
}
void RebuildGameMovement::SetAbsOrigin(CBaseEntity *player, const Vector &vec)
{
if (player &&
player->GetMoveType() == MOVETYPE_WALK)
{
trace_t pm;
TracePlayerBBox(vec, vec,... | 33.982005 | 214 | 0.656858 | Cloudfare |
a1c5bac75a004b2e082a00463bb0ccdd41ecd65c | 3,960 | hpp | C++ | external/ipopt/include/coin/IpTimedTask.hpp | l03ie/Gernby | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 9 | 2020-07-09T06:40:31.000Z | 2022-03-28T02:50:21.000Z | external/ipopt/include/coin/IpTimedTask.hpp | iambluefred/Test_9 | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 1 | 2021-07-27T01:42:57.000Z | 2021-07-27T06:40:48.000Z | external/ipopt/include/coin/IpTimedTask.hpp | iambluefred/Test_9 | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 5 | 2020-12-01T01:41:12.000Z | 2022-01-04T01:21:49.000Z | // Copyright (C) 2006, 2009 International Business Machines and others.
// All Rights Reserved.
// This code is published under the Eclipse Public License.
//
// $Id: IpTimedTask.hpp 1861 2010-12-21 21:34:47Z andreasw $
//
// Authors: Andreas Waechter IBM 2005-09-19
#ifndef __IPTIMEDTASK_HPP__
#defin... | 26.938776 | 72 | 0.630303 | l03ie |
a1c9f2968f8753cf27b57506628b1574cfde4c93 | 709 | cpp | C++ | src/TransportProtocol.cpp | daank94/simpleNW | b5c7d0d999b1b42bf0f45ad28629d6ce29e1c6c8 | [
"MIT"
] | 2 | 2015-09-16T23:20:50.000Z | 2017-09-04T09:06:17.000Z | src/TransportProtocol.cpp | daank94/simpleNW | b5c7d0d999b1b42bf0f45ad28629d6ce29e1c6c8 | [
"MIT"
] | null | null | null | src/TransportProtocol.cpp | daank94/simpleNW | b5c7d0d999b1b42bf0f45ad28629d6ce29e1c6c8 | [
"MIT"
] | 1 | 2021-04-11T10:27:51.000Z | 2021-04-11T10:27:51.000Z |
#include <TransportProtocol.hpp>
TransportProtocol::TransportProtocol(transpprtcl protocol) {
this->protocol_ = protocol;
}
namespace IPV4 {
TransportProtocol DEFAULT() {
return TransportProtocol(TransportProtocol::ipv4_default);
}
TransportProtocol TCP() {
return TransportProtocol(TransportProtocol::ipv4_t... | 20.257143 | 60 | 0.777151 | daank94 |
a1d195e24459bad67eb369b8c6f7609f19a6c484 | 6,832 | cpp | C++ | Modules/Graphics/Core/Sources/Methane/Graphics/RenderContextBase.cpp | navono/MethaneKit | 5cf55dcbbc23392f5c06b178570c7c32b6368ca7 | [
"Apache-2.0"
] | null | null | null | Modules/Graphics/Core/Sources/Methane/Graphics/RenderContextBase.cpp | navono/MethaneKit | 5cf55dcbbc23392f5c06b178570c7c32b6368ca7 | [
"Apache-2.0"
] | null | null | null | Modules/Graphics/Core/Sources/Methane/Graphics/RenderContextBase.cpp | navono/MethaneKit | 5cf55dcbbc23392f5c06b178570c7c32b6368ca7 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
Copyright 2019-2020 Evgeny Gorodetskiy
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/lic... | 28.705882 | 144 | 0.71692 | navono |
a1d1f1449ae01bb17e1b40601bfa38220798e9d4 | 42,450 | cpp | C++ | src/lib/foundations/finite_fields/finite_field.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/foundations/finite_fields/finite_field.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/foundations/finite_fields/finite_field.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // finite_field.cpp
//
// Anton Betten
//
// started: October 23, 2002
#include "foundations.h"
using namespace std;
namespace orbiter {
namespace foundations {
int nb_calls_to_finite_field_init = 0;
finite_field::finite_field()
{
f_has_table = FALSE;
T = NULL;
Iwo = NULL;
//std::string symbol_for_print... | 21.504559 | 115 | 0.607044 | abetten |
a1d2c612df1c9b6816ddfd50b6c2c9e8113b9147 | 10,991 | cpp | C++ | BT_engine/BT_CPP_engine.cpp | barbalberto/YARP-BT-modules | 5e89e381f6d39bc8561b372dbf3969660cf876c5 | [
"BSD-3-Clause"
] | null | null | null | BT_engine/BT_CPP_engine.cpp | barbalberto/YARP-BT-modules | 5e89e381f6d39bc8561b372dbf3969660cf876c5 | [
"BSD-3-Clause"
] | null | null | null | BT_engine/BT_CPP_engine.cpp | barbalberto/YARP-BT-modules | 5e89e381f6d39bc8561b372dbf3969660cf876c5 | [
"BSD-3-Clause"
] | null | null | null |
#include <yarp/os/Network.h>
#include <yarp/os/LogStream.h>
#include <yarp/os/RFModule.h>
#include <yarp/os/YarpPlugin.h>
#include <behaviortree_cpp/bt_factory.h>
#include <BT_CPP_leaves/btCpp_common.h>
#include <behaviortree_cpp/blackboard.h>
// For Groot monitor
#include <behaviortree_cpp/loggers/bt_cout_logge... | 32.614243 | 167 | 0.527614 | barbalberto |
a1d62a722a174170bff62562200a1f3529ec7009 | 6,598 | hh | C++ | elements/ethernet/arpquerier.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-05-06T07:28:08.000Z | 2021-05-06T07:28:08.000Z | elements/ethernet/arpquerier.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | null | null | null | elements/ethernet/arpquerier.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | null | null | null | #ifndef CLICK_ARPQUERIER_HH
#define CLICK_ARPQUERIER_HH
#include <click/batchelement.hh>
#include <click/etheraddress.hh>
#include <click/ipaddress.hh>
#include <click/sync.hh>
#include <click/hashtablemp.hh>
#include <click/timer.hh>
#include "arptable.hh"
CLICK_DECLS
/*
=c
ARPQuerier(IP, ETH, I<keywords>)
ARPQuerie... | 27.839662 | 91 | 0.745681 | BorisPis |
a1e19ea439ce2ef2af0c1f016a0b003d33b99ae9 | 1,856 | cp | C++ | 11926.cp | JazzikPeng/UVa_Algorithm_CPP | 5de29ebc44ae8dd94b767fd5815309e5eaa7c8bf | [
"MIT"
] | null | null | null | 11926.cp | JazzikPeng/UVa_Algorithm_CPP | 5de29ebc44ae8dd94b767fd5815309e5eaa7c8bf | [
"MIT"
] | null | null | null | 11926.cp | JazzikPeng/UVa_Algorithm_CPP | 5de29ebc44ae8dd94b767fd5815309e5eaa7c8bf | [
"MIT"
] | null | null | null | //Zhejian Peng
#include <cstdio>
#include <bitset>
#include <iostream>
using namespace std;
bitset<2000005> bs;
/*The class template bitset represents a fixed-size sequence of N bits. Bitsets can be manipulated by standard logic operators and converted to and from strings and integers.
*/
int main() {
int n, m, s... | 24.746667 | 174 | 0.320043 | JazzikPeng |
a1e20e895afafb332de7396bae57b9386878a71d | 5,358 | cpp | C++ | SamplePhysics/RoughPlaneSolidBox/PhysicsModule.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 3 | 2021-08-02T04:03:03.000Z | 2022-01-04T07:31:20.000Z | SamplePhysics/RoughPlaneSolidBox/PhysicsModule.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | null | null | null | SamplePhysics/RoughPlaneSolidBox/PhysicsModule.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 5 | 2019-10-13T02:44:19.000Z | 2021-08-02T04:03:10.000Z | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Restricted Libraries source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4RestrictedLicense.pdf
// and may not be copie... | 30.271186 | 78 | 0.571669 | wjezxujian |
a1e305bcceccc83ccea3f39a11d878268ec6f531 | 10,848 | cpp | C++ | libs/system/src/CTimeLogger.cpp | skair39/mrpt | 88238f8ac1abdcf15401e14dc3a9faa5c59ba559 | [
"BSD-3-Clause"
] | 2 | 2019-02-20T02:36:05.000Z | 2019-02-20T02:46:51.000Z | libs/system/src/CTimeLogger.cpp | skair39/mrpt | 88238f8ac1abdcf15401e14dc3a9faa5c59ba559 | [
"BSD-3-Clause"
] | null | null | null | libs/system/src/CTimeLogger.cpp | skair39/mrpt | 88238f8ac1abdcf15401e14dc3a9faa5c59ba559 | [
"BSD-3-Clause"
] | null | null | null | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... | 26.394161 | 80 | 0.637168 | skair39 |
a1e3fa49c2eb328c10fc1fa12f945c8de4dbdf0c | 192 | hpp | C++ | aluminium/hello.hpp | BaseOutside/Aluminium | 0fe735b0acdf4f7494d23210be53e70eb427e6c1 | [
"MIT"
] | 1 | 2019-06-22T09:21:47.000Z | 2019-06-22T09:21:47.000Z | aluminium/hello.hpp | BaseOutside/Aluminium | 0fe735b0acdf4f7494d23210be53e70eb427e6c1 | [
"MIT"
] | null | null | null | aluminium/hello.hpp | BaseOutside/Aluminium | 0fe735b0acdf4f7494d23210be53e70eb427e6c1 | [
"MIT"
] | null | null | null | #ifndef ALUMINIUM_HELLO
#define ALUMINIUM_HELLO
#include <iostream>
namespace aluminium {
void hello() {
std::cout << "Hello World!!!" << std::endl;
}
} // namespace aluminium
#endif
| 12.8 | 47 | 0.682292 | BaseOutside |
a1e8a97ef2fde29db8c0eb6d97ba0e98e4d91d9e | 1,695 | cpp | C++ | src/sdk/thread/thread_local_storage.cpp | southbear-club/aru | 24a3b28d9a168c28435e9cb5b5c10a2e404042a8 | [
"MIT"
] | 2 | 2021-10-21T12:25:23.000Z | 2021-10-22T00:38:35.000Z | src/sdk/thread/thread_local_storage.cpp | southbear-club/aru | 24a3b28d9a168c28435e9cb5b5c10a2e404042a8 | [
"MIT"
] | null | null | null | src/sdk/thread/thread_local_storage.cpp | southbear-club/aru | 24a3b28d9a168c28435e9cb5b5c10a2e404042a8 | [
"MIT"
] | null | null | null | /**
* 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, modify, merge, publish,
* ... | 33.9 | 96 | 0.727434 | southbear-club |
a1e8b441b64fdb20f4eb7939ea3abf86db046306 | 987 | cpp | C++ | algorithms/binary-tree-level-order-traversal-ii.cpp | jlygit/leetcode-oj | 66718f709b31ef0e7e091638d95418a5543019b4 | [
"Apache-2.0"
] | 1 | 2016-08-10T11:17:16.000Z | 2016-08-10T11:17:16.000Z | algorithms/binary-tree-level-order-traversal-ii.cpp | jlygit/leetcode-oj | 66718f709b31ef0e7e091638d95418a5543019b4 | [
"Apache-2.0"
] | null | null | null | algorithms/binary-tree-level-order-traversal-ii.cpp | jlygit/leetcode-oj | 66718f709b31ef0e7e091638d95418a5543019b4 | [
"Apache-2.0"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<vector<int>> levelOrderBottom(TreeNode* root) {
vector<vector<int>> ... | 29.909091 | 61 | 0.477204 | jlygit |
a1ea6b6b4d9dd8f97e2dd3ca0e90c044a6778f32 | 606 | cpp | C++ | tests/FileDescriptor_test.cpp | cppstack/unx | b05aa5354458b032073647e9b44fdd96b6884247 | [
"MIT"
] | null | null | null | tests/FileDescriptor_test.cpp | cppstack/unx | b05aa5354458b032073647e9b44fdd96b6884247 | [
"MIT"
] | null | null | null | tests/FileDescriptor_test.cpp | cppstack/unx | b05aa5354458b032073647e9b44fdd96b6884247 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <cst/unx/FileDescriptor.h>
#include <cst/unx/os/unistd.h>
#include <cst/unx/os/fcntl.h>
namespace unx = cst::unx;
TEST_CASE("FileDescriptor", "[FileDescriptor]")
{
const char* path = "tmp.txt";
int fd = -1;
{
unx::FileDescriptor fd1;
... | 19.548387 | 69 | 0.575908 | cppstack |
a1ed38fede52484e6355a42311d9ac9a4dac60c7 | 459 | hxx | C++ | src/mod/pub/lib/gfx-ext/gfx-trail.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | 1 | 2017-12-26T14:29:37.000Z | 2017-12-26T14:29:37.000Z | src/mod/pub/lib/gfx-ext/gfx-trail.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | src/mod/pub/lib/gfx-ext/gfx-trail.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | #pragma once
#include "gfx-vxo.hxx"
#include "gfx-surface.hxx"
#include <deque>
class gfx_trail : public gfx_vxo
{
public:
gfx_trail();
virtual ~gfx_trail();
void add_position(glm::vec3 ipos);
float get_line_thickness();
void set_line_thickness(float iline_thickness);
int get_max_positions();
vo... | 18.36 | 50 | 0.723312 | indigoabstract |
a1ed5d409e83a33205dcfee65f5a4926f0789009 | 2,206 | hpp | C++ | include/rosbag2_converter_default_plugins/logging.hpp | klintan/rosbags2_nodejs_wrapper | 65ebe15d242c06efb026c11f3ced35065f80e7d6 | [
"MIT"
] | 1 | 2018-04-12T08:06:00.000Z | 2018-04-12T08:06:00.000Z | include/rosbag2_converter_default_plugins/logging.hpp | klintan/rosbags2_nodejs_wrapper | 65ebe15d242c06efb026c11f3ced35065f80e7d6 | [
"MIT"
] | 1 | 2019-04-09T04:41:39.000Z | 2019-04-09T04:41:39.000Z | include/rosbag2_converter_default_plugins/logging.hpp | klintan/rosbags2_nodejs_wrapper | 65ebe15d242c06efb026c11f3ced35065f80e7d6 | [
"MIT"
] | 1 | 2019-01-02T18:57:04.000Z | 2019-01-02T18:57:04.000Z | // Copyright 2018, Bosch Software Innovations GmbH.
//
// 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 applicabl... | 35.580645 | 75 | 0.774252 | klintan |
a1f270985d5e62cc81223df8116d311463efcbc7 | 4,533 | cpp | C++ | newfs/main.cpp | DosDevs/zoom-zoom | c3c37c4b9b38ba81f55fcd79e6ff07fddbc3a5c5 | [
"BSD-3-Clause"
] | null | null | null | newfs/main.cpp | DosDevs/zoom-zoom | c3c37c4b9b38ba81f55fcd79e6ff07fddbc3a5c5 | [
"BSD-3-Clause"
] | null | null | null | newfs/main.cpp | DosDevs/zoom-zoom | c3c37c4b9b38ba81f55fcd79e6ff07fddbc3a5c5 | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Bpb.h"
#include "Fat_12.h"
#include "Octet.h"
#include "Sector.h"
#include "Storage_Device.h"
using std::cout;
using std::endl;
using std::ifstream;
using std::string;
using std::vector;
typedef char* PChar;
... | 22.112195 | 76 | 0.55107 | DosDevs |
a1f2fa397ab927be82d81d259097041ab0167d50 | 5,809 | hpp | C++ | fmo-cpp/include/fmo/processing.hpp | rozumden/fmo-android | 40fed89df7f1ff5aa3718b9a35f361b399a0bca1 | [
"MIT"
] | null | null | null | fmo-cpp/include/fmo/processing.hpp | rozumden/fmo-android | 40fed89df7f1ff5aa3718b9a35f361b399a0bca1 | [
"MIT"
] | null | null | null | fmo-cpp/include/fmo/processing.hpp | rozumden/fmo-android | 40fed89df7f1ff5aa3718b9a35f361b399a0bca1 | [
"MIT"
] | null | null | null | #ifndef FMO_PROCESSING_HPP
#define FMO_PROCESSING_HPP
#include <fmo/image.hpp>
//#include <opencv2/core.hpp>
#include <iostream>
#include <fmo/algebra.hpp>
namespace cv {
template<typename _Tp> class Point_;
template<typename _Tp, int cn> class Vec;
template<typename _Tp> class Scalar_;
typedef Point... | 37 | 124 | 0.644173 | rozumden |
a1f45f33abbbd14759377981ebdaba3bf6e8e9fd | 532 | cpp | C++ | src/mgos_arduino_newping.cpp | TridentTD/arduino-newping | 67c93ee7432ef2cbba8c08bb2bf3a664000ee02f | [
"Apache-2.0"
] | null | null | null | src/mgos_arduino_newping.cpp | TridentTD/arduino-newping | 67c93ee7432ef2cbba8c08bb2bf3a664000ee02f | [
"Apache-2.0"
] | null | null | null | src/mgos_arduino_newping.cpp | TridentTD/arduino-newping | 67c93ee7432ef2cbba8c08bb2bf3a664000ee02f | [
"Apache-2.0"
] | null | null | null |
#include <math.h>
#include "mgos_arduino_newping.h"
#define MGOS_NEWPING_RES_FAIL -12700
NewPing *mgos_newping_create(uint8_t trigger_pin, uint8_t echo_pin) {
return new NewPing(trigger_pin, echo_pin);
}
void mgos_newping_close(NewPing *newping) {
if (newping != nullptr) {
delete newping;
newping = nul... | 22.166667 | 69 | 0.740602 | TridentTD |
a1f4f723b4ddf6b4180a1d6af456d8aa069b8ae1 | 501 | cpp | C++ | src/pipeline/video/VideoSource.cpp | PlaymodesStudio/ofxPlaymodes2017 | 13ed5a77f75fa4c48f47d4e38ac10a5f085c7b31 | [
"MIT"
] | null | null | null | src/pipeline/video/VideoSource.cpp | PlaymodesStudio/ofxPlaymodes2017 | 13ed5a77f75fa4c48f47d4e38ac10a5f085c7b31 | [
"MIT"
] | 1 | 2019-05-03T11:35:22.000Z | 2019-05-03T23:22:58.000Z | src/pipeline/video/VideoSource.cpp | PlaymodesStudio/ofxPlaymodes2017 | 13ed5a77f75fa4c48f47d4e38ac10a5f085c7b31 | [
"MIT"
] | null | null | null | /*
* VideoSource.cpp
*
* Created on: 09-oct-2008
* Author: arturo castro
*/
#include "VideoSource.h"
namespace ofxPm{
VideoSource::VideoSource() {
//newFrameEvent.init("PlayModes.VideoSource.newFrameEvent");
width=-11;
height=-11;
}
VideoSource::~VideoSource() {
}
void VideoSource::setWidth(int w)
{... | 12.219512 | 61 | 0.654691 | PlaymodesStudio |
a1f52c1a85687881bb76c6348b5eaa6d7245e3a7 | 8,064 | hpp | C++ | s32v234_sdk/tools/emu/apu/src/apu_vbool.hpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/tools/emu/apu/src/apu_vbool.hpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/tools/emu/apu/src/apu_vbool.hpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | 2 | 2021-01-21T02:06:16.000Z | 2021-01-28T10:47:37.000Z | /*****************************************************************************
*
* NXP Confidential Proprietary
*
* Copyright (c) 2013-2016 Freescale Semiconductor
* Copyright 2017-2018 NXP
* All Rights Reserved
*
******************************************************************************
*
* THIS SOFTWA... | 36.654545 | 242 | 0.653026 | intesight |
a1f7a022582f7262aaf30d8e38a14864692fa964 | 26,063 | hpp | C++ | include/UnityEngine/UI/MaskableGraphic.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/UnityEngine/UI/MaskableGraphic.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/UnityEngine/UI/MaskableGraphic.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.UI... | 58.306488 | 815 | 0.739976 | marksteward |
a1fb7169cfad0587d3cdb2098c32b5d735366aa9 | 165 | cpp | C++ | HideousGameEngine/utests/Shaders/TextShaderTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | 1 | 2019-09-13T18:18:07.000Z | 2019-09-13T18:18:07.000Z | HideousGameEngine/utests/Shaders/TextShaderTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | null | null | null | HideousGameEngine/utests/Shaders/TextShaderTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | 1 | 2019-11-21T06:32:56.000Z | 2019-11-21T06:32:56.000Z | //
// TextShader.cpp
// HEAssets
//
// Created by Sid on 26/04/13.
// Copyright (c) 2013 whackylabs. All rights reserved.
//
#include <he/Shaders/TextShader.h>
| 16.5 | 55 | 0.660606 | chunkyguy |
b80114e117e3e6b108f5913b94591af45be66534 | 1,472 | cpp | C++ | _src_/Core/Utls.cpp | daldegam/MuClientTools16 | 933d218501c188363096a8f9f73720c61b535d06 | [
"MIT"
] | 16 | 2021-07-15T04:00:38.000Z | 2022-02-27T02:37:23.000Z | _src_/Core/Utls.cpp | daldegam/MuClientTools16 | 933d218501c188363096a8f9f73720c61b535d06 | [
"MIT"
] | 6 | 2021-08-05T05:01:35.000Z | 2021-10-22T02:01:33.000Z | _src_/Core/Utls.cpp | daldegam/MuClientTools16 | 933d218501c188363096a8f9f73720c61b535d06 | [
"MIT"
] | 16 | 2021-07-18T02:40:12.000Z | 2022-02-09T05:25:07.000Z | #include "Utls.h"
//------------------------------------------------------------------------
//--Utls
//------------------------------------------------------------------------
namespace Utls {
void CreateParentDir(fs::path pPath)
{
//fs::path pParent = fs::_Parse_parent_path(pPath.wstring());
//fs::create_direct... | 19.368421 | 74 | 0.5 | daldegam |
b803bc9be03161833dcab05a0ccceeb932e2854f | 301 | cpp | C++ | 1182.cpp | godmoonl/baekjoon | eb2193e5c914caebbbb6ac287ebca5865e7d04ca | [
"MIT"
] | 1 | 2019-05-03T09:55:41.000Z | 2019-05-03T09:55:41.000Z | 1182.cpp | godmoonl/baekjoon | eb2193e5c914caebbbb6ac287ebca5865e7d04ca | [
"MIT"
] | null | null | null | 1182.cpp | godmoonl/baekjoon | eb2193e5c914caebbbb6ac287ebca5865e7d04ca | [
"MIT"
] | null | null | null | #include <cstdio>
int N, S, a[21];
int f(int n, int k,int c) {
if (n == N && k == S && !c)return 1;
if (n == N)return 0;
return f(n+1, k + a[n],0)+f(n+1, k,c?1:0);
}
int main() {
scanf("%d %d", &N, &S);
for (int i = 0; i < N; i++) {
scanf("%d", &a[i]);
}
printf("%d", f(0,0,1));
return 0;
}
| 18.8125 | 43 | 0.448505 | godmoonl |
b809de1338b905e9616cf962db16422adbe81d09 | 2,668 | cpp | C++ | simulator/infra/config/config.cpp | gornik2000/mipt-mips | 355e29434efcc32946634054c501cb26d61dd145 | [
"MIT"
] | 2 | 2020-09-22T13:44:39.000Z | 2021-12-10T07:45:42.000Z | simulator/infra/config/config.cpp | cesarus777/mipt-mips | c940a7644c4ebb72ad2022d77afdbd4d1dcda0f6 | [
"MIT"
] | null | null | null | simulator/infra/config/config.cpp | cesarus777/mipt-mips | c940a7644c4ebb72ad2022d77afdbd4d1dcda0f6 | [
"MIT"
] | null | null | null | /*
* config.cpp - implementation of Config class
* Copyright 2017-2018 MIPT-MIPS
*/
#include "config.h"
#include <popl.hpp>
#include <sstream>
namespace config {
static AliasedSwitch help_option = { "h", "help", "print help"};
// NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays, modernize-avoid-c-arrays, hicpp-av... | 35.105263 | 169 | 0.693778 | gornik2000 |
b80ba1ca25904d2c946c36938190109ec2b69178 | 3,350 | hpp | C++ | include/System/Runtime/Remoting/Messaging/CallContext.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Runtime/Remoting/Messaging/CallContext.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Runtime/Remoting/Messaging/CallContext.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp"
#include "extern/b... | 53.174603 | 159 | 0.725075 | darknight1050 |
b80bb977eb7de00602a7f19dcb9534eba7c00b8f | 702 | cpp | C++ | codes/Leetcode/leetcode061.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/Leetcode/leetcode061.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/Leetcode/leetcode061.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* rotateRight(ListNode* head, int k) {
ListNode* ans = new ListNode(0);
ans->next = head; head = ans;
int n = 0;
... | 20.647059 | 54 | 0.549858 | JeraKrs |
b80c061ecc8a591557d0bcb780dab4371df09641 | 1,719 | cpp | C++ | CPP/Linked List/detectCycleInList.cpp | deepakabari/MyCode | 9c5f8b99f1bf04e58e233fedb9e517ae967e94cd | [
"MIT"
] | null | null | null | CPP/Linked List/detectCycleInList.cpp | deepakabari/MyCode | 9c5f8b99f1bf04e58e233fedb9e517ae967e94cd | [
"MIT"
] | null | null | null | CPP/Linked List/detectCycleInList.cpp | deepakabari/MyCode | 9c5f8b99f1bf04e58e233fedb9e517ae967e94cd | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
class node{
public:
int val;
node* next;
node(int x){
val = x;
next = NULL;
}
};
//function to insert node at end of the linked list
void insertAtTail(node* &head, int x){
node* newNode = new node(x);
if(head ... | 20.223529 | 52 | 0.503781 | deepakabari |
b80c38109b8a44fd36f58a22254daaf14e2f827d | 1,785 | cpp | C++ | src/ProtoInput/ProtoInputHooks/FocusMessageLoop.cpp | Ilyaki/ProtoInput | dd29bf8d22349605d0e1950c1c5dc4893d72670e | [
"MIT"
] | 16 | 2021-04-27T04:18:25.000Z | 2022-02-27T21:13:57.000Z | src/ProtoInput/ProtoInputHooks/FocusMessageLoop.cpp | zZeck/ProtoInput | dd29bf8d22349605d0e1950c1c5dc4893d72670e | [
"MIT"
] | 6 | 2021-06-22T16:55:37.000Z | 2022-02-13T04:29:11.000Z | src/ProtoInput/ProtoInputHooks/FocusMessageLoop.cpp | zZeck/ProtoInput | dd29bf8d22349605d0e1950c1c5dc4893d72670e | [
"MIT"
] | 4 | 2021-04-30T21:05:57.000Z | 2022-02-07T06:12:00.000Z | #include "FocusMessageLoop.h"
#include <cstdio>
#include "HwndSelector.h"
#include "GetKeyboardStateHook.h"
namespace Proto
{
HANDLE FocusMessageLoop::loopThread = nullptr;
bool FocusMessageLoop::running = false;
int FocusMessageLoop::sleepMilliseconds = 5;
FocusMessageLoop::ToSend FocusMessageLoop::messagesToSend{}... | 23.486842 | 131 | 0.755182 | Ilyaki |
b80dbc9bc65dc167dd1d7bd7ac5fe89bb87decc0 | 278 | cpp | C++ | Muriel/MuGameComponent.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:15:27.000Z | 2017-03-01T12:15:27.000Z | Muriel/MuGameComponent.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:19:17.000Z | 2017-03-01T12:19:52.000Z | Muriel/MuGameComponent.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "MuGameComponent.h"
namespace Muriel
{
GameComponent::GameComponent(GameObject* owner, GameComponentType gameComponentType)
{
_owner = owner;
_gameComponentType = gameComponentType;
}
GameComponent::~GameComponent()
{
}
} | 17.375 | 86 | 0.715827 | MurielSoftware |
b80e5ab40697ac702326ed923d2215168117d30d | 301 | cc | C++ | PP0501A.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | 1 | 2021-02-01T11:21:56.000Z | 2021-02-01T11:21:56.000Z | PP0501A.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | null | null | null | PP0501A.cc | hkktr/POLSKI-SPOJ | 59f7e0be99fca6532681c2ca01c8a7d97c6b5eed | [
"Unlicense"
] | 1 | 2022-01-28T15:25:45.000Z | 2022-01-28T15:25:45.000Z | // C++14 (gcc 8.3)
#include <iostream>
int GCD(int a, int b) {
while (b != 0) {
int temp{b};
b = a % b;
a = temp;
}
return a;
}
int main() {
int t;
std::cin >> t;
while (--t >= 0) {
int a, b;
std::cin >> a >> b;
std::cout << GCD(a, b) << "\n";
}
return 0;
} | 12.541667 | 35 | 0.415282 | hkktr |
b8118cdc334ea8f1bdbbfac518d8ff2948c1cf6f | 4,064 | hpp | C++ | core/crypto/sr25519_types.hpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | core/crypto/sr25519_types.hpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | core/crypto/sr25519_types.hpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_CORE_CRYPTO_VRF_TYPES
#define KAGOME_CORE_CRYPTO_VRF_TYPES
extern "C" {
#include <schnorrkel/schnorrkel.h>
}
#include <boost/multiprecision/cpp_int.hpp>
#include <gsl/span>
#include "common/blob.hpp"
#... | 28.619718 | 80 | 0.690207 | igor-egorov |
b812ae0e8b24d5eb11c8dbd65a9fc86065444c5a | 16,102 | cpp | C++ | source/python/libpytimemory-profile.cpp | ocnkr/timemory | 35c5e32b80db4ae30a10ae6f1ee08d24a2161b73 | [
"MIT"
] | null | null | null | source/python/libpytimemory-profile.cpp | ocnkr/timemory | 35c5e32b80db4ae30a10ae6f1ee08d24a2161b73 | [
"MIT"
] | null | null | null | source/python/libpytimemory-profile.cpp | ocnkr/timemory | 35c5e32b80db4ae30a10ae6f1ee08d24a2161b73 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2020, The Regents of the University of California,
// through Lawrence Berkeley National Laboratory (subject to receipt of any
// required approvals from the U.S. Dept. of Energy). All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy... | 39.273171 | 90 | 0.572972 | ocnkr |
b8130e30539af4f5a0fb4d36b613e3efdd28c662 | 2,536 | cpp | C++ | Box2D_Shapes/ModuleSceneIntro.cpp | rastabrandy02/Physics_2 | bc4024409985d15ec6e1c5c00c78df062140fd6b | [
"MIT"
] | null | null | null | Box2D_Shapes/ModuleSceneIntro.cpp | rastabrandy02/Physics_2 | bc4024409985d15ec6e1c5c00c78df062140fd6b | [
"MIT"
] | null | null | null | Box2D_Shapes/ModuleSceneIntro.cpp | rastabrandy02/Physics_2 | bc4024409985d15ec6e1c5c00c78df062140fd6b | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModuleRender.h"
#include "ModuleSceneIntro.h"
#include "ModuleInput.h"
#include "ModuleTextures.h"
#include "ModulePhysics.h"
ModuleSceneIntro::ModuleSceneIntro(Application* app, bool start_enabled) : Module(app, start_enabled)
{
circle = box = rick = NULL;
}
M... | 25.36 | 146 | 0.662461 | rastabrandy02 |
b8185a74a008a1eaafb6f7dae672a2801d02cb25 | 704 | cpp | C++ | S05/PointToMeAndYou.cpp | stevekeol/-Thinking-in-Cpp-PracticeCode | 5b147e704015bbda364ab069f1de58dcef7ab14a | [
"MIT"
] | 2 | 2017-06-20T12:16:30.000Z | 2021-11-12T12:06:57.000Z | S05/PointToMeAndYou.cpp | stevekeol/-Thinking-in-Cpp-PracticeCode | 5b147e704015bbda364ab069f1de58dcef7ab14a | [
"MIT"
] | null | null | null | S05/PointToMeAndYou.cpp | stevekeol/-Thinking-in-Cpp-PracticeCode | 5b147e704015bbda364ab069f1de58dcef7ab14a | [
"MIT"
] | null | null | null | //: S05:PointToMeAndYou.cpp
// From "Thinking in C++, 2nd Edition, Volume 1, Annotated Solutions Guide"
// by Chuck Allison, (c) 2001 MindView, Inc. all rights reserved
// Available at www.BruceEckel.com.
#include <iostream>
using namespace std;
class You; // Forward declaration
class Me {
public:
voi... | 19.027027 | 76 | 0.586648 | stevekeol |
b818f9ad3564f15010b76c28efad7831423b2a1e | 1,694 | cc | C++ | src/BufferedInputStream.cc | RUNDSP/avro-nodejs | 7136be348dbb6c57af27be387196254ca1711977 | [
"Apache-2.0"
] | null | null | null | src/BufferedInputStream.cc | RUNDSP/avro-nodejs | 7136be348dbb6c57af27be387196254ca1711977 | [
"Apache-2.0"
] | null | null | null | src/BufferedInputStream.cc | RUNDSP/avro-nodejs | 7136be348dbb6c57af27be387196254ca1711977 | [
"Apache-2.0"
] | null | null | null | #include "BufferedInputStream.hh"
namespace avronode {
/**
* Deconstructor for BufferedInputStream
* destroy mutex and release the vector buffer
*/
BufferedInputStream::~BufferedInputStream(){
}
/**
* [BufferedInputStream::next description]
* @param data [description]
* @param len [description]
* @return ... | 19.471264 | 69 | 0.687721 | RUNDSP |
b8199a65347074f735e13a1f8de5d2380ed2aa8a | 17,782 | tpp | C++ | src/hypro/util/matlab/reachability/@MHyProCondition/MCondition.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 22 | 2016-10-05T12:19:01.000Z | 2022-01-23T09:14:41.000Z | src/hypro/util/matlab/reachability/@MHyProCondition/MCondition.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 23 | 2017-05-08T15:02:39.000Z | 2021-11-03T16:43:39.000Z | src/hypro/util/matlab/reachability/@MHyProCondition/MCondition.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 12 | 2017-06-07T23:51:09.000Z | 2022-01-04T13:06:21.000Z | #include "MCondition.h"
void MCondition::new_empty( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[] ) {
if ( nlhs != 1 ) mexErrMsgTxt( "MCondition - new_empty: Expecting an output!" );
plhs[0] = convertPtr2Mat<hypro::Condition<double>>( new hypro::Condition<double>() );
}
void MCondition::new_mat_vec( i... | 37.834043 | 113 | 0.606119 | hypro |
b81e15d2222e9bb1a5f039038038f92543cd97b8 | 1,025 | cpp | C++ | QSynthesis/Frontend/Tabs/Tuning/Graphics/GraphicsLifters/GraphicsLifter_Assist.cpp | SineStriker/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | 3 | 2021-12-08T05:30:52.000Z | 2021-12-18T10:46:49.000Z | QSynthesis/Frontend/Tabs/Tuning/Graphics/GraphicsLifters/GraphicsLifter_Assist.cpp | QSynthesis/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | null | null | null | QSynthesis/Frontend/Tabs/Tuning/Graphics/GraphicsLifters/GraphicsLifter_Assist.cpp | QSynthesis/QSynthesis-Old | 7b96f2d1292a4a57de6e1c50d4df2a57bfe2bc5d | [
"MIT"
] | null | null | null | #include "../../Params/Areas/LiftersArea.h"
#include "../../TuningGroup.h"
#include "../GraphicsLifter.h"
using namespace Qs::Panels;
double GraphicsLifter::convertRatioToProp(Props prop, double ratio) {
double result = 0;
switch (prop) {
case Intensity:
result = ratio * 200;
break;
ca... | 24.404762 | 98 | 0.54439 | SineStriker |
b81facccf3b95fd9fb848c9837b321efec2d60a0 | 8,956 | cpp | C++ | src/fonted/fonted.cpp | Zax37/hge | 2bacee126c08c4d12f0d9d3c58ac5c2033a6e6e2 | [
"Zlib"
] | null | null | null | src/fonted/fonted.cpp | Zax37/hge | 2bacee126c08c4d12f0d9d3c58ac5c2033a6e6e2 | [
"Zlib"
] | null | null | null | src/fonted/fonted.cpp | Zax37/hge | 2bacee126c08c4d12f0d9d3c58ac5c2033a6e6e2 | [
"Zlib"
] | null | null | null | /*
** Haaf's Game Engine 1.8
** Copyright (C) 2003, Relish Games
** hge.relishgames.com
**
** Bitmap Font Builder
*/
#include "fonted.h"
#include <cstdio>
#include "fontlist.h"
#include "hgeguictrls.h"
#include "hgeguirange.h"
HGE* hge = nullptr;
hgeFont* fnt;
hgeGUI* gui;
HTEXTURE tex_gui;
HTEXTURE tex_font = 0;... | 30.256757 | 103 | 0.600603 | Zax37 |
b82296653233f473b3b5d77c844dd2ecf9e5c80d | 1,505 | cpp | C++ | src/basic_algorithm.cpp | mnikic777/myers-agrep | 3db19846d2d582689629c9e96232332473ac823f | [
"MIT"
] | 1 | 2021-03-04T01:05:13.000Z | 2021-03-04T01:05:13.000Z | src/basic_algorithm.cpp | mnikic777/myers-agrep | 3db19846d2d582689629c9e96232332473ac823f | [
"MIT"
] | 1 | 2020-05-14T15:10:18.000Z | 2020-05-14T15:57:02.000Z | src/basic_algorithm.cpp | mnikic777/myers-agrep | 3db19846d2d582689629c9e96232332473ac823f | [
"MIT"
] | null | null | null | //
// Created by Martin Gluhak.
//
/**
* Basic version of Myers agrep which works when pattern length is <= size of machine word.
*/
#include <cstdio>
#include <unistd.h>
#include "basic_algorithm.hpp"
#include "globals.hpp"
using namespace std;
uint64_t Peqb[SIGMA];
void basic_precompute(const char *pattern, i... | 21.5 | 91 | 0.437874 | mnikic777 |
b826e3af5b0b19ba11e6a020226140a493788c8c | 18,806 | cpp | C++ | Mythology_Parade_Engine/Core/FoWManager.cpp | BernatCasanas/Mythology-Parade | e80ed76f0a0b17b7d1890e95563f1b0098acbe84 | [
"MIT"
] | null | null | null | Mythology_Parade_Engine/Core/FoWManager.cpp | BernatCasanas/Mythology-Parade | e80ed76f0a0b17b7d1890e95563f1b0098acbe84 | [
"MIT"
] | null | null | null | Mythology_Parade_Engine/Core/FoWManager.cpp | BernatCasanas/Mythology-Parade | e80ed76f0a0b17b7d1890e95563f1b0098acbe84 | [
"MIT"
] | null | null | null | #include "FoWManager.h"
#include "j1App.h"
#include "j1Textures.h"
#include "j1Map.h"
#include "j1Render.h"
#include "j1Input.h"
FoWManager::FoWManager()
{
height = 0;
width = 0;
}
FoWManager::~FoWManager()
{
CleanUp();
}
bool FoWManager::Awake(pugi::xml_node&)
{
bool ret = true;
active = false;
return ret;
... | 24.079385 | 158 | 0.656546 | BernatCasanas |
b8277a6cd9e39877bfd6aebad2f85c14e9c46d01 | 2,682 | cpp | C++ | AppleOpenSource/WebKit2-7609.3.5.1.3/WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp | lzackx/Zone | bf8a3d2b965c383a691a6e7b61d23db15ce11dba | [
"MIT"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | AppleOpenSource/WebKit2-7609.3.5.1.3/WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp | lzackx/Zone | bf8a3d2b965c383a691a6e7b61d23db15ce11dba | [
"MIT"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/WebKit/WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2014 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 35.76 | 87 | 0.766965 | lzackx |
b827b4d40f40857b98701b8334e3079249e82e8d | 4,913 | hpp | C++ | src/user/userDefined_base.hpp | bartvbw/MILO | 334e9bdec954b0cb82da0576b339729e3f39afd0 | [
"BSD-2-Clause"
] | 3 | 2018-10-23T21:04:15.000Z | 2020-01-03T21:49:05.000Z | src/user/userDefined_base.hpp | bartvbw/MILO | 334e9bdec954b0cb82da0576b339729e3f39afd0 | [
"BSD-2-Clause"
] | 1 | 2018-11-27T23:41:57.000Z | 2018-11-27T23:41:57.000Z | src/user/userDefined_base.hpp | bartvbw/MILO | 334e9bdec954b0cb82da0576b339729e3f39afd0 | [
"BSD-2-Clause"
] | 1 | 2018-11-13T15:53:47.000Z | 2018-11-13T15:53:47.000Z | /***********************************************************************
Multiscale/Multiphysics Interfaces for Large-scale Optimization (MILO)
Copyright 2018 National Technology & Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the
U.S. Government retains certai... | 33.882759 | 141 | 0.454508 | bartvbw |
b8286a4d2e57bafec1ae0b846a7ac8905cdf7fca | 7,306 | cpp | C++ | framework/tarscpp/util/src/tc_openssl.cpp | hfcrwx/Tars-v2.4.20 | b0782b3fad556582470cddaa4416874126bd105c | [
"BSD-3-Clause"
] | null | null | null | framework/tarscpp/util/src/tc_openssl.cpp | hfcrwx/Tars-v2.4.20 | b0782b3fad556582470cddaa4416874126bd105c | [
"BSD-3-Clause"
] | null | null | null | framework/tarscpp/util/src/tc_openssl.cpp | hfcrwx/Tars-v2.4.20 | b0782b3fad556582470cddaa4416874126bd105c | [
"BSD-3-Clause"
] | null | null | null | /**
* Tencent is pleased to support the open source community by making Tars
* available.
*
* Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this
* file except in compliance with the License. You may obtain ... | 25.106529 | 90 | 0.623871 | hfcrwx |
b8298e5407f8347efe9e6ef690e958f60792671e | 910 | cpp | C++ | code/graphs/kruskall.cpp | spaanse/TeamReferenceDocument | c78808c37de76a061645fac58c283e9537be6869 | [
"MIT"
] | null | null | null | code/graphs/kruskall.cpp | spaanse/TeamReferenceDocument | c78808c37de76a061645fac58c283e9537be6869 | [
"MIT"
] | 5 | 2020-10-29T10:12:52.000Z | 2020-10-29T21:03:00.000Z | code/graphs/kruskall.cpp | spaanse/TeamReferenceDocument | c78808c37de76a061645fac58c283e9537be6869 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <utility>
#include <tuple>
#include <algorithm>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> ii;
typedef vector<ii> vii;
typedef int64_t ll;
struct uf { vi p; uf(int n) : p(n,-1) {}
int find(int n){
return p[n]<0 ? n : p[n... | 21.666667 | 41 | 0.606593 | spaanse |
b82b6ae4c3af75aa2f63051a78b4608d85cc2bf6 | 178 | cc | C++ | trial_targets/pic_on_pic.cc | adambreland/cpp-simple_bazel_cpp_toolchain | 9530aad19a03b3ede56d51f6700b726249d51fe9 | [
"MIT"
] | 2 | 2021-08-29T00:21:49.000Z | 2022-01-27T07:36:04.000Z | trial_targets/pic_on_pic.cc | adambreland/cpp-simple_bazel_cpp_toolchain | 9530aad19a03b3ede56d51f6700b726249d51fe9 | [
"MIT"
] | null | null | null | trial_targets/pic_on_pic.cc | adambreland/cpp-simple_bazel_cpp_toolchain | 9530aad19a03b3ede56d51f6700b726249d51fe9 | [
"MIT"
] | null | null | null | #include "pic_on_pic.h"
#include <string>
#include "pic1.h"
std::string pic_on_pic_func()
{
std::string result {"pic_on_"};
result.append(pic1_func());
return result;
}
| 13.692308 | 33 | 0.685393 | adambreland |
b82baa424c6e0b566e442ec826eea35ca3daa92c | 302 | cpp | C++ | Ch7/7-2/Ch7-2.5.cpp | TaejuKwon/Cpp_practice | 54e57cc2d4e610414c3a110663b6c0b477c2855c | [
"MIT"
] | null | null | null | Ch7/7-2/Ch7-2.5.cpp | TaejuKwon/Cpp_practice | 54e57cc2d4e610414c3a110663b6c0b477c2855c | [
"MIT"
] | null | null | null | Ch7/7-2/Ch7-2.5.cpp | TaejuKwon/Cpp_practice | 54e57cc2d4e610414c3a110663b6c0b477c2855c | [
"MIT"
] | null | null | null | // 파일 쓰기
#include <fstream>
#include <iostream>
#include <string>
int main() {
// 파일 쓰기 준비
// std::ofstream out("test.txt");
std::ofstream out("test.txt", std::ios::app);
std::string s;
if (out.is_open()) {
// out << "이걸 쓰자~";
out << "덧붙이기";
}
return 0;
} | 16.777778 | 49 | 0.506623 | TaejuKwon |
b82ec6978705463775a978d33ecabde068205625 | 6,769 | hpp | C++ | src/hlxproxyd/ObjectControllerBasis.hpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 1 | 2021-05-21T21:10:09.000Z | 2021-05-21T21:10:09.000Z | src/hlxproxyd/ObjectControllerBasis.hpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | 12 | 2021-06-12T16:42:30.000Z | 2022-02-01T18:44:42.000Z | src/hlxproxyd/ObjectControllerBasis.hpp | gerickson/openhlx | f23a825ca56ee226db393da14d81a7d4e9ae0b33 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021 Grant Erickson
* 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
*
... | 47.335664 | 159 | 0.583395 | gerickson |
b8331ac426cb96618f3f47f712cf6cae90e908f8 | 2,388 | cpp | C++ | src/mainwindow.cpp | bornjre/qtaria | 1d44162cc728788c7b231279bce2bf381aade417 | [
"MIT"
] | null | null | null | src/mainwindow.cpp | bornjre/qtaria | 1d44162cc728788c7b231279bce2bf381aade417 | [
"MIT"
] | null | null | null | src/mainwindow.cpp | bornjre/qtaria | 1d44162cc728788c7b231279bce2bf381aade417 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
myDownloader = new qtwebhandler();
myDownloader->moveToThread(&worker);
worker.start();
//connects
connect(myDownloader,... | 25.404255 | 118 | 0.757538 | bornjre |
b835e48d560b38f6e0672ffe56d151c74f9c569b | 6,615 | cpp | C++ | libs/spirit/test/x3/char1.cpp | btzy/boost-1.72.0-mirror | defad0f34b0abc884032b57dd4eb93f18f679bf1 | [
"BSL-1.0"
] | 1 | 2020-03-01T03:04:05.000Z | 2020-03-01T03:04:05.000Z | libs/spirit/test/x3/char1.cpp | btzy/boost-1.72.0-mirror | defad0f34b0abc884032b57dd4eb93f18f679bf1 | [
"BSL-1.0"
] | null | null | null | libs/spirit/test/x3/char1.cpp | btzy/boost-1.72.0-mirror | defad0f34b0abc884032b57dd4eb93f18f679bf1 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2001-2015 Joel de Guzman
Copyright (c) 2001-2011 Hartmut Kaiser
Copyright (c) 2019 Christian Mazakas
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt o... | 33.241206 | 112 | 0.511867 | btzy |
b83b935f88dc8e388a70bf56c27b1856f83ddaa3 | 20,464 | cpp | C++ | OpenSim/Common/XMLDocument.cpp | justicelee/opensim-core | 80ce7795b861a0d797bdac9202f71a2556d89969 | [
"Apache-2.0"
] | 2 | 2017-06-14T15:38:45.000Z | 2019-01-25T05:40:09.000Z | OpenSim/Common/XMLDocument.cpp | justicelee/opensim-core | 80ce7795b861a0d797bdac9202f71a2556d89969 | [
"Apache-2.0"
] | null | null | null | OpenSim/Common/XMLDocument.cpp | justicelee/opensim-core | 80ce7795b861a0d797bdac9202f71a2556d89969 | [
"Apache-2.0"
] | 1 | 2020-11-11T14:33:06.000Z | 2020-11-11T14:33:06.000Z | /* -------------------------------------------------------------------------- *
* OpenSim: XMLDocument.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... | 40.522772 | 135 | 0.59182 | justicelee |
cdc8dca92c96e5f84331ea61679cd84157be770e | 2,469 | cc | C++ | elements/ip/decipttl.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 32 | 2017-11-02T12:33:21.000Z | 2022-02-07T22:25:58.000Z | elements/ip/decipttl.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 2 | 2019-02-18T08:47:16.000Z | 2019-05-24T14:41:23.000Z | elements/ip/decipttl.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 10 | 2018-06-13T11:54:53.000Z | 2020-09-08T06:52:43.000Z | /*
* decipttl.{cc,hh} -- element decrements IP packet's time-to-live
* Eddie Kohler, Robert Morris
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
* Copyright (c) 2008 Meraki, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associate... | 27.741573 | 100 | 0.685703 | MacWR |
cdcbaf5a86c5688a2356d50ac878ec758c019d13 | 1,112 | hpp | C++ | include/tdc/util/concepts.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 1 | 2021-05-06T13:39:22.000Z | 2021-05-06T13:39:22.000Z | include/tdc/util/concepts.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 1 | 2020-03-07T08:05:20.000Z | 2020-03-07T08:05:20.000Z | include/tdc/util/concepts.hpp | herlez/tdc | 3b85ae183c21410e65f1e739736287df46c38d1d | [
"MIT"
] | 2 | 2020-05-27T07:54:43.000Z | 2021-11-18T13:29:14.000Z | #pragma once
#include <concepts>
#include <cstddef>
#include <type_traits>
#include <utility>
namespace tdc {
template<typename T>
concept Arithmetic = std::is_arithmetic<T>::value;
template<typename T>
concept IndexAccess = requires(T a) {
{ a[std::declval<size_t>()] };
};
template<typename T>
concept SizedIn... | 21.384615 | 60 | 0.627698 | herlez |
cdd05a6c3f7648a747d4e8459c4adffaebb29eee | 5,390 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcWindowPanelOperationEnum.cpp | vjeranc/ifcplusplus | 215859fb84d5be484d454c2767571dd168612329 | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcWindowPanelOperationEnum.cpp | vjeranc/ifcplusplus | 215859fb84d5be484d454c2767571dd168612329 | [
"MIT"
] | 1 | 2019-03-06T08:59:24.000Z | 2019-03-06T08:59:24.000Z | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcWindowPanelOperationEnum.cpp | Imerso3D/ifcplusplus | 84d1a5f58db232e07f4f3d233a9efb035f3babd2 | [
"MIT"
] | 1 | 2021-04-26T14:56:09.000Z | 2021-04-26T14:56:09.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/IfcWind... | 43.12 | 286 | 0.746011 | vjeranc |
cdd2ed9747197e5c655b1bb06fd56386a1f61019 | 5,619 | cpp | C++ | 3rdparty/aws-sdk-cpp-master/aws-cpp-sdk-opsworks/source/model/ElasticLoadBalancer.cpp | prateek-s/mesos | 4b81147797e4d9a45e0b2f5e5634d4a214dbc4e8 | [
"Apache-2.0"
] | 2 | 2019-02-08T21:29:57.000Z | 2021-07-27T06:59:19.000Z | 3rdparty/aws-sdk-cpp-master/aws-cpp-sdk-opsworks/source/model/ElasticLoadBalancer.cpp | prateek-s/mesos | 4b81147797e4d9a45e0b2f5e5634d4a214dbc4e8 | [
"Apache-2.0"
] | null | null | null | 3rdparty/aws-sdk-cpp-master/aws-cpp-sdk-opsworks/source/model/ElasticLoadBalancer.cpp | prateek-s/mesos | 4b81147797e4d9a45e0b2f5e5634d4a214dbc4e8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 26.504717 | 134 | 0.747286 | prateek-s |
cddb8468720f583991230254e1f74bc09805831f | 8,993 | cpp | C++ | src/engine/graphics/I3dMixer.cpp | gregtour/tedge-cpp | 45f47ec7017d2124463430f1e584d9fb0dc8bdd8 | [
"Apache-2.0"
] | 1 | 2016-10-31T15:02:32.000Z | 2016-10-31T15:02:32.000Z | src/engine/graphics/I3dMixer.cpp | gregtour/tedge-cpp | 45f47ec7017d2124463430f1e584d9fb0dc8bdd8 | [
"Apache-2.0"
] | null | null | null | src/engine/graphics/I3dMixer.cpp | gregtour/tedge-cpp | 45f47ec7017d2124463430f1e584d9fb0dc8bdd8 | [
"Apache-2.0"
] | 1 | 2021-02-22T22:03:49.000Z | 2021-02-22T22:03:49.000Z | /*----------------------------------------------------------------------------
I3D MIXER.CPP
Copyright (c) 2011 eV Interactive, LLC
contact: Matthew Harmon Matt@MatthewHarmon.com
*/
#include "SysLib.h" // Matt's operating system library
#include "I3dMixer.h"
#include "I3dAni... | 27.842105 | 122 | 0.421439 | gregtour |
cddc7d8d364725a991801cf57090ec813ce53841 | 1,528 | cpp | C++ | src/source/shader/ShadowMapProjectionTextureShader.cpp | Gregjksmith/Global-Illumination | c8a2c98f3f9b810df18c49956e723a2df9b27a40 | [
"MIT"
] | null | null | null | src/source/shader/ShadowMapProjectionTextureShader.cpp | Gregjksmith/Global-Illumination | c8a2c98f3f9b810df18c49956e723a2df9b27a40 | [
"MIT"
] | null | null | null | src/source/shader/ShadowMapProjectionTextureShader.cpp | Gregjksmith/Global-Illumination | c8a2c98f3f9b810df18c49956e723a2df9b27a40 | [
"MIT"
] | null | null | null | #include "shader/ShadowMapProjectionTextureShader.h"
ShadowMapProjectionTextureShader::ShadowMapProjectionTextureShader()
{
shaderType = SHADER_TYPE_SHADOW_MAP_PROJECTION_TEXTURE;
addMain(SHADER_SOURCE_SHADOW_MAP_PROJECTION_TEXTURE_VERT, __shaderLinesVert);
include(SHADER_MATERIAL_UTILS, __shaderLinesVert);... | 35.534884 | 79 | 0.803665 | Gregjksmith |
cde28c2219a8c4e42942ba829b2b2daed3897b37 | 18,531 | cpp | C++ | sketchbook/libraries/MRduinoWireless/mrduino.cpp | technoman72/BlocklyArduino_electrified | b91c1d37313ba5f5d0065e8cb264e7d7b45eb2e9 | [
"MIT"
] | null | null | null | sketchbook/libraries/MRduinoWireless/mrduino.cpp | technoman72/BlocklyArduino_electrified | b91c1d37313ba5f5d0065e8cb264e7d7b45eb2e9 | [
"MIT"
] | null | null | null | sketchbook/libraries/MRduinoWireless/mrduino.cpp | technoman72/BlocklyArduino_electrified | b91c1d37313ba5f5d0065e8cb264e7d7b45eb2e9 | [
"MIT"
] | null | null | null | /**
******************************************************************************
* @file mrduino.cpp
* @author Mace Robotics
* @version 0.21
* @date 08/06/2017
* @brief lib for MRduino robot an MRduino Wireless
*
*******************************************************************************/
... | 20.098698 | 81 | 0.430954 | technoman72 |
cde5352e2c988c741768b2a96ff4e99b38c49290 | 5,026 | c++ | C++ | lib/toolkit/src/window.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | lib/toolkit/src/window.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | lib/toolkit/src/window.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | #include "window.h++"
using namespace Scr;
using namespace Scr::Tk;
Window::Window(Uint _height,
Uint _width,
const DisplayStyle & _style)throw()
:Widget(_height, _width, _style)
{
activeWidget = elements.end();
}
Screen& Window::GetScreen()throw(ParentNotDefined)
{
return GetParent().GetSc... | 20.598361 | 71 | 0.656188 | maciek-27 |
cde617490869999f37f7cf53a124b02323ef6260 | 7,905 | hpp | C++ | src/Frontends/FrontendShmemIPC.hpp | VANDAL/Sigil2 | 67e0762201d79575a25bdfe59eab257d206cff39 | [
"BSD-3-Clause"
] | null | null | null | src/Frontends/FrontendShmemIPC.hpp | VANDAL/Sigil2 | 67e0762201d79575a25bdfe59eab257d206cff39 | [
"BSD-3-Clause"
] | 3 | 2016-10-17T21:17:10.000Z | 2017-02-23T18:14:52.000Z | src/Frontends/FrontendShmemIPC.hpp | mdlui/Sigil2 | 67e0762201d79575a25bdfe59eab257d206cff39 | [
"BSD-3-Clause"
] | null | null | null | #ifndef SIGIL2_FRONTEND_SHMEM_IPC_H
#define SIGIL2_FRONTEND_SHMEM_IPC_H
#include "Core/SigiLog.hpp"
#include "Core/Frontends.hpp"
#include "CommonShmemIPC.h"
#include "Common.hpp"
#include <thread>
#include <fcntl.h>
#include <sys/mman.h>
/**
* Sigil2 receives events from external tools via an array of
* shared mem... | 32.530864 | 107 | 0.603416 | VANDAL |
cde8ff172043d03a9b7c2943efde0a0353f2f62b | 12,761 | cpp | C++ | 3rdParty/Aria/src/ArPTZConnector.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | 3rdParty/Aria/src/ArPTZConnector.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | 3rdParty/Aria/src/ArPTZConnector.cpp | bellonemauro/myARIAtestApp | 8223b5833ccf37cf9f503337858a46544d36a19c | [
"Linux-OpenIB"
] | null | null | null | /*
Adept MobileRobots Robotics Interface for Applications (ARIA)
Copyright (C) 2004-2005 ActivMedia Robotics LLC
Copyright (C) 2006-2010 MobileRobots Inc.
Copyright (C) 2011-2015 Adept Technology, Inc.
Copyright (C) 2016 Omron Adept Technologies, Inc.
This program is free software; you can redistribute it and/or ... | 38.905488 | 272 | 0.692579 | bellonemauro |
cdefa2cef984b38c33810cdfa503ed7fb34d8849 | 457 | cpp | C++ | ABC_202_B.cpp | kamlesh012/AtCoder-Editorials | d54e20da49317298096810a5a045253a810621a2 | [
"Unlicense"
] | null | null | null | ABC_202_B.cpp | kamlesh012/AtCoder-Editorials | d54e20da49317298096810a5a045253a810621a2 | [
"Unlicense"
] | null | null | null | ABC_202_B.cpp | kamlesh012/AtCoder-Editorials | d54e20da49317298096810a5a045253a810621a2 | [
"Unlicense"
] | null | null | null | //Piece of Cake
#include <bits/stdc++.h>
#define int long long
#define mod 1000000007
#define rep(i,n,s) for(int i=0;i<n;i+=s)
using namespace std;
void solve()
{
string str;
cin >> str;
int n = str.length();
reverse(str.begin(), str.end());
rep(i, str.length(), 1) {
if (str[i] == '6')str[i] = '9';
else if (st... | 16.925926 | 40 | 0.588621 | kamlesh012 |
cdf245727f5093f09ec724f997e90ce38d22cb56 | 16,566 | cpp | C++ | Testing/lsqLeastSquare3DTest.cpp | carlosparaciari/LeastSquarePackage | 811d48dd7e8ecd8972da44ea6c7210a3e5a1f343 | [
"BSD-3-Clause"
] | null | null | null | Testing/lsqLeastSquare3DTest.cpp | carlosparaciari/LeastSquarePackage | 811d48dd7e8ecd8972da44ea6c7210a3e5a1f343 | [
"BSD-3-Clause"
] | null | null | null | Testing/lsqLeastSquare3DTest.cpp | carlosparaciari/LeastSquarePackage | 811d48dd7e8ecd8972da44ea6c7210a3e5a1f343 | [
"BSD-3-Clause"
] | null | null | null | /*=============================================================================
LeastSquaresPackage: A software package for estimating the rotation and translation of rigid bodies.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without eve... | 33.399194 | 124 | 0.714415 | carlosparaciari |
cdf8919d846c0fb7c12c8ac13438c3aa758097fd | 20,355 | cpp | C++ | Src/VC/bcgcbpro/BCGPAppointmentStorage.cpp | iclosure/smartsoft | 62eaed49efd8306642b928ef4f2d96e36aca6527 | [
"MIT"
] | null | null | null | Src/VC/bcgcbpro/BCGPAppointmentStorage.cpp | iclosure/smartsoft | 62eaed49efd8306642b928ef4f2d96e36aca6527 | [
"MIT"
] | null | null | null | Src/VC/bcgcbpro/BCGPAppointmentStorage.cpp | iclosure/smartsoft | 62eaed49efd8306642b928ef4f2d96e36aca6527 | [
"MIT"
] | 1 | 2020-05-11T05:36:49.000Z | 2020-05-11T05:36:49.000Z | //*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of BCGControlBar Library Professional Edition
// Copyright (C) 1998-2012 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only unde... | 18.725851 | 122 | 0.650602 | iclosure |
a804ab0673092803b356c45d570da26c82f749d2 | 4,061 | cpp | C++ | src/main.cpp | MoochMcGee/IBM5150 | 6fd6d7dc24764881274c13a8a97739c314a9e9d0 | [
"WTFPL"
] | 5 | 2015-05-05T10:42:21.000Z | 2019-07-21T06:40:20.000Z | src/main.cpp | MoochMcGee/IBM5150 | 6fd6d7dc24764881274c13a8a97739c314a9e9d0 | [
"WTFPL"
] | null | null | null | src/main.cpp | MoochMcGee/IBM5150 | 6fd6d7dc24764881274c13a8a97739c314a9e9d0 | [
"WTFPL"
] | null | null | null | #include <cstdio>
#include <vector>
#include <string>
#include <functional>
#include <chrono>
#include <thread>
#include "interface.h"
#include "misc.h"
enum
{
update_frame = 1,
update_scanline = 2,
update_pixel = 4,
update_clock = 8
};
#include "cpu.h"
#include "mda.h"
#include "cga.h"
#include "sav... | 22.943503 | 87 | 0.526964 | MoochMcGee |
a808fe6ab437440bf0e851370987b10c6b0bc364 | 1,374 | cpp | C++ | 11_CPP/06_CPP06/ex02/B.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | 11_CPP/06_CPP06/ex02/B.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | 11_CPP/06_CPP06/ex02/B.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* B.cpp :+: :+: :+: ... | 36.157895 | 80 | 0.173945 | tderwedu |
a80a1eb4d141371e4e17f28fc630b4523476ac99 | 1,863 | cpp | C++ | avc_navigation/src/pid_controller.cpp | masebet/avc_2019 | 3c2dbf344842d9ceb627d377f9d8100e258d01bd | [
"MIT"
] | null | null | null | avc_navigation/src/pid_controller.cpp | masebet/avc_2019 | 3c2dbf344842d9ceb627d377f9d8100e258d01bd | [
"MIT"
] | null | null | null | avc_navigation/src/pid_controller.cpp | masebet/avc_2019 | 3c2dbf344842d9ceb627d377f9d8100e258d01bd | [
"MIT"
] | 1 | 2018-11-30T17:40:30.000Z | 2018-11-30T17:40:30.000Z | //include header
#include <pid_controller.hpp>
//default constructor
PIDController::PIDController(double kp, double ki, double kd, double min, double max, double dt)
{
//set class variable values to passed values
this->_kp = kp;
this->_ki = ki;
this->_kd = kd;
this->_min_output = min;
this->_max_output =... | 22.178571 | 96 | 0.716049 | masebet |
a80b8ae1c7e9766ff4327bd5202c4b5cac5f11c9 | 1,095 | cpp | C++ | chap14/Page585_multiple_conversion.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 50 | 2016-01-08T14:28:53.000Z | 2022-01-21T12:55:00.000Z | chap14/Page585_multiple_conversion.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 2 | 2017-06-05T16:45:20.000Z | 2021-04-17T13:39:24.000Z | chap14/Page585_multiple_conversion.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 18 | 2016-08-17T15:23:51.000Z | 2022-03-26T18:08:43.000Z | // Warning: this is for verification. It cannot compile.
struct A {
A(int = 0); // usually a bad idea to have two
A(double); //conversions from arithmetic types
operator int() const; // usually a bad idea to have two
operator double() const; // conversions to arithmetic types
// other memb... | 35.322581 | 80 | 0.635616 | sjbarigye |
a80c5631b5ab783f4fb20d0e47dcd4d2d0a46c8d | 713 | cpp | C++ | LongestCommonPrefix/LongestCommonPrefix.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | LongestCommonPrefix/LongestCommonPrefix.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | LongestCommonPrefix/LongestCommonPrefix.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace::std;
class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
int n = strs.size();
if (n == 0)
return "";
int minString = int(strs[0].size());
for (int i = 1; i < n; i++)
minString = min(int(str... | 17.390244 | 51 | 0.565217 | yergen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.