hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ddf105cc18fd91e2f863fa2ef170e07d6225c060 | 931 | hpp | C++ | franken/main/Context.hpp | yatsuha4/franken | ae3aafe8da0c5663504e2e5c064dc98095ee37c8 | [
"MIT"
] | null | null | null | franken/main/Context.hpp | yatsuha4/franken | ae3aafe8da0c5663504e2e5c064dc98095ee37c8 | [
"MIT"
] | null | null | null | franken/main/Context.hpp | yatsuha4/franken | ae3aafe8da0c5663504e2e5c064dc98095ee37c8 | [
"MIT"
] | null | null | null | /***********************************************************************//**
@file
***************************************************************************/
#pragma once
namespace franken {
namespace main {
/***********************************************************************//**
@brief コンテキスト
***************... | 25.861111 | 77 | 0.348013 | yatsuha4 |
ddf63a4ff2d03a9f08a40dfdf5d04a051e8cdb8e | 6,919 | cpp | C++ | source/src/dxtmex_mexerror.cpp | gharveymn/dds-matlab | 268546bb63d12e0a28fb476434f2e6940b3c68ab | [
"MIT"
] | null | null | null | source/src/dxtmex_mexerror.cpp | gharveymn/dds-matlab | 268546bb63d12e0a28fb476434f2e6940b3c68ab | [
"MIT"
] | null | null | null | source/src/dxtmex_mexerror.cpp | gharveymn/dds-matlab | 268546bb63d12e0a28fb476434f2e6940b3c68ab | [
"MIT"
] | null | null | null | /** mlerrorutils.c
* Defines error and warning utility functions for easier
* output of error information.
*
* Copyright © 2018 Gene Harvey
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
* * * * * * * * * * * * * * * * * * * * * * * * * ... | 31.884793 | 357 | 0.764128 | gharveymn |
ddf80d09da379150fb094c4b61a674972ee1bbb1 | 2,235 | cpp | C++ | addcitydialog.cpp | mholyoak/SampleWeatherReport | 0947f865efeff93fcee8abc88d307809a3ab5055 | [
"MIT"
] | null | null | null | addcitydialog.cpp | mholyoak/SampleWeatherReport | 0947f865efeff93fcee8abc88d307809a3ab5055 | [
"MIT"
] | null | null | null | addcitydialog.cpp | mholyoak/SampleWeatherReport | 0947f865efeff93fcee8abc88d307809a3ab5055 | [
"MIT"
] | null | null | null | #include "addcitydialog.h"
#include "ui_addcitydialog.h"
#include "openweathermapreporter.h"
#include "curlrestrequester.h"
CAddCityDialog::CAddCityDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::CAddCityDialog)
{
ui->setupUi(this);
auto connected = QObject::connect(ui->_buttonBox, SIGNAL(accep... | 26.294118 | 118 | 0.674273 | mholyoak |
fb0539534a06c01742b23cfa49b5a5631bfb7c79 | 789 | cpp | C++ | cpp/comm/serialRadio.cpp | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | 133 | 2017-06-24T02:44:28.000Z | 2022-03-25T05:17:00.000Z | cpp/comm/serialRadio.cpp | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | null | null | null | cpp/comm/serialRadio.cpp | MinesJA/meshNetwork | 5ffada57c13049cb00c2996fe239cdff6edf6f17 | [
"NASA-1.3"
] | 33 | 2017-06-19T03:24:40.000Z | 2022-02-03T20:13:12.000Z | #include "comm/serialRadio.hpp"
using std::vector;
namespace comm {
SerialRadio::SerialRadio(serial::Serial * serialIn, RadioConfig & configIn) :
Radio(configIn),
serial(serialIn)
{
};
int SerialRadio::readBytes(bool bufferFlag, int bytesToRead) {
// Attempt to read serial byt... | 23.205882 | 81 | 0.589354 | MinesJA |
fb0d55b77218e4583a2cee22317f9373758b7477 | 1,181 | hpp | C++ | integration/include/integration/Integrator.hpp | gavinband/bingwa | d52e166b3bb6bc32cd32ba63bf8a4a147275eca1 | [
"BSL-1.0"
] | 3 | 2021-04-21T05:42:24.000Z | 2022-01-26T14:59:43.000Z | integration/include/integration/Integrator.hpp | gavinband/bingwa | d52e166b3bb6bc32cd32ba63bf8a4a147275eca1 | [
"BSL-1.0"
] | 2 | 2020-04-09T16:11:04.000Z | 2020-11-10T11:18:56.000Z | integration/include/integration/Integrator.hpp | gavinband/qctool | 8d8adb45151c91f953fe4a9af00498073b1132ba | [
"BSL-1.0"
] | null | null | null |
// Copyright Gavin Band 2008 - 2012.
// 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)
#ifndef INTEGRATION_INTEGRATOR_HPP
#define INTEGRATION_INTEGRATOR_HPP
#include <exception>
namespace i... | 26.244444 | 97 | 0.718036 | gavinband |
fb17e4223ea432f2a0617b21753de6cd92ab7f36 | 363 | cpp | C++ | input/copied_pointer.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | input/copied_pointer.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | input/copied_pointer.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | // Code copied from https://www.w3schools.com/cpp/trycpp.asp?filename=demo_array_change
#include <iostream>
#include <string>
using namespace std;
int main()
{
string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};
cars[0] = "Opel";
cout << cars[0];
cout << cars[1];
cout << cars[2];
cout << cars[3... | 21.352941 | 87 | 0.584022 | xdevkartik |
fb1af50bf4033d4acf39f15458666aa025ad92c4 | 4,035 | cpp | C++ | src/stream/preprocess/RtIntensityNorm.cpp | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | 7 | 2015-02-10T17:00:49.000Z | 2021-07-27T22:09:43.000Z | src/stream/preprocess/RtIntensityNorm.cpp | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | 11 | 2015-02-22T19:15:53.000Z | 2021-08-04T17:26:18.000Z | src/stream/preprocess/RtIntensityNorm.cpp | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | 8 | 2015-07-06T22:31:51.000Z | 2019-04-22T21:22:07.000Z | /*=========================================================================
* RtIntensityNorm.cpp is the implementation of a class that normalizes the
* intensity of subsequent images in a timeseries to match the global signal
* of the first.
*
* Copyright 2007-2013, the MURFI dev team.
*
* Licensed under t... | 28.617021 | 77 | 0.652292 | cdla |
fb1b7e72a44e8c9557c923aaf9404f5c41e26796 | 2,209 | cpp | C++ | ME2D/GameController.cpp | kkmzero/microplane-engine | 5ee9301b959807e8edefc8ef2ff10551b3b8836f | [
"Zlib"
] | null | null | null | ME2D/GameController.cpp | kkmzero/microplane-engine | 5ee9301b959807e8edefc8ef2ff10551b3b8836f | [
"Zlib"
] | null | null | null | ME2D/GameController.cpp | kkmzero/microplane-engine | 5ee9301b959807e8edefc8ef2ff10551b3b8836f | [
"Zlib"
] | 1 | 2020-11-09T12:52:18.000Z | 2020-11-09T12:52:18.000Z | //============================================================================
// Microplane Engine - ME2D
//
// Game Controller
//----------------------------------------------------------------------------
// Copyright (c) 2018, 2020 Ivan Kmeťo
//
// This software is provided 'as-is', without any express or im... | 25.988235 | 79 | 0.627886 | kkmzero |
fb254ca5fc4c9e1dd79349668d8a8628bda3dcf0 | 1,384 | hpp | C++ | iRODS/lib/api/include/getMiscSvrInfo.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/include/getMiscSvrInfo.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/include/getMiscSvrInfo.hpp | nesi/irods | 49eeaf76305fc483f21b1bbfbdd77d540b59cfd2 | [
"BSD-3-Clause"
] | null | null | null | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
#ifndef GET_MISC_SVR_INFO_HPP
#define GET_MISC_SVR_INFO_HPP
#include "rods.hpp"
#include "rcMisc.hpp"
#include "procApiRequest.hpp"
#include "apiNumber.hpp"
/... | 26.615385 | 136 | 0.741329 | nesi |
fb2c976b3edd5874de4f278f2008ca6c36f69ea5 | 2,143 | cpp | C++ | Source/PluginAiState_Misc1/CAiState_Defend.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 3 | 2019-04-12T15:22:53.000Z | 2022-01-05T02:59:56.000Z | Source/PluginAiState_Misc1/CAiState_Defend.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | null | null | null | Source/PluginAiState_Misc1/CAiState_Defend.cpp | shanefarris/CoreGameEngine | 5bef275d1cd4e84aa059f2f4f9e97bfa2414d000 | [
"MIT"
] | 2 | 2019-04-10T22:46:21.000Z | 2020-05-27T16:21:37.000Z | #include "CAiState_Defend.h"
#include "CPlayer.h"
#include "CGameObjectManager.h"
#include "Ai/CFpsVehicle.h"
#include "CInventoryItem.h"
#include "CWeapon.h"
#include "CTextOutput.h"
#include "IO/CoreLogging.h"
using namespace Core;
using namespace Core::Plugin;
CAiState_Defend::CAiState_Defend(CPlayer* Player) : CC... | 21.867347 | 104 | 0.709286 | shanefarris |
fb2cedc5a8839ba0b02f2f5f708007353c9e81eb | 1,699 | hpp | C++ | src/en/EventSubscriber.hpp | kochol/ari2 | ca185191531acc1954cd4acfec2137e32fdb5c2d | [
"MIT"
] | 81 | 2018-12-11T20:48:41.000Z | 2022-03-18T22:24:11.000Z | src/en/EventSubscriber.hpp | kochol/ari2 | ca185191531acc1954cd4acfec2137e32fdb5c2d | [
"MIT"
] | 7 | 2020-04-19T11:50:39.000Z | 2021-11-12T16:08:53.000Z | src/en/EventSubscriber.hpp | kochol/ari2 | ca185191531acc1954cd4acfec2137e32fdb5c2d | [
"MIT"
] | 4 | 2019-04-24T11:51:29.000Z | 2021-03-10T05:26:33.000Z | #pragma once
#include "Entity.hpp"
#include "io/IOEvents.hpp"
#include "io/Window.hpp"
namespace ari::en
{
struct World;
struct FrameData;
struct FrameData2D;
namespace Internal
{
class BaseEventSubscriber
{
public:
virtual ~BaseEventSubscriber() = default;
};
} // Internal
/**
* Subclass thi... | 16.656863 | 122 | 0.687463 | kochol |
fb45288ae611be3f69948bdaced6726194e5ab86 | 2,409 | cpp | C++ | Engine/Core/Source/Molten/Renderer/Vulkan/Utility/VulkanMemoryBlock.cpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 2 | 2019-11-11T21:17:14.000Z | 2019-11-11T22:07:26.000Z | Engine/Core/Source/Molten/Renderer/Vulkan/Utility/VulkanMemoryBlock.cpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | null | null | null | Engine/Core/Source/Molten/Renderer/Vulkan/Utility/VulkanMemoryBlock.cpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 1 | 2020-04-05T03:50:57.000Z | 2020-04-05T03:50:57.000Z | /*
* MIT License
*
* Copyright (c) 2021 Jimmie Bergmann
*
* 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, m... | 31.285714 | 80 | 0.714819 | jimmiebergmann |
fb54b5aeba63882a7589314e638f04b71971ebf7 | 565 | cpp | C++ | peg_visitor/peg_visitor.cpp | blackgeorge-boom/parallel_packrat | 545ea11688e6102693f4b196be5b34431e1ce3f0 | [
"MIT"
] | null | null | null | peg_visitor/peg_visitor.cpp | blackgeorge-boom/parallel_packrat | 545ea11688e6102693f4b196be5b34431e1ce3f0 | [
"MIT"
] | null | null | null | peg_visitor/peg_visitor.cpp | blackgeorge-boom/parallel_packrat | 545ea11688e6102693f4b196be5b34431e1ce3f0 | [
"MIT"
] | 1 | 2020-10-06T13:36:06.000Z | 2020-10-06T13:36:06.000Z | //
// Created by blackgeorge on 4/12/19.
//
#include "peg_visitor.h"
#include "../peg/peg_elements.h"
bool NonTerminal::accept(PegVisitor& pegv)
{
return pegv.visit(*this);
}
bool Terminal::accept(PegVisitor& pegv)
{
return pegv.visit(*this);
}
bool CompositeExpression::accept(PegVisitor& pegv)
{
return... | 14.868421 | 50 | 0.681416 | blackgeorge-boom |
fb559826b3eb1003f6baed7c0f11e399ea23066a | 2,900 | cpp | C++ | independent_cng/src/filter_ar.cpp | zhang-ray/audio-processing-module | 3e779965e1316dbc07c1bd5c547646de8c4350bb | [
"BSD-3-Clause"
] | 25 | 2018-10-11T10:43:52.000Z | 2021-11-28T12:43:40.000Z | independent_cng/src/filter_ar.cpp | zhang-ray/audio-processing-module | 3e779965e1316dbc07c1bd5c547646de8c4350bb | [
"BSD-3-Clause"
] | 1 | 2018-08-25T14:55:07.000Z | 2018-08-25T14:55:07.000Z | independent_cng/src/filter_ar.cpp | zhang-ray/audio-processing-module | 3e779965e1316dbc07c1bd5c547646de8c4350bb | [
"BSD-3-Clause"
] | 7 | 2018-08-20T11:32:14.000Z | 2021-11-10T07:07:42.000Z | /*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 32.222222 | 82 | 0.542414 | zhang-ray |
fb68011b91a9280d7ac08edb96bf32760a521edf | 3,728 | cpp | C++ | tests/src/tests/ut07_ipParser.cpp | microHAL/component-cli | 179808696c6e0be65c9006b326c9454118f5c91a | [
"BSD-3-Clause"
] | null | null | null | tests/src/tests/ut07_ipParser.cpp | microHAL/component-cli | 179808696c6e0be65c9006b326c9454118f5c91a | [
"BSD-3-Clause"
] | null | null | null | tests/src/tests/ut07_ipParser.cpp | microHAL/component-cli | 179808696c6e0be65c9006b326c9454118f5c91a | [
"BSD-3-Clause"
] | null | null | null | /**
* @license BSD 3-Clause
* @copyright Pawel Okas
* @version $Id$
* @brief
*
* @authors Pawel Okas
*
* @copyright Copyright (c) 2021, Pawel Okas
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following co... | 41.88764 | 148 | 0.681867 | microHAL |
fb7221eb7159e3f435d3e888c992724739348165 | 315 | hpp | C++ | util/Stream.hpp | Xecutor/glider | 811bfa91a76cb5dbc918a219681ad2e97cb553fa | [
"MIT"
] | null | null | null | util/Stream.hpp | Xecutor/glider | 811bfa91a76cb5dbc918a219681ad2e97cb553fa | [
"MIT"
] | null | null | null | util/Stream.hpp | Xecutor/glider | 811bfa91a76cb5dbc918a219681ad2e97cb553fa | [
"MIT"
] | null | null | null | #pragma once
#include <sys/types.h>
namespace glider::util {
class Stream {
public:
virtual ~Stream() {
}
virtual size_t Read(void* buf, size_t sz) = 0;
virtual size_t Write(const void* buf, size_t sz) = 0;
virtual void Skip(size_t sz) = 0;
virtual bool isEof() = 0;
};
} // namespace glider::util
| 17.5 | 55 | 0.657143 | Xecutor |
fb74a5a941659ff01c33f3c3335d9eb6910ae8ed | 728 | cpp | C++ | src/QtManagers/Text/nTextReplacement.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | src/QtManagers/Text/nTextReplacement.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | src/QtManagers/Text/nTextReplacement.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | #include <qtmanagers.h>
#include "ui_nTextReplacement.h"
N::TextReplacement:: TextReplacement ( QWidget * widget , Plan * p )
: Dialog ( widget , p )
, ui ( new Ui::nTextReplacement )
{
ui -> setupUi ( this ) ;
if (NotNull(plan)) ... | 22.060606 | 68 | 0.565934 | Vladimir-Lin |
fb77f825a4ca6091818170c8e0561a3e44e022d0 | 7,743 | cpp | C++ | src/structure/implementation/component/CupCfd.cpp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 3 | 2021-06-24T10:20:12.000Z | 2021-07-18T14:43:19.000Z | src/structure/implementation/component/CupCfd.cpp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 2 | 2021-07-22T15:31:03.000Z | 2021-07-28T14:27:28.000Z | src/structure/implementation/component/CupCfd.cpp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | 1 | 2021-07-22T15:24:24.000Z | 2021-07-22T15:24:24.000Z | /**
* @file
* @author University of Warwick
* @version 1.0
*
* @section LICENSE
*
* @section DESCRIPTION
*
* This file contains the definitions for the CupCfd class
*/
#include "CupCfd.h"
#include "CupCfdAoSMesh.h"
#include "CupCfdSoAMesh.h"
// JsonCPP - Supplied as standalone in include/io/jsoncpp
#include... | 35.518349 | 175 | 0.699341 | thorbenlouw |
fb799a61292609499dc6008a072990a68e51751e | 538 | cpp | C++ | luogu/p5878.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p5878.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | luogu/p5878.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int n; cin >> n;
vector<int> arr(n), ans(n);
for(auto &v:arr)
cin >> v;
stack<int> s;
arr.push_back(-0x7FFFFFFF);
for(int i = 0; i < arr.size(); i++)
{
while(!s.empty... | 18.551724 | 50 | 0.436803 | freedomDR |
fb847365cf31c2123d85d3994f81859a5dc3ad7c | 34 | hpp | C++ | src/boost_hana_reverse.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_hana_reverse.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_hana_reverse.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/hana/reverse.hpp>
| 17 | 33 | 0.764706 | miathedev |
fb875d0663df0842904ce2ae81d77705f08f3188 | 1,721 | cpp | C++ | cppLearningExercises/Chapter1Helper.cpp | QueeniePun/cppLearningExercises | 4c4181573d1b7de9f67acdea1b0fd6d2245b8806 | [
"MIT"
] | null | null | null | cppLearningExercises/Chapter1Helper.cpp | QueeniePun/cppLearningExercises | 4c4181573d1b7de9f67acdea1b0fd6d2245b8806 | [
"MIT"
] | null | null | null | cppLearningExercises/Chapter1Helper.cpp | QueeniePun/cppLearningExercises | 4c4181573d1b7de9f67acdea1b0fd6d2245b8806 | [
"MIT"
] | null | null | null | #include "Chapter1Helper.h"
#include <iostream>
using namespace std;
void Chapter1Helper::RunExercise1()
{
// 1.1 Display Welcome to C++, Welcome to CS, and Programming is Fun
cout << "Welcome to C++!" << endl;
cout << "Welcome to Computer Science!" << endl;
cout << "Programming is fun" << endl;
}
... | 22.644737 | 94 | 0.500291 | QueeniePun |
fb8b5601dda47f1ccd53702d374b735f8b135e09 | 4,812 | cpp | C++ | tests/cpp/entity_metadata_validate.cpp | ZondaX/ledger-oasis | 08abbff2e2ffc38fbf75ffc772b4a60194d6bc20 | [
"Apache-2.0"
] | 2 | 2021-01-10T20:47:11.000Z | 2021-03-18T15:24:36.000Z | tests/cpp/entity_metadata_validate.cpp | Zondax/ledger-oasis | 47621828556361ae872fefce9d83a0acac7295d5 | [
"Apache-2.0"
] | 44 | 2020-01-16T18:09:14.000Z | 2022-02-03T21:49:03.000Z | tests/cpp/entity_metadata_validate.cpp | isabella232/app-oasis | 570c550a844f6b68f0f76009891b7bbc0b20905b | [
"Apache-2.0"
] | 5 | 2020-04-23T10:59:57.000Z | 2022-03-01T11:38:45.000Z | /*******************************************************************************
* (c) 2021 ZondaX GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lic... | 35.382353 | 84 | 0.688903 | ZondaX |
fb8d5c3e5361fe501eb66cd222d4b5164233312d | 508 | cpp | C++ | codes/leetcode/BinarySearch.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/leetcode/BinarySearch.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/leetcode/BinarySearch.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | /*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : mehrab.24csedu.001@gmail.com
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
class Solution {
public:
int sear... | 33.866667 | 141 | 0.521654 | smmehrab |
fb8ef345b953529106082728a7199a50df4f1a9b | 16,834 | cpp | C++ | test/glue/atlas/test_atlas_integration.cpp | GridTools/GHEX | 1adce924c02cf0553d2ceed69f7dc37e39c7013d | [
"BSD-3-Clause"
] | 9 | 2020-01-30T08:12:40.000Z | 2022-01-17T11:18:07.000Z | test/glue/atlas/test_atlas_integration.cpp | ghex-org/GHEX | 6eb91410d5c01d36a70f0eb106c1f065df3cee9f | [
"BSD-3-Clause"
] | 50 | 2019-12-19T13:25:56.000Z | 2021-09-16T13:57:36.000Z | test/glue/atlas/test_atlas_integration.cpp | ghex-org/GHEX | 6eb91410d5c01d36a70f0eb106c1f065df3cee9f | [
"BSD-3-Clause"
] | 10 | 2019-12-10T15:31:36.000Z | 2021-07-04T19:31:28.000Z | /*
* GridTools
*
* Copyright (c) 2014-2021, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <gtest/gtest.h>
#include "../../mpi_runner/mpi_test_fixture.hpp"
#include <ghex/config.hpp>
#if defined(GHEX_ATLAS_... | 39.985748 | 100 | 0.649519 | GridTools |
65267e5da7c542b968e6ebdf45fbecdda3536e00 | 2,748 | cc | C++ | test/aws_test.cc | Mnkras/atlas-system-agent | ee1e18002d5938bf83a01dd09125ffa6715a3c87 | [
"Apache-2.0"
] | null | null | null | test/aws_test.cc | Mnkras/atlas-system-agent | ee1e18002d5938bf83a01dd09125ffa6715a3c87 | [
"Apache-2.0"
] | null | null | null | test/aws_test.cc | Mnkras/atlas-system-agent | ee1e18002d5938bf83a01dd09125ffa6715a3c87 | [
"Apache-2.0"
] | null | null | null | #include "../lib/aws.h"
#include "../lib/logger.h"
#include "measurement_utils.h"
#include <fmt/ostream.h>
#include <gtest/gtest.h>
using namespace atlasagent;
using spectator::GetConfiguration;
using spectator::Registry;
using std::chrono::seconds;
using std::chrono::system_clock;
static std::string to_str(system_c... | 32.714286 | 95 | 0.691412 | Mnkras |
652ca62e7d6b86f38916a45036bbfce6ba09e990 | 27,349 | cpp | C++ | Game_exe/release_mode/windows/obj/src/Paths.cpp | hisatsuga/Salty-Psyche-Engine-Port-Main | 0c6afc6ef57f6f6a8b83ff23bb6a26bb05117ab7 | [
"Apache-2.0"
] | null | null | null | Game_exe/release_mode/windows/obj/src/Paths.cpp | hisatsuga/Salty-Psyche-Engine-Port-Main | 0c6afc6ef57f6f6a8b83ff23bb6a26bb05117ab7 | [
"Apache-2.0"
] | null | null | null | Game_exe/release_mode/windows/obj/src/Paths.cpp | hisatsuga/Salty-Psyche-Engine-Port-Main | 0c6afc6ef57f6f6a8b83ff23bb6a26bb05117ab7 | [
"Apache-2.0"
] | null | null | null | #include <hxcpp.h>
#ifndef INCLUDED_Paths
#include <Paths.h>
#endif
#ifndef INCLUDED_flixel_FlxG
#include <flixel/FlxG.h>
#endif
#ifndef INCLUDED_flixel_graphics_FlxGraphic
#include <flixel/graphics/FlxGraphic.h>
#endif
#ifndef INCLUDED_flixel_graphics_frames_FlxAtlasFrames
#include <flixel/graphics/frames/FlxAtlasFra... | 44.254045 | 271 | 0.691214 | hisatsuga |
6531679fe42e8c88e8ac466450617d898fed738a | 15,993 | cc | C++ | xmysqlnd/xmysqlnd_table.cc | kirmorozov/pecl-database-mysql_xdevapi | 214e0b13dcea17dfa86000092860e3fb35f02257 | [
"PHP-3.01"
] | 14 | 2017-11-16T03:13:31.000Z | 2022-03-10T14:59:53.000Z | xmysqlnd/xmysqlnd_table.cc | kirmorozov/pecl-database-mysql_xdevapi | 214e0b13dcea17dfa86000092860e3fb35f02257 | [
"PHP-3.01"
] | 8 | 2018-03-02T06:08:27.000Z | 2022-01-18T10:34:43.000Z | xmysqlnd/xmysqlnd_table.cc | kirmorozov/pecl-database-mysql_xdevapi | 214e0b13dcea17dfa86000092860e3fb35f02257 | [
"PHP-3.01"
] | 18 | 2018-03-01T13:45:16.000Z | 2022-03-10T06:30:02.000Z | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+--------------... | 28.356383 | 116 | 0.691052 | kirmorozov |
65322af968f6f86c5a2dcc166214d2194ccca598 | 506 | cpp | C++ | Laborator 06/Tema/Dacia.cpp | Vladimir-Anfimov/oop-2022 | 8c4fc62960dcc3d06935a9b662b5b72bba275b6c | [
"MIT"
] | null | null | null | Laborator 06/Tema/Dacia.cpp | Vladimir-Anfimov/oop-2022 | 8c4fc62960dcc3d06935a9b662b5b72bba275b6c | [
"MIT"
] | null | null | null | Laborator 06/Tema/Dacia.cpp | Vladimir-Anfimov/oop-2022 | 8c4fc62960dcc3d06935a9b662b5b72bba275b6c | [
"MIT"
] | null | null | null | #include "Dacia.h"
Dacia::Dacia() : Car(56.3, 8.3) {
this->average_speed[(int)Weather::Rain] = 78;
this->average_speed[(int) Weather::Snow] = 45;
this->average_speed[(int) Weather::Sunny] = 103;
}
const char* Dacia::getName() {
return "Dacia";
}
double Dacia::getFuelCapacity() {
return this->fuel... | 21.083333 | 52 | 0.673913 | Vladimir-Anfimov |
6532b4a4f46219b8bc564ca8e035fe912c257fba | 425 | cpp | C++ | 201712/20171201/main.cpp | Heliovic/My-CCF_CSP-Answer | 089ce2601bee3d3d5dc463486dd4192f087aa7f0 | [
"MIT"
] | 4 | 2019-03-16T14:42:08.000Z | 2019-07-18T13:57:29.000Z | 201712/20171201/main.cpp | Heliovic/My_CCF-CSP_Answer | 089ce2601bee3d3d5dc463486dd4192f087aa7f0 | [
"MIT"
] | null | null | null | 201712/20171201/main.cpp | Heliovic/My_CCF-CSP_Answer | 089ce2601bee3d3d5dc463486dd4192f087aa7f0 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <climits>
#include <algorithm>
#define MAX_N 1024
using namespace std;
int N;
int nums[MAX_N];
int main()
{
scanf("%d", &N);
for (int i = 1; i <= N; i++)
scanf("%d", &nums[i]);
int min_d = INT_MAX;
for (int i = 1; i <= N; i++)
for (int j = i + 1; j <= N;... | 14.655172 | 55 | 0.494118 | Heliovic |
653ff4b066ba68b60c544c619b2cad39333576bc | 6,254 | cpp | C++ | beelzebub/arc/x86/src/tests/lock_elision.cpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 32 | 2015-09-02T22:56:22.000Z | 2021-02-24T17:15:50.000Z | beelzebub/arc/x86/src/tests/lock_elision.cpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 30 | 2015-04-26T18:35:07.000Z | 2021-06-06T09:57:02.000Z | beelzebub/arc/x86/src/tests/lock_elision.cpp | vercas/Beelzebub | 9d0e4790060b313c6681ca7e478d08d3910332b0 | [
"NCSA"
] | 11 | 2015-09-03T20:47:41.000Z | 2021-06-25T17:00:01.000Z | /*
Copyright (c) 2016 Alexandru-Mihai Maftei. All rights reserved.
Developed by: Alexandru-Mihai Maftei
aka Vercas
http://vercas.com | https://github.com/vercas/Beelzebub
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation... | 30.359223 | 120 | 0.637512 | vercas |
65410988ed1dfc3127d500b2ea3eea65ccf4779f | 546 | cpp | C++ | 6-array/6-8-2DArray.cpp | tanle8/cdope | 2218cb2ece25b2d7bd47c3f06384302c300957f3 | [
"MIT"
] | 1 | 2018-04-04T13:43:28.000Z | 2018-04-04T13:43:28.000Z | 6-array/6-8-2DArray.cpp | tanle8/cdope | 2218cb2ece25b2d7bd47c3f06384302c300957f3 | [
"MIT"
] | null | null | null | 6-array/6-8-2DArray.cpp | tanle8/cdope | 2218cb2ece25b2d7bd47c3f06384302c300957f3 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main () {
float marks[3][2];
int i, j;
for ( i = 0; i < 3; i++ )
{
// Input of marks from the user
cout << "Enter marks of student " << (i + 1) << endl;
for ( j = 0; j < 2; j++ )
{
cout << "Subject " << (j + 1) << endl;
cin >> marks[i][j];
}
}
// Prin... | 18.2 | 64 | 0.454212 | tanle8 |
6545849954c1069120a0c24f652667659549460d | 2,012 | hpp | C++ | Source/Renderer.hpp | jazzfool/vuk-pbr | 7accc89a0d516ffa7d75ca637b1c1c0d4a177238 | [
"MIT"
] | 4 | 2020-12-16T14:46:35.000Z | 2021-07-05T20:48:27.000Z | Source/Renderer.hpp | jazzfool/vuk-pbr | 7accc89a0d516ffa7d75ca637b1c1c0d4a177238 | [
"MIT"
] | null | null | null | Source/Renderer.hpp | jazzfool/vuk-pbr | 7accc89a0d516ffa7d75ca637b1c1c0d4a177238 | [
"MIT"
] | 1 | 2020-12-13T16:44:34.000Z | 2020-12-13T16:44:34.000Z | #pragma once
#include "Types.hpp"
#include "Mesh.hpp"
#include "Scene.hpp"
#include "Material.hpp"
#include "Uniforms.hpp"
#include "PipelineStore.hpp"
#include "GfxParts/CascadedShadows.hpp"
#include "GfxParts/SSAO.hpp"
#include "GfxParts/GBuffer.hpp"
#include "GfxParts/VolumetricLights.hpp"
#include "GfxParts/Atmosp... | 22.355556 | 112 | 0.777833 | jazzfool |
654f35bd815bd3c2f078ce51572c7c2270ed98a3 | 1,840 | hpp | C++ | Box2D/Common/Mat33.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | Box2D/Common/Mat33.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | Box2D/Common/Mat33.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* Original work Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* ari... | 34.716981 | 103 | 0.688043 | louis-langholtz |
65507e931f257acffd9d3539abfd7cc91f2f6dd7 | 1,801 | cpp | C++ | Engine/src/PointLight.cpp | wqxhouse/CalVRPhysics | ebcb7c34a374ad46d25170d533ba7b23e7943312 | [
"MIT"
] | null | null | null | Engine/src/PointLight.cpp | wqxhouse/CalVRPhysics | ebcb7c34a374ad46d25170d533ba7b23e7943312 | [
"MIT"
] | null | null | null | Engine/src/PointLight.cpp | wqxhouse/CalVRPhysics | ebcb7c34a374ad46d25170d533ba7b23e7943312 | [
"MIT"
] | null | null | null | //
// PointLight.cpp
// vrphysics
//
// Created by Robin Wu on 11/11/14.
// Copyright (c) 2014 WSH. All rights reserved.
//
#include "PointLight.h"
#include <osgDB/ReadFile>
#include <cvrConfig/ConfigManager.h>
PointLight::PointLight() :
intensity(1.0f), _animated(false)
{
// init path for calvr
if(_s_lig... | 23.38961 | 130 | 0.630761 | wqxhouse |
65550d52a48df9626e4c7c9b62397ff5e5369cf8 | 935 | inl | C++ | include/lug/Graphics/Render/View.inl | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 275 | 2016-10-08T15:33:17.000Z | 2022-03-30T06:11:56.000Z | include/lug/Graphics/Render/View.inl | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 24 | 2016-09-29T20:51:20.000Z | 2018-05-09T21:41:36.000Z | include/lug/Graphics/Render/View.inl | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 37 | 2017-02-25T05:03:48.000Z | 2021-05-10T19:06:29.000Z | inline View::InitInfo& View::getInfo() {
return _info;
}
inline const View::InitInfo& View::getInfo() const {
return _info;
}
inline const View::Viewport& View::getViewport() const {
return _viewport;
}
inline const View::Scissor& View::getScissor() const {
return _scissor;
}
inline const Math::Vec3... | 19.893617 | 76 | 0.66738 | Lugdunum3D |
6555716d805655b63cb4b14de723a5fcc581c3be | 1,201 | cpp | C++ | dbms/src/Storages/tests/system_numbers.cpp | rudneff/ClickHouse | 3cb59b92bccbeb888d136f7c6e14b622382c0434 | [
"Apache-2.0"
] | 3 | 2016-12-30T14:19:47.000Z | 2021-11-13T06:58:32.000Z | dbms/src/Storages/tests/system_numbers.cpp | rudneff/ClickHouse | 3cb59b92bccbeb888d136f7c6e14b622382c0434 | [
"Apache-2.0"
] | 1 | 2017-01-13T21:29:36.000Z | 2017-01-16T18:29:08.000Z | dbms/src/Storages/tests/system_numbers.cpp | jbfavre/clickhouse-debian | 3806e3370decb40066f15627a3bca4063b992bfb | [
"Apache-2.0"
] | 1 | 2021-02-07T16:00:54.000Z | 2021-02-07T16:00:54.000Z | #include <iostream>
#include <DB/IO/WriteBufferFromOStream.h>
#include <DB/Storages/System/StorageSystemNumbers.h>
#include <DB/DataStreams/LimitBlockInputStream.h>
#include <DB/DataStreams/TabSeparatedRowOutputStream.h>
#include <DB/DataStreams/BlockOutputStreamFromRowOutputStream.h>
#include <DB/DataStreams/copyData... | 26.688889 | 104 | 0.762698 | rudneff |
6557ba1cf0b408b0570148dcadf56a27d8f6bed3 | 7,034 | cc | C++ | src/xenia/patcher/patcher.cc | Permdog99/xenia-canary | c99adff598480c4bf49100b90223e14bffbd802a | [
"BSD-3-Clause"
] | 262 | 2019-08-17T08:27:30.000Z | 2022-03-29T02:36:04.000Z | src/xenia/patcher/patcher.cc | Permdog99/xenia-canary | c99adff598480c4bf49100b90223e14bffbd802a | [
"BSD-3-Clause"
] | 33 | 2019-08-18T09:39:40.000Z | 2022-03-31T20:47:39.000Z | src/xenia/patcher/patcher.cc | Permdog99/xenia-canary | c99adff598480c4bf49100b90223e14bffbd802a | [
"BSD-3-Clause"
] | 141 | 2019-09-06T01:37:01.000Z | 2022-03-23T23:39:05.000Z | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2021 Ben Vanik. All rights reserved. ... | 32.266055 | 79 | 0.646432 | Permdog99 |
655e06f0fdc1bed2867c64ba655d5fa4f17ab2b6 | 2,619 | cpp | C++ | cga/secure/utility.cpp | cgacurrency/cga-node | ad21cd224bed5de4bd0cec8c2aa42d35aea842a5 | [
"BSD-2-Clause"
] | null | null | null | cga/secure/utility.cpp | cgacurrency/cga-node | ad21cd224bed5de4bd0cec8c2aa42d35aea842a5 | [
"BSD-2-Clause"
] | null | null | null | cga/secure/utility.cpp | cgacurrency/cga-node | ad21cd224bed5de4bd0cec8c2aa42d35aea842a5 | [
"BSD-2-Clause"
] | null | null | null | #include <cga/secure/utility.hpp>
#include <cga/lib/interface.h>
#include <cga/node/working.hpp>
static std::vector<boost::filesystem::path> all_unique_paths;
boost::filesystem::path cga::working_path (bool legacy)
{
auto result (cga::app_path ());
switch (cga::cga_network)
{
case cga::cga_networks::cga_test_ne... | 23.383929 | 151 | 0.64643 | cgacurrency |
655e53e94c75ab1a92456d0353b3535136858035 | 564 | cpp | C++ | sem1/hw4/hw4.3/hw4.3/hw4.3/main.cpp | Daria-Donina/Homework | 8853fb65c7a0ad62556a49d12908098af9caf7ed | [
"Apache-2.0"
] | 1 | 2018-11-29T11:12:51.000Z | 2018-11-29T11:12:51.000Z | sem1/hw4/hw4.3/hw4.3/hw4.3/main.cpp | Daria-Donina/Homework | 8853fb65c7a0ad62556a49d12908098af9caf7ed | [
"Apache-2.0"
] | null | null | null | sem1/hw4/hw4.3/hw4.3/hw4.3/main.cpp | Daria-Donina/Homework | 8853fb65c7a0ad62556a49d12908098af9caf7ed | [
"Apache-2.0"
] | null | null | null | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include "auxiliary.h"
#include "test.h"
#include "interface.h"
int main()
{
if (test())
{
printf("Tests passed\n\n");
}
else
{
printf("Tests failed\n\n");
}
const int size = 100;
FILE * phonebookFile = fopen("phonebook.txt", "r");
... | 14.461538 | 52 | 0.66844 | Daria-Donina |
65606aa5ebf00de7c13b0c9abcba3145472d2958 | 916 | hpp | C++ | libs/core/include/fcppt/algorithm/equal.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/algorithm/equal.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/algorithm/equal.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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)
#ifndef FCPPT_ALGORITHM_EQUAL_HPP_INCLUDED
#define FCPPT_ALGORITHM_EQUAL_HPP_INCLUDED
#include <f... | 15.525424 | 61 | 0.695415 | pmiddend |
656c17691c55dbcb02e6663d3deead90925f1cce | 650 | cpp | C++ | UVa/UVA1339.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-09-11T13:17:28.000Z | 2020-09-11T13:17:28.000Z | UVa/UVA1339.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-10-22T13:36:23.000Z | 2020-10-22T13:36:23.000Z | UVa/UVA1339.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-10-22T13:33:11.000Z | 2020-10-22T13:33:11.000Z | #include <bits/stdc++.h>
using namespace std;
int main() {
string s, t;
ios::sync_with_stdio(false);
while (cin >> s >> t) {
int p1[26], p2[26];
memset(p1, 0, sizeof(p1));
memset(p2, 0, sizeof(p2));
for (char &i : s) p1[i - 'A']++;
for (char &i : t) p2[i - 'A']++;
... | 23.214286 | 40 | 0.387692 | Insouciant21 |
6570252780ca3970272dfdb1045f9576ee5f076a | 3,075 | hpp | C++ | src/settings.hpp | tigrazone/fluctus | 7f5721d725f2787e5fb705107c83611200fc5ebb | [
"MIT"
] | null | null | null | src/settings.hpp | tigrazone/fluctus | 7f5721d725f2787e5fb705107c83611200fc5ebb | [
"MIT"
] | null | null | null | src/settings.hpp | tigrazone/fluctus | 7f5721d725f2787e5fb705107c83611200fc5ebb | [
"MIT"
] | 3 | 2021-05-06T12:43:07.000Z | 2021-05-27T15:32:18.000Z | #pragma once
#include <string>
#include <map>
#include "json.hpp"
#include "clcontext.hpp"
typedef struct {
vfloat3 pos;
vfloat3 right;
vfloat3 up;
vfloat3 dir;
cl_float fov;
cl_float apertureSize;
cl_float focalDist;
vfloat2 cameraRotation;
float cameraSpeed;
} CameraSettings;
ty... | 29.567308 | 76 | 0.695935 | tigrazone |
65717f4ca8c0cb4486be95dbc9a9c8dad2160289 | 88,262 | cpp | C++ | src/TressetteClient/cGameMainGfx.cpp | aaaasmile/tressettecpp | 0f06a3d5eee6b5aa7e9a099652da548213d07f21 | [
"MIT"
] | null | null | null | src/TressetteClient/cGameMainGfx.cpp | aaaasmile/tressettecpp | 0f06a3d5eee6b5aa7e9a099652da548213d07f21 | [
"MIT"
] | null | null | null | src/TressetteClient/cGameMainGfx.cpp | aaaasmile/tressettecpp | 0f06a3d5eee6b5aa7e9a099652da548213d07f21 | [
"MIT"
] | null | null | null | // cGameMainGfx.cpp
#include "StdAfx.h"
#pragma warning(disable:4786)
#include "win_type_global.h"
#include <stdio.h>
#include <SDL_image.h>
#include <SDL_endian.h>
#include "cDelayNextAction.h"
#include "cGameMainGfx.h"
#include "gfx_util.h"
#include "EngineApp.h"
#include "cSettings.h"
#include "cButtonGfx.h"
... | 28.037484 | 129 | 0.555675 | aaaasmile |
6576e499016076640224d7fdb994a7bed306b7c9 | 13,304 | cpp | C++ | extern/libebml/src/src/EbmlCrc32.cpp | MinjingLin/Azure-Kinect-Sensor-SDK-bk | ff2b5b1ca7578355c40d1c5230b9d8b7511ebae5 | [
"MIT"
] | 46 | 2016-07-05T14:55:24.000Z | 2021-12-24T05:10:00.000Z | extern/libebml/src/src/EbmlCrc32.cpp | MinjingLin/Azure-Kinect-Sensor-SDK-bk | ff2b5b1ca7578355c40d1c5230b9d8b7511ebae5 | [
"MIT"
] | 8 | 2018-05-25T07:36:41.000Z | 2021-04-08T14:27:54.000Z | extern/libebml/src/src/EbmlCrc32.cpp | MinjingLin/Azure-Kinect-Sensor-SDK-bk | ff2b5b1ca7578355c40d1c5230b9d8b7511ebae5 | [
"MIT"
] | 16 | 2016-05-29T13:39:23.000Z | 2022-02-22T13:53:05.000Z | /****************************************************************************
** libebml : parse EBML files, see http://embl.sourceforge.net/
**
** <file/class description>
**
** Copyright (C) 2002-2010 Steve Lhomme. All rights reserved.
**
** This file is part of libebml.
**
** This library is free software; you can ... | 37.903134 | 102 | 0.741206 | MinjingLin |
6583058fb30183899862e7a0f1c33f57e939399b | 3,560 | cpp | C++ | interpretador.cpp | viniciusfer01/SculptorTheReturn | 9c80c9fc4c8a74759d1663e9b57a4d9199e2b2e2 | [
"MIT"
] | null | null | null | interpretador.cpp | viniciusfer01/SculptorTheReturn | 9c80c9fc4c8a74759d1663e9b57a4d9199e2b2e2 | [
"MIT"
] | null | null | null | interpretador.cpp | viniciusfer01/SculptorTheReturn | 9c80c9fc4c8a74759d1663e9b57a4d9199e2b2e2 | [
"MIT"
] | null | null | null | #include "interpretador.h"
#include <fstream>
#include <sstream>
#include <string>
#include <iostream>
#include <string.h>
#include <vector>
#include "putbox.h"
#include "putellipsoid.h"
#include "putsphere.h"
#include "putvoxel.h"
#include "cutbox.h"
#include "cutellipsoid.h"
#include "cutsphere.h"
#include "cutvoxel.... | 32.072072 | 104 | 0.458427 | viniciusfer01 |
658329ac20085ef0ced31e4bbfe4ead8ae468281 | 2,453 | cpp | C++ | modules/camera_calibration/event/src/EventFrame.cpp | MobilePerceptionLab/EventCameraCalibration | debd774ac989674b500caf27641b7ad4e94681e9 | [
"Apache-2.0"
] | 22 | 2021-08-06T03:21:03.000Z | 2022-02-25T03:40:54.000Z | modules/camera_calibration/event/src/EventFrame.cpp | MobilePerceptionLab/EventCameraCalibration | debd774ac989674b500caf27641b7ad4e94681e9 | [
"Apache-2.0"
] | 1 | 2022-02-25T02:55:13.000Z | 2022-02-25T15:18:45.000Z | modules/camera_calibration/event/src/EventFrame.cpp | MobilePerceptionLab/EventCameraCalibration | debd774ac989674b500caf27641b7ad4e94681e9 | [
"Apache-2.0"
] | 7 | 2021-08-11T12:29:35.000Z | 2022-02-25T03:41:01.000Z | //
// Created by huangkun on 2020/9/22.
//
#include <Eigen/Eigen>
#include <opencv2/core/eigen.hpp>
#include <opengv2/event/EventFrame.hpp>
opengv2::EventFrame::EventFrame(opengv2::EventContainer::Ptr container, const std::pair<double, double> &duration)
: CameraFrame(cv::Mat(), container->camera), container... | 40.883333 | 114 | 0.611088 | MobilePerceptionLab |
658745b8c3dc60105bf8f831f56dea8706b674b8 | 2,371 | hpp | C++ | input/Key.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | input/Key.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | input/Key.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #ifndef ___INANITY_INPUT_KEY_HPP___
#define ___INANITY_INPUT_KEY_HPP___
#include "input.hpp"
BEGIN_INANITY_INPUT
/// Key numbers.
/** Cross-platform, but are got mostly from X11 key numbers. */
struct Keys
{
enum _
{
_Unknown = 0,
BackSpace = 0x08,
Tab = 0x09,
LineFeed = 0x0a,
Clear = 0x0b,
Return = 0... | 15.006329 | 63 | 0.53817 | quyse |
658cde5dc6c6838030c7eb22831420311cec2135 | 1,189 | cpp | C++ | lib/guide/guideuihighlighter.cpp | frank-lesser/gambit | 21601d3fd939405523d18e7a9f51eae9780de964 | [
"Apache-2.0"
] | 41 | 2015-12-19T12:03:08.000Z | 2021-10-05T16:15:51.000Z | lib/guide/guideuihighlighter.cpp | frank-lesser/gambit | 21601d3fd939405523d18e7a9f51eae9780de964 | [
"Apache-2.0"
] | 133 | 2015-12-21T08:28:00.000Z | 2017-11-24T03:48:05.000Z | lib/guide/guideuihighlighter.cpp | udem-dlteam/gambit | 776ccd958acc36b86397767c159c6ac526f14319 | [
"Apache-2.0"
] | 4 | 2017-10-07T01:22:11.000Z | 2021-01-24T10:21:54.000Z | /* File: "guideuihighlighter.cpp", Time-stamp: <2005-04-12 14:25:52 feeley> */
/* Copyright (C) 1994-2005 by Marc Feeley, All Rights Reserved. */
/*---------------------------------------------------------------------------*/
#include "guideuihighlighter.h"
#include <qtextedit.h>
/*---------------------------------... | 28.309524 | 96 | 0.587889 | frank-lesser |
658fd31652866d6240c66c059ba8abd29b8cb38b | 1,327 | cpp | C++ | source/min-lib/test/dcblocker/dcblocker_test.cpp | wwerk/wkw | a17bb2184a20a67d942b87d346f3200fc0c138af | [
"MIT"
] | 2 | 2015-08-31T19:44:15.000Z | 2018-01-30T04:05:33.000Z | source/min-lib/test/dcblocker/dcblocker_test.cpp | electrotap/Teabox | fc1b466ec9fe4eb343982df8e8de37c86675cbec | [
"MIT"
] | null | null | null | source/min-lib/test/dcblocker/dcblocker_test.cpp | electrotap/Teabox | fc1b466ec9fe4eb343982df8e8de37c86675cbec | [
"MIT"
] | null | null | null | /// @file
/// @brief Unit test for the dcblocker class
/// @ingroup minlib
/// @copyright Copyright 2018 The Min-Lib Authors. All rights reserved.
/// @license Use of this source code is governed by the MIT License found in the License.md file.
#define CATCH_CONFIG_MAIN
#include "c74_min_catch.h"
SCENARIO ("produ... | 31.595238 | 118 | 0.596081 | wwerk |
65941343b6fee25d2e7ceaa636c4e3377a50795b | 3,291 | cpp | C++ | common/hAStar.cpp | huangjund/path_planner | 79892899ffa39a6368ae8b70ff4742b6d618ae14 | [
"BSD-3-Clause"
] | null | null | null | common/hAStar.cpp | huangjund/path_planner | 79892899ffa39a6368ae8b70ff4742b6d618ae14 | [
"BSD-3-Clause"
] | null | null | null | common/hAStar.cpp | huangjund/path_planner | 79892899ffa39a6368ae8b70ff4742b6d618ae14 | [
"BSD-3-Clause"
] | null | null | null | #include "hAStar.h"
namespace HybridAStar
{
namespace Common
{
struct CompareNodes
{
bool operator()(const std::shared_ptr<GridState> lhs, const std::shared_ptr<GridState> rhs) const {
return lhs->getC() > rhs->getC();
}
};
hAStar::hAStar(const std::shared_ptr<GridState>& start, const GridSt... | 28.37069 | 125 | 0.583409 | huangjund |
6595b9db5252ea435ae581b966550d0605b31f77 | 627 | hpp | C++ | src/Core/GameObjects/BattleFwd.hpp | heroesiiifan/FreeHeroes | d9b396b527918cdf863fd2310bcf261e213bf553 | [
"MIT"
] | 17 | 2020-08-13T03:23:27.000Z | 2022-02-04T00:17:53.000Z | src/Core/GameObjects/BattleFwd.hpp | heroesiiifan/FreeHeroes | d9b396b527918cdf863fd2310bcf261e213bf553 | [
"MIT"
] | 2 | 2021-09-05T21:00:31.000Z | 2021-09-12T07:46:53.000Z | src/Core/GameObjects/BattleFwd.hpp | heroesiiifan/FreeHeroes | d9b396b527918cdf863fd2310bcf261e213bf553 | [
"MIT"
] | 2 | 2021-09-08T10:37:34.000Z | 2021-09-09T00:35:44.000Z | /*
* Copyright (C) 2020 Smirnov Vladimir / mapron1@gmail.com
* SPDX-License-Identifier: MIT
* See LICENSE file for details.
*/
#pragma once
namespace FreeHeroes::Core {
struct BattleStack;
using BattleStackConstPtr = const BattleStack*;
using BattleStackMutablePtr = BattleStack*;
struct BattleHero;
using Battl... | 23.222222 | 58 | 0.783094 | heroesiiifan |
659870e52c3593b88e8b2188fcf8c5c1e7753ecb | 1,052 | cpp | C++ | codes/vj/F.cpp | hiperwe/Grade1 | e987d37cbae73d8ad1cb60007fc1497b08c4fa01 | [
"MIT"
] | 1 | 2019-07-21T16:41:22.000Z | 2019-07-21T16:41:22.000Z | codes/vj/F.cpp | hiperwe/Grade1 | e987d37cbae73d8ad1cb60007fc1497b08c4fa01 | [
"MIT"
] | null | null | null | codes/vj/F.cpp | hiperwe/Grade1 | e987d37cbae73d8ad1cb60007fc1497b08c4fa01 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
int n,q,l,r;
int a[5050],ans[5050][5050];
int max(int a,int b){
return a > b?a:b;
}
int main(){
int end, tmp;
scanf("%d",&n);
memset(ans,0,sizeof(ans));
for(int i = 1;i <= n;i++){
scanf("%d",&a[i]);
ans[i][i] = a[i];
// printf("ans[%d][%d] = %d\n",i,i,ans[i][i]);
}
f... | 21.469388 | 128 | 0.447719 | hiperwe |
659e7b4211d898c7f15bb97afe2d52e7e0291443 | 607 | hpp | C++ | include/member_thunk/error/win32_error.hpp | sylveon/member_thunk | 1ac81a983e951678638be7785de2cce2d9f73151 | [
"MIT"
] | 9 | 2019-12-02T11:59:24.000Z | 2022-02-28T06:34:59.000Z | include/member_thunk/error/win32_error.hpp | sylveon/member_thunk | 1ac81a983e951678638be7785de2cce2d9f73151 | [
"MIT"
] | 29 | 2019-11-26T17:12:33.000Z | 2020-10-06T04:58:53.000Z | include/member_thunk/error/win32_error.hpp | sylveon/member_thunk | 1ac81a983e951678638be7785de2cce2d9f73151 | [
"MIT"
] | null | null | null | #pragma once
#include <errhandlingapi.h>
#include <minwindef.h>
#include <string_view>
#include "./exception.hpp"
namespace member_thunk
{
class win32_error final : public exception
{
std::string_view api;
DWORD error;
public:
constexpr win32_error(std::string_view api, DWORD error) noexcept : exception("A ... | 24.28 | 133 | 0.729819 | sylveon |
4f1ebc9675ce2121777d0bfcb2f0862af2115297 | 18,743 | cpp | C++ | include/hlsdk-2.3-p4/singleplayer/dlls/leech.cpp | siger-yeung/demobot | 01cf4a4c18fe507ac854e7205ef03dac84003eb3 | [
"MIT"
] | null | null | null | include/hlsdk-2.3-p4/singleplayer/dlls/leech.cpp | siger-yeung/demobot | 01cf4a4c18fe507ac854e7205ef03dac84003eb3 | [
"MIT"
] | null | null | null | include/hlsdk-2.3-p4/singleplayer/dlls/leech.cpp | siger-yeung/demobot | 01cf4a4c18fe507ac854e7205ef03dac84003eb3 | [
"MIT"
] | null | null | null | /***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* This source code contains proprietary and confidential information of
* ... | 25.888122 | 165 | 0.652297 | siger-yeung |
4f1f80963f4cc6473e9d8a1bdac991dc8d4a3dba | 925 | cpp | C++ | codeforces/1619A.cpp | mhilmyh/algo-data-struct | 6a9b1e5220e3c4e4a41200a09cb27f3f55560693 | [
"MIT"
] | null | null | null | codeforces/1619A.cpp | mhilmyh/algo-data-struct | 6a9b1e5220e3c4e4a41200a09cb27f3f55560693 | [
"MIT"
] | null | null | null | codeforces/1619A.cpp | mhilmyh/algo-data-struct | 6a9b1e5220e3c4e4a41200a09cb27f3f55560693 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
bool DebugMode = false;
typedef unsigned long long int ulli;
typedef long long int lli;
typedef unsigned long int uli;
typedef long int li;
typedef unsigned short int usi;
typedef short int si;
void printYesOrNo(bool v) {
if (v) printf("YES\n");
else printf("NO\n");
... | 17.12963 | 50 | 0.581622 | mhilmyh |
4f1fcf853e921ab29c189488ba51303b719dccc4 | 3,854 | cpp | C++ | SQLC/CircularQueue.cpp | Zafershah24/Data-Structures-and-Algorithms | 9aad10d4f969e2c0cd74795f3ba373ccd6c81c50 | [
"Apache-2.0"
] | null | null | null | SQLC/CircularQueue.cpp | Zafershah24/Data-Structures-and-Algorithms | 9aad10d4f969e2c0cd74795f3ba373ccd6c81c50 | [
"Apache-2.0"
] | null | null | null | SQLC/CircularQueue.cpp | Zafershah24/Data-Structures-and-Algorithms | 9aad10d4f969e2c0cd74795f3ba373ccd6c81c50 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include <cstdlib>
// Change rear ++ to (rear=rear+1)%sizeofarray (in EnQueue Operation)
// Change frnt ++ to (frnt=frntr+1)%sizeofarray (in DeQueue Operation)
//And in IsFull Method (rear+1)%sizeofarray==frnt
// Count Method changes a bit
using namespace std;
class CircularQueue {
int a[4];
in... | 21.060109 | 105 | 0.483134 | Zafershah24 |
4f224e32ceea45c401e363ed65f7d506a454a115 | 6,207 | hpp | C++ | mpfr/mpfr.hpp | hirakuni45/test | 04254eab7d2398408aa0015194d4c21011f9bd7a | [
"BSD-3-Clause"
] | null | null | null | mpfr/mpfr.hpp | hirakuni45/test | 04254eab7d2398408aa0015194d4c21011f9bd7a | [
"BSD-3-Clause"
] | null | null | null | mpfr/mpfr.hpp | hirakuni45/test | 04254eab7d2398408aa0015194d4c21011f9bd7a | [
"BSD-3-Clause"
] | null | null | null | #pragma once
//=============================================================================//
/*! @file
@brief mpfr クラス @n
GNU gmp, mpfr の C++ ラッパー
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2020 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/R... | 23.074349 | 83 | 0.435476 | hirakuni45 |
4f2510044980ab172e68ba6d5af37704b284317a | 5,156 | hpp | C++ | vendor/entt-3.2.0/src/entt/core/algorithm.hpp | MirrasHue/PopHead | f6bfe51059723bc6567a057028b7a83fabf7a015 | [
"MIT"
] | 117 | 2019-03-18T20:09:54.000Z | 2022-03-27T22:40:52.000Z | vendor/entt-3.2.0/src/entt/core/algorithm.hpp | MirrasHue/PopHead | f6bfe51059723bc6567a057028b7a83fabf7a015 | [
"MIT"
] | 443 | 2019-04-07T19:59:56.000Z | 2020-05-23T12:25:28.000Z | vendor/entt-3.2.0/src/entt/core/algorithm.hpp | MirrasHue/PopHead | f6bfe51059723bc6567a057028b7a83fabf7a015 | [
"MIT"
] | 19 | 2019-03-20T19:57:34.000Z | 2020-11-21T15:35:02.000Z | #ifndef ENTT_CORE_ALGORITHM_HPP
#define ENTT_CORE_ALGORITHM_HPP
#include <utility>
#include <iterator>
#include <algorithm>
#include <functional>
#include "utility.hpp"
namespace entt {
/**
* @brief Function object to wrap `std::sort` in a class type.
*
* Unfortunately, `std::sort` cannot be passed as template... | 35.805556 | 154 | 0.593871 | MirrasHue |
4f25db442b3062aaf7aadb41a2d61e14303097c3 | 1,477 | cpp | C++ | aws-cpp-sdk-serverlessrepo/source/model/PutApplicationPolicyRequest.cpp | woohoou/aws-sdk-cpp | a42835a8aad2eac1e334d899a3fbfedcaa341d51 | [
"Apache-2.0"
] | 1 | 2020-07-16T19:03:13.000Z | 2020-07-16T19:03:13.000Z | aws-cpp-sdk-serverlessrepo/source/model/PutApplicationPolicyRequest.cpp | woohoou/aws-sdk-cpp | a42835a8aad2eac1e334d899a3fbfedcaa341d51 | [
"Apache-2.0"
] | 18 | 2018-05-15T16:41:07.000Z | 2018-05-21T00:46:30.000Z | aws-cpp-sdk-serverlessrepo/source/model/PutApplicationPolicyRequest.cpp | woohoou/aws-sdk-cpp | a42835a8aad2eac1e334d899a3fbfedcaa341d51 | [
"Apache-2.0"
] | 1 | 2019-10-31T11:19:50.000Z | 2019-10-31T11:19:50.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 28.403846 | 105 | 0.765741 | woohoou |
4f26272c351863625be15f91a7edc7fff8e67368 | 1,871 | hpp | C++ | src/scene.hpp | DavoSK/baliksena | c347055084b8e5ea9b0f970cbceb0769ab4504d3 | [
"BSD-3-Clause"
] | 5 | 2021-11-12T18:03:06.000Z | 2021-12-19T14:22:05.000Z | src/scene.hpp | DavoSK/baliksena | c347055084b8e5ea9b0f970cbceb0769ab4504d3 | [
"BSD-3-Clause"
] | null | null | null | src/scene.hpp | DavoSK/baliksena | c347055084b8e5ea9b0f970cbceb0769ab4504d3 | [
"BSD-3-Clause"
] | 1 | 2021-11-12T18:03:08.000Z | 2021-11-12T18:03:08.000Z | #pragma once
#include <memory>
#include <string>
#include <queue>
#include "mafia/parser_cachebin.hpp"
#include "mafia/parser_scene2bin.hpp"
#include "model.hpp"
#include "renderer.hpp"
class Light;
class Material;
class Model;
class Camera;
class Sector;
class Sound;
class Mesh;
class Scene : public Model {
public... | 32.824561 | 98 | 0.722074 | DavoSK |
4f26cfbbe07d6c9554f96f091a10e3fe37f5f408 | 1,504 | cpp | C++ | examples/example4.cpp | hlitz/cache-table | 2efb629236c5a72a3931ee3defdaa4cfcb11b7e7 | [
"BSD-3-Clause"
] | null | null | null | examples/example4.cpp | hlitz/cache-table | 2efb629236c5a72a3931ee3defdaa4cfcb11b7e7 | [
"BSD-3-Clause"
] | null | null | null | examples/example4.cpp | hlitz/cache-table | 2efb629236c5a72a3931ee3defdaa4cfcb11b7e7 | [
"BSD-3-Clause"
] | null | null | null |
#include <iostream>
#include <mm/cache_set.hpp>
/**
* This example shows how to use the discard function.
*
* The discard function is used when there is a key collision, in
* this case the old element is removed and passed to the discard
* function.
*
* The function can be used to verify discarded items, ... | 25.931034 | 69 | 0.524601 | hlitz |
4f2b9ab667a70a0f1e8e88a7cf2c29821896ee90 | 6,411 | cc | C++ | squid/squid3-3.3.8.spaceify/src/DiskIO/AIO/AIODiskIOStrategy.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-01-20T15:25:34.000Z | 2017-12-20T06:47:42.000Z | squid/squid3-3.3.8.spaceify/src/DiskIO/AIO/AIODiskIOStrategy.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-05-15T09:32:55.000Z | 2016-02-18T13:43:31.000Z | squid/squid3-3.3.8.spaceify/src/DiskIO/AIO/AIODiskIOStrategy.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | null | null | null |
/*
* SQUID Web Proxy Cache http://www.squid-cache.org/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individuals from
* the Internet community; see the CONTRIBUTORS file for full
* details. Many organizations have provided support for Sq... | 27.165254 | 131 | 0.621276 | spaceify |
4f2c23bc97197017aae5579d50485ea92e3234a8 | 37,370 | cpp | C++ | src/tests/ngraph_helpers/ngraph_functions/src/utils/ngraph_helpers.cpp | ivkalgin/openvino | 81685c8d212135dd9980da86a18db41fbf6d250a | [
"Apache-2.0"
] | null | null | null | src/tests/ngraph_helpers/ngraph_functions/src/utils/ngraph_helpers.cpp | ivkalgin/openvino | 81685c8d212135dd9980da86a18db41fbf6d250a | [
"Apache-2.0"
] | 18 | 2022-01-21T08:42:58.000Z | 2022-03-28T13:21:31.000Z | src/tests/ngraph_helpers/ngraph_functions/src/utils/ngraph_helpers.cpp | ematroso/openvino | 403339f8f470c90dee6f6d94ed58644b2787f66b | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include <memory>
#include <queue>
#include <ngraph/op/util/op_types.hpp>
#include <ngraph/opsets/opset1.hpp>
#include <ngraph/opsets/opset3.hpp>
#include <ngraph/opsets/opset5.hpp>
#include <ngraph/pass/constant_... | 39.254202 | 156 | 0.622933 | ivkalgin |
4f2d2db26cf1825ff0c6fca4c0f560f07df7f21c | 25,970 | cpp | C++ | system/jlib/jmisc.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | system/jlib/jmisc.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | system/jlib/jmisc.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | 26.048144 | 155 | 0.561841 | oxhead |
4f2f203beeaf2ea35431f800e2d1063f1f769177 | 3,549 | cpp | C++ | tests/unit/parallel/segmented_algorithms/partitioned_vector_transform_reduce2.cpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2019-07-04T10:18:01.000Z | 2019-07-04T10:18:01.000Z | tests/unit/parallel/segmented_algorithms/partitioned_vector_transform_reduce2.cpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2017-07-24T07:16:26.000Z | 2017-07-24T08:03:33.000Z | tests/unit/parallel/segmented_algorithms/partitioned_vector_transform_reduce2.cpp | biddisco/hpx | 2d244e1e27c6e014189a6cd59c474643b31fad4b | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2014-2017 Hartmut Kaiser
//
// 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)
#include <hpx/hpx_main.hpp>
#include <hpx/include/parallel_for_each.hpp>
#include <hpx/include/parallel_transform_redu... | 33.481132 | 80 | 0.601578 | bremerm31 |
4f30a899e85dfb149885fb4e0a8f13b621b3a600 | 852 | cpp | C++ | src/vehicle.cpp | lucianefalcao/cvrp | a26dd2a33d90a1ecee879f2cb415151dca573778 | [
"Apache-2.0"
] | null | null | null | src/vehicle.cpp | lucianefalcao/cvrp | a26dd2a33d90a1ecee879f2cb415151dca573778 | [
"Apache-2.0"
] | null | null | null | src/vehicle.cpp | lucianefalcao/cvrp | a26dd2a33d90a1ecee879f2cb415151dca573778 | [
"Apache-2.0"
] | null | null | null | #include "../includes/vehicle.h"
Vehicle::Vehicle()
{
this->cost = 0;
}
void Vehicle::setCapacity(int capacity)
{
this->capacity = capacity;
}
int Vehicle::getCapacity()
{
return capacity;
}
void Vehicle::addClientToRoute(Client client)
{
this->route.push_back(client);
}
void Vehicle::setLoad(int... | 12.716418 | 45 | 0.644366 | lucianefalcao |
4f32c352808735c2bb3a0ad3daabf046333b7db3 | 4,928 | cpp | C++ | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/XAML animation library sample (Windows 8)/C++/Scenario3.xaml.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/XAML animation library sample (Windows 8)/C++/Scenario3.xaml.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/XAML animation library sample (Windows 8)/C++/Scenario3.xaml.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
/... | 29.866667 | 131 | 0.702516 | alonmm |
4f34f3ac87b0f794c9af18b9dc1431fb030ec623 | 146,440 | cpp | C++ | openmp/runtime/src/kmp_csupport.cpp | kubamracek/llvm-project | f7ff1869cdd487d4baaf009380901e5469d8344d | [
"Apache-2.0"
] | null | null | null | openmp/runtime/src/kmp_csupport.cpp | kubamracek/llvm-project | f7ff1869cdd487d4baaf009380901e5469d8344d | [
"Apache-2.0"
] | null | null | null | openmp/runtime/src/kmp_csupport.cpp | kubamracek/llvm-project | f7ff1869cdd487d4baaf009380901e5469d8344d | [
"Apache-2.0"
] | null | null | null | /*
* kmp_csupport.cpp -- kfront linkage support for OpenMP.
*/
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: ... | 33.587156 | 80 | 0.692762 | kubamracek |
4f38390b293611523388d4d5f5ae856f4a010f76 | 4,330 | cpp | C++ | examples/example-08d-write-hyperslab-using-dsetinfo.cpp | mpb27/h5pp | bd0c70d30329732285b2c06f9dc48795f7d18180 | [
"MIT"
] | 60 | 2019-03-11T09:02:49.000Z | 2022-02-01T05:42:30.000Z | examples/example-08d-write-hyperslab-using-dsetinfo.cpp | mpb27/h5pp | bd0c70d30329732285b2c06f9dc48795f7d18180 | [
"MIT"
] | 10 | 2020-01-24T09:40:53.000Z | 2022-03-30T10:56:12.000Z | examples/example-08d-write-hyperslab-using-dsetinfo.cpp | mpb27/h5pp | bd0c70d30329732285b2c06f9dc48795f7d18180 | [
"MIT"
] | 9 | 2020-01-24T10:23:43.000Z | 2022-01-21T02:34:55.000Z | #include <h5pp/h5pp.h>
#include <iostream>
// This example shows how to write data into a portion of a dataset, a so-called "hyperslab".
// This time we will use a metadata object of type "h5pp::DsetInfo" which is normally returned from .writeDataset(...).
// The main motivation is that reusing the h5pp::DsetInfo obje... | 48.651685 | 138 | 0.633256 | mpb27 |
4f39836eb4aa857ccb4f4f5990747cc810532923 | 7,570 | cpp | C++ | export/release/macos/obj/src/BackgroundGirls.cpp | EnvyBun/KB-FNF-MOD | f7541661229c587bf99f0508cc3eba7043f8c177 | [
"Apache-2.0"
] | 1 | 2021-07-19T05:10:43.000Z | 2021-07-19T05:10:43.000Z | export/release/macos/obj/src/BackgroundGirls.cpp | EnvyBun/KB-FNF-MOD | f7541661229c587bf99f0508cc3eba7043f8c177 | [
"Apache-2.0"
] | null | null | null | export/release/macos/obj/src/BackgroundGirls.cpp | EnvyBun/KB-FNF-MOD | f7541661229c587bf99f0508cc3eba7043f8c177 | [
"Apache-2.0"
] | null | null | null | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_BackgroundGirls
#include <BackgroundGirls.h>
#endif
#ifndef INCLUDED_CoolUtil
#include <CoolUtil.h>
#endif
#ifndef INCLUDED_Paths
#include <Paths.h>
#endif
#ifndef INCLUDED_flixel_FlxBasic
#include <flixel/FlxBasic.h>
#endif
#ifndef INCLUDED_flixel_FlxObje... | 40.05291 | 247 | 0.737252 | EnvyBun |
4f3a0fd41e06c391ace19d0265339c768f1403b5 | 279 | cpp | C++ | pekingUniversity-cpp-tutorial/polymorphic_example.cpp | Ailikez/cpp_tech_notes | b24c3fbe3e0624c73166af3d1c831361f1708f82 | [
"MIT"
] | null | null | null | pekingUniversity-cpp-tutorial/polymorphic_example.cpp | Ailikez/cpp_tech_notes | b24c3fbe3e0624c73166af3d1c831361f1708f82 | [
"MIT"
] | null | null | null | pekingUniversity-cpp-tutorial/polymorphic_example.cpp | Ailikez/cpp_tech_notes | b24c3fbe3e0624c73166af3d1c831361f1708f82 | [
"MIT"
] | null | null | null | /*
* 多态原理
* 动态联编
* 虚函数表
* 1.每一个有虚函数的类都有一个虚函数表(编译器生成)与之对应
* 2.每一个有虚函数的类的对象的内存空间内都存着指向虚函数表的指针(这就是为什么会多4Bytes)
* 3.虚函数表里面放的是对应类里面所有虚函数的地址
* 4.多态的函数调用语句被编译成一系列 根据基类指针所指向的 对象中 存放的虚函数表
* 的地址,在虚函数表中查询虚函数地址,并调用虚函数指令
* 多态的程序在时间和空间上都有额外开销
*/ | 25.363636 | 56 | 0.666667 | Ailikez |
4f3a5bc69d33247b58d61cbd729f0be7824472a3 | 65 | cpp | C++ | Cli/CommandMap.cpp | dllexport/cxxredis | 91bebcea1c873b868a538742b17f3cf02f077de1 | [
"BSD-3-Clause"
] | null | null | null | Cli/CommandMap.cpp | dllexport/cxxredis | 91bebcea1c873b868a538742b17f3cf02f077de1 | [
"BSD-3-Clause"
] | null | null | null | Cli/CommandMap.cpp | dllexport/cxxredis | 91bebcea1c873b868a538742b17f3cf02f077de1 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by Mario on 2020/5/31.
//
#include "CommandMap.h"
| 10.833333 | 33 | 0.630769 | dllexport |
4f3ae8629a841beb11441690d7e1b80e8dc26aa5 | 3,216 | hpp | C++ | Workspace/src/Enemy.hpp | Llemmert/UntitledCatGame | 4618cef62d329a90a7387a63cdf87b5b9762097b | [
"MIT"
] | null | null | null | Workspace/src/Enemy.hpp | Llemmert/UntitledCatGame | 4618cef62d329a90a7387a63cdf87b5b9762097b | [
"MIT"
] | null | null | null | Workspace/src/Enemy.hpp | Llemmert/UntitledCatGame | 4618cef62d329a90a7387a63cdf87b5b9762097b | [
"MIT"
] | null | null | null | #pragma once
#include <SDL.h>
#include <cmath>
#include <iostream>
using namespace std;
class enemy
{
private:
SDL_Renderer *ren;
Animation *a;
SDL_Rect *src;
SDL_Rect dest;
SDL_Rect StompBox;
double x, y, vx, vy, w, h;
SDL_Point center;
SDL_RendererFlip FlipState = SDL_FLIP_NONE;
publ... | 24.549618 | 126 | 0.460199 | Llemmert |
4f3c847b51f41bc47f8b90cb2ae9dc98a12d2438 | 418 | hpp | C++ | gtkpp-StyleContext.hpp | btryba/gtkpp | 9849557e96aa61e09a9df85e5d03453fe6863842 | [
"BSD-3-Clause"
] | null | null | null | gtkpp-StyleContext.hpp | btryba/gtkpp | 9849557e96aa61e09a9df85e5d03453fe6863842 | [
"BSD-3-Clause"
] | null | null | null | gtkpp-StyleContext.hpp | btryba/gtkpp | 9849557e96aa61e09a9df85e5d03453fe6863842 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __GTKPP_STYLECONTEXT_HPP__
#define __GTKPP_STYLECONTEXT_HPP__
extern "C"
{
#include <gtk/gtk.h>
}
namespace gtkpp
{
class StyleContext
{
GtkStyleContext* context;
public:
StyleContext(GtkStyleContext* context);
virtual ~StyleContext();
void add_clas... | 18.173913 | 47 | 0.65311 | btryba |
4f3dad7e0e50fbcea84e35f0cf68b008e00b2946 | 20,576 | cpp | C++ | contracts/test_api_db/test_db.cpp | SheldonHH/snax_Ibc | 2f244bcaf09f75cbbb987060f7e15ab514e6346b | [
"MIT"
] | 21 | 2018-11-29T19:30:30.000Z | 2021-11-07T08:29:32.000Z | contracts/test_api_db/test_db.cpp | SheldonHH/snax_Ibc | 2f244bcaf09f75cbbb987060f7e15ab514e6346b | [
"MIT"
] | 6 | 2019-03-11T16:25:16.000Z | 2022-01-22T04:52:44.000Z | contracts/test_api_db/test_db.cpp | SheldonHH/snax_Ibc | 2f244bcaf09f75cbbb987060f7e15ab514e6346b | [
"MIT"
] | 10 | 2019-04-02T19:52:02.000Z | 2021-03-04T20:24:29.000Z | #include <snaxlib/types.hpp>
#include <snaxlib/action.hpp>
#include <snaxlib/transaction.hpp>
#include <snaxlib/datastream.hpp>
#include <snaxlib/db.h>
#include <snaxlib/memory.hpp>
#include <snaxlib/fixed_key.hpp>
#include "../test_api/test_api.hpp"
int primary[11] = {0,1,2,3,4,5,6,7,8,9,10};
int secondary[11] ... | 37.207957 | 112 | 0.642496 | SheldonHH |
4f3fd89a5e456156658b6a332360b6c7e0e0ec1b | 12,704 | cpp | C++ | hphp/compiler/option.cpp | sgolemon/hhvm | 240f1370de88926a6c0760cc089b93b84bb0f88d | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2016-12-06T07:37:31.000Z | 2017-05-19T17:08:48.000Z | hphp/compiler/option.cpp | sgolemon/hhvm | 240f1370de88926a6c0760cc089b93b84bb0f88d | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-19T19:06:32.000Z | 2020-01-19T19:06:32.000Z | hphp/compiler/option.cpp | profclems/hhvm | 240f1370de88926a6c0760cc089b93b84bb0f88d | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2017-02-19T16:11:15.000Z | 2019-07-18T20:16:53.000Z | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 36.930233 | 80 | 0.634918 | sgolemon |
4f41aa1acf73ae0e4c07d37428c77e987b4fc71f | 2,667 | cpp | C++ | node/functionaltests/tools/coins_checker.cpp | hadescoincom/hds-core | 383a38da9a5e40de66ba2277b54fea41b7c32537 | [
"Apache-2.0"
] | null | null | null | node/functionaltests/tools/coins_checker.cpp | hadescoincom/hds-core | 383a38da9a5e40de66ba2277b54fea41b7c32537 | [
"Apache-2.0"
] | null | null | null | node/functionaltests/tools/coins_checker.cpp | hadescoincom/hds-core | 383a38da9a5e40de66ba2277b54fea41b7c32537 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Hds Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 21 | 75 | 0.687664 | hadescoincom |
4f420c45d7bd90025fc2fae01b8d3b3ea2393936 | 2,864 | cpp | C++ | src/info.cpp | RybaPila-IT/Multiprocess-Snake-Game | 7719a2d0ffa45691eb8f1665a75e73aac09b8a2d | [
"MIT"
] | null | null | null | src/info.cpp | RybaPila-IT/Multiprocess-Snake-Game | 7719a2d0ffa45691eb8f1665a75e73aac09b8a2d | [
"MIT"
] | null | null | null | src/info.cpp | RybaPila-IT/Multiprocess-Snake-Game | 7719a2d0ffa45691eb8f1665a75e73aac09b8a2d | [
"MIT"
] | 1 | 2021-05-20T07:59:16.000Z | 2021-05-20T07:59:16.000Z | //
// Created by radoslaw on 07.05.2021.
//
#include <iostream>
#include "synchronizer.hpp"
#include "constants.hpp"
#include "Log.hpp"
namespace {
[[noreturn]] void synchronize(Synchronizer& synchronizer_capture, Synchronizer& synchronizer_process, Synchronizer& synchronizer_game) {
//gameOff - przechowu... | 32.545455 | 140 | 0.625349 | RybaPila-IT |
4f46401698d2d37d9c0f0ff0f8f4cb6bf56f9694 | 568 | cpp | C++ | ch12/list_12.12/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 17 | 2020-01-01T16:44:05.000Z | 2022-03-31T07:20:13.000Z | ch12/list_12.12/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 1 | 2021-07-04T01:41:53.000Z | 2021-07-14T19:17:01.000Z | ch12/list_12.12/main.cpp | shoeisha-books/dokushu-cpp | 8a1e7833fe080ed0f3059428c3a76d297a43a5dd | [
"MIT"
] | 3 | 2019-11-28T14:37:09.000Z | 2021-05-22T02:55:15.000Z | #include <iostream>
#include <vector>
void print_vector(const std::vector<int>& v)
{
for (int i : v)
{
std::cout << i << " ";
}
std::cout << std::endl;
}
int main()
{
std::vector v = { 1, 5, 9 };
v.insert(v.begin(), 0); // 先頭に0を挿入
print_vector(v);
v.insert(... | 18.933333 | 60 | 0.492958 | shoeisha-books |
4f473eb9f5b497ef6133285bed2a115aedf82a72 | 38,005 | cc | C++ | FELICITY/Demo/Laplace_Beltrami_Open_Surface/Assembly_Code_AutoGen/Basis_Functions/Data_Type_G_h_phi_restricted_to_dGamma.cc | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | FELICITY/Demo/Laplace_Beltrami_Open_Surface/Assembly_Code_AutoGen/Basis_Functions/Data_Type_G_h_phi_restricted_to_dGamma.cc | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | FELICITY/Demo/Laplace_Beltrami_Open_Surface/Assembly_Code_AutoGen/Basis_Functions/Data_Type_G_h_phi_restricted_to_dGamma.cc | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | /*
============================================================================================
This class contains data about a given FE function space, and methods for computing
transformations of the local basis functions.
This code references the header files:
matrix_vector_defn.h
matrix_vector_ops... | 39.465213 | 132 | 0.587686 | brianchowlab |
4f482c11c7912c8b7e7ecb1ddaa736d64031bde7 | 1,541 | cpp | C++ | modules/core/base/cover/operator/simd/divides.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/base/cover/operator/simd/divides.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/base/cover/operator/simd/divides.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 37.585366 | 80 | 0.592472 | psiha |
4f48cf2b42c42b2175503c589fc5a3d27737b8af | 2,683 | cpp | C++ | src/profiler/util/util.cpp | ABaboshin/DotNetCoreProfiler | 1421bb265317e23c447d5087e4739a9ae9fdc9ba | [
"MIT"
] | 9 | 2020-05-28T14:29:15.000Z | 2021-06-24T01:57:29.000Z | src/profiler/util/util.cpp | ABaboshin/DotNetCoreProfiler | 1421bb265317e23c447d5087e4739a9ae9fdc9ba | [
"MIT"
] | null | null | null | src/profiler/util/util.cpp | ABaboshin/DotNetCoreProfiler | 1421bb265317e23c447d5087e4739a9ae9fdc9ba | [
"MIT"
] | 2 | 2020-12-21T14:57:29.000Z | 2021-06-23T06:59:54.000Z | #include <cstdlib>
#include <iostream>
#include "miniutf/miniutf.hpp"
#include "util.h"
namespace util
{
std::string GetEnvironmentValue(const std::string& name) {
auto cstr = std::getenv(name.c_str());
if (cstr == nullptr) {
return "";
}
return std::string(cstr);
}... | 24.842593 | 77 | 0.549758 | ABaboshin |
4f49184aabdd041b5a6a5c0a40bff72e3182b7c5 | 3,548 | hpp | C++ | third_party/protozero/test/include/scalar_access.hpp | asaveljevs/osrm-backend | 15f0ca8ddaa35c5b4d93c25afa72e81e1fb40c3e | [
"BSD-2-Clause"
] | 13 | 2019-02-21T02:02:41.000Z | 2021-09-09T13:49:31.000Z | third_party/protozero/test/include/scalar_access.hpp | serarca/osrm-backend | 3b4e2e83ef85983df1381dbeacd0ea5d4b9bbbcb | [
"BSD-2-Clause"
] | 288 | 2019-02-21T01:34:04.000Z | 2021-03-27T12:19:10.000Z | third_party/protozero/test/include/scalar_access.hpp | serarca/osrm-backend | 3b4e2e83ef85983df1381dbeacd0ea5d4b9bbbcb | [
"BSD-2-Clause"
] | 4 | 2019-06-21T20:51:59.000Z | 2021-01-13T09:22:24.000Z | // NOLINT(llvm-header-guard)
#define PBF_TYPE_NAME PROTOZERO_TEST_STRING(PBF_TYPE)
#define GET_TYPE PROTOZERO_TEST_CONCAT(get_, PBF_TYPE)
#define ADD_TYPE PROTOZERO_TEST_CONCAT(add_, PBF_TYPE)
TEST_CASE("read field: " PBF_TYPE_NAME) {
SECTION("zero") {
const std::string buffer = load_data(PBF_TYPE_NAME "... | 27.292308 | 90 | 0.590192 | asaveljevs |
4f4b473a0972f734c233f9d12c6b1c3556a9600d | 2,793 | cpp | C++ | migration.cpp | pkrdac/pkrcustodian | 61deaace35e931d8a461b74087307fd1bca6770a | [
"MIT"
] | null | null | null | migration.cpp | pkrdac/pkrcustodian | 61deaace35e931d8a461b74087307fd1bca6770a | [
"MIT"
] | null | null | null | migration.cpp | pkrdac/pkrcustodian | 61deaace35e931d8a461b74087307fd1bca6770a | [
"MIT"
] | null | null | null |
template <typename T>
void cleanTable(uint64_t code, uint64_t account){
T db(code, account);
while(db.begin() != db.end()){
auto itr = --db.end();
db.erase(itr);
}
}
void daccustodian::migrate() {
// contr_config2 oldconf = configs();
// contr_config newconfig{
// oldc... | 33.25 | 191 | 0.587898 | pkrdac |
4f4fc080380713620b65905d79eaa28da6af743b | 157,085 | cc | C++ | src/bin/dhcp4/tests/dhcp4_srv_unittest.cc | piskyscan/kea | 72c0a679a1101aada8d22c98abf7bde615fa7a11 | [
"Apache-2.0"
] | null | null | null | src/bin/dhcp4/tests/dhcp4_srv_unittest.cc | piskyscan/kea | 72c0a679a1101aada8d22c98abf7bde615fa7a11 | [
"Apache-2.0"
] | null | null | null | src/bin/dhcp4/tests/dhcp4_srv_unittest.cc | piskyscan/kea | 72c0a679a1101aada8d22c98abf7bde615fa7a11 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2011-2020 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <sstream>
#incl... | 37.171084 | 95 | 0.648031 | piskyscan |
4f5167869a49afdb5b5f8137893247d673b5e466 | 3,173 | cpp | C++ | include/liveMedia/MPEG1or2DemuxedElementaryStream.cpp | RayanWang/DShowRtspVideo | cd8d641758dad71ef11b693e5716a05acfe86fca | [
"MIT"
] | 5 | 2019-02-11T02:21:37.000Z | 2022-03-26T16:17:32.000Z | include/liveMedia/MPEG1or2DemuxedElementaryStream.cpp | RayanWang/DShowRtspVideo | cd8d641758dad71ef11b693e5716a05acfe86fca | [
"MIT"
] | null | null | null | include/liveMedia/MPEG1or2DemuxedElementaryStream.cpp | RayanWang/DShowRtspVideo | cd8d641758dad71ef11b693e5716a05acfe86fca | [
"MIT"
] | 6 | 2019-01-09T08:18:19.000Z | 2021-01-08T18:21:27.000Z | /**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... | 35.651685 | 81 | 0.765206 | RayanWang |
4f51f1fd6c1bc77cd55ee498df2e416278997d04 | 4,702 | cpp | C++ | src/formats/nsf_decoder.cpp | lexus2k/vgm_converter | b7a552a3a2f5287913b88f47209dc48bbcd0623f | [
"MIT"
] | 2 | 2020-12-27T03:46:24.000Z | 2021-10-09T15:02:21.000Z | src/formats/nsf_decoder.cpp | lexus2k/vgm_decoder | b7a552a3a2f5287913b88f47209dc48bbcd0623f | [
"MIT"
] | null | null | null | src/formats/nsf_decoder.cpp | lexus2k/vgm_decoder | b7a552a3a2f5287913b88f47209dc48bbcd0623f | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2020 Aleksei Dynda
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, ... | 28.670732 | 102 | 0.676521 | lexus2k |
4f524e6082dcc56f60148c59b1f970b3c0809c9e | 685 | cpp | C++ | Foundation/src/RWLock_STD.cpp | astlin/poco | b878152e9034b89c923bc3c97e16ae1b92c09bf4 | [
"BSL-1.0"
] | 3 | 2015-06-08T15:09:28.000Z | 2020-12-31T02:28:37.000Z | Foundation/src/RWLock_STD.cpp | astlin/poco | b878152e9034b89c923bc3c97e16ae1b92c09bf4 | [
"BSL-1.0"
] | 3 | 2021-06-02T02:59:06.000Z | 2021-09-16T04:35:06.000Z | Foundation/src/RWLock_STD.cpp | astlin/poco | b878152e9034b89c923bc3c97e16ae1b92c09bf4 | [
"BSL-1.0"
] | 6 | 2021-06-02T02:39:34.000Z | 2022-03-29T05:51:57.000Z | //
// RWLock_WIN32.cpp
//
// Library: Foundation
// Package: Threading
// Module: RWLock
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/RWLock_STD.h"
namespace Poco {
RWLockImpl::RWLockImpl(): _mutex()
{
... | 11.810345 | 74 | 0.690511 | astlin |
4f55415d9dfe648373db56c769a566ffc8b52c9a | 3,040 | cpp | C++ | gporca/libnaucrates/src/operators/CDXLScalarJoinFilter.cpp | Tanmoy248/gpdb | 67fa1568b3ef2dc1c7757e3e94705de2f92e124b | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gporca/libnaucrates/src/operators/CDXLScalarJoinFilter.cpp | Tanmoy248/gpdb | 67fa1568b3ef2dc1c7757e3e94705de2f92e124b | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gporca/libnaucrates/src/operators/CDXLScalarJoinFilter.cpp | Tanmoy248/gpdb | 67fa1568b3ef2dc1c7757e3e94705de2f92e124b | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2022-03-22T18:45:41.000Z | 2022-03-22T18:45:41.000Z | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2010 Greenplum, Inc.
//
// @filename:
// CDXLScalarJoinFilter.cpp
//
// @doc:
// Implementation of DXL join filter operator
//---------------------------------------------------------------------------... | 23.030303 | 99 | 0.511842 | Tanmoy248 |
4f556eb0fdb3606f68d53dd17215a1559bdcac58 | 4,006 | cpp | C++ | tests/testGradientDescentOptimizer.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | 11 | 2015-02-04T16:41:47.000Z | 2021-12-10T07:02:44.000Z | tests/testGradientDescentOptimizer.cpp | malcolmreynolds/GTSAM | e911b4d39f8a8c8604663bd46f10e7f53c860ae8 | [
"BSD-3-Clause"
] | null | null | null | tests/testGradientDescentOptimizer.cpp | malcolmreynolds/GTSAM | e911b4d39f8a8c8604663bd46f10e7f53c860ae8 | [
"BSD-3-Clause"
] | 6 | 2015-09-10T12:06:08.000Z | 2021-12-10T07:02:48.000Z | /**
* @file testGradientDescentOptimizer.cpp
* @brief
* @author ydjian
* @date Jun 11, 2012
*/
#include <gtsam/slam/PriorFactor.h>
#include <gtsam/slam/BetweenFactor.h>
#include <gtsam/nonlinear/NonlinearConjugateGradientOptimizer.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
#include <gtsam/nonlinea... | 37.439252 | 97 | 0.665502 | sdmiller |
4f592b5fefaabab727c6e9ef71e75b562c3def73 | 7,515 | cc | C++ | Path.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | Path.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | Path.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | #include "Path.hh"
#include "PathVisitor.hh"
#include <Core/Types.hh>
#include <Fsa/Automaton.hh>
namespace Permute {
Arc::Arc (size_t index, Fsa::StateId source, Fsa::StateId target, double score) :
PathImpl (score),
original_index_ (index),
source_ (source),
target_ (target)
{}
size_t Arc::g... | 31.443515 | 111 | 0.601597 | lemrobotry |
4f5a13ecc94699a96d2ea1b3b8a631cc44dec9e8 | 126,361 | cpp | C++ | VoIPController.cpp | openaphid/libtgvoip | b98a01ea44916444cb1b9192f80b46f974d296a6 | [
"Unlicense"
] | null | null | null | VoIPController.cpp | openaphid/libtgvoip | b98a01ea44916444cb1b9192f80b46f974d296a6 | [
"Unlicense"
] | null | null | null | VoIPController.cpp | openaphid/libtgvoip | b98a01ea44916444cb1b9192f80b46f974d296a6 | [
"Unlicense"
] | null | null | null | //
// libtgvoip is free and unencumbered public domain software.
// For more information, see http://unlicense.org or the UNLICENSE file
// you should have received with this source code distribution.
//
#ifndef _WIN32
#include <unistd.h>
#include <sys/time.h>
#endif
#include <errno.h>
#include <string.h>
#include <wc... | 31.79693 | 339 | 0.713124 | openaphid |
4f5bc2b9a4b8010053a9632b2ab17252645fba7f | 128 | cpp | C++ | Tracking/Viterbi/Count.cpp | BrockFletcher/BaxterAlgorithms | aeecaa39a782878798036e6724ad5027b7062959 | [
"MIT"
] | 31 | 2019-02-22T00:43:47.000Z | 2022-03-30T13:39:50.000Z | Tracking/Viterbi/Count.cpp | BrockFletcher/BaxterAlgorithms | aeecaa39a782878798036e6724ad5027b7062959 | [
"MIT"
] | 17 | 2019-01-26T19:51:49.000Z | 2021-05-15T07:21:57.000Z | Tracking/Viterbi/Count.cpp | BrockFletcher/BaxterAlgorithms | aeecaa39a782878798036e6724ad5027b7062959 | [
"MIT"
] | 14 | 2019-10-18T23:08:49.000Z | 2022-02-01T21:39:29.000Z | #include "Count.h"
Count::Count(int aValue, int aNumScores, const double *aScores)
: Variable(aValue, aNumScores, aScores) {
} | 25.6 | 63 | 0.734375 | BrockFletcher |
4f5be879dc43331155dfeaddfe9858377e21f6e2 | 4,483 | inl | C++ | depends/include/CUDA/thrust/detail/backend/cuda/set_difference.inl | mtheory101/hybrid-rendering-thesis | 314a200726450e27982e1a95eec3702ad5c9d320 | [
"MIT"
] | 1 | 2019-06-14T20:22:21.000Z | 2019-06-14T20:22:21.000Z | depends/include/CUDA/thrust/detail/backend/cuda/set_difference.inl | ptrefall/hybrid-rendering-thesis | 72be3b3f6b457741737cd83cefb90f2bdbaa46dc | [
"MIT"
] | null | null | null | depends/include/CUDA/thrust/detail/backend/cuda/set_difference.inl | ptrefall/hybrid-rendering-thesis | 72be3b3f6b457741737cd83cefb90f2bdbaa46dc | [
"MIT"
] | null | null | null | /*
* Copyright 2008-2012 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 a... | 36.153226 | 107 | 0.642427 | mtheory101 |
4f5c0054a89260c531cf53ac66e033bc22e4d4e2 | 4,752 | cpp | C++ | hphp/runtime/ext/vsdebug/stack_trace_command.cpp | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/ext/vsdebug/stack_trace_command.cpp | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/ext/vsdebug/stack_trace_command.cpp | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2017-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 33.464789 | 80 | 0.602062 | ActindoForks |
4f5e4e436dca0d62eaca086e67a39eb28d5c00b9 | 2,599 | cpp | C++ | ironbeepp/tests/test_module_bootstrap_b.cpp | b1v1r/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 148 | 2015-01-10T01:53:39.000Z | 2022-03-20T20:48:12.000Z | ironbeepp/tests/test_module_bootstrap_b.cpp | ErikHendriks/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 8 | 2015-03-09T15:50:36.000Z | 2020-10-10T19:23:06.000Z | ironbeepp/tests/test_module_bootstrap_b.cpp | ErikHendriks/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 46 | 2015-03-08T22:45:42.000Z | 2022-01-15T13:47:59.000Z | /*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this file to You under ... | 27.357895 | 78 | 0.636399 | b1v1r |
4f5e9d8fb21dc216a02d695b7f045843202c128a | 749 | cpp | C++ | test/test_alarm.cpp | fredrikdanielmoller/p-net | b927ea0440869e27b97865d6505a655132862b8f | [
"BSD-3-Clause"
] | null | null | null | test/test_alarm.cpp | fredrikdanielmoller/p-net | b927ea0440869e27b97865d6505a655132862b8f | [
"BSD-3-Clause"
] | null | null | null | test/test_alarm.cpp | fredrikdanielmoller/p-net | b927ea0440869e27b97865d6505a655132862b8f | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************
* _ _ _
* _ __ | |_ _ | | __ _ | |__ ___
* | '__|| __|(_)| | / _` || '_ \ / __|
* | | | |_ _ | || (_| || |_) |\__ \
* |_| \__|(_)|_| \__,_||_.__/ |___/
*
* www.rt-labs.com
* Copyright 2018 rt-labs AB, Sweden.
... | 24.966667 | 70 | 0.471295 | fredrikdanielmoller |
4f61ad84ba1e6fd4d3c573f203f05b76e16b9f11 | 1,790 | hpp | C++ | libs/boost_1_72_0/boost/spirit/home/x3/numeric/bool_policies.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/x3/numeric/bool_policies.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/x3/numeric/bool_policies.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | /*=============================================================================
Copyright (c) 2009 Hartmut Kaiser
Copyright (c) 2014 Joel de Guzman
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)
======... | 38.913043 | 80 | 0.586034 | henrywarhurst |
4f638d5239c108936b3126e87662f0a53c313351 | 2,618 | hpp | C++ | naos/tests/kernel/test.hpp | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | 14 | 2020-02-12T11:07:58.000Z | 2022-02-02T00:05:08.000Z | naos/tests/kernel/test.hpp | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | null | null | null | naos/tests/kernel/test.hpp | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | 4 | 2020-02-27T09:53:53.000Z | 2021-11-07T17:43:44.000Z | #pragma once
#include "comm.hpp"
#include <functional>
#include <iostream>
#include <string>
#include <thread>
int add_test(std::function<void()> f, std::string module, std::string name);
#define test(module, name) int x##module##_##name = add_test(test_##module##_##name, #module, #name);
#define assert(exp) ... | 26.444444 | 120 | 0.297173 | kadds |
4f646880a7fb37dd5028b785f9af4096fd609eef | 80,294 | cpp | C++ | src/libawkward/array/UnionArray.cpp | ioanaif/awkward-1.0 | 22501ba218646dc24dc515c4394eb22f126d340d | [
"BSD-3-Clause"
] | 2 | 2021-06-26T11:31:32.000Z | 2021-06-26T11:31:40.000Z | src/libawkward/array/UnionArray.cpp | henryiii/awkward-1.0 | d9b8082314911041acc7b1c1b63313d66c2d3315 | [
"BSD-3-Clause"
] | null | null | null | src/libawkward/array/UnionArray.cpp | henryiii/awkward-1.0 | d9b8082314911041acc7b1c1b63313d66c2d3315 | [
"BSD-3-Clause"
] | null | null | null | // BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
#define FILENAME(line) FILENAME_FOR_EXCEPTIONS("src/libawkward/array/UnionArray.cpp", line)
#define FILENAME_C(line) FILENAME_FOR_EXCEPTIONS_C("src/libawkward/array/UnionArray.cpp", line)
#include <sstream>
#include <type_traits>... | 34.255119 | 98 | 0.534598 | ioanaif |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.