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 float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
530417011596662d07fd809484395dd78444c354 | 1,006 | hpp | C++ | ModSource/breakingpoint_infected/CfgBody.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 70 | 2017-06-23T21:25:05.000Z | 2022-03-27T02:39:33.000Z | ModSource/breakingpoint_infected/CfgBody.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 84 | 2017-08-26T22:06:28.000Z | 2021-09-09T15:32:56.000Z | ModSource/breakingpoint_infected/CfgBody.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 71 | 2017-06-24T01:10:42.000Z | 2022-03-18T23:02:00.000Z | /*
Breaking Point Mod for Arma 3
Released under Arma Public Share Like Licence (APL-SA)
https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Alderon Games Pty Ltd
*/
class CfgBody {
class head_hit {
memoryPoint = "pilot";
variation = 0.08;
};
class body {
memoryPoint = "aimPoint... | 15.242424 | 76 | 0.638171 |
5305301f280d86529dc2ead504eed0e339c3b6cd | 16,353 | hpp | C++ | engine/ItemType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | 1 | 2021-04-24T06:01:57.000Z | 2021-04-24T06:01:57.000Z | engine/ItemType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | engine/ItemType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************//**
* \author Rachel Weissman-Hohler
* \created 02/01/2017
* \modified 03/08/2017
* \course CS467, Winter 2017
* \file ItemType.hpp
*
* \details Header file for ItemType class. Defines the members and
* ... | 35.940659 | 135 | 0.554333 |
5305c7c52938bd942bc6c34f80fa943b41ea1cf9 | 2,010 | cpp | C++ | source/main.cpp | ThePhilomathsApprentice/mbed-os-example-http-server | c7408cdd3fb03ae59f86336d4e761599b1c92f27 | [
"MIT"
] | null | null | null | source/main.cpp | ThePhilomathsApprentice/mbed-os-example-http-server | c7408cdd3fb03ae59f86336d4e761599b1c92f27 | [
"MIT"
] | null | null | null | source/main.cpp | ThePhilomathsApprentice/mbed-os-example-http-server | c7408cdd3fb03ae59f86336d4e761599b1c92f27 | [
"MIT"
] | null | null | null | #include <mbed.h>
#include <EthernetInterface.h>
#include "http_server.h"
#include "http_response_builder.h"
DigitalOut led(LED1);
EthernetInterface eth;
// Requests come in here
void request_handler(ParsedHttpRequest* request, TCPSocket* socket) {
printf("Request came in: %s %s\n", http_method_str(request->get... | 31.40625 | 107 | 0.61592 |
530c162bdcea1cd5099808ad4ecffd8bc904549b | 9,463 | hpp | C++ | kv/complex.hpp | soonho-tri/kv | 4963be6560d8600cdc9ff22d004b2b965ae7b1df | [
"MIT"
] | 67 | 2017-01-04T15:30:54.000Z | 2022-03-31T05:45:02.000Z | src/interval/kv/complex.hpp | takafumihoriuchi/HyLaGI | 26b9f32a84611ee62d9cbbd903773d224088c959 | [
"BSL-1.0"
] | 4 | 2017-02-10T02:59:45.000Z | 2019-10-10T14:17:08.000Z | src/interval/kv/complex.hpp | takafumihoriuchi/HyLaGI | 26b9f32a84611ee62d9cbbd903773d224088c959 | [
"BSL-1.0"
] | 5 | 2021-09-29T02:27:46.000Z | 2022-03-31T05:45:04.000Z | /*
* Copyright (c) 2013-2016 Masahide Kashiwagi (kashi@waseda.jp)
*/
#ifndef COMPLEX_HPP
#define COMPLEX_HPP
#include <iostream>
#include <cmath>
#include <kv/convert.hpp>
namespace kv {
template <class T> class complex;
template <class C, class T> struct convertible<C, complex<T> > {
static const bool value... | 21.265169 | 177 | 0.590933 |
530c4b2b94372f67ff4688139ea8d9b08d386bdf | 7,496 | cpp | C++ | Source/HeliumRain/UI/Menus/FlareCompanyMenu.cpp | fdsalbj/HeliumRain | a429db86e59e3c8d71c306a20c7abd2899a36464 | [
"BSD-3-Clause"
] | 2 | 2016-09-20T18:48:21.000Z | 2021-03-30T02:42:59.000Z | Source/HeliumRain/UI/Menus/FlareCompanyMenu.cpp | fdsalbj/HeliumRain | a429db86e59e3c8d71c306a20c7abd2899a36464 | [
"BSD-3-Clause"
] | null | null | null | Source/HeliumRain/UI/Menus/FlareCompanyMenu.cpp | fdsalbj/HeliumRain | a429db86e59e3c8d71c306a20c7abd2899a36464 | [
"BSD-3-Clause"
] | null | null | null |
#include "../../Flare.h"
#include "FlareCompanyMenu.h"
#include "../Components/FlarePartInfo.h"
#include "../Components/FlareCompanyInfo.h"
#include "../../Game/FlareGame.h"
#include "../../Game/FlareCompany.h"
#include "../../Player/FlareMenuManager.h"
#include "../../Player/FlareMenuPawn.h"
#include "../../Player/Fl... | 23.796825 | 130 | 0.651147 |
53127eaa0c23b10c46391f8b88f95e066d5df024 | 181 | cpp | C++ | chapters/1/1-10.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | chapters/1/1-10.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | chapters/1/1-10.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | #include <iostream>
/*
* 使用递减运算符打印10到0之间的整数
*/
int main()
{
int base = 10;
while(base >= 0){
std::cout << base << std::endl;
--base;
}
return 0;
}
| 12.928571 | 39 | 0.486188 |
531421e1ca3b40383e7cb57725b02c17f7238ee8 | 215 | cpp | C++ | ares/sfc/coprocessor/dip/dip.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/sfc/coprocessor/dip/dip.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/sfc/coprocessor/dip/dip.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | //DIP switch
//used for Nintendo Super System emulation
DIP dip;
#include "serialization.cpp"
auto DIP::power() -> void {
}
auto DIP::read(n24, n8) -> n8 {
return value;
}
auto DIP::write(n24, n8) -> void {
}
| 13.4375 | 42 | 0.646512 |
531507ccae44b4d0653aa8c98c677bbb806d7f9f | 13,857 | cpp | C++ | src/spy/Spy.cpp | VincentPT/spy | f3b4dd87d00cf12886f52b4ee30ee15430317acd | [
"MIT"
] | 1 | 2022-02-14T12:42:26.000Z | 2022-02-14T12:42:26.000Z | src/spy/Spy.cpp | VincentPT/spy | f3b4dd87d00cf12886f52b4ee30ee15430317acd | [
"MIT"
] | null | null | null | src/spy/Spy.cpp | VincentPT/spy | f3b4dd87d00cf12886f52b4ee30ee15430317acd | [
"MIT"
] | null | null | null | #include "Spy.h"
#include <Shlwapi.h>
#include <Windows.h>
#include <iostream>
#include <vector>
#include <list>
#include "CustomCommandInvoker.h"
#include "CustomCommandManager.h"
#include "spy_interfaces.h"
// internal command function handlers
int freeBufferCommand(FreeBufferCmdData* commandData);
int loadPredifn... | 33.633495 | 170 | 0.748358 |
531835c944c674196e44c74ac93ada0b75ffd32a | 1,077 | cpp | C++ | c++/omarket/omarket/mainframe.cpp | optimus-informatica/omarket-qt | ea2285e1e587b83c8cf15ef06e1ee22e39a46e8a | [
"Apache-2.0"
] | null | null | null | c++/omarket/omarket/mainframe.cpp | optimus-informatica/omarket-qt | ea2285e1e587b83c8cf15ef06e1ee22e39a46e8a | [
"Apache-2.0"
] | null | null | null | c++/omarket/omarket/mainframe.cpp | optimus-informatica/omarket-qt | ea2285e1e587b83c8cf15ef06e1ee22e39a46e8a | [
"Apache-2.0"
] | null | null | null | #include "mainframe.h"
#include "ui_mainframe.h"
MainFrame::MainFrame(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainFrame)
{
ui->setupUi(this);
QSqlDatabase db = QSqlDatabase::addDatabase("QPSQL");
db.setHostName("localhost");
db.setPort(5432);
db.setUserName("omarket");
db.setDatabas... | 20.711538 | 82 | 0.657382 |
531b53c42ec6d2d4364908c747ef96121e018a25 | 1,121 | cc | C++ | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/duration/literals/range.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 7 | 2020-05-02T17:34:05.000Z | 2021-10-17T10:15:18.000Z | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/duration/literals/range.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | null | null | null | gcc-gcc-7_3_0-release/libstdc++-v3/testsuite/20_util/duration/literals/range.cc | best08618/asylo | 5a520a9f5c461ede0f32acc284017b737a43898c | [
"Apache-2.0"
] | 2 | 2020-07-27T00:22:36.000Z | 2021-04-01T09:41:02.000Z | // { dg-do compile { target c++14 } }
// Copyright (C) 2014-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Found... | 35.03125 | 74 | 0.714541 |
531e78bfa2c8716a6cf77d286ea5767c4ecf7ab4 | 1,260 | cpp | C++ | CTCI/Chapter3/3-4.cpp | EdwaRen/Competitve-Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | 1 | 2021-05-03T21:48:25.000Z | 2021-05-03T21:48:25.000Z | CTCI/Chapter3/3-4.cpp | EdwaRen/Competitve_Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | null | null | null | CTCI/Chapter3/3-4.cpp | EdwaRen/Competitve_Programming | e8bffeb457936d28c75ecfefb5a1f316c15a9b6c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
const int MAX_SIZE = 100;
class Stack {
private:
int cur;
int *buf;
int capacity;
public:
Stack(int capa = MAX_SIZE) {
capacity = capa;
cur = -1;
buf = new int[capa];
}
void updateQueue() {
// if (bufFilled) {
for (int i = 0; i < cur; i++) {
... | 14.651163 | 40 | 0.512698 |
5321df21a41c8bbe9a19670446cb6a24a27ca34c | 8,022 | hpp | C++ | KFR/include/kfr/dsp/oscillators.hpp | Asifadam93/FiltreMusical | dcd53bc41934f219fb9b3d5aef281099fb572a49 | [
"BSD-3-Clause"
] | null | null | null | KFR/include/kfr/dsp/oscillators.hpp | Asifadam93/FiltreMusical | dcd53bc41934f219fb9b3d5aef281099fb572a49 | [
"BSD-3-Clause"
] | null | null | null | KFR/include/kfr/dsp/oscillators.hpp | Asifadam93/FiltreMusical | dcd53bc41934f219fb9b3d5aef281099fb572a49 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) 2016 D Levin (http://www.kfrlib.com)
* This file is part of KFR
*
* KFR is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any lat... | 28.856115 | 108 | 0.721516 |
5321f099bf6f9ded7e3b350abe66a8c9345c54b7 | 1,472 | cpp | C++ | lib/lane/src/Utils/FilesystemWindows.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | lib/lane/src/Utils/FilesystemWindows.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | lib/lane/src/Utils/FilesystemWindows.cpp | calhewitt/LANE | 412c3d465e6a459714f7a4a7ca4de30e571e0220 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
/// \file FilesystemWindows.cpp
/// \author Hector Stalker <hstalker0@gmail.com>
/// \version 0.1
///
/// \brief Cross-platform filesystem handling code - Windows specific
///
/// \copyright Copyright (c) 2014, Hector Stalker. All rights re... | 28.862745 | 79 | 0.601902 |
5322a7ecf129c7d181d3f747bcab653342de468d | 12,344 | cc | C++ | src/applications/dns/DNSServerBase.cc | saenridanra/inet-dns-extension | 1fa452792f954297f2dc7ede3b699e73ca17c0c1 | [
"MIT"
] | 1 | 2015-04-03T15:18:52.000Z | 2015-04-03T15:18:52.000Z | src/applications/dns/DNSServerBase.cc | saenridanra/inet-dns-extension | 1fa452792f954297f2dc7ede3b699e73ca17c0c1 | [
"MIT"
] | null | null | null | src/applications/dns/DNSServerBase.cc | saenridanra/inet-dns-extension | 1fa452792f954297f2dc7ede3b699e73ca17c0c1 | [
"MIT"
] | null | null | null | /* Copyright (c) 2014-2015 Andreas Rain
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, distr... | 36.412979 | 112 | 0.590327 |
5323722b0462f8acc3b0e240d43fce4ca889afa4 | 228 | cpp | C++ | Engine/Source/Runtime/SlateCore/Private/Fonts/FontProviderInterface.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Runtime/SlateCore/Private/Fonts/FontProviderInterface.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Runtime/SlateCore/Private/Fonts/FontProviderInterface.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Fonts/FontProviderInterface.h"
UFontProviderInterface::UFontProviderInterface(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
| 25.333333 | 91 | 0.815789 |
5323936abff33578169018a145c93e9c23b2d8e8 | 2,309 | cpp | C++ | src/udp_interface.cpp | storypku/network_interface | 50906c457ff6ed9684cfa3167b229124aabc6594 | [
"MIT"
] | 1 | 2020-06-02T08:52:03.000Z | 2020-06-02T08:52:03.000Z | src/udp_interface.cpp | storypku/network_interface | 50906c457ff6ed9684cfa3167b229124aabc6594 | [
"MIT"
] | null | null | null | src/udp_interface.cpp | storypku/network_interface | 50906c457ff6ed9684cfa3167b229124aabc6594 | [
"MIT"
] | null | null | null | /*
* Unpublished Copyright (c) 2009-2017 AutonomouStuff, LLC, All Rights Reserved.
*
* This file is part of the network_interface ROS 1.0 driver which is released under the MIT license.
* See file LICENSE included with this software or go to https://opensource.org/licenses/MIT for full license details.
*/
#include <ne... | 20.433628 | 117 | 0.662191 |
5325af0d311e39200f5fb2cea8688113ecadfdb6 | 1,094 | cpp | C++ | search_engine/process_queries.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | 1 | 2022-03-15T19:01:03.000Z | 2022-03-15T19:01:03.000Z | search_engine/process_queries.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | 1 | 2022-03-15T19:11:59.000Z | 2022-03-15T19:11:59.000Z | search_engine/process_queries.cpp | oleg-nazarov/cpp-yandex-praktikum | a09781c198b0aff469c4d1175c91d72800909bf2 | [
"MIT"
] | null | null | null | #include "process_queries.h"
#include <algorithm>
#include <execution>
#include <iterator>
#include <string>
#include <vector>
#include "document.h"
#include "search_server.h"
std::vector<std::vector<Document>> ProcessQueries(const SearchServer& search_server, const std::vector<std::string>& queries) {
std::vect... | 28.789474 | 127 | 0.680073 |
5328d7fc5df06a60f6df800f03b5e2d992ad864a | 30,734 | cpp | C++ | src/fs/Formats/FAT/FAT32/FATPartition.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | src/fs/Formats/FAT/FAT32/FATPartition.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | src/fs/Formats/FAT/FAT32/FATPartition.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | #include <fs/Formats/FAT/FAT32/FATPartition.h>
#include <fs/Formats/FAT/FAT32/Directory.h>
#include <fs/Formats/FAT/FAT32/FAT.h>
using namespace UnifiedOS;
using namespace UnifiedOS::FileSystem;
using namespace UnifiedOS::FileSystem::FAT32;
#include <common/cstring.h> //Needed for path interaction
Fat32Partition::Fa... | 52.179966 | 276 | 0.413874 |
53298cf97e74554425a7e2d3be0f025f32ae6125 | 1,608 | cpp | C++ | src/shared/variable.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/shared/variable.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/shared/variable.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | #include "variable.hpp"
// globale variable
int32_t gVar[VARIABLE_COUNT];
int32_t sysVar[SYSTEM_VARIABLE_COUNT];
void initGlobaleVariable()
{
for(int32_t i = 0; i < VARIABLE_COUNT; ++i) gVar[i] = 0;
for(int32_t i = 0; i < SYSTEM_VARIABLE_COUNT; ++i) sysVar[i] = 0;
}
void resetGlobaleVariableAndString()
{
... | 20.615385 | 79 | 0.600746 |
532be93864c9a79d5616e6dd14585049baf732c0 | 31,561 | cpp | C++ | src/vehicles/Plane.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | 2 | 2021-03-24T22:11:27.000Z | 2021-05-07T06:51:04.000Z | src/vehicles/Plane.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | src/vehicles/Plane.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | #include "common.h"
#include "main.h"
#include "General.h"
#include "ModelIndices.h"
#include "FileMgr.h"
#include "Streaming.h"
#include "Replay.h"
#include "Camera.h"
#include "DMAudio.h"
#include "Wanted.h"
#include "Coronas.h"
#include "Particle.h"
#include "Explosion.h"
#include "World.h"
#include "HandlingMgr.h"... | 32.33709 | 136 | 0.701784 |
532cd22b5c3fc5703751081b99b23a3b37cd742d | 503 | cpp | C++ | src/MageFramework/Vulkan/RendererBackend/vAccelerationStructure.cpp | AmanSachan1/ShaderPlayGround | aba8293404bcba7ecad2a97c86c8aea7d0693945 | [
"MIT"
] | 2 | 2019-12-04T17:06:44.000Z | 2019-12-24T16:33:37.000Z | src/MageFramework/Vulkan/RendererBackend/vAccelerationStructure.cpp | AmanSachan1/GraphicsPlayground | aba8293404bcba7ecad2a97c86c8aea7d0693945 | [
"MIT"
] | null | null | null | src/MageFramework/Vulkan/RendererBackend/vAccelerationStructure.cpp | AmanSachan1/GraphicsPlayground | aba8293404bcba7ecad2a97c86c8aea7d0693945 | [
"MIT"
] | null | null | null | #include "Vulkan/RendererBackend/vAccelerationStructure.h"
#include <Vulkan/Utilities/vAccelerationStructureUtil.h>
void vBLAS::generateBLAS(VkCommandBuffer commandBuffer,
mageVKBuffer& scratchBuffer, VkDeviceSize scratchOffset,
bool updateOnly) const
{
const VkAccelerationStructureNV previousStructure = updateOnly... | 31.4375 | 100 | 0.840954 |
532d377395f6bef19fc6b88303fa8d4b7daa55ee | 116 | cpp | C++ | src/cpu/tms9900/tms9995.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 145 | 2018-04-10T17:24:39.000Z | 2022-03-27T17:39:03.000Z | src/cpu/tms9900/tms9995.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 779 | 2018-04-09T21:30:15.000Z | 2022-03-31T06:38:07.000Z | src/cpu/tms9900/tms9995.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 152 | 2018-04-10T10:52:18.000Z | 2022-03-09T08:24:16.000Z | /*
generate the tms9995 emulator
*/
#include "tms9900.h"
#define TMS99XX_MODEL TMS9995_ID
#include "99xxcore.h"
| 11.6 | 32 | 0.741379 |
532f4a85f62f3f26b85d1904dbdd3f72fc1d9a53 | 2,342 | cpp | C++ | src/gboost/wlearner.cpp | accosmin/libnano | 0c4014e1bc76c2e1b38d08211b000a4e17b00ed5 | [
"MIT"
] | null | null | null | src/gboost/wlearner.cpp | accosmin/libnano | 0c4014e1bc76c2e1b38d08211b000a4e17b00ed5 | [
"MIT"
] | 32 | 2019-02-18T10:35:59.000Z | 2021-12-10T10:37:15.000Z | src/gboost/wlearner.cpp | accosmin/libnano | 0c4014e1bc76c2e1b38d08211b000a4e17b00ed5 | [
"MIT"
] | 1 | 2019-08-05T06:11:09.000Z | 2019-08-05T06:11:09.000Z | #include <mutex>
#include <nano/logger.h>
#include <nano/tensor/stream.h>
#include <nano/gboost/wlearner_dstep.h>
#include <nano/gboost/wlearner_dtree.h>
#include <nano/gboost/wlearner_hinge.h>
#include <nano/gboost/wlearner_stump.h>
#include <nano/gboost/wlearner_table.h>
#include <nano/gboost/wlearner_affine.h>
usin... | 25.456522 | 93 | 0.66012 |
53318d0cc4580daf9ddfc856c80d53c417521ea9 | 1,727 | cc | C++ | src/thread-crosser.cc | jjzhang166/capture-thread | 4c9930b1c223c2f9aa22714855a892e9aa4aa800 | [
"Apache-2.0"
] | null | null | null | src/thread-crosser.cc | jjzhang166/capture-thread | 4c9930b1c223c2f9aa22714855a892e9aa4aa800 | [
"Apache-2.0"
] | null | null | null | src/thread-crosser.cc | jjzhang166/capture-thread | 4c9930b1c223c2f9aa22714855a892e9aa4aa800 | [
"Apache-2.0"
] | null | null | null | /* -----------------------------------------------------------------------------
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENS... | 29.775862 | 80 | 0.628257 |
53327b456447c6c5ff086262ab9c12fb0d5f14f9 | 1,965 | cpp | C++ | src/test/test_utils.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | 3 | 2021-09-08T07:28:13.000Z | 2022-03-02T21:12:40.000Z | src/test/test_utils.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | 1 | 2021-09-21T14:40:55.000Z | 2021-09-26T01:19:38.000Z | src/test/test_utils.cpp | ShnitzelKiller/Reverse-Engineering-Carpentry | 585b5ff053c7e3bf286b663a584bc83687691bd6 | [
"MIT"
] | null | null | null | //
// Created by James Noeckel on 4/7/20.
//
#include <iostream>
#include "utils/top_k_indices.hpp"
#include "utils/sorted_data_structures.hpp"
int main(int argc, char **argv) {
bool passed = true;
{
std::vector<int> sorted_vec;
sorted_insert(sorted_vec, 0);
sorted_insert(sorted_vec, 0... | 40.9375 | 116 | 0.561832 |
5335fbf56bc6ff0746bf13c3f4f09f653da58c71 | 347 | cc | C++ | dreal/util/precision_guard.cc | soonho-tri/dreal4 | e774d1496001e826c82dccee45094dd694089bee | [
"Apache-2.0"
] | null | null | null | dreal/util/precision_guard.cc | soonho-tri/dreal4 | e774d1496001e826c82dccee45094dd694089bee | [
"Apache-2.0"
] | 1 | 2018-01-19T16:11:44.000Z | 2018-01-19T16:11:44.000Z | dreal/util/precision_guard.cc | soonho-tri/dreal4 | e774d1496001e826c82dccee45094dd694089bee | [
"Apache-2.0"
] | null | null | null | #include "dreal/util/precision_guard.h"
namespace dreal {
PrecisionGuard::PrecisionGuard(std::ostream* os,
const std::streamsize precision)
: os_{os}, old_precision_(os->precision()) {
os_->precision(precision);
}
PrecisionGuard::~PrecisionGuard() { os_->precision(old_precision_)... | 24.785714 | 69 | 0.668588 |
533c9c4ecdbdc99bc55d94df5c363119491a63bc | 7,874 | cc | C++ | code/Samples/ResourceStress/ResourceStress.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 1,707 | 2015-01-01T14:56:08.000Z | 2022-03-28T06:44:09.000Z | code/Samples/ResourceStress/ResourceStress.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 256 | 2015-01-03T14:55:53.000Z | 2020-09-09T10:43:46.000Z | code/Samples/ResourceStress/ResourceStress.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 222 | 2015-01-05T00:20:54.000Z | 2022-02-06T01:41:37.000Z | //------------------------------------------------------------------------------
// ResourceStress.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "Core/Main.h"
#include "IO/IO.h"
#include "Gfx/Gfx.h"
#include "Dbg/Dbg.h"
#include "HttpFS/HTTPFileSystem.h"
... | 36.623256 | 93 | 0.578613 |
5340412ccab57648a683999611fdee489474ea5c | 21,781 | cpp | C++ | cpp/src/datacentric/dc/platform/data_source/mongo/temporal_mongo_data_source.cpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | 2 | 2019-08-08T01:29:02.000Z | 2019-08-18T19:19:00.000Z | cpp/src/datacentric/dc/platform/data_source/mongo/temporal_mongo_data_source.cpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | null | null | null | cpp/src/datacentric/dc/platform/data_source/mongo/temporal_mongo_data_source.cpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2013-present The DataCentric Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | 43.130693 | 189 | 0.635003 |
5343d6120435da335650ff81116a483477fb7ea9 | 8,397 | cpp | C++ | src/graphics/szgrender.cpp | IllinoisSimulatorLab/szg | b9f9a2380107450c2f181ac6372427a0112b5ffe | [
"BSD-3-Clause"
] | 2 | 2017-01-07T23:43:03.000Z | 2017-09-29T14:31:09.000Z | src/graphics/szgrender.cpp | IllinoisSimulatorLab/szg | b9f9a2380107450c2f181ac6372427a0112b5ffe | [
"BSD-3-Clause"
] | null | null | null | src/graphics/szgrender.cpp | IllinoisSimulatorLab/szg | b9f9a2380107450c2f181ac6372427a0112b5ffe | [
"BSD-3-Clause"
] | null | null | null | //********************************************************
// Syzygy is licensed under the BSD license v2
// see the file SZG_CREDITS for details
//********************************************************
#include "arPrecompiled.h"
#define SZG_DO_NOT_EXPORT
#include "arGraphicsClient.h"
#include "arFramerate... | 31.215613 | 105 | 0.640586 |
c7282262fd465904e45bed337de6db02e61c8422 | 2,754 | cpp | C++ | BAI_12.cpp | anhtuanptit97/anhtuan | 5b1d49cb21368079a8cdd4139d0e6522d054700b | [
"Unlicense"
] | null | null | null | BAI_12.cpp | anhtuanptit97/anhtuan | 5b1d49cb21368079a8cdd4139d0e6522d054700b | [
"Unlicense"
] | null | null | null | BAI_12.cpp | anhtuanptit97/anhtuan | 5b1d49cb21368079a8cdd4139d0e6522d054700b | [
"Unlicense"
] | null | null | null | #include<iostream>
#include<cmath>
using namespace std;
class fraction{
private:
int num;
int den;
public:
fraction(int ,int );
fraction();
void lowterms();
void dislay();
void set_num(int tnum){
this->num=tnum;
}
void set_den(int tden){
this->den=tden;
}
void sum(fract... | 19.258741 | 68 | 0.582426 |
c72bca868e48f437a7b9e5dde5cd37e436ba5ea7 | 523 | cpp | C++ | Code-Chef/easy/CLEANUP.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | 1 | 2019-05-20T14:38:05.000Z | 2019-05-20T14:38:05.000Z | Code-Chef/easy/CLEANUP.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | null | null | null | Code-Chef/easy/CLEANUP.cpp | kishorevarma369/Competitive-Programming | f2fd01b0168cb2908f2cc1794ba2c8a461b06838 | [
"MIT"
] | null | null | null | /*
Cleaning Up
*/
#include<bits/stdc++.h>
using namespace std;
void fun()
{
int m,n,k,i;
cin>>m>>n;
vector<int> v(m+1,0);
for(i=0;i<n;i++)
{
cin>>k;
v[k]=1;
}
k=0;
for(i=1;i<=m;i++)
{
if(v[i]==0)
{
if(k==0)
{
v[i]=1;
k=1;
cout<<i<<' ';
}
... | 11.12766 | 43 | 0.388145 |
c72d04c7dcb638babe4a2cc935be8bf799e0caa8 | 652 | cpp | C++ | transpose of matrices.cpp | mohsin5432/CPP-basic | 453c82cdc1b3412ee0a063cd9053c7556c80bd7a | [
"MIT"
] | null | null | null | transpose of matrices.cpp | mohsin5432/CPP-basic | 453c82cdc1b3412ee0a063cd9053c7556c80bd7a | [
"MIT"
] | null | null | null | transpose of matrices.cpp | mohsin5432/CPP-basic | 453c82cdc1b3412ee0a063cd9053c7556c80bd7a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
main()
{
int r,c;
cout<<"ENTER THE ROWS OF MATRICES= ";
cin>>r;
cout<<"ENTER THE COLUMN OF MATRICES= ";
cin>>c;
int a[r][c];
for(int i=0;i<r;i++)
{
for (int j=0;j<c;j++)
{
cout<<"Enter no= ";
cin>>a[i][j];
}
}
cout<<"\t\t\tOrignal Matrice:... | 15.52381 | 47 | 0.45092 |
c7320c0bde6cd6bc80cbc1ff77276bca42ebe908 | 20,668 | cpp | C++ | impl/opengl/webgl1es2/src/webgl1es2_shader_program.cpp | jfcameron/gdk-graphics | 1b6d84e044c2c953fd7c9501e628a67e80f4da0d | [
"MIT"
] | null | null | null | impl/opengl/webgl1es2/src/webgl1es2_shader_program.cpp | jfcameron/gdk-graphics | 1b6d84e044c2c953fd7c9501e628a67e80f4da0d | [
"MIT"
] | 63 | 2019-07-22T22:49:39.000Z | 2021-05-10T04:36:27.000Z | impl/opengl/webgl1es2/src/webgl1es2_shader_program.cpp | jfcameron/gdk-graphics | 1b6d84e044c2c953fd7c9501e628a67e80f4da0d | [
"MIT"
] | 1 | 2020-06-04T07:47:50.000Z | 2020-06-04T07:47:50.000Z | // © 2018 Joseph Cameron - All Rights Reserved
#include <gdkgraphics/buildinfo.h>
#include <gdk/glh.h>
#include <gdk/webgl1es2_shader_program.h>
#include <atomic>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <vector>
using namespace gdk;
static constexpr char TAG[] = "shader_program";
//! ... | 30.528804 | 151 | 0.653184 |
c732658bd36524425c901e678fe7257825e8df94 | 14,860 | cpp | C++ | source/scene/logic/scene.cpp | imstar15/breeze | 8793493c1245670a66e1a098a0d010c51e7b4783 | [
"Apache-2.0"
] | 454 | 2015-01-06T00:28:13.000Z | 2022-03-17T04:24:39.000Z | source/scene/logic/scene.cpp | 63890390/breeze | e9ce9fae7a3f9dc5f3f1c911a98d75707a50e6b0 | [
"Apache-2.0"
] | 8 | 2016-06-08T21:06:03.000Z | 2021-06-10T11:20:06.000Z | source/scene/logic/scene.cpp | 63890390/breeze | e9ce9fae7a3f9dc5f3f1c911a98d75707a50e6b0 | [
"Apache-2.0"
] | 214 | 2015-01-06T11:06:46.000Z | 2022-03-13T14:29:52.000Z | #include "scene.h"
#include "sceneMgr.h"
#include <aoe/aoe.h>
Scene::Scene(SceneID sceneID)
{
_sceneID = sceneID;
_sceneType = SCENE_NONE;
_sceneStatus = SCENE_STATE_NONE;
}
Scene::~Scene()
{
}
GroupID Scene::getGroupID(ServiceID avatarID)
{
auto entity = getEntityByAvatarID(avatarID);
if (entity... | 27.166362 | 181 | 0.622813 |
c733235662dafc098745f0014db4524b3674cb8f | 394 | cpp | C++ | Engine/src/Layer_Console.cpp | int-Frank/BSR | 16310147281c76ca37836b07aff2974234e09a47 | [
"Apache-2.0"
] | 1 | 2020-01-04T20:17:42.000Z | 2020-01-04T20:17:42.000Z | Engine/src/Layer_Console.cpp | int-Frank/BSR | 16310147281c76ca37836b07aff2974234e09a47 | [
"Apache-2.0"
] | null | null | null | Engine/src/Layer_Console.cpp | int-Frank/BSR | 16310147281c76ca37836b07aff2974234e09a47 | [
"Apache-2.0"
] | null | null | null | //@group Layers
#include "Layer_Console.h"
#include "core_Log.h"
#define LOG_MESSAGE(...) LOG_TRACE(__VA_ARGS__)
namespace Engine
{
Layer_Console::Layer_Console()
{
}
Layer_Console::~Layer_Console()
{
}
void Layer_Console::Update(float a_dt)
{
}
void Layer_Console::HandleMessage(Message * a... | 12.709677 | 53 | 0.659898 |
c738b91713fb49991d53ba916a740c2084e6d15c | 4,044 | hxx | C++ | src/elle/reactor/Generator.hxx | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | src/elle/reactor/Generator.hxx | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | src/elle/reactor/Generator.hxx | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | #include <type_traits>
namespace elle
{
namespace reactor
{
/*----.
| End |
`----*/
template <typename T>
Generator<T>::End::End(Generator<T> const& g)
: elle::Error(elle::sprintf("%s exhausted", g))
{}
/*-------------.
| Construction |
`-------------*/
template <ty... | 22.977273 | 74 | 0.526954 |
c73cb9c65a54973505931ffed10a564f468f2d31 | 13,219 | cpp | C++ | main/IotDataMqtt.cpp | nkskjames/wifi_bbq_temp | 28e9d46d64de0a83e5e0a04a6112c1f564421af6 | [
"Apache-2.0"
] | null | null | null | main/IotDataMqtt.cpp | nkskjames/wifi_bbq_temp | 28e9d46d64de0a83e5e0a04a6112c1f564421af6 | [
"Apache-2.0"
] | null | null | null | main/IotDataMqtt.cpp | nkskjames/wifi_bbq_temp | 28e9d46d64de0a83e5e0a04a6112c1f564421af6 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
#include <nvs.h>
#include <nvs_flash.h>
#include "aws_iot_config.h"
#include "aws_iot_log.h"
#include "aws_iot_version.h"
#include "aws_iot_mqtt_client_int... | 34.069588 | 205 | 0.667827 |
c73faa6d771bdc30f574843285dbb285760bc25a | 15,360 | cpp | C++ | onut/src/onut.cpp | Daivuk/ggj16 | 0ba896f3b6ece32ed3a6e190825e53e88f666d5e | [
"MIT"
] | null | null | null | onut/src/onut.cpp | Daivuk/ggj16 | 0ba896f3b6ece32ed3a6e190825e53e88f666d5e | [
"MIT"
] | null | null | null | onut/src/onut.cpp | Daivuk/ggj16 | 0ba896f3b6ece32ed3a6e190825e53e88f666d5e | [
"MIT"
] | 1 | 2019-10-19T04:49:33.000Z | 2019-10-19T04:49:33.000Z | #include <cassert>
#include <mutex>
#include <sstream>
#include "Audio.h"
#include "InputDevice.h"
#include "onut.h"
#include "Window.h"
using namespace DirectX;
// Our engine services
onut::Window* OWindow = nullptr;
onut::Renderer* ORenderer = nullptr;
onut::Settings* ... | 33.982301 | 176 | 0.484375 |
c7415ed8fe10f663b4035c93700c36926c2e33a4 | 1,482 | cpp | C++ | tools/Container/Containerlogger.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 8 | 2015-01-23T05:41:46.000Z | 2019-11-20T05:10:27.000Z | tools/Container/Containerlogger.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | null | null | null | tools/Container/Containerlogger.cpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 4 | 2015-05-05T05:15:43.000Z | 2020-03-07T11:10:56.000Z | /*********************************************************************************************************
* Containerlogger.cpp
* Note: Phoenix Container
* Date: @2015.03
* E-mail:<forcemz@outlook.com>
* Copyright (C) 2015 The ForceStudio All Rights Reserved.
***********************************************************... | 22.119403 | 107 | 0.556005 |
c7449a6d1a4cda9ce40b45a470791de89486a982 | 2,630 | cpp | C++ | RegisterCodeGenerator/RegisterCodeGenerator.cpp | kevinwu1024/ExtremeCopy | de9ba1aef769d555d10916169ccf2570c69a8d01 | [
"Apache-2.0"
] | 67 | 2020-11-12T11:51:37.000Z | 2022-03-01T13:44:43.000Z | RegisterCodeGenerator/RegisterCodeGenerator.cpp | kevinwu1024/ExtremeCopy | de9ba1aef769d555d10916169ccf2570c69a8d01 | [
"Apache-2.0"
] | 4 | 2021-04-09T08:22:06.000Z | 2021-06-07T13:43:13.000Z | RegisterCodeGenerator/RegisterCodeGenerator.cpp | kevinwu1024/ExtremeCopy | de9ba1aef769d555d10916169ccf2570c69a8d01 | [
"Apache-2.0"
] | 12 | 2020-11-12T11:51:42.000Z | 2022-02-11T08:07:37.000Z | /****************************************************************************
Copyright (c) 2008-2020 Kevin Wu (Wu Feng)
github: https://github.com/kevinwu1024/ExtremeCopy
site: http://www.easersoft.com
Licensed under the Apache License, Version 2.0 License (the "License"); you may not use this file except
in compli... | 29.222222 | 104 | 0.725095 |
c7483cb6f45312806af90fa08caae046cdbee30b | 274 | cpp | C++ | source/scene/entity.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/scene/entity.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/scene/entity.cpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2021-2022 Konstanty Misiak
*
* SPDX-License-Identifier: MIT
*/
#include "scene/entity.hpp"
namespace k2d {
Entity::Entity(entt::entity handle, Scene& scene) :
m_handle(handle),
m_sceneRef(scene)
{
}
} // namespace k2d
| 14.421053 | 55 | 0.616788 |
c74a50bad375c1f42e1c7bb3d7ac8674ae8754a4 | 4,786 | cpp | C++ | AcrosyncSwift/rsync/block/t_block_out.cpp | aaronvegh/AcrosyncSwift | 469201f6d8ca407334d515260e47526c6965d008 | [
"Unlicense"
] | null | null | null | AcrosyncSwift/rsync/block/t_block_out.cpp | aaronvegh/AcrosyncSwift | 469201f6d8ca407334d515260e47526c6965d008 | [
"Unlicense"
] | null | null | null | AcrosyncSwift/rsync/block/t_block_out.cpp | aaronvegh/AcrosyncSwift | 469201f6d8ca407334d515260e47526c6965d008 | [
"Unlicense"
] | null | null | null | #include "block_out.h"
#include <stdio.h>
struct UserType1
{
int d_i;
double d_d;
};
class UserType2
{
int d_i;
double d_d;
public:
UserType2() {}
~UserType2() {}
};
class Source
{
public:
block::out<void()> out0;
block::out<void(const char*)> out1;
block::out<void(const char*, ... | 23.93 | 95 | 0.547221 |
c752505effcff0d15b363e38fab8d55d1e2c8260 | 7,411 | cc | C++ | lib/tile_bindings.cc | CharlieHess/electron-windows-secondary-tiles | fef193cd3aeea046b494eaab9fbc19713fe168d5 | [
"MIT"
] | 8 | 2018-03-26T16:21:24.000Z | 2020-05-09T13:33:52.000Z | lib/tile_bindings.cc | felixrieseberg/electron-windows-secondary-tiles | d6161f4184e996379271837dda398c8a04fef64d | [
"MIT"
] | 1 | 2019-08-06T23:06:25.000Z | 2019-08-08T22:30:04.000Z | lib/tile_bindings.cc | felixrieseberg/electron-windows-secondary-tiles | d6161f4184e996379271837dda398c8a04fef64d | [
"MIT"
] | 4 | 2019-05-09T10:24:59.000Z | 2021-02-25T04:06:30.000Z | #include <nan.h>
#include <v8.h>
#include "SecondaryTilesLib.h"
#include "TileOptions.h"
using v8::Local;
using v8::String;
using v8::Boolean;
using v8::Integer;
SecondaryTiles::TileOptions ToTileOptions(TileOptions* tileOptionsObject) {
SecondaryTiles::TileOptions tileOptions;
tileOptions.Square70x70Logo = tileOp... | 30.497942 | 350 | 0.730536 |
c75b9297fc5af22e94dd59a6431d3def2205444e | 14,738 | cpp | C++ | jack/common/JackAudioAdapterInterface.cpp | KimJeongYeon/jack2_android | 4a8787be4306558cb52e5379466c0ed4cc67e788 | [
"BSD-3-Clause-No-Nuclear-Warranty"
] | 47 | 2015-01-04T21:47:07.000Z | 2022-03-23T16:27:16.000Z | vendor/samsung/external/jack/common/JackAudioAdapterInterface.cpp | cesarmo759/android_kernel_samsung_msm8916 | f19717ef6c984b64a75ea600a735dc937b127c25 | [
"Apache-2.0"
] | 3 | 2015-02-04T21:40:11.000Z | 2019-09-16T19:53:51.000Z | jack/common/JackAudioAdapterInterface.cpp | KimJeongYeon/jack2_android | 4a8787be4306558cb52e5379466c0ed4cc67e788 | [
"BSD-3-Clause-No-Nuclear-Warranty"
] | 7 | 2015-05-17T08:22:52.000Z | 2021-08-07T22:36:17.000Z | /*
Copyright (C) 2008 Grame
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it wi... | 37.501272 | 198 | 0.612838 |
c75d6532c3edff8bcbab0d8cf565f8e658b95386 | 2,744 | cpp | C++ | Codechef/dec challenge 2017/CHEFHAM.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 6 | 2018-10-15T18:45:05.000Z | 2022-03-29T04:30:10.000Z | Codechef/dec challenge 2017/CHEFHAM.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | null | null | null | Codechef/dec challenge 2017/CHEFHAM.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 4 | 2018-01-07T06:20:07.000Z | 2019-08-21T15:45:59.000Z |
#pragma comment(linker, "/stack:640000000")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <list>
#include <ma... | 20.029197 | 67 | 0.34293 |
c75f385c1ed02bf476e70989d760aa477b4e43f7 | 3,025 | cpp | C++ | src/Main.cpp | innatewonder/onyx | fffb16ab068871fe3d948fa64eff81ce1dc31524 | [
"MIT"
] | null | null | null | src/Main.cpp | innatewonder/onyx | fffb16ab068871fe3d948fa64eff81ce1dc31524 | [
"MIT"
] | null | null | null | src/Main.cpp | innatewonder/onyx | fffb16ab068871fe3d948fa64eff81ce1dc31524 | [
"MIT"
] | null | null | null | #include "CommonPrecompiled.h"
#include "NetworkEngine.h"
#include "OnyxTransfer.h"
#include "HTTP.h"
#include "UDPBase.h"
#include "TCPBase.h"
#include "ByteArray.h"
//handle closing connections
//handle timeouts
//handle sending queue
//handle arbitrary connect requests
int main(int argc, char** argv)
{
ArgPars... | 21.453901 | 80 | 0.584793 |
c75fe3c2eaa69eaa41aaa26580ad41719fc37422 | 4,546 | cpp | C++ | day12/day12-tests/day12-tests.cpp | MattHarrington/advent-of-code-2019 | 8733d2692c4d619d1db3b82645032eebca934334 | [
"MIT"
] | null | null | null | day12/day12-tests/day12-tests.cpp | MattHarrington/advent-of-code-2019 | 8733d2692c4d619d1db3b82645032eebca934334 | [
"MIT"
] | null | null | null | day12/day12-tests/day12-tests.cpp | MattHarrington/advent-of-code-2019 | 8733d2692c4d619d1db3b82645032eebca934334 | [
"MIT"
] | null | null | null | // https://adventofcode.com/2019/day/12
#include <catch.hpp>
#include <numeric>
#include "day12-lib.h"
TEST_CASE("sample after 1 timestep should be correct", "[part_one]") {
const std::vector<Moon> sample_moons{
Moon{{-1,0,2}, {0,0,0}},
Moon{{2,-10,-7}, {0,0,0}},
Moon{{4,-8,8}, {0,0,0}},
... | 35.515625 | 107 | 0.568412 |
c76028d3464e5ff58ddd818e7f2967162a374edd | 1,248 | cpp | C++ | ABC193/d.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | null | null | null | ABC193/d.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | 3 | 2021-03-31T01:39:25.000Z | 2021-05-04T10:02:35.000Z | ABC193/d.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i <= n; i++)
#define FORR(i, m, n) for (int i = m; i >= n; i--)
#define SORT(v, n) sort(v, v + n)
#define MAX 100000
#define inf 1000000007
using namespace std;... | 25.469388 | 91 | 0.459936 |
c760b548acedc9bd42a014357a84a0c6ce7f791a | 1,086 | cpp | C++ | rules/gen/txt_to_cpp.cpp | hleclerc/nsmake | 01c246311cb37d6d85776db87e413c61c692c9dd | [
"Apache-2.0"
] | null | null | null | rules/gen/txt_to_cpp.cpp | hleclerc/nsmake | 01c246311cb37d6d85776db87e413c61c692c9dd | [
"Apache-2.0"
] | null | null | null | rules/gen/txt_to_cpp.cpp | hleclerc/nsmake | 01c246311cb37d6d85776db87e413c61c692c9dd | [
"Apache-2.0"
] | null | null | null | #include "Hpipe/Stream.h"
#include <iostream>
#include <fstream>
using namespace std;
int usage( const char *prg, const char *msg, int res ) {
if ( msg )
std::cerr << msg << std::endl;
std::cerr << "Usage:" << std::endl;
std::cerr << " " << prg << " cpp_var_name input_file" << std::endl;
retur... | 23.608696 | 82 | 0.411602 |
c7633337f43003899682b90cd4316ad6daca03c4 | 1,086 | cpp | C++ | 1144/f.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1144/f.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1144/f.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <vector>
#include <tuple>
using namespace std;
const int MAXN = 200005;
int color[MAXN];
vector<int> g[MAXN];
vector<pair<int, int>> edges;
void dfs(int v, int p, bool &possible) {
if (!possible) {
return;
}
color[v] = color[p] + 1;
color[v] -= 2 * (color[... | 16.208955 | 40 | 0.470534 |
c7636f874fafc3092c263ec4a4953b8f1f445cfd | 2,877 | cpp | C++ | utils/Window.cpp | jensmcatanho/directx-playground | 3611343a47ab67025e2ea79337c8dde81760d7b8 | [
"MIT"
] | null | null | null | utils/Window.cpp | jensmcatanho/directx-playground | 3611343a47ab67025e2ea79337c8dde81760d7b8 | [
"MIT"
] | null | null | null | utils/Window.cpp | jensmcatanho/directx-playground | 3611343a47ab67025e2ea79337c8dde81760d7b8 | [
"MIT"
] | null | null | null | /*
-----------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2018 Jean Michel Catanho
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 witho... | 32.693182 | 160 | 0.719152 |
c769c38fdc64551346a8f2f9b65b74aa860a9991 | 1,091 | cc | C++ | projects/c-blosc/blosc_fuzzer.cc | WilliamHeaven/oss-fuzz | 98e4472c453e099b8e471a033fbcb02127e7503c | [
"Apache-2.0"
] | 2 | 2020-03-06T13:26:55.000Z | 2020-03-08T05:06:54.000Z | projects/c-blosc/blosc_fuzzer.cc | WilliamHeaven/oss-fuzz | 98e4472c453e099b8e471a033fbcb02127e7503c | [
"Apache-2.0"
] | 4 | 2019-04-27T09:58:16.000Z | 2019-04-27T20:54:46.000Z | projects/c-blosc/blosc_fuzzer.cc | WilliamHeaven/oss-fuzz | 98e4472c453e099b8e471a033fbcb02127e7503c | [
"Apache-2.0"
] | 1 | 2021-02-14T05:55:41.000Z | 2021-02-14T05:55:41.000Z | // Copyright 2019 Google LLC
//
// 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 ... | 32.088235 | 75 | 0.72594 |
c76cff58a164cf3f068a00c8527048a0d819ffd5 | 2,757 | cc | C++ | src/rtc_audio_track_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | src/rtc_audio_track_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | src/rtc_audio_track_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | #include "rtc_audio_track_impl.h"
namespace libwebrtc {
AudioTrackImpl::AudioTrackImpl(
rtc::scoped_refptr<webrtc::AudioTrackInterface> audio_track)
: rtc_track_(audio_track),_renderer(nullptr) {
RTC_LOG(INFO) << __FUNCTION__ << ": ctor ";
if(rtc_track_){
strncpy(id_, rtc_track_->id().c_str(),... | 34.4625 | 78 | 0.544432 |
c7713a701cf02015259eaccddf1a573248ecd771 | 8,548 | cpp | C++ | mpi_communication_partition/mpi_analysis.cpp | tudasc/CommPart | f5e6739d69d4ca8dd6528cb9657df398a9f0caa8 | [
"Apache-2.0"
] | 3 | 2021-04-04T01:12:47.000Z | 2021-06-07T14:27:45.000Z | mpi_communication_partition/mpi_analysis.cpp | tudasc/CommPart | f5e6739d69d4ca8dd6528cb9657df398a9f0caa8 | [
"Apache-2.0"
] | null | null | null | mpi_communication_partition/mpi_analysis.cpp | tudasc/CommPart | f5e6739d69d4ca8dd6528cb9657df398a9f0caa8 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021 Tim Jammer
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | 30.528571 | 117 | 0.662962 |
c773a26acdf8a1ac1ba5af48ff7657f56e8fa0e6 | 14,785 | cpp | C++ | src/genlib/util/gmtdate.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | src/genlib/util/gmtdate.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | src/genlib/util/gmtdate.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000 Intel Corporation
// 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 o... | 23.923948 | 78 | 0.473115 |
c773cab98a04d4ec89cf473d13a51c3c94a504bb | 989 | cpp | C++ | 415.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 415.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 415.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | class Solution {
public:
string addStrings(string num1, string num2) {
int n1 = num1.size(), n2 = num2.size();
string& res = n1 > n2 ? num1 : num2;
int n_res = max(n1, n2);
int d = 1;
int sum, carry = 0;
while (d <= n_res) {
if (n1 - d < 0) {
... | 30.90625 | 83 | 0.352882 |
c7774acc26ee69cd68346806e0b3051d0f1e8f67 | 2,365 | cc | C++ | modules/kernel/src/heap/HeapMergeRight.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | 12 | 2018-12-03T15:16:52.000Z | 2022-03-16T21:07:13.000Z | modules/kernel/src/heap/HeapMergeRight.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | null | null | null | modules/kernel/src/heap/HeapMergeRight.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | 2 | 2018-11-13T01:30:41.000Z | 2021-08-12T18:22:26.000Z | //===================================================================================================================
//
// HeapMergeRight.cc -- Merge the freeing block with the block to the right if free as well
//
// Copyright (c) 2017-2020 -- Adam Clark
// Licensed under "THE BEER-WARE LICENSE"
// ... | 43.796296 | 117 | 0.487104 |
c77a2675fd08425e1ec08030da1a2e71a45bbaa0 | 5,264 | cpp | C++ | src/l_Message.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | 2 | 2018-05-13T05:27:29.000Z | 2018-05-29T06:35:57.000Z | src/l_Message.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | src/l_Message.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | #include "l_Message.hpp"
Message* lua_pushmessage(lua_State *L, Message* message) {
if (message == nullptr) {
message = Messenger::getInstance()->appendMessage();
}
Message ** messagePtr = static_cast<Message**>
(lua_newuserdata(L, sizeof(Message*)));
*messagePtr = message;
luaL_getmetata... | 26.059406 | 69 | 0.68807 |
c77afe8c705acdcfb593bd7ee056cad527e87e0f | 6,810 | cpp | C++ | src/RcppExports.cpp | mattocci27/poilog2 | 5d2a6e6dc4238a9bb61a02126a99fe8b8205ef35 | [
"MIT"
] | null | null | null | src/RcppExports.cpp | mattocci27/poilog2 | 5d2a6e6dc4238a9bb61a02126a99fe8b8205ef35 | [
"MIT"
] | null | null | null | src/RcppExports.cpp | mattocci27/poilog2 | 5d2a6e6dc4238a9bb61a02126a99fe8b8205ef35 | [
"MIT"
] | null | null | null | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <RcppEigen.h>
#include <Rcpp.h>
using namespace Rcpp;
#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr... | 41.779141 | 125 | 0.742291 |
c781a264b8c9f44ea27c91ae2e2cea265d325a26 | 593 | cpp | C++ | a2.cpp | rene-d/singleton | 21615b8a49b97289c499a2f3c639400ff9dfb60f | [
"Unlicense"
] | null | null | null | a2.cpp | rene-d/singleton | 21615b8a49b97289c499a2f3c639400ff9dfb60f | [
"Unlicense"
] | null | null | null | a2.cpp | rene-d/singleton | 21615b8a49b97289c499a2f3c639400ff9dfb60f | [
"Unlicense"
] | null | null | null | // c'est le fichier embêtant...
// il contient un singleton qu'il faut à tout prix initialiser
#include "toto.h"
#include <iostream>
using namespace std;
extern int main_use; // déclaré dans z.cpp (exécutable)
extern int internal_use; // déclaré dans a1.cpp (ce module)
// la classe du singleton
cl... | 16.472222 | 66 | 0.639123 |
c7828544598a63a600ca68615866fd1d4672f91d | 734 | cpp | C++ | Leetcode Solution/HashMap/Medium/1487. Making File Names Unique.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 169 | 2021-05-30T10:02:19.000Z | 2022-03-27T18:09:32.000Z | Leetcode Solution/HashMap/Medium/1487. Making File Names Unique.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 1 | 2021-10-02T14:46:26.000Z | 2021-10-02T14:46:26.000Z | Leetcode Solution/HashMap/Medium/1487. Making File Names Unique.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 44 | 2021-05-30T19:56:29.000Z | 2022-03-17T14:49:00.000Z |
class Solution {
public:
vector<string> getFolderNames(vector<string>& names) {
unordered_map<string,int> mp;
vector<string> ans;
int j;
for(int i=0;i<names.size();i++)
{
j = mp[names[i]];
string temp... | 25.310345 | 82 | 0.30109 |
c783d231aa59021045a62d029399844437262bc2 | 157 | hpp | C++ | basics/maxdecltypedecay.hpp | hanlulugeren/C-templates | 17181f1e99207430236623e70504b4aecd40afe9 | [
"MIT"
] | null | null | null | basics/maxdecltypedecay.hpp | hanlulugeren/C-templates | 17181f1e99207430236623e70504b4aecd40afe9 | [
"MIT"
] | null | null | null | basics/maxdecltypedecay.hpp | hanlulugeren/C-templates | 17181f1e99207430236623e70504b4aecd40afe9 | [
"MIT"
] | null | null | null | #include<type_traits>
template<typename T1,typename T2>
auto max(T1 a,T2 b) -> typename std::decay< decltype(true ? a:b)>::type
{
return b < a ? a :b;
}
| 22.428571 | 71 | 0.656051 |
c788705efdbde2f2cec2993a22c8449d8b0573c9 | 12,737 | cpp | C++ | QuadtreeCollision/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | QuadtreeCollision/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | QuadtreeCollision/main.cpp | kgomathi2910/Quad-Trees | 70059b66a93a9491f435c99d2cd811e0e0df3337 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<math.h>
#include<sstream>
#include<string>
#include <SFML/Graphics.hpp>
using namespace std;
using namespace sf;
#define SCREEN_W 600
#define SCREEN_H 600
#define LEVEL_MAX 4
#define CAPACITY 5 //efficiency changes with capacity
#define PI 3.14159265
#define SPEED 0.5f
str... | 34.705722 | 151 | 0.437544 |
c78a0d53574181ae16ab39a3b8605730b2426cfa | 4,768 | cpp | C++ | Source/ShooterGame/Weapons/ShooterWeapon_Melee.cpp | ugsgame/ShooterPrototype | 48fbc5401f52bd6d0b7f5b9bda8399c929eab4b9 | [
"Apache-2.0"
] | 1 | 2019-07-16T09:46:54.000Z | 2019-07-16T09:46:54.000Z | Source/ShooterGame/Weapons/ShooterWeapon_Melee.cpp | ugsgame/ShooterPrototype | 48fbc5401f52bd6d0b7f5b9bda8399c929eab4b9 | [
"Apache-2.0"
] | null | null | null | Source/ShooterGame/Weapons/ShooterWeapon_Melee.cpp | ugsgame/ShooterPrototype | 48fbc5401f52bd6d0b7f5b9bda8399c929eab4b9 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "ShooterGame.h"
#include "ShooterWeapon_Melee.h"
AShooterWeapon_Melee::AShooterWeapon_Melee(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
CollisionComp1P = ObjectInitializer.CreateDefaultSubobject<UCa... | 28.213018 | 200 | 0.79719 |
c78db1a32fb4d1c35d70ed2abda77ab9e691ed89 | 3,725 | hpp | C++ | src/poutreBase/poutreChronos.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null | src/poutreBase/poutreChronos.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null | src/poutreBase/poutreChronos.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null |
//==============================================================================
// Copyright (c) 2015 - Thomas Retornaz //
// thomas.retornaz@mines-paris.org //
// Distributed under the Boost Software License, Version 1.0. ... | 32.391304 | 113 | 0.54255 |
c78e71eb1d401394d83cd4dcbfea3a706a3cd27c | 637 | cpp | C++ | engine/core/Concurency/Task.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | engine/core/Concurency/Task.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | engine/core/Concurency/Task.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | #include "Task.h"
#include "Thread.h"
Task::Task(): E_Priority(ETaskPriority::Low), E_TaskType(ETaskType::TT_GENERAL), B_HasBeenCompleted(false)
{
}
Task::Task(ETaskPriority newPriority, ETaskType newType) : E_Priority(newPriority), E_TaskType(newType), B_HasBeenCompleted(false)
{
}
Task::Task(std::shared_ptr<Task... | 17.216216 | 172 | 0.739403 |
c794ca9c70a0d9ab1f63dc13ebc98459b81b8971 | 40,116 | cpp | C++ | src/plugins/assembly/gstpartassembly.cpp | AIoT-IST/EVA_Show-Case | 14474d97c233b4740c8216ba6564454cd954129c | [
"MIT"
] | 4 | 2021-05-26T07:14:50.000Z | 2022-01-10T00:15:32.000Z | src/plugins/assembly/gstpartassembly.cpp | maxpark/EVA_Show-Case | c21fdf7d81efaaf4b63b071eeaf8911791336058 | [
"MIT"
] | 2 | 2021-06-07T16:00:14.000Z | 2021-07-06T13:35:38.000Z | src/plugins/assembly/gstpartassembly.cpp | maxpark/EVA_Show-Case | c21fdf7d81efaaf4b63b071eeaf8911791336058 | [
"MIT"
] | 3 | 2021-08-19T02:27:59.000Z | 2022-01-10T07:40:22.000Z | #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
#include "gstpartassembly.h"
#include <ctime>
#include <iostream>
#include <fstream>
#include <regex>
#include <string>
#include <vector>
#include "gstadmeta.h"
#include "utils.h"
#de... | 41.399381 | 351 | 0.635083 |
c7955b06d771c30961059c9dbbdc62196053fa3d | 12,843 | cpp | C++ | src/app_eth.cpp | tsc19/fring | 2418ce1b27892f2f5c256f94ae0c5fc376cfa72c | [
"Apache-2.0"
] | 3 | 2019-11-06T09:05:07.000Z | 2021-04-11T08:46:57.000Z | src/app_eth.cpp | tsc19/fring | 2418ce1b27892f2f5c256f94ae0c5fc376cfa72c | [
"Apache-2.0"
] | null | null | null | src/app_eth.cpp | tsc19/fring | 2418ce1b27892f2f5c256f94ae0c5fc376cfa72c | [
"Apache-2.0"
] | null | null | null | #include "app_eth.h"
// constructors
BaseAppETH::BaseAppETH(std::string ip, unsigned short port, std::string id) {
this->node = std::make_shared<Node>(id, ip, port);
this->node_table = std::make_shared<NodeTableETH>(id);
}
// getters
std::shared_ptr<Node> BaseAppETH::get_node() {
return this->node;
}
std... | 46.032258 | 173 | 0.56926 |
c7961212cb8b85c10114c83869a245f0d7803c16 | 403 | cpp | C++ | CLIHelperTests/group_argument_is.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | 1 | 2022-01-10T23:47:40.000Z | 2022-01-10T23:47:40.000Z | CLIHelperTests/group_argument_is.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | null | null | null | CLIHelperTests/group_argument_is.cpp | BitCruncher0/CLIHelper | 9ea8e6b5f14f038c143c4e552fad8e1394556a9d | [
"Apache-2.0"
] | null | null | null | #include "CppUTest/TestHarness.h"
#include "../cli.hpp"
#include <string>
#include <fstream>
#include <vector>
using std::string;
using std::vector;
TEST_GROUP(ArgumentIs)
{
};
TEST(ArgumentIs, Returns_true_if_Nth_argument_is_key)
{
CHECK_EQUAL(false, argumentIs("a", 0, "a b"));
CHECK_EQUAL(true, a... | 13.433333 | 53 | 0.662531 |
c796986e874e270f30946139916ed110eb4622db | 3,423 | cpp | C++ | tools/pathanalyzer/pathanalyzer_spacer_test.cpp | JanWielemaker/pharos | 8789a3a5ef4e6094ce0b989d8d987d1fe2102d3e | [
"RSA-MD"
] | 3 | 2015-07-15T08:43:56.000Z | 2021-02-28T17:53:52.000Z | tools/pathanalyzer/pathanalyzer_spacer_test.cpp | sei-ccohen/pharos | 78d08494a5c0bffff3789cae7acc538303b1926c | [
"RSA-MD"
] | null | null | null | tools/pathanalyzer/pathanalyzer_spacer_test.cpp | sei-ccohen/pharos | 78d08494a5c0bffff3789cae7acc538303b1926c | [
"RSA-MD"
] | null | null | null | // Copyright 2018-2019 Carnegie Mellon University. See LICENSE file for terms.
#include <libpharos/spacer.hpp>
#include "pathanalyzer_test_config.hpp"
using namespace pharos;
using namespace pharos::ir;
const DescriptorSet* global_ds = nullptr;
// -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-... | 29.25641 | 95 | 0.621969 |
c79b1259fec0b2d76602c19fa77ad7979dd8509f | 1,993 | hpp | C++ | engine/glrenderer/buffers.hpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | 33 | 2017-01-13T20:47:21.000Z | 2022-03-21T23:29:17.000Z | engine/glrenderer/buffers.hpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | null | null | null | engine/glrenderer/buffers.hpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | 4 | 2016-12-10T16:10:42.000Z | 2020-06-28T04:44:11.000Z | #pragma once
#include "common.hpp"
#include "../../data/shaders/uniforms.glsl"
// Generic Buffer Object
struct BufferObjectBase
{
virtual ~BufferObjectBase() { destroy(); }
NONCOPYABLE(BufferObjectBase);
protected:
BufferObjectBase() {}
void create(uint type, uint binding, uint size, const void* data);
void bin... | 24.9125 | 121 | 0.712494 |
c79bf17c6647e14d45af6d6a9f7eae7520b24632 | 4,519 | cpp | C++ | DataConverter/SegmenterDictionaryFeatureGenerator.cpp | hiroshi-manabe/CRFSegmenter | c8b0544933701f91ff9cfac9301c51b181a4f846 | [
"BSL-1.0"
] | 16 | 2016-07-01T01:40:56.000Z | 2020-05-06T03:29:42.000Z | DataConverter/SegmenterDictionaryFeatureGenerator.cpp | hiroshi-manabe/CRFSegmenter | c8b0544933701f91ff9cfac9301c51b181a4f846 | [
"BSL-1.0"
] | 9 | 2016-07-04T06:44:42.000Z | 2020-05-14T21:23:46.000Z | DataConverter/SegmenterDictionaryFeatureGenerator.cpp | hiroshi-manabe/CRFSegmenter | c8b0544933701f91ff9cfac9301c51b181a4f846 | [
"BSL-1.0"
] | 2 | 2016-07-05T14:50:32.000Z | 2019-10-03T02:35:53.000Z | #include "SegmenterDictionaryFeatureGenerator.h"
#include "../Dictionary/DictionaryClass.h"
#include "../Utility/CharWithSpace.h"
#include <algorithm>
#include <cassert>
#include <unordered_set>
#include <memory>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
namespace DataConverter {
usi... | 36.739837 | 147 | 0.612525 |
c7a2aafa94bf6965635216afb9ef0f2e0be9aa35 | 154 | hpp | C++ | pythran/pythonic/__builtin__/pythran/kwonly.hpp | AlifeLines/pythran | b793344637173cac8e5f4a79b0ab788951d53899 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/pythran/kwonly.hpp | AlifeLines/pythran | b793344637173cac8e5f4a79b0ab788951d53899 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/__builtin__/pythran/kwonly.hpp | AlifeLines/pythran | b793344637173cac8e5f4a79b0ab788951d53899 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_BUILTIN_PYTHRAN_KWONLY_HPP
#define PYTHONIC_BUILTIN_PYTHRAN_KWONLY_HPP
#include "pythonic/include/__builtin__/pythran/kwonly.hpp"
#endif
| 30.8 | 58 | 0.883117 |
c7a3126de11c19d81ebc972cbf196e7dd7637b43 | 14,537 | cpp | C++ | flite/src/cg/mlsa.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 7 | 2017-12-10T23:02:22.000Z | 2021-08-05T21:12:11.000Z | flite/src/cg/mlsa.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | null | null | null | flite/src/cg/mlsa.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 3 | 2018-10-28T03:47:09.000Z | 2020-06-04T08:54:23.000Z | #include "flite/audio/audio.hpp"
#include "flite/synthcommon/track.hpp"
#include "flite/synthcommon/wave.hpp"
#include "flite/utils/alloc.hpp"
#include "flite/utils/math.hpp"
#include "flite/utils/string.hpp"
#ifdef ANDROID
#define SPEED_HACK
#endif
#ifdef UNDER_CE
#define SPEED_HACK
/* This is one of those other thi... | 25.369983 | 176 | 0.475683 |
c7a34f2c452678da6f1895bbabb32ab890ed62bc | 4,118 | cpp | C++ | src/test/cpp/filter/levelmatchfiltertest.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"Apache-2.0"
] | null | null | null | src/test/cpp/filter/levelmatchfiltertest.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"Apache-2.0"
] | null | null | null | src/test/cpp/filter/levelmatchfiltertest.cpp | Blaxar/log4cxxNG | 8dfdfa2ab3d2fe598a41ec95e71ef01e79bac2ae | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 30.279412 | 82 | 0.741136 |
c7a54ff53495b66fda4b12f683546f16f01ac85f | 1,586 | hpp | C++ | integration/traits.hpp | FMeirinhos/gsl-modules | a638e90bbcfd2573232cb5d398d04a20f4058adb | [
"Unlicense"
] | null | null | null | integration/traits.hpp | FMeirinhos/gsl-modules | a638e90bbcfd2573232cb5d398d04a20f4058adb | [
"Unlicense"
] | null | null | null | integration/traits.hpp | FMeirinhos/gsl-modules | a638e90bbcfd2573232cb5d398d04a20f4058adb | [
"Unlicense"
] | null | null | null | //
// traits.hpp
// gsl-modules
//
// Created by Francisco Meirinhos on 13/01/17.
//
#ifndef traits_hpp
#define traits_hpp
#include <chrono>
#include <tuple>
/*
Stolen from
http://stackoverflow.com/questions/7943525/is-it-possible-to-figure-out-the-parameter-type-and-return-type-of-a-lambda
Traits of lambda func... | 26 | 118 | 0.704918 |
c7a63b24eac32b5cbf21d026b3709e15a3e1021d | 521 | cpp | C++ | src/main.cpp | Andrewkf5011/s4.3 | 32ba306f7f8e8fd48def706977b950a355a183b0 | [
"MIT"
] | null | null | null | src/main.cpp | Andrewkf5011/s4.3 | 32ba306f7f8e8fd48def706977b950a355a183b0 | [
"MIT"
] | null | null | null | src/main.cpp | Andrewkf5011/s4.3 | 32ba306f7f8e8fd48def706977b950a355a183b0 | [
"MIT"
] | null | null | null | #include <mbed.h>
#include <C12832.h>
// Using Arduino pin notation
C12832 lcd(D11, D13, D12, D7, D10);
int main()
{
int j=0;
lcd.cls();
lcd.locate(0,0);
lcd.printf("mbed application shield!");
lcd.locate(0,10);
lcd.printf("char %dx%d : %dx%d pixels",
lcd.columns(), lcd.rows(),
... | 20.038462 | 43 | 0.512476 |
c7a74d9bffc8887b12139ed175f9458077243a0e | 8,650 | hpp | C++ | boost/monotonic/storage.hpp | cschladetsch/Monotonic | ec37c3743862475719fdc8d2c3820fc0ab43c55a | [
"BSL-1.0"
] | 12 | 2016-05-22T21:14:27.000Z | 2021-08-05T21:28:17.000Z | boost/monotonic/storage.hpp | cschladetsch/Monotonic | ec37c3743862475719fdc8d2c3820fc0ab43c55a | [
"BSL-1.0"
] | 5 | 2017-02-09T14:24:37.000Z | 2020-10-31T14:38:45.000Z | boost/monotonic/storage.hpp | cschladetsch/Monotonic | ec37c3743862475719fdc8d2c3820fc0ab43c55a | [
"BSL-1.0"
] | 1 | 2022-02-02T20:21:12.000Z | 2022-02-02T20:21:12.000Z | // Copyright (C) 2009-2020 Christian@Schladetsch.com
//
// 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 BOOST_MONOTONIC_STORAGE_HPP
#define BOOST_MONOTONIC_STORAGE_HPP
#include <algorithm>
#include <arra... | 30.244755 | 122 | 0.452023 |
c7a7c12ca1d1623c023f8e49b205ce4514378bfe | 18,660 | hpp | C++ | libs/boost_1_72_0/boost/spirit/home/support/detail/endian/endian.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/support/detail/endian/endian.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/support/detail/endian/endian.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | // Boost endian.hpp header file
// -------------------------------------------------------//
// (C) Copyright Darin Adler 2000
// (C) Copyright Beman Dawes 2006, 2009
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// See library home page at http://ww... | 32.11704 | 90 | 0.710021 |
c7aa1aad149753749241a39cced2f20c736c6a8d | 1,839 | cpp | C++ | TESTS/mbed_drivers/timeout/main.cpp | nachocarballeda/mbed-os | fc1836545dcc2fc86f03b01292b62bf2089f67c3 | [
"Apache-2.0"
] | 3 | 2018-03-13T13:42:12.000Z | 2019-05-17T11:48:04.000Z | TESTS/mbed_drivers/timeout/main.cpp | nachocarballeda/mbed-os | fc1836545dcc2fc86f03b01292b62bf2089f67c3 | [
"Apache-2.0"
] | 1 | 2017-02-20T10:48:02.000Z | 2017-02-21T11:34:16.000Z | TESTS/mbed_drivers/timeout/main.cpp | nachocarballeda/mbed-os | fc1836545dcc2fc86f03b01292b62bf2089f67c3 | [
"Apache-2.0"
] | 8 | 2018-01-28T02:23:18.000Z | 2021-02-26T01:15:55.000Z | /*
* Copyright (c) 2013-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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... | 27.044118 | 88 | 0.710169 |
c7ab178e0ff3dfece38b430bb52c93b657ef8e5c | 9,378 | cc | C++ | ithwrapper/ith/cli/pipe.cc | wareya/chiitrans | 7a392a304e6315cb4ecf836804512bb972090e8b | [
"Apache-2.0"
] | 71 | 2015-01-06T03:06:25.000Z | 2022-03-02T17:47:28.000Z | ithwrapper/ith/cli/pipe.cc | holemcross/chiitrans | c5e9aba5f555b1f81792d1dd4864b7efeb12f823 | [
"Apache-2.0"
] | 7 | 2015-01-14T15:08:41.000Z | 2018-11-20T18:18:15.000Z | ithwrapper/ith/cli/pipe.cc | holemcross/chiitrans | c5e9aba5f555b1f81792d1dd4864b7efeb12f823 | [
"Apache-2.0"
] | 35 | 2015-05-24T02:16:17.000Z | 2022-03-23T18:52:56.000Z | // pipe.cc
// 8/24/2013 jichi
// Branch: ITH_DLL/pipe.cpp, rev 66
// 8/24/2013 TODO: Clean up this file
#ifdef _MSC_VER
# pragma warning (disable:4100) // C4100: unreference formal parameter
#endif // _MSC_VER
#include "cli_p.h"
#include "ith/common/defs.h"
//#include "ith/common/growl.h"
#include "ith/sys/sys.h"
#... | 28.591463 | 115 | 0.621881 |
c7ac381b26bd3c4eff54f9011e245c0429a1629e | 3,797 | cpp | C++ | android-31/android/renderscript/Matrix4f.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/renderscript/Matrix4f.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/renderscript/Matrix4f.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JFloatArray.hpp"
#include "./Matrix4f.hpp"
namespace android::renderscript
{
// Fields
// QJniObject forward
Matrix4f::Matrix4f(QJniObject obj) : JObject(obj) {}
// Constructors
Matrix4f::Matrix4f()
: JObject(
"android.renderscript.Matrix4f",
"()V"
) {}
Matrix4f::Matrix4f(JFloatArra... | 17.026906 | 111 | 0.629708 |
c7acf1ea6fe29506547e60ad88931fc236be01e8 | 542 | cc | C++ | Code/0003-longest-substring-without-repeating-characters.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/0003-longest-substring-without-repeating-characters.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/0003-longest-substring-without-repeating-characters.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
int lengthOfLongestSubstring(string s) {
int n = s.length();
if (n < 2) {
return n;
}
int result = 1;
int begin = 0;
unordered_map<char, int> m;
for (int i = 0; i < n; i++) {
if (m.find(s[i]) != m.end() && m[s[i... | 25.809524 | 62 | 0.394834 |
c7adf89a0c49e30a3ce0006128a101253326e2ec | 6,061 | hpp | C++ | include/GlobalNamespace/BeatmapDataLoader_SpecialEventsFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapDataLoader_SpecialEventsFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapDataLoader_SpecialEventsFilter.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: BeatmapDataLoader
#include "GlobalN... | 64.478723 | 286 | 0.804983 |
c7af199c5ce7c8ebff0e74ee021e01781b89afca | 811 | cc | C++ | 1663/5028028_AC_125MS_452K.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | 21 | 2015-05-26T10:18:12.000Z | 2021-06-01T09:39:47.000Z | 1663/5028028_AC_125MS_452K.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | null | null | null | 1663/5028028_AC_125MS_452K.cc | twilightgod/twilight-poj-solution | 3af3f0fb0c5f350cdf6421b943c6df02ee3f2f82 | [
"Apache-2.0"
] | 8 | 2015-09-30T08:41:15.000Z | 2020-03-11T03:49:42.000Z | /**********************************************************************
* Online Judge : POJ
* Problem Title : Number Steps
* ID : 1663
* Date : 4/22/2009
* Time : 20:34:57
* Computer Name : EVERLASTING-PC
******************************************... | 13.516667 | 72 | 0.378545 |
c7b54349030ea973cfff59d9bbd447db32a4f6f1 | 31,681 | cpp | C++ | main.cpp | RizniMohamed/Best-Auto-Part- | 2319664109d2fe425e427c1b7c338cdb08b18853 | [
"Apache-2.0"
] | null | null | null | main.cpp | RizniMohamed/Best-Auto-Part- | 2319664109d2fe425e427c1b7c338cdb08b18853 | [
"Apache-2.0"
] | null | null | null | main.cpp | RizniMohamed/Best-Auto-Part- | 2319664109d2fe425e427c1b7c338cdb08b18853 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <limits>
#include <iomanip>
#include <fstream>
using namespace std;
//Function Prototyping
void Header(string,int);
void Menue();
void guestMenue();
void guestSelection(int);
void userMenue();
void userSelection(int);
void adminMenue();
void adminSelection(int... | 19.937697 | 114 | 0.52975 |
c7b6bd3aaa34c24a4e855e4edb30602aa8c15715 | 174 | hpp | C++ | src/helper.hpp | Pyknic/matrix-solver | 1521bb87f0b0cee60fde435367bb586ae3e24d7b | [
"MIT"
] | null | null | null | src/helper.hpp | Pyknic/matrix-solver | 1521bb87f0b0cee60fde435367bb586ae3e24d7b | [
"MIT"
] | null | null | null | src/helper.hpp | Pyknic/matrix-solver | 1521bb87f0b0cee60fde435367bb586ae3e24d7b | [
"MIT"
] | null | null | null | #pragma once
//
// Copyright (c) 2020 Emil Forslund. All rights reserved.
//
#include "symbol.hpp"
#include <string>
Symbol* _(float v);
Symbol* _(const std::string& s);
| 13.384615 | 57 | 0.672414 |
c7b91e3142328590d0a305e58709326aa002a521 | 38,426 | cc | C++ | src/paths/AssemblyCleanupTools.cc | bayolau/discovar | 9e472aca13670e40ab2234b89c8afd64875c58bf | [
"MIT"
] | null | null | null | src/paths/AssemblyCleanupTools.cc | bayolau/discovar | 9e472aca13670e40ab2234b89c8afd64875c58bf | [
"MIT"
] | null | null | null | src/paths/AssemblyCleanupTools.cc | bayolau/discovar | 9e472aca13670e40ab2234b89c8afd64875c58bf | [
"MIT"
] | 1 | 2021-11-28T21:35:27.000Z | 2021-11-28T21:35:27.000Z | ///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2011) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... | 35.253211 | 170 | 0.592463 |
c7bb3a715cbd523fc4ad5a97c2daae07d45e4df4 | 1,539 | cxx | C++ | tests/broadcast.cxx | tjhei/BigMPICompat | e5928a32ae32921ca85b753b43ad18ba113a63b5 | [
"MIT"
] | 1 | 2022-03-27T22:04:32.000Z | 2022-03-27T22:04:32.000Z | tests/broadcast.cxx | tjhei/BigMPICompat | e5928a32ae32921ca85b753b43ad18ba113a63b5 | [
"MIT"
] | null | null | null | tests/broadcast.cxx | tjhei/BigMPICompat | e5928a32ae32921ca85b753b43ad18ba113a63b5 | [
"MIT"
] | null | null | null | #include <big_mpi_compat.h>
#include "common.h"
void
test()
{
MPI_Comm comm = MPI_COMM_WORLD;
int myid;
MPI_Comm_rank(comm, &myid);
const std::uint64_t count = (1ULL << 32) + 5;
if (myid == 0)
{
std::vector<short> buffer(count, 0);
buffer[1] = 1;
buffer[count - 1] = 99;... | 23.676923 | 80 | 0.42755 |
c7bbb0a147bc75aa65e0234f9b46e003970d8cda | 9,058 | cpp | C++ | src/GenModel.cpp | StebQC/GenModel | 6590293cd541ebb3bba1e73b04c6d014dfc633f2 | [
"MIT"
] | null | null | null | src/GenModel.cpp | StebQC/GenModel | 6590293cd541ebb3bba1e73b04c6d014dfc633f2 | [
"MIT"
] | null | null | null | src/GenModel.cpp | StebQC/GenModel | 6590293cd541ebb3bba1e73b04c6d014dfc633f2 | [
"MIT"
] | null | null | null | #include "GenModel.h"
//#include "SqlCaller.h"
#include <math.h>
#include <time.h>
GenModel::GenModel()
{
version = "genmodellean-0.0.15 build 0001";
hassolution = false;
bcreated = false;
binit = false;
nc = 0;
nr = 0;
solverdata = NULL;
}
double GenModel::FindConstraintMaxLhs(long row)
... | 20.493213 | 128 | 0.596048 |
c7bed9512bf1669bd704249a678e3caac03f48f8 | 6,308 | hpp | C++ | stan/math/prim/prob/loglogistic_lpdf.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/prob/loglogistic_lpdf.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/prob/loglogistic_lpdf.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_PRIM_PROB_LOGLOGISTIC_LPDF_HPP
#define STAN_MATH_PRIM_PROB_LOGLOGISTIC_LPDF_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/as_column_vector_or_scalar.hpp>
#include <stan/math/prim/fun/as_array_or_scalar.hpp>
#include <stan/math/prim/fun/as_value_... | 41.228758 | 80 | 0.672796 |
c7bff271f455b6173e8f2501c86a7221315fe810 | 13,224 | cpp | C++ | src/hed/libs/message/SOAPEnvelope.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | src/hed/libs/message/SOAPEnvelope.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | src/hed/libs/message/SOAPEnvelope.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | #ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <cstring>
#include "SOAPEnvelope.h"
#define SOAP12_ENV_NAMESPACE "http://www.w3.org/2003/05/soap-envelope"
#define SOAP12_ENC_NAMESPACE "http://www.w3.org/2003/05/soap-encoding"
#define SOAP11_ENV_NAMESPACE "http://schemas.xmlsoap.org/soap/envelope/"
#define ... | 27.209877 | 86 | 0.63967 |
c7c2e8ab4dc883ec62c6e6ad15603570e9b171b8 | 488 | cpp | C++ | B-CPP-300-LYN-3-1-CPPD14M/ex00/Fruit.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 2 | 2022-02-07T12:44:51.000Z | 2022-02-08T12:04:08.000Z | B-CPP-300-LYN-3-1-CPPD14M/ex00/Fruit.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | null | null | null | B-CPP-300-LYN-3-1-CPPD14M/ex00/Fruit.cpp | Neotoxic-off/Epitech2024 | 8b3dd04fa9ac2b7019c0b5b1651975a7252d929b | [
"Apache-2.0"
] | 1 | 2022-01-23T21:26:06.000Z | 2022-01-23T21:26:06.000Z | /*
** EPITECH PROJECT, 2020
** B-CPP-300-LYN-3-1-CPPD14M-
** File description:
** Fruit.cpp
*/
#include "Fruit.hpp"
Fruit::Fruit()
{
this->name = "fruit";
this->_vitamins = 0;
return;
}
Fruit::Fruit(std::string const &_name_, int _vitamins_)
{
this->name = _name_;
this->_vitamins = _vitamins_;
... | 13.189189 | 55 | 0.610656 |
c7c44bed3f2564f4702ed6c4515175a6825623c5 | 7,900 | cpp | C++ | src/stan/language/ast_def.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | src/stan/language/ast_def.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | src/stan/language/ast_def.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_LANG_AST_DEF_CPP
#define STAN_LANG_AST_DEF_CPP
#include "stan/language/ast.hpp"
#include "stan/language/ast/fun/bare_type_is_data_vis_def.hpp"
#include "stan/language/ast/fun/bare_type_order_id_vis_def.hpp"
#include "stan/language/ast/fun/bare_type_set_is_data_vis_def.hpp"
#include "stan/language/ast/fun/... | 55.244755 | 73 | 0.826329 |
c7c9ca4378f7e79de21c67be42dea9eb9a293b84 | 1,809 | hpp | C++ | MineClone/src/World/Blocks/Block.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | null | null | null | MineClone/src/World/Blocks/Block.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | null | null | null | MineClone/src/World/Blocks/Block.hpp | Harry09/MineClone | ee893640b7570c38b5930569e2e67a18a5afce53 | [
"MIT"
] | 1 | 2020-09-02T10:36:39.000Z | 2020-09-02T10:36:39.000Z | #pragma once
#include <memory>
#include <vector>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include "BlockMesh.hpp"
#include "Maths/Coords.hpp"
class ChunkSegment;
class Block
{
public:
static constexpr int BlockFaceCount = static_cast<int>(BlockFace::Size);
protected:
ChunkSegment& _chunk;
coords::Loca... | 22.333333 | 107 | 0.722499 |
c7cfc4d8a7c98de1980110212c8fd4f4f656f25a | 4,927 | cpp | C++ | osrm-backend/src/engine/engine.cpp | shiyuan/osrm | ce730ce5e471870b86b460c09051cd301476ef07 | [
"MIT"
] | 1 | 2017-04-15T22:58:23.000Z | 2017-04-15T22:58:23.000Z | src/engine/engine.cpp | zummach/osrm | 7ab1b0893729064aa35b29d78cec605eb9831433 | [
"BSD-2-Clause"
] | 1 | 2019-11-21T09:59:27.000Z | 2019-11-21T09:59:27.000Z | osrm-ch/src/engine/engine.cpp | dingchunda/osrm-backend | 8750749b83bd9193ca3481c630eefda689ecb73c | [
"BSD-2-Clause"
] | null | null | null | #include "engine/api/route_parameters.hpp"
#include "engine/engine.hpp"
#include "engine/engine_config.hpp"
#include "engine/status.hpp"
#include "engine/plugins/match.hpp"
#include "engine/plugins/nearest.hpp"
#include "engine/plugins/table.hpp"
#include "engine/plugins/tile.hpp"
#include "engine/plugins/trip.hpp"
#i... | 33.97931 | 110 | 0.733509 |
c7d021bca8c0f014831ab539c537d48241ef27ec | 855 | cpp | C++ | Old Files/SingleRoad_Square/alpha_sq.cpp | karenl7/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | 6 | 2019-01-30T00:11:55.000Z | 2022-03-09T02:44:51.000Z | Old Files/SingleRoad_Square/alpha_sq.cpp | StanfordASL/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | null | null | null | Old Files/SingleRoad_Square/alpha_sq.cpp | StanfordASL/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | 4 | 2018-09-08T00:16:55.000Z | 2022-03-09T02:44:54.000Z | void alpha_sq(
beacls::FloatVec& alpha,
beacls::FloatVec xs,
FLOAT_TYPE dim,
const size_t numel,
FLOAT_TYPE alpha_offset,
FLOAT_TYPE length){
if (dim == 0){
std::transform(xs.cbegin(), xs.cend(), alpha.begin(),
[alpha_offset, length](const auto &xs_i) {
return 1- s... | 31.666667 | 88 | 0.604678 |
c7d121c06ecf1e5bc536f40fd44537bdeba871f7 | 6,930 | cpp | C++ | source/camera.cpp | khoih-prog/example-standalone-inferencing-linux | 7237ef0b5cd4cdfca2c61912a8ccc5c29e42570c | [
"Apache-2.0"
] | 7 | 2021-06-14T21:28:47.000Z | 2022-01-18T17:51:54.000Z | source/camera.cpp | khoih-prog/example-standalone-inferencing-linux | 7237ef0b5cd4cdfca2c61912a8ccc5c29e42570c | [
"Apache-2.0"
] | null | null | null | source/camera.cpp | khoih-prog/example-standalone-inferencing-linux | 7237ef0b5cd4cdfca2c61912a8ccc5c29e42570c | [
"Apache-2.0"
] | 5 | 2021-05-03T12:45:32.000Z | 2022-02-08T19:28:18.000Z | /* Edge Impulse Linux SDK
* Copyright (c) 2021 EdgeImpulse Inc.
*
* 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, ... | 37.459459 | 132 | 0.624964 |
c7d413983e1c4fa4031ac193ad74a471a07255e1 | 31,837 | cpp | C++ | share/prototypes/bootstrap-redux/basecode/language/core/parser/parser.cpp | basecode-lang/bootstrap | 8e787e4fa66438e01897a67a026557f9fe7d5b57 | [
"MIT"
] | 32 | 2018-05-14T23:26:54.000Z | 2020-06-14T10:13:20.000Z | basecode/language/core/parser/parser.cpp | blockspacer/bootstrap-redux | 2d0e0d7d2b1f6f203c3dd01f6929805042db8ec7 | [
"MIT"
] | 79 | 2018-08-01T11:50:45.000Z | 2020-11-17T13:40:06.000Z | basecode/language/core/parser/parser.cpp | blockspacer/bootstrap-redux | 2d0e0d7d2b1f6f203c3dd01f6929805042db8ec7 | [
"MIT"
] | 14 | 2021-01-08T05:05:19.000Z | 2022-03-27T14:56:56.000Z | // ----------------------------------------------------------------------------
// ____ _
// | _\ | |
// | |_)| __ _ ___ ___ ___ ___ __| | ___ TM
// | _< / _` / __|/ _ \/ __/ _ \ / _` |/ _ \
// | |_)| (_| \__ \ __/ (_| (_) | (_| | __/
// |____/\__,_|___/... | 36.385143 | 100 | 0.493106 |
c7d68c8f1f10f13a68b8290be0658f75bbb7bac4 | 485 | cpp | C++ | src/string.cpp | admonkey/nnet | decfb531ebd753cb9777298b891319a262f95a6c | [
"CC0-1.0"
] | 2 | 2019-05-23T15:34:40.000Z | 2020-11-09T15:45:29.000Z | src/string.cpp | jpuck/neural-network | decfb531ebd753cb9777298b891319a262f95a6c | [
"CC0-1.0"
] | null | null | null | src/string.cpp | jpuck/neural-network | decfb531ebd753cb9777298b891319a262f95a6c | [
"CC0-1.0"
] | null | null | null | // This file is licensed under the CC0 license (See http://creativecommons.org/publicdomain/zero/1.0/).
// And just to make sure you get the idea, it is also licensed under the WTFPL (See http://en.wikipedia.org/wiki/WTFPL).
#include "string.h"
#include "error.h"
#include <stdio.h>
#include <stdlib.h>
#include <string... | 26.944444 | 120 | 0.694845 |