hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
94acb9d7080a5d910d2b8347208840824175b556 | 464 | hpp | C++ | src/gs/gsSpreader.hpp | frmr/gs | b9721ad27f59ca2e19f637bccd9eba32b663b6a3 | [
"MIT"
] | 2 | 2016-12-06T17:51:30.000Z | 2018-06-21T08:52:58.000Z | src/gs/gsSpreader.hpp | frmr/gs | b9721ad27f59ca2e19f637bccd9eba32b663b6a3 | [
"MIT"
] | null | null | null | src/gs/gsSpreader.hpp | frmr/gs | b9721ad27f59ca2e19f637bccd9eba32b663b6a3 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <vector>
using std::shared_ptr;
using std::vector;
namespace gs
{
template<typename T>
class Spreader
{
protected:
const unsigned int speed;
vector<T> frontier;
public:
virtual bool Spread() = 0;
public:
S... | 16.571429 | 58 | 0.538793 | frmr |
94af993e8f9f05ff93dec18a6811e32be4a6305e | 241 | cpp | C++ | lib/core/eventhandler.cpp | LeDYoM/sgh | 66a56d0df5c0acc8a3f47212a91da7ea889695de | [
"MIT"
] | null | null | null | lib/core/eventhandler.cpp | LeDYoM/sgh | 66a56d0df5c0acc8a3f47212a91da7ea889695de | [
"MIT"
] | null | null | null | lib/core/eventhandler.cpp | LeDYoM/sgh | 66a56d0df5c0acc8a3f47212a91da7ea889695de | [
"MIT"
] | null | null | null | #ifndef __LIB_EVENT_HPP__
#define __LIB_EVENT_HPP__
#include <lib/include/types.hpp>
#include "eventhandler.hpp"
namespace lib
{
namespace core
{
EventHandler::EventHandler()
{
}
EventHandler::~EventHandler()
{
}
}
}
#endif
| 12.05 | 32 | 0.709544 | LeDYoM |
94b6a661d26c274d2a9e10a65eac2417990c701e | 182 | cpp | C++ | ConsoleRpg/ConsoleRpg/Main.cpp | LucasRKrueger/RPG_game | bc27de5b1d0e5ca34fc1141b2832c291f667cf5f | [
"MIT"
] | 2 | 2020-05-27T19:58:48.000Z | 2020-05-27T19:58:50.000Z | ConsoleRpg/ConsoleRpg/Main.cpp | LucasRKrueger/RPG_game | bc27de5b1d0e5ca34fc1141b2832c291f667cf5f | [
"MIT"
] | null | null | null | ConsoleRpg/ConsoleRpg/Main.cpp | LucasRKrueger/RPG_game | bc27de5b1d0e5ca34fc1141b2832c291f667cf5f | [
"MIT"
] | null | null | null | #include "Game.h"
int main()
{
srand(time(NULL));
Game game;
Inventory inventory;
game.initGame();
while (game.getPlaying())
{
game.mainMenu(inventory);
}
return 0;
}
| 9.578947 | 27 | 0.642857 | LucasRKrueger |
94bb0e8f696602aeecc588e0bc74e999506d17bf | 2,717 | cpp | C++ | ironbeepp/configuration_parser.cpp | b1v1r/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 148 | 2015-01-10T01:53:39.000Z | 2022-03-20T20:48:12.000Z | ironbeepp/configuration_parser.cpp | ErikHendriks/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 8 | 2015-03-09T15:50:36.000Z | 2020-10-10T19:23:06.000Z | ironbeepp/configuration_parser.cpp | ErikHendriks/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 46 | 2015-03-08T22:45:42.000Z | 2022-01-15T13:47:59.000Z | #include <ironbeepp/configuration_parser.hpp>
#include <ironbeepp/engine.hpp>
#include <ironbeepp/site.hpp>
#include <ironbeepp/context.hpp>
#include <ironbee/config.h>
using namespace std;
namespace IronBee {
// ConstConfigurationParser
ConstConfigurationParser::ConstConfigurationParser() :
m_ib(NULL)
{
//... | 20.125926 | 75 | 0.683106 | b1v1r |
94bfe569c260db1e30a9032aed4e7a1dbde5f429 | 616 | hpp | C++ | ros/catkin_ws/src/ecl/ecl_lite/ecl_converters_lite/include/ecl/converters_lite.hpp | Kanaderu/spiking-ddpg-mapless-navigation | 2b5e7e67385dee4428b8036bc4ffe95e812b34e0 | [
"MIT"
] | null | null | null | ros/catkin_ws/src/ecl/ecl_lite/ecl_converters_lite/include/ecl/converters_lite.hpp | Kanaderu/spiking-ddpg-mapless-navigation | 2b5e7e67385dee4428b8036bc4ffe95e812b34e0 | [
"MIT"
] | null | null | null | ros/catkin_ws/src/ecl/ecl_lite/ecl_converters_lite/include/ecl/converters_lite.hpp | Kanaderu/spiking-ddpg-mapless-navigation | 2b5e7e67385dee4428b8036bc4ffe95e812b34e0 | [
"MIT"
] | null | null | null | /**
* @file include/ecl/converters_lite.hpp
*
* @brief Collects headers for ecl_converters_lite.
*
* @date March 2011
**/
/*****************************************************************************
** Ifdefs
*****************************************************************************/
#ifndef ECL_CONVERTERS_... | 28 | 78 | 0.36526 | Kanaderu |
94c45fd9cc37f29d0db5b4c56aa1e49ee9bb420a | 388 | cpp | C++ | lab04-googletest/02-sort.cpp | stevenokm/cpp_tutorial | 0cbc0917bcee8c503a3b9318e945a6ec662ac402 | [
"MIT"
] | 1 | 2021-09-23T00:35:43.000Z | 2021-09-23T00:35:43.000Z | lab04-googletest/02-sort.cpp | stevenokm/cpp_tutorial | 0cbc0917bcee8c503a3b9318e945a6ec662ac402 | [
"MIT"
] | null | null | null | lab04-googletest/02-sort.cpp | stevenokm/cpp_tutorial | 0cbc0917bcee8c503a3b9318e945a6ec662ac402 | [
"MIT"
] | 2 | 2021-08-30T05:34:42.000Z | 2021-09-21T14:11:22.000Z | #include <vector>
void bubble_sort(std::vector<int>& vec)
{
for(size_t ii = 0; ii < vec.size(); ii = ii + 1)
{
for(size_t jj = 0; jj < vec.size() - 1 - ii; jj = jj + 1)
{
if(vec[jj] > vec[jj + 1])
{
int tmp = vec[jj + 1];
vec[jj + 1] = vec... | 22.823529 | 65 | 0.365979 | stevenokm |
94c6d78402d7635d1bda3e3838ce93d01d032aed | 862 | cc | C++ | src/preprocessing/osm/access.cc | zieglerdo/ppr | 3ba2d675ee80a723a4e83b0e9249bb546e2a1489 | [
"MIT"
] | 1 | 2020-08-05T08:37:43.000Z | 2020-08-05T08:37:43.000Z | src/preprocessing/osm/access.cc | zieglerdo/ppr | 3ba2d675ee80a723a4e83b0e9249bb546e2a1489 | [
"MIT"
] | null | null | null | src/preprocessing/osm/access.cc | zieglerdo/ppr | 3ba2d675ee80a723a4e83b0e9249bb546e2a1489 | [
"MIT"
] | 1 | 2022-03-31T06:14:04.000Z | 2022-03-31T06:14:04.000Z | #include <cstring>
#include "ppr/preprocessing/osm/access.h"
namespace ppr::preprocessing::osm {
bool access_allowed(char const* access, bool def) {
if (access == nullptr || strlen(access) == 0) {
return def;
}
if (def) {
return strcmp(access, "no") != 0 && strcmp(access, "private") != 0;
} else {
... | 27.806452 | 77 | 0.595128 | zieglerdo |
94cece07ab55a2121346c921823a3d2cbfab004f | 4,734 | cpp | C++ | source/client/SDLWrapper.cpp | h0nzZik/toogashada | da24b08b2701b0d6534d19add20383cd7b5ed185 | [
"MIT"
] | null | null | null | source/client/SDLWrapper.cpp | h0nzZik/toogashada | da24b08b2701b0d6534d19add20383cd7b5ed185 | [
"MIT"
] | 1 | 2017-06-10T11:02:58.000Z | 2017-06-10T11:02:58.000Z | source/client/SDLWrapper.cpp | h0nzZik/toogashada | da24b08b2701b0d6534d19add20383cd7b5ed185 | [
"MIT"
] | null | null | null | #include <cassert>
#include <memory>
#include <stdexcept>
#include <SDL.h>
#include <SDL_rect.h>
#include <SDL_render.h>
#include <SDL_system.h>
#include <SDL_video.h>
#include "SDLWrapper.h"
namespace SDLw {
SDL::SDL(uint32_t flags) {
if (SDL_Init(flags) < 0)
throw std::runtime_error("Cannot initialize SDL:... | 24.153061 | 105 | 0.693071 | h0nzZik |
94d1810c788bdbf8e7fecbcdd7560a8a5230dac3 | 11,920 | cpp | C++ | nudg++/trunk/Src/ServiceRoutines/Global_funcs.cpp | elswit/nodal-dg | e781b2e53a22869b9add28ad4e193fa2e9707622 | [
"MIT"
] | 93 | 2015-01-26T17:48:24.000Z | 2022-03-16T10:26:07.000Z | nudg++/trunk/Src/ServiceRoutines/Global_funcs.cpp | elswit/nodal-dg | e781b2e53a22869b9add28ad4e193fa2e9707622 | [
"MIT"
] | 4 | 2016-01-27T02:45:40.000Z | 2021-11-26T11:50:08.000Z | nudg++/trunk/Src/ServiceRoutines/Global_funcs.cpp | elswit/nodal-dg | e781b2e53a22869b9add28ad4e193fa2e9707622 | [
"MIT"
] | 80 | 2015-04-03T18:44:50.000Z | 2022-03-30T19:25:22.000Z | // Global_funcs.cpp
//
// 2007/10/18
//---------------------------------------------------------
#include "NDGLib_headers.h"
#include "Global_funcs.h"
#include <math.h>
// for debug printing {DM,IM} and {DV,IV} arrays
#include "MatObj_Type.h"
#include "VecObj_Type.h"
// free unused allocations in the ar... | 26.846847 | 94 | 0.402013 | elswit |
94d3ed398ef7af746cc7b021ce33e2ab02b6a49f | 1,576 | cpp | C++ | HackerRank/Algorithms/NetChallenge.cpp | mycmessia/HackerRank | 1397d8c6a08c671bea9aaca9c5b1d9f095ae4e6b | [
"MIT"
] | null | null | null | HackerRank/Algorithms/NetChallenge.cpp | mycmessia/HackerRank | 1397d8c6a08c671bea9aaca9c5b1d9f095ae4e6b | [
"MIT"
] | null | null | null | HackerRank/Algorithms/NetChallenge.cpp | mycmessia/HackerRank | 1397d8c6a08c671bea9aaca9c5b1d9f095ae4e6b | [
"MIT"
] | null | null | null | //
// StringIterator.cpp
// HackerRank
//
// Created by 梅宇宸 on 17/1/24.
// Copyright © 2017年 梅宇宸. All rights reserved.
//
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
void printNet (vector<vector<char>> net)
{
for (unsigned i = 0; i < net.s... | 19.219512 | 77 | 0.364848 | mycmessia |
94d81f484551c69e5de2ee5dcf26866ddee15260 | 13,895 | hpp | C++ | include/input.hpp | mouzedrift/alive | 7c297a39c60e930933c0a93ea373226907f8b1c7 | [
"MIT"
] | 131 | 2015-03-21T14:10:21.000Z | 2021-01-19T03:54:04.000Z | include/input.hpp | mouzedrift/alive | 7c297a39c60e930933c0a93ea373226907f8b1c7 | [
"MIT"
] | 51 | 2015-04-06T17:24:45.000Z | 2018-02-03T14:36:37.000Z | include/input.hpp | mouzedrift/alive | 7c297a39c60e930933c0a93ea373226907f8b1c7 | [
"MIT"
] | 17 | 2015-10-07T10:20:47.000Z | 2021-08-02T04:14:11.000Z | #pragma once
#include "types.hpp"
#include "bitutils.hpp"
#include <map>
#include <vector>
#include <memory>
#include "logger.hpp"
#include <SDL.h>
template<class T>
void UpdateStateInputItemGeneric(T& state)
{
if (state.RawDownState())
{
if (!state.IsPressed() && !state.IsDown())
{
... | 30.877778 | 105 | 0.594027 | mouzedrift |
94dc2e2c887309e1cd6f82f4ef4a43952eeefe42 | 7,443 | cpp | C++ | scm_gl_core/src/scm/gl_core/window_management/wm_win32/context_impl_win32.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 10 | 2015-09-17T06:01:03.000Z | 2019-10-23T07:10:20.000Z | scm_gl_core/src/scm/gl_core/window_management/wm_win32/context_impl_win32.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 5 | 2015-01-06T14:11:32.000Z | 2016-12-12T10:26:53.000Z | scm_gl_core/src/scm/gl_core/window_management/wm_win32/context_impl_win32.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 15 | 2015-01-29T20:56:13.000Z | 2020-07-02T19:03:20.000Z |
// Copyright (c) 2012 Christopher Lux <christopherlux@gmail.com>
// Distributed under the Modified BSD License, see license.txt.
#include "context_impl_win32.h"
#if SCM_PLATFORM == SCM_PLATFORM_WINDOWS
#include <exception>
#include <stdexcept>
#include <sstream>
#include <vector>
#include <scm/log.h>
#include <scm... | 40.672131 | 141 | 0.591294 | Nyran |
94e4b495145ad68cded803ec94e898180dc81451 | 1,151 | cpp | C++ | Source/AProject/ASkill.cpp | Mandey4172/ASpacePhip | 09450e2e61d178e5dfee189a0228c27313eb95aa | [
"MIT"
] | null | null | null | Source/AProject/ASkill.cpp | Mandey4172/ASpacePhip | 09450e2e61d178e5dfee189a0228c27313eb95aa | [
"MIT"
] | null | null | null | Source/AProject/ASkill.cpp | Mandey4172/ASpacePhip | 09450e2e61d178e5dfee189a0228c27313eb95aa | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "ASkill.h"
#include "AAPawn.h"
// Sets default values
AASkill::AASkill()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
... | 17.707692 | 115 | 0.691573 | Mandey4172 |
94e8a9552ecaf9375ad62a63f71efaa9dcae154d | 5,367 | cpp | C++ | BigOPart3.cpp | krisf01/Program-Design-and-Data-Structures | 6eca051c7fa45f95a9ff593e0bd1f9ad9d871ff4 | [
"MIT"
] | null | null | null | BigOPart3.cpp | krisf01/Program-Design-and-Data-Structures | 6eca051c7fa45f95a9ff593e0bd1f9ad9d871ff4 | [
"MIT"
] | null | null | null | BigOPart3.cpp | krisf01/Program-Design-and-Data-Structures | 6eca051c7fa45f95a9ff593e0bd1f9ad9d871ff4 | [
"MIT"
] | null | null | null | #include<iostream>
#include<fstream>
#include<string>
using namespace std;
#include<vector>
#include<cassert>
#include<cmath>
#include<ctime>
#include<cstdlib>
#define INFILE "file.txt"
#include "DynamicArray.h"
struct Class
{
string subjectCode;
int count;
};
int main()
{
cout << "Programmer: Kristina ... | 32.331325 | 120 | 0.495062 | krisf01 |
94eff0c29064b67c3595a8a8606604119a0b2617 | 5,714 | cpp | C++ | src/main.cpp | pengyz/MyNanaDemo | 79db803c539c651294e9918463085f39a9164f83 | [
"MIT"
] | null | null | null | src/main.cpp | pengyz/MyNanaDemo | 79db803c539c651294e9918463085f39a9164f83 | [
"MIT"
] | null | null | null | src/main.cpp | pengyz/MyNanaDemo | 79db803c539c651294e9918463085f39a9164f83 | [
"MIT"
] | null | null | null | #include <iostream>
#include <filesystem>
#include <nana/gui.hpp>
#include <nana/gui/widgets/button.hpp>
#include <nana/gui/dragger.hpp>
#include <nana/gui/widgets/label.hpp>
#include <nana/gui/place.hpp>
#include <nana/gui/widgets/progress.hpp>
#include <nana/gui/timer.hpp>
#include <nana/gui/msgbox.hpp>
#include <na... | 32.465909 | 136 | 0.649107 | pengyz |
94f8050239ed672401d1bbbc7482a380e36a22a7 | 501 | cpp | C++ | 109 (10900-10999)/10905 - Children's Game/main.cpp | k9532121/UVa-Solutions | a46caab72353e617d663ddf32215618b43addad1 | [
"MIT"
] | null | null | null | 109 (10900-10999)/10905 - Children's Game/main.cpp | k9532121/UVa-Solutions | a46caab72353e617d663ddf32215618b43addad1 | [
"MIT"
] | null | null | null | 109 (10900-10999)/10905 - Children's Game/main.cpp | k9532121/UVa-Solutions | a46caab72353e617d663ddf32215618b43addad1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
bool cmp(string a, string b){
return (a+b) > (b+a);
}
int main(){
int n;
while(cin >> n){
if(n==0) break;
int i;
string tmp;
vector<string> arr;
for(i=0;i<n;i++){
cin >> tmp;
... | 19.269231 | 42 | 0.459082 | k9532121 |
a202f2c7e0bc8280f0fb1f228111ee77b8ff9830 | 1,639 | cpp | C++ | src/main/cpp/autonomous/AutoOneTote.cpp | Team3512/Robot-2015 | 76dd32b66f11aaf8b9b009c0d0633095dfa404e5 | [
"BSD-3-Clause"
] | 2 | 2015-12-12T05:29:01.000Z | 2016-01-20T02:15:58.000Z | src/main/cpp/autonomous/AutoOneTote.cpp | Team3512/Robot-2015 | 76dd32b66f11aaf8b9b009c0d0633095dfa404e5 | [
"BSD-3-Clause"
] | 2 | 2015-06-02T06:56:55.000Z | 2016-01-23T19:04:48.000Z | src/main/cpp/autonomous/AutoOneTote.cpp | Team3512/Talos | 76dd32b66f11aaf8b9b009c0d0633095dfa404e5 | [
"BSD-3-Clause"
] | 1 | 2021-12-15T00:18:33.000Z | 2021-12-15T00:18:33.000Z | // Copyright (c) 2015-2021 FRC Team 3512. All Rights Reserved.
#include "Robot.hpp"
void Robot::AutoOneTote() {
elevator.SetManualMode(false);
elevator.SetIntakeDirection(Elevator::S_STOPPED);
// Seek garbage can up
elevator.RaiseElevator(Elevator::kGarbageCanHeight);
elevator.StowIntake(false);
... | 24.102941 | 62 | 0.589384 | Team3512 |
a203ce709efcab91e27a9b58f5512d908f65d23e | 13,021 | cpp | C++ | external/vsomeip/implementation/service_discovery/src/message_impl.cpp | lixiaolia/ndk-someip-lib | f4088e87f07e3a6bcec402514bb7ebb77ec946ce | [
"Apache-2.0"
] | 3 | 2021-06-17T14:01:04.000Z | 2022-03-18T09:22:44.000Z | external/vsomeip/implementation/service_discovery/src/message_impl.cpp | lixiaolia/ndk-someip-lib | f4088e87f07e3a6bcec402514bb7ebb77ec946ce | [
"Apache-2.0"
] | 1 | 2022-03-15T06:21:33.000Z | 2022-03-28T06:31:12.000Z | external/vsomeip/implementation/service_discovery/src/message_impl.cpp | lixiaolia/ndk-someip-lib | f4088e87f07e3a6bcec402514bb7ebb77ec946ce | [
"Apache-2.0"
] | 4 | 2021-06-17T14:12:18.000Z | 2021-12-13T11:53:10.000Z | // Copyright (C) 2014-2018 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <typeinfo>
#include <vsomei... | 30.141204 | 87 | 0.677137 | lixiaolia |
a208fb2868587da00e2a20c7efef3ec5ca491cca | 967 | cpp | C++ | shared_model/cryptography/ed25519_sha3_impl/verifier.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1 | 2020-05-15T10:02:38.000Z | 2020-05-15T10:02:38.000Z | shared_model/cryptography/ed25519_sha3_impl/verifier.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 2 | 2020-02-18T11:25:35.000Z | 2020-02-20T04:09:45.000Z | shared_model/cryptography/ed25519_sha3_impl/verifier.cpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1 | 2020-07-19T19:44:51.000Z | 2020-07-19T19:44:51.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "cryptography/ed25519_sha3_impl/verifier.hpp"
#include "cryptography/ed25519_sha3_impl/internal/ed25519_impl.hpp"
#include "cryptography/ed25519_sha3_impl/internal/sha3_hash.hpp"
namespace shared_model {
n... | 37.192308 | 79 | 0.613237 | akshatkarani |
a20d6bc68505b4198840369b6ad5ffdc0c64a9c2 | 2,757 | cpp | C++ | fdf.cpp | agrippa1994/nodejs-fdf | e752164082265a13a45b50dfe29427deba429702 | [
"MIT"
] | 4 | 2015-02-13T10:47:57.000Z | 2018-02-14T16:19:18.000Z | fdf.cpp | agrippa1994/nodejs-fdf | e752164082265a13a45b50dfe29427deba429702 | [
"MIT"
] | null | null | null | fdf.cpp | agrippa1994/nodejs-fdf | e752164082265a13a45b50dfe29427deba429702 | [
"MIT"
] | null | null | null | #include <node.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <map>
using namespace v8;
bool createFDF_(const std::string& fileName, const std::map<std::string, std::string>& values)
{
std::fstream fs(fileName, std::fstream::out);
if (!fs.is_open())
return false;
std::st... | 29.645161 | 127 | 0.655423 | agrippa1994 |
a20e58bc16240e01a81ef122d202bbc9e4e0701e | 546 | hh | C++ | inference/interface/pipeline.hh | GilesStrong/cms_hh_tf_inference | 070c6e67531d16f8639b85e2f9e5219512142afa | [
"Apache-2.0"
] | null | null | null | inference/interface/pipeline.hh | GilesStrong/cms_hh_tf_inference | 070c6e67531d16f8639b85e2f9e5219512142afa | [
"Apache-2.0"
] | 8 | 2020-01-10T09:37:40.000Z | 2022-02-10T09:18:12.000Z | inference/interface/pipeline.hh | GilesStrong/cms_hh_tf_inference | 070c6e67531d16f8639b85e2f9e5219512142afa | [
"Apache-2.0"
] | null | null | null | #ifndef PIPELINE_HH_
#define PIPELINE_HH_
// C++
#include <iostream>
#include <string>
// TensorFlow
#include "PhysicsTools/TensorFlow/interface/TensorFlow.h"
// Local
#include "preproc.hh"
#include "ensemble.hh"
#include "nn.hh"
class Pipeline {
/* Class to handle all steps of processing and predictions */
priva... | 17.612903 | 62 | 0.708791 | GilesStrong |
a21034400f19aaddd98355fcd59f25349e9df723 | 726 | hpp | C++ | source/Async/HTTP/Server.hpp | kurocha/async-http | 1de2f0754fac1bc326838b05ac720095996e3858 | [
"MIT",
"Unlicense"
] | 2 | 2019-08-08T20:32:18.000Z | 2021-01-30T08:20:15.000Z | source/Async/HTTP/Server.hpp | kurocha/async-http | 1de2f0754fac1bc326838b05ac720095996e3858 | [
"MIT",
"Unlicense"
] | null | null | null | source/Async/HTTP/Server.hpp | kurocha/async-http | 1de2f0754fac1bc326838b05ac720095996e3858 | [
"MIT",
"Unlicense"
] | null | null | null | //
// Server.hpp
// File file is part of the "Async" project and released under the MIT License.
//
// Created by Samuel Williams on 21/6/2017.
// Copyright, 2017, by Samuel Williams. All rights reserved.
//
#pragma once
#include <Async/Reactor.hpp>
#include <Async/Network/Endpoint.hpp>
#include "Request.hpp"
#i... | 20.166667 | 102 | 0.695592 | kurocha |
a216fa4eac8c264df56bcb350088aec11227741c | 7,112 | cpp | C++ | lab2/lab2b16.cpp | chicken4tor/knu-a.cherniayev-k19 | 815f52f32bff939609a6aabfb73455b41d621dc3 | [
"MIT"
] | 1 | 2021-02-03T18:56:35.000Z | 2021-02-03T18:56:35.000Z | lab2/lab2b16.cpp | chicken4tor/knu-a.cherniayev-k19 | 815f52f32bff939609a6aabfb73455b41d621dc3 | [
"MIT"
] | null | null | null | lab2/lab2b16.cpp | chicken4tor/knu-a.cherniayev-k19 | 815f52f32bff939609a6aabfb73455b41d621dc3 | [
"MIT"
] | null | null | null | // Реалізувати циклічний журнал повідомлень.
// Задається фіксований розмір журналу N.
// Доступна операція для додавання текстового повідомлення, яка записує
// повідомлення і час надходження. Якщо журнал вже заповнений – новий запис
// замінює найдавніший. Також доступна операція отримання
// останніх K повідомлень ... | 23.865772 | 108 | 0.462458 | chicken4tor |
a220b53c3108816b668c1dfde17cfc4b814d2448 | 13,669 | cpp | C++ | RenderCore/Vulkan/Metal/Shader.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | 3 | 2018-05-17T08:39:39.000Z | 2020-12-09T13:20:26.000Z | RenderCore/Vulkan/Metal/Shader.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | null | null | null | RenderCore/Vulkan/Metal/Shader.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | 1 | 2021-11-14T08:50:15.000Z | 2021-11-14T08:50:15.000Z | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "Shader.h"
#include "ObjectFactory.h"
#include "DeviceContext.h"
#include "PipelineLayout.h"
#include "PipelineLayoutSignatureFile.h"... | 41.801223 | 227 | 0.709342 | pocketgems |
a22111a5286f311c8fc19f03deb59dde5847faa7 | 523 | cpp | C++ | src/objects/system/stream.cpp | rationalis-petra/modulus | 194e4029b3085e89b7e35bb925fcba079905ef80 | [
"MIT"
] | 1 | 2021-09-24T19:45:18.000Z | 2021-09-24T19:45:18.000Z | src/objects/system/stream.cpp | rationalis-petra/modulus | 194e4029b3085e89b7e35bb925fcba079905ef80 | [
"MIT"
] | null | null | null | src/objects/system/stream.cpp | rationalis-petra/modulus | 194e4029b3085e89b7e35bb925fcba079905ef80 | [
"MIT"
] | null | null | null | #include "objects/object.hpp"
#include "objects/system/stream.hpp"
using obj::IStreamImpl;
using obj::OStreamImpl;
using obj::IOStreamImpl;
IStreamImpl::IStreamImpl(std::istream* _istrm) : v_istrm(_istrm) {}
std::istream* IStreamImpl::istrm() { return v_istrm; }
OStreamImpl::OStreamImpl(std::ostream* _ostrm) : v_ost... | 32.6875 | 73 | 0.745698 | rationalis-petra |
b8c925c6e0f7ff91b14d035ee5b74b846701f1ef | 872 | cpp | C++ | 05_Styles/stack_datadriven/stack.cpp | haxpor/APIBook | df34e557ebdd3e0c30fc55fb87dd43c72d393d4c | [
"MIT"
] | 15 | 2020-01-14T21:00:20.000Z | 2022-03-20T08:30:23.000Z | 05_Styles/stack_datadriven/stack.cpp | haxpor/APIBook | df34e557ebdd3e0c30fc55fb87dd43c72d393d4c | [
"MIT"
] | 1 | 2019-03-13T01:36:12.000Z | 2019-03-13T01:36:12.000Z | 05_Styles/stack_datadriven/stack.cpp | haxpor/APIBook | df34e557ebdd3e0c30fc55fb87dd43c72d393d4c | [
"MIT"
] | 10 | 2019-10-21T03:15:24.000Z | 2021-09-08T01:58:35.000Z | /// -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: t -*-
///
/// \file stack.cpp
/// \author Martin Reddy
/// \brief An example of a data-driven style API.
///
/// Copyright (c) 2010, Martin Reddy. All rights reserved.
/// Distributed under the X11/MIT License. See LICENSE.txt.
/// See http://APIBook.com/ f... | 17.795918 | 64 | 0.622706 | haxpor |
b8d0bc0cc8463703b9bbab040b3d3fa380b5bac4 | 266 | cpp | C++ | src/point_phase.cpp | acc-cosc-1337-spring-2021/acc-spring-2021-final-aaronvonkreisler | a799d2b32f448da35bdc461c9eb4873b046a3261 | [
"MIT"
] | null | null | null | src/point_phase.cpp | acc-cosc-1337-spring-2021/acc-spring-2021-final-aaronvonkreisler | a799d2b32f448da35bdc461c9eb4873b046a3261 | [
"MIT"
] | null | null | null | src/point_phase.cpp | acc-cosc-1337-spring-2021/acc-spring-2021-final-aaronvonkreisler | a799d2b32f448da35bdc461c9eb4873b046a3261 | [
"MIT"
] | null | null | null | #include "point_phase.h"
RollOutcome PointPhase::get_outcome(Roll* roll) {
int value = roll->roll_value();
if (value == point) {
return RollOutcome::Point;
}
if (value == 7) {
return RollOutcome::Seven_Out;
}
return RollOutcome::NoPoint;
} | 16.625 | 49 | 0.650376 | acc-cosc-1337-spring-2021 |
b8d6ac68662dfb65f0e4ec1421a990db6f1df53c | 3,767 | cpp | C++ | src/boxVisualization.cpp | ChrisMckerracher/dex-ui | 724c36256087f825a5fffee2617f34d25427efaa | [
"BSD-3-Clause"
] | 2 | 2020-10-30T11:42:42.000Z | 2020-11-29T15:55:18.000Z | src/boxVisualization.cpp | ChrisMckerracher/dex-ui | 724c36256087f825a5fffee2617f34d25427efaa | [
"BSD-3-Clause"
] | null | null | null | src/boxVisualization.cpp | ChrisMckerracher/dex-ui | 724c36256087f825a5fffee2617f34d25427efaa | [
"BSD-3-Clause"
] | 1 | 2020-07-22T01:44:08.000Z | 2020-07-22T01:44:08.000Z | #include "boxVisualization.h"
#include "graphics-utils.h"
#include "easing-utils.h"
BoxVisualization::BoxVisualization() {
x = 0;
y = 0;
w = 240;
h = 11*GRID_SIZE;
setDelay(0);
font5 = Text();
font5.setFont(MAIN_FONT, 5);
waves = Waves();
// waves.setPos(ofPoint(180,270));
// waves.setPos(ofPoin... | 25.80137 | 66 | 0.512875 | ChrisMckerracher |
b8d70fe79d4b77784ecbad2a40d12ee11e7c948c | 42,961 | hpp | C++ | SDK/ARKSurvivalEvolved_DinoBlueprintBase_RootBoneName_Mounted_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_DinoBlueprintBase_RootBoneName_Mounted_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_DinoBlueprintBase_RootBoneName_Mounted_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DinoBlueprintBase_RootBoneName_Mounted_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//----------------------------------... | 148.653979 | 219 | 0.612719 | 2bite |
b8ddc8ca05dcda022deafa882359af313dc4d55d | 386 | cpp | C++ | Engine/Source/Runtime/Core/Math/Transform.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | Engine/Source/Runtime/Core/Math/Transform.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | Engine/Source/Runtime/Core/Math/Transform.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | #include "NullPCH.h"
#include "Transform.h"
const FTransform FTransform::Identity(FQuat(0.f, 0.f, 0.f, 1.f), FVector(0.f), FVector(1.f));
FString FTransform::ToString() const
{
const FRotator R(Rotator());
const FVector T(GetPosition());
const FVector S(GetScale3D());
return FString::Printf("%f,%f,%f|%f,%f,%f|%f... | 27.571429 | 108 | 0.645078 | 1992please |
b8de406e070452f7edf542140e22d0fe193183de | 5,864 | cpp | C++ | source/Skeleton/renderApp.cpp | Zainrax/COSC342-OpenGL | 223c45c763a82e543c62e3bc3b22e1220e20fe7d | [
"MIT"
] | null | null | null | source/Skeleton/renderApp.cpp | Zainrax/COSC342-OpenGL | 223c45c763a82e543c62e3bc3b22e1220e20fe7d | [
"MIT"
] | null | null | null | source/Skeleton/renderApp.cpp | Zainrax/COSC342-OpenGL | 223c45c763a82e543c62e3bc3b22e1220e20fe7d | [
"MIT"
] | null | null | null | /*
* renderApp.cpp
*
* by Stefanie Zollmann
*
* Basic model loading with assimp library
*
*/
// Include standard headers
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
// Include GLEW
#include <GL/glew.h>
// Include GLFW
#include <glfw3.h>
GLFWwindow* window;
// Include GLM
#in... | 28.192308 | 144 | 0.638643 | Zainrax |
b8de4df547084ec691c98e51341d81b6b6760ac7 | 681 | hpp | C++ | src/lib/visualization/viz_record_layout.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 583 | 2015-01-10T00:55:32.000Z | 2022-03-25T12:24:30.000Z | src/lib/visualization/viz_record_layout.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 1,573 | 2015-01-07T15:47:22.000Z | 2022-03-31T11:48:03.000Z | src/lib/visualization/viz_record_layout.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 145 | 2015-03-09T16:26:07.000Z | 2022-02-15T12:53:23.000Z | #pragma once
#include <vector>
#include <boost/variant.hpp>
namespace opossum {
/**
* Utility for creating graphviz records (http://www.graphviz.org/doc/info/shapes.html#record), which are basic layouted
* nodes
*/
struct VizRecordLayout {
VizRecordLayout& add_label(const std::string& label);
VizRecordLayout... | 25.222222 | 120 | 0.735683 | mrcl-tst |
b8e58328f3f1d9114a051cf7971fa0a3a28ddd1a | 992 | cpp | C++ | src/utils/allocator/AbstractMemoryResource.cpp | alexbatashev/athena | eafbb1e16ed0b273a63a20128ebd4882829aa2db | [
"MIT"
] | 2 | 2020-07-16T06:42:27.000Z | 2020-07-16T06:42:28.000Z | src/utils/allocator/AbstractMemoryResource.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | src/utils/allocator/AbstractMemoryResource.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
// Copyright (c) 2020 PolarAI. All rights reserved.
//
// Licensed under MIT license.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
//... | 39.68 | 80 | 0.613911 | alexbatashev |
b8e6ec3a91aceae0cbf7f5b49e87589ddaace00d | 1,083 | cpp | C++ | haxelib/native-bindings/src/Theme_ThemeImage.cpp | Kakise/hx-gameplay | e7fe3d4e79e0e12d439b3f3c930d85d78f2eba8d | [
"MIT"
] | 3 | 2021-07-07T08:50:41.000Z | 2021-07-15T00:53:53.000Z | haxelib/native-bindings/src/Theme_ThemeImage.cpp | Kakise/hx-gameplay | e7fe3d4e79e0e12d439b3f3c930d85d78f2eba8d | [
"MIT"
] | 1 | 2015-09-04T15:44:37.000Z | 2015-09-04T19:07:01.000Z | haxelib/native-bindings/src/Theme_ThemeImage.cpp | Kakise/hx-gameplay | e7fe3d4e79e0e12d439b3f3c930d85d78f2eba8d | [
"MIT"
] | 1 | 2017-11-01T21:03:22.000Z | 2017-11-01T21:03:22.000Z | #include "HaxeAPI.h"
// DECL: const Vector4& getColor() const;
value hx_Theme_ThemeImage_getColor(value thisObj)
{
Theme::ThemeImage *_thisObj;
ValueToObject(thisObj, _thisObj);
return ObjectToValue(&_thisObj->getColor(), false);
}
DEFINE_PRIM(hx_Theme_ThemeImage_getColor, 1);
// DECL: const char* getId()... | 26.414634 | 56 | 0.749769 | Kakise |
b8e8b39f50732a38d7599bffdad9cf846ab48e0b | 651 | hpp | C++ | shared_model/interfaces/transaction_responses/not_received_tx_response.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1,467 | 2016-10-25T12:27:19.000Z | 2022-03-28T04:32:05.000Z | shared_model/interfaces/transaction_responses/not_received_tx_response.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 2,366 | 2016-10-25T10:07:57.000Z | 2022-03-31T22:03:24.000Z | shared_model/interfaces/transaction_responses/not_received_tx_response.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 662 | 2016-10-26T04:41:22.000Z | 2022-03-31T04:15:02.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_UNKNOWN_TX_RESPONSE_HPP
#define IROHA_UNKNOWN_TX_RESPONSE_HPP
#include "interfaces/transaction_responses/abstract_tx_response.hpp"
namespace shared_model {
namespace interface {
/**
* Transac... | 24.111111 | 68 | 0.717358 | akshatkarani |
b8ee1a4c305bc372960196a8f9c0e15c6dc94da1 | 2,658 | cc | C++ | cpp/BinaryTreeLevelOrderTraversal.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | cpp/BinaryTreeLevelOrderTraversal.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | cpp/BinaryTreeLevelOrderTraversal.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | // https://oj.leetcode.com/problems/binary-tree-level-order-traversal/
namespace BinaryTreeLevelOrderTraversal {
// BFS based solution. Space O(n), Time O(n)
class Solution {
public:
vector<vector<int> > levelOrder(TreeNode *root) {
vector<vector<int> > res;
if (root == NULL)... | 31.270588 | 107 | 0.403687 | speedfirst |
b8f023de51f60c78304ef1930eb8492b297fc5d8 | 2,090 | cpp | C++ | Country.cpp | Khaled-Farhat/Console-Implementation-of-AskFm | ccad7fdabc59899052779e05ee643b73fd98ada1 | [
"MIT"
] | 4 | 2020-11-03T21:54:52.000Z | 2021-09-06T17:20:29.000Z | Country.cpp | Khaled-Farhat/Console-Implementation-of-AskFm | ccad7fdabc59899052779e05ee643b73fd98ada1 | [
"MIT"
] | null | null | null | Country.cpp | Khaled-Farhat/Console-Implementation-of-AskFm | ccad7fdabc59899052779e05ee643b73fd98ada1 | [
"MIT"
] | null | null | null | // Member-function definition for class Country.
#include "Country.h"
#include "Account.h"
#include <string>
#include <memory>
#include <vector>
#include <algorithm>
#include <tuple>
using namespace std;
// constrcutor takes country name
Country::Country(const std::string& countryName)
: name(countryNam... | 26.455696 | 84 | 0.648325 | Khaled-Farhat |
b8f95b12a314ac3f362788a0fe3daf42642580c0 | 5,840 | cp | C++ | BeProgramming_x86/11.1_MemoMailer/MailSender.cp | Shin-yaKoga/AncientBeOS | 0feff0ddc300dc0977583485d36bdc56925a1738 | [
"BSD-3-Clause"
] | 3 | 2017-12-05T07:18:32.000Z | 2020-02-12T20:35:32.000Z | BeProgramming_x86/11.1_MemoMailer/MailSender.cp | Shin-yaKoga/AncientBeOS | 0feff0ddc300dc0977583485d36bdc56925a1738 | [
"BSD-3-Clause"
] | null | null | null | BeProgramming_x86/11.1_MemoMailer/MailSender.cp | Shin-yaKoga/AncientBeOS | 0feff0ddc300dc0977583485d36bdc56925a1738 | [
"BSD-3-Clause"
] | null | null | null | /************************************************************************
* $Id$
* Copyright (c) 1998 Fort Gunnison, Inc.
*
* MailSender.cp: MailSenderクラスの実装
*
* Author: Shin'ya Koga (koga@ftgun.co.jp)
* Created: May. 10, 1998
* Last update: May. 16, 1998
*****************************************************... | 21.710037 | 74 | 0.535616 | Shin-yaKoga |
770ae4e031cf21e645839711c292b0d83715b483 | 797 | cpp | C++ | core/interface/constant.cpp | Rod-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | 1 | 2016-01-01T02:23:55.000Z | 2016-01-01T02:23:55.000Z | core/interface/constant.cpp | Rod-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | null | null | null | core/interface/constant.cpp | Rod-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | null | null | null | #include "engine.h"
namespace ink {
Ink_Object *Ink_InterpreteEngine::findConstant(wstring name)
{
Ink_ConstantTable::iterator const_iter;
if ((const_iter = const_table.find(name))
!= const_table.end() && const_iter->second) {
return const_iter->second->toObject(this);
}
return NULL;
}
Ink_Constant *Ink_In... | 18.534884 | 78 | 0.721455 | Rod-Lin |
7710eb613eb4f7b41732d39ee5f897a41bbb2f6a | 2,285 | cpp | C++ | tests/misc/test_sva_assert.cpp | hachetman/systemc-compiler | 0cc81ace03336d752c0146340ff5763a20e3cefd | [
"Apache-2.0"
] | 86 | 2020-10-23T15:59:47.000Z | 2022-03-28T18:51:19.000Z | tests/misc/test_sva_assert.cpp | hachetman/systemc-compiler | 0cc81ace03336d752c0146340ff5763a20e3cefd | [
"Apache-2.0"
] | 18 | 2020-12-14T13:11:26.000Z | 2022-03-14T05:34:20.000Z | tests/misc/test_sva_assert.cpp | hachetman/systemc-compiler | 0cc81ace03336d752c0146340ff5763a20e3cefd | [
"Apache-2.0"
] | 17 | 2020-10-29T16:19:43.000Z | 2022-03-11T09:51:05.000Z | /******************************************************************************
* Copyright (c) 2020, Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception.
*
*****************************************************************************/
#include "sct_assert.h"
#include ... | 19.364407 | 79 | 0.480088 | hachetman |
7717b1d0130119524b73b64764784c12874c0748 | 354 | cpp | C++ | p/1k/1085/main.cpp | josedelinux/luogu | f9ce86b8623224512aa3f9e1eecc45d3c89c74e4 | [
"MIT"
] | null | null | null | p/1k/1085/main.cpp | josedelinux/luogu | f9ce86b8623224512aa3f9e1eecc45d3c89c74e4 | [
"MIT"
] | null | null | null | p/1k/1085/main.cpp | josedelinux/luogu | f9ce86b8623224512aa3f9e1eecc45d3c89c74e4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, ans, max = 0;
for (int i = 0; i < 7; i++) {
scanf("%d %d", &a, &b);
int sum = a + b;
if (sum != max && sum > 8) {
if (sum >= max) {
max = sum;
ans = i + 1;
}
}
}
if (max == 0) {
ans = 0;
}
... | 16.090909 | 32 | 0.392655 | josedelinux |
77267ff0f1bdf486850d3ca53c027a488583c114 | 14,581 | hpp | C++ | include/paal/local_search/simulated_annealing.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | include/paal/local_search/simulated_annealing.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | include/paal/local_search/simulated_annealing.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | 1 | 2021-02-24T06:23:56.000Z | 2021-02-24T06:23:56.000Z | //=======================================================================
// Copyright (c) 2013 Piotr Wygocki
//
// 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)
//=================================================... | 30.957537 | 84 | 0.60133 | Kommeren |
773585da70e5790341591bf378b581ec8f3f6076 | 4,982 | cpp | C++ | Nuzzle/AssetManager.cpp | kmangar/NuzzlePuzzle | ab6d325586d44d5905e47e8951e3dd5e036a03a7 | [
"MIT"
] | null | null | null | Nuzzle/AssetManager.cpp | kmangar/NuzzlePuzzle | ab6d325586d44d5905e47e8951e3dd5e036a03a7 | [
"MIT"
] | null | null | null | Nuzzle/AssetManager.cpp | kmangar/NuzzlePuzzle | ab6d325586d44d5905e47e8951e3dd5e036a03a7 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------//
// AssetManager.cpp //
// Singleton //
// Used to load all assets used in the game, //
// Caches all loaded ass... | 27.224044 | 113 | 0.608591 | kmangar |
7735e8c080fe6b713e25d906274a28d22b6036bb | 1,603 | cpp | C++ | Source/UnrealBattleArena/Private/Misc/ArenaFunctionLibrary.cpp | jidevil/UnrealBattleArena | 03fd5bab3c0e987b3e0c599aaf091c0a34263448 | [
"MIT"
] | null | null | null | Source/UnrealBattleArena/Private/Misc/ArenaFunctionLibrary.cpp | jidevil/UnrealBattleArena | 03fd5bab3c0e987b3e0c599aaf091c0a34263448 | [
"MIT"
] | null | null | null | Source/UnrealBattleArena/Private/Misc/ArenaFunctionLibrary.cpp | jidevil/UnrealBattleArena | 03fd5bab3c0e987b3e0c599aaf091c0a34263448 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Misc/ArenaFunctionLibrary.h"
#include "GameModes/ArenaGameModeBase.h"
#include "Online/ArenaSessionSubsystem.h"
#include "Player/ArenaPlayerController.h"
#include "Kismet/GameplayStatics.h"
#include "Online/ArenaGameState.h"
AAr... | 28.625 | 111 | 0.816594 | jidevil |
773a124280c611abb459c697c5a7a330bc62ec69 | 1,239 | cpp | C++ | deprecated/opencl/cl/secp256k1_cpp.cpp | blockchaingate/Kanban | b48c5db37107a09749ef3c4014fca939ac98f073 | [
"MIT"
] | 6 | 2018-06-27T01:06:04.000Z | 2019-03-29T14:21:28.000Z | deprecated/opencl/cl/secp256k1_cpp.cpp | blockchaingate/Kanban | b48c5db37107a09749ef3c4014fca939ac98f073 | [
"MIT"
] | 10 | 2018-12-03T16:18:40.000Z | 2021-05-07T11:49:18.000Z | deprecated/opencl/cl/secp256k1_cpp.cpp | FAB-Coin/Kanban-js | 75b0bd96b98d13b2ee7b7467dcf4b79f2e21c29c | [
"MIT"
] | 7 | 2019-01-22T18:09:33.000Z | 2022-02-10T06:33:39.000Z | // This file is inteded as a pre-processor tool
// for converting the program secp256k1_implementation.h
// into a C/CPP program.
// The file extension of the present file is cpp to avoid IDE configuration issues (qtCreator does handle well .c and .cl extensions).
#include <string.h>
#include <stdint.h>
#include <stdl... | 32.605263 | 134 | 0.769976 | blockchaingate |
773a22d942667d5d6c57d827d0b9e89e8dece700 | 2,458 | cpp | C++ | codeforces/344div2/D/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | codeforces/344div2/D/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | codeforces/344div2/D/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
template<typename P, typename Q>
ostream& operator << (ostream& os, pair<P, Q> p)
{
os << "(" << p.first <<... | 23.188679 | 111 | 0.426363 | Johniel |
773bac9449c61b73543921dca6fb898d189d283d | 16,054 | cc | C++ | src/ioutils/IO_HDF5.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/ioutils/IO_HDF5.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/ioutils/IO_HDF5.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*----------------------------------//
/**
* @file IO_HDF5.cc
* @brief IO_HDF5 member definitions
* @author Jeremy Roberts
* @date Jul 29, 2012
* @todo There is a lot of error checking that could be done more smoothly
* @todo There is a lot of refactoring to... | 31.41683 | 79 | 0.517566 | baklanovp |
773f4606fc76ca22a16cde78832bd2b1c26e5486 | 388 | hh | C++ | src/patchgen/PatchVertexTraits.hh | honoriocassiano/skbar | e2a8fca752f5a2f9d9a32f19cbe1f9032a0e1ac4 | [
"MIT"
] | null | null | null | src/patchgen/PatchVertexTraits.hh | honoriocassiano/skbar | e2a8fca752f5a2f9d9a32f19cbe1f9032a0e1ac4 | [
"MIT"
] | 5 | 2020-09-01T12:16:28.000Z | 2020-09-01T12:21:41.000Z | src/patchgen/PatchVertexTraits.hh | honoriocassiano/skbar | e2a8fca752f5a2f9d9a32f19cbe1f9032a0e1ac4 | [
"MIT"
] | null | null | null | #pragma once
#include "PatchVertexTag.hh"
namespace patchgen {
struct PatchVertexTraits {
struct Data {
int corner_index;
PatchVertexTag tag; // later used when finding vertices in the core pattern
Data()
: corner_index(-1)
, ta... | 24.25 | 98 | 0.528351 | honoriocassiano |
773f8a17658815cf4479540b60c9e922e69f19d3 | 2,787 | cpp | C++ | projects/world/nature/Lightning.cpp | stefannesic/world | 44c01623ab1777c3224f83f53b74d50b58372fb1 | [
"MIT"
] | 16 | 2021-03-14T16:30:32.000Z | 2022-03-18T13:41:53.000Z | projects/world/nature/Lightning.cpp | stefannesic/world | 44c01623ab1777c3224f83f53b74d50b58372fb1 | [
"MIT"
] | 1 | 2020-04-21T12:59:37.000Z | 2020-04-23T17:49:03.000Z | projects/world/nature/Lightning.cpp | stefannesic/world | 44c01623ab1777c3224f83f53b74d50b58372fb1 | [
"MIT"
] | 4 | 2020-03-08T14:04:50.000Z | 2020-12-03T08:51:04.000Z | #include "Lightning.h"
#include <list>
#include "world/assets/ImageUtils.h"
namespace world {
Lightning::Lightning() : _rng(time(NULL)){};
void Lightning::generateLightning(Image &img, const vec2d &from) {
std::normal_distribution<double> angleVar(0, _angleVar);
std::uniform_real_distribution<double> subdi... | 30.626374 | 79 | 0.552924 | stefannesic |
77441e21a06af0d452a465a8a968e3cc492c6cb1 | 1,691 | cpp | C++ | src/introspection/token.cpp | Caravetta/Engine | 6e2490a68727dc731b466335499f3204490acc5f | [
"MIT"
] | 2 | 2018-05-21T02:12:50.000Z | 2019-04-23T20:56:00.000Z | src/introspection/token.cpp | Caravetta/Engine | 6e2490a68727dc731b466335499f3204490acc5f | [
"MIT"
] | 12 | 2018-05-30T13:15:25.000Z | 2020-02-02T21:29:42.000Z | src/introspection/token.cpp | Caravetta/Engine | 6e2490a68727dc731b466335499f3204490acc5f | [
"MIT"
] | 2 | 2018-06-14T19:03:29.000Z | 2018-12-30T07:37:22.000Z | #include "token.h"
static std::string token_type_name[] =
{
"TOKEN_TYPE_UNKNOWN",
"TOKEN_TYPE_IDENTIFIER",
"TOKEN_TYPE_OPEN_PAREN",
"TOKEN_TYPE_CLOSE_PAREN",
"TOKEN_TYPE_LESS_THAN",
"TOKEN_TYPE_GREATER_THAN",
"TOKEN_TYPE_STRING",
"TOKEN_TYPE_COLON",
"TOKEN_TYPE_SEMI_COLON",... | 19.436782 | 78 | 0.618569 | Caravetta |
77452e806c394847d4cf00cceb58a88429f05f16 | 552 | hpp | C++ | MacHyperVSupport/IntegrationComponents/HyperVShutdown.hpp | acidanthera/MacHyperVSupport | 8fab424580325a8cba97207136ff416f24f6607c | [
"BSD-3-Clause"
] | 131 | 2021-06-03T19:50:49.000Z | 2022-03-18T02:52:05.000Z | MacHyperVSupport/IntegrationComponents/HyperVShutdown.hpp | flagersgit/MacHyperVSupport | 8fab424580325a8cba97207136ff416f24f6607c | [
"BSD-3-Clause"
] | null | null | null | MacHyperVSupport/IntegrationComponents/HyperVShutdown.hpp | flagersgit/MacHyperVSupport | 8fab424580325a8cba97207136ff416f24f6607c | [
"BSD-3-Clause"
] | 17 | 2021-06-15T04:54:32.000Z | 2022-03-13T07:28:58.000Z | //
// HyperVShutdown.hpp
// Hyper-V guest shutdown driver
//
// Copyright © 2021 Goldfish64. All rights reserved.
//
#ifndef HyperVShutdown_hpp
#define HyperVShutdown_hpp
#include "HyperVICService.hpp"
class HyperVShutdown : public HyperVICService {
OSDeclareDefaultStructors(HyperVShutdown);
private:
bool ha... | 18.4 | 64 | 0.768116 | acidanthera |
7747091028e5d43ce561f4e745c3f0c228a21b75 | 502 | cpp | C++ | srcs/webserv.cpp | NeuggWebserv/webserv | 0b90c362239761f561a0db8b03da4c4586a44197 | [
"MIT"
] | null | null | null | srcs/webserv.cpp | NeuggWebserv/webserv | 0b90c362239761f561a0db8b03da4c4586a44197 | [
"MIT"
] | 6 | 2021-04-17T10:28:23.000Z | 2021-05-02T09:51:32.000Z | srcs/webserv.cpp | NeuggWebserv/webserv | 0b90c362239761f561a0db8b03da4c4586a44197 | [
"MIT"
] | null | null | null | #include "webserv.hpp"
#include "Server.hpp"
int main(int argc, char **argv)
{
if (argc == 2)
{
Server server;
try
{
server.set_config(argv[1]);
server.set_socket();
server.run();
}
catch (std::exception &e)
{
... | 18.592593 | 71 | 0.440239 | NeuggWebserv |
7756bfde44f8a4265446789691f32d41d55ea7a7 | 3,826 | cpp | C++ | mn/src/mn/Context.cpp | Grobiel/mn | 69510ed92fd2d606168edd52fdf00271a80afa48 | [
"BSD-3-Clause"
] | null | null | null | mn/src/mn/Context.cpp | Grobiel/mn | 69510ed92fd2d606168edd52fdf00271a80afa48 | [
"BSD-3-Clause"
] | null | null | null | mn/src/mn/Context.cpp | Grobiel/mn | 69510ed92fd2d606168edd52fdf00271a80afa48 | [
"BSD-3-Clause"
] | null | null | null | #include "mn/Context.h"
#include "mn/Memory.h"
#include "mn/memory/Leak.h"
#include "mn/memory/Fast_Leak.h"
#include "mn/Stream.h"
#include "mn/Reader.h"
#include "mn/Memory_Stream.h"
#include "mn/Fmt.h"
#include <assert.h>
#include <stdio.h>
namespace mn
{
static Memory_Profile_Interface MEMORY_PROFILE;
static Log... | 18.754902 | 119 | 0.691061 | Grobiel |
7756cffc89fc38e6c6f98dae799f3906fe7b278d | 91 | cpp | C++ | XUXUCAM/CamCores/CamEng/cam_pen.cpp | hananiahhsu/OpenCAD | d4ae08195411057cce182fe5a4c0a3d226279697 | [
"Apache-2.0"
] | 13 | 2018-11-06T12:37:42.000Z | 2021-07-22T11:49:35.000Z | XUXUCAM/CamCores/CamEng/cam_pen.cpp | hananiahhsu/OpenCAD | d4ae08195411057cce182fe5a4c0a3d226279697 | [
"Apache-2.0"
] | 1 | 2020-05-15T07:21:06.000Z | 2020-05-28T05:10:35.000Z | XUXUCAM/CamCores/CamEng/cam_pen.cpp | hananiahhsu/OpenCAD | d4ae08195411057cce182fe5a4c0a3d226279697 | [
"Apache-2.0"
] | 11 | 2018-11-06T12:37:52.000Z | 2021-09-25T08:02:27.000Z | #include "CamCores/CamEng/cam_pen.h"
| 3.25 | 38 | 0.318681 | hananiahhsu |
775c789b8cb2546cc752578e7ce5ce7102e6e969 | 64 | hpp | C++ | src/boost_compute_interop_opengl_opengl_renderbuffer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_compute_interop_opengl_opengl_renderbuffer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_compute_interop_opengl_opengl_renderbuffer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/compute/interop/opengl/opengl_renderbuffer.hpp>
| 32 | 63 | 0.84375 | miathedev |
775d428617c1a7ec014880046d1190d8db52254b | 2,926 | hpp | C++ | src/engine/graphics/renderer.hpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 13 | 2020-01-10T16:36:46.000Z | 2021-08-09T09:24:47.000Z | src/engine/graphics/renderer.hpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 1 | 2020-01-16T11:03:49.000Z | 2020-01-16T11:11:15.000Z | src/engine/graphics/renderer.hpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 1 | 2020-02-06T21:22:47.000Z | 2020-02-06T21:22:47.000Z | #pragma once
#include "engine/interfacegen_renderer.hpp"
#include "interface/primitive_renderer.hpp"
#include "primitives.hpp"
#include <set>
#include <unordered_set>
#include <functional>
namespace oe::graphics
{
// sort by largest z
static constexpr auto sort_lz = [](const Quad* l, const Quad* r)->bool
{
re... | 28.407767 | 131 | 0.683527 | Overpeek |
7767897c0af84dbf29b1bfad2653646fe197decd | 1,938 | hpp | C++ | include/argot/concepts/higher_order_future.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 49 | 2018-05-09T23:17:45.000Z | 2021-07-21T10:05:19.000Z | include/argot/concepts/higher_order_future.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | null | null | null | include/argot/concepts/higher_order_future.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 2 | 2019-08-04T03:51:36.000Z | 2020-12-28T06:53:29.000Z | /*==============================================================================
Copyright (c) 2017, 2018, 2019 Matt Calabrese
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)
=======================================... | 30.28125 | 80 | 0.74097 | mattcalabrese |
7770af35e5e9753d17de2e7b36063b064340fb8e | 8,911 | cpp | C++ | src/ppgDetector.cpp | ppghou/ppgdetector | f43d00e736e1ca2db191a3501cc72a050f65fcd2 | [
"MIT"
] | 6 | 2018-11-08T16:15:33.000Z | 2021-08-11T16:46:48.000Z | src/ppgDetector.cpp | SuXY15/ppgdetector | 093ffb89a9a95d2d36ac8cc20770b898995addcd | [
"MIT"
] | null | null | null | src/ppgDetector.cpp | SuXY15/ppgdetector | 093ffb89a9a95d2d36ac8cc20770b898995addcd | [
"MIT"
] | 4 | 2019-01-15T16:55:32.000Z | 2020-01-17T07:34:18.000Z | #include "ppgDetector.h"
Detector::Detector() {
detector = get_frontal_face_detector();
deserialize("../dep/shape_predictor_68_face_landmarks.dat") >> predictor;
initialize();
}
void Detector::initialize() {
detectWidth = 500;
roiRatio = 5;
rectSmoothRatio = 0.98;
rectDistThres = 4;
markSmoothRat... | 31.157343 | 96 | 0.64426 | ppghou |
a55d586d1a339d8d23dbeb79f6286e40b0e3c015 | 2,507 | cpp | C++ | Practice/2018/2018.4.4/BZOJ2527.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.4.4/BZOJ2527.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.4.4/BZOJ2527.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
#define lowbit(x) ((x)&(-(x)))
const int maxN=300100;
const int inf=2147483647;
int n,m,K;
int P[maxN],O[maxN];
int L[maxN],R[maxN],A[maxN... | 21.245763 | 85 | 0.551256 | SYCstudio |
a5619626e2523e9b014a9769db0d6067a86b979e | 1,052 | hpp | C++ | tools/lumino-wg/Generator.hpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 113 | 2020-03-05T01:27:59.000Z | 2022-03-28T13:20:51.000Z | tools/lumino-wg/Generator.hpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 35 | 2016-04-18T06:14:08.000Z | 2020-02-09T15:51:58.000Z | tools/lumino-wg/Generator.hpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 12 | 2020-12-21T12:03:59.000Z | 2021-12-15T02:07:49.000Z | #pragma once
#include "OutputBuffer.hpp"
class SymbolDatabase;
class Generator
{
public:
static const ln::String NewLine;
void setup(SymbolDatabase* database, const ln::Path& templateDir, const ln::Path& outputDir, const ln::String& moduleFullName, const ln::String& moduleShortName)
{
m_database = ... | 31.878788 | 163 | 0.739544 | GameDevery |
a563a1fd7112e9201519f8c35c49815289ca8b4b | 1,448 | cpp | C++ | n37.cpp | paolaguarasci/domJudge | 830f5ca3f271732668930a2a8d3be98d96661691 | [
"MIT"
] | null | null | null | n37.cpp | paolaguarasci/domJudge | 830f5ca3f271732668930a2a8d3be98d96661691 | [
"MIT"
] | null | null | null | n37.cpp | paolaguarasci/domJudge | 830f5ca3f271732668930a2a8d3be98d96661691 | [
"MIT"
] | null | null | null | /*
Scrivere un programma C++ che, letto da input un array di 100 caratteri stampi la stringa OK (senza endl,
né spaziature) se il numero di vocali minuscole (a,e,i,o,u) distinte in esso contenute è al massimo 1 e stampi
la stringa ERRORE (senza endl, né spaziature) altrimenti.
ESEMPI (per semplicità gli esempi utilizza... | 22.625 | 110 | 0.565608 | paolaguarasci |
a5654e07940d24a515b98967674438ab2433ec8f | 384 | cpp | C++ | Competitions/Codeforces/Codeforces Round #359 (Div. 2)/Free Ice Cream.cpp | cnm06/Competitive-Programming | 94242ae458570d503b8218f37624b88cc5020d23 | [
"MIT"
] | 994 | 2017-02-28T06:13:47.000Z | 2022-03-31T10:49:00.000Z | Competitions/Codeforces/Codeforces Round #359 (Div. 2)/Free Ice Cream.cpp | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 16 | 2018-01-01T02:59:55.000Z | 2021-11-22T12:49:16.000Z | Competitions/Codeforces/Codeforces Round #359 (Div. 2)/Free Ice Cream.cpp | Quadrified/Competitive-Programming | bccb69952cc5260fb3647b3301ddac1023dacac8 | [
"MIT"
] | 325 | 2017-06-15T03:32:43.000Z | 2022-03-28T22:43:42.000Z | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
long long int n, m, t, i, j, temp;
char c;
int main()
{
cin>>n>>m;
temp=0;
for(i=0;i<n;i++){
cin>>c>>t;
if(c=='+'){
m=m+t;
}
else if(m-t>=0){
m=m-t;
}
else {
... | 15.36 | 34 | 0.377604 | cnm06 |
a567a2beba3bec838956be033a3a470851200b66 | 8,547 | hpp | C++ | Source/Driver/API/APIHook.hpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | Source/Driver/API/APIHook.hpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | Source/Driver/API/APIHook.hpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | /*
* ----------------------------------------------------------------------------
* Copyright (c) 2014-2015 BigObject Inc.
* All Rights Reserved.
*
* Use of, copying, modifications to, and distribution of this software
* and its documentation without BigObject's written permission can
* result in the violation o... | 24.773913 | 79 | 0.65953 | yichenghuang |
a56defe0209851e6f7f1e5e007f02eb9317ff980 | 2,605 | cpp | C++ | mainwindow.cpp | robert1207/QtFFmpegExoprtMp4 | 14e32d82fe01a2003b175c997b31b071556b2661 | [
"MIT"
] | null | null | null | mainwindow.cpp | robert1207/QtFFmpegExoprtMp4 | 14e32d82fe01a2003b175c997b31b071556b2661 | [
"MIT"
] | null | null | null | mainwindow.cpp | robert1207/QtFFmpegExoprtMp4 | 14e32d82fe01a2003b175c997b31b071556b2661 | [
"MIT"
] | 2 | 2020-05-19T12:14:21.000Z | 2020-12-07T15:08:24.000Z | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QFileDialog>
#include <QMessageBox>
#include <QDebug>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
export_mngr_p = new ExportVideoManager();
import_mngr_p = new ImportVi... | 27.421053 | 106 | 0.654511 | robert1207 |
a57830b7fd4bf7c1015a3e873b0b0ef8beaf3eff | 1,236 | hpp | C++ | lab2/direct_methods.hpp | cesarus777/comp-math2020 | 24127212b22ed4cda32976e8b99c3ce6d09f8d4b | [
"MIT"
] | 2 | 2020-09-22T13:45:00.000Z | 2021-12-10T07:45:29.000Z | lab2/direct_methods.hpp | cesarus777/comp-math2020 | 24127212b22ed4cda32976e8b99c3ce6d09f8d4b | [
"MIT"
] | null | null | null | lab2/direct_methods.hpp | cesarus777/comp-math2020 | 24127212b22ed4cda32976e8b99c3ce6d09f8d4b | [
"MIT"
] | null | null | null | #pragma once
#include <comp_assert.hpp>
#include <matrix.hpp>
#include <vector.hpp>
#include <iostream>
namespace comp
{
template<typename T, size_t dim>
auto solve_Gauss(const square_matrix<T, dim>& A, const vector<T, dim>& f)
{
COMP_ASSERT(A(0, 0) != static_cast<T>(0));
// std::cout << A << std::endl << f <<... | 22.472727 | 73 | 0.510518 | cesarus777 |
a57dd9b7f97e10eef17772d71f52a4041498b4e3 | 1,815 | cpp | C++ | Pong/Scripts/Paddle.cpp | resul4e/Runtime-Recompiled-CPP | ef0c8918782b67a431cf7dc0e9a2f2770f8bed67 | [
"Apache-2.0"
] | 1 | 2020-05-28T07:56:58.000Z | 2020-05-28T07:56:58.000Z | Pong/Scripts/Paddle.cpp | resul4e/Runtime-Recompiled-CPP | ef0c8918782b67a431cf7dc0e9a2f2770f8bed67 | [
"Apache-2.0"
] | null | null | null | Pong/Scripts/Paddle.cpp | resul4e/Runtime-Recompiled-CPP | ef0c8918782b67a431cf7dc0e9a2f2770f8bed67 | [
"Apache-2.0"
] | null | null | null | #include "Paddle.h"
#include "Core/Storage.h"
#include "Core/Level.h"
#include "Rendering/RenderComponent.h"
#include <Physics/PhysicsComponent.h>
#include "Input/InputComponent.h"
#include "Ball.h"
SCRIPT_START(Paddle)
Paddle::Paddle()
{
}
Paddle::~Paddle()
{
}
void Paddle::Start()
{
paddleShape = RenderCompone... | 19.945055 | 123 | 0.730579 | resul4e |
a57fe6d2771f289e5ba5695860f510d246333fec | 203 | hpp | C++ | src/common/point.hpp | AndrewGrim/Agro | f065920ab665938852bc8aa7e38d4d73f7e3ec0d | [
"MIT"
] | null | null | null | src/common/point.hpp | AndrewGrim/Agro | f065920ab665938852bc8aa7e38d4d73f7e3ec0d | [
"MIT"
] | null | null | null | src/common/point.hpp | AndrewGrim/Agro | f065920ab665938852bc8aa7e38d4d73f7e3ec0d | [
"MIT"
] | 1 | 2021-04-18T12:06:55.000Z | 2021-04-18T12:06:55.000Z | #ifndef POINT_HPP
#define POINT_HPP
struct Point {
int x;
int y;
Point(int x = 0, int y = 0) {
this->x = x;
this->y = y;
}
};
#endif
| 14.5 | 37 | 0.399015 | AndrewGrim |
a586ff6b50608da1d3c1f16dc1621765089b209e | 433 | cpp | C++ | Minigin/Font.cpp | Lowskii/Minigin | 6b58733651004d00938a62096c2104063926dbb2 | [
"Apache-2.0"
] | 1 | 2021-11-23T14:05:55.000Z | 2021-11-23T14:05:55.000Z | Minigin/Font.cpp | Lowskii/Minigin | 6b58733651004d00938a62096c2104063926dbb2 | [
"Apache-2.0"
] | null | null | null | Minigin/Font.cpp | Lowskii/Minigin | 6b58733651004d00938a62096c2104063926dbb2 | [
"Apache-2.0"
] | null | null | null | #include "MiniginPCH.h"
#include <SDL_ttf.h>
#include "Font.h"
TTF_Font* minigin::Font::GetFont() const {
return m_pFont;
}
minigin::Font::Font(const string& fullPath, unsigned int size) : m_pFont(nullptr), m_Size(size)
{
m_pFont = TTF_OpenFont(fullPath.c_str(), size);
if (m_pFont == nullptr)
{
throw runtime_er... | 19.681818 | 95 | 0.69515 | Lowskii |
a58d1b059d78f258c4e6bac8f3d7dccb8c1c6949 | 3,883 | cpp | C++ | src/iotoro_utils.cpp | victorhook/iotoro | 2fcc03e462945e69bd51f21348a460d919ef9eac | [
"MIT"
] | null | null | null | src/iotoro_utils.cpp | victorhook/iotoro | 2fcc03e462945e69bd51f21348a460d919ef9eac | [
"MIT"
] | null | null | null | src/iotoro_utils.cpp | victorhook/iotoro | 2fcc03e462945e69bd51f21348a460d919ef9eac | [
"MIT"
] | null | null | null | #include "iotoro.h"
#include "md5.h"
/* Returns the byte value 0-255 from an ascii. */
uint8_t getAsciiValue(char c)
{
if (c >= 'A' && c <= 'Z') {
return c - 'A' + 10;
} else if (c >= 'a' && c <= 'z') {
return c - 'a' + 10;
} else {
return c - '0';
}
}
/* Returns the ascii repr... | 25.715232 | 83 | 0.544167 | victorhook |
a59690574b07c7c63b887a6cb65c26103dc6a33b | 2,992 | cpp | C++ | Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/UI/animation.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/UI/animation.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Libraries/MDStudio-SDK/Source/MDStudio/PortableCore/UI/animation.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | //
// animation.cpp
// MDStudio
//
// Created by Daniel Cliche on 2014-11-15.
// Copyright (c) 2014-2021 Daniel Cliche. All rights reserved.
//
#include "animation.h"
#include <platform.h>
#include <cassert>
#include <cmath>
#include <iostream>
using namespace MDStudio;
constexpr auto kAnimationUpdatePeriod = ... | 36.048193 | 120 | 0.43115 | dcliche |
a599dbb291f5bbfdaea515e9414f394634de5e01 | 380 | cpp | C++ | tests/helper_guid.cpp | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | 7 | 2019-08-07T21:27:27.000Z | 2020-11-27T16:33:16.000Z | tests/helper_guid.cpp | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | tests/helper_guid.cpp | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | #include <equal/engine.hpp>
#include <gtest/gtest.h>
#include <string>
#include <string_view>
#include <utility>
class HELPER_GUID : public testing::Test {
public:
HELPER_GUID(){};
~HELPER_GUID(){};
};
TEST_F(HELPER_GUID, test) {
EXPECT_NO_THROW(eq::GenerateUUID());
std::string guid = eq::GenerateUUID();
EX... | 20 | 42 | 0.694737 | equal-games |
a59c6e1eda05bab22c6d990fae88c19a3698c7b7 | 4,572 | cpp | C++ | src/rope_string.cpp | Algorithms-and-Data-Structures-2021/semester-work-rope | a26d75b756f762d1a55c6c17887667ee57d1883b | [
"MIT"
] | null | null | null | src/rope_string.cpp | Algorithms-and-Data-Structures-2021/semester-work-rope | a26d75b756f762d1a55c6c17887667ee57d1883b | [
"MIT"
] | 1 | 2021-04-26T12:11:21.000Z | 2021-04-26T12:11:21.000Z | src/rope_string.cpp | Algorithms-and-Data-Structures-2021/semester-work-rope | a26d75b756f762d1a55c6c17887667ee57d1883b | [
"MIT"
] | null | null | null | #include "rope_string.hpp"
namespace itis {
Node::Node(char key, long long size, Node* left, Node* right, Node* parent)
: key(key), size(size), left(left), right(right), parent(parent) {}
Rope::Rope(const std::string& s) : s(s) {
root = nullptr;
for (int i = 0; i < s.length(); i++) {
Node* nex... | 22.86 | 104 | 0.516404 | Algorithms-and-Data-Structures-2021 |
a59ca989337082fec69f4673689857f866b9822d | 1,696 | cpp | C++ | core/Rules.cpp | fmuecke/ipponboard_test | 2ba8f324af91bfcdd26e37940157a1796f3b1f64 | [
"BSD-2-Clause"
] | 3 | 2020-12-29T19:33:56.000Z | 2021-11-09T20:29:30.000Z | core/Rules.cpp | fmuecke/ipponboard_test | 2ba8f324af91bfcdd26e37940157a1796f3b1f64 | [
"BSD-2-Clause"
] | 3 | 2020-12-30T10:34:26.000Z | 2021-01-05T08:55:12.000Z | core/Rules.cpp | fmuecke/ipponboard_test | 2ba8f324af91bfcdd26e37940157a1796f3b1f64 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2018 Florian Muecke. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.txt file.
#include "Rules.h"
#include "Fight.h"
using namespace Ipponboard;
const char* const Rules2018::StaticName = "IJF-2018";
const char* const Rules2017::Stati... | 20.682927 | 86 | 0.674528 | fmuecke |
a5a02dd10cc212c11ccfc5494a2da3c49d09fab8 | 13,739 | cpp | C++ | dali-toolkit/internal/styling/style-manager-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali-toolkit/internal/styling/style-manager-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-10-19T15:47:43.000Z | 2020-10-19T15:47:43.000Z | dali-toolkit/internal/styling/style-manager-impl.cpp | zyndor/dali-toolkit | 9e3fd659c4d25706ab65345bc7c562ac27248325 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018 Samsung Electronics Co., Ltd.
*
* 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... | 26.119772 | 175 | 0.711624 | zyndor |
a5a0f8f318169c673206d4cbd4ee393f0c77754a | 7,140 | cpp | C++ | anphon/phonon_velocity.cpp | dlnguyen/alamode | f99d333262489f28a3ef4838dfbe3147dc239261 | [
"MIT"
] | null | null | null | anphon/phonon_velocity.cpp | dlnguyen/alamode | f99d333262489f28a3ef4838dfbe3147dc239261 | [
"MIT"
] | null | null | null | anphon/phonon_velocity.cpp | dlnguyen/alamode | f99d333262489f28a3ef4838dfbe3147dc239261 | [
"MIT"
] | null | null | null | /*
phonon_velocity.cpp
Copyright (c) 2014 Terumasa Tadano
This file is distributed under the terms of the MIT license.
Please see the file 'LICENCE.txt' in the root directory
or http://opensource.org/licenses/mit-license.php for information.
*/
#include "mpi_common.h"
#include <complex>
#include <iomanip>
#include ... | 26.444444 | 88 | 0.54888 | dlnguyen |
a5ac52522ff8417f4bbe7775181ac4508f85a406 | 5,664 | cpp | C++ | editor/widgets/windows/ExportWindow.cpp | SkyprayerAudioStudio/axiom | ae019ab6f1679f3041dfa94727ef0d2b56360ed9 | [
"MIT"
] | 642 | 2017-12-10T14:22:04.000Z | 2022-03-03T15:23:23.000Z | editor/widgets/windows/ExportWindow.cpp | github-jinwei/axiom | 7af27aedf2ee10ca7b653ddc1a0035e68bdd4b84 | [
"MIT"
] | 151 | 2017-12-21T02:08:45.000Z | 2020-07-03T14:18:51.000Z | editor/widgets/windows/ExportWindow.cpp | github-jinwei/axiom | 7af27aedf2ee10ca7b653ddc1a0035e68bdd4b84 | [
"MIT"
] | 30 | 2018-09-11T14:06:31.000Z | 2021-11-09T04:19:00.000Z | #include "ExportWindow.h"
#include <QtGui/QIcon>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QFileDialog>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets... | 39.608392 | 118 | 0.748411 | SkyprayerAudioStudio |
a5aeebab98c7594493625606f62f2ddd2fa92a18 | 878 | cpp | C++ | codeforce/E53/E53C.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | 5 | 2019-03-17T01:33:19.000Z | 2021-06-25T09:50:45.000Z | codeforce/E53/E53C.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | codeforce/E53/E53C.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
string s;
int x, y, n;
void move(char d, int& x0, int& y0, int step) {
if (d == 'U') y0+=step;
if (d == 'D') y0-=step;
if (d == 'L') x0-=step;
if (d == 'R') x0+=step;
}
bool can(int x, int y, int n) {
x = abs(x);
y = abs(y);
return ((x + y... | 17.215686 | 47 | 0.448747 | heiseish |
a5b2b4a0e029e9cb7da75831664c63ab8753d89d | 11,447 | cc | C++ | libtransport/src/implementation/rtc_socket_producer.cc | manang/hicn | 006c9aec768d5ff80fed0bf36cc51990f7fa1d8e | [
"Apache-2.0"
] | 2 | 2019-10-08T11:59:58.000Z | 2020-12-29T06:10:08.000Z | libtransport/src/implementation/rtc_socket_producer.cc | icn-team/hicn | 72a9acca4500a9c07a4661fe112a1a212567fc9f | [
"Apache-2.0"
] | null | null | null | libtransport/src/implementation/rtc_socket_producer.cc | icn-team/hicn | 72a9acca4500a9c07a4661fe112a1a212567fc9f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 Cisco and/or its affiliates.
* 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 appl... | 32.427762 | 80 | 0.663493 | manang |
a5b6fb1c2692c9cf6fe96a6611a54dabbbd265a2 | 4,189 | cpp | C++ | qtanimation/qtmouseeventtransition.cpp | donaloconnor/automon | b26003817a21e3a8dcd22370352e4062853a40a6 | [
"BSD-2-Clause"
] | 22 | 2015-11-02T05:53:28.000Z | 2021-08-20T05:10:29.000Z | qtanimation/qtmouseeventtransition.cpp | BlitzGLEP1326/automon | b26003817a21e3a8dcd22370352e4062853a40a6 | [
"BSD-2-Clause"
] | 1 | 2015-11-03T13:47:57.000Z | 2015-11-04T14:46:32.000Z | qtanimation/qtmouseeventtransition.cpp | BlitzGLEP1326/automon | b26003817a21e3a8dcd22370352e4062853a40a6 | [
"BSD-2-Clause"
] | 12 | 2015-01-28T06:28:03.000Z | 2022-03-03T09:09:25.000Z | /****************************************************************************
**
** This file is part of a Qt Solutions component.
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
** Commercial Usage
** Licensees holding valid Qt... | 31.496241 | 113 | 0.734304 | donaloconnor |
a5bf649fb96cc9ad290ee8df4d586df62e4076d9 | 5,171 | cpp | C++ | Ex1/SceneDirector.cpp | MaximV88/Battleship | dbd389814943ae1fb7276623987c773405c971be | [
"MIT"
] | null | null | null | Ex1/SceneDirector.cpp | MaximV88/Battleship | dbd389814943ae1fb7276623987c773405c971be | [
"MIT"
] | null | null | null | Ex1/SceneDirector.cpp | MaximV88/Battleship | dbd389814943ae1fb7276623987c773405c971be | [
"MIT"
] | null | null | null | /************************************************************
* Student Name: Maxim Vainshtein *
* Exercise Name: Ex1 *
* File description: Implementation of SceneDirector Class *
***********************************************************/
#include ... | 49.247619 | 97 | 0.339006 | MaximV88 |
a5cc5b4a78cb60a0f6ca3563639dad81abec4201 | 3,493 | cpp | C++ | source/Evaluator.cpp | xzrunner/rendergraph | 98a00cb9e49b0298bfcc1f4362def217b6f31db9 | [
"MIT"
] | null | null | null | source/Evaluator.cpp | xzrunner/rendergraph | 98a00cb9e49b0298bfcc1f4362def217b6f31db9 | [
"MIT"
] | null | null | null | source/Evaluator.cpp | xzrunner/rendergraph | 98a00cb9e49b0298bfcc1f4362def217b6f31db9 | [
"MIT"
] | null | null | null | #include "rendergraph/Evaluator.h"
#include "rendergraph/RenderContext.h"
#include "rendergraph/node/Input.h"
#include "rendergraph/node/Output.h"
#include "rendergraph/node/SubGraph.h"
namespace rendergraph
{
ShaderVariant Evaluator::Calc(const RenderContext& rc, const Node::Port& in_port,
... | 27.077519 | 81 | 0.55282 | xzrunner |
a5db0ea55dfca308148ae9b6754e95dbb1d9f1ae | 5,163 | hpp | C++ | hydra/glfw/glfw_extension.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | 2 | 2016-09-15T22:29:46.000Z | 2017-11-30T11:16:12.000Z | hydra/glfw/glfw_extension.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | null | null | null | hydra/glfw/glfw_extension.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | null | null | null | //
// file : glfw_extension.hpp
// in : file:///home/tim/projects/hydra/hydra/glfw/glfw_extension.hpp
//
// created by : Timothée Feuillet
// date: Wed Apr 27 2016 17:54:04 GMT+0200 (CEST)
//
//
// Copyright (c) 2016 Timothée Feuillet
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
//... | 40.335938 | 111 | 0.66473 | tim42 |
7775d80d198c1742ff55941288d0ab8b63344ec8 | 861 | hpp | C++ | libfma/include/fma/ast/Identifier.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | libfma/include/fma/ast/Identifier.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | libfma/include/fma/ast/Identifier.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #ifndef __FMA_IDENTIFIER_H__
#define __FMA_IDENTIFIER_H__
#include "Node.hpp"
namespace FMA {
namespace ast {
class Expression;
/**
* Expression
*/
class Identifier : public Node {
public:
Identifier(const std::string &name);
virtual std::string getNodeName() const { return "Identifier"; }
virtual std::str... | 21.525 | 83 | 0.735192 | BenjaminSchulte |
777f923900b88d45ef3eb21865a9592c75edce29 | 4,829 | hpp | C++ | C++ Development Root/SourceCode/TechnicalServices/Persistence/PersistenceHandler.hpp | Dpham181/CPSC-462-GROUP-2 | 36f55ec4980e2e98d58f1f0a63ecc5070d7faa47 | [
"MIT"
] | 1 | 2021-05-19T06:35:15.000Z | 2021-05-19T06:35:15.000Z | C++ Development Root/SourceCode/TechnicalServices/Persistence/PersistenceHandler.hpp | Dpham181/CPSC-462-GROUP-2 | 36f55ec4980e2e98d58f1f0a63ecc5070d7faa47 | [
"MIT"
] | null | null | null | C++ Development Root/SourceCode/TechnicalServices/Persistence/PersistenceHandler.hpp | Dpham181/CPSC-462-GROUP-2 | 36f55ec4980e2e98d58f1f0a63ecc5070d7faa47 | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <stdexcept> // domain_error, runtime_error
#include <string>
#include <vector>
#include<cstdint>
namespace TechnicalServices::Persistence
{
// User objects
struct UserCredentials
{
int userID;
std::string userName;
std... | 26.827778 | 174 | 0.587699 | Dpham181 |
778333e369e5e50684398e72899f3a873d2d1fa0 | 5,291 | cpp | C++ | misc/obsolete/UpdateLIne887.cpp | righthalfplane/SdrGult | f6a082939d7922c08cef1f53104a84841be80910 | [
"MIT"
] | 55 | 2019-12-13T07:32:26.000Z | 2022-03-18T13:50:05.000Z | misc/obsolete/UpdateLIne887.cpp | righthalfplane/SdrGult | f6a082939d7922c08cef1f53104a84841be80910 | [
"MIT"
] | 27 | 2019-12-30T11:01:03.000Z | 2022-02-10T20:08:08.000Z | misc/obsolete/UpdateLIne887.cpp | righthalfplane/SdrGult | f6a082939d7922c08cef1f53104a84841be80910 | [
"MIT"
] | 13 | 2019-12-10T21:20:38.000Z | 2022-03-18T13:50:08.000Z | int SdrFile::updateLine()
{
double *real,*imag;
double amin,amax,v;
if(rtime() < lineTime)return 0;
lineTime=rtime()+lineDumpInterval;
if(play.FFTcount > FFTlength){
printf(" FFTcount %d error\n",play.FFTcount);
return 1;
}
real=play.real;
imag=play.i... | 23.515556 | 113 | 0.518617 | righthalfplane |
7785fe0bbf24302ed7f7c843d8e6876132948662 | 705 | hpp | C++ | src/gl/d3d11/uniform_array.hpp | bggd/moge | 7bcf9f6b3c762ee771d3b52563c0f8f4bbc53346 | [
"MIT"
] | null | null | null | src/gl/d3d11/uniform_array.hpp | bggd/moge | 7bcf9f6b3c762ee771d3b52563c0f8f4bbc53346 | [
"MIT"
] | null | null | null | src/gl/d3d11/uniform_array.hpp | bggd/moge | 7bcf9f6b3c762ee771d3b52563c0f8f4bbc53346 | [
"MIT"
] | null | null | null | #ifndef MOGE_SRC_GL_D3D11_UNIFORM_ARRAY_HPP_INCLUDED
#define MOGE_SRC_GL_D3D11_UNIFORM_ARRAY_HPP_INCLUDED
#include "context.hpp"
#include "shader.hpp"
#include "../gl.hpp"
namespace moge {
namespace gl {
struct UniformArrayD3D11 {
ID3D11Buffer* buffer_id;
enum MOGE_GL_SHADER_STAGE shader_stage;
uint32_t num_el... | 28.2 | 114 | 0.815603 | bggd |
77929ab9f4e857821826a9d07fdb0b8fe05a03e7 | 4,566 | cpp | C++ | examples/producer.cpp | taewoong0627/difs-cxx | ec6bc0e71357085de8d5f4120702efe47954cc69 | [
"OpenSSL"
] | 1 | 2021-03-05T09:49:19.000Z | 2021-03-05T09:49:19.000Z | examples/producer.cpp | taewoong0627/difs-cxx | ec6bc0e71357085de8d5f4120702efe47954cc69 | [
"OpenSSL"
] | 11 | 2020-12-27T23:02:56.000Z | 2021-10-18T08:00:50.000Z | examples/producer.cpp | taewoong0627/difs-cxx | ec6bc0e71357085de8d5f4120702efe47954cc69 | [
"OpenSSL"
] | 3 | 2021-02-28T10:04:09.000Z | 2021-09-23T05:01:00.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2019 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... | 34.074627 | 587 | 0.654183 | taewoong0627 |
779880881cb4750506ba0af11eb68988bf5e0f57 | 404 | cxx | C++ | tests/AssignOperator.cxx | MG-5/Time | 9416f925c3e403292396fd74f4458cfc7398e7a9 | [
"MIT"
] | null | null | null | tests/AssignOperator.cxx | MG-5/Time | 9416f925c3e403292396fd74f4458cfc7398e7a9 | [
"MIT"
] | null | null | null | tests/AssignOperator.cxx | MG-5/Time | 9416f925c3e403292396fd74f4458cfc7398e7a9 | [
"MIT"
] | null | null | null | #include "../Time.hpp"
#include <gtest/gtest.h>
TEST(Assign, assign1)
{
Time time1("18:45");
Time time2 = time1;
EXPECT_EQ(time2.hour, 18);
EXPECT_EQ(time2.minute, 45);
}
TEST(Assign, assign2)
{
Time time1("17:33");
Time time2;
EXPECT_EQ(time2.hour, 0);
EXPECT_EQ(time2.minute, 0);
... | 16.16 | 32 | 0.616337 | MG-5 |
779a71c056c6b7dee650f7142f9e1e209e064f4f | 13,030 | cpp | C++ | arduino/src/test.cpp | bmolnar/uav | fecddbe94d7a2c66b39060589297146d9035fb2b | [
"MIT"
] | null | null | null | arduino/src/test.cpp | bmolnar/uav | fecddbe94d7a2c66b39060589297146d9035fb2b | [
"MIT"
] | null | null | null | arduino/src/test.cpp | bmolnar/uav | fecddbe94d7a2c66b39060589297146d9035fb2b | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include "Logger.hpp"
#include "I2C.hpp"
#include "MPU6050.hpp"
#include "MPU9150.hpp"
#include "HMC5883L.hpp"
struct UAVData3f
{
float x;
float y;
float z;
};
struct UAVSensorData
{
UAVData3f gyro;
UAVData3f accel;
UAVData3f mag;
};
class Remote
{
public:
virtual bool sendData... | 21.325696 | 145 | 0.611051 | bmolnar |
779cf71a2b0c09e2547d042dd16abe1879639c86 | 4,723 | cc | C++ | src/webresponse.cc | kapouer/node-webkitgtk | b8e12f7cc11936b9bdb9cf76a3e80d595af2e761 | [
"MIT"
] | 79 | 2015-02-05T10:40:32.000Z | 2022-03-03T08:03:41.000Z | src/webresponse.cc | kapouer/node-webkitgtk | b8e12f7cc11936b9bdb9cf76a3e80d595af2e761 | [
"MIT"
] | 63 | 2015-01-04T23:19:57.000Z | 2020-03-07T16:04:15.000Z | src/webresponse.cc | kapouer/node-webkitgtk | b8e12f7cc11936b9bdb9cf76a3e80d595af2e761 | [
"MIT"
] | 14 | 2015-02-24T09:13:05.000Z | 2022-03-03T08:03:40.000Z | #include "webresponse.h"
#include "gvariantproxy.h"
using namespace v8;
Nan::Persistent<FunctionTemplate> WebResponse::constructor;
WebResponse::WebResponse() {}
WebResponse::~WebResponse() {
if (response != NULL) g_object_unref(response);
g_object_unref(resource);
delete dataCallback;
}
void WebResponse::init(... | 33.978417 | 130 | 0.704849 | kapouer |
779f74d65d3897db7a979ff2335bb1176ca92583 | 4,235 | cpp | C++ | cpp/apps/SwordPlay/SwordPlay_main.cpp | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | 1 | 2019-02-15T08:31:59.000Z | 2019-02-15T08:31:59.000Z | cpp/apps/SwordPlay/SwordPlay_main.cpp | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | null | null | null | cpp/apps/SwordPlay/SwordPlay_main.cpp | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | null | null | null |
//#define SPEED_TEST
//#include <ctime>
//#include <iostream>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <time.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "fastmath.h"
#include "Vec3.h"
#include "Mat3.h"
#include "quaternion.h"
#include "Draw3D.h"
//#include "testUtils... | 24.766082 | 104 | 0.617946 | Aki78 |
77a0aa484ed1e9f86e56accd1023e295cf1876ba | 6,104 | hpp | C++ | godot-cpp/include/core/Ref.hpp | gamemagics/DNS | 06abb9a67197966eb4dcd21353ba7c9fb3e74351 | [
"MIT"
] | 2 | 2021-11-08T02:53:07.000Z | 2021-11-08T09:40:43.000Z | godot-cpp/include/core/Ref.hpp | gamemagics/DNS | 06abb9a67197966eb4dcd21353ba7c9fb3e74351 | [
"MIT"
] | null | null | null | godot-cpp/include/core/Ref.hpp | gamemagics/DNS | 06abb9a67197966eb4dcd21353ba7c9fb3e74351 | [
"MIT"
] | null | null | null | /*************************************************************************/
/* Ref.hpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 28.129032 | 116 | 0.586337 | gamemagics |
77a24599b9893980d3d53e7c85c4f43b7a4e6ae3 | 18,987 | cpp | C++ | Source/NewtonPhysics/NewtonCollisionShapesDerived.cpp | TrevorCash/rbfx-newton | a8465870a85d69386709a4d65d758fa28b69918b | [
"MIT"
] | 9 | 2019-05-07T00:23:10.000Z | 2022-03-15T20:54:03.000Z | Source/NewtonPhysics/NewtonCollisionShapesDerived.cpp | TrevorCash/rbfx-newton | a8465870a85d69386709a4d65d758fa28b69918b | [
"MIT"
] | null | null | null | Source/NewtonPhysics/NewtonCollisionShapesDerived.cpp | TrevorCash/rbfx-newton | a8465870a85d69386709a4d65d758fa28b69918b | [
"MIT"
] | 2 | 2019-11-10T06:56:14.000Z | 2020-07-05T11:32:21.000Z | #include "NewtonCollisionShapesDerived.h"
#include "NewtonPhysicsWorld.h"
#include "NewtonRigidBody.h"
#include "NewtonMeshObject.h"
#include "UrhoNewtonConversions.h"
#include "NewtonCollisionShape.h"
#include "Urho3D/Core/Context.h"
#include "Urho3D/Scene/Component.h"
#include "Urho3D/Scene/Node.h"
#include "Urho3D... | 32.290816 | 193 | 0.700743 | TrevorCash |
77a4fc6e9be03b0a8a2b22b1ac13cd0662342300 | 650 | hpp | C++ | libs/renderer/include/sge/renderer/vf/dynamic/ordered_element_list.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/include/sge/renderer/vf/dynamic/ordered_element_list.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/include/sge/renderer/vf/dynamic/ordered_element_list.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_RENDERER_VF_DYNAMIC_ORDERED_ELEMENT_LIST_HPP_INCLUDED
#define SGE_RENDERER_VF_DYNAMIC_O... | 29.545455 | 86 | 0.775385 | cpreh |
77b6a0ace57d5c341030c384038203c60a31849e | 2,108 | cc | C++ | YetiVSI.DebugEngine.LLDBWorker/LLDBType.cc | googlestadia/vsi-lldb | 0356bfb6e8cbe3554bce56832ff9851e83a573ca | [
"Apache-2.0"
] | 28 | 2020-12-16T10:45:26.000Z | 2022-03-30T04:25:03.000Z | YetiVSI.DebugEngine.LLDBWorker/LLDBType.cc | googlestadia/vsi-lldb | 0356bfb6e8cbe3554bce56832ff9851e83a573ca | [
"Apache-2.0"
] | 1 | 2020-12-17T11:16:34.000Z | 2020-12-17T11:16:34.000Z | YetiVSI.DebugEngine.LLDBWorker/LLDBType.cc | googlestadia/vsi-lldb | 0356bfb6e8cbe3554bce56832ff9851e83a573ca | [
"Apache-2.0"
] | 4 | 2021-05-05T19:47:43.000Z | 2022-03-30T04:37:57.000Z | // Copyright 2020 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 ... | 25.39759 | 75 | 0.722011 | googlestadia |
77c0654c7b74e61cfa7444da6931878b0e518f5d | 598 | hpp | C++ | src/apps/monitor/make.hpp | rnascunha/xerock | a8d1ab46fa87c300ab9737e4d5c71b9311c17a48 | [
"MIT"
] | null | null | null | src/apps/monitor/make.hpp | rnascunha/xerock | a8d1ab46fa87c300ab9737e4d5c71b9311c17a48 | [
"MIT"
] | null | null | null | src/apps/monitor/make.hpp | rnascunha/xerock | a8d1ab46fa87c300ab9737e4d5c71b9311c17a48 | [
"MIT"
] | 1 | 2021-03-10T13:02:13.000Z | 2021-03-10T13:02:13.000Z | #ifndef MONITOR_JSON_MAKE_MESSAGE_HPP__
#define MONITOR_JSON_MAKE_MESSAGE_HPP__
#include "core/message.hpp"
#include "system_types.hpp"
namespace Apps{
namespace Monitor{
Message::Type_Send make_monitor_message(double cpu_usage, double mem_usage_per,
unsigned long cpu_usage_overall,
double cpu_us... | 27.181818 | 79 | 0.742475 | rnascunha |
77c80b03ca8b3e45b31dbfa7f1625f34ffec3253 | 6,643 | cpp | C++ | XformGoal.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 12 | 2019-06-07T10:06:41.000Z | 2021-03-22T22:13:59.000Z | XformGoal.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 1 | 2019-05-09T07:38:12.000Z | 2019-07-10T04:20:55.000Z | XformGoal.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 3 | 2020-09-08T08:27:33.000Z | 2021-05-13T09:25:43.000Z | // XformGoal.cpp: implementation of the CXformGoal class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "audtest.h"
#include "XformGoal.h"
#include "Network.h"
#include "Driver.h"
#include "Dataset.h"
#include "Passive.h"
#include "math.h"
#include "complex.h"
... | 23.640569 | 103 | 0.536354 | RDamman |
77ce045fac77317759abd3ba2e43a29fa1c69a20 | 1,113 | cpp | C++ | leetcode/problems/hard/354-russian-doll-envelopes.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | leetcode/problems/hard/354-russian-doll-envelopes.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | leetcode/problems/hard/354-russian-doll-envelopes.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Russian Doll Envelopes
https://leetcode.com/problems/russian-doll-envelopes/
You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both the width and height of one envelope is greater than the width and height of the other envelop... | 31.8 | 241 | 0.606469 | wingkwong |
77d87f5d2738be112a24e7822f63ecddb6ed1e7e | 13,909 | cpp | C++ | Cart.cpp | 8bitpsp/handy | 5824dcfa87bea5ea124aff70f39d3da70fb112dc | [
"Zlib"
] | 1 | 2021-09-23T10:58:25.000Z | 2021-09-23T10:58:25.000Z | Cart.cpp | 8bitpsp/handy | 5824dcfa87bea5ea124aff70f39d3da70fb112dc | [
"Zlib"
] | null | null | null | Cart.cpp | 8bitpsp/handy | 5824dcfa87bea5ea124aff70f39d3da70fb112dc | [
"Zlib"
] | null | null | null | //
// Copyright (c) 2004 K. Wilkins
//
// 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 software for any purpose,
// including ... | 27.433925 | 121 | 0.611187 | 8bitpsp |
77d8964cf6b1ada26d7413b8e96f05ab2db5fd97 | 686 | cpp | C++ | C++/FindMinimuminRotatedSortedArray.cpp | VivXwan/LeetCodeSolutions | 01f4f3738a5e7c1bb1e57afd4d986d2fb0abe5e4 | [
"MIT"
] | 155 | 2021-11-19T15:43:26.000Z | 2022-03-30T20:10:12.000Z | C++/FindMinimuminRotatedSortedArray.cpp | Dheerajaktu/LeetCodeSolutions | 65119ddd4ecdb0cdda426704cf28533dfd382c2e | [
"MIT"
] | 1 | 2022-01-16T17:48:08.000Z | 2022-01-16T18:53:41.000Z | C++/FindMinimuminRotatedSortedArray.cpp | Dheerajaktu/LeetCodeSolutions | 65119ddd4ecdb0cdda426704cf28533dfd382c2e | [
"MIT"
] | 44 | 2022-01-02T02:13:25.000Z | 2022-03-24T04:01:31.000Z | /*
Source: https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/
Time: O(log base2 n), where n is the size of the given vector(nums) and (log base2 n) is the maximum possible iterations
Space: O(1), in-place
*/
class Solution {
public:
int findMin(vector<int>& nums) {
int start = 0;
int end... | 17.589744 | 120 | 0.537901 | VivXwan |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.