hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00a5389a8939ec667314c40addf56e1b1cb02493 | 28,558 | cpp | C++ | src/coreclr/jit/importer_vectorization.cpp | kejxu/runtime | 906146aba64a9c14bcc77cffa5f540ead31cd4a7 | [
"MIT"
] | null | null | null | src/coreclr/jit/importer_vectorization.cpp | kejxu/runtime | 906146aba64a9c14bcc77cffa5f540ead31cd4a7 | [
"MIT"
] | null | null | null | src/coreclr/jit/importer_vectorization.cpp | kejxu/runtime | 906146aba64a9c14bcc77cffa5f540ead31cd4a7 | [
"MIT"
] | null | null | null | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "jitpch.h"
#ifdef _MSC_VER
#pragma hdrstop
#endif
//------------------------------------------------------------------------
// importer_vectorization.cpp
//
// This file i... | 37.925631 | 120 | 0.606275 | kejxu |
00a611b66e97f4d0f3b10198cc4ae33aacdb2caa | 724 | cpp | C++ | sys/fs/util/dirbuf_add.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 15 | 2020-05-08T06:21:58.000Z | 2021-12-11T18:10:43.000Z | sys/fs/util/dirbuf_add.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 11 | 2020-05-08T06:46:37.000Z | 2021-03-30T05:46:03.000Z | sys/fs/util/dirbuf_add.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 5 | 2020-08-31T17:05:03.000Z | 2021-12-08T07:09:00.000Z | #include <fs/util.h>
#include <cstddef>
#include <cstring>
#include <dirent.h>
int
dirbuf_add(dirent **buf, size_t *remain, ino_t ino, off_t off,
unsigned char type, const char *name)
{
const size_t align = alignof(dirent);
const size_t dirent_noname = offsetof(dirent, d_name);
const size_t name_max = *remain ... | 25.857143 | 67 | 0.668508 | apexrtos |
00a6bfb518ff2110564ce7cbeb1f5a0d21c3f751 | 1,679 | cxx | C++ | IdListToString/main.cxx | robertmaynard/Sandbox | 724c67fd924c29630a49f8501fd9df7a2bbb1ed8 | [
"BSD-2-Clause"
] | 9 | 2015-01-10T04:31:50.000Z | 2019-03-04T13:55:08.000Z | IdListToString/main.cxx | robertmaynard/Sandbox | 724c67fd924c29630a49f8501fd9df7a2bbb1ed8 | [
"BSD-2-Clause"
] | 2 | 2016-10-19T12:56:47.000Z | 2017-06-02T13:55:35.000Z | IdListToString/main.cxx | robertmaynard/Sandbox | 724c67fd924c29630a49f8501fd9df7a2bbb1ed8 | [
"BSD-2-Clause"
] | 5 | 2015-01-05T15:52:50.000Z | 2018-02-14T18:08:19.000Z |
#include <vtkNew.h>
#include "convert.h"
#include <sys/time.h>
#include <algorithm>
#include <numeric>
void random_fill(vtkIdList* list, int max_count, int max_value)
{
//srand on time
srand (time(NULL));
//start random seed
timeval currentTime;
gettimeofday(¤tTime, NULL);
vtkIdType size = 1 + (... | 24.333333 | 97 | 0.66349 | robertmaynard |
00a7937a3572efeed6b27e280e09db524b533373 | 5,692 | cpp | C++ | openexrid/Mask.cpp | MercenariesEngineering/openidmask | c7b2da1de1fbac8a4362839427bc13fde6a399c0 | [
"MIT"
] | 120 | 2016-02-19T10:58:34.000Z | 2022-03-20T12:13:28.000Z | openexrid/Mask.cpp | MercenariesEngineering/openexrid | f52e9c3417aab63d6c66e29cf7304d723bd55300 | [
"MIT"
] | 9 | 2016-04-15T07:52:12.000Z | 2021-06-28T07:41:57.000Z | openexrid/Mask.cpp | MercenariesEngineering/openidmask | c7b2da1de1fbac8a4362839427bc13fde6a399c0 | [
"MIT"
] | 21 | 2016-04-13T11:48:09.000Z | 2020-01-23T13:38:43.000Z | /*
*
***
*****
********************* Mercenaries Engineering SARL
***************** Copyright (C) 2016
*************
********* http://www.mercenaries-engineering.com
***********
**** ****
** **
*/
... | 28.318408 | 109 | 0.617709 | MercenariesEngineering |
00ad17966b6f2d7a580a642290e68f89253b7ec3 | 3,712 | cpp | C++ | module/mpc-be/SRC/src/filters/renderer/VideoRenderers/CPUUsage.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/filters/renderer/VideoRenderers/CPUUsage.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/filters/renderer/VideoRenderers/CPUUsage.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | /*
* (C) 2013-2018 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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.
... | 29.228346 | 110 | 0.717942 | 1aq |
00b2efd06cd56a1f88f29d529b461715f705497b | 2,070 | hpp | C++ | lib/io/Input.hpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | 1 | 2016-11-15T09:04:12.000Z | 2016-11-15T09:04:12.000Z | lib/io/Input.hpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | null | null | null | lib/io/Input.hpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 maldicion069
*
* Authors: Cristian Rodríguez Bernal <ccrisrober@gmail.com>
*
* This file is part of MonkeyBrushPlusPlus
* <https://github.com/maldicion069/monkeybrushplusplus>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser... | 23.793103 | 80 | 0.729469 | maldicion069 |
00b7e1243aa38f26f5fd456a2a6b9619f3a8d9b9 | 16,380 | cpp | C++ | IMa/update_t_RY.cpp | jaredgk/IMgui-electron | b72ce318dcc500664bd264d8c1578723f61aa769 | [
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | IMa/update_t_RY.cpp | jaredgk/IMgui-electron | b72ce318dcc500664bd264d8c1578723f61aa769 | [
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | IMa/update_t_RY.cpp | jaredgk/IMgui-electron | b72ce318dcc500664bd264d8c1578723f61aa769 | [
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | /*IMa2p 2009-2015 Jody Hey, Rasmus Nielsen, Sang Chul Choi, Vitor Sousa, Janeen Pisciotta, and Arun Sethuraman */
#undef GLOBVARS
#include "imamp.hpp"
#include "update_gtree_common.hpp"
#include "updateassignment.hpp"
/*********** LOCAL STUFF **********/
static struct genealogy_weights holdallgweight_t_RY;
static s... | 31.560694 | 160 | 0.573382 | jaredgk |
00beece22dffd42c0610e574d6e37930fa8dddb0 | 997 | cpp | C++ | archive/1/dwa_slowa.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | archive/1/dwa_slowa.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | archive/1/dwa_slowa.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | //#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <cstring>
using namespace std;
typedef long long unsigned U;
int main()
{
/*
cout.sync_with_stdio(false);
U _;
cin >> _;
string a, b;
cin >> a >> b;
U n;
cin >> n;
for(U i = 0; i < n; ++i) ... | 16.080645 | 46 | 0.374122 | Aleshkev |
00bfb7c799bde6e379d9e81f8baffb881c6d97d4 | 7,033 | cc | C++ | content/browser/devtools/devtools_renderer_channel.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/devtools/devtools_renderer_channel.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-03-13T10:32:53.000Z | 2019-03-13T11:05:30.000Z | content/browser/devtools/devtools_renderer_channel.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/devtools/devtools_renderer_channel.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "content/browser/devto... | 37.811828 | 79 | 0.756007 | Yannic |
00bfceb3a37b721723f1462bd8b36e24b522007c | 198 | hpp | C++ | archive/CairoUtil.hpp | irishpatrick/sdl-game | 23ff8330fe2aaa765119df40d62e50570f606f07 | [
"MIT-0",
"MIT"
] | null | null | null | archive/CairoUtil.hpp | irishpatrick/sdl-game | 23ff8330fe2aaa765119df40d62e50570f606f07 | [
"MIT-0",
"MIT"
] | null | null | null | archive/CairoUtil.hpp | irishpatrick/sdl-game | 23ff8330fe2aaa765119df40d62e50570f606f07 | [
"MIT-0",
"MIT"
] | null | null | null | #pragma once
#include <cairo.h>
#include <cstdint>
namespace engine
{
class CairoUtil
{
public:
static void drawVector(cairo_t*, uint32_t, uint32_t, uint32_t, double);
};
} | 15.230769 | 79 | 0.651515 | irishpatrick |
00c060f0fe5aca9d5fd8d8c546de0ec4264135c2 | 14,178 | cc | C++ | test/bezierSubdivision.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | 1 | 2021-12-02T09:25:32.000Z | 2021-12-02T09:25:32.000Z | test/bezierSubdivision.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | null | null | null | test/bezierSubdivision.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | null | null | null | #include <crv.h>
#include <crvBezier.h>
#include <crvSnap.h>
#include <gmi_analytic.h>
#include <gmi_null.h>
#include <apfMDS.h>
#include <apfMesh2.h>
#include <apf.h>
#include <PCU.h>
#include <mth.h>
#include <mth_def.h>
#include <pcu_util.h>
/*
* This contains all the tests for bezier subdivision
*/
void vertFun... | 28.817073 | 91 | 0.59543 | cwsmith |
00c0808d175ce4b836d0597f66c3e501b6964ac2 | 5,763 | cpp | C++ | tests/Dynamic/GainColoredCompressorFilter.cpp | apohl79/AudioTK | 05ac241b0bc6a8f841d93257b4d81e5961b1f627 | [
"BSD-3-Clause"
] | 10 | 2018-05-17T15:29:05.000Z | 2021-12-19T22:26:08.000Z | tests/Dynamic/GainColoredCompressorFilter.cpp | apohl79/AudioTK | 05ac241b0bc6a8f841d93257b4d81e5961b1f627 | [
"BSD-3-Clause"
] | null | null | null | tests/Dynamic/GainColoredCompressorFilter.cpp | apohl79/AudioTK | 05ac241b0bc6a8f841d93257b4d81e5961b1f627 | [
"BSD-3-Clause"
] | 2 | 2020-04-21T13:43:57.000Z | 2020-04-28T19:10:14.000Z | /**
* \ file GainColoredCompressorFilter.cpp
*/
#include <ATK/Dynamic/GainColoredCompressorFilter.h>
#include <ATK/Core/InPointerFilter.h>
#include <ATK/Core/OutPointerFilter.h>
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_NO_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/math/constants/constants.hpp>... | 28.112195 | 141 | 0.725317 | apohl79 |
00c360bb1f1401d970e227967685e6fa65092e5f | 6,023 | cc | C++ | src/main.cc | FlyAlCode/FlightSim | 800b46ebf87449408cc908c59cb5e18bea5863c3 | [
"Apache-2.0"
] | null | null | null | src/main.cc | FlyAlCode/FlightSim | 800b46ebf87449408cc908c59cb5e18bea5863c3 | [
"Apache-2.0"
] | null | null | null | src/main.cc | FlyAlCode/FlightSim | 800b46ebf87449408cc908c59cb5e18bea5863c3 | [
"Apache-2.0"
] | null | null | null | #include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <fstream>
#include <string>
#include <memory>
#include "camera.h"
#include "ground.h"
#include <stdio.h>
#include <stdlib.h>
double const PI = 3.1415926;
void DrawMask(const cv::Mat &src, const cv::Mat &mask, ... | 32.912568 | 117 | 0.560518 | FlyAlCode |
00c39216be647d3b43936243cec4a03200425647 | 565 | cpp | C++ | src/mango/core/wire/request/SnippetTextRequest.cpp | vero-zhang/mango | 0cc8d34a8b729151953df41a7e9cd26324345d44 | [
"MIT"
] | null | null | null | src/mango/core/wire/request/SnippetTextRequest.cpp | vero-zhang/mango | 0cc8d34a8b729151953df41a7e9cd26324345d44 | [
"MIT"
] | null | null | null | src/mango/core/wire/request/SnippetTextRequest.cpp | vero-zhang/mango | 0cc8d34a8b729151953df41a7e9cd26324345d44 | [
"MIT"
] | null | null | null | #include <mango/core/runtime/Runner.h>
#include "mango/core/wire/request/SnippetTextRequest.h"
#include "mango/core/wire/response/SnippetTextResponse.h"
MANGO_NS_BEGIN
SnippetTextRequest::SnippetTextRequest
( const std::string& keyword
, const std::string& name
, const std::string& multilineArg)
: key... | 23.541667 | 62 | 0.734513 | vero-zhang |
00c4ed79dcdef2a8be7c6512041002de0f26323e | 5,857 | cpp | C++ | 2022_CONTROL WORK 1/Project1/Fraction.cpp | Leonchik1945/spbu_homework_2021-2022 | 84139157b40c5864531e8275c97eaadef9619378 | [
"Apache-2.0"
] | null | null | null | 2022_CONTROL WORK 1/Project1/Fraction.cpp | Leonchik1945/spbu_homework_2021-2022 | 84139157b40c5864531e8275c97eaadef9619378 | [
"Apache-2.0"
] | null | null | null | 2022_CONTROL WORK 1/Project1/Fraction.cpp | Leonchik1945/spbu_homework_2021-2022 | 84139157b40c5864531e8275c97eaadef9619378 | [
"Apache-2.0"
] | null | null | null | #include "Fraction.h"
long long Nod(long long a, long long b)
{
if (b == 0)
{
return (a);
}
else
{
return (Nod(b, a % b));
}
}
Fraction::Fraction(long long numerator, long long denominator) : numerator(numerator), denominator(denominator) {}
Fraction::Fraction(const Fraction& f) : numerator(f.numerator), d... | 21.221014 | 236 | 0.656138 | Leonchik1945 |
00c739e3f434cbe007a216b58205ac579c72c9bf | 4,872 | hh | C++ | scipy/special/ellint_carlson_cpp_lite/_rg.hh | lorentzenchr/scipy | 393a05ee927883ad6316b7092c851afea8f16816 | [
"BSD-3-Clause"
] | 9,095 | 2015-01-02T18:24:23.000Z | 2022-03-31T20:35:31.000Z | scipy/special/ellint_carlson_cpp_lite/_rg.hh | lorentzenchr/scipy | 393a05ee927883ad6316b7092c851afea8f16816 | [
"BSD-3-Clause"
] | 11,500 | 2015-01-01T01:15:30.000Z | 2022-03-31T23:07:35.000Z | scipy/special/ellint_carlson_cpp_lite/_rg.hh | lorentzenchr/scipy | 393a05ee927883ad6316b7092c851afea8f16816 | [
"BSD-3-Clause"
] | 5,838 | 2015-01-05T11:56:42.000Z | 2022-03-31T23:21:19.000Z | #ifndef ELLINT_RG_GENERIC_GUARD
#define ELLINT_RG_GENERIC_GUARD
#include <algorithm>
#include <iterator>
#include <complex>
#include "ellint_typing.hh"
#include "ellint_argcheck.hh"
#include "ellint_common.hh"
#include "ellint_carlson.hh"
#define CHECK_STATUS_OR_FAIL() \
do { \
if ( status_tmp != ExitStatus::su... | 24.730964 | 79 | 0.59688 | lorentzenchr |
00c8fca2829018f992225203c6cb298cfdadfb92 | 6,943 | hpp | C++ | libraries/wasm/wasm_context.hpp | chenxinhua2018/nchain | 9c694d91dc48fc548b88a0016497c34c9a1cbaaa | [
"MIT"
] | 1 | 2020-10-22T23:03:50.000Z | 2020-10-22T23:03:50.000Z | src/vm/wasm/wasm_context.hpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | null | null | null | src/vm/wasm/wasm_context.hpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | null | null | null | #pragma once
#include <stdint.h>
#include <string>
#include <vector>
#include <queue>
#include <map>
#include <chrono>
#include "tx/universaltx.h"
#include "wasm/types/inline_transaction.hpp"
#include "wasm/wasm_interface.hpp"
#include "wasm/datastream.hpp"
#include "wasm/wasm_trace.hpp"
#include "eosio/vm/allocator.... | 41.08284 | 143 | 0.620913 | chenxinhua2018 |
00ca8fc4349e9be6e22e0fa6a1e3f11e64cc7555 | 2,666 | cpp | C++ | tests/contraction_test.cpp | vaidehi8913/VieCut | f4bd2b468689cb8e5e11f18f1bb21468a119083d | [
"MIT"
] | 22 | 2020-06-12T07:26:45.000Z | 2022-03-03T17:03:08.000Z | tests/contraction_test.cpp | vaidehi8913/VieCut | f4bd2b468689cb8e5e11f18f1bb21468a119083d | [
"MIT"
] | 4 | 2019-09-04T10:39:39.000Z | 2020-05-26T05:25:35.000Z | tests/contraction_test.cpp | vaidehi8913/VieCut | f4bd2b468689cb8e5e11f18f1bb21468a119083d | [
"MIT"
] | 3 | 2020-12-11T13:43:45.000Z | 2021-11-09T15:08:58.000Z | /******************************************************************************
* contraction_test.h
*
* Source of VieCut.
*
******************************************************************************
* Copyright (C) 2018 Alexander Noe <alexander.noe@univie.ac.at>
*
* Published under the MIT license in the L... | 29.296703 | 79 | 0.582521 | vaidehi8913 |
00ccaaa47e8e6d3f55574562e5c9701d58674fd7 | 1,318 | cpp | C++ | Crimsonite/Crimsonite/source/render/MatrixMaths.cpp | Fletcher-Morris/Crimsonite-Engine | 515e6bd8994a324380fe831e6e568509695153f3 | [
"MIT"
] | null | null | null | Crimsonite/Crimsonite/source/render/MatrixMaths.cpp | Fletcher-Morris/Crimsonite-Engine | 515e6bd8994a324380fe831e6e568509695153f3 | [
"MIT"
] | null | null | null | Crimsonite/Crimsonite/source/render/MatrixMaths.cpp | Fletcher-Morris/Crimsonite-Engine | 515e6bd8994a324380fe831e6e568509695153f3 | [
"MIT"
] | null | null | null | #include "MatrixMaths.h"
#include "../ecs/Transform.h"
#include "../ecs/components/Camera.h"
glm::mat4 CreateModelMatrix(Transform * _transform)
{
glm::mat4 matrix = glm::mat4(1.0f);
glm::vec3 rot = _transform->GetWorldRotation();
matrix = glm::translate(matrix, _transform->GetWorldPosition());
matrix = glm::rotat... | 34.684211 | 183 | 0.725341 | Fletcher-Morris |
00d3ba54f6f408ee1baccdd0d66ce4fd57e7dab5 | 1,703 | cpp | C++ | Semantic/SymbolTable/SymbolTable.cpp | mori-ahk/Sky | b8b27a3d5e63905c95d2305ee931821737a56d12 | [
"MIT"
] | 1 | 2020-04-29T02:11:42.000Z | 2020-04-29T02:11:42.000Z | Semantic/SymbolTable/SymbolTable.cpp | mori-ahk/Sky | b8b27a3d5e63905c95d2305ee931821737a56d12 | [
"MIT"
] | null | null | null | Semantic/SymbolTable/SymbolTable.cpp | mori-ahk/Sky | b8b27a3d5e63905c95d2305ee931821737a56d12 | [
"MIT"
] | null | null | null | //
// Created by Morteza Ahmadi on 2020-03-05.
//
#include "SymbolTable.h"
#include "../Error/Error.h"
void Semantic::SymbolTable::addClass(std::string &className, Class *_class) {
if (classes.find(className) != classes.end())
throw Semantic::Err::DuplicateClassDecl(className);
classes[className] = _... | 36.234043 | 106 | 0.688784 | mori-ahk |
00d48a907eeefaae3fe86553e606541c83d32153 | 6,531 | cpp | C++ | src/osvr/ResetYaw/ResetYaw.cpp | stephengroat/OSVR-Core | 35e0967b18c8d6cb4caa152ebcbcb6cc473c9bf1 | [
"Apache-2.0"
] | 369 | 2015-03-08T03:12:41.000Z | 2022-02-08T22:15:39.000Z | src/osvr/ResetYaw/ResetYaw.cpp | DavidoRotho/OSVR-Core | b2fbb44e7979d9ebdf4bd8f00267cc267edbb465 | [
"Apache-2.0"
] | 486 | 2015-03-09T13:29:00.000Z | 2020-10-16T00:41:26.000Z | src/osvr/ResetYaw/ResetYaw.cpp | DavidoRotho/OSVR-Core | b2fbb44e7979d9ebdf4bd8f00267cc267edbb465 | [
"Apache-2.0"
] | 166 | 2015-03-08T12:03:56.000Z | 2021-12-03T13:56:21.000Z | /** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 ... | 30.236111 | 115 | 0.696524 | stephengroat |
00d53e351dd5743ebcd117c09543e6a7dec9989b | 1,165 | cpp | C++ | 115_DistinctSubsequences.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | 115_DistinctSubsequences.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | 115_DistinctSubsequences.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | /****************************************************************
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relative posi... | 41.607143 | 262 | 0.438627 | kun2012 |
00d76b16befd0c5f779e45bf3df994a109fdf6af | 4,940 | cpp | C++ | src/messages/serializer.cpp | jaspersong/Project_CS-4500 | eba9ca138a2845d457c72562d6792bb72c4fe99c | [
"MIT"
] | null | null | null | src/messages/serializer.cpp | jaspersong/Project_CS-4500 | eba9ca138a2845d457c72562d6792bb72c4fe99c | [
"MIT"
] | null | null | null | src/messages/serializer.cpp | jaspersong/Project_CS-4500 | eba9ca138a2845d457c72562d6792bb72c4fe99c | [
"MIT"
] | null | null | null | /**
* Name: Snowy Chen, Joe Song
* Date: 22 March 2020
* Section: Jason Hemann, MR 11:45-1:25
* Email: chen.xinu@husky.neu.edu, song.jo@husky.neu.edu
*/
// Lang::Cpp
#include <cassert>
#include <cstring>
#include "serializer.h"
Serializer::Serializer(size_t starting_size) {
this->buffer = new unsigned char[s... | 24.949495 | 80 | 0.674696 | jaspersong |
00dc884056ca4a23568c5273ca38c3767da6389c | 1,894 | cpp | C++ | src/gui/netlist_watcher/netlist_watcher.cpp | fengjixuchui/hal | 7781a929214977cf1393281a1efc3e404191eba7 | [
"MIT"
] | null | null | null | src/gui/netlist_watcher/netlist_watcher.cpp | fengjixuchui/hal | 7781a929214977cf1393281a1efc3e404191eba7 | [
"MIT"
] | null | null | null | src/gui/netlist_watcher/netlist_watcher.cpp | fengjixuchui/hal | 7781a929214977cf1393281a1efc3e404191eba7 | [
"MIT"
] | null | null | null | #include "netlist_watcher/netlist_watcher.h"
#include "gui_globals.h"
netlist_watcher::netlist_watcher(QObject* parent) : QObject(parent)
{
m_has_netlist_unsaved_changes = false;
connect(&g_graph_relay, &graph_relay::gate_event, this, &netlist_watcher::handle_gate_event);
connect(&g_graph_relay, &graph_r... | 28.268657 | 129 | 0.782471 | fengjixuchui |
00e0433befdba7565f18b0f2fb23b4261b581b4a | 974 | cpp | C++ | software/src/master/src/kernel/Vca_IPeek.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | src/kernel/Vca_IPeek.cpp | MichaelJCaruso/vision-software-src-master | 12b1b4f12a7531fe6e3cbb6861b40ac8e1985b92 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/master/src/kernel/Vca_IPeek.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /**
* @file
* Provides definition for IPeek interface.
*/
#define Vca_IPeek
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
**... | 19.098039 | 74 | 0.370637 | c-kuhlman |
00e1e1eb456c6077d808708ea4a67c5ac4af9492 | 3,653 | cpp | C++ | test/ssc_test/cmod_grid_test.cpp | daniel-thom/ssc | 0012cf4e6a6ce3b3a7fe71e762d5ebc4808412ca | [
"BSD-3-Clause"
] | null | null | null | test/ssc_test/cmod_grid_test.cpp | daniel-thom/ssc | 0012cf4e6a6ce3b3a7fe71e762d5ebc4808412ca | [
"BSD-3-Clause"
] | null | null | null | test/ssc_test/cmod_grid_test.cpp | daniel-thom/ssc | 0012cf4e6a6ce3b3a7fe71e762d5ebc4808412ca | [
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include "cmod_grid_test.h"
TEST_F(CMGrid, SingleYearHourly_cmod_grid) {
grid_default_60_min(data);
// Run with fixed output
int errors = run_module(data, "grid");
EXPECT_FALSE(errors);
if (!errors)
{
ssc_number_t capacity_factor, annual_energy_pre_interconnect, annual_energy_interc... | 39.27957 | 99 | 0.803723 | daniel-thom |
00e7418a63eea90d4710d80b149e5ec02ce5a367 | 594 | hpp | C++ | callgraph/detail/from_to_connector.hpp | anthony-arnold/callgraph | 1d7fede6c31b9d9a0fc7f1b2358cb7204aff4e94 | [
"BSD-2-Clause"
] | 2 | 2020-12-04T11:20:44.000Z | 2022-01-08T10:24:49.000Z | callgraph/detail/from_to_connector.hpp | anthony-arnold/callgraph | 1d7fede6c31b9d9a0fc7f1b2358cb7204aff4e94 | [
"BSD-2-Clause"
] | null | null | null | callgraph/detail/from_to_connector.hpp | anthony-arnold/callgraph | 1d7fede6c31b9d9a0fc7f1b2358cb7204aff4e94 | [
"BSD-2-Clause"
] | null | null | null | // callgraph/detail/from_to_connector.hpp
// License: BSD-2-Clause
#ifndef CALLGRAPH_DETAIL_FROM_TO_CONNECTOR_HPP
#define CALLGRAPH_DETAIL_FROM_TO_CONNECTOR_HPP
#include <callgraph/detail/base_connector.hpp>
#ifndef NO_DOC
namespace callgraph {
namespace detail {
template <typename T, size_t From, size_t... | 25.826087 | 60 | 0.70202 | anthony-arnold |
00e8912ce9cbe1f9011e3074d95b341886d6cebb | 3,613 | cpp | C++ | lib/Transforms/BlockSeparator.cpp | compor/Atrox | d6e893f0c91764c58e198ccf316096b0ec9f7d90 | [
"MIT"
] | null | null | null | lib/Transforms/BlockSeparator.cpp | compor/Atrox | d6e893f0c91764c58e198ccf316096b0ec9f7d90 | [
"MIT"
] | null | null | null | lib/Transforms/BlockSeparator.cpp | compor/Atrox | d6e893f0c91764c58e198ccf316096b0ec9f7d90 | [
"MIT"
] | null | null | null | //
//
//
#include "Atrox/Transforms/BlockSeparator.hpp"
#include "IteratorRecognition/Analysis/IteratorRecognition.hpp"
#include "llvm/IR/BasicBlock.h"
// using llvm::BasicBlock
#include "llvm/IR/Instructions.h"
// using llvm::BranchInst
#include "llvm/IR/Dominators.h"
// using llvm::DominatorTree
#include "llvm/... | 27.165414 | 77 | 0.634376 | compor |
00eb99d3077ec0ca45c02dead7db417983b885d0 | 49,323 | cpp | C++ | ds/security/cryptoapi/ui/wizards/certrequestercontext.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/security/cryptoapi/ui/wizards/certrequestercontext.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/security/cryptoapi/ui/wizards/certrequestercontext.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "wzrdpvk.h"
#include "certca.h"
#include "cautil.h"
#include "CertRequesterContext.h"
//--------------------------------------------------------------------------------
// Machine context and local context now use the same code to build the CSP list:
HRESULT BuildCSPList(CERT_WIZARD_INFO *... | 36.00219 | 140 | 0.561158 | npocmaka |
00f3236832c39fe11d14eba4cc6a3c4ef88d8ce1 | 106 | cpp | C++ | InlineFunction/inline_functions.cpp | clemaitre58/LessonsCpp | a385b30c9ca970f0be68a781a55cfe409058aa05 | [
"MIT"
] | null | null | null | InlineFunction/inline_functions.cpp | clemaitre58/LessonsCpp | a385b30c9ca970f0be68a781a55cfe409058aa05 | [
"MIT"
] | null | null | null | InlineFunction/inline_functions.cpp | clemaitre58/LessonsCpp | a385b30c9ca970f0be68a781a55cfe409058aa05 | [
"MIT"
] | 5 | 2020-04-11T20:19:27.000Z | 2020-04-14T04:20:19.000Z | #include "inline_function.h"
namespace inline_function {
int f2(const int & b) {
return b + 2;
}
}
| 10.6 | 28 | 0.650943 | clemaitre58 |
00f37d7fcff45d0055be0dcd39b51c78b43f1bff | 2,645 | hpp | C++ | irob_utils/include/irob_utils/pose.hpp | BenGab/irob-saf | 3a0fee98239bd935aa99c9d9526eb9b4cfc8963c | [
"MIT"
] | null | null | null | irob_utils/include/irob_utils/pose.hpp | BenGab/irob-saf | 3a0fee98239bd935aa99c9d9526eb9b4cfc8963c | [
"MIT"
] | null | null | null | irob_utils/include/irob_utils/pose.hpp | BenGab/irob-saf | 3a0fee98239bd935aa99c9d9526eb9b4cfc8963c | [
"MIT"
] | null | null | null | /*
* pose.hpp
*
* Author(s): Tamas D. Nagy
* Created on: 2016-10-27
*
* Class to store and make calculations on a robot arm,
* including the angle of the grippers.
*
*/
#ifndef IROB_POSE_HPP_
#define IROB_POSE_HPP_
#include <iostream>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/Pose.h... | 27.552083 | 84 | 0.675992 | BenGab |
00f7543a6d3bb24b59da222ffc6530c3b8203b5b | 11,829 | cpp | C++ | src/solvers/gecode/branchers/printers.cpp | castor-software/unison | 9f8caf78230f956a57b50a327f8d1dca5839bf64 | [
"BSD-3-Clause"
] | 88 | 2016-09-27T15:20:07.000Z | 2022-03-24T15:23:06.000Z | src/solvers/gecode/branchers/printers.cpp | castor-software/unison | 9f8caf78230f956a57b50a327f8d1dca5839bf64 | [
"BSD-3-Clause"
] | 55 | 2017-02-14T15:21:03.000Z | 2021-09-11T11:12:25.000Z | src/solvers/gecode/branchers/printers.cpp | castor-software/unison | 9f8caf78230f956a57b50a327f8d1dca5839bf64 | [
"BSD-3-Clause"
] | 10 | 2016-11-22T15:03:46.000Z | 2020-07-13T21:34:31.000Z | /*
* Main authors:
* Roberto Castaneda Lozano <rcas@acm.org>
*
* This file is part of Unison, see http://unison-code.github.io
*
* Copyright (c) 2016, RISE SICS AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... | 41.505263 | 81 | 0.510863 | castor-software |
00f8ee486d4ba99bb23fafc09b7e6bf10f4165f7 | 23,401 | cc | C++ | gazebo/common/Mesh.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-07-14T19:36:51.000Z | 2020-04-01T06:47:59.000Z | gazebo/common/Mesh.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2017-07-20T21:04:49.000Z | 2017-10-19T19:32:38.000Z | gazebo/common/Mesh.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012-2016 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 25.271058 | 80 | 0.524465 | otamachan |
00fed53ddd8627733c2a7af5922dfb3cd3de868e | 4,491 | cpp | C++ | CsPlayback/Source/CsPlayback/Public/Managers/Playback/CsConsoleCommand_Manager_Playback.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsPlayback/Source/CsPlayback/Public/Managers/Playback/CsConsoleCommand_Manager_Playback.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsPlayback/Source/CsPlayback/Public/Managers/Playback/CsConsoleCommand_Manager_Playback.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, Inc. All rights reserved.
#include "Managers/Playback/CsConsoleCommand_Manager_Playback.h"
#include "CsPlayback.h"
// Library
#include "Library/CsLibrary_String.h"
#include "ConsoleCommand/CsLibrary_ConsoleCommand.h"
#include "Library/CsLibrary_Valid.h"
#include "Managers/Playb... | 26.263158 | 227 | 0.701403 | closedsum |
2e0047ba2a64dfec0600572a88b1dab5192ed2d2 | 1,151 | cpp | C++ | answers/leetcode/Course Schedule/Course Schedule.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | 3 | 2015-09-04T21:32:31.000Z | 2020-12-06T00:37:32.000Z | answers/leetcode/Course Schedule/Course Schedule.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | answers/leetcode/Course Schedule/Course Schedule.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | //@type Depth-first Search Breadth-first Search Graph Topological Sort
//@result 34 / 34 test cases passed. Status: Accepted Runtime: 340 ms Submitted: 2 minutes ago You are here! Your runtime beats 18.56% of cpp submissions.
class Solution {
public:
bool canFinish(int numCourses, vector<pair<int, int>>& prerequis... | 34.878788 | 154 | 0.652476 | FeiZhan |
2e020e92764220368bb0d69be82d6a01daafd9bb | 2,797 | cpp | C++ | tools/llir-nm/nm.cpp | nandor/genm-opt | b3347d508fff707837d1dc8232487ebfe157fe2a | [
"MIT"
] | 13 | 2020-06-25T18:26:54.000Z | 2021-02-16T03:14:38.000Z | tools/llir-nm/nm.cpp | nandor/genm-opt | b3347d508fff707837d1dc8232487ebfe157fe2a | [
"MIT"
] | 3 | 2020-07-01T01:39:47.000Z | 2022-01-24T23:47:12.000Z | tools/llir-nm/nm.cpp | nandor/genm-opt | b3347d508fff707837d1dc8232487ebfe157fe2a | [
"MIT"
] | 2 | 2021-03-11T05:08:09.000Z | 2021-07-17T23:36:17.000Z | // This file if part of the llir-opt project.
// Licensing information can be found in the LICENSE file.
// (C) 2018 Nandor Licker. All rights reserved.
#include <llvm/Support/CommandLine.h>
#include <llvm/Support/FileSystem.h>
#include <llvm/Support/InitLLVM.h>
#include <llvm/Support/MemoryBuffer.h>
#include <llvm/Su... | 28.540816 | 80 | 0.532356 | nandor |
2e0248ed36e354be4559edf74ad6f329a90c293a | 1,613 | cc | C++ | ceee/ie/plugin/bho/events_funnel_unittest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | ceee/ie/plugin/bho/events_funnel_unittest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | null | null | null | ceee/ie/plugin/bho/events_funnel_unittest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Unit tests for EventsFunnel.
#include "base/json/json_writer.h"
#include "base/values.h"
#include "ceee/ie/common/ceee_module_util.h"
#include "... | 30.433962 | 74 | 0.743955 | Gitman1989 |
2e0291cdbfd04525931fa716a2d277b6793cab84 | 17,411 | cpp | C++ | JHSeng's work/report/src/USBCore.cpp | JHSeng/ros_experiment | d5ec652e8f2d79e76b896b69757090d953ff6653 | [
"MIT"
] | null | null | null | JHSeng's work/report/src/USBCore.cpp | JHSeng/ros_experiment | d5ec652e8f2d79e76b896b69757090d953ff6653 | [
"MIT"
] | null | null | null | JHSeng's work/report/src/USBCore.cpp | JHSeng/ros_experiment | d5ec652e8f2d79e76b896b69757090d953ff6653 | [
"MIT"
] | null | null | null | #include "USBAPI.h"
#include "PluggableUSB.h"
#include <stdlib.h>
#if defined(USBCON)
/**脉冲生成计数器,用于跟踪每种脉冲类型剩余的毫秒数*/
#define TX_RX_LED_PULSE_MS 100
volatile u8 TxLEDPulse; /** <数据Tx LED脉冲剩余的毫秒数*/
volatile u8 RxLEDPulse; /** <剩余的毫秒数用于数据接收LED脉冲*/
extern const u16 STRING_LANGUAGE[] PROGMEM;
extern const u8 STRING_PRODUCT[]... | 31.035651 | 155 | 0.60031 | JHSeng |
2e04d61885cdbc57fa7a44e574ed97f4826d3f4f | 3,063 | cpp | C++ | VVGL/src/GLContextWindowBacking.cpp | mrRay/VVISF-GL | 96b00da11e4497da304041ea2a5ffc6e3a8c9454 | [
"BSD-3-Clause"
] | 24 | 2019-01-17T17:56:18.000Z | 2022-02-27T19:57:13.000Z | VVGL/src/GLContextWindowBacking.cpp | mrRay/VVISF-GL | 96b00da11e4497da304041ea2a5ffc6e3a8c9454 | [
"BSD-3-Clause"
] | 6 | 2019-01-17T17:17:12.000Z | 2020-06-19T11:27:50.000Z | VVGL/src/GLContextWindowBacking.cpp | mrRay/VVISF-GL | 96b00da11e4497da304041ea2a5ffc6e3a8c9454 | [
"BSD-3-Clause"
] | 2 | 2020-12-25T04:57:31.000Z | 2021-03-02T22:05:31.000Z | #include "GLContextWindowBacking.hpp"
#if defined(VVGL_SDK_WIN)
namespace VVGL {
const TCHAR* GLCONTEXTWINDOWBACKING_WNDCLASSNAME = _T("GLCONTEXTWINDOWBACKING_WNDCLASSNAME");
static const TCHAR* GLCONTEXTWINDOWBACKING_PROPERTY = _T("GLCONTEXTWINDOWBACKING_PROPERTY");
static bool GLContex... | 31.90625 | 107 | 0.711721 | mrRay |
2e07012b6ccf4565ad0591026233b490894a32b9 | 2,318 | cpp | C++ | esp32/airpapyrus/CCS811Sensor.cpp | ciffelia/airpapyrus | 4e6642025d6b1e81210c63f3cae46e4e361804ea | [
"MIT"
] | null | null | null | esp32/airpapyrus/CCS811Sensor.cpp | ciffelia/airpapyrus | 4e6642025d6b1e81210c63f3cae46e4e361804ea | [
"MIT"
] | null | null | null | esp32/airpapyrus/CCS811Sensor.cpp | ciffelia/airpapyrus | 4e6642025d6b1e81210c63f3cae46e4e361804ea | [
"MIT"
] | null | null | null | #include "CCS811Sensor.hpp"
#include "Constants.hpp"
#include "Logger.hpp"
CCS811Sensor::CCS811Sensor()
: ccs811(Constants::GPIO::Address::CCS811)
{
}
void CCS811Sensor::reset() {
pinMode(Constants::GPIO::Pin::CCS811_RESET, OUTPUT);
digitalWrite(Constants::GPIO::Pin::CCS811_RESET, 0);
delay(10);
digitalWr... | 22.950495 | 95 | 0.694133 | ciffelia |
2e08233eba05439eed938035df117b2cf5280ae8 | 462 | cpp | C++ | 519_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 519_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 519_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int vec_sum=0;
int temp1_sum=0;
int temp2_sum=0;
for(int i=0;i<n;i++)
{
int x;
cin>>x;
vec_sum+=x;
}
for(int i=0;i<n-1;i++)
{
int x;
cin>>x;
temp1_sum+=x;
}
for(int i=0;i<n-2;i++)
... | 14.903226 | 37 | 0.480519 | onexmaster |
2e0b8c9b9baa9cd6501e2376d31757d25d948f27 | 6,650 | cpp | C++ | src/caffe/layers/softmax_noisy_label_loss_layer.cpp | gnina/caffe | 59b3451cd54ae106de3335876ba25f68b9553098 | [
"Intel",
"BSD-2-Clause"
] | 1 | 2016-06-09T16:44:58.000Z | 2016-06-09T16:44:58.000Z | src/caffe/layers/softmax_noisy_label_loss_layer.cpp | gnina/caffe | 59b3451cd54ae106de3335876ba25f68b9553098 | [
"Intel",
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/softmax_noisy_label_loss_layer.cpp | gnina/caffe | 59b3451cd54ae106de3335876ba25f68b9553098 | [
"Intel",
"BSD-2-Clause"
] | 3 | 2016-02-10T17:38:44.000Z | 2018-10-14T07:44:19.000Z | #include <algorithm>
#include <functional>
#include <cfloat>
#include <vector>
#include <iostream>
#include <utility>
#include "caffe/layers/softmax_noisy_label_loss_layer.hpp"
#include "caffe/filler.hpp"
namespace caffe {
template <typename Dtype>
void SoftmaxWithNoisyLabelLossLayer<Dtype>::LayerSetUp(
const v... | 35.185185 | 80 | 0.633233 | gnina |
2e0dbbebabdba63e6f61765387565af2e0bc7be3 | 10,536 | cc | C++ | chrome/browser/ash/power/auto_screen_brightness/model_config_loader_impl_unittest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-10-18T02:33:40.000Z | 2020-10-18T02:33:40.000Z | chrome/browser/ash/power/auto_screen_brightness/model_config_loader_impl_unittest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-05-17T16:28:52.000Z | 2021-05-21T22:42:22.000Z | chrome/browser/ash/power/auto_screen_brightness/model_config_loader_impl_unittest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "chrome/browser/ash/power/auto_screen_brightness/model_config_loader_impl.h... | 30.017094 | 85 | 0.676348 | DamieFC |
2e1139f3fd96af61c9eb61cbbc0eea294d26f404 | 4,661 | hh | C++ | include/snow/types/slot_mask.hh | nilium/libsnow-common | dff60ce529cdbe13ccf1f94756a78214c8f9d09d | [
"BSL-1.0"
] | 1 | 2015-10-01T20:10:05.000Z | 2015-10-01T20:10:05.000Z | include/snow/types/slot_mask.hh | nilium/libsnow-common | dff60ce529cdbe13ccf1f94756a78214c8f9d09d | [
"BSL-1.0"
] | null | null | null | include/snow/types/slot_mask.hh | nilium/libsnow-common | dff60ce529cdbe13ccf1f94756a78214c8f9d09d | [
"BSL-1.0"
] | null | null | null | /*
* Copyright Noel Cower 2013.
*
* 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.txt)
*/
#pragma once
#include <cstdint>
#include <iostream>
#include <vector>
namespace snow {
template <typename HT, typena... | 21.186364 | 93 | 0.636344 | nilium |
2e11d2c56ced43d859e4032bd06fec5a9b136ef1 | 5,486 | cpp | C++ | opi_emac_showfile/firmware/main.cpp | rodb70/rpidmx512 | 6e7eef3eaba35cc2eb7cdeb5bef906faea9366fd | [
"MIT"
] | null | null | null | opi_emac_showfile/firmware/main.cpp | rodb70/rpidmx512 | 6e7eef3eaba35cc2eb7cdeb5bef906faea9366fd | [
"MIT"
] | null | null | null | opi_emac_showfile/firmware/main.cpp | rodb70/rpidmx512 | 6e7eef3eaba35cc2eb7cdeb5bef906faea9366fd | [
"MIT"
] | null | null | null | /**
* @file main.cpp
*
*/
/* Copyright (C) 2020 by Arjan van Vught mailto:info@orangepi-dmx.nl
*
* 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 ... | 25.398148 | 111 | 0.755195 | rodb70 |
2e1323cd5ce50e74e5e7c7a739c17bf7001f5cda | 3,882 | cpp | C++ | PhotosConsigne/src/Widgets/PhotoW.cpp | FlorianLance/PhotosConsigne | 8ea3a68dc3db36bf054c3759d909f9af44647660 | [
"MIT"
] | 2 | 2018-05-06T20:59:09.000Z | 2021-02-25T11:00:14.000Z | PhotosConsigne/src/Widgets/PhotoW.cpp | FlorianLance/PhotosConsigne | 8ea3a68dc3db36bf054c3759d909f9af44647660 | [
"MIT"
] | null | null | null | PhotosConsigne/src/Widgets/PhotoW.cpp | FlorianLance/PhotosConsigne | 8ea3a68dc3db36bf054c3759d909f9af44647660 | [
"MIT"
] | 1 | 2021-02-01T14:57:04.000Z | 2021-02-01T14:57:04.000Z |
/*******************************************************************************
** PhotosConsigne **
** MIT License **
** Copyright (c) [2016] [Florian Lance] ... | 38.058824 | 127 | 0.548171 | FlorianLance |
2e14073384a0c7faed9ffc4535640188330bef5f | 1,392 | hpp | C++ | src/Errors.hpp | evanova/libdgmpp | 867dc081b8dc474b396481ae1b92283affc858d3 | [
"MIT"
] | 4 | 2018-05-07T16:47:27.000Z | 2021-05-17T13:38:18.000Z | src/Errors.hpp | evanova/libdgmpp | 867dc081b8dc474b396481ae1b92283affc858d3 | [
"MIT"
] | null | null | null | src/Errors.hpp | evanova/libdgmpp | 867dc081b8dc474b396481ae1b92283affc858d3 | [
"MIT"
] | null | null | null | //
// Errors.hpp
// dgmpp
//
// Created by Artem Shimanski on 24.11.2017.
//
#pragma once
#include <stdexcept>
#include "Utility.hpp"
namespace dgmpp {
template <typename T>
struct CannotFit: public std::logic_error {
CannotFit(std::unique_ptr<T> type): type(std::move(type)), std::logic_error("Cannot fit") {... | 29 | 152 | 0.713362 | evanova |
2e141e86393b05b52f6f237f53e5f24da1e02ea0 | 6,553 | cc | C++ | lib/spot-2.8.1/bin/ltlgrind.cc | AlessandroCaste/SynkrisisJupyter | a9c2b21ec1ae7ac0c05ef5deebc63a369274650f | [
"Unlicense"
] | null | null | null | lib/spot-2.8.1/bin/ltlgrind.cc | AlessandroCaste/SynkrisisJupyter | a9c2b21ec1ae7ac0c05ef5deebc63a369274650f | [
"Unlicense"
] | null | null | null | lib/spot-2.8.1/bin/ltlgrind.cc | AlessandroCaste/SynkrisisJupyter | a9c2b21ec1ae7ac0c05ef5deebc63a369274650f | [
"Unlicense"
] | null | null | null | // -*- coding: utf-8 -*-
// Copyright (C) 2014, 2015, 2016, 2017, 2018 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
// Spot is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as ... | 32.122549 | 80 | 0.638944 | AlessandroCaste |
2e14cd667b1a7dbae292b61e1fbe62108f0d69d8 | 1,118 | cpp | C++ | LeetCode/C++/General/Medium/MinimumAddToMakeParenthesesValid/solution.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Medium/MinimumAddToMakeParenthesesValid/solution.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Medium/MinimumAddToMakeParenthesesValid/solution.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | #include <deque>
#include <string>
using namespace std;
class Solution
{
public:
int minAddToMakeValid(string s)
{
int result=0;
deque<char> stack;
for(auto & character : s)
{
//Push open ( onto the stack
if(character... | 25.409091 | 103 | 0.376565 | busebd12 |
2e19873f0e039a428ed40c8bde870a8aa988e0ce | 449 | cpp | C++ | src/digital_clock.cpp | imharris24/Digital-Clock | dbca263357f4fed182e278e8133dba07471583d8 | [
"CC0-1.0"
] | null | null | null | src/digital_clock.cpp | imharris24/Digital-Clock | dbca263357f4fed182e278e8133dba07471583d8 | [
"CC0-1.0"
] | null | null | null | src/digital_clock.cpp | imharris24/Digital-Clock | dbca263357f4fed182e278e8133dba07471583d8 | [
"CC0-1.0"
] | null | null | null | #include "digital_clock.h"
#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<chrono>
#include<ctime>
#include<Windows.h>
using namespace std;
void DisplayTime()
{
auto CurrentTime = chrono::system_clock::now();
while (true)
{
system("cls");
CurrentTime = chrono::system_clock::now();
time_t Current_... | 21.380952 | 66 | 0.697105 | imharris24 |
2e1c505128c9453740642d5763549d151330ed78 | 5,570 | cpp | C++ | commands.cpp | jekhor/pneumatic-tc-firmware | a532d78a154cc963d98c239c916485f5383f3dcf | [
"CC-BY-3.0"
] | 1 | 2018-10-08T13:28:32.000Z | 2018-10-08T13:28:32.000Z | commands.cpp | jekhor/pneumatic-tc-firmware | a532d78a154cc963d98c239c916485f5383f3dcf | [
"CC-BY-3.0"
] | 9 | 2019-08-21T18:07:49.000Z | 2019-09-30T19:48:28.000Z | commands.cpp | jekhor/pneumatic-tc-firmware | a532d78a154cc963d98c239c916485f5383f3dcf | [
"CC-BY-3.0"
] | null | null | null |
#include <Arduino.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <SdFat.h>
#include "common.h"
#include "sd_log.h"
#include "timers.h"
static int scan_time(char *date, char *time,
unsigned short *y, tmElements_t *tm)
{
uint16_t numbers[3];
char *c;
int i = 0;
c = strtok(date, "-");
while (c && (i < 3... | 18.262295 | 78 | 0.63842 | jekhor |
2e1e311a60c2b658b683d9387bd1803c5c401c37 | 366 | hpp | C++ | include/amcl_3d/time.hpp | yukkysaito/amcl_3d | 3284678ee2f184fb704a44c2affc8d398ece5863 | [
"BSD-3-Clause"
] | 10 | 2019-08-16T05:17:38.000Z | 2022-03-09T07:59:03.000Z | include/amcl_3d/time.hpp | rsasaki0109/amcl_3d | 584d49a94666b6ee4aab9652d2142274b96e7c6c | [
"BSD-3-Clause"
] | 2 | 2018-10-10T06:59:23.000Z | 2019-06-04T01:09:55.000Z | include/amcl_3d/time.hpp | yukkysaito/amcl_3d | 3284678ee2f184fb704a44c2affc8d398ece5863 | [
"BSD-3-Clause"
] | 6 | 2018-10-10T06:57:56.000Z | 2020-07-19T11:58:08.000Z | #pragma once
#include <ros/ros.h>
namespace amcl_3d
{
struct Time
{
Time(const ros::Time &ros_time);
Time();
ros::Time toROSTime();
static Time fromROSTime(const ros::Time &ros_time);
static double getDiff(const Time &start, const Time &end);
static Time getTimeNow();
unsigned int sec;
... | 19.263158 | 62 | 0.669399 | yukkysaito |
2e1f15e6407285d8ca29dc73ca68db4183dee667 | 2,024 | hpp | C++ | willow/include/popart/op/onehot.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 61 | 2020-07-06T17:11:46.000Z | 2022-03-12T14:42:51.000Z | willow/include/popart/op/onehot.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 1 | 2021-02-25T01:30:29.000Z | 2021-11-09T11:13:14.000Z | willow/include/popart/op/onehot.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 6 | 2020-07-15T12:33:13.000Z | 2021-11-07T06:55:00.000Z | // Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#ifndef GUARD_NEURALNET_ONEHOT_HPP
#define GUARD_NEURALNET_ONEHOT_HPP
#include <popart/op.hpp>
namespace popart {
// This Op is based on the ONNX Operator described at
// github.com/onnx/onnx/blob/master/docs/Operators.md#Onehot
// but it is slightly differen... | 26.631579 | 73 | 0.733696 | gglin001 |
2e202efccdb33bbe69ac1aad6b1e464c2568882d | 329 | cpp | C++ | chap15/Exer15_39/Exer15_39_Query.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 50 | 2016-01-08T14:28:53.000Z | 2022-01-21T12:55:00.000Z | chap15/Exer15_39/Exer15_39_Query.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 2 | 2017-06-05T16:45:20.000Z | 2021-04-17T13:39:24.000Z | chap15/Exer15_39/Exer15_39_Query.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 18 | 2016-08-17T15:23:51.000Z | 2022-03-26T18:08:43.000Z | #include "Exer15_39_Query.h"
// constructor of Query that takes a string parameter
// inline Query::Query(const std::string &s) : q(new WordQuery(s)) {}
std::ostream& operator<<(std::ostream &os, const Query &query)
{
// Query::rep makes a virtual call through its Query_base pointer to rep()
return os << query.... | 36.555556 | 78 | 0.696049 | sjbarigye |
2e20b9a48da2e1862fe66206b15fb8f82bbb61b7 | 425 | cpp | C++ | tests/testcases/logical.cpp | TheLartians/integer | 6c76aef01279dfed0547edfb358288f5435f1773 | [
"MIT"
] | 23 | 2017-11-12T21:28:50.000Z | 2021-11-15T14:03:01.000Z | tests/testcases/logical.cpp | TheLartians/integer | 6c76aef01279dfed0547edfb358288f5435f1773 | [
"MIT"
] | 2 | 2018-09-24T01:06:36.000Z | 2021-06-04T01:37:42.000Z | tests/testcases/logical.cpp | TheLartians/integer | 6c76aef01279dfed0547edfb358288f5435f1773 | [
"MIT"
] | 8 | 2018-08-26T17:32:29.000Z | 2021-09-28T17:58:58.000Z | #include <gtest/gtest.h>
#include "integer.h"
TEST(Logical, and){
const integer A("ffffffff", 16);
const integer B("00000000", 16);
EXPECT_EQ(A && A, true);
EXPECT_EQ(A && B, false);
}
TEST(Logical, or){
const integer A("ffffffff", 16);
const integer B("00000000", 16);
EXPECT_EQ(A || A,... | 18.478261 | 43 | 0.597647 | TheLartians |
2e2523e00203352c8b7d1cc80284af8205793086 | 2,390 | cc | C++ | util/src/stringutil.cc | robert-mijakovic/readex-ptf | 5514b0545721ef27de0426a7fa0116d2e0bb5eef | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | util/src/stringutil.cc | robert-mijakovic/readex-ptf | 5514b0545721ef27de0426a7fa0116d2e0bb5eef | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | util/src/stringutil.cc | robert-mijakovic/readex-ptf | 5514b0545721ef27de0426a7fa0116d2e0bb5eef | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
@file stringutil.cc
@brief String manipulation routines
@author Karl Fuerlinger
@verbatim
Revision: $Revision$
Revision date: $Date$
Committed by: $Author$
This file is part of the Periscope performance measurement tool.
See http://www.lrr.in.tum.de/periscope for deta... | 22.980769 | 83 | 0.551046 | robert-mijakovic |
2e26e1b7b19f70826b7622c37e091634e9149841 | 33,172 | cpp | C++ | admin/wmi/wbem/providers/win32provider/providers/protocol.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/wmi/wbem/providers/win32provider/providers/protocol.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/wmi/wbem/providers/win32provider/providers/protocol.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //=================================================================
//
// Protocol.CPP -- Network Protocol property set provider
//
// Copyright (c) 1996-2001 Microsoft Corporation, All Rights Reserved
//
// Revisions: 08/28/96 a-jmoon Created
// 10/27/97 davwoh Mov... | 28.111864 | 142 | 0.557157 | npocmaka |
2e276f26c03d408e1680e5d90f56447f611f65c5 | 4,316 | hpp | C++ | libs/boost_1_72_0/boost/smart_ptr/enable_shared_from_raw.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/smart_ptr/enable_shared_from_raw.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/smart_ptr/enable_shared_from_raw.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | #ifndef BOOST_ENABLE_SHARED_FROM_RAW_HPP_INCLUDED
#define BOOST_ENABLE_SHARED_FROM_RAW_HPP_INCLUDED
//
// enable_shared_from_raw.hpp
//
// Copyright 2002, 2009, 2014 Peter Dimov
// Copyright 2008-2009 Frank Mori Hess
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE... | 29.162162 | 80 | 0.68721 | henrywarhurst |
2e27c7e1fa5039b8ddf11c8851ecacd4a386d5df | 508 | cpp | C++ | CppProject5_3D/CppProject5/src/entities/projectiles/Projectile.cpp | Damoy/Tower3D | a6f1ec9fd5e7c26ade5528828cc576f5ed45394a | [
"MIT"
] | 1 | 2019-08-25T03:04:35.000Z | 2019-08-25T03:04:35.000Z | CppProject5_3D/CppProject5/src/entities/projectiles/Projectile.cpp | Damoy/Tower3D | a6f1ec9fd5e7c26ade5528828cc576f5ed45394a | [
"MIT"
] | null | null | null | CppProject5_3D/CppProject5/src/entities/projectiles/Projectile.cpp | Damoy/Tower3D | a6f1ec9fd5e7c26ade5528828cc576f5ed45394a | [
"MIT"
] | null | null | null | #include "Projectile.h"
Projectile::Projectile(Level* lvl, TexturedModel* model, unsigned short life, unsigned short uniqueDamage, unsigned short armor, float x, float y, float z, float xScale, float yScale, float zScale, float s)
: Entity(model, x, y, z, xScale, yScale, zScale),
Destructible(life, armor),
Atta... | 23.090909 | 206 | 0.720472 | Damoy |
2e2c633559616dc04e63ed1a91844008a24a9354 | 32,857 | cpp | C++ | SU2-Quantum/SU2_CFD/src/output/CFlowIncOutput.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/src/output/CFlowIncOutput.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/src/output/CFlowIncOutput.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | 1 | 2021-12-03T06:40:08.000Z | 2021-12-03T06:40:08.000Z | /*!
* \file output_flow_inc.cpp
* \brief Main subroutines for incompressible flow output
* \author R. Sanchez
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.org)
*
* Copyright 2012-2020, SU2 Contr... | 49.93465 | 200 | 0.728916 | Agony5757 |
2e2fb6a40004323ac62160c3d1faa75223cf7e51 | 704 | cpp | C++ | src/gwmessage/GWUnpairRequest.cpp | tacr-iotcloud/base | caa10794b965c578f596d616e9654a6a8ef2c169 | [
"BSD-3-Clause"
] | null | null | null | src/gwmessage/GWUnpairRequest.cpp | tacr-iotcloud/base | caa10794b965c578f596d616e9654a6a8ef2c169 | [
"BSD-3-Clause"
] | null | null | null | src/gwmessage/GWUnpairRequest.cpp | tacr-iotcloud/base | caa10794b965c578f596d616e9654a6a8ef2c169 | [
"BSD-3-Clause"
] | 1 | 2019-01-08T14:48:29.000Z | 2019-01-08T14:48:29.000Z | #include "gwmessage/GWUnpairRequest.h"
#include "gwmessage/GWUnpairResponse.h"
using namespace std;
using namespace Poco;
using namespace BeeeOn;
GWUnpairRequest::GWUnpairRequest():
GWRequest(GWMessageType::UNPAIR_REQUEST)
{
}
GWUnpairRequest::GWUnpairRequest(const JSON::Object::Ptr object) :
GWRequest(object)
{
}... | 21.333333 | 66 | 0.778409 | tacr-iotcloud |
2e302fc270d22b89db1aede75e0c47b29168bfd8 | 6,559 | cpp | C++ | wws_lua/extras/Lua.Utilities/luawrapper.cpp | ViseEngine/SLED | 7815ee6feb656d43f70edba8280caa8a69d0983b | [
"Apache-2.0"
] | 158 | 2015-03-03T00:11:56.000Z | 2022-02-08T18:43:11.000Z | wws_lua/extras/Lua.Utilities/luawrapper.cpp | mcanthony/SLED | 7815ee6feb656d43f70edba8280caa8a69d0983b | [
"Apache-2.0"
] | 3 | 2015-04-30T13:00:43.000Z | 2015-07-07T22:58:35.000Z | wws_lua/extras/Lua.Utilities/luawrapper.cpp | mcanthony/SLED | 7815ee6feb656d43f70edba8280caa8a69d0983b | [
"Apache-2.0"
] | 48 | 2015-03-05T05:30:45.000Z | 2021-10-18T02:09:02.000Z | /*
* Copyright (C) Sony Computer Entertainment America LLC.
* All Rights Reserved.
*/
#include "stdafx.h"
#include "luawrapper.h"
#include <msclr\marshal_cppstd.h>
#include <string>
namespace Unmanaged
{
StackReconciler::StackReconciler(lua_State* luaState)
: m_luaState(luaState)
, m_count(LuaInterface::Get... | 33.984456 | 168 | 0.751944 | ViseEngine |
2e304d5d162ee27191532c7d630113bd7e7998de | 12,063 | hpp | C++ | sources/middle_layer/src/partial_completion.hpp | hhb584520/DML | 014eb9894e85334f03ec74435933c972f3d05b50 | [
"MIT"
] | null | null | null | sources/middle_layer/src/partial_completion.hpp | hhb584520/DML | 014eb9894e85334f03ec74435933c972f3d05b50 | [
"MIT"
] | null | null | null | sources/middle_layer/src/partial_completion.hpp | 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
******************************************************************************/
#ifndef DML_ML_OWN_PARTIAL_COMPLETION_HPP
#define DML_ML_OWN_PARTIAL_COMPLETION_HP... | 46.041985 | 122 | 0.691287 | hhb584520 |
2e3152e88bacc8c8fe68107e3ee51ff9b01532fa | 93 | cpp | C++ | gamelib/source/util/json_array.cpp | brodiequinlan/game-framework | 4243d9b011e0d17da66874fa77b3b6d7a6c5e440 | [
"Apache-2.0"
] | 1 | 2021-11-20T02:36:28.000Z | 2021-11-20T02:36:28.000Z | gamelib/source/util/json_array.cpp | Bobsaggetismine/game-framework | 4243d9b011e0d17da66874fa77b3b6d7a6c5e440 | [
"Apache-2.0"
] | 1 | 2019-06-11T01:45:11.000Z | 2019-06-11T01:47:43.000Z | gamelib/source/util/json_array.cpp | Bobsaggetismine/game-framework | 4243d9b011e0d17da66874fa77b3b6d7a6c5e440 | [
"Apache-2.0"
] | null | null | null | #include "bqpch.h"
bq::json bq::json_array::get_o(int index){
return m_objects[index];
} | 18.6 | 42 | 0.688172 | brodiequinlan |
2e3245b199e5b94f173ed2a4d3f4939a8207c722 | 913 | hpp | C++ | include/inet/Url.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | include/inet/Url.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | include/inet/Url.hpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#ifndef SAPI_INET_URL_HPP_
#define SAPI_INET_URL_HPP_
#include "../api/InetObject.hpp"
#include "../var/String.hpp"
namespace inet {
class Url : public api::InfoObject {
public:
enum protocol {
protocol_https,
... | 20.288889 | 100 | 0.691128 | bander9289 |
2e362fd19c16511717e9a09d623e79383b3d95c9 | 4,801 | hpp | C++ | opencv/sources/modules/video/src/tracking/detail/tracking_feature.hpp | vrushank-agrawal/opencv-x64-cmake | 3f9486510d706c8ac579ac82f5d58f667f948124 | [
"Apache-2.0"
] | null | null | null | opencv/sources/modules/video/src/tracking/detail/tracking_feature.hpp | vrushank-agrawal/opencv-x64-cmake | 3f9486510d706c8ac579ac82f5d58f667f948124 | [
"Apache-2.0"
] | null | null | null | opencv/sources/modules/video/src/tracking/detail/tracking_feature.hpp | vrushank-agrawal/opencv-x64-cmake | 3f9486510d706c8ac579ac82f5d58f667f948124 | [
"Apache-2.0"
] | null | null | null | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#ifndef OPENCV_VIDEO_DETAIL_TRACKING_FEATURE_HPP
#define OPENCV_VIDEO_DETAIL_TRACKING_FEATURE_HPP
#include "opencv2/c... | 28.408284 | 120 | 0.65528 | vrushank-agrawal |
2e381dee7d809dea721d1c0484c45caa8d3a8bf9 | 4,681 | cpp | C++ | src/plugin.cpp | hhornbacher/mosquitto-auth-plugin | a44586940bd6c7aca9f00b7b4996e3405bef50aa | [
"MIT"
] | 2 | 2020-06-18T13:21:31.000Z | 2021-04-20T23:29:31.000Z | src/plugin.cpp | hhornbacher/mosquitto-auth-plugin | a44586940bd6c7aca9f00b7b4996e3405bef50aa | [
"MIT"
] | null | null | null | src/plugin.cpp | hhornbacher/mosquitto-auth-plugin | a44586940bd6c7aca9f00b7b4996e3405bef50aa | [
"MIT"
] | null | null | null | #include "plugin.h"
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <libscrypt.h>
#include <mosquitto.h>
extern "C"
{
#include <mosquitto_broker.h>
}
int MosquittoAuthPlugin::security_init(const PluginOptions opts, const bool reload)
{
mosquitto_log_printf(MOSQ_LOG_DEBUG, "security_init");
... | 37.448 | 108 | 0.631916 | hhornbacher |
aa319d3f4cf5178e057bf66cd2dc7b73c6bb81a7 | 14,240 | cxx | C++ | EVGEN/AliGenSlowNucleons.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | EVGEN/AliGenSlowNucleons.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 2 | 2016-11-25T08:40:56.000Z | 2019-10-11T12:29:29.000Z | EVGEN/AliGenSlowNucleons.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 31.574279 | 123 | 0.63743 | AllaMaevskaya |
aa32fa4dedb60252d53d59c2ba0403520506e623 | 943 | cpp | C++ | Rumble3D/src/RigidBodyEngine/CollisionPrimitive.cpp | Nelaty/Rumble3D | 801b9feec27ceeea91db3b759083f6351634e062 | [
"MIT"
] | 1 | 2020-01-21T16:01:53.000Z | 2020-01-21T16:01:53.000Z | Rumble3D/src/RigidBodyEngine/CollisionPrimitive.cpp | Nelaty/Rumble3D | 801b9feec27ceeea91db3b759083f6351634e062 | [
"MIT"
] | 1 | 2019-10-08T08:25:33.000Z | 2019-10-09T06:39:06.000Z | Rumble3D/src/RigidBodyEngine/CollisionPrimitive.cpp | Nelaty/Rumble3D | 801b9feec27ceeea91db3b759083f6351634e062 | [
"MIT"
] | 1 | 2019-05-14T13:48:16.000Z | 2019-05-14T13:48:16.000Z | #include "R3D/RigidBodyEngine/CollisionPrimitive.h"
#include "R3D/RigidBodyEngine/RigidBody.h"
#include <glm/gtc/matrix_transform.inl>
#include <cassert>
namespace r3
{
void CollisionPrimitive::calculateInternals()
{
/// \todo use new transform!
const auto& transform = m_body->getTransform();
glm::mat4 mat = ... | 20.955556 | 74 | 0.726405 | Nelaty |
aa35435cd6a2f238f8a01e085362ad10faba87c4 | 5,938 | hpp | C++ | src/src/StateBase.hpp | Max-Mobility/PushTracker | fd1c8fc29b3bf3739ee96f07ac38413ce7947d4b | [
"MIT"
] | null | null | null | src/src/StateBase.hpp | Max-Mobility/PushTracker | fd1c8fc29b3bf3739ee96f07ac38413ce7947d4b | [
"MIT"
] | null | null | null | src/src/StateBase.hpp | Max-Mobility/PushTracker | fd1c8fc29b3bf3739ee96f07ac38413ce7947d4b | [
"MIT"
] | null | null | null | #ifndef __STATE_BASE__INCLUDE_GUARD
#define __STATE_BASE__INCLUDE_GUARD
namespace StateMachine {
class Event;
/**
* States contain other states and can consume generic
* StateMachine::Event objects if they have internal or external
* transitions on those events and if those transitions' guards... | 29.839196 | 98 | 0.572078 | Max-Mobility |
aa37654983151cb040081ee3a660a55f0b2e958f | 1,836 | hpp | C++ | MyApplication/Middlewares/ST/touchgfx/framework/include/touchgfx/hal/GPIO.hpp | rshane960/TouchGFX | 1f1465f1aa1215d52264ae0199dafa821939de64 | [
"MIT"
] | null | null | null | MyApplication/Middlewares/ST/touchgfx/framework/include/touchgfx/hal/GPIO.hpp | rshane960/TouchGFX | 1f1465f1aa1215d52264ae0199dafa821939de64 | [
"MIT"
] | null | null | null | MyApplication/Middlewares/ST/touchgfx/framework/include/touchgfx/hal/GPIO.hpp | rshane960/TouchGFX | 1f1465f1aa1215d52264ae0199dafa821939de64 | [
"MIT"
] | null | null | null | /******************************************************************************
* Copyright (c) 2018(-2021) STMicroelectronics.
* All rights reserved.
*
* This file is part of the TouchGFX 4.18.1 distribution.
*
* This software is licensed under terms that can be found in the LICENSE file in
* the root directory of thi... | 24.157895 | 96 | 0.569172 | rshane960 |
aa3abe536e9e4f269ada3a833dc1c969697575f3 | 14,401 | cpp | C++ | Numerical-Methods/Task-9/main.cpp | Maissae/University-Projects | 86ef0583760742c0e45be33d3fac3689587d0c76 | [
"MIT"
] | null | null | null | Numerical-Methods/Task-9/main.cpp | Maissae/University-Projects | 86ef0583760742c0e45be33d3fac3689587d0c76 | [
"MIT"
] | null | null | null | Numerical-Methods/Task-9/main.cpp | Maissae/University-Projects | 86ef0583760742c0e45be33d3fac3689587d0c76 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
#include<bitset>
#include<iostream>
#include<iomanip>
#include<math.h>
#include<string.h>
#pragma region Array/Matrix Functions
double** CreateMatrix(int n)
{
double** matrix = new double* [n];
for(int i = 0; i < n; i++) {
matrix[i] = new double[n];
}
for(i... | 21.786687 | 116 | 0.43122 | Maissae |
aa3b80d50c5c134c9ac08e09649dfdeb2c48bf94 | 3,983 | cpp | C++ | upcxx/osu_upcxx_allgather.cpp | federatedcloud/osu-micro-benchmarks-5.6.2 | e84e54beb07e7a93156e123d337f775f44e1e642 | [
"BSD-3-Clause"
] | null | null | null | upcxx/osu_upcxx_allgather.cpp | federatedcloud/osu-micro-benchmarks-5.6.2 | e84e54beb07e7a93156e123d337f775f44e1e642 | [
"BSD-3-Clause"
] | null | null | null | upcxx/osu_upcxx_allgather.cpp | federatedcloud/osu-micro-benchmarks-5.6.2 | e84e54beb07e7a93156e123d337f775f44e1e642 | [
"BSD-3-Clause"
] | null | null | null | #define BENCHMARK "OSU UPC++ AllGather Latency Test"
/*
* Copyright (C) 2002-2019 the Network-Based Computing Laboratory
* (NBCL), The Ohio State University.
*
* Contact: Dr. D. K. Panda (panda@cse.ohio-state.edu)
*
* For detailed copyright and licensing information, please refer to the
* copyright file COPYRIGH... | 25.863636 | 78 | 0.565654 | federatedcloud |
aa3cbe74ee409970bad7d3e9e4e9d3b5241f2870 | 1,449 | cc | C++ | chromecast/media/cma/backend/mixer/mock_mixer_source.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chromecast/media/cma/backend/mixer/mock_mixer_source.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chromecast/media/cma/backend/mixer/mock_mixer_source.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/media/cma/backend/mixer/mock_mixer_source.h"
#include <algorithm>
#include <utility>
#include "base/check_op.h"
#include "media/bas... | 29.571429 | 78 | 0.692202 | zealoussnow |
aa3f79f44e764074527bacd7f61e045b3ae3f03a | 565 | cpp | C++ | acmicpc/1051.cpp | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | acmicpc/1051.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | acmicpc/1051.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | #include <iostream>
using namespace std;
int main()
{
int n, m, v, max_val = 1;
int s[51][51];
string str;
scanf("%d %d", &n, &m);
v = min(n, m);
for (int i=0; i<n; ++i) {
cin >> str;
for (int j=0; j<m; ++j)
s[i][j] = str[j] - '0';
}
for (int i=0; i<n; ++i) {
for (int j=0; j<m; ++j) {
for (int k=... | 17.121212 | 79 | 0.419469 | juseongkr |
aa3faf9aaafb9459939c59f788180810b68a1915 | 5,899 | cc | C++ | A1/Main/BufferMgr/source/MyDB_BufferManager.cc | JiweiYe/DB_implementation | 5f3b043ea2ceffa8a84ef90f1127c8b4d5a83d98 | [
"MIT"
] | null | null | null | A1/Main/BufferMgr/source/MyDB_BufferManager.cc | JiweiYe/DB_implementation | 5f3b043ea2ceffa8a84ef90f1127c8b4d5a83d98 | [
"MIT"
] | null | null | null | A1/Main/BufferMgr/source/MyDB_BufferManager.cc | JiweiYe/DB_implementation | 5f3b043ea2ceffa8a84ef90f1127c8b4d5a83d98 | [
"MIT"
] | null | null | null |
#ifndef BUFFER_MGR_C
#define BUFFER_MGR_C
#include "MyDB_BufferManager.h"
#include <string>
using namespace std;
MyDB_PageHandle MyDB_BufferManager :: getPage (MyDB_TablePtr whichTable, long i) {
string targetPage = pageIdGenerator(whichTable, i);
//page already in the buffer
if(inbuffer(targetPage)){
MyDB_Pag... | 29.944162 | 132 | 0.712494 | JiweiYe |
aa419cee82e2fed3f4197a8f654d2e7b6184edbe | 12,044 | cpp | C++ | src/Transform/ONNX/ConstPropHelper.cpp | juan561999/Onnx-mlir | f8554660dd98b5bb911320aa4f22823573c9b0fb | [
"Apache-2.0"
] | null | null | null | src/Transform/ONNX/ConstPropHelper.cpp | juan561999/Onnx-mlir | f8554660dd98b5bb911320aa4f22823573c9b0fb | [
"Apache-2.0"
] | null | null | null | src/Transform/ONNX/ConstPropHelper.cpp | juan561999/Onnx-mlir | f8554660dd98b5bb911320aa4f22823573c9b0fb | [
"Apache-2.0"
] | null | null | null | /*
* SPDX-License-Identifier: Apache-2.0
*/
//===----------- ONNXConstProp.cpp - ONNX High Level Rewriting ------------===//
//
// Copyright 2019-2020 The IBM Research Authors.
//
// =============================================================================
//
// This file implements a set of rewriters to constpr... | 37.520249 | 80 | 0.663982 | juan561999 |
aa433ef2912bfb3276d3bd16da3d1b8c5ce56839 | 6,010 | cpp | C++ | examples/chapter_nine/two_layers_network/src/main.cpp | PacktPublishing/Hands-On-Neural-Network-Programming-with-CPP | c6b5041bc2beb6d0bf978095ee986b4239b43b28 | [
"MIT"
] | 9 | 2019-04-17T16:23:33.000Z | 2021-11-08T13:11:09.000Z | examples/chapter_nine/two_layers_network/src/main.cpp | PacktPublishing/Hands-On-Neural-Network-Programming-with-CPP | c6b5041bc2beb6d0bf978095ee986b4239b43b28 | [
"MIT"
] | null | null | null | examples/chapter_nine/two_layers_network/src/main.cpp | PacktPublishing/Hands-On-Neural-Network-Programming-with-CPP | c6b5041bc2beb6d0bf978095ee986b4239b43b28 | [
"MIT"
] | 5 | 2019-05-28T11:56:08.000Z | 2021-03-30T01:13:39.000Z | #include <iostream>
#include <fstream>
#include <exception>
#include <string>
#include <algorithm>
#include "matrix_definitions.hpp"
#include <opencv2/imgproc.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/eigen.hpp>
void show(const cv::Mat &source, const cv::Mat... | 39.025974 | 157 | 0.628453 | PacktPublishing |
aa4638abefaaaef7eaa7a21b3fadd3dec9691266 | 506 | cpp | C++ | mod/wrc/flag/flags/fileFlag.cpp | kniz/wrd | a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6 | [
"MIT"
] | 1 | 2019-02-02T07:07:32.000Z | 2019-02-02T07:07:32.000Z | mod/wrc/flag/flags/fileFlag.cpp | kniz/wrd | a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6 | [
"MIT"
] | 25 | 2016-09-23T16:36:19.000Z | 2019-02-12T14:14:32.000Z | mod/wrc/flag/flags/fileFlag.cpp | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | null | null | null | #include "fileFlag.hpp"
#include <fstream>
#include <sstream>
namespace wrd {
WRD_DEF_ME(fileFlag)
wbool me::_onTake(const args& tray, cli& c, interpreter& ip) const {
std::vector<string> buf;
for(const auto& filePath : tray) {
std::ifstream fout(filePath);
std::string... | 22 | 72 | 0.577075 | kniz |
aa47ac68b7c4044e40b7ee7cd94a7d62514ad36e | 1,106 | hpp | C++ | include/LoopKeybinding.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | include/LoopKeybinding.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | include/LoopKeybinding.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | #ifndef H_AW_LOOPKEYBINDING
#define H_AW_LOOPKEYBINDING
#include <vector>
#include <functional>
#include <SFML/Window.hpp>
namespace aw {
class LoopKeybinding {
public:
typedef std::function<void()> LoopKeybindingCallback;
LoopKeybinding (const LoopKeybindingCallback&, sf::Keyboard::Key);
LoopKeybindin... | 25.72093 | 90 | 0.716094 | DangerInteractive |
aa4bcae50756b29c90ee21adf472baa00036269b | 1,294 | cpp | C++ | atcoder/arc087d.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | 1 | 2020-04-04T14:56:12.000Z | 2020-04-04T14:56:12.000Z | atcoder/arc087d.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | atcoder/arc087d.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int N = 8100;
const int LIM = N<<1;
bool dp[2][2][LIM];
void solve() {
string s; cin >> s;
int ta[2];
cin >> ta[0] >> ta[1];
s += "T";
vector<int> a[2];
int dir = 0;
int len = 0;
int n = s.size();
int i = 0;
while (s[i]!='T... | 20.870968 | 66 | 0.36476 | sogapalag |
aa4c3dc1b6129141e775aee84d0535ede16be69d | 1,015 | cpp | C++ | opfile.cpp | XunZhiyang/BookStore | a8926673cee17029c61797a983d077499995d84f | [
"MIT"
] | null | null | null | opfile.cpp | XunZhiyang/BookStore | a8926673cee17029c61797a983d077499995d84f | [
"MIT"
] | 3 | 2018-12-17T07:20:05.000Z | 2018-12-25T09:16:02.000Z | opfile.cpp | XunZhiyang/BookStore | a8926673cee17029c61797a983d077499995d84f | [
"MIT"
] | null | null | null | //#include "pch.h"
#include <fstream>
#include "opfile.h"
bool exist(const std::string &name) {
std::ifstream test(name);
if (test.good()) {
test.close();
return true;
}
return false;
}
void readInt(std::fstream &stream, int &t) {
stream.read(reinterpret_cast<char *>(&t), 4);
//std::cerr << stream.gcount() <... | 23.068182 | 67 | 0.646305 | XunZhiyang |
aa4cc08a1ffd9bfcb60f02ccb831b48a4b4df9dd | 2,490 | cpp | C++ | extensions/vivaldi_extensions_client.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | extensions/vivaldi_extensions_client.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | extensions/vivaldi_extensions_client.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2015 Vivaldi Technologies AS. All rights reserved
#include "extensions/vivaldi_extensions_client.h"
#include "extensions/common/features/json_feature_provider_source.h"
#include "extensions/common/permissions/permissions_info.h"
#include "extensions/schema/generated_schemas.h"
#include "vivaldi/grit... | 30.365854 | 78 | 0.778313 | wedataintelligence |
aa5b6e3011860352a6c7d2181c6dea2c548d7b6d | 78 | cpp | C++ | DAA Lab/strmul.cpp | mayank-kumar-giri/Competitive-Coding | 4cd26ede051bad15bf25cfd037317c313b607507 | [
"MIT"
] | null | null | null | DAA Lab/strmul.cpp | mayank-kumar-giri/Competitive-Coding | 4cd26ede051bad15bf25cfd037317c313b607507 | [
"MIT"
] | null | null | null | DAA Lab/strmul.cpp | mayank-kumar-giri/Competitive-Coding | 4cd26ede051bad15bf25cfd037317c313b607507 | [
"MIT"
] | null | null | null | #include<iostream>
#include "bs.cpp"
#include "merge.c"
using namespace std;
| 13 | 20 | 0.730769 | mayank-kumar-giri |
aa5d996981df1dc855502777425e379f96ff65f5 | 2,867 | cc | C++ | HIP/StreamTriad/StreamTriad.cc | essentialsofparallelcomputing/Chapter12 | 98ad49cce4ac7dd4a76d1ec80e4383606c4cb671 | [
"Apache-2.0"
] | 3 | 2020-04-12T11:36:09.000Z | 2021-05-19T10:59:10.000Z | HIP/StreamTriad/StreamTriad.cc | essentialsofparallelcomputing/Chapter12 | 98ad49cce4ac7dd4a76d1ec80e4383606c4cb671 | [
"Apache-2.0"
] | null | null | null | HIP/StreamTriad/StreamTriad.cc | essentialsofparallelcomputing/Chapter12 | 98ad49cce4ac7dd4a76d1ec80e4383606c4cb671 | [
"Apache-2.0"
] | null | null | null | #include "hip/hip_runtime.h"
#include <stdio.h>
#include <sys/time.h>
extern "C" {
#include "timer.h"
}
#define NTIMES 16
// CUDA kernel version of stream triad
__global__ void StreamTriad(int n, double scalar, double *a, double *b, double *c){
int i = blockIdx.x*blockDim.x+threadIdx.x;
// Protect from goin... | 34.130952 | 119 | 0.663062 | essentialsofparallelcomputing |
aa5f45c0b0a9bb0c6fb9ffa459e9fc4864dc3c50 | 2,044 | cc | C++ | tests/test_lqr.cc | oliverlee/biketest | 074b0b03455021c52a13efe583b1816bc5daad4e | [
"BSD-2-Clause"
] | 3 | 2016-12-14T01:22:27.000Z | 2020-04-07T05:15:04.000Z | tests/test_lqr.cc | oliverlee/biketest | 074b0b03455021c52a13efe583b1816bc5daad4e | [
"BSD-2-Clause"
] | 7 | 2017-01-12T15:20:57.000Z | 2017-07-02T16:09:37.000Z | tests/test_lqr.cc | oliverlee/biketest | 074b0b03455021c52a13efe583b1816bc5daad4e | [
"BSD-2-Clause"
] | 1 | 2020-04-07T05:15:05.000Z | 2020-04-07T05:15:05.000Z | #include "gtest/gtest.h"
#include "test_convergence.h"
#include "constants.h"
// TODO: Add convergence with model error
class LqrTrackingTest: public ConvergenceTest {
public:
void SetUp() {
ConvergenceTest::SetUp();
// use integral action
m_lqr->set_Qi((bicycle_t::state... | 28.388889 | 75 | 0.594423 | oliverlee |
aa601fdffefd00d331af042807bf638a48712c6b | 596 | cpp | C++ | copy_constructor.cpp | Devilshree123/Object-oriented-programming-in-CPP | d5059b1c4f394417235ade5a0794d368d1c13b60 | [
"Apache-2.0"
] | null | null | null | copy_constructor.cpp | Devilshree123/Object-oriented-programming-in-CPP | d5059b1c4f394417235ade5a0794d368d1c13b60 | [
"Apache-2.0"
] | null | null | null | copy_constructor.cpp | Devilshree123/Object-oriented-programming-in-CPP | d5059b1c4f394417235ade5a0794d368d1c13b60 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
class number
{
int a ;
public:
number(){
a=0;
}
number(int num)
{
a = num;
}
number(number &obj)
{
cout<<"copy constructor is called "<<endl;
a = obj.... | 14.190476 | 55 | 0.407718 | Devilshree123 |
aa62ad93ab34bbbdb4e009f0ef5397bea16621e1 | 423 | cpp | C++ | 6. Trees/09. Convert BST to Greater Tree.cpp | thekalyan001/DMB1-CP | 7ccf41bac7269bff432260c6078cebdb4e0f1483 | [
"Apache-2.0"
] | null | null | null | 6. Trees/09. Convert BST to Greater Tree.cpp | thekalyan001/DMB1-CP | 7ccf41bac7269bff432260c6078cebdb4e0f1483 | [
"Apache-2.0"
] | null | null | null | 6. Trees/09. Convert BST to Greater Tree.cpp | thekalyan001/DMB1-CP | 7ccf41bac7269bff432260c6078cebdb4e0f1483 | [
"Apache-2.0"
] | null | null | null | https://leetcode.com/problems/convert-bst-to-greater-tree/
convert bst such that BST is changed to the original key plus the sum
of all keys greater than the original key in BST.
TreeNode* convertBST(TreeNode* root) {
if(root!=NULL){
convertBST(root->right);
sum+=root->val;
... | 30.214286 | 72 | 0.588652 | thekalyan001 |
aa663493041898051a0fef9fdcb937a0f156ab9c | 665 | cpp | C++ | cppfun/main.cpp | selvakumarjawahar/myexperiments | 8d04a38e992bb717c792d198dda1d221b749a375 | [
"MIT"
] | null | null | null | cppfun/main.cpp | selvakumarjawahar/myexperiments | 8d04a38e992bb717c792d198dda1d221b749a375 | [
"MIT"
] | 4 | 2021-09-02T01:23:47.000Z | 2022-02-26T19:35:28.000Z | cppfun/main.cpp | selvakumarjawahar/myexperiments | 8d04a38e992bb717c792d198dda1d221b749a375 | [
"MIT"
] | null | null | null | #include <iostream>
#include "StaticMapGenerator.h"
#include <cstdlib>
Fruits FruitGenerator(){
auto fruit = rand() % 3;
return static_cast<Fruits>(fruit);
}
using DefaultFruitMap = DefaultValueMap<Fruits,Season,Season::AllYear>;
int main() {
std::cout << "Default = " << (int) FruitMap<Fruits::Grapes>::va... | 33.25 | 92 | 0.631579 | selvakumarjawahar |
aa68187c169675cc4c51c365350ab05887d971c1 | 6,595 | cpp | C++ | source/app/rendering/device.cpp | mattwamboldt/rasterizer | a571c9350d448f71e991f145cb0264abb2002d4d | [
"MIT"
] | null | null | null | source/app/rendering/device.cpp | mattwamboldt/rasterizer | a571c9350d448f71e991f145cb0264abb2002d4d | [
"MIT"
] | null | null | null | source/app/rendering/device.cpp | mattwamboldt/rasterizer | a571c9350d448f71e991f145cb0264abb2002d4d | [
"MIT"
] | null | null | null | #include "device.h"
#include <float.h>
Device::Device(SDL_Surface* _screen)
:screen(_screen), renderWidth(screen->w), renderHeight(screen->h)
{
depthBuffer = new float[renderWidth * renderHeight];
}
Device::~Device()
{
if (depthBuffer)
{
delete[] depthBuffer;
}
}
// Clear... | 30.252294 | 127 | 0.576952 | mattwamboldt |
aa692884baa6c494ac90cfe8623264d3f6764f36 | 4,544 | hpp | C++ | src/hotspot/share/utilities/numberSeq.hpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/hotspot/share/utilities/numberSeq.hpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/hotspot/share/utilities/numberSeq.hpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 33.659259 | 79 | 0.72029 | siweilxy |
aa6a135b84a3c9c22aa97a1a22aeb51036d01903 | 7,005 | cpp | C++ | c/src/execution_engine.cpp | tydeu/lean4-papyrus | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | [
"Apache-2.0"
] | 9 | 2021-07-22T11:37:59.000Z | 2022-02-23T05:39:35.000Z | c/src/execution_engine.cpp | tydeu/lean4-papyrus | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | [
"Apache-2.0"
] | 2 | 2021-09-17T15:59:21.000Z | 2021-09-24T23:52:23.000Z | c/src/execution_engine.cpp | tydeu/lean4-papyrus | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | [
"Apache-2.0"
] | 2 | 2021-09-06T09:45:21.000Z | 2022-03-09T12:24:53.000Z | #include "papyrus.h"
#include "papyrus_ffi.h"
#include <lean/lean.h>
#include <llvm/ExecutionEngine/GenericValue.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
using namespace llvm;
namespace papyrus {
struct EEExternal {
// The execution engine handle.
ExecutionEngine* ee;
// The modules controlled by... | 35.739796 | 116 | 0.725625 | tydeu |
aa73fecb37a3add45e0a9b2ef8f5062701f7bba1 | 1,763 | cpp | C++ | private/shell/applets/taskmgr/deadcode.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/shell/applets/taskmgr/deadcode.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/shell/applets/taskmgr/deadcode.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | // CODE WHICH I REMOVED BUT THAT I'M AFRAID TO THROW AWAY IN CASE I NEED IT
//
// NOT IN THE BUILD
/*++ CPerfPage::DrawLegend
Routine Description:
Draws the legend on the performance page
Arguments:
lpdi - LPDRAWITEMSTRUCT describing area we need to paint
Return Value:
Revision His... | 25.926471 | 78 | 0.560408 | King0987654 |
aa758cb0138d5f90c4021b9915746cbb16252dd4 | 2,457 | cpp | C++ | src/engine/Scrap.cpp | m1cr0lab-gamebuino/apollo | 79c71d0ca44301d05d284a7f2bc5137fe80c911a | [
"MIT"
] | 1 | 2021-07-28T12:35:52.000Z | 2021-07-28T12:35:52.000Z | src/engine/Scrap.cpp | m1cr0lab-gamebuino/apollo | 79c71d0ca44301d05d284a7f2bc5137fe80c911a | [
"MIT"
] | null | null | null | src/engine/Scrap.cpp | m1cr0lab-gamebuino/apollo | 79c71d0ca44301d05d284a7f2bc5137fe80c911a | [
"MIT"
] | null | null | null | /**
* -------------------------------------------------------------------------
* Apollo
* -------------------------------------------------------------------------
* a tiny game for the Gamebuino META retro gaming handheld
* inspired by the famous Lunar ... | 21.743363 | 94 | 0.406186 | m1cr0lab-gamebuino |
aa7a2fcd8bf0b9f7a98b3ed7882b6772e93e279c | 2,128 | cpp | C++ | Image_editor/Image_editor.cpp | Aroidzap/VUT-FIT-IPA-Project-2017-2018 | c199b3165a1e282f78d3afb7104f35772b13ca6c | [
"MIT"
] | 1 | 2017-12-05T09:25:09.000Z | 2017-12-05T09:25:09.000Z | Image_editor/Image_editor.cpp | Aroidzap/VUT-FIT-IPA-Project-2017-2018 | c199b3165a1e282f78d3afb7104f35772b13ca6c | [
"MIT"
] | null | null | null | Image_editor/Image_editor.cpp | Aroidzap/VUT-FIT-IPA-Project-2017-2018 | c199b3165a1e282f78d3afb7104f35772b13ca6c | [
"MIT"
] | null | null | null | /*Sablona pro projekty do predmetu IPA, tema graficky editor
*Autor: Tomas Goldmann, igoldmann@fit.vutbr.cz
*
*LOGIN STUDENTA: xpazdi02
*/
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <intrin.h>
#include <inttypes.h>
#include <win... | 24.181818 | 148 | 0.725094 | Aroidzap |
aa7ea9942eea6c68e96e262a7e4187e7dbf935bc | 2,981 | hh | C++ | src/cpu/tcu-accel/ctxswsm.hh | Barkhausen-Institut/gem5-TCU | c3c86be12debec937b9b5dd351df13e5ea43ab4a | [
"BSD-3-Clause"
] | null | null | null | src/cpu/tcu-accel/ctxswsm.hh | Barkhausen-Institut/gem5-TCU | c3c86be12debec937b9b5dd351df13e5ea43ab4a | [
"BSD-3-Clause"
] | null | null | null | src/cpu/tcu-accel/ctxswsm.hh | Barkhausen-Institut/gem5-TCU | c3c86be12debec937b9b5dd351df13e5ea43ab4a | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2015-2018 Nils Asmussen <nils@os.inf.tu-dresden.de>
* Copyright (C) 2019-2021 Nils Asmussen, Barkhausen Institut
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*
* 1. Redistributions of source code must retain the above copyright notice,
* thi... | 26.855856 | 79 | 0.690037 | Barkhausen-Institut |
aa858e4f2c43750d17170246373af43e794a147c | 1,028 | cpp | C++ | Data Structures/Merge two sorted linked lists.cpp | rahamath2009/git-github.com-nishant-sethi-HackerRank | 14d9bd3e772a863aceba22d9a3361a8325cca4bc | [
"Apache-2.0"
] | 76 | 2018-06-28T04:29:14.000Z | 2022-03-21T01:57:27.000Z | Data Structures/Merge two sorted linked lists.cpp | rahamath2009/git-github.com-nishant-sethi-HackerRank | 14d9bd3e772a863aceba22d9a3361a8325cca4bc | [
"Apache-2.0"
] | 31 | 2018-10-01T09:12:05.000Z | 2022-03-08T23:39:01.000Z | Data Structures/Merge two sorted linked lists.cpp | rahamath2009/git-github.com-nishant-sethi-HackerRank | 14d9bd3e772a863aceba22d9a3361a8325cca4bc | [
"Apache-2.0"
] | 44 | 2018-07-09T11:31:20.000Z | 2022-01-12T19:21:20.000Z | /*
Merge two sorted lists A and B as one linked list
Node is defined as
struct Node
{
int data;
struct Node *next;
}
*/
Node* MergeLists(Node *headA, Node* headB)
{
// This is a "method-only" submission.
// You only need to complete this method
Node ... | 23.363636 | 54 | 0.42607 | rahamath2009 |
aa8820758c4bd30b2af0aaa56aa2d5004e8bb278 | 2,571 | cpp | C++ | UVa/UVA - 190/Accepted (4).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | UVa/UVA - 190/Accepted (4).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | UVa/UVA - 190/Accepted (4).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 2017-10-13 13:03:12
* solution_verdict: Accepted language: C++
* run... | 24.485714 | 111 | 0.439129 | kzvd4729 |
aa8d44e6b8873f26185035812f46c6b84a16c02b | 3,723 | hpp | C++ | libvast/vast/bloom_filter_synopsis.hpp | krionbsd/vast | c9fbc7230cac21886cf9d032e57b752276ba7ff7 | [
"BSD-3-Clause"
] | 249 | 2019-08-26T01:44:45.000Z | 2022-03-26T14:12:32.000Z | libvast/vast/bloom_filter_synopsis.hpp | krionbsd/vast | c9fbc7230cac21886cf9d032e57b752276ba7ff7 | [
"BSD-3-Clause"
] | 586 | 2019-08-06T13:10:36.000Z | 2022-03-31T08:31:00.000Z | libvast/vast/bloom_filter_synopsis.hpp | krionbsd/vast | c9fbc7230cac21886cf9d032e57b752276ba7ff7 | [
"BSD-3-Clause"
] | 37 | 2019-08-16T02:01:14.000Z | 2022-02-21T16:13:59.000Z | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2020 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "vast/bloom_filter.hpp"
#include ... | 31.820513 | 76 | 0.659952 | krionbsd |
aa8e1e5f59c0290cf380add3b9c0bec92a63f80a | 16,191 | cpp | C++ | src/BezierScheme.cpp | Junology/bord2 | 0068885144032d4a8e30c6f2c5898918d00b1d8f | [
"MIT"
] | null | null | null | src/BezierScheme.cpp | Junology/bord2 | 0068885144032d4a8e30c6f2c5898918d00b1d8f | [
"MIT"
] | null | null | null | src/BezierScheme.cpp | Junology/bord2 | 0068885144032d4a8e30c6f2c5898918d00b1d8f | [
"MIT"
] | null | null | null | /*!
* \file BezierScheme.cpp
* \author Jun Yoshida
* \copyright (c) 2020 Jun Yoshida.
* The project is released under the MIT License.
* \date February 23, 2020: created
*/
#include "BezierScheme.hpp"
#include <set>
#include <thread>
#include <mutex>
#include <iostream>
using BezierSequence = typename BezierS... | 36.140625 | 126 | 0.481379 | Junology |