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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5bec9d84fcda06f7a6f5ad23fd50a24cbdb9a2aa | 2,048 | cpp | C++ | AADC/src/adtfUser/dev/src/util/map/sensor_map.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | 1 | 2018-05-10T22:35:25.000Z | 2018-05-10T22:35:25.000Z | AADC/src/adtfUser/dev/src/util/map/sensor_map.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | null | null | null | AADC/src/adtfUser/dev/src/util/map/sensor_map.cpp | AADC-Fruit/AADC_2015_FRUIT | 88bd18871228cb48c46a3bd803eded6f14dbac08 | [
"BSD-3-Clause"
] | null | null | null | #include "sensor_map.h"
// -------------------------------------------------------------------------------------------------
SensorMap::SensorMap(size_t width, size_t height, size_t cell_size, int cost)
: SearchMap(width, height, cell_size, cost) {}
// ---------------------------------------------------------------... | 51.2 | 113 | 0.447266 | AADC-Fruit |
5bee64359fcf40637e79b54a2be8092b148eb8f7 | 1,493 | cpp | C++ | fontys_at_work/lowpass_filter/src/lowpass_filter.cpp | MrJaeqx/ESA--WORK | 50d5b397f634db98e2627a764c7731e76a4b3feb | [
"MIT"
] | 2 | 2018-03-09T13:44:29.000Z | 2019-12-18T16:17:03.000Z | fontys_at_work/lowpass_filter/src/lowpass_filter.cpp | MrJaeqx/ESA--WORK | 50d5b397f634db98e2627a764c7731e76a4b3feb | [
"MIT"
] | 32 | 2017-11-19T16:26:41.000Z | 2018-01-19T12:36:10.000Z | fontys_at_work/lowpass_filter/src/lowpass_filter.cpp | FontysAtWork/ESA-PROJ | 50d5b397f634db98e2627a764c7731e76a4b3feb | [
"MIT"
] | 1 | 2017-11-19T12:45:37.000Z | 2017-11-19T12:45:37.000Z | #include "ros/ros.h"
#include "geometry_msgs/Twist.h"
double T = 0.3; //sec
double dt = 0.1; //ms
double x_ = 0;
double y_ = 0;
double z_ = 0;
double epsilon = 0.0001;
ros::Publisher twistPublisher;
double lowPassFilter(double x, double y0, double dt, double T) // Taken from http://en.wikipedia.org/wiki/Lo... | 21.028169 | 130 | 0.651708 | MrJaeqx |
5bf1383ad6e73054cb8b8b0dd3c57aa6ae6e4836 | 762 | cpp | C++ | test/test_Exporter.cpp | tomcreutz/knowledge-reasoning-moreorg | 545fa92eaf0fc8ccc4cc042bd994afc918d16f68 | [
"BSD-3-Clause"
] | null | null | null | test/test_Exporter.cpp | tomcreutz/knowledge-reasoning-moreorg | 545fa92eaf0fc8ccc4cc042bd994afc918d16f68 | [
"BSD-3-Clause"
] | 1 | 2021-02-26T11:11:03.000Z | 2021-02-26T19:16:10.000Z | test/test_Exporter.cpp | tomcreutz/knowledge-reasoning-moreorg | 545fa92eaf0fc8ccc4cc042bd994afc918d16f68 | [
"BSD-3-Clause"
] | 1 | 2021-05-17T13:02:49.000Z | 2021-05-17T13:02:49.000Z | #include <boost/test/unit_test.hpp>
#include <moreorg/exporter/PDDLExporter.hpp>
#include <moreorg/OrganizationModelAsk.hpp>
#include <moreorg/vocabularies/OM.hpp>
#include "test_utils.hpp"
using namespace moreorg;
BOOST_AUTO_TEST_SUITE(exporter)
BOOST_AUTO_TEST_CASE(pddl)
{
using namespace owlapi::vocabulary;
... | 27.214286 | 68 | 0.755906 | tomcreutz |
5bf41fa806370492f194ff943fc8cda2894d5b4c | 2,422 | cpp | C++ | source/mechcmd2/mechgui/aanimobject.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 38 | 2015-04-10T13:31:03.000Z | 2021-09-03T22:34:05.000Z | source/mechcmd2/mechgui/aanimobject.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 1 | 2020-07-09T09:48:44.000Z | 2020-07-12T12:41:43.000Z | source/mechcmd2/mechgui/aanimobject.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 12 | 2015-06-29T08:06:57.000Z | 2021-10-13T13:11:41.000Z | /*************************************************************************************************\
aAnimObject.cpp : Implementation of the aAnimObject component.
//---------------------------------------------------------------------------//
// Copyright (C) Microsoft Corporation. All rights reserved. ... | 26.043011 | 99 | 0.54872 | mechasource |
5bf507a46ee4be6bcf89ba42c672aa2806726984 | 1,199 | hpp | C++ | include/cjdb/concepts/comparison/equality_comparable.hpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 4 | 2019-03-02T01:09:07.000Z | 2019-10-16T15:46:21.000Z | include/cjdb/concepts/comparison/equality_comparable.hpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 5 | 2018-12-16T13:47:32.000Z | 2019-10-13T01:27:11.000Z | include/cjdb/concepts/comparison/equality_comparable.hpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 3 | 2020-06-08T18:27:28.000Z | 2021-03-27T17:49:46.000Z | // Copyright (c) Christopher Di Bella.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
#ifndef CJDB_CONCEPTS_COMPARISON_EQUALITYCOMPARABLE_HPP
#define CJDB_CONCEPTS_COMPARISON_EQUALITYCOMPARABLE_HPP
#include "cjdb/concepts/core/common_reference_with.hpp"
#include "cjdb/detail/concepts/comparison/weakly_e... | 41.344828 | 105 | 0.795663 | cjdb |
5bf52f1910b6fa40407c5ab75042722e6ec8798c | 909 | hpp | C++ | environment/core/Agent.hpp | hilkoc/AI_Arena | 592be09062a4cf02f2b153e3c2e5afc7ca15d084 | [
"MIT"
] | 35 | 2017-05-29T04:25:20.000Z | 2021-10-03T22:43:57.000Z | environment/core/Agent.hpp | hilkoc/AI_Arena | 592be09062a4cf02f2b153e3c2e5afc7ca15d084 | [
"MIT"
] | null | null | null | environment/core/Agent.hpp | hilkoc/AI_Arena | 592be09062a4cf02f2b153e3c2e5afc7ca15d084 | [
"MIT"
] | 1 | 2019-03-05T03:38:17.000Z | 2019-03-05T03:38:17.000Z | #pragma once
#include <vector>
#include "Action.hpp"
#include "State.hpp"
#include "Reward.hpp"
#include "logging/log.h"
class InitialState;
class AgentState;
/** The Agent. */
class Agent {
public:
virtual ~Agent() = default;
Agent(unsigned int const agent_id) : id(agent_id) {};
/** Receive the initi... | 22.170732 | 69 | 0.662266 | hilkoc |
5bf74d347e291756cb0e324de362b2468bf9de8c | 40,255 | cpp | C++ | CommonLisp/m+mCommonLispFilterService.cpp | opendragon/Core_MPlusM | c82bb00761551a86abe50c86e0df1f247704c848 | [
"BSD-3-Clause"
] | null | null | null | CommonLisp/m+mCommonLispFilterService.cpp | opendragon/Core_MPlusM | c82bb00761551a86abe50c86e0df1f247704c848 | [
"BSD-3-Clause"
] | null | null | null | CommonLisp/m+mCommonLispFilterService.cpp | opendragon/Core_MPlusM | c82bb00761551a86abe50c86e0df1f247704c848 | [
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------------------------------
//
// File: m+mCommonLispFilterService.cpp
//
// Project: m+m
//
// Contains: The class definition for the CommonLisp filter service.
//
// Written by: Norman Jaffe
//
// Copyright: (c) 2015 by H Plus T... | 36.364047 | 100 | 0.507067 | opendragon |
5bf89f561d792d82fabb448000b6dc67fc0f5ebd | 3,940 | cpp | C++ | src/kuafu.cpp | jetd1/kuafu | 819d338682f3e889710731cf7ca16f790b54568f | [
"MIT"
] | 17 | 2021-09-03T03:06:48.000Z | 2022-03-27T04:02:14.000Z | src/kuafu.cpp | jetd1/kuafu | 819d338682f3e889710731cf7ca16f790b54568f | [
"MIT"
] | null | null | null | src/kuafu.cpp | jetd1/kuafu | 819d338682f3e889710731cf7ca16f790b54568f | [
"MIT"
] | null | null | null | //
// Modified by Jet <i@jetd.me> based on Rayex source code.
// Original copyright notice:
//
// Copyright (c) 2021 Christian Hilpert
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the author be held liable for any damages
// arising from the use of this software.... | 30.542636 | 111 | 0.675381 | jetd1 |
5bfcf1dc576bf516cea7737b222149fa00c0f503 | 1,321 | cc | C++ | LuoGu/1197.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | 1 | 2017-10-12T13:49:10.000Z | 2017-10-12T13:49:10.000Z | LuoGu/1197.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | null | null | null | LuoGu/1197.cc | DesZou/Eros | f49c9ce1dfe193de8199163286afc28ff8c52eef | [
"MIT"
] | 1 | 2017-10-12T13:49:38.000Z | 2017-10-12T13:49:38.000Z | /**
* luogu 1197
*
* union-find set
* reverse the events' order
*
* **/
#include <cstdio>
#include <algorithm>
#include <iostream>
#include <vector>
const int N = 4e5 + 5;
int n, m, k;
int idx;
int atk[N];
int fa[N];
int ans[N];
int head[N];
bool destroyed[N];
struct Edge { int a, b, next; } e[N];
int fin... | 15.183908 | 77 | 0.458743 | DesZou |
750416a47c2cdb4ffa41e6c76bf767cdd271b378 | 590 | cpp | C++ | Amitabh Sir/A3.cpp | akhlak-mahmood/CP_DU_Phys_2014-15 | 2d33e8882d149ca1a2469a31d9060604e810e67b | [
"MIT"
] | null | null | null | Amitabh Sir/A3.cpp | akhlak-mahmood/CP_DU_Phys_2014-15 | 2d33e8882d149ca1a2469a31d9060604e810e67b | [
"MIT"
] | null | null | null | Amitabh Sir/A3.cpp | akhlak-mahmood/CP_DU_Phys_2014-15 | 2d33e8882d149ca1a2469a31d9060604e810e67b | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <cstdlib>
using namespace std;
double myfact(int n)
{
if(n<0) exit(1);
if(n==0) return 1.0;
else return n * myfact(n-1);
}
double stirling(int n)
{
// Its a factorial, not gonna expect a negative number here
if(n<0) exit(1);
return sqrt(2*M_PI*n... | 17.878788 | 99 | 0.538983 | akhlak-mahmood |
750c3b00d8747b0d674946856743ca4c1f757a84 | 14,194 | cpp | C++ | src/sbbs3/download.cpp | jonny290/synchronet | 012a39d00a3160a593ef5923fdc1ee95e0497083 | [
"Artistic-2.0"
] | 1 | 2017-07-18T03:56:48.000Z | 2017-07-18T03:56:48.000Z | src/sbbs3/download.cpp | jonny290/synchronet | 012a39d00a3160a593ef5923fdc1ee95e0497083 | [
"Artistic-2.0"
] | null | null | null | src/sbbs3/download.cpp | jonny290/synchronet | 012a39d00a3160a593ef5923fdc1ee95e0497083 | [
"Artistic-2.0"
] | null | null | null | /* download.cpp */
/* Synchronet file download routines */
/* $Id: download.cpp,v 1.45 2011/10/19 06:53:03 rswindell Exp $ */
/****************************************************************************
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.... | 29.205761 | 84 | 0.583275 | jonny290 |
750ebb51cf84cfef403ac4e987664c49a0cb8c06 | 35,687 | cpp | C++ | core86/backend/gen/Generate86.cpp | JulesIMF/HCC_86 | a4d8eab6006364f11a0b804eee3d1d3897de877a | [
"MIT"
] | null | null | null | core86/backend/gen/Generate86.cpp | JulesIMF/HCC_86 | a4d8eab6006364f11a0b804eee3d1d3897de877a | [
"MIT"
] | null | null | null | core86/backend/gen/Generate86.cpp | JulesIMF/HCC_86 | a4d8eab6006364f11a0b804eee3d1d3897de877a | [
"MIT"
] | null | null | null | /**********************************************************************
Copyright (c) 2020 MIPT
Module Name:
Generate86.h
Abstract:
Author:
JulesIMF
Last Edit:
13.05.2021 03:48
Edit Notes:
**********************************************************************/
#define _CRT_SECURE_NO_WARN... | 28.503994 | 118 | 0.581444 | JulesIMF |
750edf30a8acb7d8dd475c7c667056144bfd2b9a | 2,492 | cpp | C++ | src/examples/cpp/helloworld_capture.cpp | jpherbst/qot-stack | 19ffb67eb12a5118df79a7daa58bd0f4d01fea2d | [
"Unlicense"
] | null | null | null | src/examples/cpp/helloworld_capture.cpp | jpherbst/qot-stack | 19ffb67eb12a5118df79a7daa58bd0f4d01fea2d | [
"Unlicense"
] | null | null | null | src/examples/cpp/helloworld_capture.cpp | jpherbst/qot-stack | 19ffb67eb12a5118df79a7daa58bd0f4d01fea2d | [
"Unlicense"
] | null | null | null | /*
* @file helloworld_capture.cpp
* @brief Simple C++ example showing how to register to listen for capture events
* @author Andrew Symington and Fatima Anwar
*
* Copyright (c) Regents of the University of California, 2015. All rights reserved.
*
* Redistribution and use in source and binary forms, with or wit... | 36.647059 | 92 | 0.722713 | jpherbst |
7512dfdc7d359ae2b806ceeaa419db0d6ae53033 | 2,530 | cpp | C++ | src/components/UISubtitleBox.cpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 399 | 2019-01-06T17:55:18.000Z | 2022-03-21T17:41:18.000Z | src/components/UISubtitleBox.cpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 101 | 2019-04-18T21:03:53.000Z | 2022-01-08T13:27:01.000Z | src/components/UISubtitleBox.cpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 56 | 2019-04-10T10:18:27.000Z | 2022-02-08T01:23:31.000Z | #include "UISubtitleBox.hpp"
#include <GUI/BsGUILabel.h>
#include <GUI/BsGUIPanel.h>
#include <GUI/BsGUITexture.h>
#include <RTTI/RTTI_UISubtitleBox.hpp>
#include <original-content/OriginalGameResources.hpp>
namespace REGoth
{
/**
* How fast the box should be growing/shrinking
*/
constexpr float SIZE_CHANGE_... | 23.211009 | 92 | 0.640316 | KirmesBude |
7512fd6c378621051de64fb2a3880b0d935a2fe5 | 1,976 | cc | C++ | cpp/MinimumWindowSubstring.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | cpp/MinimumWindowSubstring.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | cpp/MinimumWindowSubstring.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | namespace MinimumWindowSubString {
class Solution {
public:
string minWindow(string S, string T) { // Note: T could contain duplicated entries, such as "aab"
if (T.empty()) return "";
int alphaSet[256];
fill_n(alphaSet, 256, 0);
for (int i = 0; i < T.... | 35.927273 | 105 | 0.343117 | speedfirst |
7514e8e836fd9570f6daa819349c7dfc0f307c7c | 8,122 | hxx | C++ | src/net/async_ack_geraet.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | null | null | null | src/net/async_ack_geraet.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | null | null | null | src/net/async_ack_geraet.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | 1 | 2022-01-29T11:54:41.000Z | 2022-01-29T11:54:41.000Z | /**
* @file
* @author Jason Lingle
* @date 2012.02.12
* @brief Contains the Asynchronous Acknowledgement Gerät and related classes.
*/
#ifndef ASYNC_ACK_GERAET_HXX_
#define ASYNC_ACK_GERAET_HXX_
#include <map>
#include <set>
#include <deque>
#include <vector>
#include "network_geraet.hxx"
class AsyncAckGeraet;
... | 30.649057 | 78 | 0.708446 | AltSysrq |
7517083c5e9b95ce262beb3710134252acf7e694 | 6,992 | cpp | C++ | src/polyrenderer/poly_renderer.cpp | raa-eruanna/ProjectPanther | 7d703c162b4ede25faa3e99cacacb4fc79fb77da | [
"RSA-MD"
] | 2 | 2018-01-18T21:30:20.000Z | 2018-01-19T02:24:46.000Z | src/polyrenderer/poly_renderer.cpp | raa-eruanna/ProjectPanther | 7d703c162b4ede25faa3e99cacacb4fc79fb77da | [
"RSA-MD"
] | null | null | null | src/polyrenderer/poly_renderer.cpp | raa-eruanna/ProjectPanther | 7d703c162b4ede25faa3e99cacacb4fc79fb77da | [
"RSA-MD"
] | null | null | null | /*
** Polygon Doom software renderer
** Copyright (c) 2016 Magnus Norddahl
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this s... | 31.638009 | 133 | 0.738844 | raa-eruanna |
751976564aa027e98e9157aefcfec78780f9640b | 4,275 | cpp | C++ | source/Core/ElypseCore/EMGui.cpp | DragonJoker/Elypse | 5dce65ba97fb830349d157da77d9dc151cccc70e | [
"MIT"
] | 9 | 2017-12-06T17:21:56.000Z | 2020-11-15T14:06:07.000Z | source/Core/ElypseCore/EMGui.cpp | DragonJoker/Elypse | 5dce65ba97fb830349d157da77d9dc151cccc70e | [
"MIT"
] | null | null | null | source/Core/ElypseCore/EMGui.cpp | DragonJoker/Elypse | 5dce65ba97fb830349d157da77d9dc151cccc70e | [
"MIT"
] | 1 | 2020-01-08T05:20:05.000Z | 2020-01-08T05:20:05.000Z | /*
See LICENSE file in root folder
*/
#include "PrecompiledHeader.h"
#include "EMGui.h"
#include "EMOverlay.h"
#include "EMOverlayGroup.h"
#include "ScriptNode.h"
#include <OgreOverlay.h>
#include <OgreOverlayElement.h>
#include <OgreFontManager.h>
EMGui::EMGui( String const & p_instanceKey, Real p_aspect )
: m_cu... | 20.552885 | 93 | 0.69193 | DragonJoker |
751e321cfb56285f53ac29067e9aa110bc19ee8c | 592 | cpp | C++ | firmware/src/Digits.cpp | atomic14/supersise-seven-segment | 186444a18921cb53bf4bac33a5bb861f62cf14ef | [
"Unlicense"
] | 2 | 2022-03-17T03:15:16.000Z | 2022-03-19T12:07:15.000Z | firmware/src/Digits.cpp | atomic14/supersise-seven-segment | 186444a18921cb53bf4bac33a5bb861f62cf14ef | [
"Unlicense"
] | null | null | null | firmware/src/Digits.cpp | atomic14/supersise-seven-segment | 186444a18921cb53bf4bac33a5bb861f62cf14ef | [
"Unlicense"
] | null | null | null | #include "Digits.h"
#include "Digit.h"
Digits::Digits(int number_digits)
{
m_number_digits = number_digits;
m_digits = new Digit[number_digits];
}
Digits::~Digits()
{
delete[] m_digits;
}
int Digits::get_digit_segment(int digit, int segment)
{
if (digit >= 0 && digit < m_number_digits && segment >= 0... | 19.733333 | 78 | 0.618243 | atomic14 |
97086243aa47ba1923b0c6eaa4132a727fb371ae | 56 | hpp | C++ | src/boost_fusion_sequence_intrinsic_segments.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_sequence_intrinsic_segments.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_sequence_intrinsic_segments.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/sequence/intrinsic/segments.hpp>
| 28 | 55 | 0.821429 | miathedev |
970acd454c293b7b7bba0bdad789511808dd7146 | 2,708 | hpp | C++ | cpp/src/dotcpp/dot/serialization/json_record_serializer.hpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | 2 | 2019-08-08T01:29:02.000Z | 2019-08-18T19:19:00.000Z | cpp/src/dotcpp/dot/serialization/json_record_serializer.hpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | null | null | null | cpp/src/dotcpp/dot/serialization/json_record_serializer.hpp | datacentricorg/datacentric-cpp | 252f642b1a81c2475050d48e9564eec0a561907e | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2015-present The DotCpp Authors.
This file is part of .C++, a native C++ implementation of
popular .NET class library APIs developed to facilitate
code reuse between C# and C++.
http://github.com/dotcpp/dotcpp (source)
http://dotcpp.org (documentation)
Licensed under the Apache License, Vers... | 37.611111 | 131 | 0.750739 | datacentricorg |
970ce55e31884322d59a6874b96e590139614aa4 | 12,926 | cpp | C++ | src/VariableWidthContouring.cpp | mfx-inria/Variable-width-contouring | beba9e07a08d62b61937b400961c89cc513bb2be | [
"BSD-3-Clause"
] | 8 | 2020-06-19T21:15:16.000Z | 2022-01-01T07:27:53.000Z | src/VariableWidthContouring.cpp | mfx-inria/Variable-width-contouring | beba9e07a08d62b61937b400961c89cc513bb2be | [
"BSD-3-Clause"
] | 2 | 2021-05-19T09:15:14.000Z | 2021-05-19T13:54:09.000Z | src/VariableWidthContouring.cpp | mfx-inria/Variable-width-contouring | beba9e07a08d62b61937b400961c89cc513bb2be | [
"BSD-3-Clause"
] | 2 | 2020-06-10T08:39:09.000Z | 2020-09-05T00:27:47.000Z | /* vim: set sts=0 ts=4 sw=4 noet : */
#include "VariableWidthContouring.h"
//#include "chronograph.h"
//#include <cairo/cairo-pdf.h>
#include <algorithm>
#include <map>
#include <stack>
using namespace std;
BBox
VariableWidthContouring::
computeBBox() const {
BBox box(graph.verts.front().pos());
for ( MATvert & v... | 33.574026 | 118 | 0.630125 | mfx-inria |
970e6fc66ea7bb1f0a2d048419b7a190ccd84752 | 388 | cpp | C++ | contrib/easyce_2/tgafile.cpp | AndersAtEndian/PocketClive | 55192d9b8d9a9b92875d9dcc89501525647b943a | [
"Zlib"
] | null | null | null | contrib/easyce_2/tgafile.cpp | AndersAtEndian/PocketClive | 55192d9b8d9a9b92875d9dcc89501525647b943a | [
"Zlib"
] | null | null | null | contrib/easyce_2/tgafile.cpp | AndersAtEndian/PocketClive | 55192d9b8d9a9b92875d9dcc89501525647b943a | [
"Zlib"
] | null | null | null | #include "easyce.h"
#include "zlib.h"
// Generic tga class - February 2001 - The Phantom
static int s_IDLen = 0;
static int s_CMapType = 0;
static int s_ImgType = 0;
static int s_CMapOrig = 0;
static int s_CMapLen = 0;
static int s_CMapSize = 0;
static int s_XPos = 0;
static int s_YPos = 0;
static int s_W... | 21.555556 | 52 | 0.680412 | AndersAtEndian |
9711c4408b70772f28e3309ead1a277c6c2ebe00 | 3,990 | hpp | C++ | serialization.hpp | altosaar/gmm_cpp | e418387f4c7e5d841034f33f2cad68386311fba5 | [
"MIT"
] | 2 | 2017-10-21T17:04:25.000Z | 2018-07-16T02:03:19.000Z | serialization.hpp | altosaar/gmm_cpp | e418387f4c7e5d841034f33f2cad68386311fba5 | [
"MIT"
] | null | null | null | serialization.hpp | altosaar/gmm_cpp | e418387f4c7e5d841034f33f2cad68386311fba5 | [
"MIT"
] | 3 | 2018-07-05T21:16:55.000Z | 2021-01-30T17:12:33.000Z | #ifndef SERIALIZATION
#define SERIALIZATION
// Rajesh Ranganth (2014)
#define ARMA_64BIT_WORD
#include <armadillo>
// Simple access headers
#include <boost/serialization/split_member.hpp>
#include <boost/serialization/access.hpp>
// A simple, portable text archive
#include <boost/archive/text_oarchive.hpp>
#include ... | 28.098592 | 163 | 0.706516 | altosaar |
9713c697fa39d13a02b8d65824b91d521b2d1765 | 1,442 | cc | C++ | 2020/Nowcoder/Multischool 2020/Day4/H.cc | slowbear/TrainingCode | 688872b9dab784a410069b787457f8c0871648aa | [
"CC0-1.0"
] | null | null | null | 2020/Nowcoder/Multischool 2020/Day4/H.cc | slowbear/TrainingCode | 688872b9dab784a410069b787457f8c0871648aa | [
"CC0-1.0"
] | null | null | null | 2020/Nowcoder/Multischool 2020/Day4/H.cc | slowbear/TrainingCode | 688872b9dab784a410069b787457f8c0871648aa | [
"CC0-1.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using LL = long long;
#define rep(i, a, b) for (auto i = (a); i != (b); ++i)
#define gre(i, u) for (auto i = gh[u]; i != -1; i = gn[i])
#define mem(x, v) memset(x, v, sizeof(x))
#define cpy(x, y) memcpy(x, y, sizeof(x))
using VI = vector<int>;
using VP = vector<pair<int, in... | 22.184615 | 60 | 0.493065 | slowbear |
971a23f3b853682f46ae32bcf7d4f182908a5474 | 15,377 | cpp | C++ | Src/Cpp/tj.cpp | Yufeng-shen/TJ2GBE | 2841d307c74824b88b76b5aafa7ce23e9fc83477 | [
"BSD-3-Clause"
] | 1 | 2020-08-19T22:50:19.000Z | 2020-08-19T22:50:19.000Z | Src/Cpp/tj.cpp | Yufeng-shen/TJ2GBE | 2841d307c74824b88b76b5aafa7ce23e9fc83477 | [
"BSD-3-Clause"
] | 11 | 2020-08-20T01:05:46.000Z | 2022-02-05T04:00:32.000Z | Src/Cpp/tj.cpp | Yufeng-shen/TJ2GBE | 2841d307c74824b88b76b5aafa7ce23e9fc83477 | [
"BSD-3-Clause"
] | 3 | 2019-07-17T16:05:08.000Z | 2022-03-20T13:05:47.000Z | #include "tj.hpp"
#include <iomanip>
void TJ::write_bs(){
ofstream outputFile(cfg.outputDir+"GBs.txt");
outputFile<<std::fixed;
for(long int ii=0;ii<numGB;ii++){
bs[ii].Print(outputFile);
outputFile<<std::endl;
}
}
void TJ::cal_idxcell(){
#pragma omp parallel for
for(long int ii=0;i... | 29.916342 | 97 | 0.484685 | Yufeng-shen |
971b0324c85c3ac4b9dc204269c6a02f91ce8226 | 17,544 | cpp | C++ | C64/src/Game.cpp | HadaHector/Handy2D | 265b427e02879fef01d1e29338e5049b7dfe5cbe | [
"MIT"
] | null | null | null | C64/src/Game.cpp | HadaHector/Handy2D | 265b427e02879fef01d1e29338e5049b7dfe5cbe | [
"MIT"
] | null | null | null | C64/src/Game.cpp | HadaHector/Handy2D | 265b427e02879fef01d1e29338e5049b7dfe5cbe | [
"MIT"
] | null | null | null | #include "Game.h"
#include "SDLManager.h"
#include <algorithm>
#include "Input.h"
#include "Breakout.h"
#include "Audio.h"
extern std::vector<SC64Char> g_aLoadedChars;
std::pair<EC64Color, EC64Color> GetMaterialColor(EMaterial mat)
{
switch (mat)
{//sotet - vilagos
case EM_WOOD: return std::make_pair(EC64Color::... | 19.936364 | 119 | 0.627793 | HadaHector |
9721b5015a7009d91f27435789f6c4991d95242d | 421 | cpp | C++ | SDL_Test/MazeDoor.cpp | ukdv12/SDL_Test | 21b457c6d9b865550b36a0bfbcb77d34eace0861 | [
"MIT"
] | 1 | 2021-07-24T07:24:57.000Z | 2021-07-24T07:24:57.000Z | SDL_Test/MazeDoor.cpp | areliii/A-Maze-Game | 346a9468338ba51eab96051658bcf0cf00022805 | [
"MIT"
] | null | null | null | SDL_Test/MazeDoor.cpp | areliii/A-Maze-Game | 346a9468338ba51eab96051658bcf0cf00022805 | [
"MIT"
] | 2 | 2021-04-29T20:08:28.000Z | 2021-07-27T03:19:27.000Z | #include "MazeDoor.h"
SDL_Texture * MazeDoor::doorTexture;
MazeDoor::MazeDoor(std::shared_ptr<Room> setRoom) :
MazeObject::MazeObject(setRoom)
{
if (doorTexture == NULL)
{
doorTexture = IMG_LoadTexture(objRenderer, IMG_MAZEDOOR);
if (doorTexture == NULL)
{
printf("SDL could not load the Texture from ");
... | 17.541667 | 59 | 0.700713 | ukdv12 |
9722c68e87c57cbe14647f9ba434da4a53f8ddd7 | 166 | cpp | C++ | sources/Events/KeyEvents/KeyReleasedEvent.cpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | sources/Events/KeyEvents/KeyReleasedEvent.cpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | sources/Events/KeyEvents/KeyReleasedEvent.cpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | #include "Events/KeyEvents/KeyReleasedEvent.hpp"
namespace NAMESPACE
{
KeyReleasedEvent::KeyReleasedEvent(int keycode)
: IKeyEvent(keycode)
{
TRACE();
}
}
| 12.769231 | 48 | 0.73494 | Gilqamesh |
972411d5d7e7b5508183614aae4c978e4628a481 | 2,415 | cpp | C++ | Sonst/X3D-Module/X3D-Module/Writable/Metaable.cpp | jbxplan/GMLToolbox-src | fec35558787db18d222598e376bc7c1071c69a55 | [
"Apache-2.0"
] | 2 | 2021-05-04T06:23:46.000Z | 2022-02-04T21:40:07.000Z | Sonst/X3D-Module/X3D-Module/Writable/Metaable.cpp | jbxplan/GMLToolbox-src | fec35558787db18d222598e376bc7c1071c69a55 | [
"Apache-2.0"
] | null | null | null | Sonst/X3D-Module/X3D-Module/Writable/Metaable.cpp | jbxplan/GMLToolbox-src | fec35558787db18d222598e376bc7c1071c69a55 | [
"Apache-2.0"
] | 2 | 2020-07-13T12:14:11.000Z | 2021-05-04T06:23:49.000Z | #include "Metaable.h"
#include "GlobalDef.h"
namespace X3D
{
void Metaable::write(tinyxml2::XMLPrinter& printer)
{
if(!m_metadataString.empty() || !m_metadataDouble.empty() || !m_metadataFloat.empty() || !m_metadataInt.empty())
{
printer.OpenElement("MetadataSet");
std::string sMeta... | 28.411765 | 117 | 0.593375 | jbxplan |
9726f3b6319d935b74d70d5d4cdd3a7d0ef84388 | 4,454 | hpp | C++ | include/veho/bus_template.hpp | foundry27/veho | 9f1dbf52202f4764f2ec9e74942dc77b9ab04735 | [
"MIT"
] | 2 | 2021-06-18T18:05:40.000Z | 2022-02-06T07:49:30.000Z | include/veho/bus_template.hpp | notfoundry/veho | 9f1dbf52202f4764f2ec9e74942dc77b9ab04735 | [
"MIT"
] | null | null | null | include/veho/bus_template.hpp | notfoundry/veho | 9f1dbf52202f4764f2ec9e74942dc77b9ab04735 | [
"MIT"
] | null | null | null | /*
* Created by Mark Johnson on 3/31/2018.
*/
#ifndef VEHO_BUS_TEMPLATE_HPP
#define VEHO_BUS_TEMPLATE_HPP
#include <utility>
#include <boost/mp11/list.hpp>
#include <boost/mp11/algorithm.hpp>
#include <veho/config/config_traits.hpp>
#include <veho/config/builder_config.hpp>
#include <veho/facet/template_facet.hpp>... | 39.415929 | 131 | 0.693309 | foundry27 |
972861027cf2dc61138a1bcaa71072a66a5a9f65 | 3,381 | cpp | C++ | server/Server/Packets/WGCityCloseHandler.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 3 | 2018-06-19T21:37:38.000Z | 2021-07-31T21:51:40.000Z | server/Server/Packets/WGCityCloseHandler.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | null | null | null | server/Server/Packets/WGCityCloseHandler.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 13 | 2015-01-30T17:45:06.000Z | 2022-01-06T02:29:34.000Z | #include "stdafx.h"
/*
Server首先将执行权转到场景线程,
场景线程强行将此场景中所有玩家移到此城市的入口场景中,(暂时不考虑那么多,强行移动)
清空入口场景的CityPortList中指向自己这项
清空自己的SCENE_INT_DATA,
设置m_DynamicSceneQuitTimer,等待关闭,逻辑会自动把场景设置成睡眠状态
返回消息16, GWCityCloseSuccess给World
*/
#include "WGCityClose.h"
#include "PlayerPool.h"
#include "Log.h"
#include "Scene.h"
#include "Obj_Hu... | 32.509615 | 133 | 0.614611 | viticm |
9728a2abae511de64f7105897fc91e55dc0b6aca | 11,012 | cpp | C++ | KinectV2Hand2OscApp/src/KinectV2Hand2OscApp.cpp | eighteight/CinderEigh | d9dfc6a0ad9a9e6c5b82624971127f0335d91639 | [
"Apache-2.0"
] | null | null | null | KinectV2Hand2OscApp/src/KinectV2Hand2OscApp.cpp | eighteight/CinderEigh | d9dfc6a0ad9a9e6c5b82624971127f0335d91639 | [
"Apache-2.0"
] | null | null | null | KinectV2Hand2OscApp/src/KinectV2Hand2OscApp.cpp | eighteight/CinderEigh | d9dfc6a0ad9a9e6c5b82624971127f0335d91639 | [
"Apache-2.0"
] | null | null | null | #include "cinder/app/App.h"
#include "cinder/params/Params.h"
#define NOMINMAX
#include "Osc.h"
#include "Kinect2.h"
#include "cinder/gl/gl.h"
#include "cinder/app/RendererGl.h"
#include "cinder/Utilities.h"
#include "cinder/audio/Context.h"
#include "cinder/audio/GenNode.h"
#include "cinder/audio/N... | 28.827225 | 120 | 0.654105 | eighteight |
972d3b639b0a4336b9eed8ae511bd8997dc2198c | 3,819 | cpp | C++ | selftest/runner.cpp | slengfeld/tut-framework | a8e49ef56dc8be5256b5305ec6702d50c5b36c09 | [
"BSD-2-Clause"
] | 36 | 2015-02-16T18:02:40.000Z | 2021-12-30T13:27:43.000Z | selftest/runner.cpp | slengfeld/tut-framework | a8e49ef56dc8be5256b5305ec6702d50c5b36c09 | [
"BSD-2-Clause"
] | 12 | 2015-01-14T10:32:42.000Z | 2022-02-11T18:03:06.000Z | selftest/runner.cpp | slengfeld/tut-framework | a8e49ef56dc8be5256b5305ec6702d50c5b36c09 | [
"BSD-2-Clause"
] | 11 | 2015-03-11T00:13:16.000Z | 2021-06-11T10:00:13.000Z | #include <tut/tut.hpp>
#include <tut/tut_macros.hpp>
namespace tut
{
struct runner_data
{
test_runner tr;
struct dummy
{
virtual ~dummy()
{
}
};
struct dummy_group : public group_base
{
virtual void rewind() {}
virtual bool run_next(test_result &) { ret... | 18.720588 | 74 | 0.5978 | slengfeld |
972f6d41e833c6045674b0df3c3185d4fa509f5f | 3,909 | hh | C++ | include/mcnla/core_gpu/matrix/dense/dense_symmetric_matrix_gpu.hh | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | include/mcnla/core_gpu/matrix/dense/dense_symmetric_matrix_gpu.hh | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | include/mcnla/core_gpu/matrix/dense/dense_symmetric_matrix_gpu.hh | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @file include/mcnla/core_gpu/matrix/dense/dense_symmetric_matrix_gpu.hh
/// @brief The definition of GPU symmetric dense matrix class.
///
/// @author Mu Yang <<emfomy@gmail.com>>
/... | 37.951456 | 128 | 0.593758 | emfomy |
973298dfd0c2d2869c7ba287e17c64bdaefd7728 | 1,664 | cpp | C++ | tests/accessMemberTestSuite.cpp | Jadeszek/cpp-member-accessor | 0ed49cf5e97b1fe537f697efa78e779e1f3608f0 | [
"MIT"
] | null | null | null | tests/accessMemberTestSuite.cpp | Jadeszek/cpp-member-accessor | 0ed49cf5e97b1fe537f697efa78e779e1f3608f0 | [
"MIT"
] | null | null | null | tests/accessMemberTestSuite.cpp | Jadeszek/cpp-member-accessor | 0ed49cf5e97b1fe537f697efa78e779e1f3608f0 | [
"MIT"
] | null | null | null | #include "test_helper.hpp"
#include <accessor/accessor.hpp>
#include <iostream>
#include <vector>
class Test
{
public:
Test() = default;
Test(std::vector<int> data) : mFooBar{data} {}
private:
int mFoo {0};
std::vector<int> mFooBar;
};
using TestFoo = ::accessor::MemberWrapper<Test, int>;
template class ::a... | 21.333333 | 83 | 0.674279 | Jadeszek |
9736ea7a300717ccb3b81ccd1073ab22e524c00c | 3,166 | hpp | C++ | sourceCode/application/logic/model/MenuActionStates.hpp | lp-rep/stackprof-1 | 62d9cb96ad7dcdaa26b6383559f542cadc1c7af2 | [
"CECILL-B"
] | 2 | 2022-02-27T20:08:04.000Z | 2022-03-03T13:45:40.000Z | sourceCode/application/logic/model/MenuActionStates.hpp | lp-rep/stackprof-1 | 62d9cb96ad7dcdaa26b6383559f542cadc1c7af2 | [
"CECILL-B"
] | 1 | 2021-06-07T17:09:04.000Z | 2021-06-11T11:48:23.000Z | sourceCode/application/logic/model/MenuActionStates.hpp | lp-rep/stackprof-1 | 62d9cb96ad7dcdaa26b6383559f542cadc1c7af2 | [
"CECILL-B"
] | 1 | 2021-06-03T21:06:55.000Z | 2021-06-03T21:06:55.000Z | #ifndef MenuActionStates_H
#define MenuActionStates_H
#include <QObject>
#include <QSet>
#include "MenuStates.hpp"
//enable or disable MenuAction on request
class MenuActionStates : public QObject {
Q_OBJECT
public:
MenuActionStates(QObject *parent = nullptr);
enum e_menuAction {
... | 32.979167 | 114 | 0.689198 | lp-rep |
9737666db55529ec2b949ffb7b1ea2b367bb8942 | 4,070 | cc | C++ | code/tests/testrender/simpletexturemappertest.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/tests/testrender/simpletexturemappertest.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/tests/testrender/simpletexturemappertest.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// simpletexturemappertest.cc
// (C) 2007 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "simpletexturemappertest.h"
#include "coregraphics/texture.h"
#includ... | 42.842105 | 116 | 0.594103 | gscept |
9737d5b3a08c250679a30caeaf70d8dd5cd717ae | 4,157 | hpp | C++ | include/CoreLib/PropertyValues.hpp | demacedius/BurgWar | 4749db9d7037031d164ae6320bf17179d6167a69 | [
"MIT"
] | 45 | 2018-09-29T14:16:04.000Z | 2022-03-10T18:53:58.000Z | include/CoreLib/PropertyValues.hpp | demacedius/BurgWar | 4749db9d7037031d164ae6320bf17179d6167a69 | [
"MIT"
] | 46 | 2019-12-22T17:29:41.000Z | 2022-03-20T14:15:06.000Z | include/CoreLib/PropertyValues.hpp | demacedius/BurgWar | 4749db9d7037031d164ae6320bf17179d6167a69 | [
"MIT"
] | 19 | 2018-09-29T11:53:25.000Z | 2022-01-14T17:00:07.000Z | // Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Burgwar" project
// For conditions of distribution and use, see copyright notice in LICENSE
#pragma once
#ifndef BURGWAR_CORELIB_PROPERTYVALUES_HPP
#define BURGWAR_CORELIB_PROPERTYVALUES_HPP
#include <CoreLib/EntityId.hpp>
#include <CoreLib/Export.hp... | 30.343066 | 147 | 0.773154 | demacedius |
9737f8d11092a44fa5e2ae83d98306b0e03356e1 | 5,402 | hpp | C++ | Dynamic_HD_Cpp_Code/include/algorithms/river_direction_determination_algorithm.hpp | ThomasRiddick/DynamicHD | bff378a49ff6c709dc59c2d6835852e1083df20a | [
"BSD-3-Clause"
] | 1 | 2021-08-04T07:51:18.000Z | 2021-08-04T07:51:18.000Z | Dynamic_HD_Cpp_Code/include/algorithms/river_direction_determination_algorithm.hpp | ThomasRiddick/DynamicHD | bff378a49ff6c709dc59c2d6835852e1083df20a | [
"BSD-3-Clause"
] | 1 | 2022-01-27T22:12:45.000Z | 2022-02-01T10:16:47.000Z | Dynamic_HD_Cpp_Code/include/algorithms/river_direction_determination_algorithm.hpp | ThomasRiddick/DynamicHD | bff378a49ff6c709dc59c2d6835852e1083df20a | [
"BSD-3-Clause"
] | null | null | null | /*
* river_direction_determination_algorithm.hpp
*
* Created on: Dec 6, 2018
* Author: thomasriddick
*/
#include "base/grid.hpp"
#include "base/field.hpp"
#include "base/priority_cell_queue.hpp"
class river_direction_determination_algorithm {
public:
//destructor
virtual ~river_direction_determination_a... | 40.924242 | 82 | 0.721399 | ThomasRiddick |
973808bfd068e0bcd1c74e35d8fd07d289784c26 | 942 | cpp | C++ | examples/google-code-jam/rabbit125/g.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/rabbit125/g.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/rabbit125/g.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
using namespace std;
#define MAXN 1002
struct NODE{
int a,b;
}node[MAXN];
int N,outp;
int compare(const void *a, const void *b){
NODE *arg1 = (NODE*) a;
NODE *arg2 = (NODE*) b;
return arg1->a - arg2->a;
}
int main() {
int ... | 21.906977 | 52 | 0.432059 | rbenic-fer |
973dc6dddc8fbabc9aa1f54a016187c36b31ca5e | 921 | cpp | C++ | appendToAFile.cpp | xeroxzen/C-Crash-Course | d394d6d91f4f0126b3742a9d11abc129f3daaeb4 | [
"MIT"
] | 1 | 2022-02-09T00:47:25.000Z | 2022-02-09T00:47:25.000Z | appendToAFile.cpp | xeroxzen/C-Crash-Course | d394d6d91f4f0126b3742a9d11abc129f3daaeb4 | [
"MIT"
] | null | null | null | appendToAFile.cpp | xeroxzen/C-Crash-Course | d394d6d91f4f0126b3742a9d11abc129f3daaeb4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
int main(){
// Append more personal details to the file.
string gender, dateOfBirth, course;
//Prompt the user to enter the above details
cout << "Enter your gender: ";
cin >> gender;
cout << "Enter your date of birth: ";
cin >> d... | 25.583333 | 61 | 0.599349 | xeroxzen |
9745aa36a12147325363786d2519ae776d5f8a3c | 172,044 | cc | C++ | protocal/planning/auto_tuning_model_input.pb.cc | racestart/g2r | d115ebaab13829d716750eab2ebdcc51d79ff32e | [
"Apache-2.0"
] | 1 | 2020-03-05T12:49:21.000Z | 2020-03-05T12:49:21.000Z | protocal/planning/auto_tuning_model_input.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | null | null | null | protocal/planning/auto_tuning_model_input.pb.cc | gA4ss/g2r | a6e2ee5758ab59fd95704e3c3090dd234fbfb2c9 | [
"Apache-2.0"
] | 1 | 2020-03-25T15:06:39.000Z | 2020-03-25T15:06:39.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: planning/auto_tuning_model_input.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "planning/auto_tuning_model_input.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#i... | 41.070423 | 207 | 0.752935 | racestart |
974c8a0d0134757c35c80d39613864e4569364ea | 56 | cpp | C++ | source/dummy-includes/gui/top-level-windows/Main_window.include.cpp | alf-p-steinbach/winapi | 866a3bcf5eddf4237db56790559bb0310f183abc | [
"MIT"
] | 1 | 2021-11-21T18:55:34.000Z | 2021-11-21T18:55:34.000Z | source/dummy-includes/gui/top-level-windows/Main_window.include.cpp | alf-p-steinbach/winapi | 866a3bcf5eddf4237db56790559bb0310f183abc | [
"MIT"
] | null | null | null | source/dummy-includes/gui/top-level-windows/Main_window.include.cpp | alf-p-steinbach/winapi | 866a3bcf5eddf4237db56790559bb0310f183abc | [
"MIT"
] | null | null | null | #include <winapi/gui/top-level-windows/Main_window.hpp>
| 28 | 55 | 0.803571 | alf-p-steinbach |
97583d6c40ba6311a4508ada476809fd83e2d30f | 768 | hxx | C++ | libodb-2.4.0/odb/details/meta/class-p.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | libodb-2.4.0/odb/details/meta/class-p.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | libodb-2.4.0/odb/details/meta/class-p.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : odb/details/meta/class-p.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_DETAILS_META_CLASS_HXX
#define ODB_DETAILS_META_CLASS_HXX
#include <odb/pre.hxx>
#include <odb/details/meta/answer.hxx>
namespace odb
{
na... | 21.333333 | 62 | 0.639323 | edidada |
9759c18b0e6cfa923a87707032bb17ecc9078968 | 4,910 | cc | C++ | db/log_reader.cc | hidva/rocksdb | 9dca27383742ce6634c2ab42f945ad0ab9982849 | [
"BSD-3-Clause"
] | 2 | 2018-12-06T06:39:09.000Z | 2020-11-24T02:23:57.000Z | db/log_reader.cc | hidva/rocksdb | 9dca27383742ce6634c2ab42f945ad0ab9982849 | [
"BSD-3-Clause"
] | null | null | null | db/log_reader.cc | hidva/rocksdb | 9dca27383742ce6634c2ab42f945ad0ab9982849 | [
"BSD-3-Clause"
] | 1 | 2022-02-22T02:51:43.000Z | 2022-02-22T02:51:43.000Z | // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/log_reader.h"
#include <stdint.h>
#include "include/env.h"
#include "util/coding.h"
#incl... | 28.057143 | 77 | 0.592872 | hidva |
975a23ffbfd60c1cfd3476f43cc247419a33d043 | 2,599 | cpp | C++ | app/pico/ui_lcd.cpp | chrishaverkate/pico-eye | cf9046ada5f1e9622f948e4d91b878c62df96086 | [
"MIT"
] | 1 | 2021-11-20T00:13:57.000Z | 2021-11-20T00:13:57.000Z | app/pico/ui_lcd.cpp | chrishaverkate/pico-eye | cf9046ada5f1e9622f948e4d91b878c62df96086 | [
"MIT"
] | null | null | null | app/pico/ui_lcd.cpp | chrishaverkate/pico-eye | cf9046ada5f1e9622f948e4d91b878c62df96086 | [
"MIT"
] | null | null | null |
#include "ui_lcd.h"
extern "C" {
#include "lcd/lib/Config/DEV_Config.h"
#include "lcd/lib/GUI/GUI_Paint.h"
#include "lcd/lib/LCD/LCD_1in14.h"
}
UiLCD::UiLCD() {
printf("\nUI: Creating UI LCD!\n");
}
void UiLCD::initialize() {
printf("UI: Initializing...\n");
sleep_ms(100);
UDOUBLE image_size = LCD_1IN14_HEIGHT ... | 25.732673 | 131 | 0.731435 | chrishaverkate |
976487625044046267e9a7c854e4142abd8f5956 | 1,445 | cpp | C++ | ccf/cspj/cspj2_2020/expr.cpp | ray2060/learn-cpp | bcf322d32574e1741a048219acff5697c99b2614 | [
"MIT"
] | null | null | null | ccf/cspj/cspj2_2020/expr.cpp | ray2060/learn-cpp | bcf322d32574e1741a048219acff5697c99b2614 | [
"MIT"
] | null | null | null | ccf/cspj/cspj2_2020/expr.cpp | ray2060/learn-cpp | bcf322d32574e1741a048219acff5697c99b2614 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
#include <algorithm>
#include <stack>
using namespace std;
struct ex_c {
int val = -1;
char op = ' ';
};
char c = ' ';
ex_c expr[1000010];
int main() {
int i = 1, mn = -1;
while (i ++ ) {
if (c == '\n') {
break;
}
cin >> c;
... | 22.936508 | 56 | 0.290657 | ray2060 |
9764e1b4e36a10c8704a510ebc52dd2c690de93b | 3,642 | cpp | C++ | test/string_utils.cpp | hradec/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 51 | 2015-01-07T18:36:39.000Z | 2021-11-30T15:24:44.000Z | test/string_utils.cpp | virneo/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 1 | 2015-01-08T10:48:43.000Z | 2015-02-11T19:32:14.000Z | test/string_utils.cpp | virneo/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 18 | 2015-05-11T12:43:37.000Z | 2019-11-29T11:15:41.000Z | #include <gtest/gtest.h>
#include "duke/base/StringAppender.hpp"
#include "duke/base/StringSlice.hpp"
#include "duke/base/StringUtils.hpp"
#include <string>
#include <vector>
using namespace std;
void PrintTo(const std::vector<StringSlice>& slices, ::std::ostream* os) {
*os << "[ ";
bool first = true;
for (co... | 27.383459 | 119 | 0.642779 | hradec |
97663710e9b9d44756553089158bccf2568ad2a5 | 852 | hpp | C++ | Enclave/MLfunc_SGX.hpp | cBioLab/BiORAM-SGX | d86dab22dba12896e9e0c7ebd968ff064dcefe6b | [
"MIT"
] | 7 | 2020-03-26T13:24:26.000Z | 2022-03-08T10:09:45.000Z | Enclave/MLfunc_SGX.hpp | diwata11/BiORAM-SGX | 6e8df40f5f551485a3a43bf234a659e353f26930 | [
"MIT"
] | 4 | 2021-05-08T08:24:54.000Z | 2022-03-28T17:03:49.000Z | Enclave/MLfunc_SGX.hpp | diwata11/BiORAM-SGX | 6e8df40f5f551485a3a43bf234a659e353f26930 | [
"MIT"
] | 1 | 2021-01-29T03:24:01.000Z | 2021-01-29T03:24:01.000Z | /*!
*
* MLfunc_SGX.hpp
*
* Copyright (c) 2020 IWATA Daiki
*
* This software is released under the MIT License.
* see http://opensource.org/licenses/mit-license
*/
#ifndef _MLfunc_SGX_hpp
#define MLfunc_SGX_hpp
#pragma once
#include "Enclave_t.h"
#include "SGX_Math.hpp"
#include <sgx_trts.h>
#include <iostr... | 19.363636 | 91 | 0.707746 | cBioLab |
9768ab01fed15dcc77c349b820e015f8dea7696a | 4,628 | cpp | C++ | Test.cpp | ido1Shapira/itertools-cfar-a | 5e5c4e85be369f124e575f4bf2111a274c7af6e1 | [
"MIT"
] | null | null | null | Test.cpp | ido1Shapira/itertools-cfar-a | 5e5c4e85be369f124e575f4bf2111a274c7af6e1 | [
"MIT"
] | null | null | null | Test.cpp | ido1Shapira/itertools-cfar-a | 5e5c4e85be369f124e575f4bf2111a274c7af6e1 | [
"MIT"
] | 1 | 2020-06-11T16:46:49.000Z | 2020-06-11T16:46:49.000Z | #include "doctest.h"
#include <iostream>
#include <vector>
#include "range.hpp"
#include "accumulate.hpp"
#include "filterfalse.hpp"
#include "compress.hpp"
using namespace itertools;
using namespace std;
// Id of collaborators 208825539 207950577
struct lessThan3 {
bool operator()(int i) const { re... | 28.048485 | 140 | 0.414002 | ido1Shapira |
976c9af553893e2a4fd5ac4683bfbbcbf3f33153 | 380 | cpp | C++ | test_task_cancel.cpp | yecharlie/tk | 8157a393c1d9840793eb41098cb6e03cba6e4f54 | [
"MIT"
] | null | null | null | test_task_cancel.cpp | yecharlie/tk | 8157a393c1d9840793eb41098cb6e03cba6e4f54 | [
"MIT"
] | null | null | null | test_task_cancel.cpp | yecharlie/tk | 8157a393c1d9840793eb41098cb6e03cba6e4f54 | [
"MIT"
] | null | null | null | #include "tk.h"
#include <cstdio>
class simple : public task
{
public:
simple():task("simple", 5000) {}
private:
void routine();
};
void simple::routine()
{
std::printf("delete before\n");
cancel(0);
delete this;
std::printf("delete after (not printed)\n");
}
int main()
{
std::printf("main begin\n");
sim... | 14.074074 | 45 | 0.634211 | yecharlie |
976caf44ba4fc55a7c9f497470f215e3f0e006f0 | 10,372 | hpp | C++ | dev/Basic/medium/entities/roles/driver/OnCallDriver.hpp | andrealho/simmobility-prod | 041b91c9e36da452ca28014c305b9ae66a880277 | [
"IJG"
] | 2 | 2021-06-18T08:03:22.000Z | 2021-06-18T08:03:28.000Z | dev/Basic/medium/entities/roles/driver/OnCallDriver.hpp | ericchou0216/test | 3c95a8d3b77016bf440499c4f7a6be68acd73cf5 | [
"IJG"
] | null | null | null | dev/Basic/medium/entities/roles/driver/OnCallDriver.hpp | ericchou0216/test | 3c95a8d3b77016bf440499c4f7a6be68acd73cf5 | [
"IJG"
] | null | null | null | //Copyright (c) 2013 Singapore-MIT Alliance for Research and Technology
//Licensed under the terms of the MIT License, as described in the file:
// license.txt (http://opensource.org/licenses/MIT)
#pragma once
#include "Driver.hpp"
#include "entities/controllers/MobilityServiceController.hpp"
#include "entities/c... | 31.718654 | 114 | 0.672387 | andrealho |
978261176b26676da41bdea69cba930f472b08c6 | 4,458 | cpp | C++ | tests/unit_test/tst_dCompare.cpp | AnselGitAccount/StatAnaly | 93cbffd54d212056e023fce90b0386825af49a88 | [
"Apache-2.0"
] | null | null | null | tests/unit_test/tst_dCompare.cpp | AnselGitAccount/StatAnaly | 93cbffd54d212056e023fce90b0386825af49a88 | [
"Apache-2.0"
] | null | null | null | tests/unit_test/tst_dCompare.cpp | AnselGitAccount/StatAnaly | 93cbffd54d212056e023fce90b0386825af49a88 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2022, Ansel Blumers
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 ... | 27.349693 | 86 | 0.670929 | AnselGitAccount |
978300118f17341cf96e3a02bfce830e7ea6b4a1 | 3,097 | cpp | C++ | src/ofxKinectForWindows2/Device.cpp | robotconscience/ofxKinectForWindows2 | 1eb493af3e2495ab3edcc8a55fe14fcbad5b7298 | [
"MIT"
] | null | null | null | src/ofxKinectForWindows2/Device.cpp | robotconscience/ofxKinectForWindows2 | 1eb493af3e2495ab3edcc8a55fe14fcbad5b7298 | [
"MIT"
] | null | null | null | src/ofxKinectForWindows2/Device.cpp | robotconscience/ofxKinectForWindows2 | 1eb493af3e2495ab3edcc8a55fe14fcbad5b7298 | [
"MIT"
] | null | null | null | #include "Device.h"
#include "ofMain.h"
#define CHECK_OPEN if(!this->sensor) { OFXKINECTFORWINDOWS2_ERROR << "Failed : Sensor is not open"; }
namespace ofxKinectForWindows2 {
//----------
Device::Device() {
this->sensor = nullptr;
}
//----------
Device::~Device() {
this->close();
}
//----... | 22.442029 | 102 | 0.589603 | robotconscience |
9787504588e3f43c067c73c8b14fa7b2e14810a4 | 454 | hpp | C++ | src/Menu.hpp | GOKOP/snake | 05fd34fab1379a8c85a96e75ae6d73baa3bd6296 | [
"WTFPL"
] | null | null | null | src/Menu.hpp | GOKOP/snake | 05fd34fab1379a8c85a96e75ae6d73baa3bd6296 | [
"WTFPL"
] | null | null | null | src/Menu.hpp | GOKOP/snake | 05fd34fab1379a8c85a96e75ae6d73baa3bd6296 | [
"WTFPL"
] | null | null | null | #pragma once
#include <vector>
#include "MenuOption.hpp"
class Menu {
std::string header;
std::string corner_text;
std::vector<MenuOption> options;
int selected_index;
public:
Menu(std::string new_header, std::string new_corner="");
std::string getHeader();
std::string getCornerText();
int getOptionCount(... | 18.16 | 57 | 0.737885 | GOKOP |
979617b785ce8e4ba3b3bb5a5e689cf43035456a | 16,810 | cpp | C++ | src/fwdmodel/thermal.cpp | divad-nhok/obsidian_fork | e5bee2b706f78249564f06c88a18be086b17c895 | [
"MIT"
] | 7 | 2015-01-04T13:50:24.000Z | 2022-01-22T01:03:57.000Z | src/fwdmodel/thermal.cpp | divad-nhok/obsidian_fork | e5bee2b706f78249564f06c88a18be086b17c895 | [
"MIT"
] | 1 | 2018-08-16T00:46:58.000Z | 2018-08-16T00:46:58.000Z | src/fwdmodel/thermal.cpp | divad-nhok/obsidian_fork | e5bee2b706f78249564f06c88a18be086b17c895 | [
"MIT"
] | 9 | 2016-08-31T05:42:00.000Z | 2022-01-21T21:37:47.000Z | // Copyright (c) 2014, NICTA.
// This file is licensed under the General Public License version 3 or later.
//!
//! Contains the implementation for the thermal forward model.
//!
//! \file fwdmodel/thermal.cpp
//! \author Lachlan McCalman
//! \date 2014
//! \license Affero General Public License version 3 or later
//! ... | 37.355556 | 169 | 0.506365 | divad-nhok |
97966e311b4e98509431c15f49849770514871a2 | 1,024 | hpp | C++ | libs/fnd/units/include/bksge/fnd/units/radian.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/units/include/bksge/fnd/units/radian.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/units/include/bksge/fnd/units/radian.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file radian.hpp
*
* @brief radian の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_UNITS_RADIAN_HPP
#define BKSGE_FND_UNITS_RADIAN_HPP
#include <bksge/fnd/units/base_dimensions/angle.hpp>
#include <bksge/fnd/units/detail/quantity.hpp>
#include <bksge/fnd/cmath/sin.hpp>
#include <bksge/fnd/cma... | 17.066667 | 68 | 0.657227 | myoukaku |
979c8d1e76823a5bdbbdae51ea70b00a261acc82 | 1,320 | cpp | C++ | src/bm_sim/bytecontainer.cpp | clickp4/bmv2 | aca47e23c968353a9ffd27e9b6305f41cefadf6b | [
"Apache-2.0"
] | 2 | 2018-08-29T22:58:07.000Z | 2018-08-30T01:44:30.000Z | src/bm_sim/bytecontainer.cpp | clickp4/bmv2 | aca47e23c968353a9ffd27e9b6305f41cefadf6b | [
"Apache-2.0"
] | null | null | null | src/bm_sim/bytecontainer.cpp | clickp4/bmv2 | aca47e23c968353a9ffd27e9b6305f41cefadf6b | [
"Apache-2.0"
] | 4 | 2016-06-22T23:39:02.000Z | 2022-03-26T13:53:51.000Z | /* Copyright 2013-present Barefoot Networks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 28.085106 | 75 | 0.680303 | clickp4 |
97a2963e2aa1951eae94798705e2295448ecbe57 | 554 | cpp | C++ | src/framework/BaseTransition.cpp | ThePythonator/Bucket-Inc | d8d4fc7c3b66cf6b3c96d2ed4612f9ffc4844ba9 | [
"MIT"
] | null | null | null | src/framework/BaseTransition.cpp | ThePythonator/Bucket-Inc | d8d4fc7c3b66cf6b3c96d2ed4612f9ffc4844ba9 | [
"MIT"
] | null | null | null | src/framework/BaseTransition.cpp | ThePythonator/Bucket-Inc | d8d4fc7c3b66cf6b3c96d2ed4612f9ffc4844ba9 | [
"MIT"
] | null | null | null | #include "BaseTransition.hpp"
namespace Framework {
BaseTransition::BaseTransition() {
}
bool BaseTransition::is_open() {
return _state == TransitionState::OPEN;
}
bool BaseTransition::is_closed() {
return _state == TransitionState::CLOSED;
}
BaseTransition::TransitionState BaseTransition::state() {
re... | 18.466667 | 58 | 0.705776 | ThePythonator |
97ab67f0277130df219c907b22a55d37ec1da496 | 22,750 | hxx | C++ | libodb-2.4.0/odb/query-dynamic.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | libodb-2.4.0/odb/query-dynamic.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | libodb-2.4.0/odb/query-dynamic.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : odb/query-dynamic.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_QUERY_DYNAMIC_HXX
#define ODB_QUERY_DYNAMIC_HXX
#include <odb/pre.hxx>
#include <string>
#include <vector>
#include <cstddef> // std::size_t
#inclu... | 21.281572 | 79 | 0.584835 | edidada |
97ac8cadd9c4076a3e6f6e0d47770feeb08b33da | 1,343 | cpp | C++ | AtCoder/ABC C/C_To 3.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | AtCoder/ABC C/C_To 3.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | AtCoder/ABC C/C_To 3.cpp | Sohelr360/my_codes | 9bdd28f62d3850aad8f8af2a253ba66138a7057c | [
"MIT"
] | null | null | null | /**
* Author: Sohel Rana
* Date: 2020-11-11 23:35:23
* Task: C_To 3
**/
#include <bits/stdc++.h>
#define endl '\n'
#define sqr(x) (x) * (x)
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) ((a/gcd(a,b)) * b)
#define pf(x) push_front(x)
#define pb(x) push_back(x)
#define eb(x) emplace_... | 24.418182 | 80 | 0.536113 | Sohelr360 |
97b2262009fb0161fd695a656d687058c8f6d697 | 6,131 | hpp | C++ | a3/map_metadata_f/Stratis/agia_marina.hpp | tom4897/a3_map_metadata_f | bcb23baa3b1111629077e2d6b56faa5cd9ccd741 | [
"AAL"
] | null | null | null | a3/map_metadata_f/Stratis/agia_marina.hpp | tom4897/a3_map_metadata_f | bcb23baa3b1111629077e2d6b56faa5cd9ccd741 | [
"AAL"
] | null | null | null | a3/map_metadata_f/Stratis/agia_marina.hpp | tom4897/a3_map_metadata_f | bcb23baa3b1111629077e2d6b56faa5cd9ccd741 | [
"AAL"
] | null | null | null | /* [2017,10,10,14,00] */
/* CfgWorlds >> Stratis >> Names >> agia_marina */
areaPosition[]={2895.09, 5962.46}; // Position x, y
areaRadiusA=347.71; // radius A of the location
areaRadiusB=279.8; // radius B of the location
areaAngle=0; // Rotation of the location
demography=CIV; // Demography
accessPoints[] = // Ty... | 56.768519 | 114 | 0.66074 | tom4897 |
97b3c896c9e8975960af8aa98aacb09500b5a659 | 1,994 | cpp | C++ | aliLuaTest/test_aliLuaCore_stackGuard.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | aliLuaTest/test_aliLuaCore_stackGuard.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | aliLuaTest/test_aliLuaCore_stackGuard.cpp | hendrik-brower/ali | c9d8740fecdb486b7be00b4257ce6d79ea45aead | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <aliLuaCore.hpp>
#include <aliLuaTest_util.hpp>
#include <lua.hpp>
namespace {
using StackGuard = aliLuaCore::StackGuard;
using TestUtil = aliLuaTest::Util;
struct aliLuaCoreStackGuard : testing::Test {
lua_State *L;
const int limit = 10;
void SetUp() {
L... | 24.617284 | 81 | 0.612839 | hendrik-brower |
97b499bfc068cba6ccaa487df194ecad990f02d9 | 181 | cpp | C++ | 14 Trees/04 Height.cpp | MrNevil/GeeksForGeeks-DSA-2 | cb53912a2bfea5e04ce1b2c10e103a61ae1d903b | [
"MIT"
] | 1 | 2021-04-03T06:23:42.000Z | 2021-04-03T06:23:42.000Z | 14 Trees/04 Height.cpp | MrNevil/GeeksForGeeks-DSA-2 | cb53912a2bfea5e04ce1b2c10e103a61ae1d903b | [
"MIT"
] | null | null | null | 14 Trees/04 Height.cpp | MrNevil/GeeksForGeeks-DSA-2 | cb53912a2bfea5e04ce1b2c10e103a61ae1d903b | [
"MIT"
] | 1 | 2021-02-26T17:16:36.000Z | 2021-02-26T17:16:36.000Z | int height(Node* node)
{
if (node == NULL)
return 0;
int lh = height(node -> left);
int rh = height(node -> right);
return 1 + max(lh, rh);
}
| 15.083333 | 35 | 0.480663 | MrNevil |
b632f0459f686548277b32284c3df52df766e82a | 4,007 | cpp | C++ | kernel/ApStartup.cpp | leakingmemory/jeokernel | 7c2413921cc2d30eef2b340de4efed66d41afeb1 | [
"MIT"
] | null | null | null | kernel/ApStartup.cpp | leakingmemory/jeokernel | 7c2413921cc2d30eef2b340de4efed66d41afeb1 | [
"MIT"
] | null | null | null | kernel/ApStartup.cpp | leakingmemory/jeokernel | 7c2413921cc2d30eef2b340de4efed66d41afeb1 | [
"MIT"
] | null | null | null | //
// Created by sigsegv on 12/23/21.
//
#include "ApStartup.h"
#include <core/cpu_mpfp.h>
#include <core/LocalApic.h>
#include <thread>
#include <acpi/acpi_madt_provider.h>
#include <acpi/acpi_madt.h>
#include "TaskStateSegment.h"
#include "InterruptTaskState.h"
#include "GlobalDescriptorTable.h"
#include "start_ap.h... | 31.801587 | 170 | 0.575493 | leakingmemory |
b63677d059da5a5390372ee68dfcbaf43e9a0904 | 497 | hpp | C++ | source/imgui/include/lue/gui/menu.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 2 | 2021-02-26T22:45:56.000Z | 2021-05-02T10:28:48.000Z | source/imgui/include/lue/gui/menu.hpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 262 | 2016-08-11T10:12:02.000Z | 2020-10-13T18:09:16.000Z | source/imgui/include/lue/gui/menu.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 1 | 2020-03-11T09:49:41.000Z | 2020-03-11T09:49:41.000Z | #pragma once
#include "lue/gui/selectable.hpp"
#include <string>
namespace lue::gui {
class Menu:
public Selectable
{
public:
explicit Menu(
std::string const& label,
bool enabled=true);
Menu(Menu const&)=default;
Menu(Me... | 16.032258 | 49 | 0.511066 | computationalgeography |
b639980f4ac06d70b259274e0530d69fee8602b3 | 10,213 | cpp | C++ | Grabber.cpp | Blitzman/object-recognition | 8f6a942c8f20cb0f732244328b3909c5163c4a72 | [
"MIT"
] | 6 | 2017-05-02T10:26:48.000Z | 2021-05-29T05:34:18.000Z | Grabber.cpp | Blitzman/object-recognition | 8f6a942c8f20cb0f732244328b3909c5163c4a72 | [
"MIT"
] | null | null | null | Grabber.cpp | Blitzman/object-recognition | 8f6a942c8f20cb0f732244328b3909c5163c4a72 | [
"MIT"
] | 8 | 2016-06-23T12:59:41.000Z | 2019-07-23T12:23:32.000Z | #include "Grabber.h"
pcl::PointCloud<pcl::PointXYZRGB>::Ptr Grabber::convertToXYZRGBPointCloud (
const boost::shared_ptr<pcl::io::Image> &image,
const boost::shared_ptr<pcl::io::DepthImage> &depth_image,
std::string rgb_frame_id, float constant_)
{
static unsigned rgb_array_size = 0;
static boost::share... | 32.629393 | 134 | 0.65632 | Blitzman |
b63a11ce87f5cedecb1312a1f183a6a02bfebd19 | 965 | cpp | C++ | src/Subscriber.cpp | DeepBlue14/ros_lite | dd64aed138d5dec6431d26ef6ba18bea67663810 | [
"MIT"
] | 1 | 2017-12-18T06:08:44.000Z | 2017-12-18T06:08:44.000Z | src/Subscriber.cpp | DeepBlue14/ros_lite | dd64aed138d5dec6431d26ef6ba18bea67663810 | [
"MIT"
] | null | null | null | src/Subscriber.cpp | DeepBlue14/ros_lite | dd64aed138d5dec6431d26ef6ba18bea67663810 | [
"MIT"
] | null | null | null | #include "Subscriber.h"
Subscriber::Subscriber()
{
cbc_ros::subscriberQueue.push_back(callbackPtr);
msgQueuePtr = new queue<float>();
void* obj = reinterpret_cast<void*>(this);
if(pthread_create(&thread, NULL, &falsePrince, obj) != 0 )
{
cerr << "ERROR: subscriber thread failed @ cbc_ros::S... | 16.929825 | 94 | 0.60829 | DeepBlue14 |
b643f1a27f0e2dd26e8dcc5af175c93f00bbd148 | 3,356 | cpp | C++ | benchmarks/statistical/join_threads_analysis.cpp | vamatya/benchmarks | 8a86c6eebac5f9a29a0e37a62bdace45395c8d73 | [
"BSL-1.0"
] | null | null | null | benchmarks/statistical/join_threads_analysis.cpp | vamatya/benchmarks | 8a86c6eebac5f9a29a0e37a62bdace45395c8d73 | [
"BSL-1.0"
] | null | null | null | benchmarks/statistical/join_threads_analysis.cpp | vamatya/benchmarks | 8a86c6eebac5f9a29a0e37a62bdace45395c8d73 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2012 Daniel Kogler
//
// 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)
/*This benchmark measures the amount of time to join two threads together*/
#include "statstd.hpp"
#include <hpx/includ... | 33.89899 | 81 | 0.56913 | vamatya |
b64ab12d34dac02f24403781646c9450838fb5aa | 2,782 | cpp | C++ | src/nm-touchtable-camera/deviceacquisitionmanager.cpp | neuronalmotion/raspberry-touchtable | 921101fe0cf3c9690b6a13aecf6aa1734fe686ca | [
"Apache-2.0"
] | 3 | 2015-12-31T03:12:30.000Z | 2017-08-07T18:28:53.000Z | src/nm-touchtable-camera/deviceacquisitionmanager.cpp | GuillaumeLazar/raspberry-touchtable | 921101fe0cf3c9690b6a13aecf6aa1734fe686ca | [
"Apache-2.0"
] | null | null | null | src/nm-touchtable-camera/deviceacquisitionmanager.cpp | GuillaumeLazar/raspberry-touchtable | 921101fe0cf3c9690b6a13aecf6aa1734fe686ca | [
"Apache-2.0"
] | null | null | null | #include "deviceacquisitionmanager.h"
DeviceAcquisitionManager::DeviceAcquisitionManager(int argc, char *argv[])
{
qDebug() << "arg count: " << argc;
for (int i = 0; i < argc; ++i) {
qDebug() << QString(" [%1] %2").arg(i).arg(argv[i]);
}
mMessageId = 0;
mRatioX = 1280.0f / 320.0f;
mRat... | 30.23913 | 115 | 0.675413 | neuronalmotion |
b64e9a9c5627129575cb67c49b55dfb00b142f56 | 955,225 | cpp | C++ | Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs81.cpp | JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity | 6e13b31a0b053443b9c93267d8f174f1554e79dd | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-06-01T19:33:53.000Z | 2021-06-01T19:33:53.000Z | Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs81.cpp | JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity | 6e13b31a0b053443b9c93267d8f174f1554e79dd | [
"CC-BY-4.0",
"MIT"
] | null | null | null | Unity-Project/App-HL2/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs81.cpp | JBrentJ/mslearn-mixed-reality-and-azure-digital-twins-in-unity | 6e13b31a0b053443b9c93267d8f174f1554e79dd | [
"CC-BY-4.0",
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
// System.Collections.Generic.Dictionary`2<MessagePack.Internal.ObjectSerializationInfo/EmittableMember,System.Reflection.Field... | 43.415371 | 392 | 0.818577 | JBrentJ |
b653e6f6f00b2f1bd0e9f65c624f86944b21fc8b | 18,570 | cpp | C++ | test/test_multivector_tsqr.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | 2 | 2021-12-31T08:28:17.000Z | 2022-01-12T14:48:49.000Z | test/test_multivector_tsqr.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | null | null | null | test/test_multivector_tsqr.cpp | melven/pitts | 491f503a99a7d1161a27672955ae53ca6b5d3412 | [
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include "pitts_multivector_tsqr.hpp"
#include "pitts_multivector_random.hpp"
#include "pitts_multivector.hpp"
#include "pitts_multivector_eigen_adaptor.hpp"
#include "pitts_tensor2.hpp"
#include "pitts_tensor2_eigen_adaptor.hpp"
#include <Eigen/Dense>
#include "eigen_test_helper.hpp"
TEST(PI... | 30.492611 | 240 | 0.654981 | melven |
b654459ca5a69aa06bcd5bcbbe17d4a4f3c5ca54 | 358 | hpp | C++ | include/mona/mesh.hpp | Eleobert/mona | 079e70b190b0850cf2579c1b0872da87f2706d80 | [
"MIT"
] | null | null | null | include/mona/mesh.hpp | Eleobert/mona | 079e70b190b0850cf2579c1b0872da87f2706d80 | [
"MIT"
] | null | null | null | include/mona/mesh.hpp | Eleobert/mona | 079e70b190b0850cf2579c1b0872da87f2706d80 | [
"MIT"
] | null | null | null | #pragma once
#include <mona/rect.hpp>
#include <mona/resource.hpp>
#include <glm/matrix.hpp>
namespace mona
{
class mesh: public resource
{
public:
// returns the area that this series wants to be covered
virtual auto span() const -> mona::rect = 0;
virtual auto draw(const glm::ma... | 19.888889 | 66 | 0.625698 | Eleobert |
b656be8169f6134eb52bd290828a8f4ea8d00291 | 32,255 | cpp | C++ | Libs/Plants/Tree.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Libs/Plants/Tree.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Libs/Plants/Tree.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "Tree.hpp"
#include "PlantDescription.hpp"
#include "MaterialSystem/MaterialManager.hpp"
#include "MaterialSystem/Material.hpp"
#include "MaterialSystem/Rend... | 50.715409 | 188 | 0.658813 | dns |
b657ab6dd875e4bc4a656775ec8cd30ab6b601aa | 117,155 | cpp | C++ | Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/openfl/display3D/Context3D.cpp | as3boyan/Uber-Duper-Simulation | a3942831a1acf08479f06fd8cfe8896ec00ac32c | [
"MIT"
] | null | null | null | Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/openfl/display3D/Context3D.cpp | as3boyan/Uber-Duper-Simulation | a3942831a1acf08479f06fd8cfe8896ec00ac32c | [
"MIT"
] | null | null | null | Uber_Duper_Simulation_Haxe/bin/windows/cpp/obj/src/openfl/display3D/Context3D.cpp | as3boyan/Uber-Duper-Simulation | a3942831a1acf08479f06fd8cfe8896ec00ac32c | [
"MIT"
] | null | null | null | #include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_Type
#include <Type.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_openfl__v2_Lib
#include <openfl/_v2/Lib.h>
#endif
#ifndef INCLUDED_openfl__v2_display_BitmapData
#include <openfl/_v2/display/... | 39.971 | 239 | 0.701754 | as3boyan |
b65de688ebc28e9ad33aa04b21c47271758e3e10 | 7,871 | hpp | C++ | Library/Radio/radioDataSystem.hpp | JVKran/IPASS | 721cf7d481319bf6bd42f4a6b992658591f8a036 | [
"BSL-1.0"
] | 4 | 2019-07-04T17:38:11.000Z | 2021-04-24T19:50:36.000Z | Library/Radio/radioDataSystem.hpp | JVKran/IPASS | 721cf7d481319bf6bd42f4a6b992658591f8a036 | [
"BSL-1.0"
] | 2 | 2020-04-08T18:10:06.000Z | 2020-04-08T19:11:50.000Z | Library/Radio/radioDataSystem.hpp | JVKran/IPASS | 721cf7d481319bf6bd42f4a6b992658591f8a036 | [
"BSL-1.0"
] | null | null | null | /// @file
#ifndef __RADIO_DATA_SYSTEM_HPP
#define __RADIO_DATA_SYSTEM_HPP
/// \brief
/// Program Item Number
/// \details
/// This class stores the data provided by the PIN-Part of RDS-data. This part contains info about when the
/// broadcast started en when it is ought to stop.
///
/// All supported operations are... | 39.159204 | 148 | 0.671706 | JVKran |
b662324c5b5156f3aaeb9f24b6d81cb8fb7c0b5e | 316 | cpp | C++ | Fractal/Fractal/src/utils/ShaderUtils/Uniform.cpp | talislincoln/fractals | a9ed52e99b9737ce0a6bba715f61e4d122e37dd5 | [
"MIT"
] | 2 | 2016-09-22T16:11:17.000Z | 2016-09-22T16:11:55.000Z | Fractal/Fractal/src/utils/ShaderUtils/Uniform.cpp | talislincoln/FractalGameEngine | a9ed52e99b9737ce0a6bba715f61e4d122e37dd5 | [
"MIT"
] | null | null | null | Fractal/Fractal/src/utils/ShaderUtils/Uniform.cpp | talislincoln/FractalGameEngine | a9ed52e99b9737ce0a6bba715f61e4d122e37dd5 | [
"MIT"
] | null | null | null | #include "utils\ShaderUtils\Uniform.h"
fractal::Uniform::Uniform(const char* name) : m_name(name)
{
}
void fractal::Uniform::storeUniformLocation(int programID)
{
m_location = glGetUniformLocation(programID, m_name);
if (m_location == NOT_FOUND) {
printf("No uniform variable called %s found!\n", m_name);
}
} | 24.307692 | 59 | 0.737342 | talislincoln |
b664575c546868fc1f0898187c87ae85fa69fc09 | 2,874 | cpp | C++ | src/text_area.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | 1 | 2021-06-28T00:31:08.000Z | 2021-06-28T00:31:08.000Z | src/text_area.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | src/text_area.cpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | /******************************************************************************
* Author(s): Christopher J. Havlicek
*
* See LICENSE and CONTACTS.
******************************************************************************/
#include "text_area.hpp"
#include "canvas.hpp"
#include "io.hpp"
#include "js_iface.hpp"... | 19.033113 | 85 | 0.574113 | moralismercatus |
b66482f57721179e26c92b81967b46704eb28408 | 997 | cpp | C++ | backup/2/codesignal/c++/timed-reading.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/codesignal/c++/timed-reading.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/codesignal/c++/timed-reading.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 41.541667 | 345 | 0.610832 | yangyanzhan |
b66a83ce734062c98f890035d322c86119101649 | 1,240 | cpp | C++ | LeetCode/1000/388.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/1000/388.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/1000/388.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int lengthLongestPath(string input) {
int n = input.size();
int pos = 0;
int ans = 0;
stack<int> st;
while (pos < n) {
/* 检测当前文件的深度 */
int depth = 1;
while (pos < n && input[pos] == '\t') {
pos++;
... | 25.833333 | 121 | 0.373387 | K-ona |
b66e67cdcae9139a440e2fac8e55504f498255bc | 258 | cpp | C++ | src/CellAABBMap.cpp | byronmurg/pointless-freecell | b4d7cc9cc88fc28e0e920eeaa595ac78284a8f17 | [
"MIT"
] | null | null | null | src/CellAABBMap.cpp | byronmurg/pointless-freecell | b4d7cc9cc88fc28e0e920eeaa595ac78284a8f17 | [
"MIT"
] | null | null | null | src/CellAABBMap.cpp | byronmurg/pointless-freecell | b4d7cc9cc88fc28e0e920eeaa595ac78284a8f17 | [
"MIT"
] | null | null | null | #include <CellAABBMap.hpp>
void
CellAABBMap::forEachAtPoint
(const Point &point, CallbackType callback)
const
{
forEach(
[point, callback]
(const Cell& cell, const AABB& aabb)
{
if ( aabb.containsPoint(point) )
callback(cell, aabb);
}
);
}
| 15.176471 | 43 | 0.682171 | byronmurg |
b671f711d39120d139f5c1e3eb0ec542c51032e3 | 861 | cpp | C++ | Basic Algorithms/Sliding Window/longest_repeating_character_replacement.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Basic Algorithms/Sliding Window/longest_repeating_character_replacement.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Basic Algorithms/Sliding Window/longest_repeating_character_replacement.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | //leetcode.com/problems/longest-repeating-character-replacement/submissions/
#include <bits/stdc++.h>
#include <unordered_map>
using namespace std;
class Solution {
public:
int characterReplacement(string s, int k) {
int start = 0;
int max_frequency = 0;
int longest_required_substring = 0;... | 31.888889 | 94 | 0.552846 | khushisinha20 |
b6753b6ddaf1ad760ea94120425d8d53fbd62e6b | 278 | hpp | C++ | library/utils.hpp | nusic-fm/videos-mix-engine | f618fa31074e9d5d9195cea769d2447fbafb36c7 | [
"MIT"
] | 4 | 2022-02-11T08:14:19.000Z | 2022-02-23T22:22:13.000Z | library/utils.hpp | t0pKek11/gif_art_engine_for_nft | 1b20b1e66efc74e01eca83f0a7d45b1e58cc0f75 | [
"MIT"
] | 1 | 2022-02-17T14:23:22.000Z | 2022-02-17T16:35:14.000Z | library/utils.hpp | t0pKek11/gif_art_engine_for_nft | 1b20b1e66efc74e01eca83f0a7d45b1e58cc0f75 | [
"MIT"
] | 1 | 2022-02-23T22:22:26.000Z | 2022-02-23T22:22:26.000Z | #include <string>
#include <vector>
using namespace std;
void createRarityFile(const vector<string> &, const vector<vector<string>> &, const int &);
void updateInfo(const string &, const string &, const string &, const vector<pair<string,string>> &, const int &, const int&);
| 34.75 | 126 | 0.723022 | nusic-fm |
b679c094065a2597a26f440218396046f81d0f9c | 4,077 | hh | C++ | src/ggl/chem/ReactionRateCalculation.hh | michaelapeterka/GGL | 99e585b773ad8f33e39160d2cbd71c00e036fa37 | [
"MIT"
] | 20 | 2017-05-09T15:37:04.000Z | 2021-11-24T10:51:02.000Z | src/ggl/chem/ReactionRateCalculation.hh | michaelapeterka/GGL | 99e585b773ad8f33e39160d2cbd71c00e036fa37 | [
"MIT"
] | 2 | 2017-05-24T08:00:25.000Z | 2017-05-24T08:01:01.000Z | src/ggl/chem/ReactionRateCalculation.hh | michaelapeterka/GGL | 99e585b773ad8f33e39160d2cbd71c00e036fa37 | [
"MIT"
] | 7 | 2017-05-29T10:55:18.000Z | 2020-12-04T14:24:51.000Z | #ifndef GGL_CHEM_REACTIONRATECALCULATION_HH_
#define GGL_CHEM_REACTIONRATECALCULATION_HH_
#include "ggl/chem/Reaction.hh"
#include <ggl/Rule.hh>
namespace ggl {
namespace chem {
////////////////////////////////////////////////////////////////////////////
/*! @brief Interface reaction rate calcula... | 27 | 78 | 0.586706 | michaelapeterka |
b683145461f34171f29325e2725c5cb2570def4b | 11,128 | cpp | C++ | src/embedding/basicviewer/src/QXipIvWidget.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/embedding/basicviewer/src/QXipIvWidget.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/embedding/basicviewer/src/QXipIvWidget.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation
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.... | 24.950673 | 98 | 0.640007 | OpenXIP |
b6855ebb3d5a013145a17e62f55a5769651c016a | 432 | hpp | C++ | NamelessLib/include/NLS-Engine/Core/DefaultEngine.hpp | MatthewZelriche/Nameless-Engine | 7f1736097fb428382322bd7fb841b9c75271b9c2 | [
"BSD-2-Clause"
] | null | null | null | NamelessLib/include/NLS-Engine/Core/DefaultEngine.hpp | MatthewZelriche/Nameless-Engine | 7f1736097fb428382322bd7fb841b9c75271b9c2 | [
"BSD-2-Clause"
] | null | null | null | NamelessLib/include/NLS-Engine/Core/DefaultEngine.hpp | MatthewZelriche/Nameless-Engine | 7f1736097fb428382322bd7fb841b9c75271b9c2 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include "NLS-Engine/Core/IGameTemplate.hpp"
#include <NLS-Engine/Rendering/WindowManager.hpp>
#include <NLS-Engine/Rendering/Window.hpp>
// TODO: Figure this out. It's currently hardcoded for only 1 window.
class DefaultEngine : public NLS::Core::IGameTemplate {
public:
DefaultEngine();
private:
... | 25.411765 | 69 | 0.738426 | MatthewZelriche |
b688a51cb413551cae7c23a444da97b79e6e8150 | 14,732 | cpp | C++ | tests/sort_strings_test.cpp | eug93/tlx | e5ff2c3af26805c9f897b4f368b5f0690d671338 | [
"BSL-1.0"
] | 1 | 2019-04-13T10:07:14.000Z | 2019-04-13T10:07:14.000Z | tests/sort_strings_test.cpp | songhtdo/tlx | 6ded380ffb4b67a0026ce372d1133a85d326a0c6 | [
"BSL-1.0"
] | null | null | null | tests/sort_strings_test.cpp | songhtdo/tlx | 6ded380ffb4b67a0026ce372d1133a85d326a0c6 | [
"BSL-1.0"
] | null | null | null | /*******************************************************************************
* tests/sort_strings_test.cpp
*
* String sorting test program
*
* Part of tlx - http://panthema.net/tlx
*
* Copyright (C) 2015-2018 Timo Bingmann <tb@panthema.net>
*
* All rights reserved. Published under the Boost Software Licens... | 31.478632 | 80 | 0.566318 | eug93 |
b68a2c722e1a89135442b75a88bb374a4feb99f0 | 961 | hpp | C++ | king/include/king/Math/MatrixTransform.hpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | 3 | 2017-03-10T13:57:25.000Z | 2017-05-31T19:05:35.000Z | king/include/king/Math/MatrixTransform.hpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | null | null | null | king/include/king/Math/MatrixTransform.hpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | null | null | null |
#ifndef KING_MATRIXTRANSFORM_HPP
#define KING_MATRIXTRANSFORM_HPP
#include <king/Math/Vector3.hpp>
#include <king/Math/Matrix4.hpp>
#include <king/Math/Quaternion.hpp>
namespace king {
namespace MatrixTransform {
// Pushing operation in an matrix
Matrix4 translate(Matrix4 const & mat, Vector3f const & tr... | 20.446809 | 77 | 0.729448 | tobiasbu |
b68bc1481465cf10089a6a76fdfa8b203082606b | 6,045 | cpp | C++ | Problem19.cpp | GinoImport/Cpp-ProjectEulerDotNet | 78892de84923b9bce3ce936a1a478a18262da8d6 | [
"MIT"
] | null | null | null | Problem19.cpp | GinoImport/Cpp-ProjectEulerDotNet | 78892de84923b9bce3ce936a1a478a18262da8d6 | [
"MIT"
] | null | null | null | Problem19.cpp | GinoImport/Cpp-ProjectEulerDotNet | 78892de84923b9bce3ce936a1a478a18262da8d6 | [
"MIT"
] | null | null | null | /**
* Solution by Luis Galotti
* This solution need the file problem18CompanionFile (where is written the tree)
* You are given the following information, but you may prefer to do some research for yourself.
1 Jan 1900 was a Monday.
Thirty days has September,
April, June and November.
All the rest have thirty-one,
... | 31 | 146 | 0.465509 | GinoImport |
b68c8711ba3d1dc4ab48ecf762cabfc618a3803b | 589 | cc | C++ | cxx/test/parse.cc | alexhsamuel/ora | 89358d9193d86fbc7752270f1e35ee6ddcdcd206 | [
"BSD-3-Clause"
] | 10 | 2018-03-03T02:02:19.000Z | 2020-04-02T22:47:55.000Z | cxx/test/parse.cc | alexhsamuel/ora | 89358d9193d86fbc7752270f1e35ee6ddcdcd206 | [
"BSD-3-Clause"
] | 13 | 2018-01-28T15:20:55.000Z | 2022-01-27T23:32:41.000Z | cxx/test/parse.cc | alexhsamuel/ora | 89358d9193d86fbc7752270f1e35ee6ddcdcd206 | [
"BSD-3-Clause"
] | null | null | null | #include "ora.hh"
#include "gtest/gtest.h"
using namespace ora;
//------------------------------------------------------------------------------
// parse_date
//------------------------------------------------------------------------------
TEST(parse_date, basic) {
EXPECT_EQ(from_ymd(2020, 1, 29), date::parse("%Y... | 29.45 | 80 | 0.455008 | alexhsamuel |
b690befa6a0803dae69e9619d46c89c41be9c3c4 | 8,921 | cc | C++ | src/hash_db.cc | YukinoDB/MemoryDB | 103e0835911d623bb4713a908bf478da7ceeeaa0 | [
"BSD-2-Clause"
] | null | null | null | src/hash_db.cc | YukinoDB/MemoryDB | 103e0835911d623bb4713a908bf478da7ceeeaa0 | [
"BSD-2-Clause"
] | null | null | null | src/hash_db.cc | YukinoDB/MemoryDB | 103e0835911d623bb4713a908bf478da7ceeeaa0 | [
"BSD-2-Clause"
] | null | null | null | #include "hash_db.h"
#include "bin_log.h"
#include "configuration.h"
#include "basic_io.h"
#include "value_traits.h"
#include "persistent.h"
#include "background.h"
#include "server.h"
#include "yuki/file_path.h"
#include "yuki/file.h"
#include "yuki/strings.h"
#include <fcntl.h>
#include <sys/stat.h>
namespace yukino... | 24.849582 | 80 | 0.585136 | YukinoDB |
b697c587947bed6bd39811fcf29f8c8496883d66 | 315 | hpp | C++ | source/platform/windows/platform_impl_win.hpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/platform/windows/platform_impl_win.hpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | source/platform/windows/platform_impl_win.hpp | Kostu96/k2d-engine | 8150230034cf4afc862fcc1a3c262c27d544feed | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2021-2022 Konstanty Misiak
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "platform/platform.hpp"
namespace k2d {
class PlatformImpl
{
public:
PlatformImpl() = default;
uint32 getNativeKeyCode(Key::KeyCode key) const;
};
} // namespace k2d
| 15 | 56 | 0.631746 | Kostu96 |
b6985a40fdd3758671aae2c79e03dcebee34d589 | 302 | cpp | C++ | c++_projects/product.cpp | amogh-dongre/dotfiles | 973edf2f933bf7279ef78b1381d57b00f960fea6 | [
"MIT"
] | 2 | 2021-01-02T06:01:54.000Z | 2021-04-20T13:00:50.000Z | c++_projects/product.cpp | amogh-dongre/dotfiles | 973edf2f933bf7279ef78b1381d57b00f960fea6 | [
"MIT"
] | null | null | null | c++_projects/product.cpp | amogh-dongre/dotfiles | 973edf2f933bf7279ef78b1381d57b00f960fea6 | [
"MIT"
] | 1 | 2021-11-21T08:47:07.000Z | 2021-11-21T08:47:07.000Z | #include <iostream>
using namespace std;
int main(){
double num1,num2,num3,num4;
double product=0;
std::cout<< "enter 4 numbers ";
std::cin >>num1>>num2>>num3>>num4;
product=num1*num2*num3*num4;
std::cout<<"the product of your entered values are:"<<product<<":)";
return 0;
}
| 23.230769 | 70 | 0.639073 | amogh-dongre |
b69a256c8d784cd1dcae76a2b62bf9edeb1b803a | 2,438 | hpp | C++ | code/engine/xrEngine/engine_impl.hpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 58 | 2016-11-20T19:14:35.000Z | 2021-12-27T21:03:35.000Z | code/engine/xrEngine/engine_impl.hpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 59 | 2016-09-10T10:44:20.000Z | 2018-09-03T19:07:30.000Z | code/engine/xrEngine/engine_impl.hpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 39 | 2017-02-05T13:35:37.000Z | 2022-03-14T11:00:12.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : engine_impl.hpp
// Created : 04.12.2007
// Modified : 04.12.2007
// Author : Dmitriy Iassenev
// Description : engine implementation class
////////////////////////////////////////////////////////////////////////////
#pragma ... | 30.475 | 97 | 0.694422 | InNoHurryToCode |
b69e5a88d0cb0ef456359f213887268a2af04917 | 5,375 | cpp | C++ | TDEngine2/source/platform/unix/CUnixDLLManager.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-15T01:14:15.000Z | 2019-07-15T01:14:15.000Z | TDEngine2/source/platform/unix/CUnixDLLManager.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 76 | 2018-10-27T16:59:36.000Z | 2022-03-30T17:40:39.000Z | TDEngine2/source/platform/unix/CUnixDLLManager.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-29T02:02:08.000Z | 2019-07-29T02:02:08.000Z | #include "./../../../include/platform/unix/CUnixDLLManager.h"
#include "./../../../include/utils/CFileLogger.h"
#if defined (TDE2_USE_UNIXPLATFORM)
#include <dlfcn.h>
namespace TDEngine2
{
CUnixDLLManager::CUnixDLLManager() :
CBaseObject(), mNextFreeHandler(static_cast<TDynamicLibraryHandler>(0))
{
}
E_RESU... | 22.028689 | 112 | 0.719256 | bnoazx005 |
b69e7f747020815a0b2d54f6d7f4ae443961669a | 260 | cpp | C++ | Lab1/main.cpp | shin-eunsu/POCU_Cplusplus | 5ff8bb8ad594da1a74c610ccd49d00a591b41f99 | [
"MIT"
] | 2 | 2021-04-27T05:36:57.000Z | 2021-04-27T05:37:02.000Z | Lab1/main.cpp | shin-eunsu/POCU_Cplusplus | 5ff8bb8ad594da1a74c610ccd49d00a591b41f99 | [
"MIT"
] | null | null | null | Lab1/main.cpp | shin-eunsu/POCU_Cplusplus | 5ff8bb8ad594da1a74c610ccd49d00a591b41f99 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Add.h"
using namespace std;
using namespace lab1;
int main()
{
int a = 0;
int b = 0;
int result = 0;
cout << "input two numbers : ";
cin >> a >> b;
result = Add(a, b);
cout << "Result : " << result << endl;
return 0;
} | 13.684211 | 39 | 0.576923 | shin-eunsu |
b6a1ae7351d6b09f2c384612575d60287540fd55 | 231 | cpp | C++ | Operator Overloading/Sally.cpp | b15145456/learning_cpp | 073ec72ba953adf157633d08958c4509b3efa647 | [
"MIT"
] | null | null | null | Operator Overloading/Sally.cpp | b15145456/learning_cpp | 073ec72ba953adf157633d08958c4509b3efa647 | [
"MIT"
] | null | null | null | Operator Overloading/Sally.cpp | b15145456/learning_cpp | 073ec72ba953adf157633d08958c4509b3efa647 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Sally.h"
using namespace std;
Sally::Sally(){
}
Sally::Sally(int a){
num = a;
}
Sally Sally::operator+(Sally aso){
Sally brandNew;
brandNew.num = num + aso.num ;
return (brandNew);
} | 14.4375 | 34 | 0.632035 | b15145456 |
b6a2cba4cc00624f8c6f2595a1ce2e2da2eb84fd | 4,654 | cpp | C++ | RockBuster/PauseState.cpp | Mateusz1223/RockBuster | 6261391425188059baf79e892272fc19ce50c26d | [
"MIT"
] | 1 | 2021-04-17T09:49:18.000Z | 2021-04-17T09:49:18.000Z | RockBuster/PauseState.cpp | Mateusz1223/RockBuster | 6261391425188059baf79e892272fc19ce50c26d | [
"MIT"
] | null | null | null | RockBuster/PauseState.cpp | Mateusz1223/RockBuster | 6261391425188059baf79e892272fc19ce50c26d | [
"MIT"
] | null | null | null | #include "PauseState.h"
#include "common.h"
// Private funtions
void PauseState::initBackground()
{
this->background.setSize(this->data->displayField.size);
this->background.setPosition(this->data->displayField.position);
this->background.setFillColor(sf::Color::Color(0, 0, 0, 170));
}
void PauseState::initTex... | 28.378049 | 269 | 0.726687 | Mateusz1223 |
b6a4789399c7edfd2ff3c66a0f54914ec96ea78a | 12,128 | cpp | C++ | tests/array/testArray2Base.cpp | corbett5/zfp | 2d92b09d9909e86230a47b7ee7a06353efb092ab | [
"BSD-3-Clause"
] | 1 | 2022-01-30T00:22:55.000Z | 2022-01-30T00:22:55.000Z | tests/array/testArray2Base.cpp | corbett5/zfp | 2d92b09d9909e86230a47b7ee7a06353efb092ab | [
"BSD-3-Clause"
] | 1 | 2022-03-03T14:48:04.000Z | 2022-03-03T14:51:03.000Z | tests/array/testArray2Base.cpp | corbett5/zfp | 2d92b09d9909e86230a47b7ee7a06353efb092ab | [
"BSD-3-Clause"
] | 1 | 2022-03-02T13:47:04.000Z | 2022-03-02T13:47:04.000Z | /* TODO: figure out templated tests (TYPED_TEST) */
/* const_view */
TEST_P(TEST_FIXTURE, when_construct2dCompressedArrayFromConstView_then_rateConserved)
{
ZFP_ARRAY_TYPE arr(inputDataSideLen, inputDataSideLen, getRate(), inputDataArr);
ZFP_ARRAY_TYPE::const_view v(&arr, 1, 1, 1, 1);
ZFP_ARRAY_TYPE arr2(v);
... | 28.671395 | 95 | 0.707784 | corbett5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.