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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ecdd56b0af33cbb03901e21617796fe6e57521f6 | 408 | cpp | C++ | Decorator Pattern/Decorator Pattern/Soy.cpp | mrlegowatch/HeadFirstDesignPatternsCpp | 436ee8f0344b6a2ccfef6dcfa216a16a6ca7b482 | [
"MIT"
] | 43 | 2018-07-17T21:53:21.000Z | 2022-03-23T13:15:06.000Z | Decorator Pattern/Decorator Pattern/Soy.cpp | mrlegowatch/HeadFirstDesignPatternsCpp | 436ee8f0344b6a2ccfef6dcfa216a16a6ca7b482 | [
"MIT"
] | null | null | null | Decorator Pattern/Decorator Pattern/Soy.cpp | mrlegowatch/HeadFirstDesignPatternsCpp | 436ee8f0344b6a2ccfef6dcfa216a16a6ca7b482 | [
"MIT"
] | 14 | 2019-04-10T13:01:07.000Z | 2022-03-08T13:19:14.000Z | //
// Soy.cpp
// Decorator Pattern
//
// Created by Kevin Lee on 2/13/18.
// Copyright © 2018 Brian Arnold. All rights reserved.
//
#include "Soy.hpp"
Soy::Soy(std::unique_ptr<Beverage> beverage) : CondimentDecorator(std::move(beverage)) {
}
std::string Soy::getDescription() const {
return beverage->getDescr... | 19.428571 | 88 | 0.659314 | mrlegowatch |
ecddcd22d2aabb42ad3b4651ad487f0a0fc80b61 | 16,117 | cpp | C++ | d-collide/detectordeform/surfacehierarchy/deformablebvhnode.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | 6 | 2015-12-08T05:38:03.000Z | 2021-04-09T13:45:59.000Z | d-collide/detectordeform/surfacehierarchy/deformablebvhnode.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | d-collide/detectordeform/surfacehierarchy/deformablebvhnode.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2007 by the members of PG 510, University of Dortmund: *
* d-collide-users@lists.sourceforge.net *
* Andreas Beckermann, Christian Bode, Marcel Ens, Sebastian Ens, ... | 39.405868 | 172 | 0.586399 | ColinGilbert |
ecde1dc953b74461f441b9fb105d9d58964c026d | 418 | cpp | C++ | LuoguCodes/CF922A.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/CF922A.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/CF922A.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | //【CF922A】Cloning Toys - 洛谷 - Uk
#include <iostream>
const char *yes = "Yes", *no = "No";
int main() {
int x, y;
std::cin >> x >> y;
if (y == 0)
std::cout << no << std::endl;
else if (x + 1 == y)
std::cout << yes << std::endl;
else if (x + y < y)
std::cout << no << std::endl;
else if (x + 1 > y && (x - y... | 22 | 54 | 0.476077 | Anguei |
ecdef9a46da70001e4e68e8dca3a8602ff03da8c | 7,256 | cpp | C++ | src/ossim/elevation/ossimDtedElevationDatabase.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | null | null | null | src/ossim/elevation/ossimDtedElevationDatabase.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | null | null | null | src/ossim/elevation/ossimDtedElevationDatabase.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | 1 | 2019-09-25T00:43:35.000Z | 2019-09-25T00:43:35.000Z | #include <ossim/elevation/ossimDtedElevationDatabase.h>
#include <ossim/base/ossimGeoidManager.h>
#include <ossim/base/ossimNotifyContext.h>
#include <ossim/base/ossimDirectory.h>
#include <ossim/base/ossimTrace.h>
#include <sstream>
#include <iomanip>
#include <cstdlib> /* for abs(int) */
#include <OpenThreads/Thread>... | 27.800766 | 135 | 0.583241 | rkanavath |
ece116320e76f792a48c192062a702e1f243911c | 2,081 | hpp | C++ | src/ExtDataT3R/EventListCacheWriter.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 4 | 2016-06-03T18:41:43.000Z | 2020-04-17T20:28:58.000Z | src/ExtDataT3R/EventListCacheWriter.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | src/ExtDataT3R/EventListCacheWriter.hpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2022 The Voxie Authors
*
* 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, mer... | 30.15942 | 80 | 0.748198 | voxie-viewer |
ece4a8121b5d1112515c4ec69e410fcb2a6de6b5 | 168,212 | hpp | C++ | missions/po4.tanoa/MPSF/maps/dya.hpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | null | null | null | missions/po4.tanoa/MPSF/maps/dya.hpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | null | null | null | missions/po4.tanoa/MPSF/maps/dya.hpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | null | null | null | /*
CfgMissionData Generator
Contributor: Eightysix
World: DYA
*/
class DYA {
class Sectors {
radius = 1000;
class sector_05000500 {
position[] = {500,500,0};
orientation[] = {500,500,0};
isWater = 0;
typeFlags[] = {"Clearing"};
areas[] = {"Clearing_47","Clearing_48","Clearing_49","Clearing_50","... | 26.510954 | 267 | 0.618749 | ademirt |
ece85fd9cf8374a4b2b058b41f0757424d407503 | 1,930 | cpp | C++ | person.cpp | Knutt1/Jonotuslista | 5128e69ee8020b1550b34bab887af517207c263b | [
"MIT"
] | null | null | null | person.cpp | Knutt1/Jonotuslista | 5128e69ee8020b1550b34bab887af517207c263b | [
"MIT"
] | null | null | null | person.cpp | Knutt1/Jonotuslista | 5128e69ee8020b1550b34bab887af517207c263b | [
"MIT"
] | null | null | null | /****************************************************************************
MIT License
Copyright (c) 2018 Janne Saari
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, inclu... | 24.125 | 78 | 0.696891 | Knutt1 |
eced6c3690a773127052e8d40556da7a7015e2f1 | 3,204 | hpp | C++ | libs/math/include/math/distance/euclidean.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 3 | 2019-07-11T08:49:27.000Z | 2021-09-07T16:49:15.000Z | libs/math/include/math/distance/euclidean.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | null | null | null | libs/math/include/math/distance/euclidean.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 2 | 2019-07-13T12:45:22.000Z | 2021-03-12T08:48:57.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... | 29.127273 | 95 | 0.632959 | devjsc |
ecf366eb16cf3a983a13ec8aafacc4f10bad436c | 63,440 | cpp | C++ | Source/API/Vulkan/DeviceVk.cpp | KawBuma/Buma3D | 73b1c7a99c979492f072d4ead89f2d357d5e048a | [
"MIT"
] | 5 | 2020-11-25T05:05:13.000Z | 2022-02-09T09:35:21.000Z | Source/API/Vulkan/DeviceVk.cpp | KawBuma/Buma3D | 73b1c7a99c979492f072d4ead89f2d357d5e048a | [
"MIT"
] | 5 | 2020-11-11T09:52:59.000Z | 2021-12-15T13:27:37.000Z | Source/API/Vulkan/DeviceVk.cpp | KawBuma/Buma3D | 73b1c7a99c979492f072d4ead89f2d357d5e048a | [
"MIT"
] | null | null | null | #include "Buma3DPCH.h"
#include "DeviceVk.h"
namespace buma3d
{
namespace /*anonymous*/
{
inline float GetQueuePriority(COMMAND_QUEUE_PRIORITY _priority, uint32_t _discrete_queue_priorities)
{
if (_priority == COMMAND_QUEUE_PRIORITY_DEFAULT)
{
return 0.f;
}
else
{
// _discrete_que... | 36.776812 | 254 | 0.697967 | KawBuma |
ecf962e2fcff0505c196c900f527832f1923bc02 | 984 | hpp | C++ | ros/catkin_ws/src/ecl/ecl_core/ecl_devices/include/ecl/devices/socket.hpp | Kanaderu/spiking-ddpg-mapless-navigation | 2b5e7e67385dee4428b8036bc4ffe95e812b34e0 | [
"MIT"
] | null | null | null | ros/catkin_ws/src/ecl/ecl_core/ecl_devices/include/ecl/devices/socket.hpp | Kanaderu/spiking-ddpg-mapless-navigation | 2b5e7e67385dee4428b8036bc4ffe95e812b34e0 | [
"MIT"
] | null | null | null | ros/catkin_ws/src/ecl/ecl_core/ecl_devices/include/ecl/devices/socket.hpp | Kanaderu/spiking-ddpg-mapless-navigation | 2b5e7e67385dee4428b8036bc4ffe95e812b34e0 | [
"MIT"
] | null | null | null | /**
* @file /include/ecl/devices/socket.hpp
*
* @brief Cross platform server tcp/ip socket header.
*
* @date January 2010
**/
/*****************************************************************************
** Ifdefs
*****************************************************************************/
#ifndef ECL_DEVICES... | 28.114286 | 78 | 0.384146 | Kanaderu |
ecfa870c3cfada4b23ce35be5798fa1c7349de6c | 7,086 | cpp | C++ | src/geometry/spline_curve_1D.cpp | bigginlab/chap | 17de36442e2e80cb01432e84050c4dfce31fc3a2 | [
"MIT"
] | 10 | 2018-06-28T00:21:46.000Z | 2022-03-30T03:31:32.000Z | src/geometry/spline_curve_1D.cpp | bigginlab/chap | 17de36442e2e80cb01432e84050c4dfce31fc3a2 | [
"MIT"
] | 35 | 2019-03-19T21:54:46.000Z | 2022-03-17T02:20:42.000Z | src/geometry/spline_curve_1D.cpp | bigginlab/chap | 17de36442e2e80cb01432e84050c4dfce31fc3a2 | [
"MIT"
] | 8 | 2018-10-27T19:35:13.000Z | 2022-01-06T01:10:39.000Z | // CHAP - The Channel Annotation Package
//
// Copyright (c) 2016 - 2018 Gianni Klesse, Shanlin Rao, Mark S. P. Sansom, and
// Stephen J. Tucker
//
// 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 th... | 25.956044 | 80 | 0.635196 | bigginlab |
ecfeed313a17d217e52c8cfc0f40ae325e4b529b | 253 | hpp | C++ | fmamemory/include/placer/PlacerPriority.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | fmamemory/include/placer/PlacerPriority.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | fmamemory/include/placer/PlacerPriority.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #ifndef __PLACER_PLACERPRIORITY_H__
#define __PLACER_PLACERPRIORITY_H__
#include "PlacerNode.hpp"
#include "PlacerScopeNode.hpp"
namespace FMA {
namespace placer {
bool __sortNodes(const PlacerNodePtr &left, const PlacerNodePtr &right);
}
}
#endif
| 15.8125 | 72 | 0.802372 | BenjaminSchulte |
a604bbc65522f623e83120c2d68edd90aa1af1a1 | 2,435 | cpp | C++ | src/HE_RENDER/RenderEngine.cpp | dev-heeseok/MFC | ecc2003639967cd1b0b37f456c4af3e60794a53c | [
"MIT"
] | null | null | null | src/HE_RENDER/RenderEngine.cpp | dev-heeseok/MFC | ecc2003639967cd1b0b37f456c4af3e60794a53c | [
"MIT"
] | 5 | 2022-02-17T11:30:53.000Z | 2022-03-29T14:12:08.000Z | src/HE_RENDER/RenderEngine.cpp | dev-heeseok/MFC | ecc2003639967cd1b0b37f456c4af3e60794a53c | [
"MIT"
] | null | null | null | #include "pch.h"
#include "RenderEngine.h"
#include "RenderManager.h"
#include "../HE_INTERFACE/IRenderContext.h"
#include "../HE_WGL/ShaderManager.h"
CRenderEngine::CRenderEngine()
{
m_pRenderManager = std::make_shared<CRenderManager>();
m_pShaderManager = std::make_shared<CShaderManager>();
}
CRenderEngine::~CRe... | 19.48 | 77 | 0.73347 | dev-heeseok |
a606f93d0286cb63f04e56e84a6a51fb2177db10 | 1,506 | cpp | C++ | src/decoderparticipantinfo.cpp | leroythelegend/rough_idea_pcars | 07ead73fa04402c860b21039d5aa8c22a33a7d93 | [
"MIT"
] | 4 | 2018-08-09T00:44:01.000Z | 2021-07-03T08:26:39.000Z | src/decoderparticipantinfo.cpp | ejmhub/rough_idea_project_cars | d7cd062cbff2a1df82b5a623205d9c1920c41b1c | [
"MIT"
] | 1 | 2018-02-02T10:44:43.000Z | 2018-02-02T10:44:43.000Z | src/decoderparticipantinfo.cpp | ejmhub/rough_idea_project_cars | d7cd062cbff2a1df82b5a623205d9c1920c41b1c | [
"MIT"
] | 1 | 2018-11-24T09:12:51.000Z | 2018-11-24T09:12:51.000Z | #include "decoderparticipantinfo.h"
namespace pcars {
Decoder_Participant_Info::Decoder_Participant_Info() {
add(&worldposition_);
add(¤tlapdistance_);
add(&raceposition_);
add(&lapscompleted_);
add(¤tlap_);
add(§or_);
add(&lastsectortime_);
}
Decoder_Participant_Info::~Decoder_Participant_In... | 20.916667 | 69 | 0.786189 | leroythelegend |
a60abc22a3a6dd59c54c5d6be4788458cda0214b | 566 | cpp | C++ | src/engine/scene/scene.cpp | vsensu/samui | 828e8c7cc5acbb79cec11b44ea62e04775cc8560 | [
"MIT"
] | 5 | 2021-08-09T11:56:46.000Z | 2021-11-14T20:27:52.000Z | src/engine/scene/scene.cpp | vsensu/samui | 828e8c7cc5acbb79cec11b44ea62e04775cc8560 | [
"MIT"
] | null | null | null | src/engine/scene/scene.cpp | vsensu/samui | 828e8c7cc5acbb79cec11b44ea62e04775cc8560 | [
"MIT"
] | null | null | null | // clang-format off
#include "scene.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "components.h"
#include <rendering/renderer2d.h>
// clang-format on
namespace samui {
Scene::Scene() {}
Entity Scene::CreateEntity(const std::string& name) {
auto entity = registry_.create();
AddCompo... | 20.962963 | 71 | 0.733216 | vsensu |
a60b083f275888b881b05de85bd9965299368025 | 3,993 | cpp | C++ | world/source/Date.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 1 | 2020-05-24T22:44:03.000Z | 2020-05-24T22:44:03.000Z | world/source/Date.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | world/source/Date.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | #include "Date.hpp"
using namespace std;
const uint TimeOfDay::TIME_OF_DAY_DAWN = 7;
const uint TimeOfDay::TIME_OF_DAY_DAY = 8;
const uint TimeOfDay::TIME_OF_DAY_DUSK = 19;
const uint TimeOfDay::TIME_OF_DAY_NIGHT = 20;
std::map<TimeOfDayType, std::pair<Colour, Colour>> TimeOfDay::time_of_day_colour_overrides;
pair<... | 25.272152 | 192 | 0.722264 | sidav |
a6167a14b57ea146e37196f151fce52a4cf72e10 | 30,891 | cpp | C++ | ajalibraries/ajantv2/src/ntv2subscriptions.cpp | ibstewart/ntv2 | 0acbac70a0b5e6509cca78cfbf69974c73c10db9 | [
"MIT"
] | 9 | 2021-09-28T22:17:59.000Z | 2022-03-31T03:31:57.000Z | ajalibraries/ajantv2/src/ntv2subscriptions.cpp | ibstewart/ntv2 | 0acbac70a0b5e6509cca78cfbf69974c73c10db9 | [
"MIT"
] | 5 | 2021-10-31T17:24:05.000Z | 2022-03-17T22:41:19.000Z | ajalibraries/ajantv2/src/ntv2subscriptions.cpp | ibstewart/ntv2 | 0acbac70a0b5e6509cca78cfbf69974c73c10db9 | [
"MIT"
] | 8 | 2021-10-31T16:54:29.000Z | 2022-03-21T19:58:46.000Z | /* SPDX-License-Identifier: MIT */
/**
@file ntv2subscriptions.cpp
@brief Implementation of CNTV2Card's event notification subscription functions.
@copyright (C) 2004-2021 AJA Video Systems, Inc.
**/
#include "ntv2card.h"
using namespace std;
static INTERRUPT_ENUMS gChannelToOutputVerticalInterrupt[] = {eOutp... | 73.028369 | 170 | 0.788353 | ibstewart |
a6167ee9dab2981404d3569f8db470628e0cc937 | 950 | cpp | C++ | Project_Euler/007/sol.cpp | Zovube/Tasks-solutions | fde056189dd5f630197d0516d3837044bc339e49 | [
"MIT"
] | 2 | 2018-11-08T05:57:22.000Z | 2018-11-08T05:57:27.000Z | Project_Euler/007/sol.cpp | Zovube/Tasks-solutions | fde056189dd5f630197d0516d3837044bc339e49 | [
"MIT"
] | null | null | null | Project_Euler/007/sol.cpp | Zovube/Tasks-solutions | fde056189dd5f630197d0516d3837044bc339e49 | [
"MIT"
] | null | null | null | // just eratosthene`s sieve
#include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fst... | 16.964286 | 48 | 0.557895 | Zovube |
a617d147b506a47ee569f8084aa1e5c0b9b9d360 | 6,371 | cpp | C++ | src/core/editing/rastersurface.cpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 3 | 2020-03-05T06:36:51.000Z | 2020-06-20T03:25:02.000Z | src/core/editing/rastersurface.cpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 13 | 2020-03-11T17:43:42.000Z | 2020-12-11T03:36:05.000Z | src/core/editing/rastersurface.cpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 1 | 2020-09-28T06:53:46.000Z | 2020-09-28T06:53:46.000Z | /**
* Addle source code
* @file
* @copyright Copyright 2020 Eleanor Hawk
* @copyright Modification and distribution permitted under the terms of the
* MIT License. See "LICENSE" for full details.
*/
#include "rastersurface.hpp"
#include <QtDebug>
#include "utilities/render/renderutils.hpp"
using namespace Addle... | 26.110656 | 115 | 0.622979 | squeevee |
a61903b30bbccd15cb707e37b0667ba64fc084d7 | 431 | hpp | C++ | src/components/disk/disk.hpp | elmerucr/E64 | 1f7d57fadc6804948aa832d0f5f6800a8631f622 | [
"MIT"
] | null | null | null | src/components/disk/disk.hpp | elmerucr/E64 | 1f7d57fadc6804948aa832d0f5f6800a8631f622 | [
"MIT"
] | null | null | null | src/components/disk/disk.hpp | elmerucr/E64 | 1f7d57fadc6804948aa832d0f5f6800a8631f622 | [
"MIT"
] | null | null | null | /*
* disk.hpp
* E64
*
* Copyright © 2021-2022 elmerucr. All rights reserved.
*/
#include <cstdint>
#include <thread>
#ifndef DISK_HPP
#define DISK_HPP
#define DISK_SR 0x00
#define DISK_CR 0x01
namespace E64
{
class disk_ic {
private:
uint8_t registers[256];
public:
void reset();
void run(uint32_t number_o... | 12.676471 | 55 | 0.721578 | elmerucr |
a61a2d2d8afaf2b54e8d61c88e44f55008373ac8 | 1,564 | cpp | C++ | lib/pull-stream/test/ps-sync-nooper-test.cpp | tmpvar/rawk | 0dee2bdf9e11e9033988a0d9d1e52603263c6aca | [
"MIT"
] | 9 | 2020-08-14T19:46:33.000Z | 2021-10-13T09:33:20.000Z | lib/pull-stream/test/ps-sync-nooper-test.cpp | tmpvar/rawkit | 0dee2bdf9e11e9033988a0d9d1e52603263c6aca | [
"MIT"
] | null | null | null | lib/pull-stream/test/ps-sync-nooper-test.cpp | tmpvar/rawkit | 0dee2bdf9e11e9033988a0d9d1e52603263c6aca | [
"MIT"
] | null | null | null | #include <doctest.h>
#include <pull/stream.h>
TEST_CASE("[pull/stream] noop through stream") {
// expect error to propagate down when not hooked up
{
ps_t *nop1 = create_nooper();
ps_t *nop2 = create_nooper();
ps_t *nop3 = create_nooper();
nop2->source = nop1;
nop3->source = nop2;
// cal... | 23 | 54 | 0.594629 | tmpvar |
a61bd24750d276f9dd759b6ce828b854adc14c6b | 2,106 | cpp | C++ | hackerearth/circ_nov_19/fixed_parities.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | hackerearth/circ_nov_19/fixed_parities.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | hackerearth/circ_nov_19/fixed_parities.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <limits>
#include <sstream>
using namespace std;
typedef int64_t i64;
typedef uint64_t u64;
template <typename T>
string toString(const vector<T>& v, s... | 22.404255 | 72 | 0.391738 | tuket |
a61d792ecf208776b4238d7ed86626e784d114c3 | 1,750 | hpp | C++ | src/utils/gui2/widgets/editline.hpp | anteins/Blunted2 | 284a1fb59805914af1ee0dc763ff022fb088a922 | [
"Unlicense"
] | null | null | null | src/utils/gui2/widgets/editline.hpp | anteins/Blunted2 | 284a1fb59805914af1ee0dc763ff022fb088a922 | [
"Unlicense"
] | null | null | null | src/utils/gui2/widgets/editline.hpp | anteins/Blunted2 | 284a1fb59805914af1ee0dc763ff022fb088a922 | [
"Unlicense"
] | null | null | null | // written by bastiaan konings schuiling 2008 - 2014
// this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important.
// i do not offer support, so don't ask. to be used for inspiration :)
#ifndef _HPP_GUI2_VIEW_EDITLINE
#define _HPP_GUI2_VIEW_EDITLIN... | 30.172414 | 184 | 0.737143 | anteins |
a61f5f66f62bf959def90489f7dab0fdf9b3e6db | 3,394 | hpp | C++ | libff/algebra/field_utils/binary_utils.hpp | meilof/libff | c71bbbd25a64c2dda38a942584f3e2cc3be06021 | [
"MIT"
] | null | null | null | libff/algebra/field_utils/binary_utils.hpp | meilof/libff | c71bbbd25a64c2dda38a942584f3e2cc3be06021 | [
"MIT"
] | null | null | null | libff/algebra/field_utils/binary_utils.hpp | meilof/libff | c71bbbd25a64c2dda38a942584f3e2cc3be06021 | [
"MIT"
] | null | null | null | /**@file
*****************************************************************************
API hack for treating fields as additive or multiplicative
*****************************************************************************
* @author This file is part of libff (see AUTHORS), migrated from libiop
* @copyright ... | 28.762712 | 106 | 0.694755 | meilof |
a62013a148fd269d89b52680850a3f948839d8a2 | 28,329 | cpp | C++ | development/Common/Render/source/Scene.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | null | null | null | development/Common/Render/source/Scene.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | 44 | 2018-06-28T03:01:44.000Z | 2022-03-20T19:53:00.000Z | development/Common/Render/source/Scene.cpp | eglowacki/zloty | 9c864ae0beb1ac64137a096795261768b7fc6710 | [
"MIT"
] | null | null | null | #include "Scene.h"
#if 0
#include "Device.h"
#include "RenderTarget.h"
#include "Resources/ShaderResources.h"
#include "App/Application.h"
#include "StringHelpers.h"
#include "Debugging/Assert.h"
#include "Debugging/DevConfiguration.h"
#include "Debugging/PhysicsDebugDraw.h"
#include "Exception/Exception.h"
#include "A... | 37.621514 | 179 | 0.594091 | eglowacki |
a622abfa7422a6a16e405f5468e9c8a88668a414 | 14,060 | cpp | C++ | src/cloth/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 23 | 2019-07-11T14:47:39.000Z | 2021-12-24T09:56:24.000Z | src/cloth/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | null | null | null | src/cloth/main.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 4 | 2021-04-06T18:20:43.000Z | 2022-01-15T09:20:45.000Z | #include <tkn/singlePassApp.hpp>
#include <tkn/bits.hpp>
#include <tkn/render.hpp>
#include <tkn/ccam.hpp>
#include <tkn/types.hpp>
#include <argagg.hpp>
#include <vpp/trackedDescriptor.hpp>
#include <vpp/pipeline.hpp>
#include <vpp/queue.hpp>
#include <vpp/submit.hpp>
#include <vpp/commandAllocator.hpp>
#include <vpp... | 27.786561 | 78 | 0.670484 | nyorain |
a625c33a832b9062a0d285b9836c0ada98648f45 | 267 | cpp | C++ | src/libProto/proto.cpp | lgritz/proto-project | 05fb0d52742635396c0d7a9d44ed76ce60946e60 | [
"BSD-3-Clause"
] | 2 | 2017-02-08T16:46:48.000Z | 2019-10-23T20:33:50.000Z | src/libProto/proto.cpp | lgritz/proto-project | 05fb0d52742635396c0d7a9d44ed76ce60946e60 | [
"BSD-3-Clause"
] | null | null | null | src/libProto/proto.cpp | lgritz/proto-project | 05fb0d52742635396c0d7a9d44ed76ce60946e60 | [
"BSD-3-Clause"
] | 2 | 2019-03-05T21:09:51.000Z | 2021-03-23T07:51:53.000Z | // Copyright Larry Gritz (et al)
// SPDX-License-Identifier: BSD-3-Clause
#include <iostream>
#include <Proto/Proto.h>
void
Proto::hello()
{
std::cout << "Hello, world\n";
std::cout.flush();
}
float
Proto::add(float a, float b)
{
return a + b;
}
| 10.68 | 40 | 0.614232 | lgritz |
98ac1d6d02e3b37a52921d109f28030f87bfb018 | 5,983 | cpp | C++ | src/Window.cpp | santa01/frank-luna-dx11 | 57172ca245f7933116ad8ab1974a1ff95c6a4f4c | [
"MIT"
] | null | null | null | src/Window.cpp | santa01/frank-luna-dx11 | 57172ca245f7933116ad8ab1974a1ff95c6a4f4c | [
"MIT"
] | null | null | null | src/Window.cpp | santa01/frank-luna-dx11 | 57172ca245f7933116ad8ab1974a1ff95c6a4f4c | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Pavlo Lavrenenko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 27.571429 | 195 | 0.660872 | santa01 |
98afa0c006492d4910b533dd834be9304ae0b32d | 1,543 | cpp | C++ | TrackerGrupo02/Tester/Tester.cpp | Sounagix/UsabilidadTelemetria | 7f88ac2ed9912bb69fa3bda27620e6c2271c61fd | [
"MIT"
] | null | null | null | TrackerGrupo02/Tester/Tester.cpp | Sounagix/UsabilidadTelemetria | 7f88ac2ed9912bb69fa3bda27620e6c2271c61fd | [
"MIT"
] | null | null | null | TrackerGrupo02/Tester/Tester.cpp | Sounagix/UsabilidadTelemetria | 7f88ac2ed9912bb69fa3bda27620e6c2271c61fd | [
"MIT"
] | null | null | null | // Tester.cpp : Este archivo contiene la función "main". La ejecución del programa comienza y termina ahí.
//
#include <iostream>
#include "Tracker.h"
#include "AllEvents.h"
#define PATH_FILE "./"
int main()
{
setlocale(LC_ALL, "");
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); // Check Memory Leak... | 24.887097 | 109 | 0.688918 | Sounagix |
98b16a9375b7c4e0fa7f045b910e41305df4ba01 | 4,858 | hpp | C++ | include/ugly/graph.hpp | JoshuaSBrown/GraphCluster | d9c28204b276165cf59137c9668c4dfcfa397089 | [
"MIT"
] | null | null | null | include/ugly/graph.hpp | JoshuaSBrown/GraphCluster | d9c28204b276165cf59137c9668c4dfcfa397089 | [
"MIT"
] | null | null | null | include/ugly/graph.hpp | JoshuaSBrown/GraphCluster | d9c28204b276165cf59137c9668c4dfcfa397089 | [
"MIT"
] | null | null | null |
#ifndef UGLY_GRAPH_HPP
#define UGLY_GRAPH_HPP
#include <algorithm>
#include <iostream>
#include <list>
#include <memory>
#include <stdexcept>
#include <unordered_map>
#include <vector>
#include "../../src/libugly/edge/edge.hpp"
#include "edge_weighted.hpp"
#include "graph_node.hpp"
namespace ugly {
template <typen... | 27.446328 | 79 | 0.655825 | JoshuaSBrown |
98b2eb9c24d96cef03685f7c477ddc44c2cd99cb | 15,599 | cpp | C++ | StyleDlgTracks.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null | StyleDlgTracks.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null | StyleDlgTracks.cpp | matthias-christen/CdCoverCreator | edb223c2cf33ab3fb72d84ce2a9bce8500408c2a | [
"MIT"
] | null | null | null | // StyleDlgTracks.cpp : implementation file
//
#include "stdafx.h"
#include "CdCoverCreator2.h"
#include "CdCoverCreator2Doc.h"
#include "StyleDlgTracks.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
///////////////////////////////////////////////////... | 30.172147 | 134 | 0.715559 | matthias-christen |
98b4e3345ac152b2355bc92ac53d35f19804aab9 | 3,430 | cpp | C++ | src/rendering/engine-Vk/engine-impl/resources/vertex_format.cpp | Bargor/tempest | 94837c6dcfef036827076446101e59afb7792f5d | [
"Apache-2.0",
"MIT"
] | null | null | null | src/rendering/engine-Vk/engine-impl/resources/vertex_format.cpp | Bargor/tempest | 94837c6dcfef036827076446101e59afb7792f5d | [
"Apache-2.0",
"MIT"
] | 1 | 2019-12-02T20:17:52.000Z | 2019-12-02T20:17:52.000Z | src/rendering/engine-Vk/engine-impl/resources/vertex_format.cpp | Bargor/tempest | 94837c6dcfef036827076446101e59afb7792f5d | [
"Apache-2.0",
"MIT"
] | null | null | null | // This file is part of Tempest-engine project
// Author: Karol Kontny
#include "vertex_format.h"
namespace tst {
namespace engine {
namespace vulkan {
vk::Format translate_format(base::vertex_format::format format) {
switch (format) {
case base::vertex_format::format::invalid:
... | 43.974359 | 126 | 0.598251 | Bargor |
98b98ebaa381b7f81d7e8a17b0074e63f44e5186 | 1,594 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/asio/web_handshaker.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/asio/web_handshaker.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/asio/web_handshaker.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <string>
#include <msw/asio/web_socket.hpp>
#include <msw/zzz/asio/web_handshaker.hpp>
namespace msw
{
template <typename WebSocket>
struct web_handshaker_tmpl
: noncopyable
{
typedef WebSocket web_socket_ty... | 31.254902 | 148 | 0.597867 | yklishevich |
98b9e0d4803eae60ecb2723ea3d7659c5155e179 | 2,580 | cpp | C++ | GameEngine/GameEngine/HudHandling.cpp | MrMaguila/SelfMadeGameEngine | c941ea122ec25c1130f113e64c05b2a6a90e9f65 | [
"Apache-2.0"
] | null | null | null | GameEngine/GameEngine/HudHandling.cpp | MrMaguila/SelfMadeGameEngine | c941ea122ec25c1130f113e64c05b2a6a90e9f65 | [
"Apache-2.0"
] | null | null | null | GameEngine/GameEngine/HudHandling.cpp | MrMaguila/SelfMadeGameEngine | c941ea122ec25c1130f113e64c05b2a6a90e9f65 | [
"Apache-2.0"
] | null | null | null | //#############################################################################################
/*
Copyright[2020][Gabriel G. Fernandes]
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.... | 28.351648 | 95 | 0.58876 | MrMaguila |
98ba4f5e90fc43f126875dee7886916d37335969 | 667 | cpp | C++ | Auto/src/main.cpp | GamesTrap/LearnCPP | 710b24876f61e1033aaa0502fc4508250de717c3 | [
"MIT"
] | 7 | 2020-06-14T00:33:29.000Z | 2022-01-08T21:40:06.000Z | Auto/src/main.cpp | GamesTrap/LearnCPP | 710b24876f61e1033aaa0502fc4508250de717c3 | [
"MIT"
] | null | null | null | Auto/src/main.cpp | GamesTrap/LearnCPP | 710b24876f61e1033aaa0502fc4508250de717c3 | [
"MIT"
] | 1 | 2021-04-04T14:14:15.000Z | 2021-04-04T14:14:15.000Z | #include <iostream>
#include <vector>
struct Point
{
int x;
int y;
};
int main()
{
const Point p1{ 100,200 };
const auto p2 = p1; //p2 is also of the type Point
std::cout << "p2.x = " << p2.x << " p2.y = " << p2.y << '\n';
const std::vector<double> v1{ 1.1,2.2,3.3,4.4,5.5 };
auto v2(v1); //v2 is also of the ... | 20.84375 | 62 | 0.562219 | GamesTrap |
98bf1ed05fb5ef621ccad92465d79bbe0f7151ee | 764 | cpp | C++ | codeforce6/1006B. Polycarp's Practice.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce6/1006B. Polycarp's Practice.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | codeforce6/1006B. Polycarp's Practice.cpp | khaled-farouk/My_problem_solving_solutions | 46ed6481fc9b424d0714bc717cd0ba050a6638ef | [
"MIT"
] | null | null | null | /*
Idea:
- Find the `k` largest numbers in array `a`, then
split the array using there indexes.
*/
#include <bits/stdc++.h>
using namespace std;
int const N = 2001;
int n, k, a[N];
pair<int, int> p[N];
vector<int> all;
int main() {
cin >> n >> k;
for(int i = 0; i < n; ++i)
cin >> a[i], p[i].firs... | 18.634146 | 72 | 0.477749 | khaled-farouk |
98c2a21e5af6da28c72455d0605616616a2f908f | 3,925 | cpp | C++ | src/sweepers/cmdo/moc_sweeper_2d3d.cpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 11 | 2016-03-31T17:46:15.000Z | 2022-02-14T01:07:56.000Z | src/sweepers/cmdo/moc_sweeper_2d3d.cpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2016-04-04T16:40:47.000Z | 2019-10-16T22:22:54.000Z | src/sweepers/cmdo/moc_sweeper_2d3d.cpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2019-10-16T22:20:15.000Z | 2019-11-28T11:59:03.000Z | /*
Copyright 2016 Mitchell Young
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 ... | 28.442029 | 78 | 0.618599 | tp-ntouran |
98c2a856e35d43ca07da8bfac888708ebaa4687c | 2,169 | cpp | C++ | Leetcode/0001_to_0050/0020-valid-parentheses/cpp/valid-parentheses.cpp | z-yin/Leetcode-learning | e84c2fb067b767ed5f24d8736274c7ebce5dc00e | [
"MIT"
] | 1 | 2019-07-31T08:44:45.000Z | 2019-07-31T08:44:45.000Z | Leetcode/0001_to_0050/0020-valid-parentheses/cpp/valid-parentheses.cpp | z-yin/Leetcode-learning | e84c2fb067b767ed5f24d8736274c7ebce5dc00e | [
"MIT"
] | null | null | null | Leetcode/0001_to_0050/0020-valid-parentheses/cpp/valid-parentheses.cpp | z-yin/Leetcode-learning | e84c2fb067b767ed5f24d8736274c7ebce5dc00e | [
"MIT"
] | null | null | null | #include <stack>
#include <unordered_map>
using namespace std;
// 0 ms, 8.5 MB. Use switch to check valid pair
class Solution1 {
public:
bool isValid(string s) {
stack<char> stk;
stk.emplace('#');
int i = 0;
while (i < s.size()) {
if (s[i] == '(' || s[i] == '[' ... | 28.168831 | 89 | 0.319041 | z-yin |
98c4102622048c3c23411ea231e12815e0e2addb | 6,666 | cpp | C++ | sources/libcpp83gts_callback_and_action/gts_master.cpp | Savraska2/GTS | 78c8b4d634f1379eb3e33642716717f53bf7e1ad | [
"BSD-3-Clause"
] | 61 | 2016-03-26T03:04:43.000Z | 2021-09-17T02:11:18.000Z | sources/libcpp83gts_callback_and_action/gts_master.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 92 | 2016-04-10T23:40:22.000Z | 2022-03-11T21:49:12.000Z | sources/libcpp83gts_callback_and_action/gts_master.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 18 | 2016-03-26T11:19:14.000Z | 2021-08-07T00:26:02.000Z | #include <FL/x.H> /* for fl_xid() */
#include "pri.h"
#include "ids_path_level_from_files.h"
#include "gts_file_path.h"
#include "gts_master.h"
#include "gts_gui.h"
gts_master::gts_master(
const char *const app_name
,const char *const rele_num
,const char *const rele_date
):
_i_mv_sw(OFF)
,_i_pv_sw(OFF)
,_i_cv_s... | 28.487179 | 67 | 0.693219 | Savraska2 |
98c7b96d1c897ff67a5a8b2f76372fc57ec09efc | 5,804 | cpp | C++ | src/g3dxml/XMLGeometryReader.cpp | WuZixing/Geo3DML-On-HDF5-CPP | d5aa63a04c81f20e5aadf73c76355bb6d82217c7 | [
"MIT"
] | 8 | 2019-04-12T02:23:01.000Z | 2021-06-21T02:03:04.000Z | src/g3dxml/XMLGeometryReader.cpp | WuZixing/Geo3DML-On-HDF5-CPP | d5aa63a04c81f20e5aadf73c76355bb6d82217c7 | [
"MIT"
] | 1 | 2019-04-12T02:28:19.000Z | 2019-08-31T09:53:55.000Z | src/g3dxml/XMLGeometryReader.cpp | WuZixing/Geo3DML-On-HDF5-CPP | d5aa63a04c81f20e5aadf73c76355bb6d82217c7 | [
"MIT"
] | 6 | 2019-04-12T02:23:03.000Z | 2021-05-28T05:21:49.000Z | #include <g3dxml/XMLGeometryReader.h>
#include <g3dxml/XMLTINReader.h>
#include <g3dxml/XMLCornerPointGridReader.h>
#include <g3dxml/XMLUniformGridReader.h>
#include <g3dxml/XMLGeoDiscreteCoverageReader.h>
#include <g3dxml/XMLLineStringReader.h>
#include <g3dxml/XMLPointReader.h>
#include <g3dxml/XMLMultiPointReader.h>... | 34.547619 | 144 | 0.714335 | WuZixing |
98ca5ddfb805836bc9654604a11d55eb701cbf70 | 3,835 | cpp | C++ | cvmfs/consumer/discover-version-iterative.cpp | alhowaidi/cvmfsNDN | bc48cdee6f680307c405835b3d7d2826c5972c13 | [
"BSD-3-Clause"
] | null | null | null | cvmfs/consumer/discover-version-iterative.cpp | alhowaidi/cvmfsNDN | bc48cdee6f680307c405835b3d7d2826c5972c13 | [
"BSD-3-Clause"
] | null | null | null | cvmfs/consumer/discover-version-iterative.cpp | alhowaidi/cvmfsNDN | bc48cdee6f680307c405835b3d7d2826c5972c13 | [
"BSD-3-Clause"
] | null | null | null | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2016, Regents of the University of California,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University.
*
* This file is part of ndn-tools (Named Data Network... | 31.958333 | 97 | 0.715515 | alhowaidi |
98cff36d15b7debbb65541b1e5e56600c90968c8 | 1,534 | hpp | C++ | src/core/kext/Classes/ListHookedKeyboard.hpp | gkb/Karabiner | f47307d4fc89a4c421d10157d059293c508f721a | [
"Unlicense"
] | null | null | null | src/core/kext/Classes/ListHookedKeyboard.hpp | gkb/Karabiner | f47307d4fc89a4c421d10157d059293c508f721a | [
"Unlicense"
] | null | null | null | src/core/kext/Classes/ListHookedKeyboard.hpp | gkb/Karabiner | f47307d4fc89a4c421d10157d059293c508f721a | [
"Unlicense"
] | null | null | null | #ifndef LISTHOOKEDKEYBOARD_HPP
#define LISTHOOKEDKEYBOARD_HPP
#include <IOKit/hidsystem/IOHIKeyboard.h>
#include "ListHookedDevice.hpp"
namespace org_pqrs_Karabiner {
class Params_KeyboardEventCallBack;
class Params_UpdateEventFlagsCallback;
class TimerWrapper;
class ListHookedKeyboard final : public ListHookedDevi... | 26.912281 | 86 | 0.784876 | gkb |
98df39d8fe2846c2a5840c45a2fa51f33a2a1a17 | 5,077 | cpp | C++ | src/net/server.cpp | openfabhub/web | 95ac7400600a7a3f456f0171ee881bbbc36fa9ef | [
"BSD-3-Clause"
] | null | null | null | src/net/server.cpp | openfabhub/web | 95ac7400600a7a3f456f0171ee881bbbc36fa9ef | [
"BSD-3-Clause"
] | null | null | null | src/net/server.cpp | openfabhub/web | 95ac7400600a7a3f456f0171ee881bbbc36fa9ef | [
"BSD-3-Clause"
] | null | null | null | #include "net/server.hpp"
#include "support/asio_log_support.hpp"
#include "support/logger_mixin.hpp"
#include <boost/asio/io_context.hpp>
#include <boost/asio/ip/address.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/strand.hpp>
#include <boost/beast/core/bind_handler.hpp>
#include <boost/beast/core/erro... | 30.401198 | 114 | 0.664369 | openfabhub |
98e0a86919259e0c5cef0c3603f7ab389a4f079a | 974 | cpp | C++ | MathLib/LinAlg/Sparse/NestedDissectionPermutation/CRSMatrixReorderedOpenMP.cpp | WenjieXu/ogs | 0cd1b72ec824833bf949a8bbce073c82158ee443 | [
"BSD-4-Clause"
] | 1 | 2021-11-21T17:29:38.000Z | 2021-11-21T17:29:38.000Z | MathLib/LinAlg/Sparse/NestedDissectionPermutation/CRSMatrixReorderedOpenMP.cpp | WenjieXu/ogs | 0cd1b72ec824833bf949a8bbce073c82158ee443 | [
"BSD-4-Clause"
] | null | null | null | MathLib/LinAlg/Sparse/NestedDissectionPermutation/CRSMatrixReorderedOpenMP.cpp | WenjieXu/ogs | 0cd1b72ec824833bf949a8bbce073c82158ee443 | [
"BSD-4-Clause"
] | null | null | null | /**
* \file
* \author Thomas Fischer
* \date 2012-01-12
* \brief Implementation of the CRSMatrixReorderedOpenMP class.
*
* \copyright
* Copyright (c) 2013, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt... | 26.324324 | 103 | 0.717659 | WenjieXu |
98e1f353a80985320c27c29dad3ea9c81baca7f1 | 31,201 | cpp | C++ | src/test/storage/encoded_segment_test.cpp | youri-k/hyrise | cafd12ed3dc9da425b0139ad68d95a86cd9fc91c | [
"MIT"
] | null | null | null | src/test/storage/encoded_segment_test.cpp | youri-k/hyrise | cafd12ed3dc9da425b0139ad68d95a86cd9fc91c | [
"MIT"
] | null | null | null | src/test/storage/encoded_segment_test.cpp | youri-k/hyrise | cafd12ed3dc9da425b0139ad68d95a86cd9fc91c | [
"MIT"
] | null | null | null | #include <cctype>
#include <memory>
#include <random>
#include <sstream>
#include "base_test.hpp"
#include "constant_mappings.hpp"
#include "storage/create_iterable_from_segment.hpp"
#include "storage/encoding_test.hpp"
#include "storage/encoding_type.hpp"
#include "storage/resolve_encoded_segment_type.hpp"
#include ... | 46.848348 | 119 | 0.750521 | youri-k |
98e76abfdcc5086650bb0de4842708eee552fe7f | 333 | cpp | C++ | 7FA4/1.2/Q1.2.3.2.cpp | XenonWZH/involution | 189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6 | [
"MIT"
] | null | null | null | 7FA4/1.2/Q1.2.3.2.cpp | XenonWZH/involution | 189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6 | [
"MIT"
] | null | null | null | 7FA4/1.2/Q1.2.3.2.cpp | XenonWZH/involution | 189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6 | [
"MIT"
] | null | null | null | ///max-difference=35
#include <cstdio>
int n, a[2001];
int main(){
scanf("%d", &n);
for(int i = 0; i < n; ++i)
scanf("%d", &a[i]);
for(int i = 0; i < n; ++i){
int j = i;
while(a[j] < a[j - 1] && j > 0){
int t = a[j];
a[j] = a[j - 1];
a[j - 1] = t;
j--;
}
}
for(int i = 0; i < n; ++i)
printf("%... | 17.526316 | 34 | 0.402402 | XenonWZH |
98eba06d3c9d73dfe39a6925b190ae3ccede081d | 10,215 | cpp | C++ | Source/AllProjects/CIDKernel/CIDKernel_FileSystem.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/CIDKernel/CIDKernel_FileSystem.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/CIDKernel/CIDKernel_FileSystem.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDKernel_FileSystem.Cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 11/14/1999
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://open... | 30.132743 | 86 | 0.563779 | MarkStega |
98ed9e74e83784e0b8e15572a4a2439efee06b9b | 818 | cpp | C++ | vulkanon/source/spritedoubler.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | 5 | 2020-04-20T02:28:15.000Z | 2021-12-05T22:04:06.000Z | vulkanon/source/spritedoubler.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | null | null | null | vulkanon/source/spritedoubler.cpp | pqrs-org/Vulkanon | 3c161b83e64f18be2ba916055e5761fbc0b61028 | [
"Unlicense"
] | null | null | null | #include <gba_types.h>
#include <gba_video.h>
#include <gba_interrupt.h>
#include "common.hpp"
#include "spritedoubler.hpp"
#include "boost/static_assert.hpp"
OBJATTR SpriteDoubler::zeroclearObjattr[MAX_SPRITE] EWRAM_DATA;
#if 0
EWRAM_DATA OBJATTR SpriteDoubler::sortedOBJATTR[COMPILED_OBJATTR_NUM][MAXITEM];
#else
OBJA... | 38.952381 | 133 | 0.812958 | pqrs-org |
98f47a12706c65732d5fa9405e38afec761440bb | 392 | cpp | C++ | solvers/string_reverser.cpp | yehonatansofri/MS2 | 1eb787e0006c019c7691cb3a11b15ebc5c16e5e9 | [
"OML"
] | null | null | null | solvers/string_reverser.cpp | yehonatansofri/MS2 | 1eb787e0006c019c7691cb3a11b15ebc5c16e5e9 | [
"OML"
] | null | null | null | solvers/string_reverser.cpp | yehonatansofri/MS2 | 1eb787e0006c019c7691cb3a11b15ebc5c16e5e9 | [
"OML"
] | null | null | null | //
// Created by yehonatan on 12/01/2020.
//
#include "string_reverser.h"
string StringReverser::solve(StringWrapper & string_wrapper) {
char tmp;
string str = string_wrapper.getValue();
int length = str.length();
for (int i = 0; i < length / 2; i++) {
tmp = str[i];
str[i] = str[len... | 18.666667 | 62 | 0.563776 | yehonatansofri |
98fa56dfe6e23bf59a702770bebc0581cdb1583b | 123 | cpp | C++ | src/triangle.cpp | movhex/raytracer | 7ce364f5dcc829ac54c81edeee520dabc916c6d8 | [
"BSD-2-Clause"
] | 2 | 2021-11-29T10:59:06.000Z | 2021-11-29T21:26:21.000Z | src/triangle.cpp | movhex/raytracer | 7ce364f5dcc829ac54c81edeee520dabc916c6d8 | [
"BSD-2-Clause"
] | null | null | null | src/triangle.cpp | movhex/raytracer | 7ce364f5dcc829ac54c81edeee520dabc916c6d8 | [
"BSD-2-Clause"
] | null | null | null | #if !defined(HAVE_CUDA)
#include "triangle.h"
#define INCLUDE_IMPLEMENTATION_FILE
#include "triangle_cpu_impl.h"
#endif
| 13.666667 | 35 | 0.788618 | movhex |
98fa7a8224ba040998674d9606ac2d8b9dd4e64b | 4,878 | hpp | C++ | src/mlpack/methods/range_search/rs_model_impl.hpp | jmlevin7878/mlpack | 7fe38005d86b77293f728c34ca176224bdff9ee8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | src/mlpack/methods/range_search/rs_model_impl.hpp | jmlevin7878/mlpack | 7fe38005d86b77293f728c34ca176224bdff9ee8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | src/mlpack/methods/range_search/rs_model_impl.hpp | jmlevin7878/mlpack | 7fe38005d86b77293f728c34ca176224bdff9ee8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file rs_model_impl.hpp
* @author Ryan Curtin
*
* Implementation of Serialize() and inline functions for RSModel.
*/
#ifndef MLPACK_METHODS_RANGE_SEARCH_RS_MODEL_IMPL_HPP
#define MLPACK_METHODS_RANGE_SEARCH_RS_MODEL_IMPL_HPP
// In case it hasn't been included yet.
#include "rs_model.hpp"
namespace mlpack {... | 25.015385 | 78 | 0.693317 | jmlevin7878 |
98faa7bca754f8a260c779adc67cbd04ec43acdd | 15,038 | cpp | C++ | src/Hooks/MaxPlayerHooks.cpp | EnderdracheLP/MultiplayerCore.Quest | fd680fe8eb4dffdd3459059b9058002c3ed24749 | [
"MIT"
] | null | null | null | src/Hooks/MaxPlayerHooks.cpp | EnderdracheLP/MultiplayerCore.Quest | fd680fe8eb4dffdd3459059b9058002c3ed24749 | [
"MIT"
] | null | null | null | src/Hooks/MaxPlayerHooks.cpp | EnderdracheLP/MultiplayerCore.Quest | fd680fe8eb4dffdd3459059b9058002c3ed24749 | [
"MIT"
] | 1 | 2022-03-22T11:36:32.000Z | 2022-03-22T11:36:32.000Z | #include "main.hpp"
#include "Hooks/Hooks.hpp"
#include "GlobalNamespace/MultiplayerOutroAnimationController.hpp"
#include "GlobalNamespace/CreateServerFormController.hpp"
#include "GlobalNamespace/FormattedFloatListSettingsController.hpp"
//Nothing here causes blackscreen crash
using namespace GlobalNamespace;
usin... | 66.539823 | 291 | 0.707408 | EnderdracheLP |
98fd047a2a84e33dab26ee246b871ddee14f0dc1 | 358 | cpp | C++ | 2020/J2.cpp | areskng/CCC | 9069356d74f256898427714940581601bbcfeda3 | [
"MIT"
] | null | null | null | 2020/J2.cpp | areskng/CCC | 9069356d74f256898427714940581601bbcfeda3 | [
"MIT"
] | null | null | null | 2020/J2.cpp | areskng/CCC | 9069356d74f256898427714940581601bbcfeda3 | [
"MIT"
] | null | null | null | //
// Created by tlee0 on 2021-02-25.
//
#include<iostream>
using namespace std;
int main(){
int p, n, r;
cin >> p >> n >> r;
int each_day = n;
int total = n;
int days = 0;
while (total <= p){
total = total + each_day * r;
each_day = each_day * r;
days++;
}
c... | 13.769231 | 37 | 0.477654 | areskng |
98fed38ec28fc967ce8c8092053e912589f44546 | 25,694 | cpp | C++ | testing/testmain.cpp | aras-p/smol-v | 4b52c165c13763051a18e80ffbc2ee436314ceb2 | [
"Unlicense"
] | 267 | 2016-08-27T19:27:23.000Z | 2022-02-14T13:09:09.000Z | testing/testmain.cpp | aras-p/smol-v | 4b52c165c13763051a18e80ffbc2ee436314ceb2 | [
"Unlicense"
] | 4 | 2016-09-06T03:54:37.000Z | 2020-02-13T18:17:29.000Z | testing/testmain.cpp | aras-p/smol-v | 4b52c165c13763051a18e80ffbc2ee436314ceb2 | [
"Unlicense"
] | 18 | 2016-08-30T13:54:49.000Z | 2021-09-18T03:23:09.000Z | // smol-v - tests code - public domain - https://github.com/aras-p/smol-v
// authored on 2016-2020 by Aras Pranckevicius
// no warranty implied; use at your own risk
#define _CRT_SECURE_NO_WARNINGS // yes MSVC, I want to use fopen
#include "../source/smolv.h"
#include "external/lz4/lz4.h"
#include "external/lz4/lz4hc.... | 30.016355 | 147 | 0.682961 | aras-p |
c70255df2e3fd849885d4e031c6ee9ca6d61581b | 7,784 | hpp | C++ | include/pstore/support/bit_count.hpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | include/pstore/support/bit_count.hpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | include/pstore/support/bit_count.hpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- include/pstore/support/bit_count.hpp ---------------*- mode: C++ -*-===//
//* _ _ _ _ *
//* | |__ (_) |_ ___ ___ _ _ _ __ | |_ *
//* | '_ \| | __| / __/ _ \| | | | '_ \| __| *
//* | |_) | | |_ | (_| (_) | |_| | | | | |_ *
//* |_.__/|_|\__| \___\___/ \__,_|_| |_|\__| *... | 41.404255 | 100 | 0.536357 | paulhuggett |
c7025cdeb247094be719f3d3301bbdc2f707a45b | 4,875 | hpp | C++ | include/mmx/bytes_t.hpp | madMAx43v3r/mmx-node | 5b5a5273865f45c7162f384227605aff8d031a24 | [
"Apache-2.0"
] | 154 | 2021-12-24T19:18:15.000Z | 2022-03-24T04:49:45.000Z | include/mmx/bytes_t.hpp | madMAx43v3r/mmx-node | 5b5a5273865f45c7162f384227605aff8d031a24 | [
"Apache-2.0"
] | 33 | 2021-12-26T03:21:54.000Z | 2022-03-24T12:52:40.000Z | include/mmx/bytes_t.hpp | madMAx43v3r/mmx-node | 5b5a5273865f45c7162f384227605aff8d031a24 | [
"Apache-2.0"
] | 23 | 2021-12-26T03:23:33.000Z | 2022-02-20T18:10:45.000Z | /*
* bytes_t.hpp
*
* Created on: Dec 2, 2021
* Author: mad
*/
#ifndef INCLUDE_MMX_BYTES_T_HPP_
#define INCLUDE_MMX_BYTES_T_HPP_
#include <array>
#include <vector>
#include <string>
#include <cstdint>
#include <vnx/Variant.hpp>
#include <vnx/Hash64.hpp>
namespace mmx {
template<size_t N>
class bytes_t {... | 20.228216 | 138 | 0.655385 | madMAx43v3r |
c7036ce70321b1d5643cb73d7a569a3ed3965743 | 1,741 | cpp | C++ | Source/model/TapModel.cpp | talaviram/TICK | 09084814c8d979a9e2146cde679cc2514c79478a | [
"MIT"
] | 11 | 2021-07-04T02:36:32.000Z | 2022-02-24T00:40:45.000Z | Source/model/TapModel.cpp | talaviram/TICK | 09084814c8d979a9e2146cde679cc2514c79478a | [
"MIT"
] | 4 | 2021-07-02T10:31:27.000Z | 2021-12-27T07:17:04.000Z | Source/model/TapModel.cpp | talaviram/TICK | 09084814c8d979a9e2146cde679cc2514c79478a | [
"MIT"
] | null | null | null | #include "TapModel.h"
double TapModel::pushTap (const juce::Time& t)
{
if (tapPoints.size() == 0)
{
tapPoints.push_front (t);
return 0.0;
}
constexpr auto bpmDriftTolerance = 50.0;
const auto prevPoint = tapPoints.front();
tapPoints.push_front (t);
const auto lastTapBpm = ... | 24.871429 | 104 | 0.598507 | talaviram |
c706463ae030c7f4ce35c72e69984de047997dc8 | 223 | cpp | C++ | URI_1001.cpp | UmamaZakir/URI-Online-Judge.-begginer | b0a6d60b48b64790a0a502bbbcbc5c604b09826b | [
"MIT"
] | 1 | 2021-07-11T17:00:52.000Z | 2021-07-11T17:00:52.000Z | URI_1001.cpp | UmamaZakir/URI-Online-Judge.-begginer | b0a6d60b48b64790a0a502bbbcbc5c604b09826b | [
"MIT"
] | null | null | null | URI_1001.cpp | UmamaZakir/URI-Online-Judge.-begginer | b0a6d60b48b64790a0a502bbbcbc5c604b09826b | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long a,b,x;
cin>>a>>b;
x=a+b;
cout<<"X = "<<x<<endl;
return 0;
}
| 13.9375 | 38 | 0.511211 | UmamaZakir |
c711bd48211d5b915ac30ac17a5a27f5aa727112 | 4,088 | cpp | C++ | libcaf_core/test/detail/ini_consumer.cpp | dosuperuser/actor-framework | bee96d84bbc95414df5084b2d65f4886ba731558 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/test/detail/ini_consumer.cpp | dosuperuser/actor-framework | bee96d84bbc95414df5084b2d65f4886ba731558 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/test/detail/ini_consumer.cpp | dosuperuser/actor-framework | bee96d84bbc95414df5084b2d65f4886ba731558 | [
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2020-05-21T20:54:58.000Z | 2020-06-17T13:44:13.000Z | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 34.352941 | 80 | 0.557241 | dosuperuser |
c712af73cde7f357c22547a13637c0949f26f3a4 | 467 | cpp | C++ | src/dnnsynth-train/dnnsynth_train_main.cpp | kroening/fastsynth | 6a8aed3182c7156e3ea4981576e2d29ba4088a3c | [
"BSD-3-Clause"
] | 3 | 2020-06-01T03:07:06.000Z | 2021-01-21T12:42:04.000Z | src/dnnsynth-train/dnnsynth_train_main.cpp | kroening/fastsynth | 6a8aed3182c7156e3ea4981576e2d29ba4088a3c | [
"BSD-3-Clause"
] | 10 | 2019-09-13T21:18:15.000Z | 2020-12-04T01:18:46.000Z | src/dnnsynth-train/dnnsynth_train_main.cpp | kroening/fastsynth | 6a8aed3182c7156e3ea4981576e2d29ba4088a3c | [
"BSD-3-Clause"
] | 2 | 2019-09-13T21:15:53.000Z | 2019-09-15T04:42:31.000Z | #include <iostream>
#include "synth_net.h"
#include "train.h"
#include "produce_training_data.h"
int main()
{
synth_net net;
torch::optim::SGD optimizer(net.parameters(), /*lr=*/0.1);
std::vector<datat> training_data =
produce_training_data();
for(size_t epoch = 1; epoch <= 3; ++epoch)
{
train(ep... | 17.961538 | 60 | 0.663812 | kroening |
c7134e39ef54c0a79b45ec0ddbcc21cec7c8bfed | 6,043 | cpp | C++ | src/windows/options_window.cpp | JDClegg/OutlawBass | 8f4da51135952dbdce2b34266af5732bde92bcf5 | [
"MIT"
] | 9 | 2021-02-02T17:22:52.000Z | 2021-09-28T09:40:50.000Z | src/windows/options_window.cpp | JDClegg/OutlawBass | 8f4da51135952dbdce2b34266af5732bde92bcf5 | [
"MIT"
] | null | null | null | src/windows/options_window.cpp | JDClegg/OutlawBass | 8f4da51135952dbdce2b34266af5732bde92bcf5 | [
"MIT"
] | 2 | 2021-12-09T11:50:22.000Z | 2022-03-25T18:37:38.000Z | #include "options_window.h"
#include "src/display.h"
#include "src/command.h"
#include "src/memory.h"
#include "src/effect_modules/effects_rack.h"
#include "src/effect_modules/IR_filter_effect.h"
options_window options_window_ins;
void options_window::draw()
{
// Draw topic and bottom text boxes
u8g2.setDrawC... | 23.242308 | 121 | 0.543935 | JDClegg |
c7194dfab5693f9387329827cdc29f041c1ee895 | 438 | hpp | C++ | hex_out.hpp | salleaffaire/MXFParser | 9b567ec04a7715ac79ccb3c61ad9fc735f717a5f | [
"MIT"
] | 2 | 2015-06-09T22:13:53.000Z | 2017-06-28T11:33:45.000Z | hex_out.hpp | salleaffaire/MXFParser | 9b567ec04a7715ac79ccb3c61ad9fc735f717a5f | [
"MIT"
] | null | null | null | hex_out.hpp | salleaffaire/MXFParser | 9b567ec04a7715ac79ccb3c61ad9fc735f717a5f | [
"MIT"
] | null | null | null | #ifndef HEX_OUT_HPP___
#define HEX_OUT_HPP___
#include <cstdint>
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
template <typename T>
std::string hex_to_string(T h) {
std::stringstream ss;
ss << sizeof(T) << " --- " << std::hex << std::setw(sizeof(T)*2) << std::setfill('0') << h... | 19.909091 | 96 | 0.657534 | salleaffaire |
c71ef9894f4951b41099db57a723d64a33899550 | 708 | cpp | C++ | _site/Competitive Programming/Hackerrank/LibraryFine.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 1 | 2019-06-10T04:39:49.000Z | 2019-06-10T04:39:49.000Z | _site/Competitive Programming/Hackerrank/LibraryFine.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 2 | 2021-09-27T23:34:07.000Z | 2022-02-26T05:54:27.000Z | _site/Competitive Programming/Hackerrank/LibraryFine.cpp | anujkyadav07/anuj-k-yadav.github.io | ac5cccc8cdada000ba559538cd84921437b3c5e6 | [
"MIT"
] | 3 | 2019-06-23T14:15:08.000Z | 2019-07-09T20:40:58.000Z | #include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
// Complete the libraryFine function below.
int libraryFine(int d1, int m1, int y1, int d2, int m2, int y2) {
int ydiff = y1-y2;
int mdiff = m1-m2;
int ddiff = d1-d2;
if(ydiff > 0){
return 10000;
}else{
... | 22.125 | 65 | 0.478814 | anujkyadav07 |
c71f8dee5c8f4d6436faca2fe927729ec357b934 | 1,977 | hpp | C++ | abcg/external/cppitertools/internal/iter_tuples.hpp | guiarqueiro/entrega3 | 48d7d9828b44f232b51044269a4164056fbe95b8 | [
"MIT"
] | 1,050 | 2015-01-12T21:20:01.000Z | 2022-03-31T12:50:10.000Z | abcg/external/cppitertools/internal/iter_tuples.hpp | guiarqueiro/entrega3 | 48d7d9828b44f232b51044269a4164056fbe95b8 | [
"MIT"
] | 67 | 2015-02-14T18:53:26.000Z | 2022-03-30T06:03:38.000Z | abcg/external/cppitertools/internal/iter_tuples.hpp | guiarqueiro/entrega3 | 48d7d9828b44f232b51044269a4164056fbe95b8 | [
"MIT"
] | 121 | 2015-01-21T00:21:22.000Z | 2022-03-12T01:27:42.000Z | #ifndef ITERTOOLS_ITER_TUPLES_HPP_
#define ITERTOOLS_ITER_TUPLES_HPP_
#include "iterator_wrapper.hpp"
#include "iterbase.hpp"
#include <functional>
namespace iter {
namespace impl {
namespace detail {
template <typename... Ts>
std::tuple<iterator_deref<Ts>...> iterator_tuple_deref_helper(
... | 34.086207 | 80 | 0.700556 | guiarqueiro |
d174881b53655cff93708a48c29d8c8b04d951a1 | 1,696 | cpp | C++ | isis/src/base/objs/Color/Color.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/src/base/objs/Color/Color.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/src/base/objs/Color/Color.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | /** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0 ... | 24.941176 | 99 | 0.606132 | kdl222 |
d1784654c89706c1f4e3afdd6b6907ceab4a4299 | 5,876 | cpp | C++ | Samples/GetIMUData/getIMUData.cpp | LarsHaalck/CeleX5-MIPI | 9f93929f2d3030fa33e0ce892e821f52f810cff4 | [
"Apache-2.0"
] | null | null | null | Samples/GetIMUData/getIMUData.cpp | LarsHaalck/CeleX5-MIPI | 9f93929f2d3030fa33e0ce892e821f52f810cff4 | [
"Apache-2.0"
] | null | null | null | Samples/GetIMUData/getIMUData.cpp | LarsHaalck/CeleX5-MIPI | 9f93929f2d3030fa33e0ce892e821f52f810cff4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2020 CelePixel Technology Co. Ltd. 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 r... | 31.255319 | 116 | 0.642274 | LarsHaalck |
d17aa5b0b1271f86582513ae8a1dac270900c822 | 32,316 | cpp | C++ | source/parser.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | source/parser.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | source/parser.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | /* This file is part of Cloudy and is copyright (C)1978-2019 by Gary J. Ferland and
* others. For conditions of distribution and use see copyright notice in license.txt */
#include "cddefines.h"
#include "parser.h"
#include "called.h"
#include "flux.h"
#include "input.h"
#include "elementnames.h"
#include "service.h... | 21.688591 | 114 | 0.622787 | cloudy-astrophysics |
d17cd6db8922c6304bc8fc3289d3b9e672b51680 | 28,818 | hh | C++ | ncrystal_core/include/NCrystal/NCInfo.hh | highness-eu/ncrystal | 27578ec82380f75f6a7a25190a408e879fe5f849 | [
"Apache-2.0"
] | 1 | 2021-07-29T17:23:58.000Z | 2021-07-29T17:23:58.000Z | ncrystal_core/include/NCrystal/NCInfo.hh | highness-eu/ncrystal | 27578ec82380f75f6a7a25190a408e879fe5f849 | [
"Apache-2.0"
] | null | null | null | ncrystal_core/include/NCrystal/NCInfo.hh | highness-eu/ncrystal | 27578ec82380f75f6a7a25190a408e879fe5f849 | [
"Apache-2.0"
] | 1 | 2022-02-28T10:42:19.000Z | 2022-02-28T10:42:19.000Z | #ifndef NCrystal_Info_hh
#define NCrystal_Info_hh
////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of NCrystal (see https://mctools.github.io/ncrystal/) //
// ... | 46.405797 | 142 | 0.646159 | highness-eu |
d183b10b7412d19d456a83440907910022facb98 | 3,025 | hpp | C++ | saga/saga/packages/advert/version.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | saga/saga/packages/advert/version.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | saga/saga/packages/advert/version.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | // Copyright (c) 2005-2009 Hartmut Kaiser
// Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net)
//
// 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 SAGA_PACKAGE_DATA_ADVERT_VERSION_HPP
#define SAG... | 40.333333 | 81 | 0.593058 | saga-project |
d183d08a3039efcb98eb20ee00d2ea005bbe9eb5 | 2,801 | cpp | C++ | projects/Example/src/main.cpp | GatorQue/gqp | 8a16315f11edb2b6c3f3aa4938d02a15d212773e | [
"MIT"
] | null | null | null | projects/Example/src/main.cpp | GatorQue/gqp | 8a16315f11edb2b6c3f3aa4938d02a15d212773e | [
"MIT"
] | null | null | null | projects/Example/src/main.cpp | GatorQue/gqp | 8a16315f11edb2b6c3f3aa4938d02a15d212773e | [
"MIT"
] | null | null | null | /**
* This is the starting point for all new projects. This file's purpose is
* pretty small, but important. In here we create our application and begin
* the primary game loop.
*
* @file src/main.cpp
* @author Ryan Lindeman
* @date 20100707 - Initial Release
* @date 20120504 - Fix missing gLogger var... | 37.346667 | 81 | 0.716173 | GatorQue |
d18b8eb17038f1b8393e8f634f2d1f183ee7dead | 1,232 | cpp | C++ | src/org/apache/poi/ss/util/IEEEDouble.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/util/IEEEDouble.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/util/IEEEDouble.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/util/IEEEDouble.java
#include <org/apache/poi/ss/util/IEEEDouble.hpp>
poi::ss::util::IEEEDouble::IEEEDouble(const ::default_init_tag&)
: super(*static_cast< ::default_init_tag* >(0))
{
clinit();
}
poi::ss::util::IEEEDouble::IEEEDouble()
: IEEEDouble(*static_ca... | 26.212766 | 87 | 0.712662 | pebble2015 |
d192cd07fc3378989588df02c1d636d519e43c35 | 1,140 | cpp | C++ | random/just_half.cpp | zephyr-fun/LeetCodeSolution | adab165bcd269daf3e611a26187977ccd458d02a | [
"MIT"
] | null | null | null | random/just_half.cpp | zephyr-fun/LeetCodeSolution | adab165bcd269daf3e611a26187977ccd458d02a | [
"MIT"
] | null | null | null | random/just_half.cpp | zephyr-fun/LeetCodeSolution | adab165bcd269daf3e611a26187977ccd458d02a | [
"MIT"
] | null | null | null | /***
* Author: zephyr
* Date: 2020-11-25 09:21:48
* LastEditors: zephyr
* LastEditTime: 2020-11-25 21:27:06
* FilePath: \LeetCodeSolution\random\just_half.cpp
*/
#include <iostream>
using namespace std;
int majorityElement(int* data,int nums)
{
int count = 1, cur = data[0];
for(int i = 1; i < nums; i++)... | 17.538462 | 55 | 0.435088 | zephyr-fun |
d197f8d9fbd01c41d42c5bc6eaf8f5ac8127ce42 | 12,678 | cpp | C++ | DeepSpace/src/main/cpp/OI.cpp | NorthernForce/DeepSpace | b8446f0fb732e7df030970332574e13d94e79df9 | [
"MIT"
] | 3 | 2019-01-08T00:09:56.000Z | 2020-03-12T03:05:20.000Z | DeepSpace/src/main/cpp/OI.cpp | NorthernForce/DeepSpace | b8446f0fb732e7df030970332574e13d94e79df9 | [
"MIT"
] | 12 | 2019-01-17T00:33:54.000Z | 2019-06-27T01:56:18.000Z | DeepSpace/src/main/cpp/OI.cpp | NorthernForce/DeepSpace | b8446f0fb732e7df030970332574e13d94e79df9 | [
"MIT"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory... | 59.242991 | 231 | 0.758164 | NorthernForce |
d19f409a37e5bd3e5b6022454970520a7d0eb3d9 | 1,602 | cpp | C++ | Codeforces/901A/constructive.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | Codeforces/901A/constructive.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | Codeforces/901A/constructive.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <string>
#include <iomanip>
#include <climits>
#define SIZE 200001
using namespace std;
int arr[SIZE];
int main()
{
ios::sync_with_stdio(false);
int height;
cin >> height;
bool isAmbiguous = false;
... | 20.538462 | 52 | 0.367665 | codgician |
d1a058198894abbec4d9bca6f6a12b3c74e465f4 | 3,586 | cpp | C++ | plistgenerator.cpp | marcel303/chibi | 9c7409be8ea448af9b440d72001bf480c8d2c45c | [
"Linux-OpenIB"
] | 1 | 2020-10-28T09:25:45.000Z | 2020-10-28T09:25:45.000Z | plistgenerator.cpp | marcel303/chibi | 9c7409be8ea448af9b440d72001bf480c8d2c45c | [
"Linux-OpenIB"
] | null | null | null | plistgenerator.cpp | marcel303/chibi | 9c7409be8ea448af9b440d72001bf480c8d2c45c | [
"Linux-OpenIB"
] | null | null | null | #include "plistgenerator.h"
#include "stringbuilder.h"
#include <stdio.h>
#include <sys/stat.h>
#define TEMPLATE_FROM_FILE 0
static const char * header_text = R"TEXT(<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<... | 22.696203 | 111 | 0.703291 | marcel303 |
d1a13956596a6514d3be5b7cf97213bebb6baf8c | 33,822 | hh | C++ | hackt_docker/hackt/src/util/nested_iterator.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/util/nested_iterator.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/util/nested_iterator.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "util/nested_iterator.hh"
Iterator for container of containers that gives the
abstraction of an iterator of the inner container.
\todo Specify all pre-conditions, post-conditions, and semantics.
$Id: nested_iterator.hh,v 1.7 2006/11/07 06:35:39 fang Exp $
*/
#ifndef __UTIL_NESTED_ITERATOR_H__
#d... | 31.462326 | 101 | 0.689137 | broken-wheel |
d1a1b0ec6fb0be9bca1fb2402a2a074f294c9f0b | 95,300 | cc | C++ | include/windows/google/protobuf/util/internal/testdata/field_mask.pb.cc | Thanalan/GameBookServer-master | 506b4fe1eece1a3c0bd1100fe14764b63885b2bf | [
"MIT"
] | 83 | 2019-12-03T08:42:15.000Z | 2022-03-30T13:22:37.000Z | include/windows/google/protobuf/util/internal/testdata/field_mask.pb.cc | Thanalan/GameBookServer-master | 506b4fe1eece1a3c0bd1100fe14764b63885b2bf | [
"MIT"
] | 1 | 2021-08-06T10:40:57.000Z | 2021-08-09T06:33:43.000Z | include/windows/google/protobuf/util/internal/testdata/field_mask.pb.cc | Thanalan/GameBookServer-master | 506b4fe1eece1a3c0bd1100fe14764b63885b2bf | [
"MIT"
] | 45 | 2020-05-29T03:22:48.000Z | 2022-03-21T16:19:01.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/util/internal/testdata/field_mask.proto
#include "google/protobuf/util/internal/testdata/field_mask.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google... | 41.89011 | 296 | 0.736642 | Thanalan |
d1a707b105d1f8b1637c1809f8af80e94944e4cb | 1,653 | cpp | C++ | src/AST/FunctionDeclAST.cpp | SilverJun/SWING | 0a9c35d74b3ec75d349a14a59e4d731dbd016069 | [
"MIT"
] | 8 | 2017-07-17T16:12:20.000Z | 2021-02-20T13:18:33.000Z | src/AST/FunctionDeclAST.cpp | SilverJun/SWING | 0a9c35d74b3ec75d349a14a59e4d731dbd016069 | [
"MIT"
] | null | null | null | src/AST/FunctionDeclAST.cpp | SilverJun/SWING | 0a9c35d74b3ec75d349a14a59e4d731dbd016069 | [
"MIT"
] | 1 | 2020-02-19T06:51:03.000Z | 2020-02-19T06:51:03.000Z | #include "FunctionDeclAST.h"
#include "SwingCompiler.h"
#include <llvm/IR/Function.h>
#include <llvm/IR/Verifier.h>
#include "Type.h"
#include "Error.h"
#include <iostream>
#include <llvm/Support/raw_os_ostream.h>
namespace swing
{
DeclAST::DeclPtr FunctionDeclAST::Create(TokenIter& iter)
{
FunctionDeclAST* ast = ... | 21.75 | 83 | 0.643073 | SilverJun |
d1ab765ae110bd1063145bc584e37b46e4a12ab9 | 406 | cpp | C++ | Engine/src/Prefabs/Mouse.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | 1 | 2021-07-08T22:51:59.000Z | 2021-07-08T22:51:59.000Z | Engine/src/Prefabs/Mouse.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | null | null | null | Engine/src/Prefabs/Mouse.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | null | null | null | #include "enginepch.h"
#include "Prefabs/Mouse.h"
#include "Components/Transformation.h"
using namespace entt::literals;
namespace Engine::Prefab {
entt::handle Mouse::create(entt::registry& reg) {
entt::handle mouse= {reg, reg.create()};
reg.emplace<entt::tag<"MOUSE"_hs>>(mouse);
reg.emplace<Component::Tran... | 22.555556 | 63 | 0.70936 | Shorakie |
d1b25ad47770c22ac14b5a2478a276dfc37a6caa | 6,987 | hpp | C++ | include/paal/utils/read_svm.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | include/paal/utils/read_svm.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | include/paal/utils/read_svm.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | 1 | 2021-02-24T06:23:56.000Z | 2021-02-24T06:23:56.000Z | //=======================================================================
// Copyright (c) 2014 Andrzej Pacuk
//
// 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)
//=================================================... | 27.081395 | 109 | 0.626878 | Kommeren |
d1b45f51e6702fd7ff8fb2abab395de584be1d8c | 2,544 | cpp | C++ | subseq/cpp_sources/WaveletTree.cpp | bluesheeptoken/subseq | b499e28c5be52dca18baa16f3a23526381c94c41 | [
"MIT"
] | 9 | 2020-11-13T14:47:28.000Z | 2022-01-02T17:04:50.000Z | subseq/cpp_sources/WaveletTree.cpp | bluesheeptoken/subseq | b499e28c5be52dca18baa16f3a23526381c94c41 | [
"MIT"
] | 2 | 2021-04-22T17:58:27.000Z | 2022-01-03T12:29:23.000Z | subseq/cpp_sources/WaveletTree.cpp | bluesheeptoken/subseq | b499e28c5be52dca18baa16f3a23526381c94c41 | [
"MIT"
] | 1 | 2021-12-28T20:53:38.000Z | 2021-12-28T20:53:38.000Z | #include "WaveletTree.hpp"
#include <algorithm>
#include <utility>
WaveletTree::WaveletTree() {}
WaveletTree::WaveletTree(Letters values, int alphabet_size) {
int node_numbers = alphabet_size * 2 - 1;
m_children.resize(node_numbers);
m_bitsets.resize(node_numbers);
m_values.resize(node_numbers);
... | 32.202532 | 73 | 0.664701 | bluesheeptoken |
d1b4aa53239ded45933671bde459f77cc11dce57 | 1,279 | hpp | C++ | include/athena/ALTTPFileWriter.hpp | encounter/athena | 6adba82abd8b7f48e6eca9f74361d0c605bc9ec8 | [
"MIT"
] | 1 | 2017-01-21T05:14:50.000Z | 2017-01-21T05:14:50.000Z | include/athena/ALTTPFileWriter.hpp | Jcw87/athena | a4074e1a5792b424cc6a82cc6caa6a39d00680b4 | [
"MIT"
] | 6 | 2016-07-12T08:58:28.000Z | 2019-12-11T04:46:34.000Z | include/athena/ALTTPFileWriter.hpp | Jcw87/athena | a4074e1a5792b424cc6a82cc6caa6a39d00680b4 | [
"MIT"
] | 4 | 2016-09-04T23:11:45.000Z | 2020-02-15T20:19:29.000Z | #pragma once
#include <string>
#include "athena/MemoryWriter.hpp"
#include "athena/ALTTPQuest.hpp"
namespace athena {
class ALTTPFile;
namespace io {
/*! \class ALTTPFileWriter
* \brief A Link to the Past save data writer class
*
* A Class for writing binary data to an ALTTP Save File,
* all wor... | 26.645833 | 82 | 0.693511 | encounter |
d1be86fb59e7615c9c6db732b2feb09962086790 | 184 | hpp | C++ | include/vessel.hpp | Data-Structures-UFMG-2019-2/ds-measurements | 0f8c725818fa59e3fe6ea278bcdb4a3fd4b1be46 | [
"MIT"
] | null | null | null | include/vessel.hpp | Data-Structures-UFMG-2019-2/ds-measurements | 0f8c725818fa59e3fe6ea278bcdb4a3fd4b1be46 | [
"MIT"
] | null | null | null | include/vessel.hpp | Data-Structures-UFMG-2019-2/ds-measurements | 0f8c725818fa59e3fe6ea278bcdb4a3fd4b1be46 | [
"MIT"
] | null | null | null | #ifndef VESSEL_H
#define VESSEL_H
class Vessel{
private:
int capacity;
public:
Vessel(int capacity);
~Vessel();
int get_capacity();
};
#endif | 13.142857 | 29 | 0.576087 | Data-Structures-UFMG-2019-2 |
d1bfb1efd546d5b417317d840d2b11d83b3d716b | 10,079 | cpp | C++ | kernels/matrix-multiply/matrix-multiply.cpp | jholewinski/llvm-ptx-samples | 2064b14fd900caa9546fb861c90ffcb7ab19fa24 | [
"MIT"
] | 15 | 2015-01-30T01:08:08.000Z | 2022-03-16T10:49:08.000Z | kernels/matrix-multiply/matrix-multiply.cpp | jholewinski/llvm-ptx-samples | 2064b14fd900caa9546fb861c90ffcb7ab19fa24 | [
"MIT"
] | null | null | null | kernels/matrix-multiply/matrix-multiply.cpp | jholewinski/llvm-ptx-samples | 2064b14fd900caa9546fb861c90ffcb7ab19fa24 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2011 by Justin Holewinski
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... | 33.936027 | 115 | 0.670503 | jholewinski |
d1c0257e91f9a18c875356fb62957dda12ec4d69 | 465 | cpp | C++ | src/core/map/recreate_borders_map_element.cpp | Reaping2/Reaping2 | 0d4c988c99413e50cc474f6206cf64176eeec95d | [
"MIT"
] | 3 | 2015-02-22T20:34:28.000Z | 2020-03-04T08:55:25.000Z | src/core/map/recreate_borders_map_element.cpp | Reaping2/Reaping2 | 0d4c988c99413e50cc474f6206cf64176eeec95d | [
"MIT"
] | 22 | 2015-12-13T16:29:40.000Z | 2017-03-04T15:45:44.000Z | src/core/map/recreate_borders_map_element.cpp | Reaping2/Reaping2 | 0d4c988c99413e50cc474f6206cf64176eeec95d | [
"MIT"
] | 14 | 2015-11-23T21:25:09.000Z | 2020-07-17T17:03:23.000Z | #include "core/map/recreate_borders_map_element.h"
namespace map {
RecreateBordersMapElement::RecreateBordersMapElement( int32_t Id )
: MapElement( Id )
, BaseInput()
{
}
void RecreateBordersMapElement::Load( Json::Value const& setters )
{
MapElement::Load( setters );
AddInputNodeId( RecreateNodeId()... | 18.6 | 66 | 0.716129 | Reaping2 |
d1c542a7fa78fe6b455cdf4112663935d6d00aa0 | 1,866 | cpp | C++ | UVA00763.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 17 | 2015-12-08T18:50:03.000Z | 2022-03-16T01:23:20.000Z | UVA00763.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | null | null | null | UVA00763.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 6 | 2017-04-04T18:16:23.000Z | 2020-06-28T11:07:22.000Z | #include <iostream>
#include <algorithm>
using namespace std;
int fib[200];
void fix(int i) {
while (fib[i] > 1) {
fib[i] -= 2;
if (i == 0) {
fib[1] += 1;
if (fib[1] > 1) fix(1);
} else if (i == 1) {
fib[2] += 1;
fib[0] += 1;
if (... | 25.916667 | 73 | 0.315648 | MaSteve |
d1cb82b25a7781214bd6e05910b6ba6cb7a8591b | 495 | cc | C++ | src/interpreter/command/mc-cmd-leave.cc | babynewton/mycurl | 4701659ca5cb8b2f140ed07e9dc76764be3a9bc0 | [
"MIT"
] | null | null | null | src/interpreter/command/mc-cmd-leave.cc | babynewton/mycurl | 4701659ca5cb8b2f140ed07e9dc76764be3a9bc0 | [
"MIT"
] | null | null | null | src/interpreter/command/mc-cmd-leave.cc | babynewton/mycurl | 4701659ca5cb8b2f140ed07e9dc76764be3a9bc0 | [
"MIT"
] | null | null | null | #include "command/mc-cmd-leave.h"
#include <cstdio>
void mcCmdLeave::help(void){
fprintf(stdout, "Usage: leave\n");
fprintf(stdout, " leave current url.\n");
fprintf(stdout, " the opened url is not closed.\n");
}
mcLanguageState mcCmdLeave::parse(mcScanner& scanner, mcIPerformer* performer){
mcToken token = sca... | 27.5 | 79 | 0.713131 | babynewton |
d1cf2bacb47df6a1e522ebd45c55b1e92aab9b42 | 928 | cpp | C++ | GeeksforGeeks/Complete Interview Preparation/Stack/stockSpan.cpp | rs-ravi2/Codes | 8fc8bb64b429b3825e52394916c623ffcd0d5e21 | [
"MIT"
] | null | null | null | GeeksforGeeks/Complete Interview Preparation/Stack/stockSpan.cpp | rs-ravi2/Codes | 8fc8bb64b429b3825e52394916c623ffcd0d5e21 | [
"MIT"
] | null | null | null | GeeksforGeeks/Complete Interview Preparation/Stack/stockSpan.cpp | rs-ravi2/Codes | 8fc8bb64b429b3825e52394916c623ffcd0d5e21 | [
"MIT"
] | null | null | null | // C++ linear time solution for stock span problem
#include <iostream>
#include <stack>
using namespace std;
// A stack based efficient method to calculate
// stock span values
void calculateSpan(int arr[], int n, int S[])
{
stack<int> s;
s.push(0);
S[0] = 1;
for(int i=1;i<n;i++){
while(!s.em... | 20.622222 | 53 | 0.546336 | rs-ravi2 |
d1d4eb8423352402be22e0e9ef5a9dfc5d83a4af | 2,447 | cpp | C++ | src/protocols/FSK4/FSK4.cpp | sobieh/RadioLib | 49f9304dbfdfef5de6d0c2fae754cd89d832e2cf | [
"MIT"
] | 1 | 2021-09-06T08:21:32.000Z | 2021-09-06T08:21:32.000Z | src/protocols/FSK4/FSK4.cpp | sobieh/RadioLib | 49f9304dbfdfef5de6d0c2fae754cd89d832e2cf | [
"MIT"
] | null | null | null | src/protocols/FSK4/FSK4.cpp | sobieh/RadioLib | 49f9304dbfdfef5de6d0c2fae754cd89d832e2cf | [
"MIT"
] | 1 | 2021-09-08T15:12:33.000Z | 2021-09-08T15:12:33.000Z | #include "FSK4.h"
#if !defined(RADIOLIB_EXCLUDE_FSK4)
FSK4Client::FSK4Client(PhysicalLayer* phy) {
_phy = phy;
#if !defined(RADIOLIB_EXCLUDE_AFSK)
_audio = nullptr;
#endif
}
#if !defined(RADIOLIB_EXCLUDE_AFSK)
FSK4Client::FSK4Client(AFSKClient* audio) {
_phy = audio->_phy;
_audio = audio;
}
#endif
in... | 21.094828 | 72 | 0.646915 | sobieh |
d1d5ed44afcfcbad3b58a1b9dcad697e03b55028 | 343 | cpp | C++ | NestedLoops/MultiplicationTable/MultiplicationTable.cpp | ayk-dev/CPP_Basics | 1bafdb1b84e29167983f8b6bfb9aeb56eb7be2bb | [
"MIT"
] | null | null | null | NestedLoops/MultiplicationTable/MultiplicationTable.cpp | ayk-dev/CPP_Basics | 1bafdb1b84e29167983f8b6bfb9aeb56eb7be2bb | [
"MIT"
] | null | null | null | NestedLoops/MultiplicationTable/MultiplicationTable.cpp | ayk-dev/CPP_Basics | 1bafdb1b84e29167983f8b6bfb9aeb56eb7be2bb | [
"MIT"
] | null | null | null | // MultiplicationTable.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
using namespace std;
int main()
{
for (int a = 1; a <= 10; a++) {
for (int b = 1; b <= 10; b++) {
cout << a << " * " << b << " = " << a * b << endl;
}
... | 18.052632 | 109 | 0.492711 | ayk-dev |
d1d98d978764867a3e883467b424349ae35e4aeb | 550 | cpp | C++ | lc/bd/0206.cpp | Aeon113/Notes | 2fd9c9f7a94d79deacd9c6ae3edc13da11cb3a04 | [
"BSD-3-Clause"
] | null | null | null | lc/bd/0206.cpp | Aeon113/Notes | 2fd9c9f7a94d79deacd9c6ae3edc13da11cb3a04 | [
"BSD-3-Clause"
] | null | null | null | lc/bd/0206.cpp | Aeon113/Notes | 2fd9c9f7a94d79deacd9c6ae3edc13da11cb3a04 | [
"BSD-3-Clause"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* reverseList(ListNode* head) {... | 17.1875 | 59 | 0.583636 | Aeon113 |
d1da30c09f46b48fee190b2404956a8a96f27920 | 855 | cpp | C++ | Spell/FireSpell.cpp | SimonIyamu/Arcade-RPG | dc32fda844a8bd676cb50e1dd87f7c3133ac8978 | [
"MIT"
] | 3 | 2020-03-13T20:44:58.000Z | 2022-02-08T16:28:13.000Z | Spell/FireSpell.cpp | SimonIyamu/Arcade-RPG | dc32fda844a8bd676cb50e1dd87f7c3133ac8978 | [
"MIT"
] | null | null | null | Spell/FireSpell.cpp | SimonIyamu/Arcade-RPG | dc32fda844a8bd676cb50e1dd87f7c3133ac8978 | [
"MIT"
] | 1 | 2019-07-16T14:32:43.000Z | 2019-07-16T14:32:43.000Z | //
// FireSpell.cpp
// game
//
// Created by Κωνσταντίνος Πυθαρούλιος on 11/1/18.
// Copyright © 2018 Κωνσταντίνος Πυθαρούλιος. All rights reserved.
//
#include "FireSpell.hpp"
using namespace std;
//constructor
FireSpell::FireSpell(string NAME,int PRICE, int MIN_LEVEL, int MIN_DAMAGE, int MAX_DAMAGE, int MAGIC_... | 25.909091 | 231 | 0.704094 | SimonIyamu |
d1e3a2730d1c132cddff2b87742d4c21bcae7db4 | 296 | cpp | C++ | a/a148.cpp | mirkat1206/zerojudge_cpp | 263cd51f4eee4acec8396f6c069bba540ac15e96 | [
"BSD-2-Clause"
] | 1 | 2019-12-27T03:03:50.000Z | 2019-12-27T03:03:50.000Z | a/a148.cpp | mirkat1206/zerojudge_cpp | 263cd51f4eee4acec8396f6c069bba540ac15e96 | [
"BSD-2-Clause"
] | null | null | null | a/a148.cpp | mirkat1206/zerojudge_cpp | 263cd51f4eee4acec8396f6c069bba540ac15e96 | [
"BSD-2-Clause"
] | null | null | null | // a148 : You Cannot Pass?!
#include <cstdio>
int main()
{
int n;
while( scanf("%d", &n )!=EOF )
{
int sum = 0, buf ;
for (int i=0; i<n; ++i)
{
scanf("%d", &buf );
sum += buf;
}
if( sum > 59*n )
printf("no\n");
else
printf("yes\n");
}
return 0;
} | 14.095238 | 32 | 0.439189 | mirkat1206 |
d1e4261e3a056ec9bef180c530ffa6ebf1d29e04 | 2,181 | cpp | C++ | firmware/modules/core/console.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 2 | 2021-02-09T16:17:43.000Z | 2021-08-09T04:02:44.000Z | firmware/modules/core/console.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 2 | 2016-05-17T20:45:10.000Z | 2020-03-10T07:03:39.000Z | firmware/modules/core/console.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 1 | 2020-05-24T13:37:55.000Z | 2020-05-24T13:37:55.000Z | #include "console.h"
namespace sensact {
char* Console::bf;
char Console::buf[12];
int32_t Console::num;
char Console::uc;
char Console::zs;
void Console::out(char c) {
*bf++ = c;
}
void Console::outDgt(char dgt) {
out(dgt + (dgt < 10 ? '0' : (uc ? 'A' : 'a') - 10));
zs = 1;
}
void Console::divOut(uint32_t di... | 16.648855 | 64 | 0.494727 | klaus-liebler |
d1f188d283034cd70dd99fae6678310ee1391493 | 4,589 | cpp | C++ | src/backends/neon/test/NeonLayerSupportTests.cpp | Srivathsav-max/armnn-clone | af2daa6526623c91ee97f7141be4d1b07de92a48 | [
"MIT"
] | 1 | 2022-03-31T18:21:59.000Z | 2022-03-31T18:21:59.000Z | src/backends/neon/test/NeonLayerSupportTests.cpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | src/backends/neon/test/NeonLayerSupportTests.cpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "NeonWorkloadFactoryHelper.hpp"
#include <layers/ConvertFp16ToFp32Layer.hpp>
#include <layers/ConvertFp32ToFp16Layer.hpp>
#include <armnnTestUtils/TensorHelpers.hpp>
#include <armnn/backends/TensorHandle.hpp>
#include <n... | 31.431507 | 105 | 0.76509 | Srivathsav-max |
d1f2f9cd165d04b523bc58b4bbbaa28cf1c95eb0 | 2,343 | cpp | C++ | RDMA-2_dummy-ipc-app/sock_client.cpp | Ksld154/rdma-apps | ba26a6290562b4d745d0192d419e72db3750d198 | [
"MIT"
] | null | null | null | RDMA-2_dummy-ipc-app/sock_client.cpp | Ksld154/rdma-apps | ba26a6290562b4d745d0192d419e72db3750d198 | [
"MIT"
] | null | null | null | RDMA-2_dummy-ipc-app/sock_client.cpp | Ksld154/rdma-apps | ba26a6290562b4d745d0192d419e72db3750d198 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <iostream>
#include <string>
#include "ipc.h"
using namespace std;
class sock_client {
private:
int fd;
struct sockaddr_un addr;
char buff[8192];
// int len;
publi... | 19.689076 | 67 | 0.547162 | Ksld154 |
d1f48ceb6746892c367c1344362d10f3d9494446 | 724 | cpp | C++ | CSC/CSC114/GaddisExamples/Chapter21/Pr21-2.cpp | HNSS-US/DelTech | a424da4e10ec0a33caaa6ed1c1d78837bdc6b0a2 | [
"MIT"
] | 4 | 2020-02-14T23:54:05.000Z | 2022-01-30T18:29:06.000Z | SourceCode/Chapter 20/Pr20-2.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | null | null | null | SourceCode/Chapter 20/Pr20-2.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 6 | 2020-02-24T07:06:47.000Z | 2022-02-03T02:46:46.000Z | // This program builds a binary tree with 5 nodes.
// The nodes are displayed with inorder, preorder,
// and postorder algorithms.
#include <iostream>
#include "IntBinaryTree.h"
using namespace std;
int main()
{
IntBinaryTree tree;
// Insert some nodes.
cout << "Inserting nodes.\n";
tree.inse... | 22.625 | 51 | 0.639503 | HNSS-US |
d1f49a44fd3b53c8a22c0b36638d7b1a7db2f379 | 351 | cpp | C++ | PathTracer/viewer/src/MainWindow.cpp | fannart/MastersProject | 8f4717dc3dd0793ab005c23cc97e19c66e66da51 | [
"MIT"
] | null | null | null | PathTracer/viewer/src/MainWindow.cpp | fannart/MastersProject | 8f4717dc3dd0793ab005c23cc97e19c66e66da51 | [
"MIT"
] | null | null | null | PathTracer/viewer/src/MainWindow.cpp | fannart/MastersProject | 8f4717dc3dd0793ab005c23cc97e19c66e66da51 | [
"MIT"
] | null | null | null | #include "MainWindow.h"
#include "ui_MainWindow.h"
#include "PathTraceWidget.h"
#include <iostream>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
std::cout << "MainWindow()" << std::endl;
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
std::cout << "~MainWindow()... | 16.714286 | 44 | 0.663818 | fannart |
d1f52c6c257a7f07b0228922691a7e248c061491 | 8,112 | cpp | C++ | TreeDisplay.cpp | ashley-b/PothosTreeWidget | ad401fede3b96a886656560fb81743de0a0e017a | [
"BSL-1.0"
] | 2 | 2017-10-30T04:54:55.000Z | 2018-02-23T04:32:40.000Z | TreeDisplay.cpp | ashley-b/PothosTreeWidget | ad401fede3b96a886656560fb81743de0a0e017a | [
"BSL-1.0"
] | null | null | null | TreeDisplay.cpp | ashley-b/PothosTreeWidget | ad401fede3b96a886656560fb81743de0a0e017a | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017-2017 Ashley Brighthope
// SPDX-License-Identifier: BSL-1.0
#include <Pothos/Framework.hpp>
#include <QBoxLayout>
#include <QLabel>
#include <QTreeView>
#include <QHeaderView>
#include <QStandardItemModel>
#include <Poco/Logger.h>
/*****************************************************************... | 34.227848 | 132 | 0.584443 | ashley-b |
d1ff6270ef168134b96f246fbc89f07b8f5664d9 | 26,926 | cc | C++ | toolkit/fdtd.cc | teenylasers/eggshell | 7d1239eb1b143b11b5ccd1029d9bacdd601c8e4e | [
"ICU",
"OpenSSL"
] | null | null | null | toolkit/fdtd.cc | teenylasers/eggshell | 7d1239eb1b143b11b5ccd1029d9bacdd601c8e4e | [
"ICU",
"OpenSSL"
] | 127 | 2017-11-01T01:28:28.000Z | 2021-03-18T05:12:21.000Z | toolkit/fdtd.cc | teenylasers/eggshell | 7d1239eb1b143b11b5ccd1029d9bacdd601c8e4e | [
"ICU",
"OpenSSL"
] | 2 | 2017-10-20T01:16:49.000Z | 2018-11-04T02:36:53.000Z | // Copyright (C) 2014-2020 Russell Smith.
//
// This program is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation, either version 3 of the License, or (at your option)
// any later version.
//
// This program is d... | 39.308029 | 80 | 0.606737 | teenylasers |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.