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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4e51f271aecf904b2424b36143a1c72d9b01eeae | 362 | cpp | C++ | Coding Blocks cpp beginner/16.Recursion Basics/03_RecursionArrayisSorted.cpp | saqeeb360/Coding-block-C- | 16cbf706c6a4a704bb07a4a535b64e03c381cd8d | [
"MIT"
] | 4 | 2021-02-27T07:12:03.000Z | 2021-09-19T07:52:33.000Z | Coding Blocks cpp beginner/16.Recursion Basics/03_RecursionArrayisSorted.cpp | saqeeb360/Coding-block-C- | 16cbf706c6a4a704bb07a4a535b64e03c381cd8d | [
"MIT"
] | null | null | null | Coding Blocks cpp beginner/16.Recursion Basics/03_RecursionArrayisSorted.cpp | saqeeb360/Coding-block-C- | 16cbf706c6a4a704bb07a4a535b64e03c381cd8d | [
"MIT"
] | 3 | 2021-05-31T06:25:56.000Z | 2021-10-03T12:01:36.000Z | #include <iostream>
using namespace std;
bool isSorted(int *arr, int n){
// Base case
if(n==0 or n==1){
return true;
}
// Recursive case
if(arr[0] < arr[1] and isSorted(arr+1, n-1)){
return true;
}
return false;
}
int main(){
int arr[] = {1,2,3,14,5};
int n = sizeof(arr)/sizeof(arr[0]... | 16.454545 | 47 | 0.560773 | saqeeb360 |
4e520af78139638ee0561e19b8578b1173ededcb | 857 | hpp | C++ | Semaforo/src/Eventos/EntraCarro.hpp | luizfnunesmarques/datastructures | b37e399e0f1ff184f5f245cad6f89ce8419034a7 | [
"Apache-2.0"
] | null | null | null | Semaforo/src/Eventos/EntraCarro.hpp | luizfnunesmarques/datastructures | b37e399e0f1ff184f5f245cad6f89ce8419034a7 | [
"Apache-2.0"
] | null | null | null | Semaforo/src/Eventos/EntraCarro.hpp | luizfnunesmarques/datastructures | b37e399e0f1ff184f5f245cad6f89ce8419034a7 | [
"Apache-2.0"
] | null | null | null | /*
* EntraCarro.hpp
*
* Created on: 27/04/2015
* Author: LuizF
*/
#ifndef ENTRACARRO_HPP_
#define ENTRACARRO_HPP_
using namespace std;
#include "EventoDePista.hpp"
#include "CarroChegouFim.hpp"
#include "../Pista/Pista.hpp"
#include "../Relogio.hpp"
#include <tuple>
class EntraCarro: public EventoDePista {... | 20.404762 | 90 | 0.70245 | luizfnunesmarques |
4e557e401d9b4c8bd264f279ad85d4652e3454c1 | 5,212 | hpp | C++ | Testbench/lambda.tests.hpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 28 | 2018-07-23T06:52:19.000Z | 2021-09-07T22:15:52.000Z | Testbench/lambda.tests.hpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 17 | 2018-09-13T13:29:05.000Z | 2021-01-04T09:23:31.000Z | Testbench/lambda.tests.hpp | gpdaniels/gtl | cd495343c5e89395be063a3dff6dfc41492c9677 | [
"MIT"
] | 4 | 2019-02-27T13:33:16.000Z | 2019-12-27T14:14:55.000Z | /*
The MIT License
Copyright (c) 2019 Geoffrey Daniels. http://gpdaniels.com/
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, co... | 37.768116 | 111 | 0.623753 | gpdaniels |
4e60a8c9468d851ebdfeba874b5a922e5568ca27 | 818 | cpp | C++ | projects/Phantom.Code/phantom/lang/TemplateParameterPackTypeExpansion.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/TemplateParameterPackTypeExpansion.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/TemplateParameterPackTypeExpansion.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | #include "TemplateParameterPackTypeExpansion.h"
#include "TemplateParameterPackExpansion.h"
#include <phantom/lang/PlaceholderType.h>
namespace phantom
{
namespace lang
{
TemplateParameterPackTypeExpansion::TemplateParameterPackTypeExpansion(TemplateParameterPackExpansion* a_pExpansion)
: Type(TypeKind::Unknown,... | 31.461538 | 116 | 0.789731 | vlmillet |
4e63b3b97b000b0b110886de85342ef1e62f4211 | 138 | inl | C++ | src/libs/dependency_graph/nodes.inl | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 232 | 2017-10-09T11:45:28.000Z | 2022-03-28T11:14:46.000Z | src/libs/dependency_graph/nodes.inl | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | 26 | 2019-01-20T21:38:25.000Z | 2021-10-16T03:57:17.000Z | src/libs/dependency_graph/nodes.inl | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | 33 | 2017-10-26T19:20:38.000Z | 2022-03-16T11:21:43.000Z | #pragma once
#include "graph.h"
#include "node_base.inl"
#include "nodes.h"
#include "nodes_iterator.inl"
namespace dependency_graph {}
| 15.333333 | 29 | 0.753623 | martin-pr |
4e653639daa6beee22a901dfe4dd8209fc3d41f7 | 712 | cpp | C++ | src/example_octomap_load.cpp | dringakn/ROSExamples | f4f19d21fab3630c112148e198f117f0466032c4 | [
"MIT"
] | 2 | 2020-07-14T19:37:43.000Z | 2020-07-15T04:38:09.000Z | src/example_octomap_load.cpp | dringakn/ROSExamples | f4f19d21fab3630c112148e198f117f0466032c4 | [
"MIT"
] | null | null | null | src/example_octomap_load.cpp | dringakn/ROSExamples | f4f19d21fab3630c112148e198f117f0466032c4 | [
"MIT"
] | null | null | null | /*
Author: Dr. Ing. Ahmad Kamal Nasir
Email: dringakn@gmail.com
Description:
*/
#include <octomap/octomap.h>
#include <octomap_msgs/Octomap.h>
#include <octomap_msgs/conversions.h>
#include <ros/ros.h>
int main(int argc, char* argv[]) {
ros::init(argc, argv, "load_octomap");
ros::NodeHandle nh("~");
... | 27.384615 | 69 | 0.68118 | dringakn |
4e67c9faa97cb01e092cbacddd432f2e5fbf69a4 | 5,377 | cpp | C++ | test/test_image.cpp | jamesdsmith/berkeley_sfm | de3ae6b104602c006d939b1f3da8c497b86d39ff | [
"BSD-3-Clause"
] | 21 | 2016-01-14T13:52:11.000Z | 2022-01-03T19:30:33.000Z | test/test_image.cpp | jamesdsmith/berkeley_sfm | de3ae6b104602c006d939b1f3da8c497b86d39ff | [
"BSD-3-Clause"
] | 4 | 2015-10-17T17:01:46.000Z | 2015-10-22T20:59:43.000Z | test/test_image.cpp | erik-nelson/berkeley_sfm | 5bf0b45fac176ff7abfca0ff690893c1afc73c51 | [
"BSD-3-Clause"
] | 7 | 2016-01-22T06:23:59.000Z | 2018-01-16T03:54:33.000Z | /*
* Copyright (c) 2015, The Regents of the University of California (Regents).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the a... | 32.197605 | 80 | 0.675098 | jamesdsmith |
4e69b35cba10bea57a7cd7b40aeaaeaf3599ad8b | 930 | cpp | C++ | training/1-2-6-dualpal/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | 2 | 2015-12-26T21:20:12.000Z | 2017-12-19T00:11:45.000Z | training/1-2-6-dualpal/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | null | null | null | training/1-2-6-dualpal/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | null | null | null | /**
ID: <ID HERE>
LANG: C++11
TASK: dualpal
*/
#include <sstream>
#include <fstream>
#include <algorithm>
using namespace std;
char rebase_char(int digit) {
return digit + (digit < 10 ? '0' : 'A' - 10);
}
string rebase(int value, int base) {
stringstream result;
while (value > 0) {
result << rebase_char(value %... | 17.884615 | 77 | 0.583871 | hsun324 |
4e72f428c7a241c34d03e60409783333f8b7f91b | 1,403 | cpp | C++ | ThePartingOfSarah/Animation.cpp | kriogenia/the-parting-of-sarah | 91cdd70f4beb1530652021ebb3a5d81c6e981e1a | [
"MIT"
] | null | null | null | ThePartingOfSarah/Animation.cpp | kriogenia/the-parting-of-sarah | 91cdd70f4beb1530652021ebb3a5d81c6e981e1a | [
"MIT"
] | 1 | 2021-01-03T15:21:45.000Z | 2021-01-03T15:21:45.000Z | ThePartingOfSarah/Animation.cpp | kriogenia/the-parting-of-sarah | 91cdd70f4beb1530652021ebb3a5d81c6e981e1a | [
"MIT"
] | null | null | null | #include "Animation.h"
Animation::Animation(string filename, float actorWidth, float actorHeight, float fileWidth,
float fileHeight, int updateFrequence, int totalFrames, bool loop, Game* game) :
actorWidth(actorWidth),
actorHeight(actorHeight),
fileWidth(fileWidth),
fileHeight(fileHeight),
updateFrequence(up... | 23 | 92 | 0.722024 | kriogenia |
4e75f56ad363ec3babf6c8e783deaaea4c10abd6 | 999 | cpp | C++ | src/RenderSystem.Vulkan/GraphicsCommandQueueVulkan.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | src/RenderSystem.Vulkan/GraphicsCommandQueueVulkan.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | src/RenderSystem.Vulkan/GraphicsCommandQueueVulkan.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#include "GraphicsCommandQueueVulkan.hpp"
#include "Pomdog/Utility/Assert.hpp"
#include "Pomdog/Utility/Exception.hpp"
namespace Pomdog {
namespace Detail {
namespace Vulkan {
void GraphicsCommandQueueVulkan::Reset()
{
POMDOG_THROW_EXCEPTION... | 25.615385 | 109 | 0.783784 | ValtoForks |
4e7796c885aaf4ec2c1944b109739e5ca64f22f6 | 559 | hpp | C++ | include/turtle/exception.hpp | sejd0n/turtle | ea548668cbff0b2f28594d27afdee3359186e7b0 | [
"BSL-1.0"
] | 46 | 2015-03-25T21:00:57.000Z | 2022-02-09T13:54:37.000Z | include/turtle/exception.hpp | sejd0n/turtle | ea548668cbff0b2f28594d27afdee3359186e7b0 | [
"BSL-1.0"
] | 83 | 2015-03-25T22:00:43.000Z | 2022-02-10T18:33:26.000Z | include/turtle/exception.hpp | sejd0n/turtle | ea548668cbff0b2f28594d27afdee3359186e7b0 | [
"BSL-1.0"
] | 22 | 2015-04-28T01:38:22.000Z | 2021-08-16T20:01:08.000Z | // http://turtle.sourceforge.net
//
// Copyright Mathieu Champlon 2012
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef MOCK_EXCEPTION_HPP_INCLUDED
#define MOCK_EXCEPTION_HPP_INCLUDED
#include "config... | 22.36 | 61 | 0.767442 | sejd0n |
4e790b94df565643c606c1d0e83c047d3bf8511a | 2,863 | cpp | C++ | VFCLibrary/SKYTregenza.cpp | kaemco/CitySim-Solver | 4274f442f57ab9e59869ec6652c370cc5bd400ee | [
"BSD-3-Clause"
] | 2 | 2021-02-22T14:50:18.000Z | 2021-07-01T14:07:31.000Z | VFCLibrary/SKYTregenza.cpp | kaemco/CitySim-Solver | 4274f442f57ab9e59869ec6652c370cc5bd400ee | [
"BSD-3-Clause"
] | 1 | 2022-02-03T09:40:17.000Z | 2022-02-03T09:40:17.000Z | VFCLibrary/SKYTregenza.cpp | idiap/CitySim-Solver | fec9007a67660186e7bc3b090651bf80e08d4d0d | [
"BSD-3-Clause"
] | 3 | 2020-10-30T20:48:15.000Z | 2021-09-03T08:51:39.000Z | #include "SKYTregenza.h"
#include "SKYRegularPatch.h"
#include "SKYTopPatch.h"
#ifdef _MSC_VER
#if defined(DEBUG_MEM)
#define CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define new new(_NORMAL_BLOCK,__FILE__, __LINE__)
#endif
#endif // _MSC_VER
using std::vector;
const unsigned int S... | 23.661157 | 121 | 0.654907 | kaemco |
4e790ee65e1657704cbd7838422fcdcec0642a82 | 61 | cpp | C++ | Source/TALK.cpp | pbghogehoge/kog | 7d45ba8ddc1b01987ccca416dbd7901a23f4412f | [
"MIT"
] | 41 | 2019-02-08T09:10:30.000Z | 2022-03-24T15:54:58.000Z | Source/TALK.cpp | pbghogehoge/kog | 7d45ba8ddc1b01987ccca416dbd7901a23f4412f | [
"MIT"
] | null | null | null | Source/TALK.cpp | pbghogehoge/kog | 7d45ba8ddc1b01987ccca416dbd7901a23f4412f | [
"MIT"
] | 4 | 2019-02-08T09:26:59.000Z | 2020-05-07T15:44:34.000Z | /*
* TALK.cpp : 会話命令用定数
*
*/
#include "TALK.h"
| 8.714286 | 26 | 0.42623 | pbghogehoge |
4e7d9fb0d783cacf96624b8cfa2bf90ec56b3618 | 1,376 | hpp | C++ | src/gui/dialogs/dialogsimulationoptions.hpp | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 1 | 2021-04-19T10:23:58.000Z | 2021-04-19T10:23:58.000Z | src/gui/dialogs/dialogsimulationoptions.hpp | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 418 | 2020-10-08T07:42:27.000Z | 2022-03-08T12:10:52.000Z | src/gui/dialogs/dialogsimulationoptions.hpp | henryiii/spatial-model-editor | 2138d03ae4c7cc353b40324dfd1a3e763d7085d9 | [
"MIT"
] | 2 | 2021-09-02T11:20:38.000Z | 2021-10-13T14:05:32.000Z | #pragma once
#include "simulate_options.hpp"
#include <QDialog>
#include <memory>
namespace Ui {
class DialogSimulationOptions;
}
class DialogSimulationOptions : public QDialog {
Q_OBJECT
public:
explicit DialogSimulationOptions(const sme::simulate::Options &options,
QWidget *p... | 30.577778 | 73 | 0.778343 | henryiii |
4e83326317d143df4b4a298515402eb7529fe447 | 6,373 | cpp | C++ | Source/Utils/WarnManager.cpp | Alpine-DAV/WarpX | fe971e82a49a1c5101e5ef48cce849460dcb598d | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/Utils/WarnManager.cpp | Alpine-DAV/WarpX | fe971e82a49a1c5101e5ef48cce849460dcb598d | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/Utils/WarnManager.cpp | Alpine-DAV/WarpX | fe971e82a49a1c5101e5ef48cce849460dcb598d | [
"BSD-3-Clause-LBNL"
] | null | null | null | /* Copyright 2021 Luca Fedeli
*
* This file is part of WarpX.
*
* License: BSD-3-Clause-LBNL
*/
#include "WarnManager.H"
#include "MsgLogger/MsgLogger.H"
#include <AMReX_ParallelDescriptor.H>
#include <algorithm>
#include <sstream>
using namespace Utils;
using namespace Utils::MsgLogger;
WarnManager::WarnMan... | 26.554167 | 86 | 0.578064 | Alpine-DAV |
4e85a81d76b6342dd3c23a53671d6ed700d0e764 | 63 | hpp | C++ | src/boost_numeric_odeint_algebra_algebra_dispatcher.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_numeric_odeint_algebra_algebra_dispatcher.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_numeric_odeint_algebra_algebra_dispatcher.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/numeric/odeint/algebra/algebra_dispatcher.hpp>
| 31.5 | 62 | 0.84127 | miathedev |
4e89c787d419fc2b342b26ebe8db84689704173a | 4,979 | cc | C++ | curses/src/NetworkDisplay.cc | okeri/snm | 06ce502e5635029d1e642fdac87f4a19c0bc4520 | [
"MIT"
] | 3 | 2019-08-15T10:03:27.000Z | 2020-01-02T14:29:08.000Z | curses/src/NetworkDisplay.cc | okeri/snm | 06ce502e5635029d1e642fdac87f4a19c0bc4520 | [
"MIT"
] | null | null | null | curses/src/NetworkDisplay.cc | okeri/snm | 06ce502e5635029d1e642fdac87f4a19c0bc4520 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <stdexcept>
#include "NetworkDisplay.hh"
namespace {
std::string formatStatus(snm::ConnectionStatus status) {
switch (status) {
case snm::ConnectionStatus::Initializing:
return "Initializing";
case snm::ConnectionStatus::Connecting:
return "C... | 26.625668 | 80 | 0.513356 | okeri |
4e8eebe26a5f0a1fb33df7082cceaba5a4038c1d | 647 | cpp | C++ | game2/src/InstructionShape.cpp | uta-gasp/custom-calibration | 0e2039e56934f1aefd3a561a18bba960a34432ff | [
"MIT"
] | null | null | null | game2/src/InstructionShape.cpp | uta-gasp/custom-calibration | 0e2039e56934f1aefd3a561a18bba960a34432ff | [
"MIT"
] | null | null | null | game2/src/InstructionShape.cpp | uta-gasp/custom-calibration | 0e2039e56934f1aefd3a561a18bba960a34432ff | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#include "InstructionShape.h"
#include "assets_pg.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
//---------------------------------------------------------------------------
usi... | 34.052632 | 79 | 0.421947 | uta-gasp |
4e9320278fa26067f1f233e67e18f53cfce8a6a9 | 429 | hpp | C++ | include/imports.hpp | Dschahannam/bitcoin-clipper-poc | b490727925896a4394967d87168db58fe92e8053 | [
"Unlicense"
] | null | null | null | include/imports.hpp | Dschahannam/bitcoin-clipper-poc | b490727925896a4394967d87168db58fe92e8053 | [
"Unlicense"
] | null | null | null | include/imports.hpp | Dschahannam/bitcoin-clipper-poc | b490727925896a4394967d87168db58fe92e8053 | [
"Unlicense"
] | null | null | null | #pragma once
/*
* Bitcoin Clipper
* Author: d5chahannam
* Created at 05.02.2022 - 16:11
*/
#include <windows.h>
#include <string>
#include <optional>
#include <vector>
#include <sstream>
#include <functional>
#include <xmmintrin.h>
#include <iostream>
#include <thread>
#include <map>
#include <memory>
#include "... | 16.5 | 32 | 0.710956 | Dschahannam |
4e935aa9e1ab12dbc71e907c3dfaa74793d75f69 | 217 | hpp | C++ | Libraries/OpenGLApi/Precompiled.hpp | jodavis42/ZilchShadersSamples | 3c94d295b68ae2e81ece3b12f3a17fe7d59566de | [
"MIT"
] | 1 | 2019-08-31T00:45:44.000Z | 2019-08-31T00:45:44.000Z | Libraries/OpenGLApi/Precompiled.hpp | jodavis42/ZilchShadersSamples | 3c94d295b68ae2e81ece3b12f3a17fe7d59566de | [
"MIT"
] | 2 | 2019-09-08T16:06:05.000Z | 2019-09-08T16:06:58.000Z | Libraries/OpenGLApi/Precompiled.hpp | jodavis42/ZilchShadersSamples | 3c94d295b68ae2e81ece3b12f3a17fe7d59566de | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
/// Authors: Joshua Davis
///////////////////////////////////////////////////////////////////////////////
#include "OpenGlStandard.hpp"
| 36.166667 | 79 | 0.193548 | jodavis42 |
4e97a4dbcd077add0e8ade12a7257129cdca02b9 | 261 | hpp | C++ | mge_v18_student_version/src/mge/util/LevelEditor/Factories/BoxFactory.hpp | TristanSmeets/Agent-OwO | 9ee94c8fd605cdf2b2274624ef55f83e527ee472 | [
"MIT"
] | null | null | null | mge_v18_student_version/src/mge/util/LevelEditor/Factories/BoxFactory.hpp | TristanSmeets/Agent-OwO | 9ee94c8fd605cdf2b2274624ef55f83e527ee472 | [
"MIT"
] | null | null | null | mge_v18_student_version/src/mge/util/LevelEditor/Factories/BoxFactory.hpp | TristanSmeets/Agent-OwO | 9ee94c8fd605cdf2b2274624ef55f83e527ee472 | [
"MIT"
] | null | null | null | #pragma once
#include "mge/util/LevelEditor/Factories/AbstractFactory.hpp"
class BoxFactory :
public AbstractFactory
{
public:
BoxFactory();
BoxFactory(lua_State* config);
virtual ~BoxFactory();
GameObject* CreateGameObject(const std::string& name);
};
| 18.642857 | 61 | 0.766284 | TristanSmeets |
4e9c112aba70b599d6ee437faa0806448ec9c100 | 251 | cpp | C++ | src/MIT_alice/MAUIUniversalWidget.cpp | midasitdev/aliceui | 3693018021892bcccbc66f29b931d9736db6f9dc | [
"MIT"
] | 10 | 2019-02-21T13:07:06.000Z | 2019-09-21T02:56:37.000Z | src/MIT_alice/MAUIUniversalWidget.cpp | midasitdev/aliceui | 3693018021892bcccbc66f29b931d9736db6f9dc | [
"MIT"
] | 5 | 2019-02-28T03:11:50.000Z | 2019-03-08T00:16:17.000Z | src/MIT_alice/MAUIUniversalWidget.cpp | midasitdev/aliceui | 3693018021892bcccbc66f29b931d9736db6f9dc | [
"MIT"
] | 5 | 2019-02-25T00:53:08.000Z | 2019-07-05T01:50:34.000Z | #include "stdafx.h"
#include "MAUIUniversalWidget.h"
using namespace mit::alice;
MRUNTIME_IMPL_KINDOF( MAUIUniversalWidget, MAUILinearLayoutWidget );
MAUIUniversalWidget::MAUIUniversalWidget()
{
}
MAUIUniversalWidget::~MAUIUniversalWidget()
{
}
| 14.764706 | 68 | 0.796813 | midasitdev |
4ea6fef8b34e2ba4255c5e6857d5400647e80b6e | 1,865 | cpp | C++ | src/OpcUaStackServer/NodeSet/NodeSetAlias.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 108 | 2018-10-08T17:03:32.000Z | 2022-03-21T00:52:26.000Z | src/OpcUaStackServer/NodeSet/NodeSetAlias.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 287 | 2018-09-18T14:59:12.000Z | 2022-01-13T12:28:23.000Z | src/OpcUaStackServer/NodeSet/NodeSetAlias.cpp | gianricardo/OpcUaStack | ccdef574175ffe8b7e82b886abc5e5403968b280 | [
"Apache-2.0"
] | 32 | 2018-10-19T14:35:03.000Z | 2021-11-12T09:36:46.000Z | /*
Copyright 2015 Kai Huebl (kai@huebl-sgh.de)
Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser
Datei nur in Übereinstimmung mit der Lizenz erlaubt.
Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0.
Sofern nicht gemäß geltendem Recht vorgeschri... | 24.539474 | 86 | 0.727078 | gianricardo |
4eab81d30d8d15441082a57dadd4bfce25ba3016 | 4,192 | hh | C++ | aeh/src/function_ref.hh | asielorz/aeh | 6dbcce0970a558fb7f164b8880a3e834f9f6c8c9 | [
"MIT"
] | null | null | null | aeh/src/function_ref.hh | asielorz/aeh | 6dbcce0970a558fb7f164b8880a3e834f9f6c8c9 | [
"MIT"
] | null | null | null | aeh/src/function_ref.hh | asielorz/aeh | 6dbcce0970a558fb7f164b8880a3e834f9f6c8c9 | [
"MIT"
] | null | null | null | #pragma once
#include "function_ptr.hh"
#include <functional>
/*
* Non owning polymorphic callable object wrapper.
* Trivially copyable and destructible.
*
* template <typename Ret, typename ... Args>
* struct function_ref<Ret(Args...) noexcept> // Noexcept is optional. Will make operator () noexcept
* {
* constexp... | 33.536 | 129 | 0.706584 | asielorz |
4eadd89f3f5500004b3f5a1acf6ffe38d21b4262 | 14,124 | cpp | C++ | LittleBearDllNew/BypassUacRegistry.cpp | satadriver/LittleBear | ad3939f971b1c3ac4a97d2c228e52b4eb1f388e5 | [
"Apache-2.0"
] | null | null | null | LittleBearDllNew/BypassUacRegistry.cpp | satadriver/LittleBear | ad3939f971b1c3ac4a97d2c228e52b4eb1f388e5 | [
"Apache-2.0"
] | null | null | null | LittleBearDllNew/BypassUacRegistry.cpp | satadriver/LittleBear | ad3939f971b1c3ac4a97d2c228e52b4eb1f388e5 | [
"Apache-2.0"
] | null | null | null | #include <windows.h>
#include "PublicVar.h"
#include "BypassUacRegistry.h"
//http://www.freebuf.com/sectool/114592.html
//http://bbs.pediy.com/thread-208717.htm
//http://blog.csdn.net/qq_27446553/article/details/52610365?locationNum=7
//http://www.freebuf.com/articles/system/116611.html
typedef VOID (WINAPI * PFN_... | 25.357271 | 130 | 0.662206 | satadriver |
4eb51c01562dd17a7961dfcaf83bce9071cae849 | 10,223 | cpp | C++ | document/kpDocument_Selection.cpp | mikefncu/ikPaint | ee787809c5df0a1b78995962ced4ec3870cc139c | [
"BSD-2-Clause"
] | null | null | null | document/kpDocument_Selection.cpp | mikefncu/ikPaint | ee787809c5df0a1b78995962ced4ec3870cc139c | [
"BSD-2-Clause"
] | null | null | null | document/kpDocument_Selection.cpp | mikefncu/ikPaint | ee787809c5df0a1b78995962ced4ec3870cc139c | [
"BSD-2-Clause"
] | null | null | null |
/*
Copyright (c) 2003-2007 Clarence Dang <dang@kde.org>
Modified by Maikel Diaz <ariguanabosoft@gmail.com>
Copyright (c) 2015-2018
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
... | 29.718023 | 84 | 0.618507 | mikefncu |
4eb531db07acf93c72e7d9459af5856ffdca03b5 | 1,199 | cpp | C++ | src/BEPSupportStatus.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | null | null | null | src/BEPSupportStatus.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | 9 | 2017-11-14T06:05:50.000Z | 2018-07-08T18:21:17.000Z | src/BEPSupportStatus.cpp | JoystreamClassic/joystream-node | 2450382bb937abdd959b460791c25f2d8f127168 | [
"MIT"
] | 4 | 2017-11-14T06:04:17.000Z | 2018-08-24T07:39:00.000Z | /**
* Copyright (C) JoyStream - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Bedeho Mender <bedeho.mender@gmail.com>, February 2 2017
*/
#include "BEPSupportStatus.hpp"
#include "libtorrent-node/utils.hpp"
#include <exte... | 23.98 | 107 | 0.682235 | JoystreamClassic |
4eba081c6c0b0ac577b8a9d5ce8b29ff69846d97 | 713 | cpp | C++ | Final Lab Task/Q10.cpp | aetooc/PF-Lab-Tasks | 17899595e948624370b754103be28eb93f236a14 | [
"MIT"
] | null | null | null | Final Lab Task/Q10.cpp | aetooc/PF-Lab-Tasks | 17899595e948624370b754103be28eb93f236a14 | [
"MIT"
] | null | null | null | Final Lab Task/Q10.cpp | aetooc/PF-Lab-Tasks | 17899595e948624370b754103be28eb93f236a14 | [
"MIT"
] | null | null | null | // Including header file in my program.
#include<iostream>
// Using the namespace named std.
using namespace std;
int main(){
// Integer variables
int sum,i,j;
// Assigning a value to 'sum' variable
sum= 100;
// Storing value of 'sum' in 'j'
j=sum;
// Printing 'sum' variable and a strin... | 19.805556 | 66 | 0.518934 | aetooc |
4ebd74330402d48496acdf328c67a1f7e6eeeeb9 | 59 | cpp | C++ | src/MagicCube5D/workFiles/twist.cpp | roice3/MagicCube5D | 5839456f3ce7d12aa61527956cbd434822f0ed4f | [
"MIT"
] | 4 | 2017-01-25T17:10:19.000Z | 2020-07-04T22:35:35.000Z | src/MagicCube5D/workFiles/twist.cpp | roice3/MagicCube5D | 5839456f3ce7d12aa61527956cbd434822f0ed4f | [
"MIT"
] | 8 | 2020-07-03T20:40:49.000Z | 2020-07-22T19:06:57.000Z | src/MagicCube5D/workFiles/twist.cpp | roice3/MagicCube5D | 5839456f3ce7d12aa61527956cbd434822f0ed4f | [
"MIT"
] | 2 | 2015-06-11T05:38:19.000Z | 2020-07-03T19:37:02.000Z | #include "twist.h"
#include <stdafx.h>
#pragma unmanaged
| 9.833333 | 19 | 0.711864 | roice3 |
4ec158c5193b21e56085d6977fb6e53c57f510ca | 735 | cpp | C++ | poj/poj3666.cpp | songhn233/ACM_Steps | 6f2edeca9bf4fc999a8148bc90b2d8d0e59d48fe | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | poj/poj3666.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | poj/poj3666.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstring>
#define ll long long
using namespace std;
const int maxn=2050;
const ll inf=1e10;
ll n,f[maxn][maxn],a[maxn],b[maxn];
int main()
{
cin>>n;
for(int i=1;i<=n;i++) cin>>a[i],b[i]=a[i];
sort(b+1,b+n+1);
for(int i=1;i<=n;i++)
{
ll temp=inf;
... | 17.093023 | 44 | 0.546939 | songhn233 |
4ec2b7bee2f931aef645b1c5be8a6badd861dc70 | 2,422 | hpp | C++ | include/util/gl/mask.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/util/gl/mask.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/util/gl/mask.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | /*
PICCANTE
The hottest HDR imaging library!
http://vcg.isti.cnr.it/piccante
Copyright (C) 2014
Visual Computing Laboratory - ISTI CNR
http://vcg.isti.cnr.it
First author: Francesco Banterle
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 ... | 23.288462 | 111 | 0.632535 | ecarpita93 |
4eca32c8a9678118e9cc481bb4dce6b47f5b8f90 | 301 | hpp | C++ | includes/muriqui.hpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | 5 | 2021-12-04T04:42:32.000Z | 2022-01-21T13:23:47.000Z | includes/muriqui.hpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | null | null | null | includes/muriqui.hpp | xmuriqui/muriqui | ff1492c70e297077c9450ef9175e5a80c6627140 | [
"MIT"
] | null | null | null | /*
* muriqui.hpp
*
* Created on: 27/08/2013
* Author: yo
*/
#ifndef MURIQUI_HPP_
#define MURIQUI_HPP_
#include "MRQ_constants.hpp"
//#include "SPM_SparseMatrix.hpp"
#include "MRQ_dataStructures.hpp"
#include "MRQ_algClasses.hpp"
namespace muriqui{
}
#endif /* MURIQUI_HPP_ */
| 10.033333 | 33 | 0.681063 | xmuriqui |
4ecf77d1f7469b7049cfc6fb073f085f4b6b274e | 1,518 | hpp | C++ | src/nrf52/peripheral.hpp | Testrigor123/cortex-demos | 1163db7f626de1420d5af4557de66713709ed136 | [
"Apache-2.0"
] | null | null | null | src/nrf52/peripheral.hpp | Testrigor123/cortex-demos | 1163db7f626de1420d5af4557de66713709ed136 | [
"Apache-2.0"
] | null | null | null | src/nrf52/peripheral.hpp | Testrigor123/cortex-demos | 1163db7f626de1420d5af4557de66713709ed136 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
Copyright 2018 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
https://www.apache... | 30.979592 | 80 | 0.583004 | Testrigor123 |
4ed34c940e5c7e3490082c0ad673dc4d397684d4 | 15,411 | hpp | C++ | assets/graph.hpp | oitl-5ab/OITL | 23f20d32a9ba3eecfb20601dbc464c06981be2a9 | [
"MIT"
] | 3 | 2020-03-07T13:29:21.000Z | 2020-09-16T11:16:27.000Z | assets/graph.hpp | oitl-5ab/OITL | 23f20d32a9ba3eecfb20601dbc464c06981be2a9 | [
"MIT"
] | 3 | 2020-03-07T13:39:08.000Z | 2020-09-25T16:20:43.000Z | assets/graph.hpp | oitl-5ab/OITL | 23f20d32a9ba3eecfb20601dbc464c06981be2a9 | [
"MIT"
] | 1 | 2020-09-16T11:16:38.000Z | 2020-09-16T11:16:38.000Z | #ifndef OITL_GRAPH_HPP
#define OITL_GARPH_HPP 1
#include "basic_calc.hpp"
#include "disjoint_set.hpp"
#if __cplusplus < 201103L
#include <list>
#else
#include <forward_list>
#endif
#include <stack>
#include <vector>
namespace oitl
{
typedef enum { directed = 1, undirected = 2 } is_directed;
#if __cplusplus >= 2... | 22.270231 | 91 | 0.588086 | oitl-5ab |
4ed4a3b5230ec41cf4e333dc55bcd9759d04e063 | 39,871 | cc | C++ | src/pfs_core/pfs_meta.cc | qiuyuhang/PolarDB-FileSystem | a18067ef9294c2f509decd80b2b9231c9f950e21 | [
"Apache-2.0"
] | 35 | 2021-11-08T03:24:50.000Z | 2022-03-24T12:39:12.000Z | src/pfs_core/pfs_meta.cc | qiuyuhang/PolarDB-FileSystem | a18067ef9294c2f509decd80b2b9231c9f950e21 | [
"Apache-2.0"
] | 2 | 2021-11-30T02:29:53.000Z | 2022-03-17T06:57:53.000Z | src/pfs_core/pfs_meta.cc | qiuyuhang/PolarDB-FileSystem | a18067ef9294c2f509decd80b2b9231c9f950e21 | [
"Apache-2.0"
] | 18 | 2021-11-08T08:43:06.000Z | 2022-02-28T09:38:09.000Z | /*
* Copyright (c) 2017-2021, Alibaba Group Holding 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 License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 24.460736 | 80 | 0.692182 | qiuyuhang |
4ed6b363bb4a161afaaf5dbed379b3facadf3b59 | 2,431 | cpp | C++ | tests/unit/tls_parser/tls_parser_test.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T06:39:24.000Z | 2020-07-25T06:39:24.000Z | tests/unit/tls_parser/tls_parser_test.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T05:32:10.000Z | 2020-07-25T05:32:10.000Z | tests/unit/tls_parser/tls_parser_test.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T05:28:54.000Z | 2020-07-25T05:28:54.000Z | /*
* Copyright 2020 Alex Syrnikov <pioneer19@post.cz>
* SPDX-License-Identifier: Apache-2.0
*
* This file is part of libcornet (https://github.com/pioneer19/libcornet).
*/
#include <doctest/doctest.h>
#include <libcornet/tls/parser.hpp>
namespace record = pioneer19::cornet::tls13::record;
TEST_CASE("Parser tes... | 31.571429 | 82 | 0.59893 | pioneer19 |
4ed801405913cbce66fa232ec7c5fdb1e4da2bf2 | 13,773 | cpp | C++ | Demos/Shadow Demo/ShadowMappingDemo/bin/Debug/_temp_basicShaderReflect/xfconfig.cpp | theproadam/XFDraw | 08acaa83fffa8c36fa55164c128c9e3df625eed6 | [
"MIT"
] | 1 | 2021-07-06T11:25:47.000Z | 2021-07-06T11:25:47.000Z | Demos/Shadow Demo/ShadowMappingDemo/bin/Debug/_temp_basicShaderReflect/xfconfig.cpp | theproadam/XFDraw | 08acaa83fffa8c36fa55164c128c9e3df625eed6 | [
"MIT"
] | null | null | null | Demos/Shadow Demo/ShadowMappingDemo/bin/Debug/_temp_basicShaderReflect/xfconfig.cpp | theproadam/XFDraw | 08acaa83fffa8c36fa55164c128c9e3df625eed6 | [
"MIT"
] | 2 | 2021-07-26T11:54:33.000Z | 2021-07-26T12:08:46.000Z | //This autogenerated file contains serialization data that XFDraw uses for reflection.
//DO NOT MODIFY THE CONTENTS OF THIS FILE. DOING SO WILL SEGFAULT THE SHADER.
const unsigned char vs_serial_buffer[] = {0,1,0,0,0,255,255,255,255,1,0,0,0,0,0,0,0,12,2,0,0,0,61,88,70,68,114,97,119,44,32,86,101,114,115,105,111,110,61,... | 529.730769 | 7,034 | 0.692877 | theproadam |
4de5a5b2d9467416244e2843224657606b0ca5cf | 1,857 | tcc | C++ | hackt_docker/hackt/src/Object/common/namespace.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/common/namespace.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/common/namespace.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/common/namespace.tcc"
Template method definitions for class name_space.
This file was "Object/common/namespace.tcc"
in a previous life.
$Id: namespace.tcc,v 1.6 2009/02/18 00:22:30 fang Exp $
*/
#ifndef __HAC_OBJECT_COMMON_NAMESPACE_TCC__
#define __HAC_OBJECT_COMMON_NAMESPACE_TCC__
#if 0
... | 32.578947 | 79 | 0.677975 | broken-wheel |
4de71fffabd753e31b08c0089034520efb79c92d | 2,343 | hpp | C++ | include/GQE/Core/interfaces/TSmartPointer.hpp | Maarrch/gqe | 51f6ff82cbcafee97b9c245fa5bbea49e11a46da | [
"MIT"
] | 8 | 2017-04-06T13:14:27.000Z | 2022-01-20T22:25:04.000Z | include/GQE/Core/interfaces/TSmartPointer.hpp | Maarrch/gqe | 51f6ff82cbcafee97b9c245fa5bbea49e11a46da | [
"MIT"
] | null | null | null | include/GQE/Core/interfaces/TSmartPointer.hpp | Maarrch/gqe | 51f6ff82cbcafee97b9c245fa5bbea49e11a46da | [
"MIT"
] | 3 | 2019-11-09T09:46:38.000Z | 2021-02-25T00:32:28.000Z | /**
* Provides the Smart Pointer Template class for handling smart pointers.
*
* @file include/GQE/Core/interfaces/TSmartPointer.hpp
* @author Jacob Dix
* @date 20120423 - Initial Release
*/
#ifndef TSMART_POINTER_HPP_INCLUDED
#define TSMART_POINTER_HPP_INCLUDED
#include <GQE/Core/classes/ReferenceCount.... | 26.931034 | 130 | 0.5621 | Maarrch |
4de8e80b9f3a3e223026a2e3fc3ef25cdcf9ba2d | 596 | cxx | C++ | OldHPCSummerSchool/Cpp-tutorial/optimizing_gemm/my_dgemm_0.cxx | wadejong/Summer-School-Materials | 82469995a79c667e940313d423e93c7c675e0a7c | [
"BSD-3-Clause"
] | 5 | 2018-08-06T22:18:42.000Z | 2020-01-15T06:04:43.000Z | OldHPCSummerSchool/Cpp-tutorial/optimizing_gemm/my_dgemm_0.cxx | wadejong/Summer-School-Materials | 82469995a79c667e940313d423e93c7c675e0a7c | [
"BSD-3-Clause"
] | null | null | null | OldHPCSummerSchool/Cpp-tutorial/optimizing_gemm/my_dgemm_0.cxx | wadejong/Summer-School-Materials | 82469995a79c667e940313d423e93c7c675e0a7c | [
"BSD-3-Clause"
] | 8 | 2018-07-30T17:21:45.000Z | 2020-05-21T15:54:16.000Z | #include "common.hpp"
/*
* Compute C += A*B
*/
void my_dgemm(int m, int n, int k, const matrix& A, const matrix& B, matrix& C)
{
/*
* Step 0:
*
* Simple triple-loop matrix-matrix product.
*
* This ordering of the loops is called the "dot-product" algorithm.
*/
for (int i = 0;i <... | 20.551724 | 79 | 0.412752 | wadejong |
4df3f46fb1a5b2ba9e5127cc405c02c49922d36b | 4,483 | cpp | C++ | src/flame/kafka/consumer.cpp | terrywh/php-mill | b8d6c82dcac230248f9bdcd8300e5f2de417f21f | [
"MIT"
] | 45 | 2017-10-13T02:26:30.000Z | 2021-03-28T10:07:32.000Z | src/flame/kafka/consumer.cpp | terrywh/php-mill | b8d6c82dcac230248f9bdcd8300e5f2de417f21f | [
"MIT"
] | 1 | 2021-03-12T15:01:07.000Z | 2021-03-16T02:42:17.000Z | src/flame/kafka/consumer.cpp | terrywh/php-mill | b8d6c82dcac230248f9bdcd8300e5f2de417f21f | [
"MIT"
] | 17 | 2017-05-04T18:48:39.000Z | 2021-09-11T07:04:55.000Z | #include "../coroutine.h"
#include "../time/time.h"
#include "consumer.h"
#include "_consumer.h"
#include "kafka.h"
#include "message.h"
#include "../../coroutine_queue.h"
#include "../log/logger.h"
namespace flame::kafka {
void consumer::declare(php::extension_entry& ext) {
php::class_entry<c... | 39.672566 | 163 | 0.47669 | terrywh |
4df7c2c8de3b31ff702cfe34df9443b082e3c34c | 27,991 | cpp | C++ | vivi/vivi64/completion.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 54 | 2020-02-15T23:17:25.000Z | 2021-11-14T17:13:22.000Z | vivi/vivi64/completion.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 11 | 2020-06-01T08:04:40.000Z | 2020-11-22T02:18:41.000Z | vivi/vivi64/completion.cpp | vivisuke/openViVi | d3e57727393bfc48625945f09ca743e81bf14817 | [
"MIT"
] | 1 | 2020-06-01T07:51:47.000Z | 2020-06-01T07:51:47.000Z | //----------------------------------------------------------------------
//
// File: "completion.cpp"
// Created: 01-10-2013
// Author: 津田伸秀
// Description:
//
//----------------------------------------------------------------------
#include <QtGui>
#include <QMessageBox>
#include <QVBoxLayout>
#include ... | 30.759341 | 119 | 0.633954 | vivisuke |
4dfda45d0eea8183289d885ea78bfd89a0cc3ee4 | 30,300 | cpp | C++ | src/lib/analysis/function_scope.cpp | paramah/hiphop-php-osx | 5ed8c24abe8ad9fd7bc6dd4c28b4ffff23e54362 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-11-05T21:45:07.000Z | 2015-11-05T21:45:07.000Z | src/lib/analysis/function_scope.cpp | brion/hiphop-php | df70a236e6418d533ac474be0c01f0ba87034d7f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | src/lib/analysis/function_scope.cpp | brion/hiphop-php | df70a236e6418d533ac474be0c01f0ba87034d7f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
+---------... | 31.962025 | 82 | 0.577558 | paramah |
4dfeab4b98f8f52ff5827c4afa67ae550c330e27 | 1,080 | cpp | C++ | src/algorithms/sorting/25.7.1.1.sort.cpp | fvarose/cpp-standard | 4a70bce440ef0c292d4cacd603331c590f5e4aed | [
"MIT"
] | null | null | null | src/algorithms/sorting/25.7.1.1.sort.cpp | fvarose/cpp-standard | 4a70bce440ef0c292d4cacd603331c590f5e4aed | [
"MIT"
] | null | null | null | src/algorithms/sorting/25.7.1.1.sort.cpp | fvarose/cpp-standard | 4a70bce440ef0c292d4cacd603331c590f5e4aed | [
"MIT"
] | 1 | 2018-10-21T10:50:27.000Z | 2018-10-21T10:50:27.000Z | #include <catch2/catch_all.hpp>
#include <algorithm>
#include <vector>
using namespace Catch::Matchers;
TEST_CASE("25.7.1.1 sort") {
auto unsorted = std::vector<int>{1, 3, 0, 2};
SECTION("sort sorts a collection in place using the default operator<") {
auto expected = std::vector<int>{0, 1, 2, 3};
std:... | 26.341463 | 75 | 0.623148 | fvarose |
1501eb88daa648d30ab0bfe9f24f24afa73cf5e9 | 705 | cpp | C++ | source/aufgabe13.cpp | Graunarmin/programmiersprachen-aufgabenblatt-3 | c4a5f2c473460be02a73c819064b7deab85731b8 | [
"MIT"
] | null | null | null | source/aufgabe13.cpp | Graunarmin/programmiersprachen-aufgabenblatt-3 | c4a5f2c473460be02a73c819064b7deab85731b8 | [
"MIT"
] | null | null | null | source/aufgabe13.cpp | Graunarmin/programmiersprachen-aufgabenblatt-3 | c4a5f2c473460be02a73c819064b7deab85731b8 | [
"MIT"
] | null | null | null | # define CATCH_CONFIG_RUNNER
# include <catch.hpp>
# include "aufgabe13.hpp"
void print(const std::vector<Circle> &vec)
{
for(const auto& i: vec){
std::cout << i.radius_ << ' ';
std::cout << std::endl;
}
}
TEST_CASE("Kreise sortieren", "[sort]")
{
std::vector<Circle> vCircles(10);
for(auto& i: vCircles)
{... | 20.142857 | 71 | 0.636879 | Graunarmin |
15020f3a25c179d76d59ce59fb3588b5fb4cfaec | 5,192 | cpp | C++ | src/core/PolySoundManager.cpp | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | src/core/PolySoundManager.cpp | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | src/core/PolySoundManager.cpp | my-digital-decay/Polycode | 5dd1836bc4710aea175a77433c17696f8330f596 | [
"MIT"
] | null | null | null | /*
Copyright (C) 2011 by Ivan Safrin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... | 24.606635 | 129 | 0.704931 | my-digital-decay |
15056175e8e1705fdb2a9d2fc0b33cdca726924d | 562 | cpp | C++ | test/unit_tests/tests/12_geometric_test.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/12_geometric_test.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/12_geometric_test.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | #include "setting.h"
#include "math/geometric.h"
using namespace bacchus;
/*
* p1------p2
* \ direction > 0
* \
* p0
*/
TEST(geometric_test, segments_intersection) {
vec2f p0(5,5);
vec2f p1(2,10);
vec2f p2(8,10);
EXPECT_TRUE(direction(p0,p1,p2) > 0.f);
EXPECT_TRUE(direct... | 20.814815 | 59 | 0.628114 | bacchus |
150815ecc5231eba661565cfa69dbe0aadc4dc9e | 1,805 | cpp | C++ | networklayer/synthesis_results_HMB/ETH_inserter_hls_prj/ultrascale_plus/.autopilot/db/hls_design_meta.cpp | OCT-FPGA/udp-network-demo | 76fba0d4315abf7bffe77959a2501c287f20ecec | [
"BSD-3-Clause"
] | null | null | null | networklayer/synthesis_results_HMB/ETH_inserter_hls_prj/ultrascale_plus/.autopilot/db/hls_design_meta.cpp | OCT-FPGA/udp-network-demo | 76fba0d4315abf7bffe77959a2501c287f20ecec | [
"BSD-3-Clause"
] | null | null | null | networklayer/synthesis_results_HMB/ETH_inserter_hls_prj/ultrascale_plus/.autopilot/db/hls_design_meta.cpp | OCT-FPGA/udp-network-demo | 76fba0d4315abf7bffe77959a2501c287f20ecec | [
"BSD-3-Clause"
] | null | null | null | #include "hls_design_meta.h"
const Port_Property HLS_Design_Meta::port_props[]={
Port_Property("dataIn_TDATA", 512, hls_in, 0, "axis", "in_data", 1),
Port_Property("dataIn_TKEEP", 64, hls_in, 1, "axis", "in_data", 1),
Port_Property("dataIn_TSTRB", 64, hls_in, 2, "axis", "in_data", 1),
Port_Property("dataIn_TLAST", ... | 64.464286 | 81 | 0.689197 | OCT-FPGA |
1508f20fb6fa396adea4cc28ccf9f09442bb36f5 | 516 | cpp | C++ | code/1049.cpp | Tomspiano/PAT-Advanced-Level-Practice | e7f543a23f852bcbad52170897a42b41622191ed | [
"MIT"
] | null | null | null | code/1049.cpp | Tomspiano/PAT-Advanced-Level-Practice | e7f543a23f852bcbad52170897a42b41622191ed | [
"MIT"
] | null | null | null | code/1049.cpp | Tomspiano/PAT-Advanced-Level-Practice | e7f543a23f852bcbad52170897a42b41622191ed | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define N 35
using namespace std;
#define rep(i,a,b) for(int i=(a); i<(b); ++i)
int n;
int main() {
//while(~
scanf("%d", &n);
//) {
int sum = 0, r = 1;
int lf, curr, rt;
while(n/r) {
lf=n/(r*10), curr=n/r%10, rt=n%r;
if(curr == 0) {
//printf("%d ", lf*r);
sum += lf*r;
}
else i... | 14.742857 | 45 | 0.449612 | Tomspiano |
1510ddd30c2d63949ea9d4bd795f47cdac42d2d4 | 2,280 | cpp | C++ | Leet Code/Number of Good Ways to Split a String.cpp | Shubhrmcf07/Competitive-Coding-and-Interview-Problems | 7281ea3163c0cf6938a3af7b54a8a14f97c97c0e | [
"MIT"
] | 51 | 2020-02-24T11:14:00.000Z | 2022-03-24T09:32:18.000Z | Leet Code/Number of Good Ways to Split a String.cpp | Shubhrmcf07/Competitive-Coding-and-Interview-Problems | 7281ea3163c0cf6938a3af7b54a8a14f97c97c0e | [
"MIT"
] | 3 | 2020-10-02T08:16:09.000Z | 2021-04-17T16:32:38.000Z | Leet Code/Number of Good Ways to Split a String.cpp | Shubhrmcf07/Competitive-Coding-and-Interview-Problems | 7281ea3163c0cf6938a3af7b54a8a14f97c97c0e | [
"MIT"
] | 18 | 2020-04-24T15:33:36.000Z | 2022-03-24T09:32:20.000Z | /* Leet Code */
/* Title - Number of Good Ways to Split a String */
/* Created By - Akash Modak */
/* Date - 25/09/2020 */
// You are given a string s, a split is called good if you can split s into 2 non-empty strings p and q where its concatenation is equal to s and the number of distinct letters in p and q are... | 32.571429 | 202 | 0.555702 | Shubhrmcf07 |
1513296d0e5967145ebc9e2f5d26cd4850acd466 | 7,092 | hxx | C++ | include/pqxx/internal/type_utils.hxx | yogsothoth/libpqxx | af9bf34e1ae450e8925a758594f772ba0b515abb | [
"BSD-3-Clause"
] | null | null | null | include/pqxx/internal/type_utils.hxx | yogsothoth/libpqxx | af9bf34e1ae450e8925a758594f772ba0b515abb | [
"BSD-3-Clause"
] | null | null | null | include/pqxx/internal/type_utils.hxx | yogsothoth/libpqxx | af9bf34e1ae450e8925a758594f772ba0b515abb | [
"BSD-3-Clause"
] | null | null | null | /** Type/template metaprogramming utilities for use internally in libpqxx
*
* Copyright (c) 2001-2018, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this mistake,
* or contact the author.
*/
#ifn... | 33.611374 | 80 | 0.695431 | yogsothoth |
15178037d8f264798f94965d677ddf106dcfe681 | 13,782 | cpp | C++ | modules/Alexa/SampleApp/src/CachingDownloadManager.cpp | germanviscuso/alexa-smart-screen-sdk | 9878cafa35df05d862b3bfc027aa6b1b463ef9c1 | [
"Apache-2.0"
] | null | null | null | modules/Alexa/SampleApp/src/CachingDownloadManager.cpp | germanviscuso/alexa-smart-screen-sdk | 9878cafa35df05d862b3bfc027aa6b1b463ef9c1 | [
"Apache-2.0"
] | null | null | null | modules/Alexa/SampleApp/src/CachingDownloadManager.cpp | germanviscuso/alexa-smart-screen-sdk | 9878cafa35df05d862b3bfc027aa6b1b463ef9c1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" f... | 42.018293 | 120 | 0.654695 | germanviscuso |
151d95c195be52b7c1b2569d14059b8038394cda | 1,036 | cpp | C++ | packages/utility/grid/src/Utility_StandardHashBasedGridSearcher.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/utility/grid/src/Utility_StandardHashBasedGridSearcher.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/utility/grid/src/Utility_StandardHashBasedGridSearcher.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file Utility_StandardHashBasedGridSearcher.cpp
//! \author Alex Robinson
//! \brief The standard hash-based grid searcher
//!
//---------------------------------------------------------------------------//
// FRENSIE Includes
#... | 47.090909 | 99 | 0.561776 | bam241 |
1524509a9cb88378f4d46b76f762cc941be58d0d | 440 | cpp | C++ | examples/appearance/multiplot/subplot/subplot_4.cpp | solosuper/matplotplusplus | 87ff5728b14ad904bc6acaa2bf010c1a03c6cb4a | [
"MIT"
] | 2,709 | 2020-08-29T01:25:40.000Z | 2022-03-31T18:35:25.000Z | examples/appearance/multiplot/subplot/subplot_4.cpp | p-ranav/matplotplusplus | b45015e2be88e3340b400f82637b603d733d45ce | [
"MIT"
] | 124 | 2020-08-29T04:48:17.000Z | 2022-03-25T15:45:59.000Z | examples/appearance/multiplot/subplot/subplot_4.cpp | p-ranav/matplotplusplus | b45015e2be88e3340b400f82637b603d733d45ce | [
"MIT"
] | 203 | 2020-08-29T04:16:22.000Z | 2022-03-30T02:08:36.000Z | #include <iostream>
#include <matplot/matplot.h>
#include <set>
#include <thread>
#include <vector>
int main() {
using namespace matplot;
for (size_t i = 0; i < 4; ++i) {
subplot(2, 2, i);
std::string equation = "cos(x**" + num2str(i + 1) + ") + " + num2str(i);
fplot(equation);
... | 22 | 80 | 0.527273 | solosuper |
15255efe7a27d4f9d26c3e4247871ed1317ec1cc | 16,153 | cpp | C++ | src/LN2_LAYER_SMOOTH.cpp | dowdlelt/LAYNII | 8d434da57f3126bcd304577bd41eaa32d504df04 | [
"BSD-3-Clause"
] | 70 | 2018-04-09T13:16:42.000Z | 2022-03-25T11:35:05.000Z | src/LN2_LAYER_SMOOTH.cpp | dowdlelt/LAYNII | 8d434da57f3126bcd304577bd41eaa32d504df04 | [
"BSD-3-Clause"
] | 48 | 2018-12-06T01:17:48.000Z | 2022-03-31T13:55:28.000Z | src/LN2_LAYER_SMOOTH.cpp | dowdlelt/LAYNII | 8d434da57f3126bcd304577bd41eaa32d504df04 | [
"BSD-3-Clause"
] | 17 | 2019-04-25T20:57:34.000Z | 2022-03-07T12:20:31.000Z |
// TODO(Faruk): Seems there might be an issue with the gaussian kernel's
// symmetry and size corresponding to what is written in CLI
// TODO(Renzo): make the vicinity direction specific vinc_x, vinc_y, vinc_z
#include "../dep/laynii_lib.h"
int show_help(void) {
printf(
"LN2_LAYER_SMOOTH : Layering algorith... | 44.254795 | 147 | 0.409026 | dowdlelt |
152675c72105404e1ee60ae371f83fdf8cb3c493 | 2,359 | cpp | C++ | main/depth_main.cpp | TNishimoto/esaxx | bac2734b71ff933bc019070ee0ec2d5c7e01fbd5 | [
"MIT"
] | null | null | null | main/depth_main.cpp | TNishimoto/esaxx | bac2734b71ff933bc019070ee0ec2d5c7e01fbd5 | [
"MIT"
] | null | null | null | main/depth_main.cpp | TNishimoto/esaxx | bac2734b71ff933bc019070ee0ec2d5c7e01fbd5 | [
"MIT"
] | null | null | null | // License: MIT http://opensource.org/licenses/MIT
/*
This code was copied from https://takeda25.hatenablog.jp/entry/20101202/1291269994 and I modified it.
*/
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <unordered_map>
#include "stool/src/cmdline.h"
#include "../test/old_posto... | 31.039474 | 103 | 0.689275 | TNishimoto |
152813c13f60ee1ddf0aed5b27a8371b77cf4a70 | 1,361 | cpp | C++ | src/System/FileSystem.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 12 | 2020-12-27T22:13:58.000Z | 2021-03-14T09:03:02.000Z | src/System/FileSystem.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 10 | 2021-01-14T15:14:31.000Z | 2021-05-24T22:01:09.000Z | src/System/FileSystem.cpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | null | null | null | #include "FileSystem.hpp"
#include <fstream>
#include <sstream>
#include "Logger.hpp"
FILE* OpenFile(const char* path, const char* mode)
{
return fopen(path, mode);
}
bool TryReadFileContents(const char* path, std::string& result)
{
std::ifstream file(path);
if(!file.is_open())
{
Log("Failed to open %s for r... | 18.643836 | 81 | 0.624541 | Strife-AI |
1529ddab1992137fed1abf7bd4b457f872cecf83 | 2,567 | cpp | C++ | ICPC/SUBREGIONAL2014/e.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | ICPC/SUBREGIONAL2014/e.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | ICPC/SUBREGIONAL2014/e.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cstdlib>
#include <stack>
#include <algorithm>
#include <cctype>
#include <vector>
#include <queue>
#include <tr1/unordered_map>
#include <cmath>
#include <map>
#include <bitset>
#include <set>
#include <iomanip>
using namespace std;
t... | 22.321739 | 68 | 0.488118 | henviso |
152b01078ef4581b9b4d2e0d2e740a057ed752d3 | 47,461 | cpp | C++ | src/plugProjectEbisawaU/efxEnemyBoss.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectEbisawaU/efxEnemyBoss.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectEbisawaU/efxEnemyBoss.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
/*
Generated from dpostproc
.section .rodata # 0x804732E0 - 0x8049E220
.global lbl_80497910
lbl_80497910:
.4byte 0x65667845
.4byte 0x6E656D79
.4byte 0x426F7373
.4byte 0x2E637070
.4byte 0x00000000
.global lbl_80497924
lbl_80497924:
... | 20.926367 | 83 | 0.579276 | projectPiki |
153b4d03588d0f7d218505b06ee88747a530261b | 1,613 | hpp | C++ | src/algorithm/algorithmBase.hpp | TheSonOfDeimos/network-routing-optimization | 7030b5cf333f19ab68952b6841463f4cfd664895 | [
"MIT"
] | null | null | null | src/algorithm/algorithmBase.hpp | TheSonOfDeimos/network-routing-optimization | 7030b5cf333f19ab68952b6841463f4cfd664895 | [
"MIT"
] | null | null | null | src/algorithm/algorithmBase.hpp | TheSonOfDeimos/network-routing-optimization | 7030b5cf333f19ab68952b6841463f4cfd664895 | [
"MIT"
] | null | null | null | #ifndef ALGORITHM_BASE_HPP
#define ALGORITHM_BASE_HPP
#include <unordered_map>
#include <vector>
#include "types.hpp"
struct Cell
{
// Relative values
double ping; // ms
double packetLoss; // amount of lost packets in % per 100 packets
double speed; // Mbit/sec
// Absolute values
double band... | 29.87037 | 233 | 0.748915 | TheSonOfDeimos |
15408cbedb0f32036560f6b4a2ef5e0bb19323ab | 8,233 | cpp | C++ | generated/src/DatabaseAsyncClient.cpp | automyinc/vnx-examples | 492423bb8c8447f641e5691f45575056cab396df | [
"MIT"
] | null | null | null | generated/src/DatabaseAsyncClient.cpp | automyinc/vnx-examples | 492423bb8c8447f641e5691f45575056cab396df | [
"MIT"
] | null | null | null | generated/src/DatabaseAsyncClient.cpp | automyinc/vnx-examples | 492423bb8c8447f641e5691f45575056cab396df | [
"MIT"
] | null | null | null |
// AUTO GENERATED by vnxcppcodegen
#include <example/package.hxx>
#include <example/DatabaseAsyncClient.hxx>
#include <vnx/Input.h>
#include <vnx/Output.h>
namespace example {
DatabaseAsyncClient::DatabaseAsyncClient(const std::string& service_name)
: AsyncClient::AsyncClient(vnx::Hash64(service_name))
{
}
Datab... | 35.951965 | 151 | 0.742014 | automyinc |
1541882e8f26b9db462bbbfd8af139cdfb2b074a | 2,618 | cpp | C++ | graph-source-code/41-E/189438.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/41-E/189438.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/41-E/189438.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include<iostream>
#include<sstream>
#include<string>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<stack>
#include<cmath>
#include<cctype>
#include<set>
#include<bitset>
#include<algorithm>
#include<list>
#include<utility>
#include<functional>
#include ... | 25.417476 | 66 | 0.52903 | AmrARaouf |
1543c74cb3eacc8e390d23bac942a89f68c54a53 | 2,118 | cpp | C++ | base-3.15.5-pre1/src/ca/legacy/pcas/generic/casAsyncPVAttachIOI.cpp | osteffen/epics | 20556240f157c6b812d66e900d119e0db3bce391 | [
"OML"
] | null | null | null | base-3.15.5-pre1/src/ca/legacy/pcas/generic/casAsyncPVAttachIOI.cpp | osteffen/epics | 20556240f157c6b812d66e900d119e0db3bce391 | [
"OML"
] | null | null | null | base-3.15.5-pre1/src/ca/legacy/pcas/generic/casAsyncPVAttachIOI.cpp | osteffen/epics | 20556240f157c6b812d66e900d119e0db3bce391 | [
"OML"
] | null | null | null |
/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE is distribute... | 31.147059 | 82 | 0.617564 | osteffen |
1543f151890790f43a3431f95a01f790cc536799 | 4,869 | hpp | C++ | include/opengm/minimizer/to_quadratic_minimizer.hpp | DerThorsten/opengm3 | 23af324a0fde1357eb9745d69798686f0476e1f1 | [
"MIT"
] | null | null | null | include/opengm/minimizer/to_quadratic_minimizer.hpp | DerThorsten/opengm3 | 23af324a0fde1357eb9745d69798686f0476e1f1 | [
"MIT"
] | null | null | null | include/opengm/minimizer/to_quadratic_minimizer.hpp | DerThorsten/opengm3 | 23af324a0fde1357eb9745d69798686f0476e1f1 | [
"MIT"
] | null | null | null | #pragma once
#include <queue>
#include <algorithm>
#include "opengm/minimizer/minimizer_base.hpp"
#include "opengm/minimizer/bp.hpp"
#include "opengm/minimizer/utils/label_fuser.hpp"
#include "opengm/factors_of_variables.hpp"
namespace opengm{
template<class GM>
class SelfFusion;
namespace detail_self_fusion{
... | 27.201117 | 110 | 0.678168 | DerThorsten |
15461aed26d76d9755aa4d227a623daeb78f8290 | 1,895 | cc | C++ | src/player_mc.cc | tczajka/flippo-veoveo | 6ebd612c4b85cb910264169164f1cdb1a2252a3d | [
"MIT"
] | 5 | 2019-01-19T14:18:20.000Z | 2022-01-23T16:58:45.000Z | src/player_mc.cc | tczajka/flippo-veoveo | 6ebd612c4b85cb910264169164f1cdb1a2252a3d | [
"MIT"
] | null | null | null | src/player_mc.cc | tczajka/flippo-veoveo | 6ebd612c4b85cb910264169164f1cdb1a2252a3d | [
"MIT"
] | null | null | null | #include "player_mc.h"
#include "logging.h"
#include <algorithm>
Move PlayerMc::choose_move(const Position &position,
const PlaySettings &settings) {
const int rounds_left = (num_squares - position.move_number() + 1) / 2;
const Timestamp end_time = settings.start_time + settings.time_lef... | 30.564516 | 84 | 0.653298 | tczajka |
154632a790b78b66114a87c2d618220eabca37d4 | 2,019 | cc | C++ | tools/to_tuple_generator/to_tuple_generator.cc | cflaviu/cista | d7fab2dcfdf1b7665e9f8b4d6eeefa4a9f89046b | [
"MIT"
] | 843 | 2019-01-03T11:33:00.000Z | 2022-03-27T08:09:46.000Z | tools/to_tuple_generator/to_tuple_generator.cc | cflaviu/cista | d7fab2dcfdf1b7665e9f8b4d6eeefa4a9f89046b | [
"MIT"
] | 58 | 2019-01-03T20:32:02.000Z | 2022-01-31T17:25:42.000Z | tools/to_tuple_generator/to_tuple_generator.cc | cflaviu/cista | d7fab2dcfdf1b7665e9f8b4d6eeefa4a9f89046b | [
"MIT"
] | 63 | 2019-01-04T03:00:04.000Z | 2022-03-30T20:01:22.000Z | #include <iostream>
#include <sstream>
#include <string>
std::string var_list(unsigned num, bool address_of) {
std::stringstream ss;
for (int i = 0; i < num; ++i) {
if (address_of) {
ss << "&";
}
ss << "p" << (i + 1);
if (i != num - 1) {
ss << ", ";
}
}
return ss.str();
}
int m... | 22.685393 | 77 | 0.500248 | cflaviu |
15493dd3688367e4c6172ace7644878b6bf49c85 | 362 | cpp | C++ | Email/Mapi/MapiGPF.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 67 | 2018-03-02T10:50:02.000Z | 2022-03-23T18:20:29.000Z | Email/Mapi/MapiGPF.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | null | null | null | Email/Mapi/MapiGPF.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 9 | 2018-03-01T16:38:28.000Z | 2021-03-02T16:17:09.000Z | // ---------------------------
// (c) Reliable Software, 2005
// ---------------------------
#include "precompiled.h"
#include "MapiGPF.h"
#include "OutputSink.h"
char const Err [] = "Unexpected error in MAPI code during a call to ";
void Mapi::HandleGPF (std::string const & where)
{
std::string msg = Err + where + ... | 24.133333 | 70 | 0.560773 | BartoszMilewski |
15496d77cbaff3b88198a2bd763cc54cdfe91d50 | 5,292 | cpp | C++ | coast/modules/WorkerPoolManager/WorkerPoolManagerModulePoolManager.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/modules/WorkerPoolManager/WorkerPoolManagerModulePoolManager.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/modules/WorkerPoolManager/WorkerPoolManagerModulePoolManager.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | 31.879518 | 125 | 0.76455 | zer0infinity |
154c8ece419e263864e17e4c9f137c97bf481c64 | 1,955 | cpp | C++ | Source/Untitled_DeckRPG/Core/SummonerSaveData.cpp | JeffereyAEL/UntitledDeckRPG | e2935641957ba01645fdb0112eda5386b80fb919 | [
"Artistic-2.0"
] | null | null | null | Source/Untitled_DeckRPG/Core/SummonerSaveData.cpp | JeffereyAEL/UntitledDeckRPG | e2935641957ba01645fdb0112eda5386b80fb919 | [
"Artistic-2.0"
] | null | null | null | Source/Untitled_DeckRPG/Core/SummonerSaveData.cpp | JeffereyAEL/UntitledDeckRPG | e2935641957ba01645fdb0112eda5386b80fb919 | [
"Artistic-2.0"
] | null | null | null | #include "SummonerSaveData.h"
#include "Untitled_DeckRPG/Externals/DefinedDebugHelpers.h"
#include "Untitled_DeckRPG/InstanceClasses/StorableInstanceClasses/ArmorInstance.h"
#include "Untitled_DeckRPG/InstanceClasses/StorableInstanceClasses/SummonInstance.h"
USummonerSaveData::USummonerSaveData() {
Name = "UNINST... | 32.04918 | 95 | 0.679795 | JeffereyAEL |
155143521decbd3e38477d5c3dec7bdc2dd834df | 2,089 | cpp | C++ | Modules/ModelFit/src/Common/mitkModelGenerator.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | 1 | 2021-11-20T08:19:27.000Z | 2021-11-20T08:19:27.000Z | Modules/ModelFit/src/Common/mitkModelGenerator.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | null | null | null | Modules/ModelFit/src/Common/mitkModelGenerator.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | null | null | null | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | 27.12987 | 160 | 0.696027 | wyyrepo |
1553b6502b5cd6d959357abb9c636bef0377971d | 3,206 | cpp | C++ | Vorlesungsbeispiele/MRT2_VL-8_Ampel_mit_OPC_UA/src/Ampel_Behaviors.cpp | zmanjiyani/PLT_MRT_ARM-RPi2 | da77ab8ddf652a12ae6a6647c993daa2f94b39fb | [
"MIT"
] | 4 | 2015-11-11T14:02:17.000Z | 2021-11-29T16:07:38.000Z | Vorlesungsbeispiele/MRT2_VL-8_Ampel_mit_OPC_UA/src/Ampel_Behaviors.cpp | zmanjiyani/PLT_MRT_ARM-RPi2 | da77ab8ddf652a12ae6a6647c993daa2f94b39fb | [
"MIT"
] | 6 | 2019-04-20T14:48:58.000Z | 2020-08-26T15:13:02.000Z | Vorlesungsbeispiele/MRT2_VL-8_Ampel_mit_OPC_UA/src/Ampel_Behaviors.cpp | zmanjiyani/PLT_MRT_ARM-RPi2 | da77ab8ddf652a12ae6a6647c993daa2f94b39fb | [
"MIT"
] | 9 | 2016-01-10T15:14:28.000Z | 2021-10-13T22:45:19.000Z | /*
* Copyright (c) 2018 <copyright holder> <email>
*
* 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, modi... | 31.431373 | 82 | 0.720524 | zmanjiyani |
15570b15cfb1f385581154f9f946421bde72901b | 81 | cpp | C++ | TinyEngine/src/Platform/OpenGL/ImGuiBuildOpenGL.cpp | LongerZrLong/TinyEngine | c5b0d57e9724c765967ce091c503f81673d74986 | [
"Apache-2.0"
] | null | null | null | TinyEngine/src/Platform/OpenGL/ImGuiBuildOpenGL.cpp | LongerZrLong/TinyEngine | c5b0d57e9724c765967ce091c503f81673d74986 | [
"Apache-2.0"
] | null | null | null | TinyEngine/src/Platform/OpenGL/ImGuiBuildOpenGL.cpp | LongerZrLong/TinyEngine | c5b0d57e9724c765967ce091c503f81673d74986 | [
"Apache-2.0"
] | null | null | null | #define IMGUI_IMPL_OPENGL_LOADER_GLAD
#include <backends/imgui_impl_opengl3.cpp>
| 27 | 42 | 0.876543 | LongerZrLong |
155b56a25b7e733e6451d8aac8f3dd63c9019ea8 | 30,956 | cpp | C++ | src/filesystemmodel.cpp | Jawez/FileManager | 6d90f5f8b1757cd0d86ea0f81a7968b0dbb181aa | [
"MIT"
] | 10 | 2021-09-10T02:07:50.000Z | 2022-03-27T08:35:08.000Z | src/filesystemmodel.cpp | Jawez/FileManager | 6d90f5f8b1757cd0d86ea0f81a7968b0dbb181aa | [
"MIT"
] | null | null | null | src/filesystemmodel.cpp | Jawez/FileManager | 6d90f5f8b1757cd0d86ea0f81a7968b0dbb181aa | [
"MIT"
] | 3 | 2021-09-15T14:05:16.000Z | 2022-03-19T11:33:27.000Z | #include "filesystemmodel.h"
#include "progressdialog.h"
#include "settings.h"
#include <QtDebug>
#include <QFuture>
#include <QFileInfo>
#include <QModelIndex>
#include <QApplication>
#include <QProgressDialog>
#include <QtConcurrent>
#include <QMessageBox>
#include <QPushButton>
#include <QMimeData>
#include <QUrl>
... | 33.79476 | 147 | 0.579758 | Jawez |
155b65b8b11b38d1533ce920aa6cba640c56b6b0 | 1,555 | cpp | C++ | src/KthSmallestElementInABST.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | src/KthSmallestElementInABST.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | src/KthSmallestElementInABST.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "KthSmallestElementInABST.hpp"
#include <stack>
using namespace std;
int KthSmallestElementInABST::kthSmallest(TreeNode *root, int k) {
return kthSmallestRecursive(root, k);
}
int KthSmallestElementInABST::kthSmallestBinarySearch(TreeNode *root, int k) {
int n = countNodes(root->left);
if (k <... | 24.68254 | 94 | 0.607717 | yanzhe-chen |
1560267c0994b59b55989bff706b1eb9fbdaaa4f | 343 | cpp | C++ | _code/pack-indexing/benchmark_1.erb.cpp | ldionne/ldionne.github.io | 9391dd54f00bd61046d60dbfeab31b13e8803d43 | [
"MIT"
] | null | null | null | _code/pack-indexing/benchmark_1.erb.cpp | ldionne/ldionne.github.io | 9391dd54f00bd61046d60dbfeab31b13e8803d43 | [
"MIT"
] | null | null | null | _code/pack-indexing/benchmark_1.erb.cpp | ldionne/ldionne.github.io | 9391dd54f00bd61046d60dbfeab31b13e8803d43 | [
"MIT"
] | null | null | null | // Copyright Louis Dionne 2015
// Distributed under the Boost Software License, Version 1.0.
#include <cstddef>
#include <tuple>
#include <utility>
#include "<%= header %>"
<% (0..input_size-1).each do |n| %>
using T_<%= n %> = nth_element<
<%= n %>,
<%= (1..input_size).map { |i| "int" }.join(', ... | 21.4375 | 61 | 0.55102 | ldionne |
1565deb91bc1982bd223bb56933b1b9c4ef510ca | 2,438 | cpp | C++ | src/utilities_gui/dlgDeviceInfo.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | src/utilities_gui/dlgDeviceInfo.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | src/utilities_gui/dlgDeviceInfo.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | #include "dlgDeviceInfo.h"
#include "IConnection.h"
using namespace lime;
dlgDeviceInfo::dlgDeviceInfo(wxWindow* parent, wxWindowID id, const wxString &title, const wxPoint& pos, const wxSize& size, long styles)
:
dlgDeviceInfo_view( parent, id, title, pos, size, styles)
{
ctrPort = nullptr;
dataPort = nullpt... | 34.828571 | 137 | 0.650123 | bastille-attic |
15666c1629f120c191effc359b9b9077625f9551 | 800 | hpp | C++ | src/Animation.hpp | darkbitsorg/db-08_green_grappler | f009228edb2eb1a943ab6d5801a78a5d00ac9e43 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2018-06-12T13:35:31.000Z | 2018-06-12T13:35:31.000Z | src/Animation.hpp | darkbitsorg/db-08_green_grappler | f009228edb2eb1a943ab6d5801a78a5d00ac9e43 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | src/Animation.hpp | darkbitsorg/db-08_green_grappler | f009228edb2eb1a943ab6d5801a78a5d00ac9e43 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "Blending.hpp"
class Animation
{
public:
Animation(const std::string& aFilename);
Animation(const std::string& aFilename, int aNumberOfFrames);
~Animation();
BITMAP *getFrame(int aFrame) const;
int getFrameCount() const;
int getFrameWidth() const;
int getFrameHeight() const;
void drawFr... | 30.769231 | 145 | 0.74875 | darkbitsorg |
d07e1c8ebab0aaa06780ab9769ca1e6429b57c7a | 3,831 | cpp | C++ | test/test_service_script_runner.cpp | ProjectDecibel/open_sysadmin | beee92e72a0c3afa3aeb396855aa42c96e8989a8 | [
"Apache-2.0"
] | 14 | 2017-05-31T19:38:25.000Z | 2022-01-19T20:56:32.000Z | test/test_service_script_runner.cpp | ProjectDecibel/open_sysadmin | beee92e72a0c3afa3aeb396855aa42c96e8989a8 | [
"Apache-2.0"
] | 26 | 2017-06-07T14:05:07.000Z | 2020-01-29T20:06:34.000Z | test/test_service_script_runner.cpp | ProjectDecibel/open_sysadmin | beee92e72a0c3afa3aeb396855aa42c96e8989a8 | [
"Apache-2.0"
] | 9 | 2017-05-31T21:09:59.000Z | 2021-05-14T15:11:18.000Z | #include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <log4cxx/logger.h>
#include <fstream>
#include <string>
#include "ServiceScriptRunner.h"
#include "decibel/messaging/Reactor.h"
namespace dm = decibel::messaging;
namespace
{
log4cxx::LoggerPtr spLogger(log4cxx::Logger::getLogger("test_service_script_run... | 27.170213 | 95 | 0.577656 | ProjectDecibel |
d0845ae57df5832bf5abee62d80c587935440cdd | 842 | hpp | C++ | src/PyOmega_h.hpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/PyOmega_h.hpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/PyOmega_h.hpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #ifndef OMEGA_H_PY_HPP
#define OMEGA_H_PY_HPP
#include <Omega_h_config.h>
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
#include <pybind11/pybind11.h>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
namespace py = pybind11;
namespace Omega_h {
class Library;
extern... | 22.756757 | 56 | 0.785036 | overfelt |
d08693adac956c086209f971c0833bea9b328291 | 709 | cpp | C++ | C++Codes/Reverse Stack.cpp | aardhyakumar/Hacktoberfest-20 | 20ae70f8b55cfe3130f16fa5a6b14996b6bb5f27 | [
"MIT"
] | 4 | 2020-10-16T05:53:21.000Z | 2020-10-18T13:31:31.000Z | C++Codes/Reverse Stack.cpp | aardhyakumar/Hacktoberfest-20 | 20ae70f8b55cfe3130f16fa5a6b14996b6bb5f27 | [
"MIT"
] | 5 | 2020-09-20T14:46:05.000Z | 2021-10-09T16:40:55.000Z | C++Codes/Reverse Stack.cpp | aardhyakumar/Hacktoberfest-20 | 20ae70f8b55cfe3130f16fa5a6b14996b6bb5f27 | [
"MIT"
] | 16 | 2020-10-16T05:53:24.000Z | 2021-10-16T18:38:23.000Z | //C++ Program to reverse a stack without recursion
#include<bits/stdc++.h>
using namespace std;
void insertatbottom (stack<int> &st,int ele){
if(st.empty()){
st.push(ele);
return;
}
int topele=st.top();
st.pop();
insertatbottom(st,ele);
st.push(topele);
}
void reverse(stac... | 14.770833 | 50 | 0.503526 | aardhyakumar |
d08b8e2a8ad801809986736704fa00845719af08 | 651 | cpp | C++ | EU4toV2/Source/Mappers/FlagColorMapper.cpp | Clonefusion/EU4toVic2 | d39157b8317152da4ca138a69d78b6335bb27eb3 | [
"MIT"
] | 2 | 2020-01-02T16:07:51.000Z | 2020-01-12T17:55:13.000Z | EU4toV2/Source/Mappers/FlagColorMapper.cpp | Clonefusion/EU4toVic2 | d39157b8317152da4ca138a69d78b6335bb27eb3 | [
"MIT"
] | 3 | 2020-01-12T19:44:56.000Z | 2020-01-17T05:40:41.000Z | EU4toV2/Source/Mappers/FlagColorMapper.cpp | Clonefusion/EU4toVic2 | d39157b8317152da4ca138a69d78b6335bb27eb3 | [
"MIT"
] | 1 | 2020-01-12T17:55:40.000Z | 2020-01-12T17:55:40.000Z | #include "FlagColorMapper.h"
#include "ParserHelpers.h"
mappers::FlagColorMapper::FlagColorMapper(std::istream& theStream)
{
registerKeyword(std::regex("flag_color"), [this](const std::string& sourceGov, std::istream& theStream)
{
commonItems::Color theColor(theStream);
flagColorMapping.push_back(theColor);
})... | 29.590909 | 104 | 0.746544 | Clonefusion |
d09b53ec757d32a45deced598650f5491bba8ebc | 1,777 | cpp | C++ | aws-cpp-sdk-inspector2/source/model/FreeTrialInfoError.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-inspector2/source/model/FreeTrialInfoError.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-inspector2/source/model/FreeTrialInfoError.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T12:02:58.000Z | 2021-11-09T12:02:58.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/inspector2/model/FreeTrialInfoError.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{... | 19.527473 | 105 | 0.732696 | perfectrecall |
d09e5531a56c0a361bfc05b6729b921e25a84cc6 | 2,515 | cpp | C++ | tests/android/app/src/main/cpp/miniaudio_async_test.cpp | ondesly/audio_engine | 37e68f9e5be3f36b77aac6574e90d2150aef0f6d | [
"BSD-2-Clause"
] | null | null | null | tests/android/app/src/main/cpp/miniaudio_async_test.cpp | ondesly/audio_engine | 37e68f9e5be3f36b77aac6574e90d2150aef0f6d | [
"BSD-2-Clause"
] | null | null | null | tests/android/app/src/main/cpp/miniaudio_async_test.cpp | ondesly/audio_engine | 37e68f9e5be3f36b77aac6574e90d2150aef0f6d | [
"BSD-2-Clause"
] | null | null | null | //
// miniaudio_async_test.cpp
// audio_engine
//
// Created by Dmitrii Torkhov <dmitriitorkhov@gmail.com> on 03.09.2021.
// Copyright © 2021 Dmitrii Torkhov. All rights reserved.
//
#include <iostream>
#include <miniaudio.h>
#include "miniaudio_async_test.h"
oo::audio::miniaudio_async_test::miniaudio_async_tes... | 28.908046 | 72 | 0.496223 | ondesly |
d0a2185b3868089cf0490fa9942ed3649c49d8d9 | 3,749 | hpp | C++ | include/ouchilib/crypto/algorithm/mugi.hpp | ouchiminh/ouchilib | de1bab0aa75c9e567ce06d76c95bc330dffbf52e | [
"MIT"
] | 1 | 2019-06-11T05:22:54.000Z | 2019-06-11T05:22:54.000Z | include/ouchilib/crypto/algorithm/mugi.hpp | ouchiminh/ouchilib | de1bab0aa75c9e567ce06d76c95bc330dffbf52e | [
"MIT"
] | 1 | 2019-10-30T14:33:37.000Z | 2019-10-31T15:01:09.000Z | include/ouchilib/crypto/algorithm/mugi.hpp | ouchiminh/ouchilib | de1bab0aa75c9e567ce06d76c95bc330dffbf52e | [
"MIT"
] | null | null | null | #pragma once
#include <type_traits>
#include "ouchilib/math/gf.hpp"
#include "ouchilib/math/matrix.hpp"
#include "../common.hpp"
#include "aes.hpp"
namespace ouchi::crypto {
struct mugi {
static constexpr unsigned vec_size = 16;
using result_type = std::uint64_t;
mugi() = default;
mugi(memory_view<ve... | 32.042735 | 123 | 0.486263 | ouchiminh |
d0a23b9cbdba85704b8ff417427ebfafaf0b160e | 1,289 | cpp | C++ | may20/pizzav2.cpp | HectorFuentes/COP1334C | 1092278e1c6381d1e49a97a4065f2a2cd8b81e5d | [
"MIT"
] | null | null | null | may20/pizzav2.cpp | HectorFuentes/COP1334C | 1092278e1c6381d1e49a97a4065f2a2cd8b81e5d | [
"MIT"
] | null | null | null | may20/pizzav2.cpp | HectorFuentes/COP1334C | 1092278e1c6381d1e49a97a4065f2a2cd8b81e5d | [
"MIT"
] | null | null | null | /*pizza.cpp
Michelle Levine
May 20, 2015
This program prompts the user for some information about a pizza.
The slice area and cost are calculated and displayed.
*/
//preprocessor directives
#include<iostream>
#include<iomanip>
#include<cmath> //needed for the pow function
using namespace std;
int main()
{
//Declare ... | 24.320755 | 88 | 0.683476 | HectorFuentes |
d0a7bec7424353250c0310a2f6ab72ef9d35ddb8 | 1,148 | cpp | C++ | PAT_A/PAT_A1070.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | 3 | 2019-07-08T05:20:28.000Z | 2021-09-22T10:53:26.000Z | PAT_A/PAT_A1070.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | PAT_A/PAT_A1070.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n, d;
double tempF, profit = 0;
double amounts[1010], prices[1010], pricePerTon[1010];
struct item
{
double amount, prices, pricePerTon;
item(double _amount, double _prices, double _pricePerTon)
{
amount = _amount;
prices = _prices;
... | 23.428571 | 80 | 0.515679 | EnhydraGod |
d0a96743b8e5ec7f9a0fc7cd18b9ece814290561 | 3,283 | cpp | C++ | src/Camera.cpp | hmkum/HMK-OpenGL-Demo | 254f5814ed1c552dd0ab348cd3ab9332c9d1ef70 | [
"MIT"
] | null | null | null | src/Camera.cpp | hmkum/HMK-OpenGL-Demo | 254f5814ed1c552dd0ab348cd3ab9332c9d1ef70 | [
"MIT"
] | null | null | null | src/Camera.cpp | hmkum/HMK-OpenGL-Demo | 254f5814ed1c552dd0ab348cd3ab9332c9d1ef70 | [
"MIT"
] | null | null | null | #include <cmath>
#include "Camera.h"
#include <thirdparty/glm/gtc/matrix_transform.hpp>
using namespace hmk;
static const float MaxVerticalAngle = 85.0f; //must be less than 90 to avoid gimbal lock
Camera::Camera() :
m_position(0.0f, 0.0f, 1.0f),
m_horizontalAngle(0.0f),
m_verticalAngle(0.0f),
m_fov(... | 22.798611 | 97 | 0.69601 | hmkum |
d0a987a31bf7d3d4181a725d0812bfb4c00305a2 | 8,851 | cpp | C++ | abclient/abclient/ClientPrediction.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | abclient/abclient/ClientPrediction.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | abclient/abclient/ClientPrediction.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | /**
* Copyright 2017-2020 Stefan Ascher
*
* 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, pub... | 35.123016 | 108 | 0.661055 | pablokawan |
d0a998f8d368a9dd4e71e0677cb0f552d3df8b2d | 358 | hpp | C++ | libs/gfxtk_vulkan/src/gfxtk/backend/vulkan/TriangleFillMode.hpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | libs/gfxtk_vulkan/src/gfxtk/backend/vulkan/TriangleFillMode.hpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | libs/gfxtk_vulkan/src/gfxtk/backend/vulkan/TriangleFillMode.hpp | NostalgicGhoul/gfxtk | 6662d6d1b285e20806ecfef3cdcb620d6605e478 | [
"BSD-2-Clause"
] | null | null | null | #ifndef GFXTK_BACKEND_VULKAN_TRIANGLEFILLMODE_HPP
#define GFXTK_BACKEND_VULKAN_TRIANGLEFILLMODE_HPP
#include <vulkan/vulkan.h>
#include <gfxtk/TriangleFillMode.hpp>
namespace gfxtk::backend {
struct TriangleFillMode {
static VkPolygonMode convert(gfxtk::TriangleFillMode fillMode);
};
}
#endif //GFXT... | 23.866667 | 71 | 0.807263 | NostalgicGhoul |
d0adf93377aa91b3c8b573a9192c780af827352c | 271 | cpp | C++ | driver/src/exception/DriverException.cpp | pranavsubramani/Birch | 0a4bb698ed44353c8e8b93d234f2941d7511683c | [
"Apache-2.0"
] | 86 | 2017-10-29T15:46:41.000Z | 2022-01-17T07:18:16.000Z | driver/src/exception/DriverException.cpp | pranavsubramani/Birch | 0a4bb698ed44353c8e8b93d234f2941d7511683c | [
"Apache-2.0"
] | 13 | 2020-09-27T03:31:57.000Z | 2021-05-27T00:39:14.000Z | driver/src/exception/DriverException.cpp | pranavsubramani/Birch | 0a4bb698ed44353c8e8b93d234f2941d7511683c | [
"Apache-2.0"
] | 12 | 2018-08-21T12:57:18.000Z | 2021-05-26T18:41:50.000Z | /**
* @file
*/
#include "src/exception/DriverException.hpp"
birch::DriverException::DriverException() {
//
}
birch::DriverException::DriverException(const std::string& msg) {
std::stringstream base;
base << "error: " << msg << '\n';
this->msg = base.str();
}
| 18.066667 | 65 | 0.642066 | pranavsubramani |
d0ae248d3cdab786948de9075956e0818d9fdf8d | 5,734 | cpp | C++ | dlls/weapons/CShockBeam.cpp | Admer456/halflife-dnf01 | a3cacddb5ff3dedfea2d157c72711ba1df429dac | [
"Unlicense"
] | null | null | null | dlls/weapons/CShockBeam.cpp | Admer456/halflife-dnf01 | a3cacddb5ff3dedfea2d157c72711ba1df429dac | [
"Unlicense"
] | null | null | null | dlls/weapons/CShockBeam.cpp | Admer456/halflife-dnf01 | a3cacddb5ff3dedfea2d157c72711ba1df429dac | [
"Unlicense"
] | null | null | null | /***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object ... | 22.311284 | 114 | 0.687129 | Admer456 |
d0b6485309e26c3d7ebb0b31f6618b1e94507eae | 8,190 | hpp | C++ | ql/math/statistics/histogram.hpp | markxio/Quantuccia | ebe71a1b9c2a9ee7fc4ea918a9602f100316869d | [
"BSD-3-Clause"
] | 29 | 2017-03-20T14:17:39.000Z | 2021-12-22T08:00:52.000Z | ql/math/statistics/histogram.hpp | markxio/Quantuccia | ebe71a1b9c2a9ee7fc4ea918a9602f100316869d | [
"BSD-3-Clause"
] | 10 | 2017-04-02T14:34:07.000Z | 2021-01-13T05:31:12.000Z | ql/math/statistics/histogram.hpp | markxio/Quantuccia | ebe71a1b9c2a9ee7fc4ea918a9602f100316869d | [
"BSD-3-Clause"
] | 22 | 2017-03-19T05:56:19.000Z | 2022-03-16T13:30:20.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2007 Gang Liang
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or m... | 27.029703 | 86 | 0.634554 | markxio |
d0b692c546d9197e18f0d44f1121b0946f313b90 | 829 | hpp | C++ | rj_param_utils/include/rj_param_utils/ros2_local_param_provider.hpp | xiaoqingyu0113/robocup-software | 6127d25fc455051ef47610d0e421b2ca7330b4fa | [
"Apache-2.0"
] | 200 | 2015-01-26T01:45:34.000Z | 2022-03-19T13:05:31.000Z | rj_param_utils/include/rj_param_utils/ros2_local_param_provider.hpp | xiaoqingyu0113/robocup-software | 6127d25fc455051ef47610d0e421b2ca7330b4fa | [
"Apache-2.0"
] | 1,254 | 2015-01-03T01:57:35.000Z | 2022-03-16T06:32:21.000Z | rj_param_utils/include/rj_param_utils/ros2_local_param_provider.hpp | xiaoqingyu0113/robocup-software | 6127d25fc455051ef47610d0e421b2ca7330b4fa | [
"Apache-2.0"
] | 206 | 2015-01-21T02:03:18.000Z | 2022-02-01T17:57:46.000Z | #pragma once
#include <rclcpp/rclcpp.hpp>
#include "rj_param_utils/ros2_param_provider.hpp"
namespace params {
/**
*
*/
class LocalROS2ParamProvider : public BaseROS2ParamProvider {
public:
explicit LocalROS2ParamProvider(rclcpp::Node* node, const std::string& module);
protected:
/**
* @brief Calls ... | 24.382353 | 87 | 0.714113 | xiaoqingyu0113 |
d0bc88174c2d966482ab38237640f5e9872d8b6a | 2,420 | cpp | C++ | Assigment 12/a12_p3/Tournamentmember.cpp | UrfanAlvany/Programming-in-C-and-Cpp | e23a485d5ce302cbbc14bd67a0f656797c3f6af1 | [
"MIT"
] | 1 | 2022-01-02T16:02:09.000Z | 2022-01-02T16:02:09.000Z | Assigment 12/a12_p3/Tournamentmember.cpp | UrfanAlvany/Programming-in-C-and-Cpp | e23a485d5ce302cbbc14bd67a0f656797c3f6af1 | [
"MIT"
] | null | null | null | Assigment 12/a12_p3/Tournamentmember.cpp | UrfanAlvany/Programming-in-C-and-Cpp | e23a485d5ce302cbbc14bd67a0f656797c3f6af1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
#include "TournamentMember.h"
using namespace std;
string TournamentMember::location;
TournamentMember::TournamentMember()
{
strcpy(this->name,"Tournament");
strcpy(this->LastName,"Member");
strcpy(this->Bday,"2000-12-19");
cout << "Created with TournamentMembe... | 25.744681 | 107 | 0.573554 | UrfanAlvany |
d0c4474cbb478c62a17f5eb45c64593af819be2e | 882 | cpp | C++ | CH17/COMPARE1/compare.cpp | acastellanos95/AppCompPhys | 920a7ba707e92f1ef92fba9d97323863994f0b1a | [
"MIT"
] | null | null | null | CH17/COMPARE1/compare.cpp | acastellanos95/AppCompPhys | 920a7ba707e92f1ef92fba9d97323863994f0b1a | [
"MIT"
] | null | null | null | CH17/COMPARE1/compare.cpp | acastellanos95/AppCompPhys | 920a7ba707e92f1ef92fba9d97323863994f0b1a | [
"MIT"
] | null | null | null | #include <iostream>
bool comparesGreater(int a, int b) {
if (a > b)
return true;
return false;
}
bool comparesGreater(double a, double b) {
if (a > b)
return true;
return false;
}
int main(int argc, char *argv[]) {
using namespace std;
cout << "1 (int) compares greater than 2 (int)? " << comparesG... | 27.5625 | 142 | 0.61678 | acastellanos95 |
d0c52e5448eb548e5699e99843f2f3b93659fb98 | 5,376 | cpp | C++ | tests/bin/test_two_sqz.cpp | YJieZhang/Tengine | f5cf2b4cecde412d9c9ae72c3278d9c65110e206 | [
"Apache-2.0"
] | null | null | null | tests/bin/test_two_sqz.cpp | YJieZhang/Tengine | f5cf2b4cecde412d9c9ae72c3278d9c65110e206 | [
"Apache-2.0"
] | null | null | null | tests/bin/test_two_sqz.cpp | YJieZhang/Tengine | f5cf2b4cecde412d9c9ae72c3278d9c65110e206 | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 22.4 | 81 | 0.65718 | YJieZhang |
d0cbd4e80f26e7e85fcf16d32e8d80f7a872bb82 | 245 | cpp | C++ | source/automated-tests/boost-test/main.test.cpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | 3 | 2020-05-24T16:29:42.000Z | 2021-09-10T13:33:15.000Z | source/automated-tests/boost-test/main.test.cpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | null | null | null | source/automated-tests/boost-test/main.test.cpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | null | null | null | #define BOOST_TEST_MODULE cppx-core unit tests
#include <_/test-framework.hpp>
#ifdef _WIN32
# include <c/stdlib.hpp> // system
const bool dummy = []()
{
return EXIT_SUCCESS == system( "chcp 65001 >nul" );
}();
#endif
| 22.272727 | 59 | 0.62449 | alf-p-steinbach |
d0cc1e55b47760d4df738d02ab8603975614ff1f | 219 | cpp | C++ | test/scratch/test.scratch.temp_file/implicit_link.cpp | stlsoft/xTests | fa0a0315283f85f2b8c07a5ce9e5dce19127541a | [
"BSD-3-Clause"
] | 1 | 2016-04-02T16:56:29.000Z | 2016-04-02T16:56:29.000Z | test/scratch/test.scratch.temp_file/implicit_link.cpp | stlsoft/xTests | fa0a0315283f85f2b8c07a5ce9e5dce19127541a | [
"BSD-3-Clause"
] | 1 | 2019-10-09T18:16:48.000Z | 2019-10-09T18:16:48.000Z | test/scratch/test.scratch.temp_file/implicit_link.cpp | stlsoft/xTests | fa0a0315283f85f2b8c07a5ce9e5dce19127541a | [
"BSD-3-Clause"
] | 2 | 2016-02-08T20:20:09.000Z | 2021-03-31T10:37:23.000Z |
#include <platformstl/platformstl.h>
#if defined(PLATFORMSTL_OS_IS_UNIX) && \
defined(_WIN32)
# include <unixem/implicit_link.h>
#endif
/* ///////////////////////////// end of file //////////////////////////// */
| 24.333333 | 76 | 0.525114 | stlsoft |
d0cc96f2d42506c592cd5a70db196590b758bcc8 | 2,559 | cpp | C++ | tcpserver.cpp | GSIO01/gsnet | 3f073c82c41f3a5832d34ab5edfdbb935e844c05 | [
"MIT"
] | null | null | null | tcpserver.cpp | GSIO01/gsnet | 3f073c82c41f3a5832d34ab5edfdbb935e844c05 | [
"MIT"
] | null | null | null | tcpserver.cpp | GSIO01/gsnet | 3f073c82c41f3a5832d34ab5edfdbb935e844c05 | [
"MIT"
] | null | null | null | /*
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Walter Julius Hennecke
*
* 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 righ... | 28.433333 | 99 | 0.684642 | GSIO01 |
d0cd0bd45b34b913f96ff501a606f32db873c560 | 1,329 | hpp | C++ | sprout/weed/expr/make_terminal.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | 1 | 2018-09-21T23:50:44.000Z | 2018-09-21T23:50:44.000Z | sprout/weed/expr/make_terminal.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | sprout/weed/expr/make_terminal.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_WEED_EXPR_MAKE_TERMINAL_HPP
#define SPROUT_WEED_EXPR_MAKE_TERMINAL_HPP
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/string.hpp>
#include <sprout/utility/forward.hpp>
#include <sprout/weed/traits/type/is_c_str.hpp>
#include <sprout/weed/traits/expr/terminal_of.hpp>
#inclu... | 30.906977 | 65 | 0.702032 | jwakely |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.