hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
fb2ccb51b6b6b6f6e199371d63323f6599fa9d80 | 1,816 | cpp | C++ | src/al_common/file/AlTar.cpp | imalimin/FilmKilns | 2146487c4292d8c7453a53c54d1e24417902f8b7 | [
"MIT"
] | 83 | 2020-11-13T01:35:13.000Z | 2022-03-25T02:12:13.000Z | src/al_common/file/AlTar.cpp | mohsinnaqvi110/FilmKilns | 2146487c4292d8c7453a53c54d1e24417902f8b7 | [
"MIT"
] | 3 | 2020-03-23T07:28:29.000Z | 2020-09-11T17:16:48.000Z | src/al_common/file/AlTar.cpp | lmylr/hwvc | 2146487c4292d8c7453a53c54d1e24417902f8b7 | [
"MIT"
] | 32 | 2020-11-09T04:20:35.000Z | 2022-03-22T04:11:45.000Z | /*
* Copyright (c) 2018-present, aliminabc@gmail.com.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "AlTar.h"
#include "Logcat.h"
#define TAG "AlTar"
static bool isZero(AlBuffer *buf) {
size_t size = buf->size();
for ... | 23.894737 | 93 | 0.518722 | imalimin |
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 |
fb330572da80877edd22aa07e2fbad3610072bea | 89,443 | cpp | C++ | ZZZ_OtherDemo/00-dyld-832.7.3/dyld3/shared-cache/AdjustDylibSegments.cpp | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null | ZZZ_OtherDemo/00-dyld-832.7.3/dyld3/shared-cache/AdjustDylibSegments.cpp | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null | ZZZ_OtherDemo/00-dyld-832.7.3/dyld3/shared-cache/AdjustDylibSegments.cpp | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null | /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
*
* Copyright (c) 2014 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.... | 49.498063 | 194 | 0.590376 | 1079278593 |
fb343f69a212fcae3e477926c2fb77e42935edd1 | 6,980 | cpp | C++ | RNAstructure_Source/RemovePseudoknots/RemovePseudoknots.cpp | mayc2/PseudoKnot_research | 33e94b84435d87aff3d89dbad970c438ac173331 | [
"MIT"
] | null | null | null | RNAstructure_Source/RemovePseudoknots/RemovePseudoknots.cpp | mayc2/PseudoKnot_research | 33e94b84435d87aff3d89dbad970c438ac173331 | [
"MIT"
] | null | null | null | RNAstructure_Source/RemovePseudoknots/RemovePseudoknots.cpp | mayc2/PseudoKnot_research | 33e94b84435d87aff3d89dbad970c438ac173331 | [
"MIT"
] | null | null | null | /*
* A program that breaks pseudoknots to allow for easier analysis of a strand of nucleic acids.
* This strand of nucleic acids can be composed of either DNA or RNA.
*
* (c) 2009 Mathews Lab, University of Rochester Medical Center.
* Written by Jessica S. Reuter
*/
#include "RemovePseudoknots.h"
//////////////... | 37.934783 | 212 | 0.640974 | mayc2 |
fb36fc4d2bdb2c477be3ea304145259fe9704cc6 | 5,183 | cpp | C++ | sxe/src/logging/LoggingManager.cpp | Spidey01/sxe | 60a91e594f1460115f565b097f8133c324af6f1c | [
"Zlib"
] | null | null | null | sxe/src/logging/LoggingManager.cpp | Spidey01/sxe | 60a91e594f1460115f565b097f8133c324af6f1c | [
"Zlib"
] | null | null | null | sxe/src/logging/LoggingManager.cpp | Spidey01/sxe | 60a91e594f1460115f565b097f8133c324af6f1c | [
"Zlib"
] | null | null | null | /*-
* Copyright (c) 2014-current, Terry Mathew Poulin <BigBoss1964@gmail.com>
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the
* use of this software.
*
* Permission is granted to anyone to use this soft... | 30.309942 | 114 | 0.627436 | Spidey01 |
fb373d0268649ea13c6e51bddd252106036b26d0 | 430 | cpp | C++ | Chapter12/GuiThread/main.cpp | PacktPublishing/Hands-On-Embedded-Programming-with-QT | 128c1114f0642d7b2ebf9f2a92c5c07c730b1a68 | [
"MIT"
] | 22 | 2019-08-07T10:34:31.000Z | 2022-03-12T03:42:03.000Z | Chapter12/GuiThreadPool/main.cpp | PacktPublishing/Hands-On-Embedded-Programming-with-Qt | 128c1114f0642d7b2ebf9f2a92c5c07c730b1a68 | [
"MIT"
] | null | null | null | Chapter12/GuiThreadPool/main.cpp | PacktPublishing/Hands-On-Embedded-Programming-with-Qt | 128c1114f0642d7b2ebf9f2a92c5c07c730b1a68 | [
"MIT"
] | 20 | 2019-08-07T10:38:05.000Z | 2022-03-28T07:11:51.000Z | #include "MainWindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// set the message format for logging
qSetMessagePattern("%{time yyyy-MM-dd hh:mm:ss.zzz} | [%{if-debug}D%{endif}%{if-info}I%{endif}%{if-warning}W%{endif}%{if-critical}C%{endif}%{if-fatal}F%{endi... | 26.875 | 213 | 0.62093 | PacktPublishing |
fb3860b9cdfbe085adf7c78c996bbc945960fd95 | 1,192 | cpp | C++ | tcp_test/mainwindow.cpp | nnaabbcc/tcp_test | 276776a7307065b5b1f97121a04f2a782b203a49 | [
"MIT"
] | null | null | null | tcp_test/mainwindow.cpp | nnaabbcc/tcp_test | 276776a7307065b5b1f97121a04f2a782b203a49 | [
"MIT"
] | null | null | null | tcp_test/mainwindow.cpp | nnaabbcc/tcp_test | 276776a7307065b5b1f97121a04f2a782b203a49 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
m_server = new MyServer(this);
m_client = new MyClient(this);
}
MainWindow::~MainWindow()
{
delete m_client;
delete m_server;
d... | 19.225806 | 65 | 0.666107 | nnaabbcc |
fb419f7785e1480ec70f1c9064b400e689be1aa6 | 4,769 | cxx | C++ | main/unotools/source/misc/componentresmodule.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/unotools/source/misc/componentresmodule.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/unotools/source/misc/componentresmodule.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* 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 y... | 33.34965 | 101 | 0.487943 | Grosskopf |
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 |
fb56d02ce10bd8e7737d619846eaf8913e303fbc | 2,291 | cpp | C++ | src/vizdoom/src/tempfiles.cpp | johny-c/ViZDoom | 6fe0d2470872adbfa5d18c53c7704e6ff103cacc | [
"MIT"
] | 1,102 | 2017-02-02T15:39:57.000Z | 2022-03-23T09:43:29.000Z | src/tempfiles.cpp | Leonan8995/Xenomia | 3f3743dd5aff047608ec31fb71186d177812c7df | [
"Unlicense"
] | 339 | 2017-02-17T09:55:38.000Z | 2022-03-29T11:44:01.000Z | src/tempfiles.cpp | Leonan8995/Xenomia | 3f3743dd5aff047608ec31fb71186d177812c7df | [
"Unlicense"
] | 331 | 2017-02-02T15:34:42.000Z | 2022-03-23T02:42:24.000Z | /*
** tempfiles.cpp
** Temporary name generator. Deletes the temporary file when deconstructed.
**
**---------------------------------------------------------------------------
** Copyright 1998-2006 Randy Heit
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** ... | 39.5 | 78 | 0.676124 | johny-c |
fb5d19e85e0e654a5d7eb0c2b666a0e21d7f6151 | 2,087 | cxx | C++ | simclasses/private/simclasses/I3NuGenInfo.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 1 | 2020-12-24T22:00:01.000Z | 2020-12-24T22:00:01.000Z | simclasses/private/simclasses/I3NuGenInfo.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | null | null | null | simclasses/private/simclasses/I3NuGenInfo.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 3 | 2020-07-17T09:20:29.000Z | 2021-03-30T16:44:18.000Z | #include <icetray/serialization.h>
#include <simclasses/I3NuGenInfo.h>
template <class Archive>
void
I3NuGenInfo::serialize(Archive& ar, unsigned version)
{
if (version>i3nugen_info_version_){
log_fatal("Attempting to read version %u from file but running version %u of I3NuGenInfo class.",version,i3nugen_info_v... | 40.921569 | 132 | 0.627216 | hschwane |
fb5eee94b5b2793474e89ba745be1869f6b4a91a | 2,574 | cpp | C++ | Hanse/Module_HandControl/server.cpp | iti-luebeck/HANSE2011 | 0bd5b3f1e0bc5a02516e7514b2241897337334c2 | [
"BSD-3-Clause"
] | null | null | null | Hanse/Module_HandControl/server.cpp | iti-luebeck/HANSE2011 | 0bd5b3f1e0bc5a02516e7514b2241897337334c2 | [
"BSD-3-Clause"
] | null | null | null | Hanse/Module_HandControl/server.cpp | iti-luebeck/HANSE2011 | 0bd5b3f1e0bc5a02516e7514b2241897337334c2 | [
"BSD-3-Clause"
] | null | null | null | #include <QtNetwork>
#include <iostream>
#include <stdlib.h>
#include <string>
#include "server.h"
Server::Server() {
stream = NULL;
tcpSocket = NULL;
tcpServer = NULL;
logger = Log4Qt::Logger::logger("HandControlServer");
}
void Server::open()
{
logger->debug("open");
if... | 24.283019 | 126 | 0.599456 | iti-luebeck |
fb6132d0262006f11a6f0872a4dfdba5f5e455f3 | 3,160 | cc | C++ | src/input/buffer_loader.cc | viyadb/viyadb | 56d9b9836a57a36483bee98e6bc79f79e2f5c772 | [
"Apache-2.0"
] | 109 | 2017-10-03T06:52:30.000Z | 2022-03-22T18:38:48.000Z | src/input/buffer_loader.cc | b-xiang/viyadb | b72f9cabacb4b24bd2192ed824d930ccb73d3609 | [
"Apache-2.0"
] | 26 | 2017-10-15T19:45:18.000Z | 2019-10-18T09:55:54.000Z | src/input/buffer_loader.cc | viyadb/viyadb | 56d9b9836a57a36483bee98e6bc79f79e2f5c772 | [
"Apache-2.0"
] | 7 | 2017-10-03T09:37:36.000Z | 2020-12-15T01:04:45.000Z | /*
* Copyright (c) 2017-present ViyaDB Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 28.727273 | 78 | 0.611709 | viyadb |
fb6481f8f74c6700b7066ebc2b06c5057b3b097c | 2,323 | cpp | C++ | ee1301/wk2/hw2_directory/strap012_HW2B.cpp | RosstheRoss/TestingFun | 7a73162607544204032aa66cce755daf21edebda | [
"0BSD"
] | null | null | null | ee1301/wk2/hw2_directory/strap012_HW2B.cpp | RosstheRoss/TestingFun | 7a73162607544204032aa66cce755daf21edebda | [
"0BSD"
] | null | null | null | ee1301/wk2/hw2_directory/strap012_HW2B.cpp | RosstheRoss/TestingFun | 7a73162607544204032aa66cce755daf21edebda | [
"0BSD"
] | null | null | null | /*
20 Feb 2019
Matthew Strapp
5449340
EE1301
Spring 2019
Homework 2B
Time Travel Calculator
*/
#include <iostream>
using namespace std;
int main()
{
bool foo = 0, bar = false; //Workaround to prevent unneeded if statements
char Time, travel; //"time" is reserved by C++, "Time... | 22.77451 | 113 | 0.462764 | RosstheRoss |
fb673cac32f90b7edecd6aae821ef3bce687ae55 | 1,039 | hpp | C++ | src/threshold_src/simpleThreshold.hpp | dendisuhubdy/ECE1373_2016_hft_on_fpga | 977dec93f447dac1aaa1a158cd2330403021ebc3 | [
"MIT"
] | 52 | 2018-07-07T08:54:02.000Z | 2022-03-02T01:45:06.000Z | src/threshold_src/simpleThreshold.hpp | dendisuhubdy/ECE1373_2016_hft_on_fpga | 977dec93f447dac1aaa1a158cd2330403021ebc3 | [
"MIT"
] | 1 | 2022-03-05T03:25:43.000Z | 2022-03-05T04:13:22.000Z | src/threshold_src/simpleThreshold.hpp | dendisuhubdy/ECE1373_2016_hft_on_fpga | 977dec93f447dac1aaa1a158cd2330403021ebc3 | [
"MIT"
] | 18 | 2019-10-02T05:53:06.000Z | 2022-02-21T18:22:38.000Z | #include <cfloat>
#include <iostream>
#include <bitset>
#include <hls_stream.h>
#include "ap_int.h"
using namespace hls;
typedef ap_uint<64> Time; /*Time stamp for round-trip latency measurements*/
struct sockaddr_in {
ap_uint<16> port; /* port in network byte order */
ap_uint<32> addr; /* intern... | 28.861111 | 76 | 0.668912 | dendisuhubdy |
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 |
fb70d953e36b2bd891271e022e26014305a17a72 | 211 | hpp | C++ | NCGB/Compile/src/SimpleTableError.hpp | mcdeoliveira/NC | 54b2a81ebda9e5260328f88f83f56fe8cf472ac3 | [
"BSD-3-Clause"
] | 103 | 2016-09-21T06:01:23.000Z | 2022-03-27T06:52:10.000Z | NCGB/Compile/src/SimpleTableError.hpp | albinjames/NC | 157a55458931a18dd1f42478872c9df0de5cc450 | [
"BSD-3-Clause"
] | 11 | 2017-03-27T13:11:42.000Z | 2022-03-08T13:46:14.000Z | NCGB/Compile/src/SimpleTableError.hpp | albinjames/NC | 157a55458931a18dd1f42478872c9df0de5cc450 | [
"BSD-3-Clause"
] | 21 | 2017-06-23T09:01:21.000Z | 2022-02-18T06:24:00.000Z | // Mark Stankus 1999 (c)
// SimpleTableError.h
#ifndef INCLUDED_SIMPLETABLEERROR_H
#define INCLUDED_SIMPLETABLEERROR_H
struct SimpleTableError {
static void errorh(int);
static void errorc(int);
};
#endif
| 17.583333 | 35 | 0.777251 | mcdeoliveira |
fb7210f989491163641facec3c4c07583a90934b | 1,613 | cc | C++ | code/foundation/math/vec4.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 377 | 2018-10-24T08:34:21.000Z | 2022-03-31T23:37:49.000Z | code/foundation/math/vec4.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 11 | 2020-01-22T13:34:46.000Z | 2022-03-07T10:07:34.000Z | code/foundation/math/vec4.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 23 | 2019-07-13T16:28:32.000Z | 2022-03-20T09:00:59.000Z | //------------------------------------------------------------------------------
// vec4.cc
// (C) 2020 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "foundation/stdneb.h"
#include "math/vec4.h"
#include "system/byteorder.h"
namesp... | 32.26 | 120 | 0.522009 | sirAgg |
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 |
fb74682081ee4e7f2a7251631505b90e2e99dfbd | 15,212 | cpp | C++ | src/providers/gpx/qgsgpxprovider.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/providers/gpx/qgsgpxprovider.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/providers/gpx/qgsgpxprovider.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
qgsgpxprovider.cpp - Data provider for GPS eXchange files
-------------------
begin : 2004-04-14
copyright : (C) 2004 by Lars Luthman
email : larsl@users... | 26.092624 | 128 | 0.584078 | dyna-mis |
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 |
fb89add850ca6d6166caed283afaf6483a6347be | 651 | cpp | C++ | acwing/winter/1381. 阶乘.cpp | xmmmmmovo/MyAlgorithmSolutions | f5198d438f36f41cc4f72d53bb71d474365fa80d | [
"MIT"
] | 1 | 2020-03-26T13:40:52.000Z | 2020-03-26T13:40:52.000Z | acwing/winter/1381. 阶乘.cpp | xmmmmmovo/MyAlgorithmSolutions | f5198d438f36f41cc4f72d53bb71d474365fa80d | [
"MIT"
] | null | null | null | acwing/winter/1381. 阶乘.cpp | xmmmmmovo/MyAlgorithmSolutions | f5198d438f36f41cc4f72d53bb71d474365fa80d | [
"MIT"
] | null | null | null | /**
* author: xmmmmmovo
* generation time: 2021/01/27
* filename: 1381. 阶乘.cpp
* language & build version : C 11 & C++ 17
*/
#include <algorithm>
#include <iostream>
using namespace std;
int n;
int main() {
scanf("%d", &n);
int res = 1, c2 = 0, c5 = 0;
for (int i = 1; i <= n; i++) {
int t =... | 18.6 | 43 | 0.427035 | xmmmmmovo |
fb8b0bbd3f3efcb814e656d7d157fbd412a06732 | 3,196 | cpp | C++ | src/motion_functions/ChFunction_Poly.cpp | scpeters/chrono | a7cefda35d8a445963297cbe2dbb3cdfb4397f16 | [
"BSD-3-Clause"
] | 1 | 2020-02-16T16:52:08.000Z | 2020-02-16T16:52:08.000Z | src/motion_functions/ChFunction_Poly.cpp | Milad-Rakhsha/Project-Chrono | 6ab7abcd532cfb3c5e3876478fdd49c7ab783f63 | [
"BSD-3-Clause"
] | null | null | null | src/motion_functions/ChFunction_Poly.cpp | Milad-Rakhsha/Project-Chrono | 6ab7abcd532cfb3c5e3876478fdd49c7ab783f63 | [
"BSD-3-Clause"
] | null | null | null | //
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2011 Alessandro Tasora
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file at the top level of the distribution
// and at http://projectchrono.org/license-chrono.txt.
//
//... | 18.690058 | 74 | 0.621715 | scpeters |
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 |
fb8d97854e785c35581352c039a49522bee6e33f | 1,437 | cpp | C++ | src/main/c++/patterns/facade/main.cpp | jeanpierrethach/Design-Patterns | 1d0ed384b8d01421d41358feaa0383bb1896aa79 | [
"MIT"
] | null | null | null | src/main/c++/patterns/facade/main.cpp | jeanpierrethach/Design-Patterns | 1d0ed384b8d01421d41358feaa0383bb1896aa79 | [
"MIT"
] | null | null | null | src/main/c++/patterns/facade/main.cpp | jeanpierrethach/Design-Patterns | 1d0ed384b8d01421d41358feaa0383bb1896aa79 | [
"MIT"
] | null | null | null | #include <iostream>
class SubSystemA
{
public:
void operationA1()
{
std::cout << "Operation A1" << std::endl;
}
void operationA2()
{
std::cout << "Operation A2" << std::endl;
}
};
class SubSystemB
{
public:
void operationB1()
... | 17.740741 | 60 | 0.475296 | jeanpierrethach |
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 |
fb8f924e5d0b06b5cfce7ad154c7e7db0d264971 | 6,576 | cpp | C++ | windows_app/DF_RawStreams/src/raw_streams.cpp | isabella232/realsense_camera_tools | f4a5265a69277ef346cf0b1fa6b1734ce0eaa41e | [
"MIT"
] | 1 | 2016-03-22T00:57:06.000Z | 2016-03-22T00:57:06.000Z | windows_app/DF_RawStreams/src/raw_streams.cpp | PrincetonVision/realsense_camera_tools | f4a5265a69277ef346cf0b1fa6b1734ce0eaa41e | [
"MIT"
] | 1 | 2022-03-17T12:43:40.000Z | 2022-03-17T12:43:40.000Z | windows_app/DF_RawStreams/src/raw_streams.cpp | isabella232/realsense_camera_tools | f4a5265a69277ef346cf0b1fa6b1734ce0eaa41e | [
"MIT"
] | 1 | 2022-03-17T08:37:10.000Z | 2022-03-17T08:37:10.000Z | /*******************************************************************************
INTEL CORPORATION PROPRIETARY INFORMATION
This software is supplied under the terms of a license agreement or nondisclosure
agreement with Intel Corporation and may not be copied or disclosed except in
accordance with the terms of t... | 37.577143 | 191 | 0.627585 | isabella232 |
6524090141eedb39bd17a7c97614aced7d0002d6 | 3,863 | cpp | C++ | Old/Graphs/Kruskal MST/min_cost_kruskal.cpp | JanaSabuj/CodingLibrary | 92bc141ae327ce01b480fde7a10ffb0be0ba401d | [
"MIT"
] | 14 | 2020-05-17T18:31:32.000Z | 2021-02-04T03:56:30.000Z | Old/Graphs/Kruskal MST/min_cost_kruskal.cpp | JanaSabuj/cppdump | 92bc141ae327ce01b480fde7a10ffb0be0ba401d | [
"MIT"
] | null | null | null | Old/Graphs/Kruskal MST/min_cost_kruskal.cpp | JanaSabuj/cppdump | 92bc141ae327ce01b480fde7a10ffb0be0ba401d | [
"MIT"
] | 2 | 2020-05-27T10:42:36.000Z | 2021-02-02T11:59:04.000Z | #include<bits/stdc++.h>
using namespace std;
class MinCost{
public:
int find_min_cost(int n, vector<vector<int>>& edges, vector<vector<int>>& newEdges){
vector<int> parent(n+1);
vector<int> rank(n+1);
int connected = 6;
int min_cost = 0;
for(int i... | 27.992754 | 92 | 0.435413 | JanaSabuj |
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 |
65387796b70884f2a756246989eac29780beb2ac | 4,486 | cc | C++ | tf2hlo/compile.cc | aws/aws-neuron-tensorflow | d28901eb26be0cef271cd8c2f2012657a1605ffd | [
"Apache-2.0"
] | 7 | 2021-04-07T23:25:15.000Z | 2021-11-24T10:47:51.000Z | tf2hlo/compile.cc | QPC-database/aws-neuron-tensorflow | d28901eb26be0cef271cd8c2f2012657a1605ffd | [
"Apache-2.0"
] | 1 | 2021-08-03T21:09:09.000Z | 2021-08-03T21:09:09.000Z | tf2hlo/compile.cc | QPC-database/aws-neuron-tensorflow | d28901eb26be0cef271cd8c2f2012657a1605ffd | [
"Apache-2.0"
] | 2 | 2021-07-10T15:12:54.000Z | 2021-11-24T10:47:53.000Z | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 40.414414 | 80 | 0.712439 | aws |
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 |
6551c06278ed280beabb901481ef5e8a81e1c083 | 4,164 | cpp | C++ | plugin/noise/tools/texturejade.cpp | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | 5 | 2018-03-28T09:14:55.000Z | 2018-04-02T11:54:33.000Z | plugin/noise/tools/texturejade.cpp | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | null | null | null | plugin/noise/tools/texturejade.cpp | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | null | null | null | // texturejade.cpp
//
// This program uses the libnoise library to generate texture maps consisting
// of African jade.
//
// Copyright (C) 2004 Jason Bevins
//
// 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
// Sof... | 37.513514 | 97 | 0.755764 | nomadsinteractive |
655248176c39c1d9c2eb97a00ece10d1933f3fdf | 1,142 | cpp | C++ | second-year/semester-3/OOPD/experiment-1/QuickSort_R.cpp | vipulchodankar/gec-computer-engineering | 3c86280f0d13da16e6aea6f558c159c540f917c0 | [
"MIT"
] | 1 | 2020-02-28T16:43:39.000Z | 2020-02-28T16:43:39.000Z | second-year/semester-3/OOPD/experiment-1/QuickSort_R.cpp | vipulchodankar/gec-computer-engineering | 3c86280f0d13da16e6aea6f558c159c540f917c0 | [
"MIT"
] | 1 | 2020-06-20T14:01:37.000Z | 2020-06-20T14:01:37.000Z | second-year/semester-3/OOPD/experiment-1/QuickSort_R.cpp | vipulchodankar/gec-computer-engineering | 3c86280f0d13da16e6aea6f558c159c540f917c0 | [
"MIT"
] | 2 | 2019-10-01T19:18:33.000Z | 2019-10-06T19:05:02.000Z | #include <iostream>
using namespace std;
int Partition( int ar[], int low, int high )
{
int temp, i = low + 1, j = high, pivot = ar[ low ];
while ( i <= j )
{
while ( ar[i] < pivot && i < high )
i++;
while ( ar[j] > pivot )
j--;
if ( i < j )
{
... | 18.419355 | 55 | 0.391419 | vipulchodankar |
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 |
656648e4ab77ca803edbc40fd10535378ee41a41 | 432 | hpp | C++ | ral-example/service.hpp | puppetlabs/cppbestpractices | 649a51334243902e6dce83f617c4089cc65022d8 | [
"Apache-2.0"
] | 22 | 2015-11-27T04:04:23.000Z | 2021-07-20T23:33:22.000Z | ral-example/service.hpp | puppetlabs/cppbestpractices | 649a51334243902e6dce83f617c4089cc65022d8 | [
"Apache-2.0"
] | 27 | 2015-11-05T01:38:10.000Z | 2019-07-19T22:01:36.000Z | ral-example/service.hpp | puppetlabs/cppbestpractices | 649a51334243902e6dce83f617c4089cc65022d8 | [
"Apache-2.0"
] | 9 | 2015-11-20T21:40:24.000Z | 2021-03-24T11:58:05.000Z | #pragma once
#include <boost/optional.hpp>
#include "resource.hpp"
namespace Puppet {
class Service : public Resource {
public:
Service(std::string name, State ensure = State::present, boost::optional<bool> enable = {});
~Service() override {}
boost::optional<bool> const& enable() co... | 20.571429 | 100 | 0.625 | puppetlabs |
6569a12e39749c4fa2b364dc9bf8d244ee7c3a02 | 2,970 | hxx | C++ | main/svx/source/inc/treevisitor.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/svx/source/inc/treevisitor.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/svx/source/inc/treevisitor.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* 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 y... | 27.757009 | 78 | 0.620202 | Grosskopf |
656a2952e509cad8d8e20231904bdbd87e4bb151 | 426 | cc | C++ | chrome/browser/chromeos/input_method/assistive_window_properties.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/input_method/assistive_window_properties.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/input_method/assistive_window_properties.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/input_method/assistive_window_properties.h"
namespace chromeos {
AssistiveWindowProperties::AssistiveWindowProperties(... | 32.769231 | 77 | 0.800469 | mghgroup |
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 |
656dd14bcc48b69164828388487af6f90e315adb | 1,824 | hpp | C++ | include/crystalnet/symbol/model.hpp | lgarithm/crystalnet | 65d6dd048134ddf062878f67f6ad5121e41d84d8 | [
"MIT"
] | 11 | 2018-04-07T15:10:46.000Z | 2018-09-21T01:48:17.000Z | include/crystalnet/symbol/model.hpp | lgarithm/crystalnet | 65d6dd048134ddf062878f67f6ad5121e41d84d8 | [
"MIT"
] | 69 | 2018-03-04T09:15:57.000Z | 2019-10-02T12:16:12.000Z | include/crystalnet/symbol/model.hpp | lgarithm/crystalnet | 65d6dd048134ddf062878f67f6ad5121e41d84d8 | [
"MIT"
] | 1 | 2018-08-12T00:08:35.000Z | 2018-08-12T00:08:35.000Z | #pragma once
#include <crystalnet/core/context.hpp>
#include <crystalnet/symbol/node.hpp>
struct s_model_ctx_t : named_context_t<s_node_t> {
Ref<s_operator_node_t> ops;
Ref<s_parameter_node_t> params;
Ref<s_placeholder_node_t> places;
Ref<s_node_t> _layers;
s_model_ctx_t() : named_context_t<s_node... | 29.901639 | 79 | 0.638706 | lgarithm |
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 |
6574392b8cabad0f2a9859683c7687aa2a61947a | 313 | cpp | C++ | Interviewbit/greedy/highest-product.cpp | jatin69/Revision-cpp | 52742ea76ee2440d92b116252399360fef46e0c7 | [
"MIT"
] | 4 | 2020-01-16T14:49:46.000Z | 2021-08-23T12:45:19.000Z | Interviewbit/greedy/highest-product.cpp | jatin69/coding-practice | 52742ea76ee2440d92b116252399360fef46e0c7 | [
"MIT"
] | 2 | 2018-06-06T13:08:11.000Z | 2018-10-02T19:07:32.000Z | Interviewbit/greedy/highest-product.cpp | jatin69/coding-practice | 52742ea76ee2440d92b116252399360fef46e0c7 | [
"MIT"
] | 5 | 2018-10-02T13:49:16.000Z | 2021-08-11T07:29:50.000Z | /*
* Author : Jatin Rohilla
* Date : June-July-2019
*
* Compiler : g++ 5.1.0
* flags : -std=c++14
*/
#include<bits/stdc++.h>
using namespace std;
int Solution::maxp3(vector<int> &A) {
int n = A.size();
sort(A.begin(), A.end());
return (max(A[0]*A[1]*A[n-1], A[n-2]*A[n-3]*A[n-1]));
}
| 14.904762 | 57 | 0.523962 | jatin69 |
6575cc01e6b044a2f2c16172123fd9d9ca28c7b5 | 3,369 | cpp | C++ | sfdistr.cpp | alxga/graphs | 1d534461f8a45875ea7456d1e5fde9653363a3ee | [
"MIT"
] | null | null | null | sfdistr.cpp | alxga/graphs | 1d534461f8a45875ea7456d1e5fde9653363a3ee | [
"MIT"
] | null | null | null | sfdistr.cpp | alxga/graphs | 1d534461f8a45875ea7456d1e5fde9653363a3ee | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018-2019 Alexander A. Ganin. All rights reserved.
Twitter: @alxga. Website: alexganin.com.
Licensed under the MIT License.
See LICENSE file in the project root for full license information.
*/
#include "stdafx.h"
#include "Graphs/sfdistr.h"
#include "Graphs/alg.h"
class IFunc
{
public:
v... | 18.510989 | 68 | 0.560404 | alxga |
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 |
657aa518147ec5829ca9cf0bb73c83e60396f281 | 676 | cpp | C++ | code/codeforces/181A.cpp | Codernob/problem-solving-codes | c852bae4e31887bd442d70af921348c8f1d246bf | [
"MIT"
] | null | null | null | code/codeforces/181A.cpp | Codernob/problem-solving-codes | c852bae4e31887bd442d70af921348c8f1d246bf | [
"MIT"
] | null | null | null | code/codeforces/181A.cpp | Codernob/problem-solving-codes | c852bae4e31887bd442d70af921348c8f1d246bf | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class point {
public:
short int x,y;
};
int main() {
point p[4];
short int i,j,n,m,k=0;
char a[150][150],ch;
cin>>n>>m;
for(i=0;i<n;i++) {
for(j=0;j<m;j++) {
cin>>ch;
if(ch=='*')
{ p[k].x=i; p[k].y=j; k++; }
}
}
if(p[1].x==p[2].x && p[0].y==p[2].y) {
p[3].x=p[0... | 16.487805 | 38 | 0.421598 | Codernob |
657ce425f36791593e0651abd9bfeed66a544793 | 581 | cpp | C++ | llvm-2.9/lib/Transforms/DynTrace/ChainNode.cpp | DependableSystemsLab/Trident | 90b38ab3ce8b7ad743986ddf66eaea7d20d921cb | [
"MIT"
] | 5 | 2018-09-23T05:44:31.000Z | 2021-09-08T18:52:37.000Z | llvm-2.9/lib/Transforms/DynTrace/ChainNode.cpp | DependableSystemsLab/Trident | 90b38ab3ce8b7ad743986ddf66eaea7d20d921cb | [
"MIT"
] | 4 | 2019-06-13T16:27:31.000Z | 2021-06-07T07:24:31.000Z | llvm-2.9/lib/Transforms/DynTrace/ChainNode.cpp | DependableSystemsLab/Trident | 90b38ab3ce8b7ad743986ddf66eaea7d20d921cb | [
"MIT"
] | 4 | 2018-09-23T05:44:33.000Z | 2021-04-20T00:29:11.000Z | #include "ChainNode.h"
ChainNode::ChainNode(long instIndex){
index = instIndex;
ptr = false;
mem = false;
type = 'N';
}
long ChainNode::getIndex(){
return index;
}
char ChainNode::getInstType(){
return type;
}
bool ChainNode::isUsedInMem(){
return mem;
}
bool ChainNode::isUsedInPtr(){
return ptr;
}
void C... | 14.170732 | 43 | 0.714286 | DependableSystemsLab |
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 |
65899dab22b99b28c6d3ace6b6e832937d7ac629 | 2,652 | cc | C++ | geometry/src/CADPart.cc | rlalik/mapt2-framework | 8c63c643e38c215ea0e02b6396b229e2391e46c2 | [
"MIT"
] | null | null | null | geometry/src/CADPart.cc | rlalik/mapt2-framework | 8c63c643e38c215ea0e02b6396b229e2391e46c2 | [
"MIT"
] | null | null | null | geometry/src/CADPart.cc | rlalik/mapt2-framework | 8c63c643e38c215ea0e02b6396b229e2391e46c2 | [
"MIT"
] | 1 | 2020-02-20T12:37:41.000Z | 2020-02-20T12:37:41.000Z | #include "CADPart.h"
CADPart::CADPart (bool drawable_)
: AbsPart(drawable_) {
}
void CADPart::Init (string path_, string material_, string color_)
{
path = path_;
materialName = material_;
color = color_;
material = new Material ();
material->Init(materialName,1.0);
//
// create CAD par... | 34.894737 | 136 | 0.440045 | rlalik |
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 |
4f1f05b1a224a9a2db9f21c826077208f1d99e49 | 15,279 | cc | C++ | shell/platform/fuchsia/flutter/gfx_platform_view.cc | charafau/engine | c4a1a72da5dde44cc6288f8c4c0020b03e1e9279 | [
"BSD-3-Clause"
] | null | null | null | shell/platform/fuchsia/flutter/gfx_platform_view.cc | charafau/engine | c4a1a72da5dde44cc6288f8c4c0020b03e1e9279 | [
"BSD-3-Clause"
] | null | null | null | shell/platform/fuchsia/flutter/gfx_platform_view.cc | charafau/engine | c4a1a72da5dde44cc6288f8c4c0020b03e1e9279 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gfx_platform_view.h"
#include "flutter/fml/make_copyable.h"
namespace flutter_runner {
GfxPlatformView::GfxPlatformView(
flutter::Platform... | 40.313984 | 80 | 0.592185 | charafau |
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 |
4f1f965eb5b98e9f3c14a554381fbb0ff140dc2b | 2,444 | cpp | C++ | psx/_dump_/41/_dump_c_src_/diabpsx/source/prequest.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/41/_dump_c_src_/diabpsx/source/prequest.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/41/_dump_c_src_/diabpsx/source/prequest.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | // C:\diabpsx\SOURCE\PREQUEST.CPP
#include "types.h"
// address: 0x8015A4D0
// line start: 108
// line end: 197
void InitQuests__Fv() {
// address: 0xFFFFFFE8
auto int i;
// register: 3
register int gri;
// register: 16
register int deltaq;
{
{
// register: 4
// size: 0x6C
register struct ItemStru... | 15.566879 | 46 | 0.6473 | maoa3 |
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 |
4f244da0db0019abb3ff2d4b0a77f2d8ce27770b | 2,011 | cxx | C++ | Qt/Components/pqDisplayPanelPropertyWidget.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | 1 | 2020-05-21T20:20:59.000Z | 2020-05-21T20:20:59.000Z | Qt/Components/pqDisplayPanelPropertyWidget.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | null | null | null | Qt/Components/pqDisplayPanelPropertyWidget.cxx | mathstuf/ParaView | e867e280545ada10c4ed137f6a966d9d2f3db4cb | [
"Apache-2.0"
] | 5 | 2016-04-14T13:42:37.000Z | 2021-05-22T04:59:42.000Z | /*=========================================================================
Program: ParaView
Module: pqObjectPanelPropertyWidget.h
Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of ... | 35.280702 | 81 | 0.704127 | mathstuf |
4f248cba6c98a7c73290bd3653dd691693082629 | 4,721 | cpp | C++ | src/gpu/ccpr/GrCCQuadraticShader.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 3 | 2020-08-06T00:31:13.000Z | 2021-07-29T07:28:17.000Z | src/gpu/ccpr/GrCCQuadraticShader.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 3 | 2020-04-26T17:03:31.000Z | 2020-04-28T14:55:33.000Z | src/gpu/ccpr/GrCCQuadraticShader.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 57 | 2016-12-29T02:00:25.000Z | 2021-11-16T01:22:50.000Z | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrCCQuadraticShader.h"
#include "glsl/GrGLSLFragmentShaderBuilder.h"
#include "glsl/GrGLSLVertexGeoBuilder.h"
void GrCCQuadraticShader::emitSetupCode(GrGLSLVertexG... | 50.763441 | 99 | 0.611099 | pospx |
4f24bf199ca8d14b775a52ddd6633b6f734fcf28 | 14,124 | cc | C++ | ash/multi_user/user_switch_animator.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | ash/multi_user/user_switch_animator.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | ash/multi_user/user_switch_animator.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/multi_user/user_switch_animator.h"
#include "ash/multi_user/multi_user_window_manager_impl.h"
#include "ash/public/cpp/multi_user_window_ma... | 38.172973 | 80 | 0.696474 | Ron423c |
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 |
4f27115e81e160c7d72b3e301e51e1f00858583a | 8,289 | cc | C++ | ash/wm/base_layout_manager.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 1 | 2019-04-23T15:57:04.000Z | 2019-04-23T15:57:04.000Z | ash/wm/base_layout_manager.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | null | null | null | ash/wm/base_layout_manager.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/wm/base_layout_manager.h"
#include "ash/screen_ash.h"
#include "ash/shell.h"
#include "ash/wm/shelf_layout_manager.h"
#include "ash/wm/... | 36.676991 | 80 | 0.659187 | 1065672644894730302 |
4f28426bccb5aa3bf6dd99934cb248846a3e48df | 5,610 | cpp | C++ | src/mission/missionmanager.cpp | bridger-herman/OpenSpace | e3afd82c4700536a2221fc76f64fdc873c93e964 | [
"MIT"
] | 1 | 2019-10-27T12:42:40.000Z | 2019-10-27T12:42:40.000Z | src/mission/missionmanager.cpp | bridger-herman/OpenSpace | e3afd82c4700536a2221fc76f64fdc873c93e964 | [
"MIT"
] | null | null | null | src/mission/missionmanager.cpp | bridger-herman/OpenSpace | e3afd82c4700536a2221fc76f64fdc873c93e964 | [
"MIT"
] | 1 | 2022-01-08T05:00:25.000Z | 2022-01-08T05:00:25.000Z | /*****************************************************************************************
* *
* OpenSpace *
* ... | 39.230769 | 90 | 0.542781 | bridger-herman |
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 |
4f2db114c03b6f1fde7737447598b45ab0ab423e | 12,910 | cpp | C++ | MQ/src/MQFunctions.cpp | fbraem/mqweb | c030b300a0b7312c24948e0add4eb6a9b7f8a05b | [
"MIT"
] | 18 | 2015-01-12T20:17:27.000Z | 2022-02-11T17:40:54.000Z | MQ/src/MQFunctions.cpp | fbraem/mqweb | c030b300a0b7312c24948e0add4eb6a9b7f8a05b | [
"MIT"
] | 12 | 2015-01-20T12:47:01.000Z | 2019-03-13T07:10:19.000Z | MQ/src/MQFunctions.cpp | fbraem/mqweb | c030b300a0b7312c24948e0add4eb6a9b7f8a05b | [
"MIT"
] | 8 | 2015-01-13T13:52:29.000Z | 2021-12-10T12:07:29.000Z | /*
* Copyright 2017 - KBC Group NV - Franky Braem - The MIT license
* 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... | 25.666004 | 197 | 0.682107 | fbraem |
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 |