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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dcc228844073de0aa75390a5ac731493b40ee6f3 | 8,072 | cc | C++ | UX/src/Application.cc | frankencode/cc | 2923d4e807659d73b91ff05142b33dc251332bea | [
"Zlib"
] | 1 | 2019-07-29T04:07:29.000Z | 2019-07-29T04:07:29.000Z | UX/src/Application.cc | frankencode/cc | 2923d4e807659d73b91ff05142b33dc251332bea | [
"Zlib"
] | null | null | null | UX/src/Application.cc | frankencode/cc | 2923d4e807659d73b91ff05142b33dc251332bea | [
"Zlib"
] | 1 | 2020-03-04T17:13:04.000Z | 2020-03-04T17:13:04.000Z | /*
* Copyright (C) 2020 Frank Mertens.
*
* Distribution and use is allowed under the terms of the zlib license
* (see cc/LICENSE-zlib).
*
*/
#include <cc/Application>
#include <cc/TimeMaster>
#include <cc/PlatformPlugin>
#include <cc/PosGuard>
#include <cc/InputControl>
#include <cc/Process>
#include <cc/Bmp>
#i... | 24.24024 | 103 | 0.594896 | frankencode |
dcc40eb7eb4ca5a842c1d7db4b9ed4e93b1dc0a1 | 4,395 | cc | C++ | biod/ec_command_test.cc | kalyankondapally/chromiumos-platform2 | 5e5337009a65b1c9aa9e0ea565f567438217e91f | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | biod/ec_command_test.cc | kalyankondapally/chromiumos-platform2 | 5e5337009a65b1c9aa9e0ea565f567438217e91f | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | biod/ec_command_test.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | // Copyright 2019 The Chromium OS 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 <gmock/gmock.h>
#include <gtest/gtest.h>
#include "biod/ec_command.h"
using testing::_;
using testing::InvokeWithoutArgs;
using testing::Ret... | 30.10274 | 76 | 0.698521 | kalyankondapally |
dcc869cf1d46f33d81b28dd7a3d0131fb0832472 | 1,857 | cxx | C++ | PWGPP/EvTrkSelection/AliAnalysisTaskEventCutsValidation.cxx | AudreyFrancisco/AliPhysics | cb36cfa7d1edcd969780e90fe6bfab5107f0f099 | [
"BSD-3-Clause"
] | 1 | 2021-06-11T20:36:16.000Z | 2021-06-11T20:36:16.000Z | PWGPP/EvTrkSelection/AliAnalysisTaskEventCutsValidation.cxx | AudreyFrancisco/AliPhysics | cb36cfa7d1edcd969780e90fe6bfab5107f0f099 | [
"BSD-3-Clause"
] | 1 | 2017-03-14T15:11:43.000Z | 2017-03-14T15:53:09.000Z | PWGPP/EvTrkSelection/AliAnalysisTaskEventCutsValidation.cxx | AudreyFrancisco/AliPhysics | cb36cfa7d1edcd969780e90fe6bfab5107f0f099 | [
"BSD-3-Clause"
] | 1 | 2018-09-22T01:09:25.000Z | 2018-09-22T01:09:25.000Z | #include "AliAnalysisTaskEventCutsValidation.h"
// ROOT includes
#include <TChain.h>
#include <TH2F.h>
#include <TList.h>
// ALIROOT includes
#include "AliAODEvent.h"
#include "AliAODHeader.h"
#include "AliAODTrack.h"
#include "AliESDEvent.h"
#include "AliESDtrack.h"
#include "AliVEvent.h"
///\cond CLASSIMP
ClassImp... | 24.116883 | 106 | 0.740442 | AudreyFrancisco |
dcc9cf2a648f6f4c0768a1b376fc711fe500e9bc | 1,216 | cpp | C++ | sources/middle_layer/src/result.cpp | hhb584520/DML | 014eb9894e85334f03ec74435933c972f3d05b50 | [
"MIT"
] | null | null | null | sources/middle_layer/src/result.cpp | hhb584520/DML | 014eb9894e85334f03ec74435933c972f3d05b50 | [
"MIT"
] | null | null | null | sources/middle_layer/src/result.cpp | hhb584520/DML | 014eb9894e85334f03ec74435933c972f3d05b50 | [
"MIT"
] | 1 | 2022-03-28T07:52:21.000Z | 2022-03-28T07:52:21.000Z | /*******************************************************************************
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#include <core/view.hpp>
#include <dml/detail/ml/result.hpp>
namespace dml::detai... | 32 | 102 | 0.621711 | hhb584520 |
dcceb8b3b20685b8b2bb61e847810b3470c47996 | 403 | hpp | C++ | Spike/Backend/Dummy/Synapses/Synapses.hpp | elliotelliot/Spike | a2ecda4d7e0395a6693d4a10932ad72f58b156af | [
"MIT"
] | null | null | null | Spike/Backend/Dummy/Synapses/Synapses.hpp | elliotelliot/Spike | a2ecda4d7e0395a6693d4a10932ad72f58b156af | [
"MIT"
] | 1 | 2019-08-16T21:18:21.000Z | 2019-08-16T21:18:21.000Z | Spike/Backend/Dummy/Synapses/Synapses.hpp | elliotelliot/Spike | a2ecda4d7e0395a6693d4a10932ad72f58b156af | [
"MIT"
] | 4 | 2019-09-02T14:06:08.000Z | 2020-02-20T05:36:46.000Z | #pragma once
#include "Spike/Synapses/Synapses.hpp"
namespace Backend {
namespace Dummy {
class Synapses : public virtual ::Backend::Synapses {
public:
~Synapses() override = default;
void prepare() override;
void reset_state() override;
void copy_to_frontend() override;
void... | 20.15 | 57 | 0.665012 | elliotelliot |
dcced838bfab5c139c3d430666f146f38aca72c2 | 3,451 | cpp | C++ | 224BasicCalculator.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | 1 | 2020-10-11T08:10:53.000Z | 2020-10-11T08:10:53.000Z | 224BasicCalculator.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | null | null | null | 224BasicCalculator.cpp | yuyangh/LeetCode | 5d81cbd975c0c1f2bbca0cb25cefe361a169e460 | [
"MIT"
] | null | null | null | #include "LeetCodeLib.h"
class Solution {
public:
// iterative approach
int calculate(string s) {
int result = 0;
int sign = 1;
stack<int> st;
for (int i = 0; i < s.size(); i++) {
// get the number from string
if (s[i] >= '0') {
int num = 0;
while (i < s.size() && s[i] >= '0') {
num *= 10... | 19.833333 | 67 | 0.474065 | yuyangh |
dcd1f03705bda70716cfff206fff0721f0f39208 | 2,928 | cp | C++ | src/TFractalViewerWindow.cp | pfuentes69/FractalViewer | 397bc2c7f1182d016ff57fbf93a5f6da302bd06e | [
"Apache-2.0"
] | null | null | null | src/TFractalViewerWindow.cp | pfuentes69/FractalViewer | 397bc2c7f1182d016ff57fbf93a5f6da302bd06e | [
"Apache-2.0"
] | null | null | null | src/TFractalViewerWindow.cp | pfuentes69/FractalViewer | 397bc2c7f1182d016ff57fbf93a5f6da302bd06e | [
"Apache-2.0"
] | null | null | null | /*****
* TFractalViewerWindow.c
*
* The window methods for the application.
*
* TFractalViewerWindow inherits its Draw method from TWindow.
* TMandelbrot, TJulia, and others override DrawShape to draw their own kind of CGI.
*
*****/
#include <Packages.h> // for NumToString prototype
#include "TFractalView... | 2,928 | 2,928 | 0.676913 | pfuentes69 |
dcd24d5a9b94a8f29c988684fd2c44d7ab91e342 | 1,105 | cpp | C++ | test/data-tests/testcases/test-123.cpp | zhaitianduo/libosmium | 42fc3238f942baac47d8520425664376478718b1 | [
"BSL-1.0"
] | 4,526 | 2015-01-01T15:31:00.000Z | 2022-03-31T17:33:49.000Z | test/data-tests/testcases/test-123.cpp | zhaitianduo/libosmium | 42fc3238f942baac47d8520425664376478718b1 | [
"BSL-1.0"
] | 4,497 | 2015-01-01T15:29:12.000Z | 2022-03-31T19:19:35.000Z | test/data-tests/testcases/test-123.cpp | zhaitianduo/libosmium | 42fc3238f942baac47d8520425664376478718b1 | [
"BSL-1.0"
] | 3,023 | 2015-01-01T18:40:53.000Z | 2022-03-30T13:30:46.000Z |
#include <cstring>
#include <stdexcept>
#include "common.hpp"
class TestHandler123 : public osmium::handler::Handler {
public:
TestHandler123() :
osmium::handler::Handler() {
}
void way(const osmium::Way& way) const {
if (way.id() == 123800) {
REQUIRE(way.version() == 1);
... | 25.697674 | 99 | 0.637104 | zhaitianduo |
dcddf1ed62acf71cefecdfbb5e14b82b07b2098d | 6,223 | hpp | C++ | Visitors/AcceptanceVisitors/DilatedVarianceDifferenceAcceptanceVisitor.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 39 | 2015-01-01T07:59:51.000Z | 2021-10-01T18:11:46.000Z | Visitors/AcceptanceVisitors/DilatedVarianceDifferenceAcceptanceVisitor.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 1 | 2019-04-24T09:56:15.000Z | 2019-04-24T14:45:46.000Z | Visitors/AcceptanceVisitors/DilatedVarianceDifferenceAcceptanceVisitor.hpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 18 | 2015-01-11T15:10:23.000Z | 2022-02-24T20:02:10.000Z | /*=========================================================================
*
* Copyright David Doria 2012 daviddoria@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... | 49.388889 | 208 | 0.703198 | jingtangliao |
dcdf01b01665dec4690b9d0213b32be1f7039302 | 7,145 | cpp | C++ | vfd_bench/custom/src/vfd_task.cpp | milesfrain/stm32template | c7a55661c21a3ea0266b1e3950c6fb5210ccff25 | [
"CC0-1.0"
] | 1 | 2021-07-26T16:27:28.000Z | 2021-07-26T16:27:28.000Z | vfd_bench/custom/src/vfd_task.cpp | milesfrain/stm32template | c7a55661c21a3ea0266b1e3950c6fb5210ccff25 | [
"CC0-1.0"
] | 3 | 2020-10-23T22:59:07.000Z | 2020-10-23T23:02:35.000Z | vfd_bench/custom/src/vfd_task.cpp | milesfrain/stm32template | c7a55661c21a3ea0266b1e3950c6fb5210ccff25 | [
"CC0-1.0"
] | 1 | 2022-01-18T04:57:14.000Z | 2022-01-18T04:57:14.000Z | /*
* See header for notes.
*/
#include "vfd_task.h"
#include "board_defs.h"
#include "catch_errors.h"
#include "packet_utils.h"
#include "string.h" // memcpy
#include "vfd_defs.h"
VfdTask::VfdTask( //
const char* name,
UartTasks& uart,
Writable& target,
TaskUtilitiesArg& utilArg,
UBaseType_t priority)
:... | 32.330317 | 131 | 0.613436 | milesfrain |
dcdf739247cfd9069822d09dcb438ea035b20678 | 463 | cpp | C++ | service/src/exo/videorw.cpp | BOBBYWY/exodusdb | cfe8a3452480af90071dd10cefeed58299eed4e7 | [
"MIT"
] | null | null | null | service/src/exo/videorw.cpp | BOBBYWY/exodusdb | cfe8a3452480af90071dd10cefeed58299eed4e7 | [
"MIT"
] | null | null | null | service/src/exo/videorw.cpp | BOBBYWY/exodusdb | cfe8a3452480af90071dd10cefeed58299eed4e7 | [
"MIT"
] | null | null | null | #include <exodus/library.h>
libraryinit()
function main(in x, in y, in x2, in y2, in readwrite, io buffer) {
//TODO implement if screen handling required
//VIDEO.RW(0,0,@CRTWIDE-1,@CRTHIGH-1,'R',startBUFFER)
//eg to copy a whole screen sized 80x25, use 0,0,79,24
//R=Read, W=Write
//evade warning "usused"
fals... | 18.52 | 66 | 0.660907 | BOBBYWY |
dce1a9d48c363461b86d90f7c8ebc32d37e1fe13 | 6,887 | cpp | C++ | editor/src/editor.cpp | gabyrobles93/worms-game-remake | b97781f39369f807ae8c8316f7f313353d7a2df7 | [
"MIT"
] | 2 | 2019-04-24T18:27:29.000Z | 2020-04-06T17:15:34.000Z | editor/src/editor.cpp | gabyrobles93/tp-final-taller | b97781f39369f807ae8c8316f7f313353d7a2df7 | [
"MIT"
] | null | null | null | editor/src/editor.cpp | gabyrobles93/tp-final-taller | b97781f39369f807ae8c8316f7f313353d7a2df7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <SDL2/SDL.h>
#include <QApplication>
#include <QMessageBox>
#include <QDebug>
#include "editor.h"
#include "yaml.h"
#include "map_game.h"
#include "yaml.h"
#include "inventory.h"
#include "inventory_editor.h"
#define EXIT_PADDING 5
#define EXIT_ICON_SIDE 20
#define SAVE_P... | 34.782828 | 127 | 0.652098 | gabyrobles93 |
dce1aa108a1408397a6280c0e66fdf626d083d24 | 2,589 | cc | C++ | src/core/wakeup_handler.cc | nugulinux/nugu-linux | c166d61b2037247d4574b7f791c31ba79ceb575e | [
"Apache-2.0"
] | null | null | null | src/core/wakeup_handler.cc | nugulinux/nugu-linux | c166d61b2037247d4574b7f791c31ba79ceb575e | [
"Apache-2.0"
] | null | null | null | src/core/wakeup_handler.cc | nugulinux/nugu-linux | c166d61b2037247d4574b7f791c31ba79ceb575e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019 SK Telecom Co., Ltd. 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 requir... | 28.141304 | 128 | 0.676323 | nugulinux |
dce1dfd76f66d0749bdacb0cdf77658fefd4cc9d | 3,652 | cpp | C++ | graph-source-code/182-A/1625475.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/182-A/1625475.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/182-A/1625475.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
//HACK ME, PLEASE! ^_^
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <vector>
#include <set>
#include <utility>
#include <math.h>
#include <cstdlib>
#include <memory.h>
#include <queue>
#define pb push_back
#define i64 long... | 26.463768 | 107 | 0.441128 | AmrARaouf |
dce21c1663f64fff45a035362b019a7ee5de494a | 1,089 | cpp | C++ | Challenge-2020-05/construct_BST_from_preorder_traversal.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Challenge-2020-05/construct_BST_from_preorder_traversal.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Challenge-2020-05/construct_BST_from_preorder_traversal.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include "binary_tree.h"
using namespace std;
class Solution {
public:
TreeNode* bstFromPreorder(vector<int>& preorder) {
if (preorder.size() == 0) return nullptr;
TreeNode* root = new TreeNode {preorder[0]};
for (int i = 1; i < preorder.size(); i++) ... | 27.225 | 59 | 0.458219 | qiufengyu |
dce7c7e21f38167ab9d28022a0e0c56bf0c96614 | 13,250 | cpp | C++ | app/rtkconv/codeopt.cpp | mws-rmain/RTKLIB | 3cd1f799b04da433f29473332c250b0518aa762c | [
"BSD-2-Clause"
] | 2 | 2021-11-06T07:23:27.000Z | 2021-11-07T14:29:21.000Z | app/rtkconv/codeopt.cpp | mws-rmain/RTKLIB | 3cd1f799b04da433f29473332c250b0518aa762c | [
"BSD-2-Clause"
] | null | null | null | app/rtkconv/codeopt.cpp | mws-rmain/RTKLIB | 3cd1f799b04da433f29473332c250b0518aa762c | [
"BSD-2-Clause"
] | 3 | 2020-09-28T02:42:26.000Z | 2020-09-28T09:01:08.000Z | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "rtklib.h"
#include "convopt.h"
#include "codeopt.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TCodeOptDialog ... | 35.333333 | 77 | 0.621057 | mws-rmain |
dce93554c6735c0cd9fe675aaa1c4e96a80b1b64 | 10,164 | hpp | C++ | include/openpose/producer/datumProducer.hpp | mooktj/openpose | f4ee9cba3621093bba88bb17d1ea6a19ff3236ad | [
"DOC"
] | null | null | null | include/openpose/producer/datumProducer.hpp | mooktj/openpose | f4ee9cba3621093bba88bb17d1ea6a19ff3236ad | [
"DOC"
] | null | null | null | include/openpose/producer/datumProducer.hpp | mooktj/openpose | f4ee9cba3621093bba88bb17d1ea6a19ff3236ad | [
"DOC"
] | null | null | null | #ifndef OPENPOSE_PRODUCER_DATUM_PRODUCER_HPP
#define OPENPOSE_PRODUCER_DATUM_PRODUCER_HPP
#include <atomic>
#include <limits> // std::numeric_limits
#include <tuple>
#include <openpose/core/common.hpp>
#include <openpose/core/datum.hpp>
#include <openpose/utilities/fastMath.hpp>
#include <openpose/producer/producer.hp... | 45.375 | 130 | 0.55854 | mooktj |
dcec710ff4c3a62228b325e1546ef90961b041af | 2,076 | cpp | C++ | ihmc-pub-sub/cppsrc/FastRTPS/subscriberexample.cpp | loulansuiye/ihmc-pub-sub-group | c6635ac0cb3a28c18252ffc8033e76360c540e3a | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-11-03T02:48:20.000Z | 2018-11-03T02:48:20.000Z | ihmc-pub-sub/cppsrc/FastRTPS/subscriberexample.cpp | loulansuiye/ihmc-pub-sub-group | c6635ac0cb3a28c18252ffc8033e76360c540e3a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | ihmc-pub-sub/cppsrc/FastRTPS/subscriberexample.cpp | loulansuiye/ihmc-pub-sub-group | c6635ac0cb3a28c18252ffc8033e76360c540e3a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #include "nativeparticipantimpl.h"
#include "nativesubscriberimpl.h"
#include <iostream>
#include <chrono>
#include <thread>
using namespace us::ihmc::rtps::impl::fastRTPS;
class ExampleParticipantListener : public NativeParticipantListener
{
void onParticipantDiscovery(int64_t infoPtr, int64_t guidHigh, int64_t... | 28.833333 | 148 | 0.688343 | loulansuiye |
dcef3916bce8005255e1572fbfb090a643a8dbcc | 6,860 | cpp | C++ | jshEngine/src/Engine.cpp | JoseLRM/jshEngine | 589851ca3e845e407d81dc555dc76dc70c010f25 | [
"Apache-2.0"
] | 1 | 2021-11-03T08:05:57.000Z | 2021-11-03T08:05:57.000Z | jshEngine/src/Engine.cpp | JoseLRM/jshEngine | 589851ca3e845e407d81dc555dc76dc70c010f25 | [
"Apache-2.0"
] | null | null | null | jshEngine/src/Engine.cpp | JoseLRM/jshEngine | 589851ca3e845e407d81dc555dc76dc70c010f25 | [
"Apache-2.0"
] | null | null | null | #include "common.h"
#include "Window.h"
#include "TaskSystem.h"
#include "Timer.h"
#include "Graphics.h"
#include "Renderer.h"
#include "State.h"
#include "DefaultLoadState.h"
#include "StateManager.h"
#include "GuiSystem.h"
using namespace jsh;
using namespace jsh::_internal;
namespace jshEngine {
void BeginUpdat... | 21.847134 | 165 | 0.669388 | JoseLRM |
fd63b8fb642c55df7570d013d857ccc936715c9e | 64,295 | cpp | C++ | compiler/util/clangUtil.cpp | krishnakeshav/chapel | c7840d76944cfb1b63878e51e81138d1a0c808cf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/util/clangUtil.cpp | krishnakeshav/chapel | c7840d76944cfb1b63878e51e81138d1a0c808cf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/util/clangUtil.cpp | krishnakeshav/chapel | c7840d76944cfb1b63878e51e81138d1a0c808cf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2004-2017 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
*
*... | 31.766304 | 219 | 0.653052 | krishnakeshav |
fd65a275b913fb8299109047f325f9caef81e801 | 160 | cpp | C++ | src/examples/01_module/01_output/main.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-artgonzalezacc | fc87779a7c8aa6fde4def06ff7c2fbf3541a5cd9 | [
"MIT"
] | null | null | null | src/examples/01_module/01_output/main.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-artgonzalezacc | fc87779a7c8aa6fde4def06ff7c2fbf3541a5cd9 | [
"MIT"
] | null | null | null | src/examples/01_module/01_output/main.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-artgonzalezacc | fc87779a7c8aa6fde4def06ff7c2fbf3541a5cd9 | [
"MIT"
] | null | null | null | #include "output.h"//use file code that I created
#include<iostream>//use standard library
using std::cout;
int main()
{
cout<<"Hello World!";
return 0;
} | 14.545455 | 49 | 0.6875 | acc-cosc-1337-spring-2020 |
fd6b2581413138bd5080f874be9df0cf35e6fb1c | 37,123 | cc | C++ | ThirdParty/webrtc/src/webrtc/modules/audio_processing/audio_processing_impl.cc | JokeJoe8806/licode-windows | 2bfdaf6e87669df2b9960da50c6800bc3621b80b | [
"MIT"
] | 8 | 2018-12-27T14:57:13.000Z | 2021-04-07T07:03:15.000Z | ThirdParty/webrtc/src/webrtc/modules/audio_processing/audio_processing_impl.cc | JokeJoe8806/licode-windows | 2bfdaf6e87669df2b9960da50c6800bc3621b80b | [
"MIT"
] | 1 | 2019-03-13T01:35:03.000Z | 2020-10-08T04:13:04.000Z | ThirdParty/webrtc/src/webrtc/modules/audio_processing/audio_processing_impl.cc | JokeJoe8806/licode-windows | 2bfdaf6e87669df2b9960da50c6800bc3621b80b | [
"MIT"
] | 9 | 2018-12-28T11:45:12.000Z | 2021-05-11T02:15:31.000Z | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 34.373148 | 84 | 0.679309 | JokeJoe8806 |
fd6f38712b3dc29d17a87f86edc8d8f16a1b4938 | 846 | cpp | C++ | src/lib/Charting.cpp | kp2pml30/optimization-methods-labs | 654d982fafea4dcaaea80aa78d89128bc443398b | [
"Apache-2.0"
] | 3 | 2021-05-13T14:05:21.000Z | 2021-05-13T14:05:39.000Z | src/lib/Charting.cpp | kp2pml30/optimization-methods-labs | 654d982fafea4dcaaea80aa78d89128bc443398b | [
"Apache-2.0"
] | null | null | null | src/lib/Charting.cpp | kp2pml30/optimization-methods-labs | 654d982fafea4dcaaea80aa78d89128bc443398b | [
"Apache-2.0"
] | null | null | null | #include "opt-methods/util/Charting.hpp"
using namespace Charting;
void Charting::addToChart(QtCharts::QChart *chart, QtCharts::QAbstractSeries *s)
{
s->setUseOpenGL();
chart->addSeries(s);
s->attachAxis(axisX(chart));
s->attachAxis(axisY(chart));
}
qreal Charting::getAxisRange(QtCharts::QValueAxis *axis) { retu... | 25.636364 | 94 | 0.712766 | kp2pml30 |
fd74d7a645e78d29cffcd3b134de025abd4490d2 | 1,348 | cpp | C++ | VSProject/LeetCodeSol/Src/MergeTwoSortedListsSolution.cpp | wangxiaotao1980/leetCodeCPP | 1806c00cd89eacddbdd20a7c33875f54400a20a8 | [
"MIT"
] | null | null | null | VSProject/LeetCodeSol/Src/MergeTwoSortedListsSolution.cpp | wangxiaotao1980/leetCodeCPP | 1806c00cd89eacddbdd20a7c33875f54400a20a8 | [
"MIT"
] | null | null | null | VSProject/LeetCodeSol/Src/MergeTwoSortedListsSolution.cpp | wangxiaotao1980/leetCodeCPP | 1806c00cd89eacddbdd20a7c33875f54400a20a8 | [
"MIT"
] | null | null | null | /*******************************************************************************************
* @file MergeTwoSortedListsSolution.cpp 2015\12\7 18:00:31 $
* @author Wang Xiaotao<wangxiaotao1980@gmail.com> (中文编码测试)
* @note LeetCode No.21 Merge Two Sorted Lists
*****************************************... | 28.680851 | 94 | 0.396884 | wangxiaotao1980 |
fd76422330862fd1ee98feb18e6f9351912ecdac | 2,194 | cc | C++ | asylo/platform/common/debug_strings_test.cc | kevin405/mosl_vsgx_migration | 76ddd438c8caad1051ea9a7e2040bf6ccee996a2 | [
"Apache-2.0"
] | 1 | 2019-01-13T21:39:32.000Z | 2019-01-13T21:39:32.000Z | asylo/platform/common/debug_strings_test.cc | kevin405/mosl_vsgx_migration | 76ddd438c8caad1051ea9a7e2040bf6ccee996a2 | [
"Apache-2.0"
] | null | null | null | asylo/platform/common/debug_strings_test.cc | kevin405/mosl_vsgx_migration | 76ddd438c8caad1051ea9a7e2040bf6ccee996a2 | [
"Apache-2.0"
] | 1 | 2019-01-02T22:04:21.000Z | 2019-01-02T22:04:21.000Z | /*
*
* Copyright 2018 Asylo authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 29.253333 | 75 | 0.690064 | kevin405 |
fd77e307f7ff4ebbe739acd4ba3d54542df12a31 | 3,411 | cpp | C++ | firmware/lib/LFO.cpp | JordanAceto/whooshy_sound | 29056707c27413bac8fc56eed32da390e117dc4f | [
"CC-BY-4.0",
"MIT"
] | null | null | null | firmware/lib/LFO.cpp | JordanAceto/whooshy_sound | 29056707c27413bac8fc56eed32da390e117dc4f | [
"CC-BY-4.0",
"MIT"
] | 6 | 2021-07-13T22:25:55.000Z | 2022-01-16T15:16:09.000Z | firmware/lib/LFO.cpp | JordanAceto/whooshy_sound | 29056707c27413bac8fc56eed32da390e117dc4f | [
"CC-BY-4.0",
"MIT"
] | null | null | null | #include "LFO.hpp"
#include "lookup_tables.hpp"
#include "PRNG.hpp"
#include "wave_scanner.hpp"
LFO::LFO(uint32_t sample_rate) : sample_rate(sample_rate) {}
void LFO::tick(void)
{
phase_accumulator += tuning_word;
updateWaveshapes();
}
void LFO::setInput(Input_t input_type, int value)
{
input[input_type]... | 28.90678 | 143 | 0.703313 | JordanAceto |
fd788cf6029b78c1e8987ddba8568ed05cc64ddd | 353 | cpp | C++ | source/realtimertfilters/realtimertfilters-app/sources/renderpasses/Renderpass.cpp | Realtime-RT-Filters/Realtime-RT-Filters | aa4d44d9f2bbc795bea63358c246fb94465bdde2 | [
"Zlib",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | source/realtimertfilters/realtimertfilters-app/sources/renderpasses/Renderpass.cpp | Realtime-RT-Filters/Realtime-RT-Filters | aa4d44d9f2bbc795bea63358c246fb94465bdde2 | [
"Zlib",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | source/realtimertfilters/realtimertfilters-app/sources/renderpasses/Renderpass.cpp | Realtime-RT-Filters/Realtime-RT-Filters | aa4d44d9f2bbc795bea63358c246fb94465bdde2 | [
"Zlib",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | #include "../../headers/renderpasses/Renderpass.hpp"
#include "../../headers/RTFilterDemo.hpp"
namespace rtf
{
void Renderpass::setRtFilterDemo(RTFilterDemo* rtFilterDemo)
{
m_rtFilterDemo = rtFilterDemo;
m_vulkanDevice = rtFilterDemo->vulkanDevice;
m_attachmentManager = rtFilterDemo->m_attachmentManager;
m_... | 27.153846 | 61 | 0.773371 | Realtime-RT-Filters |
fd823c10c00187180754b42fdfd38d4b830d51b6 | 46 | cpp | C++ | TEST/src/TestLaunch.cpp | Morderaccman/Test | 31cd84e8994646851f89df7902acc97a9bf46692 | [
"Apache-2.0"
] | null | null | null | TEST/src/TestLaunch.cpp | Morderaccman/Test | 31cd84e8994646851f89df7902acc97a9bf46692 | [
"Apache-2.0"
] | null | null | null | TEST/src/TestLaunch.cpp | Morderaccman/Test | 31cd84e8994646851f89df7902acc97a9bf46692 | [
"Apache-2.0"
] | null | null | null | #include "i4pch.h"
#include "WinShipLinker.h" | 15.333333 | 26 | 0.73913 | Morderaccman |
fd89614e4a1f4d53cdb77144c91da2d3c147a1ec | 750 | cpp | C++ | Testing/Arrays/ArrayCat.cpp | Psy-Rat/FPTL | f3e1f560efa0c67ce62e673a8e142bc4df837a6e | [
"MIT"
] | 5 | 2019-11-21T23:14:00.000Z | 2021-02-03T15:39:30.000Z | Testing/Arrays/ArrayCat.cpp | Psy-Rat/FPTL | f3e1f560efa0c67ce62e673a8e142bc4df837a6e | [
"MIT"
] | null | null | null | Testing/Arrays/ArrayCat.cpp | Psy-Rat/FPTL | f3e1f560efa0c67ce62e673a8e142bc4df837a6e | [
"MIT"
] | 4 | 2020-02-23T22:38:04.000Z | 2021-02-05T16:59:31.000Z | #include "../Shared.h"
namespace UnitTests
{
namespace Arrays
{
TEST(ArrayCat, One)
{
const std::string innerCode = "@ = (((3 * 1).arrayCreate * 1 * 2).arraySet * 2 * 3).arraySet.(id * arrayCat).(print * ([-1] * 0 * 0).arraySet.print * print);";
const std::string expected = "[1, 2, 3]";
GeneralizedTes... | 25.862069 | 162 | 0.6 | Psy-Rat |
fd89f6d824ab982c0dfb7108248aec3f088e6f18 | 870 | cpp | C++ | coast/modules/Renderer/CeilingRenderer.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/modules/Renderer/CeilingRenderer.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/modules/Renderer/CeilingRenderer.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | 28.064516 | 102 | 0.666667 | zer0infinity |
fd8f62263a6b544ba6ec739cdb6ee84623310cbc | 35,174 | cpp | C++ | Source/driver/Castro_setup.cpp | taehoryu/Castro | 223c72c993343ba5df84613d058ffb0767c2a7c9 | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-06-05T19:23:47.000Z | 2019-06-05T19:23:47.000Z | Source/driver/Castro_setup.cpp | taehoryu/Castro | 223c72c993343ba5df84613d058ffb0767c2a7c9 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/driver/Castro_setup.cpp | taehoryu/Castro | 223c72c993343ba5df84613d058ffb0767c2a7c9 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <cstdio>
#include "AMReX_LevelBld.H"
#include <AMReX_ParmParse.H>
#include "Castro.H"
#include "Castro_F.H"
#ifdef AMREX_DIMENSION_AGNOSTIC
#include "Castro_bc_fill_nd_F.H"
#include "Castro_bc_fill_nd.H"
#else
#include "Castro_bc_fill_F.H"
#include "Castro_bc_fill.H"
#endif
#include "Castro_generic_fill_F.H"
... | 30.218213 | 125 | 0.682948 | taehoryu |
fd950068b66f62a9cda8be91187ffc09d07c0317 | 347 | cpp | C++ | SDK/MISC/sprites.cpp | playday3008/hack-cs-1.6-eV0L | 40bdc3ef0fbe4d14a24939417efed6df58efe856 | [
"MIT"
] | 5 | 2020-05-02T17:29:32.000Z | 2021-09-20T19:19:15.000Z | SDK/MISC/sprites.cpp | playday3008/hack-cs-1.6-eV0L | 40bdc3ef0fbe4d14a24939417efed6df58efe856 | [
"MIT"
] | null | null | null | SDK/MISC/sprites.cpp | playday3008/hack-cs-1.6-eV0L | 40bdc3ef0fbe4d14a24939417efed6df58efe856 | [
"MIT"
] | 3 | 2020-05-02T19:03:48.000Z | 2021-09-22T03:44:22.000Z | #include <windows.h>
#define MAX_SPRITES 500
static char * sprites[MAX_SPRITES];
void add_sprite (int id, const char * sprite)
{
if ( id >= 0 && id < MAX_SPRITES )
sprites[id] = _strdup(sprite);
}
const char * sprite_lookup (int id)
{
if ( id >= 0 && id < MAX_SPRITES && sprites[id] )
return sprites[id];
e... | 15.086957 | 50 | 0.642651 | playday3008 |
fd959e3560b430d01b109c088e8fdc86c2af665d | 324 | cpp | C++ | atcoder.jp/abc171/abc171_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc171/abc171_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc171/abc171_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n, k;
cin >> n >> k;
vector<int> p(n);
for (int i = 0; i < n; i++)
{
cin >> p.at(i);
}
sort(p.begin(), p.end());
int ans = 0;
for (int i = 0; i < k; i++)
{
ans += p.at(i);
}
cout << ans << endl... | 16.2 | 31 | 0.398148 | shikij1 |
fd9608a96dc28699a5f4d4a75a9407d3b75524cc | 1,057 | cpp | C++ | code/osx_clipboard.cpp | robbitay/ConstPort | d948ceb5f0e22504640578e3ef31e3823b29c1c3 | [
"Unlicense"
] | null | null | null | code/osx_clipboard.cpp | robbitay/ConstPort | d948ceb5f0e22504640578e3ef31e3823b29c1c3 | [
"Unlicense"
] | null | null | null | code/osx_clipboard.cpp | robbitay/ConstPort | d948ceb5f0e22504640578e3ef31e3823b29c1c3 | [
"Unlicense"
] | null | null | null | /*
File: osx_clipboard.cpp
Author: Taylor Robbins
Date: 10\07\2017
Description:
** Holds the functions that handle interfacing with the OSX clipboard
#included from osx_main.cpp
*/
// +==============================+
// | OSX_CopyToClipboard |
// +==============================+
// void OSX_CopyToClip... | 25.780488 | 76 | 0.645222 | robbitay |
fd970f34f194556769ef7690cc14f1031e52ea60 | 2,182 | cpp | C++ | input-output_example_gen/bench/stencil_tiled.cpp | dongchen-coder/symRIByInputOuputExamples | e7434699f44ceb01f153ac8623b5bafac57f8abf | [
"MIT"
] | null | null | null | input-output_example_gen/bench/stencil_tiled.cpp | dongchen-coder/symRIByInputOuputExamples | e7434699f44ceb01f153ac8623b5bafac57f8abf | [
"MIT"
] | null | null | null | input-output_example_gen/bench/stencil_tiled.cpp | dongchen-coder/symRIByInputOuputExamples | e7434699f44ceb01f153ac8623b5bafac57f8abf | [
"MIT"
] | null | null | null | #include "./utility/rt.h"
int DIM_SIZE;
int TILE_SIZE;
void stencil_trace(int *a, int *b, unsigned int dim_size, unsigned int tile_size) {
vector<int> idx;
for (int i = 1; i < dim_size+1 ; i += tile_size) {
for (int j = 1; j < dim_size+1; j += tile_size) {
for (int i_til... | 34.09375 | 260 | 0.502291 | dongchen-coder |
fd9bac4ea6c171531547acca5321b589e4b835f5 | 331 | hpp | C++ | include/lua_blt_debug.hpp | magicmoremagic/bengine-blt | fc2e07107dca0689d44ebd066b74d5bac7cacfa8 | [
"MIT"
] | null | null | null | include/lua_blt_debug.hpp | magicmoremagic/bengine-blt | fc2e07107dca0689d44ebd066b74d5bac7cacfa8 | [
"MIT"
] | null | null | null | include/lua_blt_debug.hpp | magicmoremagic/bengine-blt | fc2e07107dca0689d44ebd066b74d5bac7cacfa8 | [
"MIT"
] | null | null | null | #pragma once
#ifndef BE_BLT_LUA_BLT_DEBUG_HPP_
#define BE_BLT_LUA_BLT_DEBUG_HPP_
#include <lua/lua.h>
#include <lua/lauxlib.h>
namespace be::belua {
///////////////////////////////////////////////////////////////////////////////
int open_blt_debug(lua_State* L);
extern const luaL_Reg blt_debug_module;
} // be::bel... | 18.388889 | 79 | 0.586103 | magicmoremagic |
fd9c2ba127d918e8af4c838a2055f606c87b22f5 | 3,133 | cpp | C++ | main_d1/editor/kcurve.cpp | ziplantil/CacaoticusDescent | b4299442bc43310690a666e181dd983c1491dce1 | [
"MIT"
] | 22 | 2019-08-19T21:09:29.000Z | 2022-03-25T23:19:15.000Z | main_d1/editor/kcurve.cpp | ziplantil/CacaoticusDescent | b4299442bc43310690a666e181dd983c1491dce1 | [
"MIT"
] | 6 | 2019-11-08T22:17:03.000Z | 2022-03-10T05:02:59.000Z | main_d1/editor/kcurve.cpp | ziplantil/CacaoticusDescent | b4299442bc43310690a666e181dd983c1491dce1 | [
"MIT"
] | 6 | 2019-08-24T08:03:14.000Z | 2022-02-04T15:04:52.000Z | /*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... | 23.734848 | 94 | 0.691031 | ziplantil |
fd9c65cff4c22e9600b1a2369c1c0ef5af326a73 | 2,822 | cpp | C++ | Components/Paging/src/OgrePageContentCollection.cpp | rjdgtn/OgreCPPBuilder | 1d3fa5874e54da9c19f4fe9fd128fcda19285b5e | [
"MIT"
] | 108 | 2015-01-23T01:43:56.000Z | 2021-12-23T07:00:48.000Z | Components/Paging/src/OgrePageContentCollection.cpp | venscn/ogre | 069a43c4c4fcb5264c995fca65a28acd3154b230 | [
"MIT"
] | 2 | 2016-03-05T14:40:20.000Z | 2017-02-20T11:33:51.000Z | Components/Paging/src/OgrePageContentCollection.cpp | venscn/ogre | 069a43c4c4fcb5264c995fca65a28acd3154b230 | [
"MIT"
] | 92 | 2015-01-13T08:57:11.000Z | 2021-09-19T05:20:55.000Z | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2011 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obta... | 38.135135 | 89 | 0.600283 | rjdgtn |
fd9f677956fdd04c41a4c5bc69eebff87eeb6257 | 3,156 | hpp | C++ | includes/sigma-male-algorithm.hpp | TheLandfill/tsp | ae2b90c8a44f4521373259a587d4c91c5bc318a3 | [
"MIT"
] | null | null | null | includes/sigma-male-algorithm.hpp | TheLandfill/tsp | ae2b90c8a44f4521373259a587d4c91c5bc318a3 | [
"MIT"
] | null | null | null | includes/sigma-male-algorithm.hpp | TheLandfill/tsp | ae2b90c8a44f4521373259a587d4c91c5bc318a3 | [
"MIT"
] | null | null | null | #pragma once
#include "matrix.hpp"
#include "max-or-inf.hpp"
#include "global-greedy.hpp"
#include "edge.hpp"
#include "print-info.hpp"
#include "k-opt.hpp"
#include <unordered_set>
#include <random>
#include <iostream>
#include <cmath>
template<typename T>
class Sigma_Male {
public:
Sigma_Male(uint32_t seed, double ... | 32.204082 | 113 | 0.66033 | TheLandfill |
fd9f7924ebf04332cf47b9b218a81f138e03bb0e | 2,920 | hpp | C++ | ble-cpp/src/impl/StatusInitializerStub.hpp | harsh-agarwal/blelocpp | eaba46c6239981c7b8e69bef2ab33bb08ecb15b4 | [
"MIT"
] | 8 | 2016-06-13T20:47:18.000Z | 2021-12-22T17:29:32.000Z | ble-cpp/src/impl/StatusInitializerStub.hpp | harsh-agarwal/blelocpp | eaba46c6239981c7b8e69bef2ab33bb08ecb15b4 | [
"MIT"
] | 11 | 2016-03-14T07:00:04.000Z | 2019-05-07T18:20:15.000Z | ble-cpp/src/impl/StatusInitializerStub.hpp | harsh-agarwal/blelocpp | eaba46c6239981c7b8e69bef2ab33bb08ecb15b4 | [
"MIT"
] | 11 | 2016-02-03T07:41:00.000Z | 2019-09-11T10:03:48.000Z | /*******************************************************************************
* Copyright (c) 2014, 2015 IBM Corporation and others
*
* 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 ... | 37.922078 | 81 | 0.561986 | harsh-agarwal |
fd9fa1cb52f4650aa6bc9139634f2be98da4524b | 706 | cpp | C++ | Music/Chou/OnKai/a.cpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | 2 | 2020-09-13T07:31:22.000Z | 2022-03-26T08:37:32.000Z | Music/Chou/OnKai/a.cpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | null | null | null | Music/Chou/OnKai/a.cpp | p-adic/cpp | 9404a08f26c55a19c53ab0a11edb70f3ed6a8e3c | [
"MIT"
] | null | null | null | // c:/Users/user/Documents/Programming/Music/Chou/OnKai/a.cpp
#include "../../Header.hpp"
#include "a_Body.hpp"
#include "../../../Error/FaultInCoding/a.hpp"
const PitchClass& OnKai::PitchClassTable( const KaiMei& num ) const noexcept
{
const PitchClass* p_Table[7] =
{
&m_I ,
&m_II ... | 22.774194 | 85 | 0.580737 | p-adic |
fda1d5ce2c84d7bc8d28f9369623e7ed5f1a1fd9 | 983 | cpp | C++ | C++/minimum-absolute-sum-difference.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/minimum-absolute-sum-difference.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/minimum-absolute-sum-difference.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(nlogn)
// Space: O(n)
class Solution {
public:
int minAbsoluteSumDiff(vector<int>& nums1, vector<int>& nums2) {
static const int MOD = 1e9 + 7;
vector<int> sorted_nums1(cbegin(nums1), cend(nums1));
sort(begin(sorted_nums1), end(sorted_nums1));
int result = 0, max_change... | 33.896552 | 93 | 0.513733 | Priyansh2 |
fda2321fad5286503ca80c58a301c01a2e4d797d | 2,258 | cpp | C++ | src/Core/Utils/Attribs.cpp | Yasoo31/Radium-Engine | e22754d0abe192207fd946509cbd63c4f9e52dd4 | [
"Apache-2.0"
] | 78 | 2017-12-01T12:23:22.000Z | 2022-03-31T05:08:09.000Z | src/Core/Utils/Attribs.cpp | neurodiverseEsoteric/Radium-Engine | ebebc29d889a9d32e0637e425e589e403d8edef8 | [
"Apache-2.0"
] | 527 | 2017-09-25T13:05:32.000Z | 2022-03-31T18:47:44.000Z | src/Core/Utils/Attribs.cpp | neurodiverseEsoteric/Radium-Engine | ebebc29d889a9d32e0637e425e589e403d8edef8 | [
"Apache-2.0"
] | 48 | 2018-01-04T22:08:08.000Z | 2022-03-03T08:13:41.000Z | #include <Core/Types.hpp>
#include <Core/Utils/Attribs.hpp>
#include <Core/Utils/Log.hpp>
namespace Ra {
namespace Core {
namespace Utils {
AttribBase::~AttribBase() {
notify();
}
template <>
size_t Attrib<float>::getElementSize() const {
return 1;
}
template <>
size_t Attrib<double>::getElementSize() const... | 27.876543 | 95 | 0.564659 | Yasoo31 |
fda6887ac89caed203cb87e0564c5addc3e98af8 | 5,654 | cpp | C++ | dep/include/yse/juce_audio_basics/sources/juce_ChannelRemappingAudioSource.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | 8 | 2016-04-14T17:17:07.000Z | 2021-12-06T06:49:28.000Z | dep/include/yse/juce_audio_basics/sources/juce_ChannelRemappingAudioSource.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | null | null | null | dep/include/yse/juce_audio_basics/sources/juce_ChannelRemappingAudioSource.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | 2 | 2019-06-13T10:01:32.000Z | 2021-11-19T18:53:52.000Z | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2015 - ROLI Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL v3
Details of these ... | 30.562162 | 102 | 0.616732 | ChrSacher |
fdac081e1c692002a920c526e8b4021cdf42a4b5 | 3,129 | cpp | C++ | src/NetWidgets/Widgets/nTldEditor.cpp | Vladimir-Lin/QtNetWidgets | e09339c47d40b65875f15bd0839e0bdf89951601 | [
"MIT"
] | null | null | null | src/NetWidgets/Widgets/nTldEditor.cpp | Vladimir-Lin/QtNetWidgets | e09339c47d40b65875f15bd0839e0bdf89951601 | [
"MIT"
] | null | null | null | src/NetWidgets/Widgets/nTldEditor.cpp | Vladimir-Lin/QtNetWidgets | e09339c47d40b65875f15bd0839e0bdf89951601 | [
"MIT"
] | null | null | null | #include <netwidgets.h>
N::TldEditor:: TldEditor ( QWidget * parent , Plan * p )
: TreeWidget ( parent , p )
, NetworkManager ( p )
{
WidgetClass ;
Configure ( ) ;
}
N::TldEditor::~TldEditor(void)
{
}
void N::TldEditor::Configure(voi... | 41.171053 | 61 | 0.388623 | Vladimir-Lin |
fdad58b919553a96e292c08df88a8af29d0a0cb6 | 1,264 | cpp | C++ | Fudl/easy/solved/Encryption Decryption of Enigma Machine.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 1 | 2022-03-16T08:56:31.000Z | 2022-03-16T08:56:31.000Z | Fudl/easy/solved/Encryption Decryption of Enigma Machine.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 2 | 2022-03-17T11:27:14.000Z | 2022-03-18T07:41:00.000Z | Fudl/easy/solved/Encryption Decryption of Enigma Machine.cpp | AhmedMostafa7474/Codingame-Solutions | da696a095c143c5d216bc06f6689ad1c0e25d0e0 | [
"MIT"
] | 6 | 2022-03-13T19:56:11.000Z | 2022-03-17T12:08:22.000Z | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
int main()
{
string operation;
getline(cin, operation);
int pseudo_random_number;
ci... | 25.28 | 78 | 0.544304 | AhmedMostafa7474 |
fdaff450fae58a320c147339e085c3fe07618ada | 4,968 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/IPEndPoint_Properties/CPP/ipendpoint_properties.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 3,294 | 2016-10-30T05:27:20.000Z | 2022-03-31T15:59:30.000Z | samples/snippets/cpp/VS_Snippets_Remoting/IPEndPoint_Properties/CPP/ipendpoint_properties.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 16,739 | 2016-10-28T19:41:29.000Z | 2022-03-31T22:38:48.000Z | samples/snippets/cpp/VS_Snippets_Remoting/IPEndPoint_Properties/CPP/ipendpoint_properties.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 6,701 | 2016-10-29T20:56:11.000Z | 2022-03-31T12:32:26.000Z | // System.Net.IPEndPoint.MaxPort; System.Net.IPEndPoint.MinPort;
// System.Net.IPEndPoint.AddressFamily; System.Net.IPEndPoint.IPEndPoint(long,int)
// System.Net.IPEndPoint.Address; System.Net.IPEndPoint.Port;
/*This program demonstrates the properties 'MaxPort', 'MinPort','Address','Port'
and 'AddressFamily' and a co... | 40.064516 | 116 | 0.665056 | BaruaSourav |
fdb88e251cd9269f4c7ee441c391c7eb1f7f181d | 1,715 | cpp | C++ | tests/ranges/wrappers.cpp | s0rav/spcppl | a17886c9082055490dab09c47a250accfadd8513 | [
"WTFPL"
] | 30 | 2015-04-19T17:04:33.000Z | 2022-03-22T13:26:53.000Z | tests/ranges/wrappers.cpp | s0rav/spcppl | a17886c9082055490dab09c47a250accfadd8513 | [
"WTFPL"
] | 4 | 2018-05-27T18:20:10.000Z | 2021-11-28T15:22:12.000Z | tests/ranges/wrappers.cpp | s0rav/spcppl | a17886c9082055490dab09c47a250accfadd8513 | [
"WTFPL"
] | 8 | 2016-10-28T16:46:05.000Z | 2021-02-24T16:49:20.000Z | #include <gtest/gtest.h>
#include <vector>
#include <spcppl/ranges/wrappers.hpp>
#include <spcppl/ranges/Range.hpp>
TEST(WrappersTest, Reversed) {
EXPECT_EQ(reversed(std::vector<int>{5, 7, 2, 3}), (std::vector<int>{3, 2, 7, 5}));
}
TEST(WrappersTest, Sorted) {
EXPECT_EQ(sorted(std::vector<int>{5, 7, 2, 3}), (std::v... | 25.597015 | 102 | 0.662974 | s0rav |
fdb9b06bf5f7c550eaf00083038d44ebe9096470 | 4,343 | hpp | C++ | libraries/fc/include/fc/container/flat.hpp | Laighno/evt | 90b94e831aebb62c6ad19ce59c9089e9f51cfd77 | [
"MIT"
] | 1,411 | 2018-04-23T03:57:30.000Z | 2022-02-13T10:34:22.000Z | libraries/fc/include/fc/container/flat.hpp | Zhang-Zexi/evt | e90fe4dbab4b9512d120c79f33ecc62791e088bd | [
"Apache-2.0"
] | 27 | 2018-06-11T10:34:42.000Z | 2019-07-27T08:50:02.000Z | libraries/fc/include/fc/container/flat.hpp | Zhang-Zexi/evt | e90fe4dbab4b9512d120c79f33ecc62791e088bd | [
"Apache-2.0"
] | 364 | 2018-06-09T12:11:53.000Z | 2020-12-15T03:26:48.000Z | #pragma once
#include <fc/variant.hpp>
#include <fc/container/flat_fwd.hpp>
#include <fc/container/container_detail.hpp>
#include <fc/crypto/hex.hpp>
namespace fc {
namespace raw {
template<typename Stream, typename T, typename A>
void
pack(Stream& s, const boost::container::vector<T, A>& value) {
FC_ASSERT(value... | 26.975155 | 119 | 0.638729 | Laighno |
fdbac7b8eb60f180a6ca5e891dbe15ee393486fd | 801 | cc | C++ | 0389_Find_the_Difference/0389.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0389_Find_the_Difference/0389.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0389_Find_the_Difference/0389.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null |
#include <string>
using std::string;
class Solution {
public:
char findTheDifference(const string s, const string t) {
size_t dict_s[26] = {0};
size_t dict_t[26] = {0};
for (const char ch : s) ++dict_s[ch - 'a'];
for (const char ch : t) ++dict_t[ch - 'a'];
for (size_t i = 0; i < 26; ++i)
... | 23.558824 | 68 | 0.569288 | LuciusKyle |
fdc16a9ddcdc7a213723934395290ff533153525 | 4,708 | hpp | C++ | include/lexer/Lexer.hpp | SimplyDanny/bitsy-llvm | 125e404388ef65847eac8cb533c5321a2289bb85 | [
"MIT"
] | 4 | 2021-01-07T10:29:49.000Z | 2021-07-17T22:10:54.000Z | include/lexer/Lexer.hpp | SimplyDanny/bitsy-llvm | 125e404388ef65847eac8cb533c5321a2289bb85 | [
"MIT"
] | null | null | null | include/lexer/Lexer.hpp | SimplyDanny/bitsy-llvm | 125e404388ef65847eac8cb533c5321a2289bb85 | [
"MIT"
] | 2 | 2021-02-07T21:15:20.000Z | 2021-07-17T22:10:55.000Z | #ifndef LEXER_HPP
#define LEXER_HPP
#include "lexer/Token.hpp"
#include "llvm/ADT/StringSwitch.h"
#include <functional>
#include <iterator>
#include <memory>
#include <optional>
#include <string>
#include <type_traits>
template <class InputIterator>
class Lexer : public std::iterator<std::input_iterator_tag, Token>... | 33.390071 | 97 | 0.618946 | SimplyDanny |
fdc5bfdbe96aa0f222ba2f7c68a1225e1bf52b25 | 4,835 | hpp | C++ | libs/ledger/include/ledger/storage_unit/storage_unit_client.hpp | baykaner/ledger | f45fbd49297a419e3a90a46e9aed0cfa65602109 | [
"Apache-2.0"
] | null | null | null | libs/ledger/include/ledger/storage_unit/storage_unit_client.hpp | baykaner/ledger | f45fbd49297a419e3a90a46e9aed0cfa65602109 | [
"Apache-2.0"
] | null | null | null | libs/ledger/include/ledger/storage_unit/storage_unit_client.hpp | baykaner/ledger | f45fbd49297a419e3a90a46e9aed0cfa65602109 | [
"Apache-2.0"
] | null | null | null | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... | 36.908397 | 97 | 0.706101 | baykaner |
fdc6621e2f738b0a2c93f23596b3172bab14487e | 1,977 | hpp | C++ | sprout/container/get_deep_internal.hpp | kariya-mitsuru/Sprout | 8274f34db498b02bff12277bac5416ea72e018cd | [
"BSL-1.0"
] | null | null | null | sprout/container/get_deep_internal.hpp | kariya-mitsuru/Sprout | 8274f34db498b02bff12277bac5416ea72e018cd | [
"BSL-1.0"
] | null | null | null | sprout/container/get_deep_internal.hpp | kariya-mitsuru/Sprout | 8274f34db498b02bff12277bac5416ea72e018cd | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2011-2017 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx... | 38.764706 | 112 | 0.70258 | kariya-mitsuru |
fdc6ddc3909e7f24bf93a655ebf075562f6b5a18 | 5,084 | cpp | C++ | samples/03_sdp/2019-20_kn/stacks/rpn.cpp | code-hunger/lecture-notes | 0200c57a4c2539b4d8b7cb172c2b6e4f5c689268 | [
"MIT"
] | 32 | 2016-11-24T01:40:21.000Z | 2021-11-01T19:24:22.000Z | samples/03_sdp/2019-20_kn/stacks/rpn.cpp | code-hunger/lecture-notes | 0200c57a4c2539b4d8b7cb172c2b6e4f5c689268 | [
"MIT"
] | 6 | 2016-10-15T05:57:00.000Z | 2021-08-13T12:29:24.000Z | samples/03_sdp/2019-20_kn/stacks/rpn.cpp | code-hunger/lecture-notes | 0200c57a4c2539b4d8b7cb172c2b6e4f5c689268 | [
"MIT"
] | 49 | 2016-01-26T13:36:02.000Z | 2022-03-16T10:24:41.000Z | #include <iostream>
#include <stack>
#include <cassert>
#include <vector>
#include <sstream>
bool isdigit (char c)
{
return c >= '0' && c <= '9';
}
int apply (char op, int x, int y)
{
switch (op)
{
case '+': return x+y;
case '*': return x*y;
default: assert (false);
}
retur... | 20.417671 | 66 | 0.428993 | code-hunger |
fdcbb9e33a74a8a0b0961d1f6963d5806d5f8896 | 997 | cpp | C++ | tests/Dogecoin/TWDogeTests.cpp | taha-husain/pp-wallet-core | 68862468398854cef2d194cad8498801afcc3344 | [
"MIT"
] | null | null | null | tests/Dogecoin/TWDogeTests.cpp | taha-husain/pp-wallet-core | 68862468398854cef2d194cad8498801afcc3344 | [
"MIT"
] | null | null | null | tests/Dogecoin/TWDogeTests.cpp | taha-husain/pp-wallet-core | 68862468398854cef2d194cad8498801afcc3344 | [
"MIT"
] | 1 | 2020-12-03T03:24:12.000Z | 2020-12-03T03:24:12.000Z | // Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "../interface/TWTestUtilities.h"
#include <PPTrus... | 45.318182 | 145 | 0.791374 | taha-husain |
fdcd4306f93d23ab3a6de17a15d56edffd128c4a | 4,921 | cpp | C++ | src/bbf_fix_file.cpp | trapexit/bbf | c57696e74dd87e00d3ac660eb3ee9423b6f55c89 | [
"0BSD"
] | 82 | 2016-12-05T22:58:48.000Z | 2022-03-21T12:38:19.000Z | src/bbf_fix_file.cpp | trapexit/bbf | c57696e74dd87e00d3ac660eb3ee9423b6f55c89 | [
"0BSD"
] | 7 | 2018-12-12T03:33:51.000Z | 2020-11-30T23:14:52.000Z | src/bbf_fix_file.cpp | trapexit/bbf | c57696e74dd87e00d3ac660eb3ee9423b6f55c89 | [
"0BSD"
] | 5 | 2019-07-10T17:39:55.000Z | 2021-07-17T21:47:31.000Z | /*
ISC License
Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PR... | 26.175532 | 74 | 0.555375 | trapexit |
fdce1591412dba7a60268b232e46262eb9f26acb | 5,172 | cpp | C++ | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_SysInfoClass.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | 1 | 2019-05-28T06:33:01.000Z | 2019-05-28T06:33:01.000Z | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_SysInfoClass.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_SysInfoClass.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | //
// FILE NAME: CIDMacroEng_SysInfoClass.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 02/20/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://... | 29.724138 | 84 | 0.490333 | eudora-jia |
fdd1f31279f6c08494f94939cbe42d4e27b68267 | 10,476 | cpp | C++ | SOURCES/sim/digi/gunsjink.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/sim/digi/gunsjink.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/sim/digi/gunsjink.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | #include "stdhdr.h"
#include "simveh.h"
#include "digi.h"
#include "object.h"
#include "simbase.h"
#include "airframe.h"
#include "team.h"
#include "aircrft.h"
#include "sms.h"
#define INIT_GUN_VEL 4500.0f //me123 changed from 3500.0F
extern float SimLibLastMajorFrameTime;
void DigitalBrain::GunsJinkCheck(void)
{
f... | 32.943396 | 200 | 0.473559 | IsraelyFlightSimulator |
fdd2c7bf730c3af1a54fb47ca81e2795b43c8b7a | 16,978 | cpp | C++ | src/FileContainer.cpp | ElliotAlexander/EDSAC-FORTRAN-Compiler | f5a14d0f4c42fcba5eb1d277cab4b8d700eab699 | [
"Apache-2.0"
] | null | null | null | src/FileContainer.cpp | ElliotAlexander/EDSAC-FORTRAN-Compiler | f5a14d0f4c42fcba5eb1d277cab4b8d700eab699 | [
"Apache-2.0"
] | null | null | null | src/FileContainer.cpp | ElliotAlexander/EDSAC-FORTRAN-Compiler | f5a14d0f4c42fcba5eb1d277cab4b8d700eab699 | [
"Apache-2.0"
] | null | null | null | #include "FileContainer.h"
/**
*
* Class FileContainer:
*
* Member Variables:
* std::string file_name; -> initialised in the constructor
* std::vector<std::string> -> loaded from file file_name in the constructor.
*
*
**/
// FileContainer::F... | 61.292419 | 207 | 0.570503 | ElliotAlexander |
fdd493d32f76a7ed6b8fa178d9fcc64a0da46888 | 2,889 | cpp | C++ | stacks-and-queues/queue-implementation-using-stacks.cpp | kanishkdudeja/cracking-the-coding-interview-solutions | b6b495eb838e3739fd09aaf1ea5a5a5eb15923d0 | [
"MIT"
] | 1 | 2019-12-29T17:47:53.000Z | 2019-12-29T17:47:53.000Z | stacks-and-queues/queue-implementation-using-stacks.cpp | kanishkdudeja/cracking-the-coding-interview-solutions | b6b495eb838e3739fd09aaf1ea5a5a5eb15923d0 | [
"MIT"
] | null | null | null | stacks-and-queues/queue-implementation-using-stacks.cpp | kanishkdudeja/cracking-the-coding-interview-solutions | b6b495eb838e3739fd09aaf1ea5a5a5eb15923d0 | [
"MIT"
] | null | null | null | /* Implement a Queue (FIFO) using 2 Stacks (LIFO)
Method 1 (By making enQueue operation costly): This method makes sure that oldest entered element is
always at the top of stack 1, so that deQueue operation just pops from stack1.
To put the element at top of stack1, stack2 is used.
enQueue(q, x)
1) While stack1 i... | 17.833333 | 101 | 0.642437 | kanishkdudeja |
fdd4964cc6e19703f63f2854dec0de25a2a2d478 | 989 | cpp | C++ | Customized-Build/il2cpp/Il2CppOutputProject/IL2CPP/libil2cpp/vm-utils/NativeDelegateMethodCache.cpp | cqtd/custom-il2cpp-build-pipeline-example | 9ec4973d98ddfcefee72b01225a3b7613312096b | [
"MIT"
] | 1 | 2022-03-28T07:59:17.000Z | 2022-03-28T07:59:17.000Z | Customized-Build/il2cpp/Il2CppOutputProject/IL2CPP/libil2cpp/vm-utils/NativeDelegateMethodCache.cpp | cqtd/custom-il2cpp-build-pipeline-example | 9ec4973d98ddfcefee72b01225a3b7613312096b | [
"MIT"
] | null | null | null | Customized-Build/il2cpp/Il2CppOutputProject/IL2CPP/libil2cpp/vm-utils/NativeDelegateMethodCache.cpp | cqtd/custom-il2cpp-build-pipeline-example | 9ec4973d98ddfcefee72b01225a3b7613312096b | [
"MIT"
] | 2 | 2022-03-24T19:58:31.000Z | 2022-03-24T22:55:43.000Z | #include "il2cpp-config.h"
#if !RUNTIME_TINY
#include "NativeDelegateMethodCache.h"
#include "os/Mutex.h"
namespace il2cpp
{
namespace utils
{
baselib::ReentrantLock NativeDelegateMethodCache::m_CacheMutex;
NativeDelegateMap NativeDelegateMethodCache::m_NativeDelegateMethods;
const VmMethod* NativeDeleg... | 28.257143 | 131 | 0.751264 | cqtd |
fdd6494a5c9ea4e7546efa4dd559c5d98be9614f | 2,192 | cc | C++ | day05/ex05/Form.cc | BimManager/cpp_piscine | 170cdb37a057bff5a5d1299d51a6dcfef469bfad | [
"MIT"
] | null | null | null | day05/ex05/Form.cc | BimManager/cpp_piscine | 170cdb37a057bff5a5d1299d51a6dcfef469bfad | [
"MIT"
] | null | null | null | day05/ex05/Form.cc | BimManager/cpp_piscine | 170cdb37a057bff5a5d1299d51a6dcfef469bfad | [
"MIT"
] | null | null | null | // Copyright 2020 kkozlov
#include <string>
#include <iostream>
#include "Form.h"
Form::Form(std::string const &name,
unsigned minGradeToSign,
unsigned minGradeToExecute,
std::string const &target) throw()
: name_(name) , minGradeToSign_(minGradeToSign),
minGradeToExecute_(... | 25.788235 | 74 | 0.671533 | BimManager |
fdda4badbd4738a5852cf2ad0007285c82b92690 | 17,015 | cc | C++ | programs/mctimings/mctimings.cc | rualso/kv_engine | 17680c38a77d3a67fda55f763cc2631f924ed42d | [
"BSD-3-Clause"
] | null | null | null | programs/mctimings/mctimings.cc | rualso/kv_engine | 17680c38a77d3a67fda55f763cc2631f924ed42d | [
"BSD-3-Clause"
] | null | null | null | programs/mctimings/mctimings.cc | rualso/kv_engine | 17680c38a77d3a67fda55f763cc2631f924ed42d | [
"BSD-3-Clause"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2017 Couchbase, 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
*
* h... | 34.866803 | 80 | 0.505848 | rualso |
fddcc50a16eccb727b556de2749bbb3f4f47376b | 5,536 | cc | C++ | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/bc_get_app_properties_request.cc | Sohei-Suzuki-Nexty/sdl_core | 68f082169e0a40fccd9eb0db3c83911c28870f07 | [
"BSD-3-Clause"
] | 249 | 2015-01-15T16:50:53.000Z | 2022-03-24T13:23:34.000Z | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/bc_get_app_properties_request.cc | Sohei-Suzuki-Nexty/sdl_core | 68f082169e0a40fccd9eb0db3c83911c28870f07 | [
"BSD-3-Clause"
] | 2,917 | 2015-01-12T16:17:49.000Z | 2022-03-31T11:57:47.000Z | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/bc_get_app_properties_request.cc | Sohei-Suzuki-Nexty/sdl_core | 68f082169e0a40fccd9eb0db3c83911c28870f07 | [
"BSD-3-Clause"
] | 306 | 2015-01-12T09:23:20.000Z | 2022-01-28T18:06:30.000Z | /*
Copyright (c) 2020, Ford Motor Company, Livio
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | 37.917808 | 79 | 0.748736 | Sohei-Suzuki-Nexty |
fddd0fa97b30ca9e0f8cb35a3252b3458570fc21 | 3,368 | cpp | C++ | common/Log.cpp | MaynardMiner/energiminer | 25fabd8293de254e62b6d5117a8c077c120124ec | [
"MIT"
] | null | null | null | common/Log.cpp | MaynardMiner/energiminer | 25fabd8293de254e62b6d5117a8c077c120124ec | [
"MIT"
] | null | null | null | common/Log.cpp | MaynardMiner/energiminer | 25fabd8293de254e62b6d5117a8c077c120124ec | [
"MIT"
] | null | null | null | /*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... | 25.134328 | 100 | 0.610154 | MaynardMiner |
fde0d375f28b846216645d07210a2389a7a18f58 | 9,665 | cpp | C++ | src/condor_utils/filesystem_remap.cpp | zhangzhehust/htcondor | e07510d62161f38fa2483b299196ef9a7b9f7941 | [
"Apache-2.0"
] | 1 | 2017-02-13T01:25:34.000Z | 2017-02-13T01:25:34.000Z | src/condor_utils/filesystem_remap.cpp | AmesianX/htcondor | 10aea32f1717637972af90459034d1543004cb83 | [
"Apache-2.0"
] | 1 | 2021-04-06T04:19:40.000Z | 2021-04-06T04:19:40.000Z | src/condor_utils/filesystem_remap.cpp | AmesianX/htcondor | 10aea32f1717637972af90459034d1543004cb83 | [
"Apache-2.0"
] | 2 | 2016-05-24T17:12:13.000Z | 2017-02-13T01:25:35.000Z | /***************************************************************
*
* Copyright (C) 1990-2011, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Yo... | 31.792763 | 160 | 0.66715 | zhangzhehust |
fde789f3bde884920d5184fb047ba1a61817cd56 | 13,463 | cpp | C++ | src/commonui/CNodeEdgePropertiesUI.cpp | wojtek48/qvge | 3c39128384a3ab3456bc559bda2e957e5bc814af | [
"MIT"
] | null | null | null | src/commonui/CNodeEdgePropertiesUI.cpp | wojtek48/qvge | 3c39128384a3ab3456bc559bda2e957e5bc814af | [
"MIT"
] | null | null | null | src/commonui/CNodeEdgePropertiesUI.cpp | wojtek48/qvge | 3c39128384a3ab3456bc559bda2e957e5bc814af | [
"MIT"
] | null | null | null | /*
This file is a part of
QVGE - Qt Visual Graph Editor
(c) 2016-2019 Ars L. Masiuk (ars.masiuk@gmail.com)
It can be used freely, maintaining the information above.
*/
#include <QInputDialog>
#include <QMessageBox>
#include "CAttributesEditorUI.h"
#include "CPropertyEditorUIBase.h"
#include "CNodeEdgePropertiesUI.h... | 25.449905 | 135 | 0.714997 | wojtek48 |
fde988d21be7b6ef5651632c1be04987542238f8 | 606 | cc | C++ | Part-II/Ch09/9.3.3/9.25.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | 1 | 2021-09-23T13:13:12.000Z | 2021-09-23T13:13:12.000Z | Part-II/Ch09/9.3.3/9.25.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | null | null | null | Part-II/Ch09/9.3.3/9.25.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main()
{
{
vector<int> vec { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
auto elem1 = vec.begin() + 2, elem2 = vec.begin() + 2;
elem1 = vec.erase(elem1, elem2);
for (auto &v: vec) {
cout << v << " ";
}
co... | 23.307692 | 62 | 0.410891 | RingZEROtlf |
fdeb4e989fe8830379629f873cd7d1c30e777d6b | 17,596 | cc | C++ | repos/ComponentRosJoystick/smartsoft/src-gen/ComponentRosJoystick.cc | skarvtech/uwrosys | c9e82e4496c5d334b53e835ca6a2d8c3c3a82dc4 | [
"Apache-2.0"
] | null | null | null | repos/ComponentRosJoystick/smartsoft/src-gen/ComponentRosJoystick.cc | skarvtech/uwrosys | c9e82e4496c5d334b53e835ca6a2d8c3c3a82dc4 | [
"Apache-2.0"
] | null | null | null | repos/ComponentRosJoystick/smartsoft/src-gen/ComponentRosJoystick.cc | skarvtech/uwrosys | c9e82e4496c5d334b53e835ca6a2d8c3c3a82dc4 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... | 36.734864 | 171 | 0.746874 | skarvtech |
fdf571cbf3745b06c7a985d99512bf853c0d87b2 | 12,639 | cpp | C++ | src/effects/SkColorCubeFilter.cpp | tmpvar/skia.cc | 6e36ba7bf19cc7597837bb0416882ad4d699916b | [
"Apache-2.0"
] | 3 | 2015-08-16T03:44:19.000Z | 2015-08-16T17:31:59.000Z | third_party/skia/src/effects/SkColorCubeFilter.cpp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | third_party/skia/src/effects/SkColorCubeFilter.cpp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkColorCubeFilter.h"
#include "SkColorPriv.h"
#include "SkOnce.h"
#include "SkOpts.h"
#include "SkReadBuffer.h"
#include "SkUnPreMultiply.h"
#include "SkWriteBuffer.... | 38.416413 | 99 | 0.662552 | tmpvar |
fdfa888bcb63bc22509d43a5a2e44fe9eef792d4 | 2,802 | cpp | C++ | Codeforces/EDU/Segment Tree/Sum.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | Codeforces/EDU/Segment Tree/Sum.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null | Codeforces/EDU/Segment Tree/Sum.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null | /****************************************************
* Template for coding contests *
* Author : Sanjeev Sharma *
* Email : thedevelopersanjeev@gmail.com *
*****************************************************/
#pragma GCC optimize("O3")
#pragma GCC optimize("... | 23.35 | 96 | 0.47359 | Code-With-Aagam |
a9007d06abceb1d5719325ef85ae1ee771867234 | 3,018 | cpp | C++ | src/PhysicalEntities/Characters/Enemies/Enemy.cpp | edusidsan/GameProg-OO | c74bedb6c592386a40eefbd61770184994a75aa6 | [
"MIT"
] | null | null | null | src/PhysicalEntities/Characters/Enemies/Enemy.cpp | edusidsan/GameProg-OO | c74bedb6c592386a40eefbd61770184994a75aa6 | [
"MIT"
] | null | null | null | src/PhysicalEntities/Characters/Enemies/Enemy.cpp | edusidsan/GameProg-OO | c74bedb6c592386a40eefbd61770184994a75aa6 | [
"MIT"
] | null | null | null |
#include "Enemy.hpp"
namespace OgrO // Namespace com o nome do jogo.
{
namespace PhysicalEntities // Namespace do Pacote Entities.
{
namespace Characters // Namespace do Pacote Personagens.
{
namespace Enemies // Namespace do Pacote Enemies.
{
// Constru... | 51.152542 | 318 | 0.474818 | edusidsan |
a902cfee6f0885ca8c4c5a44f5d5425588582219 | 757 | hpp | C++ | src/roq/samples/zeromq/strategy.hpp | roq-trading/roq-examples | 7b7d9508b624c7ec6d74e2fd0206796cf934263b | [
"BSD-3-Clause"
] | null | null | null | src/roq/samples/zeromq/strategy.hpp | roq-trading/roq-examples | 7b7d9508b624c7ec6d74e2fd0206796cf934263b | [
"BSD-3-Clause"
] | null | null | null | src/roq/samples/zeromq/strategy.hpp | roq-trading/roq-examples | 7b7d9508b624c7ec6d74e2fd0206796cf934263b | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2017-2022, Hans Erik Thrane */
#pragma once
#include <arpa/inet.h>
#include "roq/api.hpp"
#include "roq/client.hpp"
// note! thin wrappers around libzmq
#include "roq/samples/zeromq/zmq/context.hpp"
#include "roq/samples/zeromq/zmq/socket.hpp"
namespace roq {
namespace samples {
namespace zeromq {... | 19.410256 | 53 | 0.714663 | roq-trading |
a9045f9e0fb0defe3869a05acf4a63b3bf08a65f | 1,860 | cpp | C++ | test/training_data/plag_original_codes/dp_h_6221550_808_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | 13 | 2021-01-20T19:53:16.000Z | 2021-11-14T16:30:32.000Z | test/training_data/plag_original_codes/dp_h_6221550_808_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | test/training_data/plag_original_codes/dp_h_6221550_808_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | /*
引用元:https://atcoder.jp/contests/dp/tasks/dp_h
H - Grid 1Editorial
// ソースコードの引用元 : https://atcoder.jp/contests/dp/submissions/6221550
// 提出ID : 6221550
// 問題ID : dp_h
// コンテストID : dp
// ユーザID : xryuseix
// コード長 : 2238
// 実行時間 : 19
*/
#include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#incl... | 22.682927 | 78 | 0.499462 | xryuseix |
a907ac64e0a1b8f272e75afa3d08dc5eeb0f4f42 | 1,903 | cc | C++ | nn/simplenet/main/Simplenet.cc | research-note/Many-as-One | eb9520c30b4b2b944d4f3713aada256feaf322bc | [
"Apache-2.0"
] | null | null | null | nn/simplenet/main/Simplenet.cc | research-note/Many-as-One | eb9520c30b4b2b944d4f3713aada256feaf322bc | [
"Apache-2.0"
] | 4 | 2021-11-13T23:49:46.000Z | 2021-12-03T03:09:44.000Z | nn/simplenet/main/Simplenet.cc | research-note/Many-as-One | eb9520c30b4b2b944d4f3713aada256feaf322bc | [
"Apache-2.0"
] | 2 | 2021-11-13T03:45:19.000Z | 2021-11-13T03:47:42.000Z | /* Copyright 2021 The Many as One 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 ... | 28.402985 | 80 | 0.630583 | research-note |
a90a2e236f493055edc524d068f061a3d88f074c | 581 | cpp | C++ | rotate-image.cpp | 5ooo/LeetCode | 5f250cd38696f581e5c891b8977f6c27eea26ffa | [
"MIT"
] | null | null | null | rotate-image.cpp | 5ooo/LeetCode | 5f250cd38696f581e5c891b8977f6c27eea26ffa | [
"MIT"
] | null | null | null | rotate-image.cpp | 5ooo/LeetCode | 5f250cd38696f581e5c891b8977f6c27eea26ffa | [
"MIT"
] | null | null | null | class Solution {
public:
void rotate(vector<vector<int>>& matrix) {
int n = matrix.size();
for (int i = 0; i < n / 2; i++)
{
for (int j = i; j < n - i - 1; j++)
{
//A[i][j] -> A[j][n-1-i] -> A[n-1-i][n-1-j] -> A[n-1-j][i] -> A[i][j]
in... | 27.666667 | 85 | 0.349398 | 5ooo |
a90c0ad639940bfe3953ad0683c03bebad2f0616 | 11,888 | cpp | C++ | source/model/Model.cpp | sormo/simpleSDL | 79a830a013f911c4670c86ccf68bd068a887670d | [
"MIT"
] | null | null | null | source/model/Model.cpp | sormo/simpleSDL | 79a830a013f911c4670c86ccf68bd068a887670d | [
"MIT"
] | null | null | null | source/model/Model.cpp | sormo/simpleSDL | 79a830a013f911c4670c86ccf68bd068a887670d | [
"MIT"
] | null | null | null | #include "Model.h"
#include "OpenGL.h"
#include "model_generated.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "utils/Texture.h"
#include "utils/Shader.h"
#include "Common.h"
#include "CommonProject.h"
#include "TextureManager.h"
glm::mat4 Convert(const ModelData::Mat4 & m)
{
return gl... | 33.965714 | 189 | 0.672527 | sormo |
a90f9d7637d0ef9210d781ad9adf49453fa08067 | 317 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/game/CityAreaType.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/game/CityAreaType.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/game/CityAreaType.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
namespace game {
enum class CityAreaType : uint32_t
{
Undefined = 0,
PublicZone = 1,
SafeZone = 2,
RestrictedZone = 3,
DangerousZone = 4,
};
} // namespace game
} // namespace RED4ext
| 16.684211 | 57 | 0.678233 | jackhumbert |
a911e7c5a1bfe9267b42dd3ca297bf4fd789b61b | 2,662 | hpp | C++ | src/main/include/communications/PublishNode.hpp | MattSa952073/PubSubLub | a20bd82d72f3d5a1599234d638afd578259f3553 | [
"BSD-2-Clause"
] | null | null | null | src/main/include/communications/PublishNode.hpp | MattSa952073/PubSubLub | a20bd82d72f3d5a1599234d638afd578259f3553 | [
"BSD-2-Clause"
] | null | null | null | src/main/include/communications/PublishNode.hpp | MattSa952073/PubSubLub | a20bd82d72f3d5a1599234d638afd578259f3553 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2018-2019 FRC Team 3512. All Rights Reserved.
#pragma once
#include <atomic>
#include <condition_variable>
#include <string>
#include <thread>
#include <vector>
#include <frc/circular_buffer.h>
#include "communications/PublishNodeBase.hpp"
namespace frc3512 {
/**
* A communication layer that can... | 26.888889 | 80 | 0.654395 | MattSa952073 |
a91368140c5cc9f9ac4178c80b0985b4212cf130 | 29,900 | cpp | C++ | src/armnn/Runtime.cpp | Srivathsav-max/armnn-clone | af2daa6526623c91ee97f7141be4d1b07de92a48 | [
"MIT"
] | 1 | 2022-03-31T18:21:59.000Z | 2022-03-31T18:21:59.000Z | src/armnn/Runtime.cpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | src/armnn/Runtime.cpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "Runtime.hpp"
#include <armnn/Version.hpp>
#include <armnn/BackendRegistry.hpp>
#include <armnn/BackendHelper.hpp>
#include <armnn/Logging.hpp>
#include <armnn/utility/Timer.hpp>
#include <armnn/backends/... | 40.242261 | 119 | 0.621605 | Srivathsav-max |
a913bc466d97d9bf64475a01ab64256980fa1294 | 6,670 | hpp | C++ | src/base/util/TimeSystemConverter.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | src/base/util/TimeSystemConverter.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | src/base/util/TimeSystemConverter.hpp | supalogix/GMAT | eea9987ef0978b3e6702e70b587a098b2cbce14e | [
"Apache-2.0"
] | null | null | null | //$Id$
//------------------------------------------------------------------------------
// TimeSystemConverter
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2017 United States Government... | 36.25 | 96 | 0.610945 | supalogix |
a9165d97ffaa13234978dbbe69f1b17ac2ee4cbd | 22,130 | cpp | C++ | 3.Auction/Static-Bin/scv-main.cpp | Parwatsingh/OptSmart | 0564abdd04e7bc37a3586982a1d7ca5a97be88d5 | [
"Apache-2.0"
] | 1 | 2021-03-13T08:55:13.000Z | 2021-03-13T08:55:13.000Z | 3.Auction/Static-Bin/scv-main.cpp | Parwatsingh/OptSmart | 0564abdd04e7bc37a3586982a1d7ca5a97be88d5 | [
"Apache-2.0"
] | null | null | null | 3.Auction/Static-Bin/scv-main.cpp | Parwatsingh/OptSmart | 0564abdd04e7bc37a3586982a1d7ca5a97be88d5 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <thread>
#include "Util/Timer.cpp"
#include "Contract/SimpleAuctionSCV.cpp"
#include "Util/FILEOPR.cpp"
#include <unistd.h>
#include <list>
#include <vector>
#include <atomic>
#include <condition_variable>
#include <set>
#include <algorithm>
#define maxThreads 128
#define maxBObj 5000
#de... | 30.524138 | 124 | 0.534388 | Parwatsingh |
a9181f05a86adc49ff9697c7d7d99a3ef2d7f872 | 939 | cpp | C++ | src/cpp/uml/signal.cpp | nemears/uml-cpp | d72c8b5506f391f2b6a5696972ff8da7ec10bd21 | [
"MIT"
] | null | null | null | src/cpp/uml/signal.cpp | nemears/uml-cpp | d72c8b5506f391f2b6a5696972ff8da7ec10bd21 | [
"MIT"
] | 1 | 2022-02-25T18:14:21.000Z | 2022-03-10T08:59:55.000Z | src/cpp/uml/signal.cpp | nemears/uml-cpp | d72c8b5506f391f2b6a5696972ff8da7ec10bd21 | [
"MIT"
] | null | null | null | #include "uml/signal.h"
#include "uml/interface.h"
#include "uml/operation.h"
#include "uml/manifestation.h"
#include "uml/stereotype.h"
#include "uml/behavior.h"
#include "uml/dataType.h"
#include "uml/association.h"
#include "uml/deployment.h"
using namespace UML;
Set<Property, Signal>& Signal::getOwnedAttributesSe... | 21.837209 | 67 | 0.707135 | nemears |
a91a44a393e834ff5c1f02ae15d203733cb04796 | 1,857 | cpp | C++ | libraries/lnn/src/NeuronInitializer.cpp | langelog/lnn | aaa6e4847886649ee78337237fbe01521a994136 | [
"MIT"
] | null | null | null | libraries/lnn/src/NeuronInitializer.cpp | langelog/lnn | aaa6e4847886649ee78337237fbe01521a994136 | [
"MIT"
] | null | null | null | libraries/lnn/src/NeuronInitializer.cpp | langelog/lnn | aaa6e4847886649ee78337237fbe01521a994136 | [
"MIT"
] | null | null | null | #include "NeuronInitializer.h"
void Initializators::ConstantInitializer(double *weigths, unsigned int n_values, double value) {
for(unsigned int i=0; i<n_values; i++) {
weigths[i] = value;
}
}
void Initializators::NormalDistributionInitializer(double *weights, unsigned int n_values, default_random_eng... | 32.578947 | 152 | 0.677975 | langelog |
a91a9d4c6aa6bf35c63cea531c34b537431fd9dc | 4,583 | hpp | C++ | 3rdparty/stout/include/stout/os/process.hpp | zagrev/mesos | eefec152dffc4977183089b46fbfe37dbd19e9d7 | [
"Apache-2.0"
] | 4,537 | 2015-01-01T03:26:40.000Z | 2022-03-31T03:07:00.000Z | 3rdparty/stout/include/stout/os/process.hpp | zagrev/mesos | eefec152dffc4977183089b46fbfe37dbd19e9d7 | [
"Apache-2.0"
] | 227 | 2015-01-29T02:21:39.000Z | 2022-03-29T13:35:50.000Z | 3rdparty/stout/include/stout/os/process.hpp | zagrev/mesos | eefec152dffc4977183089b46fbfe37dbd19e9d7 | [
"Apache-2.0"
] | 1,992 | 2015-01-05T12:29:19.000Z | 2022-03-31T03:07:07.000Z | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed und... | 25.747191 | 78 | 0.629937 | zagrev |
a91f5eae1d62155313a958230e905ffee7110b9a | 2,395 | cpp | C++ | OpenCVDemo/sobel_edge.cpp | sumandeepb/OpenCVDemo2.4 | 0a1d4ef6cef913a5bc3de928327a1678794fcf8e | [
"Apache-2.0"
] | null | null | null | OpenCVDemo/sobel_edge.cpp | sumandeepb/OpenCVDemo2.4 | 0a1d4ef6cef913a5bc3de928327a1678794fcf8e | [
"Apache-2.0"
] | null | null | null | OpenCVDemo/sobel_edge.cpp | sumandeepb/OpenCVDemo2.4 | 0a1d4ef6cef913a5bc3de928327a1678794fcf8e | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2012-2018 Sumandeep Banerjee, sumandeep.banerjee@gmail.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0... | 34.214286 | 115 | 0.721921 | sumandeepb |
a91fbb85a53efdf53fc96181a577fc97d870379b | 11,058 | cpp | C++ | TripPrep/Read_Activity.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | TripPrep/Read_Activity.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | TripPrep/Read_Activity.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Read_Activity.cpp - Read the Activity File
//*********************************************************
#include "TripPrep.hpp"
//---------------------------------------------------------
// Read_Activity
//-------------------------------------------------... | 27.036675 | 108 | 0.570356 | kravitz |
a9222c686d83fb4dd6644b7109300184a01ede33 | 8,628 | cc | C++ | src/QmlControls/QmlObjectListModel.cc | uav-operation-system/qgroundcontrol | c24029938e88d7a45a04f4e4e64bf588f595afed | [
"Apache-2.0"
] | 2,133 | 2015-01-04T03:10:22.000Z | 2022-03-31T01:51:07.000Z | src/QmlControls/QmlObjectListModel.cc | uav-operation-system/qgroundcontrol | c24029938e88d7a45a04f4e4e64bf588f595afed | [
"Apache-2.0"
] | 6,166 | 2015-01-02T18:47:42.000Z | 2022-03-31T03:44:10.000Z | src/QmlControls/QmlObjectListModel.cc | uav-operation-system/qgroundcontrol | c24029938e88d7a45a04f4e4e64bf588f595afed | [
"Apache-2.0"
] | 2,980 | 2015-01-01T03:09:18.000Z | 2022-03-31T04:13:55.000Z | /****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... | 26.878505 | 120 | 0.6137 | uav-operation-system |
a9228b75912aec7497a8c3d41725d5f40d5cca6c | 2,163 | cpp | C++ | src/tolua/LuaImGui.cpp | TerensTare/tnt | 916067a9bf697101afb1d0785112aa34014e8126 | [
"MIT"
] | 29 | 2020-04-22T01:31:30.000Z | 2022-02-03T12:21:29.000Z | src/tolua/LuaImGui.cpp | TerensTare/tnt | 916067a9bf697101afb1d0785112aa34014e8126 | [
"MIT"
] | 6 | 2020-04-17T10:31:56.000Z | 2021-09-10T12:07:22.000Z | src/tolua/LuaImGui.cpp | TerensTare/tnt | 916067a9bf697101afb1d0785112aa34014e8126 | [
"MIT"
] | 7 | 2020-03-13T01:50:41.000Z | 2022-03-06T23:44:29.000Z | // This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#include <sol/sol.hpp>
#include "tolua/LuaImGui.hpp"
#include "imgui/ImGui.hpp"
void tnt::lua::loadImGui(sol::state_view lua_)
{
auto ... | 35.459016 | 95 | 0.624595 | TerensTare |
a92473dcfc041be42ed1281ed2d4ee8cd47660e6 | 1,259 | cpp | C++ | project/Harman_T500/idlecurrentpage.cpp | happyrabbit456/Qt5_dev | 1812df2f04d4b6d24eaf0195ae25d4c67d4f3da2 | [
"MIT"
] | null | null | null | project/Harman_T500/idlecurrentpage.cpp | happyrabbit456/Qt5_dev | 1812df2f04d4b6d24eaf0195ae25d4c67d4f3da2 | [
"MIT"
] | null | null | null | project/Harman_T500/idlecurrentpage.cpp | happyrabbit456/Qt5_dev | 1812df2f04d4b6d24eaf0195ae25d4c67d4f3da2 | [
"MIT"
] | null | null | null | #include "idlecurrentpage.h"
#include <QGridLayout>
#include <QVBoxLayout>
#include "testform.h"
#include "currentform.h"
#include "mainwindow.h"
IdleCurrentPage::IdleCurrentPage(QWidget *parent)
{
currentForm=qobject_cast<TestForm*>(parent);
// setTitle(QString::fromLocal8Bit("关机电流测试"));
QFont font;
... | 25.693878 | 97 | 0.702145 | happyrabbit456 |
a926983810a119de6841da246c3b28ec38d4e45e | 880 | cpp | C++ | android-30/javax/xml/xpath/XPathFactoryConfigurationException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/javax/xml/xpath/XPathFactoryConfigurationException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/javax/xml/xpath/XPathFactoryConfigurationException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../JString.hpp"
#include "../../../JThrowable.hpp"
#include "./XPathFactoryConfigurationException.hpp"
namespace javax::xml::xpath
{
// Fields
// QJniObject forward
XPathFactoryConfigurationException::XPathFactoryConfigurationException(QJniObject obj) : javax::xml::xpath::XPathException(obj) {}
... | 30.344828 | 131 | 0.748864 | YJBeetle |
a9284fbfd3b12d64acf1b5ae32823bb6ccc32984 | 1,336 | cpp | C++ | ros_ws/src/intro_pkg1/src/TempSensor.cpp | TheProjectsGuy/Learning-ROS | 612f8eeeed0d3308cfff9084dbf7dda4732ec1ae | [
"MIT"
] | 2 | 2019-08-14T11:46:45.000Z | 2020-05-13T21:03:40.000Z | ros_ws/src/intro_pkg1/src/TempSensor.cpp | TheProjectsGuy/Learning-ROS | 612f8eeeed0d3308cfff9084dbf7dda4732ec1ae | [
"MIT"
] | 1 | 2018-12-07T18:54:09.000Z | 2018-12-08T13:18:44.000Z | ros_ws/src/intro_pkg1/src/TempSensor.cpp | TheProjectsGuy/Learning-ROS | 612f8eeeed0d3308cfff9084dbf7dda4732ec1ae | [
"MIT"
] | null | null | null | #include "ros/ros.h"
#include "std_msgs/Header.h"
#include "sensor_msgs/Temperature.h"
int main(int argc, char **argv) {
// Initialize the ROS node
ros::init(argc, argv, "TemperatureSensor", ros::init_options::AnonymousName);
// Node handler
ros::NodeHandle nodeHandler;
// Publisher object
ros:... | 32.585366 | 105 | 0.614521 | TheProjectsGuy |
a92da91d699517c4ae2ef6a0627f450aaa3b6abe | 5,810 | hpp | C++ | include/ecoro/when_any.hpp | msvetkin/ecoro | 3d292f0d8bf16d57dcacdf6868c81669bdcb15e7 | [
"MIT"
] | 4 | 2021-10-24T00:50:22.000Z | 2022-01-10T11:53:40.000Z | include/ecoro/when_any.hpp | msvetkin/ecoro | 3d292f0d8bf16d57dcacdf6868c81669bdcb15e7 | [
"MIT"
] | 3 | 2022-02-01T20:14:15.000Z | 2022-02-02T19:29:48.000Z | include/ecoro/when_any.hpp | msvetkin/ecoro | 3d292f0d8bf16d57dcacdf6868c81669bdcb15e7 | [
"MIT"
] | null | null | null | // Copyright 2021 - present, Mikhail Svetkin
// All rights reserved.
//
// For the license information refer to LICENSE
#ifndef ECORO_WHEN_ANY_HPP
#define ECORO_WHEN_ANY_HPP
#include "ecoro/awaitable_traits.hpp"
#include "ecoro/detail/invoke_or_pass.hpp"
#include "ecoro/task.hpp"
#include <tuple>
#include <variant>
... | 26.651376 | 78 | 0.694836 | msvetkin |
a9304e2cd440e9351966cca74c8df4a1362279da | 729 | cpp | C++ | 04_mp11_with_values/main.cpp | BorisSchaeling/boost-meta-programming-2020 | 1bb70e88070953daa4bc19f91f891b43583df06e | [
"BSL-1.0"
] | null | null | null | 04_mp11_with_values/main.cpp | BorisSchaeling/boost-meta-programming-2020 | 1bb70e88070953daa4bc19f91f891b43583df06e | [
"BSL-1.0"
] | null | null | null | 04_mp11_with_values/main.cpp | BorisSchaeling/boost-meta-programming-2020 | 1bb70e88070953daa4bc19f91f891b43583df06e | [
"BSL-1.0"
] | null | null | null | #include <boost/mp11/mpl.hpp>
#include <type_traits>
template <int I>
using int_ = std::integral_constant<int, I>;
using namespace boost::mp11;
template <typename Sequence, typename Value>
struct index_of_impl
{
using index = mp_find<Sequence, Value>;
using size = mp_size<Sequence>;
using index_smaller_than_size ... | 23.516129 | 63 | 0.720165 | BorisSchaeling |
a933008a9bdfb54d6295a005cbd838b10ea79a6f | 472 | cpp | C++ | src/atcoder/abc211/c/sol_0.cpp | kagemeka/competitive-programming | c70fe481bcd518f507b885fc9234691d8ce63171 | [
"MIT"
] | 1 | 2021-07-11T03:20:10.000Z | 2021-07-11T03:20:10.000Z | src/atcoder/abc211/c/sol_0.cpp | kagemeka/competitive-programming | c70fe481bcd518f507b885fc9234691d8ce63171 | [
"MIT"
] | 39 | 2021-07-10T05:21:09.000Z | 2021-12-15T06:10:12.000Z | src/atcoder/abc211/c/sol_0.cpp | kagemeka/competitive-programming | c70fe481bcd518f507b885fc9234691d8ce63171 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int mod = (int)1e9 + 7;
string s; cin >> s;
string t = "$chokudai";
map<char, int> ind;
for (
int i = 0;
i < (int)t.size();
i++
) {
ind[t[i]] = i;
}
map<char, int> cnt;
cnt['$']... | 15.225806 | 31 | 0.466102 | kagemeka |
a935c326dcfd44a395c61a7eba62a08a3f340ca3 | 2,875 | hpp | C++ | implementations/Metal/pipeline_state.hpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 41 | 2016-03-25T18:14:37.000Z | 2022-01-20T11:16:52.000Z | implementations/Metal/pipeline_state.hpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 4 | 2016-05-05T22:08:01.000Z | 2021-12-10T13:06:55.000Z | implementations/Metal/pipeline_state.hpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 9 | 2016-05-23T01:51:25.000Z | 2021-08-21T15:32:37.000Z | #ifndef AGPU_METAL_PIPELINE_STATE_HPP
#define AGPU_METAL_PIPELINE_STATE_HPP
#include "device.hpp"
#include "pipeline_command_state.hpp"
namespace AgpuMetal
{
class AMtlComputePipelineBuilder;
class AMtlGraphicsPipelineBuilder;
class AGPUMTLPipelineStateExtra
{
public:
virtual ~AGPUMTLPipelineStateExtra() {}... | 25.219298 | 155 | 0.737043 | rsayers |
a9393254e80008724c7ebebede9caf3dc7a1d303 | 112 | hpp | C++ | tests/mygtest.hpp | fretboardfreak/audiowav | ea7f8b5e0f34557f9fdf2a459320976739647395 | [
"Apache-2.0"
] | 20 | 2016-02-01T13:07:45.000Z | 2020-08-30T18:59:39.000Z | tests/mygtest.hpp | fretboardfreak/audiowav | ea7f8b5e0f34557f9fdf2a459320976739647395 | [
"Apache-2.0"
] | null | null | null | tests/mygtest.hpp | fretboardfreak/audiowav | ea7f8b5e0f34557f9fdf2a459320976739647395 | [
"Apache-2.0"
] | 4 | 2018-05-13T19:05:28.000Z | 2021-12-29T18:08:46.000Z | /* A simple wrapper to suppress all warnings from gtest.h */
#pragma GCC system_header
#include "gtest/gtest.h"
| 28 | 60 | 0.758929 | fretboardfreak |
a939ade4483227aa19a35cc587b363ac97506583 | 5,391 | cpp | C++ | lib/backend/cpu_x86.cpp | ptillet/neo-ica | f7290219f49169d4cd51c9e58b2b8ee95aeda543 | [
"MIT"
] | 8 | 2016-12-18T13:31:17.000Z | 2021-11-03T09:31:14.000Z | lib/backend/cpu_x86.cpp | ptillet/DSHF-ICA | f7290219f49169d4cd51c9e58b2b8ee95aeda543 | [
"MIT"
] | 1 | 2017-08-16T06:42:33.000Z | 2017-08-18T22:14:09.000Z | lib/backend/cpu_x86.cpp | ptillet/DSHF-ICA | f7290219f49169d4cd51c9e58b2b8ee95aeda543 | [
"MIT"
] | 3 | 2017-07-03T08:44:48.000Z | 2018-08-30T06:54:10.000Z | /* cpu_x86.cpp
*
* Author : Alexander J. Yee
* Date Created : 04/12/2014
* Last Modified : 04/12/2014
*
*/
// Dependencies
#include <iostream>
#include <cstring>
#if _WIN32
#include <Windows.h>
#include <intrin.h>
#else
#include <cpuid.h>
#endif
#include "neo_ica/backend/cpu_x86.h"
namespace n... | 25.671429 | 98 | 0.523836 | ptillet |
a93cab4362153db35a3b95a592b642826bc2aada | 441 | cpp | C++ | SysLib/Network/Data/AB_Data.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | SysLib/Network/Data/AB_Data.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | SysLib/Network/Data/AB_Data.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// AB_Data.cpp - network link A->B access classes
//*********************************************************
#include "AB_Data.hpp"
//---------------------------------------------------------
// AB_Key constructor
//-----------------------------------------... | 29.4 | 63 | 0.326531 | kravitz |
a93d28ecf46e8e53fa636c0b11369a3800a91a1c | 6,352 | cpp | C++ | herald/src/datatype/signal_characteristic_data.cpp | w-liam-mcnair/herald-for-cpp | cc01c9364c69e4015542ea632efe184a4add9e86 | [
"Apache-2.0"
] | null | null | null | herald/src/datatype/signal_characteristic_data.cpp | w-liam-mcnair/herald-for-cpp | cc01c9364c69e4015542ea632efe184a4add9e86 | [
"Apache-2.0"
] | null | null | null | herald/src/datatype/signal_characteristic_data.cpp | w-liam-mcnair/herald-for-cpp | cc01c9364c69e4015542ea632efe184a4add9e86 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
//
#include "herald/datatype/signal_characteristic_data.h"
#include "herald/ble/ble_sensor_configuration.h"
#include <vector>
#include <optional>
namespace herald {
namespace datatype {
namespace SignalCharacteristicData {
using n... | 33.787234 | 120 | 0.687343 | w-liam-mcnair |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.