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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ceab53251ac88e725579170ebf7e67ff068b354 | 5,472 | cpp | C++ | projects/Rose-To-LLVM/src/rosetollvm/Option.cpp | ouankou/rose | 76f2a004bd6d8036bc24be2c566a14e33ba4f825 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | projects/Rose-To-LLVM/src/rosetollvm/Option.cpp | WildeGeist/rose | 17db6454e8baba0014e30a8ec23df1a11ac55a0c | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | projects/Rose-To-LLVM/src/rosetollvm/Option.cpp | WildeGeist/rose | 17db6454e8baba0014e30a8ec23df1a11ac55a0c | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | #include <rosetollvm/Option.h>
#include <rosetollvm/Control.h>
#include <map>
#include <vector>
#include <string>
#include <sysexits.h>
using namespace std;
using namespace llvm;
using namespace boost::program_options;
#define ROSE_PREFIX "rose2llvm:"
#define LLC_PREFIX "llc:"
string Option::roseToLLVMModulePrefix... | 34.415094 | 135 | 0.539474 | ouankou |
6cf1c785792de12969edf8c8cf3721b725041a69 | 1,891 | cpp | C++ | old/src/frontend/qt5/Qt5Locals.cpp | fungosforks/ProDBG | 43d8b43660e852b1efd34350af5c7f2ba2ccdae5 | [
"MIT"
] | 1 | 2016-03-15T19:03:38.000Z | 2016-03-15T19:03:38.000Z | old/src/frontend/qt5/Qt5Locals.cpp | fungosforks/ProDBG | 43d8b43660e852b1efd34350af5c7f2ba2ccdae5 | [
"MIT"
] | null | null | null | old/src/frontend/qt5/Qt5Locals.cpp | fungosforks/ProDBG | 43d8b43660e852b1efd34350af5c7f2ba2ccdae5 | [
"MIT"
] | null | null | null | #include "Qt5Locals.h"
#include "ProDBGAPI.h"
#include "Qt5DebugSession.h"
#include "core/log.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
namespace prodbg
{
/////////////////////////////////////////////////////////////////////////////////... | 25.554054 | 119 | 0.419884 | fungosforks |
6cf41f6bdbc060b85d26dae663ef589d47a71c62 | 535 | cpp | C++ | main.cpp | samcrow/GripperSimulator | fd41f86512ba308a64e12c5b1992d5e7b71c6a1f | [
"MIT"
] | null | null | null | main.cpp | samcrow/GripperSimulator | fd41f86512ba308a64e12c5b1992d5e7b71c6a1f | [
"MIT"
] | null | null | null | main.cpp | samcrow/GripperSimulator | fd41f86512ba308a64e12c5b1992d5e7b71c6a1f | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include <QApplication>
#include "Models/simulation.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QApplication::setApplicationName("Gripper Simulator");
QApplication::setApplicationDisplayName("Gripper simulator");
QApplication::setOrganizationDomain("edu.washington.c... | 25.47619 | 65 | 0.742056 | samcrow |
6cf4ff43b3ff386d064ed3d8b62861eb3807ba5c | 1,563 | cpp | C++ | Proj_Tank/Source/Proj_Tank/Private/TankTrack.cpp | HalfMAI/UE_LEARN_TANK_C- | 3d7daf9d45bd3285a9011aa6f8fe52b0ed186e56 | [
"MIT"
] | null | null | null | Proj_Tank/Source/Proj_Tank/Private/TankTrack.cpp | HalfMAI/UE_LEARN_TANK_C- | 3d7daf9d45bd3285a9011aa6f8fe52b0ed186e56 | [
"MIT"
] | null | null | null | Proj_Tank/Source/Proj_Tank/Private/TankTrack.cpp | HalfMAI/UE_LEARN_TANK_C- | 3d7daf9d45bd3285a9011aa6f8fe52b0ed186e56 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "TankTrack.h"
UTankTrack::UTankTrack()
{
PrimaryComponentTick.bCanEverTick = true;
OnComponentHit.AddDynamic(this, &UTankTrack::OnHit);
}
void UTankTrack::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTic... | 33.255319 | 163 | 0.770313 | HalfMAI |
6cf504e308c5c4b586c26ac153dc748153ba0eb6 | 737 | cpp | C++ | 0728-Three Distinct Factors/0728-Three Distinct Factors.cpp | lightwindy/LintCode-1 | 316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0701-0800/0728-Three Distinct Factors/0728-Three Distinct Factors.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0701-0800/0728-Three Distinct Factors/0728-Three Distinct Factors.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
/*
* @param : the given number
* @return: return true if it has exactly three distinct factors, otherwise false
*/
bool isThreeDisctFactors(long long n) {
// write your code here
long long sqrtn = sqrt(n);
if (sqrtn * sqrtn != n)
retur... | 23.03125 | 86 | 0.446404 | lightwindy |
6cf527b4c1672831c6d3153232dbb8dbddba0c43 | 470 | hpp | C++ | test/utils/typeTraits.hpp | Tradias/contiguous | 91d0e3cd150cb3515723a5b70ef030158d37e63f | [
"MIT"
] | 3 | 2021-05-20T16:42:37.000Z | 2022-03-15T22:23:23.000Z | test/utils/typeTraits.hpp | Tradias/contiguous | 91d0e3cd150cb3515723a5b70ef030158d37e63f | [
"MIT"
] | 1 | 2021-05-22T16:00:46.000Z | 2021-05-22T17:50:25.000Z | test/utils/typeTraits.hpp | Tradias/contiguous | 91d0e3cd150cb3515723a5b70ef030158d37e63f | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Dennis Hezel
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#ifndef CNTGS_UTILS_TYPETRAITS_HPP
#define CNTGS_UTILS_TYPETRAITS_HPP
namespace cntgs::test
{
template <class T>
struct RemoveCvref
{
using Type = std::remove_cv_t<std::remove_reference... | 21.363636 | 62 | 0.757447 | Tradias |
6cf69ca054eecc07ed3c1f8c7cffabaf3972fedf | 1,677 | cc | C++ | chrome/common/net/net_error_tracker.cc | pozdnyakov/chromium-crosswalk | 0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 9 | 2018-09-21T05:36:12.000Z | 2021-11-15T15:14:36.000Z | chrome/common/net/net_error_tracker.cc | pozdnyakov/chromium-crosswalk | 0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/common/net/net_error_tracker.cc | pozdnyakov/chromium-crosswalk | 0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2018-11-28T14:54:13.000Z | 2020-07-02T07:36:07.000Z | // Copyright (c) 2013 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 "chrome/common/net/net_error_tracker.h"
NetErrorTracker::NetErrorTracker(const Callback& callback)
: callback_(callback),
load_sta... | 25.029851 | 79 | 0.737627 | pozdnyakov |
6cf88e0fd270bdb0d7e57328b45bf7441862b6c9 | 3,388 | cpp | C++ | app/src/cpp/libcimbar/src/lib/bit_file/test/bitbufferTest.cpp | sz3/cfc | 527a22869c713d22ab436f8ce51fefb24a01d6dc | [
"MIT"
] | 22 | 2020-08-21T01:19:35.000Z | 2022-03-05T21:30:21.000Z | app/src/cpp/libcimbar/src/lib/bit_file/test/bitbufferTest.cpp | sz3/cfc | 527a22869c713d22ab436f8ce51fefb24a01d6dc | [
"MIT"
] | 2 | 2021-01-26T19:57:28.000Z | 2022-03-07T02:41:39.000Z | app/src/cpp/libcimbar/src/lib/bit_file/test/bitbufferTest.cpp | sz3/cfc | 527a22869c713d22ab436f8ce51fefb24a01d6dc | [
"MIT"
] | 3 | 2021-01-12T23:52:36.000Z | 2022-03-29T02:01:46.000Z | /* This code is subject to the terms of the Mozilla Public License, v.2.0. http://mozilla.org/MPL/2.0/. */
#include "unittest.h"
#include "bitbuffer.h"
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
TEST_CASE( "bitbufferTest/testSimple.1", "[unit]" )
{
bitbuffer bb;
bb.write(1, 1, 1);
b... | 23.047619 | 106 | 0.639906 | sz3 |
6cf9a80d28702ec7db96cfb60afb711ee87d7e2d | 634 | cpp | C++ | SystemResource/Source/Image/PNG/Chunk/PNGInterlaceMethod.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 5 | 2021-10-19T18:30:43.000Z | 2022-03-19T22:02:02.000Z | SystemResource/Source/Image/PNG/Chunk/PNGInterlaceMethod.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 12 | 2022-03-09T13:40:21.000Z | 2022-03-31T12:47:48.000Z | SystemResource/Source/Image/PNG/Chunk/PNGInterlaceMethod.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | null | null | null | #include "PNGInterlaceMethod.h"
BF::PNGInterlaceMethod BF::ConvertPNGInterlaceMethod(unsigned char interlaceMethod)
{
switch (interlaceMethod)
{
case 0u:
return PNGInterlaceMethod::NoInterlace;
case 1u:
return PNGInterlaceMethod::ADAM7Interlace;
default:
return PNGInterlaceMethod::Invalid;
}
}
un... | 19.8125 | 83 | 0.76183 | BitPaw |
9f03fd6bb217568fe30ca36e27ab870eaacdbc7e | 7,849 | cpp | C++ | sm/lib/math.cpp | rimuz/smudge | bd7777b62da97b187d65c2dbcd2d28c420ae0878 | [
"Apache-2.0"
] | 4 | 2018-01-17T14:56:00.000Z | 2018-12-14T06:48:40.000Z | sm/lib/math.cpp | rimuz/smudge | bd7777b62da97b187d65c2dbcd2d28c420ae0878 | [
"Apache-2.0"
] | null | null | null | sm/lib/math.cpp | rimuz/smudge | bd7777b62da97b187d65c2dbcd2d28c420ae0878 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016-2017 Riccardo Musso
*
* 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... | 35.515837 | 101 | 0.464136 | rimuz |
2f5678bbdb281927eca3dd55655506673a20703b | 5,213 | cc | C++ | o3d/statsreport/aggregator-win32.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | o3d/statsreport/aggregator-win32.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | o3d/statsreport/aggregator-win32.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | /*
* Copyright 2009, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 30.132948 | 78 | 0.6925 | rwatson |
2f5c456bd0100c0158b5db109697989b5073a800 | 16,783 | cpp | C++ | simulator/src/contention_sim.cpp | CMU-SAFARI/DAMOV | ed39a0642f22d551bed6ab6baaf91c89cc8a3855 | [
"MIT"
] | 17 | 2021-07-10T13:22:26.000Z | 2022-02-09T20:11:39.000Z | simulator/src/contention_sim.cpp | CMU-SAFARI/DAMOV | ed39a0642f22d551bed6ab6baaf91c89cc8a3855 | [
"MIT"
] | 4 | 2021-08-18T14:07:24.000Z | 2022-01-24T16:38:06.000Z | simulator/src/contention_sim.cpp | CMU-SAFARI/DAMOV | ed39a0642f22d551bed6ab6baaf91c89cc8a3855 | [
"MIT"
] | 2 | 2021-08-03T10:56:16.000Z | 2022-01-31T12:10:56.000Z | /** $lic$
* Copyright (C) 2012-2015 by Massachusetts Institute of Technology
* Copyright (C) 2010-2013 by The Board of Trustees of Stanford University
*
* This file is part of zsim.
*
* zsim is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as publishe... | 39.212617 | 183 | 0.609605 | CMU-SAFARI |
2f5f5c9114fa97332e79bd33b79e9104a983c283 | 135 | cpp | C++ | test/mwe-toml/src/main.cpp | thautwarm/clang-build | 79cc6bd8e17a328d9e6a0fbdada2ba88600423aa | [
"MIT"
] | 2 | 2018-02-28T10:16:43.000Z | 2018-03-08T22:12:45.000Z | test/mwe-toml/src/main.cpp | thautwarm/clang-build | 79cc6bd8e17a328d9e6a0fbdada2ba88600423aa | [
"MIT"
] | 23 | 2018-02-25T21:46:37.000Z | 2018-03-09T20:47:15.000Z | test/mwe-toml/src/main.cpp | thautwarm/clang-build | 79cc6bd8e17a328d9e6a0fbdada2ba88600423aa | [
"MIT"
] | null | null | null | #include <iostream>
#include <main.hpp>
int main(int argc, char ** argv)
{
std::cerr << main_print() << std::endl;
return 0;
} | 16.875 | 43 | 0.607407 | thautwarm |
2f69330424389358a648e06eda0b865082abdc9c | 674 | cpp | C++ | sttcl_tests/src/sttcl_tests.cpp | makulik/sttcl | b1be1969b705e9b6a42fadd8581ab678b8485aa4 | [
"Unlicense",
"BSD-3-Clause"
] | 16 | 2015-05-10T03:52:31.000Z | 2020-09-06T20:32:20.000Z | sttcl_tests/src/sttcl_tests.cpp | gnihtemoSgnihtemos/sttcl | b1be1969b705e9b6a42fadd8581ab678b8485aa4 | [
"Unlicense",
"BSD-3-Clause"
] | 2 | 2015-02-01T17:35:07.000Z | 2019-03-08T18:05:53.000Z | sttcl_tests/src/sttcl_tests.cpp | gnihtemoSgnihtemos/sttcl | b1be1969b705e9b6a42fadd8581ab678b8485aa4 | [
"Unlicense",
"BSD-3-Clause"
] | 7 | 2015-01-27T21:41:55.000Z | 2021-03-25T13:41:20.000Z | //============================================================================
// Name : sttcl_tests.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#inclu... | 28.083333 | 78 | 0.535608 | makulik |
2f6d85779407fc63cded3ab2a3068a12bf531f2b | 22,284 | cpp | C++ | hplip-3.20.3/prnt/hpijs/dj895_maps2.cpp | Deril-Pana/wikiBlackcoinNL | 9633307f0b485c27feae5da242944adf450e8963 | [
"MIT"
] | null | null | null | hplip-3.20.3/prnt/hpijs/dj895_maps2.cpp | Deril-Pana/wikiBlackcoinNL | 9633307f0b485c27feae5da242944adf450e8963 | [
"MIT"
] | 1 | 2021-11-20T16:33:39.000Z | 2021-11-20T16:33:39.000Z | hplip-3.20.3/prnt/hpijs/dj895_maps2.cpp | Deril-Pana/wikiBlackcoinNL | 9633307f0b485c27feae5da242944adf450e8963 | [
"MIT"
] | null | null | null | /*****************************************************************************\
dj895_maps2.cpp : Color maps for DJ895
Copyright (c) 1996 - 2015, HP Co.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
... | 76.315068 | 83 | 0.781368 | Deril-Pana |
2f72a4d39ce29a50e23462270bfb55be3547cf62 | 429 | hpp | C++ | include/zmf/ModuleState.hpp | zeroSDN/ZeroModuleFramework | a2262a77891b9c6b34d33dc6ff1b9734175fdcce | [
"Apache-2.0"
] | null | null | null | include/zmf/ModuleState.hpp | zeroSDN/ZeroModuleFramework | a2262a77891b9c6b34d33dc6ff1b9734175fdcce | [
"Apache-2.0"
] | null | null | null | include/zmf/ModuleState.hpp | zeroSDN/ZeroModuleFramework | a2262a77891b9c6b34d33dc6ff1b9734175fdcce | [
"Apache-2.0"
] | null | null | null | #ifndef ZMF_MODULESTATE_HPP
#define ZMF_MODULESTATE_HPP
namespace zmf {
namespace data {
/**
* @details Lifecycle state of a module, dead (shut down), inactive (standby) or active
* @author Jonas Grunert
* @date created on 8/8/15.
*/
enum ModuleState {
... | 22.578947 | 95 | 0.547786 | zeroSDN |
2f7638d0e6b2bb427f061c9f3ad3fb0794c270b1 | 1,796 | cpp | C++ | src/symbol.cpp | egor-tensin/winapi-debug | 2dee4e95e629d315e8d68bf275c900ffbb7317c0 | [
"MIT"
] | null | null | null | src/symbol.cpp | egor-tensin/winapi-debug | 2dee4e95e629d315e8d68bf275c900ffbb7317c0 | [
"MIT"
] | null | null | null | src/symbol.cpp | egor-tensin/winapi-debug | 2dee4e95e629d315e8d68bf275c900ffbb7317c0 | [
"MIT"
] | null | null | null | // Copyright (c) 2020 Egor Tensin <Egor.Tensin@gmail.com>
// This file is part of the "winapi-debug" project.
// For details, see https://github.com/egor-tensin/winapi-debug.
// Distributed under the MIT License.
#include <winapi/debug.hpp>
#include <winapi/utf8.hpp>
#include <dbghelp.h>
#include <windows.h>
#includ... | 28.507937 | 97 | 0.706013 | egor-tensin |
2f763ba026d961893d335f43b10ab2a395343542 | 12,157 | cpp | C++ | src/decaf/workflow.cpp | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 1 | 2019-05-10T02:50:50.000Z | 2019-05-10T02:50:50.000Z | src/decaf/workflow.cpp | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 2 | 2020-10-28T03:44:51.000Z | 2021-01-18T19:49:33.000Z | src/decaf/workflow.cpp | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 2 | 2018-08-31T14:02:47.000Z | 2020-04-17T16:01:54.000Z | #include <decaf/workflow.hpp>
using namespace decaf;
void
WorkflowNode::add_out_link(int link)
{
out_links.push_back(link);
}
void
WorkflowNode::
add_in_link(int link)
{
in_links.push_back(link);
}
bool
Workflow::my_node(int proc, int node) // whether my process is part of this node
{
return(proc... | 39.090032 | 160 | 0.520934 | tpeterka |
2f77111294598798b89ea51bd40cf8eb9f74ad14 | 1,909 | cpp | C++ | EngineUnitTests/src/Engine/ECS/EntityTests.cpp | Saduras/BattleSimGame | e0d0d198a6b410ce3368f053cac87b34ff55c922 | [
"Apache-2.0"
] | null | null | null | EngineUnitTests/src/Engine/ECS/EntityTests.cpp | Saduras/BattleSimGame | e0d0d198a6b410ce3368f053cac87b34ff55c922 | [
"Apache-2.0"
] | null | null | null | EngineUnitTests/src/Engine/ECS/EntityTests.cpp | Saduras/BattleSimGame | e0d0d198a6b410ce3368f053cac87b34ff55c922 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "CppUnitTest.h"
#include "Engine/Log.h"
#include "Engine/Scene.h"
#include "Engine/ECS/Entity.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace Engine;
namespace EntityTests
{
struct TestComponent {
TestComponent() {}
TestComponent(int data) : m_Data(dat... | 20.75 | 67 | 0.678366 | Saduras |
2f7d41c4b4b63bf1f0cc902a4df86407a046a7cb | 543 | cpp | C++ | Graph/Adjcency-List.cpp | Shiv-sharma-111/jubilant-sniffle | 4cd1ce6fe08f8749f16e569b3a78f3b5576ebe17 | [
"MIT"
] | null | null | null | Graph/Adjcency-List.cpp | Shiv-sharma-111/jubilant-sniffle | 4cd1ce6fe08f8749f16e569b3a78f3b5576ebe17 | [
"MIT"
] | null | null | null | Graph/Adjcency-List.cpp | Shiv-sharma-111/jubilant-sniffle | 4cd1ce6fe08f8749f16e569b3a78f3b5576ebe17 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
void addEdge(vector<int> vec[],int u,int v)
{
vec[u].push_back(v);
vec[v].push_back(u);
}
void display(vector<int> vec[],int V)
{
for(int i=0;i<V;i++)
{
cout<<i<<"-->>";
for(auto node : vec[i])
{
cout<<node<<" ";
}
cout<<endl;
}
}
int main... | 15.970588 | 43 | 0.539595 | Shiv-sharma-111 |
2f7ee2e72dc82fddfa81e31f0bd1bf7d900e06f9 | 4,879 | cpp | C++ | gluecodium/src/test/resources/smoke/method_overloads/output/dart/ffi/ffi_smoke_MethodOverloads.cpp | Dschoordsch/gluecodium | a7b3833ce840284cadf968b6f8441888f970c134 | [
"Apache-2.0"
] | 1 | 2020-02-10T06:35:33.000Z | 2020-02-10T06:35:33.000Z | gluecodium/src/test/resources/smoke/method_overloads/output/dart/ffi/ffi_smoke_MethodOverloads.cpp | Dschoordsch/gluecodium | a7b3833ce840284cadf968b6f8441888f970c134 | [
"Apache-2.0"
] | null | null | null | gluecodium/src/test/resources/smoke/method_overloads/output/dart/ffi/ffi_smoke_MethodOverloads.cpp | Dschoordsch/gluecodium | a7b3833ce840284cadf968b6f8441888f970c134 | [
"Apache-2.0"
] | null | null | null | #include "ffi_smoke_MethodOverloads.h"
#include "ConversionBase.h"
#include "smoke/MethodOverloads.h"
#include <cstdint>
#include <memory>
#include <string>
#include <memory>
#include <new>
#ifdef __cplusplus
extern "C" {
#endif
bool
smoke_MethodOverloads_isBoolean__Boolean(FfiOpaqueHandle _self, bool input) {
retu... | 40.322314 | 164 | 0.721049 | Dschoordsch |
2f7fb9099bc93a7cead2e83914a1bc388996e3f8 | 2,551 | cpp | C++ | src/modules/osgFX/generated_code/Registry.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 3 | 2017-04-20T09:11:47.000Z | 2021-04-29T19:24:03.000Z | src/modules/osgFX/generated_code/Registry.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | src/modules/osgFX/generated_code/Registry.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "wrap_osgFX.h"
#include "wrap_referenced.h"
#include "Registry.pypp.hpp"
namespace bp = boost::python;
void register_Registry_class(){
{ //::osgFX::Registry
typedef bp::class_< osgFX::Registry, bp::bases< ::osg::Referenced >, ... | 38.651515 | 150 | 0.558996 | cmbruns |
2f83701ee3b82b1df8757dc39741086f3ee53bbe | 6,518 | hxx | C++ | OCC/opencascade-7.2.0/x64/debug/inc/OpenGl_AspectMarker.hxx | jiaguobing/FastCAE | 2348ab87e83fe5c704e4c998cf391229c25ac5d5 | [
"BSD-3-Clause"
] | 2 | 2020-02-21T01:04:35.000Z | 2020-02-21T03:35:37.000Z | OCC/opencascade-7.2.0/x64/debug/inc/OpenGl_AspectMarker.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | OCC/opencascade-7.2.0/x64/debug/inc/OpenGl_AspectMarker.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2021-11-21T13:03:26.000Z | 2021-11-21T13:03:26.000Z | // Created on: 2011-07-13
// Created by: Sergey ZERCHANINOV
// Copyright (c) 2011-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2... | 36.617978 | 99 | 0.653421 | jiaguobing |
2f8db47bddee6e9a2a0e5701cc7bad34a5e526f8 | 2,672 | cpp | C++ | lectures/lecture9/pointers.cpp | clnznr/advancedprogramming | 46d1826ab7aca155835e4212050f573382913638 | [
"Apache-2.0"
] | 1 | 2017-02-23T23:12:29.000Z | 2017-02-23T23:12:29.000Z | lectures/lecture9/pointers.cpp | cleongh/advancedprogramming | 46d1826ab7aca155835e4212050f573382913638 | [
"Apache-2.0"
] | null | null | null | lectures/lecture9/pointers.cpp | cleongh/advancedprogramming | 46d1826ab7aca155835e4212050f573382913638 | [
"Apache-2.0"
] | 1 | 2017-07-21T10:38:53.000Z | 2017-07-21T10:38:53.000Z | #include <iostream>
#include <memory>
// pointer to pointer to modify a pointer
int c = 9;
void modify_pointer(int ** p) {
*p = &c;
}
int d = 15;
// note that the order is "*&"
void reference_to_pointer(int *& p) {
p = &d;
}
// Pointers and references
void pointers_and_references() {
int a = 4;
int *... | 26.196078 | 118 | 0.57485 | clnznr |
2f92ca5b5ff3b3ebf8eb8ac7cf0af1c877b877a1 | 468 | cc | C++ | src/tests/unit/common/test_3Dpoint.cc | ViBOT-Erasmus/BSCVDemoCpp | 856e655171115498c9d5ccd2bb8e89ed95726e77 | [
"BSD-3-Clause"
] | 2 | 2018-03-20T09:22:27.000Z | 2018-04-29T15:17:20.000Z | src/tests/unit/common/test_3Dpoint.cc | ViBOT-Erasmus/BSCVDemoCpp1718 | 856e655171115498c9d5ccd2bb8e89ed95726e77 | [
"BSD-3-Clause"
] | 25 | 2018-02-20T19:20:23.000Z | 2019-04-12T10:04:44.000Z | src/tests/unit/common/test_3Dpoint.cc | ViBOT-Erasmus/BSCVDemoCpp1718 | 856e655171115498c9d5ccd2bb8e89ed95726e77 | [
"BSD-3-Clause"
] | 14 | 2018-02-20T19:15:20.000Z | 2019-04-12T09:37:11.000Z | // "Copyright [2018] Sadiq"
#include <gtest/gtest.h>
#include <common/3Dpoint.hpp>
// Create our own test to check the different function of our class
// This function will take two arguments:
// * The test case name
// * The test name
TEST(first_coordinates_values, second_coordinate_values) {
Geometry coordinates... | 31.2 | 67 | 0.726496 | ViBOT-Erasmus |
2f9b3d717e3caa78911f78082bf3e0cb13769dc9 | 2,234 | cpp | C++ | 数据结构/AC自动机/acwing_1285.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | 3 | 2020-11-16T08:58:30.000Z | 2020-11-16T08:58:33.000Z | 数据结构/AC自动机/acwing_1285.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | 数据结构/AC自动机/acwing_1285.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)(x).size())
typedef vector<int> vi;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
mt19937 mrand(random_device{}());
const ll mod = 1000000007;
int rnd(int x) {... | 25.678161 | 144 | 0.519248 | tempure |
2f9f82a68b9f54a3e71cde89cc10686ab8bc3dae | 288 | cc | C++ | src/clstepcore/sdai.cc | h4ck3rm1k3/stepcode | 2daec0e0ba1e888e17efc82d707c516a46724fe6 | [
"BSD-3-Clause"
] | 1 | 2019-04-27T20:15:00.000Z | 2019-04-27T20:15:00.000Z | src/clstepcore/sdai.cc | h4ck3rm1k3/stepcode | 2daec0e0ba1e888e17efc82d707c516a46724fe6 | [
"BSD-3-Clause"
] | null | null | null | src/clstepcore/sdai.cc | h4ck3rm1k3/stepcode | 2daec0e0ba1e888e17efc82d707c516a46724fe6 | [
"BSD-3-Clause"
] | null | null | null | #include <limits.h>
#include <cfloat>
#include <sdai.h>
#include "scl_memmgr.h"
const char * SCLversion = "STEPcode, github.com/stepcode/stepcode";
const SDAI_Integer SDAI_INT_NULL = LONG_MAX;
const SDAI_Real SDAI_REAL_NULL = FLT_MIN;
const SDAI_Real SDAI_NUMBER_NULL = FLT_MIN;
| 24 | 67 | 0.760417 | h4ck3rm1k3 |
2f9fe5a1197f74058372f886a75342e513bbdefd | 6,126 | cpp | C++ | classes/Perlin.cpp | ThomasRanvier/perlin_simplex_noise | dc498ce5a3f9303ffbcfe39b5f34607345333ac2 | [
"MIT"
] | null | null | null | classes/Perlin.cpp | ThomasRanvier/perlin_simplex_noise | dc498ce5a3f9303ffbcfe39b5f34607345333ac2 | [
"MIT"
] | null | null | null | classes/Perlin.cpp | ThomasRanvier/perlin_simplex_noise | dc498ce5a3f9303ffbcfe39b5f34607345333ac2 | [
"MIT"
] | null | null | null | #include "../headers/Perlin.h"
unsigned char Perlin::perm[] = {151,160,137,91,90,15,
131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,
190, 6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,
88,237,1... | 34.610169 | 100 | 0.511263 | ThomasRanvier |
2fa7897be464a8fe49df5edcb13522bc878650a2 | 2,262 | cc | C++ | 1-Simulation/source/src/WindowHit.cc | surfound/CXPD | 788a125048cc3d79244a0562d94263e48ca22a6a | [
"Apache-2.0"
] | 1 | 2019-08-01T03:48:26.000Z | 2019-08-01T03:48:26.000Z | 1-Simulation/source/src/WindowHit.cc | surfound/CXPD | 788a125048cc3d79244a0562d94263e48ca22a6a | [
"Apache-2.0"
] | null | null | null | 1-Simulation/source/src/WindowHit.cc | surfound/CXPD | 788a125048cc3d79244a0562d94263e48ca22a6a | [
"Apache-2.0"
] | null | null | null | //*********************************************
// This is auto generated by G4gen 0.6
// author:Qian
#include "WindowHit.hh"
G4ThreadLocal G4Allocator<WindowHit> *WindowHitAllocator = 0;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
WindowHit::Win... | 25.41573 | 78 | 0.60168 | surfound |
2fa89fda606deb339cd9c9c854ec09d8a2cb8384 | 22,678 | cxx | C++ | osprey/be/lno/ff_pragmas.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/lno/ff_pragmas.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/lno/ff_pragmas.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free S... | 32.304843 | 79 | 0.621263 | sharugupta |
2fa8de580f1c1d86cb83c7c315ca50aa55a30a15 | 1,089 | cpp | C++ | Irrlichtv1/IOController.cpp | UnProgramator/Drone-AI-Training-Framework | bb6fb2b83331d6e0e307c6579184330c448efece | [
"Zlib",
"BSD-3-Clause"
] | 1 | 2021-03-16T16:28:11.000Z | 2021-03-16T16:28:11.000Z | Irrlichtv1/IOController.cpp | UnProgramator/Licenta_alex | bb6fb2b83331d6e0e307c6579184330c448efece | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | Irrlichtv1/IOController.cpp | UnProgramator/Licenta_alex | bb6fb2b83331d6e0e307c6579184330c448efece | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | #include "IOcontroller.h"
#include <irrlicht.h>
#include <iostream>
static std::map<irr::EKEY_CODE, map_fun_type> map_apel;
// This is the one method that we have to implement
bool MyEventReceiver::OnEvent(const irr::SEvent& event)
{
// Remember whether each key is down or up
if (event.EventType == irr::EET_... | 19.8 | 69 | 0.672176 | UnProgramator |
2faef50ed5b847ae7cf39e086f546acfa8aee177 | 1,042 | cc | C++ | qtclient/valuespresenter.cc | chrisandreae/keyboard-firmware | 91e71bf6e46b9d0ef4880c023afcd32131c49ff4 | [
"Ruby"
] | 111 | 2015-01-06T21:14:49.000Z | 2022-02-06T14:29:27.000Z | qtclient/valuespresenter.cc | chrisandreae/keyboard-firmware | 91e71bf6e46b9d0ef4880c023afcd32131c49ff4 | [
"Ruby"
] | 18 | 2015-01-31T15:16:54.000Z | 2022-02-26T10:18:39.000Z | qtclient/valuespresenter.cc | chrisandreae/keyboard-firmware | 91e71bf6e46b9d0ef4880c023afcd32131c49ff4 | [
"Ruby"
] | 22 | 2015-05-13T00:29:46.000Z | 2019-03-09T10:07:38.000Z | #include <QDebug>
#include "valuespresenter.h"
#include "device.h"
#include "keyboardvalues.h"
#include "keyboardmodel.h"
ValuesPresenter::ValuesPresenter() {
mView = new KeyboardValues(this);
}
ValuesPresenter::~ValuesPresenter() {
if (!mView->parent()) {
delete mView;
}
}
void ValuesPresenter::setModel(QSh... | 21.708333 | 69 | 0.641075 | chrisandreae |
2fafd37ad5f5a07f1891777cef223c8c35224285 | 2,087 | cpp | C++ | death-star-bench/socialNetwork/src/HomeTimelineService/HomeTimelineService.cpp | usmanager/microservices | 56d2f639617d7e2122b602067e18240d91529284 | [
"MIT"
] | null | null | null | death-star-bench/socialNetwork/src/HomeTimelineService/HomeTimelineService.cpp | usmanager/microservices | 56d2f639617d7e2122b602067e18240d91529284 | [
"MIT"
] | null | null | null | death-star-bench/socialNetwork/src/HomeTimelineService/HomeTimelineService.cpp | usmanager/microservices | 56d2f639617d7e2122b602067e18240d91529284 | [
"MIT"
] | null | null | null | #include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/server/TThreadedServer.h>
#include <thrift/transport/TServerSocket.h>
#include <thrift/transport/TBufferTransports.h>
#include <nlohmann/json.hpp>
#include <signal.h>
#include "HomeTimelineHandler.h"
#include "../ClientPool.h"
#include "../RedisClient.h"
#i... | 33.66129 | 78 | 0.71586 | usmanager |
2fb0bc54dacf0e815b8e1bef99c3d1eab1c32c36 | 2,061 | cc | C++ | buffer/buffered_reader.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | buffer/buffered_reader.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | buffer/buffered_reader.cc | eaugeas/crossroads | 9dc1ea074a9bf59e4b6aa61ce75f93ee953ee05d | [
"MIT"
] | null | null | null | // Copyright (c) 2019, tlblanc <tlblanc1490 at gmail dot com>
#include "buffered_reader.hpp"
#include "io/copy.hpp"
static inline Status load_buffer(Source *source, Buffer *buffer) {
size_t cpbytes;
return copy(source, buffer, &cpbytes);
}
static inline Status _read(
Buffer *buffer,
Source *source,
u... | 23.157303 | 68 | 0.67443 | eaugeas |
2fb3c1238b73311b6f1a708103c325f7c7e7929e | 787 | cpp | C++ | SFMLWindow/SFMLWindow/main.cpp | coltonhurst/learning-sfml | 7c358d9542728847bed9066eb92c686093a5c1f4 | [
"MIT"
] | null | null | null | SFMLWindow/SFMLWindow/main.cpp | coltonhurst/learning-sfml | 7c358d9542728847bed9066eb92c686093a5c1f4 | [
"MIT"
] | null | null | null | SFMLWindow/SFMLWindow/main.cpp | coltonhurst/learning-sfml | 7c358d9542728847bed9066eb92c686093a5c1f4 | [
"MIT"
] | null | null | null | /*
SFML Window Example
Based on: https://www.sfml-dev.org/tutorials/2.5/window-window.php
*/
#include <SFML/Window.hpp>
int main(int, char const**)
{
// Create the window
sf::Window window;
window.create(sf::VideoMode(800, 600), "My window");
// Prevents tearing
window.setVerticalSync... | 23.848485 | 97 | 0.581957 | coltonhurst |
2fb4278919d22d8a45b32b9ea3606b29b0825286 | 1,782 | hpp | C++ | Sokoban/src/Engine/Scene/Scene_Templates.hpp | Elysia-ff/Sokoban_Win | 3899c2d20c65959152669b52ba215777977c08e1 | [
"MIT"
] | null | null | null | Sokoban/src/Engine/Scene/Scene_Templates.hpp | Elysia-ff/Sokoban_Win | 3899c2d20c65959152669b52ba215777977c08e1 | [
"MIT"
] | null | null | null | Sokoban/src/Engine/Scene/Scene_Templates.hpp | Elysia-ff/Sokoban_Win | 3899c2d20c65959152669b52ba215777977c08e1 | [
"MIT"
] | null | null | null | #pragma once
#include "Scene.h"
#include <cassert>
#include <type_traits>
template <typename T>
T& Elysia::Engine::Scene::AddGameObject(const tstring& objectName)
{
static_assert(std::is_base_of_v<GameObject, T>, "Type T must be inherited from GameObject");
assert(components.find(newInstanceID) == components.end()... | 28.285714 | 99 | 0.742424 | Elysia-ff |
2fb53fd470e1e9998f07b49ed54583d69b76bade | 394 | cpp | C++ | src/ResponseFromTemplate.cpp | NyanKiyoshi/Webpp | 5120c588e88c949e8ac1fd2e3bf686317b15ccf9 | [
"MIT"
] | 4 | 2018-10-26T10:59:10.000Z | 2020-01-25T08:25:23.000Z | src/ResponseFromTemplate.cpp | NyanKiyoshi/Webpp | 5120c588e88c949e8ac1fd2e3bf686317b15ccf9 | [
"MIT"
] | null | null | null | src/ResponseFromTemplate.cpp | NyanKiyoshi/Webpp | 5120c588e88c949e8ac1fd2e3bf686317b15ccf9 | [
"MIT"
] | null | null | null | //
// Created by sayuri on 7/18/16.
//
#include "Response.h"
#include "ResponseFromTemplate.h"
using namespace WebPP;
ResponseFromTemplate::ResponseFromTemplate(std::string path, const char *response_code, t_insensitive_http_headers *headers)
: _path(path), _response_code(response_code) {
}
void ResponseFr... | 21.888889 | 124 | 0.746193 | NyanKiyoshi |
2fb7494bd1755775e8665020b86abac262fe6796 | 20,606 | cpp | C++ | src/OctTree.cpp | aslatas/render | 79b239e8d9f92309d643049fab44216eb4f24449 | [
"MIT"
] | null | null | null | src/OctTree.cpp | aslatas/render | 79b239e8d9f92309d643049fab44216eb4f24449 | [
"MIT"
] | 9 | 2019-05-09T02:26:55.000Z | 2019-05-10T15:26:39.000Z | src/OctTree.cpp | aslatas/render | 79b239e8d9f92309d643049fab44216eb4f24449 | [
"MIT"
] | null | null | null | #include "OctTree.h"
/*
TODOs for the QuadTree
-> Free your memory!!!
-> Play with Bin growth heuristic
-> Convert the Bin contents to a void* so the tree can be used for other objects
-> Memory Allocator for OctTree
Essentailly the total size of the array containing the octtree is limited by the depth of the
tr... | 38.230056 | 180 | 0.557605 | aslatas |
2fb9fa8a500a98d7dc62ab1abfb740a51de99e1d | 1,758 | hpp | C++ | src/include/Backbone/State.hpp | grigorievich/Viy | c78cfb55e548ce40b9fe3756e4ce2a923b84a552 | [
"Apache-2.0"
] | 14 | 2017-09-08T09:20:37.000Z | 2020-09-20T10:56:22.000Z | src/include/Backbone/State.hpp | grigorievich/Viy | c78cfb55e548ce40b9fe3756e4ce2a923b84a552 | [
"Apache-2.0"
] | null | null | null | src/include/Backbone/State.hpp | grigorievich/Viy | c78cfb55e548ce40b9fe3756e4ce2a923b84a552 | [
"Apache-2.0"
] | 2 | 2018-02-14T16:52:33.000Z | 2018-06-20T22:16:02.000Z | #ifndef STATE_HPP
#define STATE_HPP
#include <StateIdentifiers.hpp>
#include <ResourceIdentifiers.hpp>
#include <SFML/System/Time.hpp>
#include <SFML/Window/Event.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
#include <memory>
namespace sf
{
class RenderWindow;
}
class StateStack;
class Player;
class State
{
... | 19.533333 | 83 | 0.547213 | grigorievich |
2fbc09d57afec89af71c2eb59c22063c6d469704 | 2,716 | hpp | C++ | apps/test_suite/apps/Core/CoreTest.hpp | Koncord/YAPE | 9def79c493bc50b41a371c6e80174d47f795b8f1 | [
"Apache-2.0"
] | 3 | 2015-10-29T16:11:49.000Z | 2021-08-28T08:53:09.000Z | apps/test_suite/apps/Core/CoreTest.hpp | Koncord/YAPE | 9def79c493bc50b41a371c6e80174d47f795b8f1 | [
"Apache-2.0"
] | 13 | 2015-10-29T05:39:16.000Z | 2017-06-11T19:10:07.000Z | apps/test_suite/apps/Core/CoreTest.hpp | Koncord/YAPE | 9def79c493bc50b41a371c6e80174d47f795b8f1 | [
"Apache-2.0"
] | 1 | 2022-03-01T18:47:58.000Z | 2022-03-01T18:47:58.000Z | /*
*
* Copyright (c) 2015-2017 Stanislav Zhukov
*
* 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 appli... | 25.148148 | 83 | 0.616348 | Koncord |
2fbe148302dd91b9eae99b856e23b3b33ab65fa0 | 1,023 | cpp | C++ | mega/src/packet.cpp | jawsper/kerbaltroller | 5320628227e293f5436cdff477dfd68f37ee5a39 | [
"MIT"
] | null | null | null | mega/src/packet.cpp | jawsper/kerbaltroller | 5320628227e293f5436cdff477dfd68f37ee5a39 | [
"MIT"
] | null | null | null | mega/src/packet.cpp | jawsper/kerbaltroller | 5320628227e293f5436cdff477dfd68f37ee5a39 | [
"MIT"
] | null | null | null | #include "Packet.h"
int CPacket::get(uint8_t* packet, uint8_t* packet_len) {
if((rx_len == 0) && Serial.available() > 3) {
while(Serial.read() != 0xBE) {
if(Serial.available() == 0)
return -1;
}
if(Serial.read() == 0xEF) {
rx_len = Serial.read();
... | 25.575 | 64 | 0.45259 | jawsper |
2fbe46572b4da0472d750e13836c0637b73902be | 1,334 | hpp | C++ | Bind/src/Placeholders.hpp | yingyulou/STLToyRoom | c99693416a2bae51217707dfb740d81e27e285b9 | [
"MIT"
] | 3 | 2020-11-11T07:49:17.000Z | 2020-12-21T17:47:03.000Z | Bind/src/Placeholders.hpp | yingyulou/STLToyRoom | c99693416a2bae51217707dfb740d81e27e285b9 | [
"MIT"
] | null | null | null | Bind/src/Placeholders.hpp | yingyulou/STLToyRoom | c99693416a2bae51217707dfb740d81e27e285b9 | [
"MIT"
] | 1 | 2020-12-21T17:47:06.000Z | 2020-12-21T17:47:06.000Z | /*
Placeholders.hpp
================
Placeholders implementation.
*/
#pragma once
#include <cstddef>
namespace Bind_
{
namespace Placeholders
{
////////////////////////////////////////////////////////////////////////////////
// Class __Placeholder
//////////////////////////////////////////////////... | 22.610169 | 80 | 0.566717 | yingyulou |
2fc4d6bf0c10f0fee3cce4d7120ba59296d5fefd | 5,022 | cpp | C++ | src/miner.cpp | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | src/miner.cpp | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | src/miner.cpp | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | #include "miner.hpp"
#include "generator.hpp"
#include "interpreter.hpp"
#include "mutator.hpp"
#include "oeis_manager.hpp"
#include "optimizer.hpp"
#include "parser.hpp"
#include "program_util.hpp"
#include <chrono>
#include <fstream>
#include <random>
#include <sstream>
#include <unordered_set>
#define METRIC_PUBL... | 26.15625 | 119 | 0.585225 | karttu |
2fc4d85f39e11b76b179e52b90f6f8915adf212a | 3,446 | cc | C++ | src/pprint/pprint.cc | zadcha/rethinkdb | bb4f5cc28242dc1e29e9a46a8a931ec54420070c | [
"Apache-2.0"
] | 21,684 | 2015-01-01T03:42:20.000Z | 2022-03-30T13:32:44.000Z | src/pprint/pprint.cc | RethonkDB/rethonkdb | 8c9c1ddc71b1b891fdb8aad7ca5891fc036b80ee | [
"Apache-2.0"
] | 4,067 | 2015-01-01T00:04:51.000Z | 2022-03-30T13:42:56.000Z | src/pprint/pprint.cc | RethonkDB/rethonkdb | 8c9c1ddc71b1b891fdb8aad7ca5891fc036b80ee | [
"Apache-2.0"
] | 1,901 | 2015-01-01T21:05:59.000Z | 2022-03-21T08:14:25.000Z | // Copyright 2010-2015 RethinkDB, all rights reserved.
#include "pprint/pprint.hpp"
#include <algorithm>
#include <vector>
#include <list>
#include <functional>
#include <memory>
#include <string>
#include "utils.hpp"
namespace pprint {
// Pretty printing occurs in two passes.
//
// First we traverse an AST, produc... | 30.767857 | 88 | 0.612594 | zadcha |
2fc7d32b9516b6506d0f5c81e694d03d1f72d988 | 1,508 | cpp | C++ | source/Ch11/drill/drill_11.cpp | mategordos/UDProg-Introduction | 7d522141f3c4b84ee2d19335fef7db9af9ad74bf | [
"CC0-1.0"
] | null | null | null | source/Ch11/drill/drill_11.cpp | mategordos/UDProg-Introduction | 7d522141f3c4b84ee2d19335fef7db9af9ad74bf | [
"CC0-1.0"
] | null | null | null | source/Ch11/drill/drill_11.cpp | mategordos/UDProg-Introduction | 7d522141f3c4b84ee2d19335fef7db9af9ad74bf | [
"CC0-1.0"
] | null | null | null | #include "../../std_lib_facilities.h"
int main() {
int birth_year = 2001;
int a, b, c, d = 0;
cout << birth_year << "\t(Decimal)\n"
<< hex << birth_year << "\t(Hexadecimal)\n"
<< oct << birth_year << "\t(Octal)\n"
<< dec << endl;
cout << showbase << endl;
cout << birth_year << "\t(Decimal)\n"
<< hex << bi... | 30.16 | 120 | 0.511936 | mategordos |
2fd003ef65b1ebdb50b35021b08dd928b4a92d0b | 1,606 | hh | C++ | fields/address.hh | 45G/libsocks6msg | 73b778bfe8efb2c311520617debdfbadf10b6d88 | [
"MIT"
] | 2 | 2020-08-18T11:20:21.000Z | 2022-03-08T23:49:02.000Z | fields/address.hh | 45G/libsocks6msg | 73b778bfe8efb2c311520617debdfbadf10b6d88 | [
"MIT"
] | null | null | null | fields/address.hh | 45G/libsocks6msg | 73b778bfe8efb2c311520617debdfbadf10b6d88 | [
"MIT"
] | null | null | null | #ifndef SOCKS6MSG_ADDRESS_HH
#define SOCKS6MSG_ADDRESS_HH
#include <assert.h>
#include <netinet/ip.h>
#include <netinet/ip6.h>
#include <vector>
#include <optional>
#include <variant>
#include "socks6.h"
#include "bytebuffer.hh"
#include "string.hh"
#include "padded.hh"
#include "exceptions.hh"
namespace S6M
{
class... | 17.844444 | 86 | 0.682441 | 45G |
2fd42d25dacb80ea5165c716c94b719bb35c05fc | 228,802 | cpp | C++ | HCTC-PARS-FINAL/360 Panorama PARS FINAL/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues_6Table.cpp | Eiris/HCTC-PARS-FINAL | d90e11d4bb09a9ab6ab94e1808e6607847cd5150 | [
"MIT"
] | null | null | null | HCTC-PARS-FINAL/360 Panorama PARS FINAL/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues_6Table.cpp | Eiris/HCTC-PARS-FINAL | d90e11d4bb09a9ab6ab94e1808e6607847cd5150 | [
"MIT"
] | null | null | null | HCTC-PARS-FINAL/360 Panorama PARS FINAL/Temp/StagingArea/Data/il2cppOutput/Il2CppCompilerCalculateTypeValues_6Table.cpp | Eiris/HCTC-PARS-FINAL | d90e11d4bb09a9ab6ab94e1808e6607847cd5150 | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "il... | 43.064559 | 189 | 0.82765 | Eiris |
2fd4c8d17f85ba02e4d3189526c846d4cd314961 | 338 | cpp | C++ | Cpp/657.robot-return-origin.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | 1 | 2015-12-19T23:05:35.000Z | 2015-12-19T23:05:35.000Z | Cpp/657.robot-return-origin.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | Cpp/657.robot-return-origin.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | class Solution {
public:
bool judgeCircle(string moves) {
map<char, int> move_counts{{'U', 0}, {'D', 0}, {'L', 0}, {'R', 0}};
for (char &move : moves) {
move_counts[move] ++;
}
return move_counts['U'] - move_counts['D'] == 0 &&
move_counts['L'] - move_counts['... | 30.727273 | 75 | 0.476331 | zszyellow |
7c7bc55f4c903d81dc260fad54b390c241591791 | 2,833 | cc | C++ | components/mus/surfaces/direct_output_surface.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | components/mus/surfaces/direct_output_surface.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/mus/surfaces/direct_output_surface.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | // Copyright 2014 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 "components/mus/surfaces/direct_output_surface.h"
#include <stdint.h>
#include "base/bind.h"
#include "base/memory/ptr_util.h"
#include "cc/out... | 34.54878 | 77 | 0.76209 | Wzzzx |
7c7c79aec61fd41a390a2773d2918ef07cf65bf9 | 1,790 | cc | C++ | cc/raster/staging_buffer_pool_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | cc/raster/staging_buffer_pool_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | cc/raster/staging_buffer_pool_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 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 "cc/raster/staging_buffer_pool.h"
#include "base/memory/memory_coordinator_client.h"
#include "base/memory/memory_coordinator_client_registry.h"... | 36.530612 | 76 | 0.739665 | zipated |
7c7d2dd37f0dbbb0619720940a7f4111d0afb4e9 | 1,196 | hpp | C++ | projects/entity_store/include/EntityStore/Internal/Entity.hpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | 2 | 2021-06-24T21:46:56.000Z | 2021-09-24T07:51:04.000Z | projects/entity_store/include/EntityStore/Internal/Entity.hpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | null | null | null | projects/entity_store/include/EntityStore/Internal/Entity.hpp | antaljanosbenjamin/miscellaneous | 56d2f0030d1d8ff0dd6dd077c3d1ec981f6c2747 | [
"MIT"
] | null | null | null | #pragma once
#include "EntityStore/Properties.hpp"
#include "EntityStore/Property.hpp"
// Design principle: The more compile time check you do, the less runtime error you get!
//
// I. Every property of an Entity has a fixed type (the title is std::string, the
// timestamp is double, etc.).
// II. The id pr... | 28.47619 | 120 | 0.7199 | antaljanosbenjamin |
7c817312ada6fafeb90141cbddac215e20860881 | 806 | cpp | C++ | src/wnd.cpp | tstih/nice | a242dc78ec446dadaa3f275b15acda92922c39bf | [
"MIT"
] | null | null | null | src/wnd.cpp | tstih/nice | a242dc78ec446dadaa3f275b15acda92922c39bf | [
"MIT"
] | null | null | null | src/wnd.cpp | tstih/nice | a242dc78ec446dadaa3f275b15acda92922c39bf | [
"MIT"
] | 2 | 2020-11-26T16:49:43.000Z | 2021-08-17T12:17:13.000Z | //
// wnd.cpp
//
// Window class implementation.
//
// (c) 2021 Tomaz Stih
// This code is licensed under MIT license (see LICENSE.txt for details).
//
// 09.05.2021 tstih
//
#include "nice.hpp"
namespace nice {
//{{BEGIN.DEF}}
void wnd::repaint(void) { native()->repaint(); }
std::string wnd::get_t... | 26 | 78 | 0.605459 | tstih |
7c81bf4de413008e492cc234c06cff32955f4ca6 | 2,840 | cxx | C++ | ds/netapi/svcdlls/upssvc/apcsmart/message.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/netapi/svcdlls/upssvc/apcsmart/message.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/netapi/svcdlls/upssvc/apcsmart/message.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*
* REVISIONS:
* mwh18Nov93: changed EventID to INT
*
* mwh07Jun94: port for NCR
*/
#define INCL_BASE
#define INCL_DOS
#define INCL_NOPM
#include "cdefine.h"
extern "C" {
#if (C_OS & C_OS2)
#include <os2.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
}
#include "_defs.h"
... | 17.005988 | 77 | 0.59331 | npocmaka |
7c85cdb2a61767de67bb852ee2e22bb05de87131 | 100 | hpp | C++ | include/cru/ui/controls/Base.hpp | crupest/cru | 3c3a08a02a0f8fc56dc2da3374f025d4fdaf62c5 | [
"Apache-2.0"
] | 1 | 2021-09-30T11:43:03.000Z | 2021-09-30T11:43:03.000Z | include/cru/ui/controls/Base.hpp | crupest/cru | 3c3a08a02a0f8fc56dc2da3374f025d4fdaf62c5 | [
"Apache-2.0"
] | 11 | 2021-08-22T12:55:56.000Z | 2022-03-13T15:01:29.000Z | include/cru/ui/controls/Base.hpp | crupest/cru | 3c3a08a02a0f8fc56dc2da3374f025d4fdaf62c5 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../Base.hpp"
namespace cru::ui::controls {} // namespace cru::ui::controls
| 20 | 62 | 0.68 | crupest |
7c8a0c899df705f3301eb65ef1bfe59c72a46658 | 10,546 | cpp | C++ | src/leveldb/qleveldb.cpp | paulovap/qtleveldb | 1a3815de7b8a8a4c059d034e8eef22707dd2b46c | [
"BSD-3-Clause"
] | 53 | 2015-05-04T12:36:34.000Z | 2021-12-29T15:35:53.000Z | src/leveldb/qleveldb.cpp | guanxl0525/qtleveldb | 1a3815de7b8a8a4c059d034e8eef22707dd2b46c | [
"BSD-3-Clause"
] | 2 | 2015-10-05T15:24:10.000Z | 2019-11-04T21:23:13.000Z | src/leveldb/qleveldb.cpp | guanxl0525/qtleveldb | 1a3815de7b8a8a4c059d034e8eef22707dd2b46c | [
"BSD-3-Clause"
] | 11 | 2015-06-25T03:03:10.000Z | 2020-10-13T11:40:37.000Z | #include "../../3rdparty/leveldb/include/leveldb/db.h"
#include "qleveldb.h"
#include "qleveldbbatch.h"
#include <QtCore>
QT_BEGIN_NAMESPACE
static QHash<QString, QWeakPointer<leveldb::DB> > dbInstances;
static QMultiHash<QString, QLevelDB*> qLevelDBInstances;
/*!
\class QLevelDB
\inmodule QtLevelDB
\sin... | 25.975369 | 127 | 0.632183 | paulovap |
7c90586d5ad745d357ce1070c77bd48981539079 | 33,062 | cpp | C++ | Child/Code/tVegetation/tVegetation.cpp | mcflugen/child | 30c2b04d6ebb93fddd575ba6478dabc8ab80a11e | [
"MIT"
] | 9 | 2015-02-23T15:47:20.000Z | 2020-05-19T23:42:05.000Z | Child/Code/tVegetation/tVegetation.cpp | mcflugen/child | 30c2b04d6ebb93fddd575ba6478dabc8ab80a11e | [
"MIT"
] | 3 | 2020-04-21T06:12:53.000Z | 2020-08-20T16:56:17.000Z | Child/Code/tVegetation/tVegetation.cpp | mcflugen/child | 30c2b04d6ebb93fddd575ba6478dabc8ab80a11e | [
"MIT"
] | 12 | 2015-02-18T18:34:57.000Z | 2020-07-12T04:04:36.000Z | /**************************************************************************/
/**
** @file tVegetation.cpp
** @brief Functions for tVegetation and tVegCover classes
**
** Classes tVegetation and tVegCover represents the vegetation cover
** across a terrain. Class tVegCover represents the properties of
** vegetation... | 33.736735 | 82 | 0.619624 | mcflugen |
7c92a621d2594672a145aade59f5fc113fd8da6d | 1,641 | cpp | C++ | apps/cc/PrintVisitor.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | apps/cc/PrintVisitor.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | apps/cc/PrintVisitor.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | #include <iostream>
#include "PrintVisitor.h"
#include "Expression.h"
#include "Function.h"
#include "TranslationUnit.h"
int PrintVisitor::visit(Function &f)
{
std::cout << "Function: " << f.name << std::endl;
for(auto &p : f.parameters)
std::cout << " Parameter: " << p->name << std::endl;
visi... | 23.112676 | 91 | 0.636807 | lemoniac |
7c94c22970f445d35d349f473605686a299c7072 | 1,154 | h++ | C++ | vendor/nonius-v1.1.2/include/nonius/detail/repeat.h++ | kgadek/lps-playground | 981a1a1fc2e5854969b0d786600b941150dac391 | [
"0BSD"
] | 93 | 2015-01-22T16:11:47.000Z | 2022-02-08T14:41:16.000Z | testing/include/nonius/detail/repeat.h++ | XiaoLeiziGitHub/libInterpolate | 19a399d1a4fae6c4390adbbd2b1ef7fc8d3278b0 | [
"MIT"
] | 10 | 2018-11-23T15:35:28.000Z | 2022-03-07T13:06:29.000Z | testing/include/nonius/detail/repeat.h++ | CD3/libField | 8aa93e21d3bbc01c38ecc3a6ea31bd4ceb8bbfd6 | [
"MIT"
] | 21 | 2017-06-08T07:33:11.000Z | 2022-03-15T00:46:15.000Z | // Nonius - C++ benchmarking tool
//
// Written in 2014 by Martinho Fernandes <martinho.fernandes@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public domain worldwide. This software is
// distributed without a... | 28.85 | 96 | 0.636049 | kgadek |
7c96354fc1639d1ef3a7e86c5e78f4170692dc81 | 3,493 | cpp | C++ | AndroidTrustyOS/lk/trusty/lib/ElastosRuntime/Runtime/Library/eltypes/elcontainer/elcontainer.cpp | haitao52198/TrustyOS | 40ad09911aa12dd774fefcab9747c30da802d2c8 | [
"Apache-2.0"
] | 9 | 2017-11-10T15:54:02.000Z | 2021-04-15T20:57:29.000Z | AndroidTrustyOS/app/sample/ElastosRuntime/Runtime/Library/eltypes/elcontainer/elcontainer.cpp | haitao52198/TrustyOS | 40ad09911aa12dd774fefcab9747c30da802d2c8 | [
"Apache-2.0"
] | null | null | null | AndroidTrustyOS/app/sample/ElastosRuntime/Runtime/Library/eltypes/elcontainer/elcontainer.cpp | haitao52198/TrustyOS | 40ad09911aa12dd774fefcab9747c30da802d2c8 | [
"Apache-2.0"
] | 7 | 2018-01-08T02:53:32.000Z | 2020-10-15T13:01:46.000Z |
#include <elcontainer.h>
_ELASTOS_NAMESPACE_BEGIN
//-----------------------------------------------------
// DoubleLinkNode
//-----------------------------------------------------
DoubleLinkNode* DoubleLinkNode::InsertPrev(
/* [in] */ DoubleLinkNode* prevNode)
{
assert(prevNode);
prevNode->mPrev = mPrev... | 20.190751 | 60 | 0.538792 | haitao52198 |
7c9646e76a8ad628cde76e774073bc8d1209784b | 2,083 | cc | C++ | chrome/worker/websharedworker_stub.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | chrome/worker/websharedworker_stub.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | chrome/worker/websharedworker_stub.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2009 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 "chrome/worker/websharedworker_stub.h"
#include "chrome/common/webmessageportchannel_impl.h"
#include "chrome/common/worker_messages.h"
#inc... | 34.147541 | 79 | 0.771003 | rwatson |
7c9acee4cf2fb78520667585be4b3c2f8f51d22e | 9,517 | cpp | C++ | testbench/test.cpp | Golui/jpet-online-compress | bb992a7c68c64ba8139114e50aeaa41ae2f023fd | [
"MIT"
] | null | null | null | testbench/test.cpp | Golui/jpet-online-compress | bb992a7c68c64ba8139114e50aeaa41ae2f023fd | [
"MIT"
] | null | null | null | testbench/test.cpp | Golui/jpet-online-compress | bb992a7c68c64ba8139114e50aeaa41ae2f023fd | [
"MIT"
] | null | null | null | #include "ansu_fpga.hpp"
#include "driver.hpp"
#include "ansu.hpp"
#include "ansu/io/archive.hpp"
#include "ansu/io/table_archive.hpp"
#include "ansu/util.hpp"
#include "CLI11.hpp"
#include "cereal/types/array.hpp"
#include <array>
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include... | 24.591731 | 86 | 0.613954 | Golui |
7ca1a3b6829cf97683d96757fc776a91358c7c03 | 3,441 | cc | C++ | online_correlation_clustering/pivot_algo.cc | dumpmemory/google-research | bc87d010ab9086b6e92c3f075410fa6e1f27251b | [
"Apache-2.0"
] | null | null | null | online_correlation_clustering/pivot_algo.cc | dumpmemory/google-research | bc87d010ab9086b6e92c3f075410fa6e1f27251b | [
"Apache-2.0"
] | null | null | null | online_correlation_clustering/pivot_algo.cc | dumpmemory/google-research | bc87d010ab9086b6e92c3f075410fa6e1f27251b | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 The Google Research 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... | 34.41 | 79 | 0.68701 | dumpmemory |
7ca818d649bc46c05d71da2a840fe141d1f2d4c1 | 966 | hpp | C++ | stats.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | stats.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | stats.hpp | TomGlint/ANSim | f02edc65a80fbbcf3bc812f4f6841658571c2024 | [
"MIT"
] | null | null | null | // $Id$
#ifndef _STATS_HPP_
#define _STATS_HPP_
#include "module.hpp"
class Stats : public Module
{
long long int _num_samples;
double _sample_sum;
double _sample_squared_sum;
//bool _reset;
double _min;
double _max;
long long int _num_bins;
double _bin_size;
vector<long long int> _hist;
public... | 18.226415 | 60 | 0.68323 | TomGlint |
7cacc3c07833c1a042743748bf250213984842e9 | 4,005 | hpp | C++ | lib/App/App.hpp | thorsten-l/ESP8266-WiFi-Socket-3 | b40bcd1005a3f972a8fbec1a2949f5239fd6bc19 | [
"Apache-2.0"
] | null | null | null | lib/App/App.hpp | thorsten-l/ESP8266-WiFi-Socket-3 | b40bcd1005a3f972a8fbec1a2949f5239fd6bc19 | [
"Apache-2.0"
] | null | null | null | lib/App/App.hpp | thorsten-l/ESP8266-WiFi-Socket-3 | b40bcd1005a3f972a8fbec1a2949f5239fd6bc19 | [
"Apache-2.0"
] | null | null | null | #ifndef __APP_H__
#define __APP_H__
#include <Arduino.h>
#include <FS.h>
#include <DeviceConfig.hpp>
#include <ConfigAttributes.hpp>
#define LOG0( format ) Serial.printf( "(%lu) " format, millis())
#define LOG1( format, ... ) Serial.printf( "(%lu) " format, millis(), ##__VA_ARGS__ )
#define APP_NAME "WiFi Socket 3"
... | 23.839286 | 85 | 0.777278 | thorsten-l |
7cb01f60a9dafb60d4ed36df0cf6ff4d3f26b1b1 | 271 | hh | C++ | Painter/painter.hh | drewnoakes/bold-humanoid | 6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335 | [
"Apache-2.0"
] | null | null | null | Painter/painter.hh | drewnoakes/bold-humanoid | 6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335 | [
"Apache-2.0"
] | null | null | null | Painter/painter.hh | drewnoakes/bold-humanoid | 6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <opencv2/core/core.hpp>
#include "../Colour/colour.hh"
namespace bold
{
struct LineSegment2i;
class Painter
{
public:
static void draw(LineSegment2i const& segment, cv::Mat& img, cv::Scalar const& colour, unsigned thickness);
};
}
| 15.941176 | 111 | 0.697417 | drewnoakes |
7cb0462b627f151d0d6f62ae63baead8a3f8c689 | 588 | cpp | C++ | die-tk/ControlParams.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | 11 | 2015-11-06T01:35:35.000Z | 2021-05-01T18:34:50.000Z | die-tk/ControlParams.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | null | null | null | die-tk/ControlParams.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | 2 | 2017-07-06T16:05:51.000Z | 2019-07-04T01:17:15.000Z | #include "ControlParams.h"
#include <ostream>
namespace tk {
std::ostream & operator<<(std::ostream & os, ControlParams const & cp)
{
os << "start " << cp.start_ << " dims " << cp.dims_;
if( ! cp.visible_ ) os << " invisible";
if( cp.backgroundColor_ ) os << " background " << *cp.backgroundColor_;
if( cp.cursor_ ... | 30.947368 | 86 | 0.605442 | thinlizzy |
7cb18e843f09ac0fee9880d37b1c4621b1725b7b | 6,714 | cpp | C++ | Editor/Sources/o2Editor/AnimationWindow/TrackControls/KeyFramesTrackControl.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 181 | 2015-12-09T08:53:36.000Z | 2022-03-26T20:48:39.000Z | Editor/Sources/o2Editor/AnimationWindow/TrackControls/KeyFramesTrackControl.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 29 | 2016-04-22T08:24:04.000Z | 2022-03-06T07:06:28.000Z | Editor/Sources/o2Editor/AnimationWindow/TrackControls/KeyFramesTrackControl.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 13 | 2018-04-24T17:12:04.000Z | 2021-11-12T23:49:53.000Z | #include "o2Editor/stdafx.h"
#include "KeyFramesTrackControl.h"
template<>
DECLARE_CLASS_MANUAL(Editor::KeyFramesTrackControl<AnimationTrack<float>>);
template<>
DECLARE_CLASS_MANUAL(Editor::KeyFramesTrackControl<AnimationTrack<bool>>);
template<>
DECLARE_CLASS_MANUAL(Editor::KeyFramesTrackControl<AnimationTrack<Co... | 27.292683 | 125 | 0.665773 | zenkovich |
7cb1bdbe4f70949d38f6d450721f644f55d31869 | 899 | cpp | C++ | tests/util/test_multivec.cpp | ajoudaki/Project2020-seq-tensor-sketching | 20b19ddd19751840d33af97abe314d29b34dc0d4 | [
"MIT"
] | 7 | 2020-12-07T11:33:17.000Z | 2022-01-02T07:30:52.000Z | tests/util/test_multivec.cpp | ajoudaki/Project2020-seq-tensor-sketching | 20b19ddd19751840d33af97abe314d29b34dc0d4 | [
"MIT"
] | 26 | 2021-01-13T18:15:23.000Z | 2022-02-27T05:52:59.000Z | tests/util/test_multivec.cpp | ajoudaki/Project2020-seq-tensor-sketching | 20b19ddd19751840d33af97abe314d29b34dc0d4 | [
"MIT"
] | 2 | 2021-01-06T15:03:10.000Z | 2022-01-02T07:18:45.000Z | #include "util/utils.hpp"
#include <gtest/gtest.h>
#include <random>
namespace {
template <typename T>
class Pow : public ::testing::Test {};
typedef ::testing::Types<uint64_t, uint32_t> PowTypes;
TYPED_TEST_SUITE(Pow, PowTypes);
TYPED_TEST(Pow, Zero) {
std::mt19937 rng(123457);
std::uniform_int_distribut... | 24.297297 | 76 | 0.650723 | ajoudaki |
7cb32a1975e693bd4564cbfe8082ae870cc8007b | 4,591 | cpp | C++ | Source/Tools/ShaderCompiler/ShaderCompiler.cpp | amerkoleci/alimer | f47b80e0790a42a65366c88c3024a0dfdafb1e1b | [
"MIT"
] | 291 | 2017-09-30T09:07:49.000Z | 2022-03-22T13:09:21.000Z | Source/Tools/ShaderCompiler/ShaderCompiler.cpp | amerkoleci/alimer | f47b80e0790a42a65366c88c3024a0dfdafb1e1b | [
"MIT"
] | 12 | 2018-01-14T01:54:53.000Z | 2021-02-19T06:14:01.000Z | Source/Tools/ShaderCompiler/ShaderCompiler.cpp | amerkoleci/alimer | f47b80e0790a42a65366c88c3024a0dfdafb1e1b | [
"MIT"
] | 16 | 2018-05-03T08:15:31.000Z | 2022-02-25T09:03:16.000Z | // Copyright © Amer Koleci and Contributors.
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
#include "ShaderCompiler.h"
#include <cxxopts.hpp>
#if __has_include(<filesystem>)
#include <filesystem>
namespace fs = std::filesystem;
#elif __has_include(<experimental/file... | 34.007407 | 106 | 0.626443 | amerkoleci |
7cb3c8345c265a5b2663aee3c14207b79a31ed84 | 10,573 | hpp | C++ | include/codegen/include/Zenject/FactoryFromBinderBase.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/FactoryFromBinderBase.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/FactoryFromBinderBase.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:43 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: Zenject.ScopeConcreteIdArgConditionCopyNonLazyBinder
#includ... | 54.220513 | 203 | 0.779344 | Futuremappermydud |
7cb40347e92eb4ef779efcc74ebe31bf8d4997bd | 2,930 | cpp | C++ | src/mongo/db/catalog/collection_uuid_mismatch_info.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/catalog/collection_uuid_mismatch_info.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/catalog/collection_uuid_mismatch_info.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2022-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 45.076923 | 94 | 0.750171 | benety |
7cb588d5198e6a493c7967ccf3c1cab62e752189 | 496 | hpp | C++ | library/ATF/_log_case_charselectInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_log_case_charselectInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_log_case_charselectInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_log_case_charselect.hpp>
START_ATF_NAMESPACE
namespace Info
{
using _log_case_charselectsize2_ptr = int (WINAPIV*)(struct _log_case_charselec... | 33.066667 | 123 | 0.766129 | lemkova |
7cbbdfb76accceda02fad51756ca9cbfdef30d90 | 18,076 | cpp | C++ | DearPyGui/src/ui/AppItems/mvColors.cpp | SpikingNeurons/DearPyGui | 5d706edd524fa52140153bd8c9e5a43a6d0c7d87 | [
"MIT"
] | null | null | null | DearPyGui/src/ui/AppItems/mvColors.cpp | SpikingNeurons/DearPyGui | 5d706edd524fa52140153bd8c9e5a43a6d0c7d87 | [
"MIT"
] | null | null | null | DearPyGui/src/ui/AppItems/mvColors.cpp | SpikingNeurons/DearPyGui | 5d706edd524fa52140153bd8c9e5a43a6d0c7d87 | [
"MIT"
] | null | null | null | #include "mvColors.h"
#include "mvContext.h"
#include <array>
#include "mvItemRegistry.h"
#include "mvPythonExceptions.h"
#include "AppItems/mvFontItems.h"
#include "AppItems/mvThemes.h"
#include "AppItems/containers/mvDragPayload.h"
#include "AppItems/mvItemHandlers.h"
void
DearPyGui::apply_template(const mvColorBut... | 31.058419 | 143 | 0.687873 | SpikingNeurons |
7cbca049e70f68e2e5715c380036faf62697dc87 | 1,519 | cc | C++ | test/paths_test.cc | hunter-packages/crashpad | 3583c50a6575857abcf140f6ea3b8d11390205b3 | [
"Apache-2.0"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | test/paths_test.cc | hunter-packages/crashpad | 3583c50a6575857abcf140f6ea3b8d11390205b3 | [
"Apache-2.0"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | test/paths_test.cc | hunter-packages/crashpad | 3583c50a6575857abcf140f6ea3b8d11390205b3 | [
"Apache-2.0"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2014 The Crashpad 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 ... | 31.645833 | 75 | 0.738644 | hunter-packages |
7cbde665a3b07a650fcd12a090569fc9b92ee5c7 | 3,078 | cpp | C++ | admin/cys/win32/cyswizardpage.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/cys/win32/cyswizardpage.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/cys/win32/cyswizardpage.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // Copyright (c) 2001 Microsoft Corporation
//
// File: CYSWizardPage.cpp
//
// Synopsis: Defines the base class for the wizard
// pages used for CYS. It is a subclass
// of WizardPage found in Burnslib
//
// History: 02/03/2001 JeffJon Created
#include "pch.h"
#include "... | 19.481013 | 79 | 0.658545 | npocmaka |
7cc020304b6fdb6265d62ac7c1e96f9481564b8a | 938 | cpp | C++ | src/test/key_io_tests.cpp | Cryptario/tidecoin | 550b726eb7f39730086522676a9c74e40d672a81 | [
"MIT"
] | 30 | 2021-01-05T02:08:40.000Z | 2022-01-21T09:32:10.000Z | src/test/key_io_tests.cpp | Cryptario/tidecoin | 550b726eb7f39730086522676a9c74e40d672a81 | [
"MIT"
] | 8 | 2021-03-15T08:14:30.000Z | 2022-02-02T11:37:14.000Z | src/test/key_io_tests.cpp | Cryptario/tidecoin | 550b726eb7f39730086522676a9c74e40d672a81 | [
"MIT"
] | 20 | 2021-01-09T00:03:48.000Z | 2022-03-07T11:58:35.000Z | // Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/data/key_io_invalid.json.h>
#include <test/data/key_io_valid.json.h>
#include <key.h>
#include <key_io.h>
#in... | 22.333333 | 85 | 0.782516 | Cryptario |
7cc52759b3de12665267e5a58fde4d830ef7cc9f | 5,089 | cpp | C++ | src/cpp/llnms-core/llnms/networking/NetworkModule.cpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | null | null | null | src/cpp/llnms-core/llnms/networking/NetworkModule.cpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | null | null | null | src/cpp/llnms-core/llnms/networking/NetworkModule.cpp | marvins/LLNMS | ebc15418e1a5dddafdb3e55cea4e8cb71f619b2d | [
"MIT"
] | 1 | 2020-12-16T09:28:26.000Z | 2020-12-16T09:28:26.000Z | /**
* @file NetworkModule.cpp
* @author Marvin Smith
* @date 2/14/2014
*/
#include "NetworkModule.hpp"
#include "../utilities/FilesystemUtilities.hpp"
#include "../utilities/StringUtilities.hpp"
#include <algorithm>
#include <exception>
#include <fstream>
#include <iostream>
namespace LLNMS{
namespace NETWO... | 25.832487 | 158 | 0.631951 | marvins |
7cc56016ff713dc1489092c1d3184994a4c9598b | 10,672 | cpp | C++ | main.cpp | msnh2012/ConvTest | e06b226b084bf4341c61a1dc33499820ca308228 | [
"MIT"
] | 4 | 2021-01-09T04:44:11.000Z | 2021-03-30T07:56:52.000Z | main.cpp | msnh2012/ConvTest | e06b226b084bf4341c61a1dc33499820ca308228 | [
"MIT"
] | null | null | null | main.cpp | msnh2012/ConvTest | e06b226b084bf4341c61a1dc33499820ca308228 | [
"MIT"
] | null | null | null | #include <iostream>
void demo0()
{
float F[] = {1,2,3,4,5,6,7,8,9};
float K[] = {1,2,3,4,5,6,7,8,9};
float O = 0;
int width = 3;
int height = 3;
int kSizeX = 3;
int kSizeY = 3;
for(int m=0;m<kSizeY;m++)
{
for(int n=0;n<kSizeX;n++)
{
O... | 26.09291 | 135 | 0.387744 | msnh2012 |
7cd4ab0da84647fd3394eba3c8ed2876a622e8c2 | 15,578 | cpp | C++ | rgfa-split_main.cpp | glennhickey/mzgaf2paf | 06eaa932bf44c7017b4c56775af9dbf801fb3405 | [
"MIT"
] | null | null | null | rgfa-split_main.cpp | glennhickey/mzgaf2paf | 06eaa932bf44c7017b4c56775af9dbf801fb3405 | [
"MIT"
] | 2 | 2021-07-23T14:46:48.000Z | 2022-03-24T12:47:19.000Z | rgfa-split_main.cpp | glennhickey/mzgaf2paf | 06eaa932bf44c7017b4c56775af9dbf801fb3405 | [
"MIT"
] | null | null | null | #include <unistd.h>
#include <getopt.h>
#include <fstream>
#include <iostream>
#include <unordered_set>
#include <cassert>
#include <algorithm>
#include <sys/stat.h>
#include "rgfa-split.hpp"
#include "pafcoverage.hpp"
using namespace std;
void help(char** argv) {
cerr << "usage: " << argv[0] << " [options]" << end... | 39.638677 | 221 | 0.558031 | glennhickey |
7cd4ce4c664a8c171d2761443fea8de0c21cbecb | 1,178 | cpp | C++ | A_Construct_a_Rectangle.cpp | jnvshubham7/cpp-programming | 7d00f4a3b97b9308e337c5d3547fd3edd47c5e0b | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | A_Construct_a_Rectangle.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | A_Construct_a_Rectangle.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fileio freopen("input.txt", "r", stdin);freopen("output.txt", "w", stdout)
int main(){
// fileio;
int t;
cin>>t;
while(t--){
int a,b,c;
cin>>a>>b>>c;
if(a==b){
if(c%2==0){
cout<<"YES"<<endl;
... | 20.310345 | 82 | 0.270798 | jnvshubham7 |
7cd5d876ef31e358fe85ccf68ad1aab531d64e9f | 874 | cpp | C++ | ABC/ABC083/ABC083B.cpp | uzumal/AtCoder | 2d4bc326c29fb6bf1badcfd80077d9e2154e34de | [
"MIT"
] | null | null | null | ABC/ABC083/ABC083B.cpp | uzumal/AtCoder | 2d4bc326c29fb6bf1badcfd80077d9e2154e34de | [
"MIT"
] | null | null | null | ABC/ABC083/ABC083B.cpp | uzumal/AtCoder | 2d4bc326c29fb6bf1badcfd80077d9e2154e34de | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <typeinfo>
using namespace std;
int ctoi(const char c){
switch(c){
case '0': return 0;
case '1': return 1;
case '2': return 2;
case '3': return 3;
case '4': return 4;
case '5': return 5;
case '6': return 6;
... | 19.863636 | 46 | 0.451945 | uzumal |
7cd878581a40ae5c586908106a3dba84684497e7 | 4,541 | hpp | C++ | HugeCTR/include/embeddings/hybrid_embedding/infrequent_embedding.hpp | xjqbest/HugeCTR | 0b1c92d5e65891dfdd90d917bc6d520d0ca5d1e1 | [
"Apache-2.0"
] | 130 | 2021-10-11T11:55:28.000Z | 2022-03-31T21:53:07.000Z | HugeCTR/include/embeddings/hybrid_embedding/infrequent_embedding.hpp | xjqbest/HugeCTR | 0b1c92d5e65891dfdd90d917bc6d520d0ca5d1e1 | [
"Apache-2.0"
] | 72 | 2021-10-09T04:59:09.000Z | 2022-03-31T11:27:54.000Z | HugeCTR/include/embeddings/hybrid_embedding/infrequent_embedding.hpp | xjqbest/HugeCTR | 0b1c92d5e65891dfdd90d917bc6d520d0ca5d1e1 | [
"Apache-2.0"
] | 29 | 2021-11-03T22:35:01.000Z | 2022-03-30T13:11:59.000Z | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* 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 ... | 39.833333 | 99 | 0.77516 | xjqbest |
7cdeb4460d486a542e8205abb8ec0ab35408eaef | 4,631 | cpp | C++ | src/ga.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | 1 | 2017-01-22T19:40:23.000Z | 2017-01-22T19:40:23.000Z | src/ga.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | null | null | null | src/ga.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2010-2014 O01eg <o01eg@yandex.ru>
*
* This file is part of Genetic Function Programming.
*
* 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, inclu... | 27.565476 | 151 | 0.699849 | o01eg |
7ce05fe229f09396ab98029e864c21a4faaabce9 | 8,929 | hh | C++ | RAVL2/Math/Indexing/VectorIndexIter.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Math/Indexing/VectorIndexIter.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Math/Indexing/VectorIndexIter.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2004, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... | 26.339233 | 179 | 0.583716 | isuhao |
7ce17b972b385d40cecf41773175f4fbd21fef4a | 599 | cpp | C++ | Ritualberater/RuneLeaf.cpp | odom11/ritualberater | b5af60785f8a7b5ec2e0a6be53c4441cc38ba94d | [
"MIT"
] | null | null | null | Ritualberater/RuneLeaf.cpp | odom11/ritualberater | b5af60785f8a7b5ec2e0a6be53c4441cc38ba94d | [
"MIT"
] | null | null | null | Ritualberater/RuneLeaf.cpp | odom11/ritualberater | b5af60785f8a7b5ec2e0a6be53c4441cc38ba94d | [
"MIT"
] | null | null | null | #include "RuneLeaf.h"
RuneLeaf::RuneLeaf(const std::string& name, const int cost, AbstractRuneNode * parent) : AbstractRuneNode(name, parent), cost(cost), amount(0) {}
unsigned RuneLeaf::getAmount() const
{
return amount;
}
void RuneLeaf::setAmount(unsigned amount)
{
this->amount = amount;
}
unsigned int RuneLeaf... | 17.617647 | 145 | 0.711185 | odom11 |
7ce281184b7aaf30c5ff439efbfd0568330a5173 | 383 | cpp | C++ | unit_tests/aub_stream_mocks/aub_stream_interface_mock.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | unit_tests/aub_stream_mocks/aub_stream_interface_mock.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | unit_tests/aub_stream_mocks/aub_stream_interface_mock.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "unit_tests/mocks/mock_aub_manager.h"
namespace OCLRT {
aub_stream::AubManager *createAubManager(uint32_t gfxFamily, uint32_t devicesCount, uint64_t memoryBankSize, bool localMemorySupported, const std::string &aubFileN... | 25.533333 | 169 | 0.762402 | PTS93 |
7ce32c7b47b630d735cb4a8a19f52df2d3e9dad6 | 3,029 | cc | C++ | src/algorithms/inverse_kinematics.cc | tmigimatsu/spatial-dyn | 7b9be796b6af5f4edc34b223a83542d1f5a9809f | [
"MIT"
] | 1 | 2021-06-08T22:56:17.000Z | 2021-06-08T22:56:17.000Z | src/algorithms/inverse_kinematics.cc | tmigimatsu/spatial-dyn | 7b9be796b6af5f4edc34b223a83542d1f5a9809f | [
"MIT"
] | null | null | null | src/algorithms/inverse_kinematics.cc | tmigimatsu/spatial-dyn | 7b9be796b6af5f4edc34b223a83542d1f5a9809f | [
"MIT"
] | null | null | null | /**
* inverse_kinematics.cc
*
* Copyright 2019. All Rights Reserved.
*
* Created: June 2, 2019
* Authors: Toki Migimatsu
*/
#include "spatial_dyn/algorithms/inverse_kinematics.h"
#include <ctrl_utils/control.h>
#include <ctrl_utils/euclidian.h>
#include "spatial_dyn/algorithms/forward_kinematics.h"
#include "... | 33.285714 | 97 | 0.663255 | tmigimatsu |
7ce5a074c61c877687fef0c912e507acfdaf5656 | 382 | hpp | C++ | src/ecs/systems/HealthSystem.hpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | null | null | null | src/ecs/systems/HealthSystem.hpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | 12 | 2019-05-22T12:22:44.000Z | 2019-06-15T17:31:04.000Z | src/ecs/systems/HealthSystem.hpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | 1 | 2019-06-18T12:57:58.000Z | 2019-06-18T12:57:58.000Z | /*
** EPITECH PROJECT, 2019
** bomberman
** File description:
** HealthSystem.hpp
*/
#ifndef BOMBERMAN_HEALTHSYSTEM_HPP
#define BOMBERMAN_HEALTHSYSTEM_HPP
#include "../System.hpp"
namespace ECS {
class HealthSystem : public System {
public:
HealthSystem(ECSCore &);
void updateEntity(Entity &ent... | 15.916667 | 51 | 0.706806 | Gegel85 |
7ce64ea434b8f2935ddbe22dae2963306e0adae4 | 547 | cpp | C++ | P1012/P1012.cpp | zhouyium/LuoGu | 10038dd9876c95534c580da1c31ac2a9b0558df0 | [
"MIT"
] | null | null | null | P1012/P1012.cpp | zhouyium/LuoGu | 10038dd9876c95534c580da1c31ac2a9b0558df0 | [
"MIT"
] | null | null | null | P1012/P1012.cpp | zhouyium/LuoGu | 10038dd9876c95534c580da1c31ac2a9b0558df0 | [
"MIT"
] | null | null | null | //https://www.luogu.com.cn/problem/P1012
//P1012 拼数
#include <iostream>
#include <algorithm>
#include <string>
int main() {
int n;
std::cin >> n;
std::string arr[21];
int i, j;
for (i=0; i<n; i++) {
std::cin >> arr[i];
}
//排序
for (i=0; i<n; i++) {
for (j=i; j<n; j++) {... | 17.09375 | 50 | 0.404022 | zhouyium |
7ce661c900df5237bb05fb1e00e283b7b8c6a25b | 2,003 | cpp | C++ | C++/695.max-area-of-island.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2018-03-06T05:07:22.000Z | 2018-03-06T05:07:22.000Z | C++/695.max-area-of-island.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2021-12-24T16:41:02.000Z | 2021-12-24T16:41:02.000Z | C++/695.max-area-of-island.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | null | null | null | class Solution {
public:
// version 1 : recursive
/*
vector<pair<int, int>> dir{{0, 1}, {0, -1}, {1, 0}, {-1, 0}};
int maxAreaOfIsland(vector<vector<int>>& grid) {
if (grid.empty() || grid[0].empty()) {
return 0;
}
int m = grid.size(), n = grid[0].size(), res = 0;
... | 32.836066 | 85 | 0.34698 | WilliamZhaoz |
7ce6c903ac620a6a025f732d29d0252c0170cb45 | 3,694 | hpp | C++ | ml/deep_learning/propagation.hpp | stereomatchingkiss/ocv_libs | 1424ac2f8a2c034513483b3050d8138ca0a0ae3f | [
"FSFAP"
] | 18 | 2015-12-17T05:28:37.000Z | 2021-05-21T02:59:29.000Z | ml/deep_learning/propagation.hpp | stereomatchingkiss/ocv_libs | 1424ac2f8a2c034513483b3050d8138ca0a0ae3f | [
"FSFAP"
] | null | null | null | ml/deep_learning/propagation.hpp | stereomatchingkiss/ocv_libs | 1424ac2f8a2c034513483b3050d8138ca0a0ae3f | [
"FSFAP"
] | 8 | 2017-05-10T11:20:13.000Z | 2021-06-19T17:06:06.000Z | #ifndef PROPAGATION_HPP
#define PROPAGATION_HPP
#include <opencv2/core.hpp>
#include <Eigen/Dense>
#include "../utility/activation.hpp"
/*! \file propagation.hpp
\brief collection of propagation algorithms
*/
/*!
* \addtogroup ocv
* @{
*/
namespace ocv{
/*!
* \addtogroup ml
* @{
*/
namespace ml{
/*... | 32.403509 | 91 | 0.605847 | stereomatchingkiss |
7ce84c2deeeb615d8f4bbd4290b11e557a78c34a | 1,871 | cpp | C++ | Data Structures I (CS331)/EX(7-203) Linked list/EX7 merge two sorted linked lists..cpp | abdulmlik/Data-Structures-HW | 2886ae3357f9396bb2ea1d9c7128117eda96d665 | [
"BSD-2-Clause"
] | null | null | null | Data Structures I (CS331)/EX(7-203) Linked list/EX7 merge two sorted linked lists..cpp | abdulmlik/Data-Structures-HW | 2886ae3357f9396bb2ea1d9c7128117eda96d665 | [
"BSD-2-Clause"
] | null | null | null | Data Structures I (CS331)/EX(7-203) Linked list/EX7 merge two sorted linked lists..cpp | abdulmlik/Data-Structures-HW | 2886ae3357f9396bb2ea1d9c7128117eda96d665 | [
"BSD-2-Clause"
] | null | null | null | #include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
using namespace std;
struct node
{
int data;
struct node* next;
};
void MoveNode(struct node** destRef, struct node** sourceRef);
struct node* SortedMerge(struct node* a, struct node* b)
{
struct node dummy;
struct node* ta... | 16.412281 | 62 | 0.541956 | abdulmlik |
7cec64a52c0af48bf2255c4906d97b720431c05d | 3,979 | cc | C++ | zircon/system/core/devmgr/fshost/fshost-boot-args-test.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | zircon/system/core/devmgr/fshost/fshost-boot-args-test.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | zircon/system/core/devmgr/fshost/fshost-boot-args-test.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia 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 "fshost-boot-args.h"
#include <fuchsia/boot/llcpp/fidl.h>
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include <lib/... | 39.79 | 98 | 0.721035 | casey |
7ceeeaee17354fb54b5cff897e91eec4b7426ae0 | 17,708 | cc | C++ | chromeos/components/tether/ble_connection_metrics_logger_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chromeos/components/tether/ble_connection_metrics_logger_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chromeos/components/tether/ble_connection_metrics_logger_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.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 "chromeos/components/tether/ble_connection_metrics_logger.h"
#include "base/memory/ptr_util.h"
#include "base/test/histogram_tester.h"
#include ... | 39.704036 | 82 | 0.744409 | zipated |
7cef64ec74bfc0271831581002c37d133c2cb028 | 2,659 | hpp | C++ | include/libaopp/event_queue.hpp | mjgigli/libaopp | d603127f4e5d9cc1caa6ec5def4f743b2e775812 | [
"MIT"
] | null | null | null | include/libaopp/event_queue.hpp | mjgigli/libaopp | d603127f4e5d9cc1caa6ec5def4f743b2e775812 | [
"MIT"
] | null | null | null | include/libaopp/event_queue.hpp | mjgigli/libaopp | d603127f4e5d9cc1caa6ec5def4f743b2e775812 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019 Matt Gigli
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | 31.654762 | 79 | 0.731854 | mjgigli |
7cefce42a9809da9fe047a672b14df3b49b66b80 | 498 | cpp | C++ | XENTASK.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | XENTASK.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | XENTASK.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
long long a[n],b[n];
for (int i = 0; i < n; ++i)
{
cin>>a[i];
}
for (int i = 0; i < n; ++i)
{
cin>>b[i];
}
long long ans1=0,ans2=0;
for (int i = 0; i < n; ++i)
{
... | 13.459459 | 36 | 0.393574 | trehanarsh |
7cfa54cfd1a892878b5380ffa1f723fc964df6c8 | 270 | cpp | C++ | 1152.cpp | sat0317/BaekjoonOJ | c9acd973820ced3de4a26e5662641c16f7a9175b | [
"MIT"
] | 2 | 2020-12-07T16:34:16.000Z | 2021-09-26T05:59:04.000Z | 1152.cpp | sat0317/BaekjoonOJ | c9acd973820ced3de4a26e5662641c16f7a9175b | [
"MIT"
] | null | null | null | 1152.cpp | sat0317/BaekjoonOJ | c9acd973820ced3de4a26e5662641c16f7a9175b | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
int main(){
int n, i, cnt=1, imsi=0; char a[1000005]={};
gets(a);
n=strlen(a)-1;
if(a[0]==' ') imsi++;
for(i=0;i<n;i++){
if(a[i]==' ') cnt++;
}
if(cnt+1==imsi){
printf("0");
}
else printf("%d", cnt-imsi);
return 0;
}
| 15.882353 | 45 | 0.514815 | sat0317 |
cfac268a14c66674fa16f08fb4dd3414b77fbbf9 | 26 | cpp | C++ | sdl2/janggi/HistoryStack.cpp | pdpdds/SDL_YUZA | 8299672a70005a1b702cc7e3577aad4f8b31bec2 | [
"BSD-2-Clause"
] | null | null | null | sdl2/janggi/HistoryStack.cpp | pdpdds/SDL_YUZA | 8299672a70005a1b702cc7e3577aad4f8b31bec2 | [
"BSD-2-Clause"
] | null | null | null | sdl2/janggi/HistoryStack.cpp | pdpdds/SDL_YUZA | 8299672a70005a1b702cc7e3577aad4f8b31bec2 | [
"BSD-2-Clause"
] | null | null | null | #include "HistoryStack.h"
| 13 | 25 | 0.769231 | pdpdds |
cfaf410b9ea90465e3003c5f8fa6518778102d45 | 112 | cpp | C++ | DCPS/Pub/DataWriter.cpp | intact-software-systems/cpp-software-patterns | e463fc7eeba4946b365b5f0b2eecf3da0f4c895b | [
"MIT"
] | 1 | 2020-09-03T07:23:11.000Z | 2020-09-03T07:23:11.000Z | DCPS/Pub/DataWriter.cpp | intact-software-systems/cpp-software-patterns | e463fc7eeba4946b365b5f0b2eecf3da0f4c895b | [
"MIT"
] | null | null | null | DCPS/Pub/DataWriter.cpp | intact-software-systems/cpp-software-patterns | e463fc7eeba4946b365b5f0b2eecf3da0f4c895b | [
"MIT"
] | null | null | null | /*
* DataWriter.cpp
*
* Created on: 29. juni 2012
* Author: KVik
*/
#include"DCPS/Pub/DataWriter.h"
| 12.444444 | 31 | 0.598214 | intact-software-systems |
cfb112aa84561bb5b561b2c354ffc9041bdac414 | 536 | hpp | C++ | builds/includes/helperOC/Grids/destroyGrid.hpp | mdoshi96/beacls | 860426ed1336d9539dea195987efcdd8a8276a1c | [
"BSD-2-Clause",
"BSD-2-Clause-FreeBSD"
] | 30 | 2017-12-17T22:57:50.000Z | 2022-01-30T17:06:34.000Z | builds/includes/helperOC/Grids/destroyGrid.hpp | codingblazes/beacls | 6c1d685ee00e3b39d8100c4a170a850682679abc | [
"BSD-2-Clause",
"BSD-2-Clause-FreeBSD"
] | 2 | 2017-03-24T06:18:16.000Z | 2017-04-04T16:16:06.000Z | builds/includes/helperOC/Grids/destroyGrid.hpp | codingblazes/beacls | 6c1d685ee00e3b39d8100c4a170a850682679abc | [
"BSD-2-Clause",
"BSD-2-Clause-FreeBSD"
] | 8 | 2018-07-06T01:47:21.000Z | 2021-07-23T15:50:34.000Z | #ifndef __DESTROYGRID_hpp__
#define __DESTROYGRID_hpp__
// Mo Chen, 2016-04-18
// Ken Tanabe, 2016-08-05
//! Prefix to generate Visual C++ DLL
#ifdef _MAKE_VC_DLL
#define PREFIX_VC_DLL __declspec(dllexport)
//! Don't add prefix, except dll generating
#else
#define PREFIX_VC_DLL
#endif
namespace levels... | 17.290323 | 43 | 0.710821 | mdoshi96 |