hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f23937d48a8badc79c8000ee5577fdf50dd7a7d | 90,418 | cpp | C++ | mozilla/gfx/2d/DrawTargetD2D.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | 5 | 2016-12-20T15:48:05.000Z | 2020-05-01T20:12:09.000Z | mozilla/gfx/2d/DrawTargetD2D.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | null | null | null | mozilla/gfx/2d/DrawTargetD2D.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | 2 | 2016-12-20T15:48:13.000Z | 2019-12-10T15:15:05.000Z | /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <initguid.h>
#include "Draw... | 31.770204 | 202 | 0.670652 | naver |
8f2454e01930708f7943df679ba50f90a8cc2b2b | 515 | cc | C++ | components/error_page/common/alt_game_images.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | components/error_page/common/alt_game_images.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | components/error_page/common/alt_game_images.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright (c) 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/error_page/common/alt_game_images.h"
#include "base/notreached.h"
namespace error_page {
bool EnableAltGameMode() {
return f... | 19.807692 | 73 | 0.730097 | chromium |
8f2469aa8014d4f8316c27c54a4bca5bbddf0b31 | 2,171 | cpp | C++ | mysql-server/storage/ndb/src/common/debugger/signaldata/TuxMaint.cpp | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/storage/ndb/src/common/debugger/signaldata/TuxMaint.cpp | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/storage/ndb/src/common/debugger/signaldata/TuxMaint.cpp | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /*
Copyright (C) 2003-2006 MySQL AB
Use is subject to license terms.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain so... | 39.472727 | 98 | 0.718102 | silenc3502 |
8f2954729354a038bcecc39dcd4be564acbe9a8d | 20,671 | cc | C++ | solvers/test/second_order_cone_program_examples.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 2 | 2021-02-25T02:01:02.000Z | 2021-03-17T04:52:04.000Z | solvers/test/second_order_cone_program_examples.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | null | null | null | solvers/test/second_order_cone_program_examples.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 1 | 2021-06-13T12:05:39.000Z | 2021-06-13T12:05:39.000Z | #include "drake/solvers/test/second_order_cone_program_examples.h"
#include <limits>
#include <memory>
#include <optional>
#include "drake/common/test_utilities/eigen_matrix_compare.h"
#include "drake/solvers/test/mathematical_program_test_util.h"
namespace drake {
namespace solvers {
namespace test {
const double k... | 38.782364 | 80 | 0.651541 | RobotLocomotion |
8f2abb88d7033f9753b4befb4f680b2ebe3ace51 | 1,216 | cpp | C++ | test/cali-wrap.cpp | slabasan/Caliper | 85601f48e7f883fb87dec85e92c849eec2bb61f7 | [
"BSD-3-Clause"
] | 220 | 2016-01-19T19:00:10.000Z | 2022-03-29T02:09:39.000Z | test/cali-wrap.cpp | slabasan/Caliper | 85601f48e7f883fb87dec85e92c849eec2bb61f7 | [
"BSD-3-Clause"
] | 328 | 2016-05-12T15:47:30.000Z | 2022-03-30T19:42:02.000Z | test/cali-wrap.cpp | slabasan/Caliper | 85601f48e7f883fb87dec85e92c849eec2bb61f7 | [
"BSD-3-Clause"
] | 48 | 2016-03-04T22:04:39.000Z | 2021-12-18T12:11:43.000Z | // Copyright (c) 2019, Lawrence Livermore National Security, LLC.
// See top-level LICENSE file for details.
// A minimal Caliper instrumentation demo
#include <caliper/Annotation.h>
#include <math.h>
#include <caliper/CaliFunctional.h>
int doWork(int* inArray, int size){
int reduce_var = 0;
for(int i=0; i<... | 25.87234 | 88 | 0.63898 | slabasan |
8f316af1ac71328f76b827b7b1265718289478ea | 408 | cpp | C++ | DISELAPI/DISELAPI.cpp | YbJerry/DISELAPI | fd04b294351c50dcf6d0b6129bccc3fd3b41a024 | [
"Apache-2.0"
] | null | null | null | DISELAPI/DISELAPI.cpp | YbJerry/DISELAPI | fd04b294351c50dcf6d0b6129bccc3fd3b41a024 | [
"Apache-2.0"
] | null | null | null | DISELAPI/DISELAPI.cpp | YbJerry/DISELAPI | fd04b294351c50dcf6d0b6129bccc3fd3b41a024 | [
"Apache-2.0"
] | null | null | null | // DISELAPI.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include "DISXMLReader.h"
#include "DISXMLWriter.h"
int main()
{
DISXMLReader reader("./examples/onlyAtomDomain.xml");
DISEL::Ontology *onto = reader.read();
auto res = onto->getAtom... | 21.473684 | 98 | 0.683824 | YbJerry |
8f3378af516d29c097aed2448ca232f91129efd3 | 2,701 | cpp | C++ | src/elab/elab.cpp | bridgekat/apimu | 2e401a01e0aad859dc1dd975dae164f622c48696 | [
"CC0-1.0"
] | 5 | 2021-12-12T22:10:57.000Z | 2022-03-10T21:01:48.000Z | src/elab/elab.cpp | bridgekat/apimu | 2e401a01e0aad859dc1dd975dae164f622c48696 | [
"CC0-1.0"
] | null | null | null | src/elab/elab.cpp | bridgekat/apimu | 2e401a01e0aad859dc1dd975dae164f622c48696 | [
"CC0-1.0"
] | null | null | null | #include "elab.hpp"
namespace Elab {
using std::vector;
using std::string;
using std::pair;
using namespace Core;
using enum Expr::Tag;
using enum Expr::SortTag;
using enum Expr::VarTag;
using enum Expr::LamTag;
using enum Expr::PiTag;
/*
pair<const Expr*, const Expr*> inferHoles(const Expr* ... | 37.513889 | 174 | 0.560163 | bridgekat |
8f3cc5b42e23157fd49fff3e383746aca09a6dbc | 10,119 | hxx | C++ | include/graphics/twm4nx/ctwm4nx.hxx | DS-LK/incubator-nuttx-apps | 5719753399c41529478ced0a3af9a8fae93a50a9 | [
"Apache-2.0"
] | 132 | 2019-12-17T23:45:42.000Z | 2022-03-30T11:58:30.000Z | include/graphics/twm4nx/ctwm4nx.hxx | VanFeo/incubator-nuttx-apps | 009e66874538658c10a26bc076d27e9de48fabc6 | [
"Apache-2.0"
] | 443 | 2020-01-01T03:06:24.000Z | 2022-03-31T08:57:35.000Z | include/graphics/twm4nx/ctwm4nx.hxx | VanFeo/incubator-nuttx-apps | 009e66874538658c10a26bc076d27e9de48fabc6 | [
"Apache-2.0"
] | 232 | 2019-12-21T10:18:12.000Z | 2022-03-30T07:42:13.000Z | /////////////////////////////////////////////////////////////////////////////
// apps/include/graphics/twm4nx/ctwm4nx.hxx
//
// 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 co... | 30.20597 | 92 | 0.582567 | DS-LK |
8f46cee25267d87493ea30f650d79ee453ba9d28 | 16,305 | cpp | C++ | Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraModule.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraModule.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraModule.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "NiagaraModule.h"
#include "Modules/ModuleManager.h"
#include "NiagaraTypes.h"
#include "NiagaraEvents.h"
#include "NiagaraSettings.h"
#include "NiagaraDataInterfaceCurlNoise.h"
#include "Class.h"
#include "Package.h"
#include "NiagaraWorldManager.h... | 36.88914 | 188 | 0.782153 | windystrife |
8f48db7b0b2e7160b9e6d9b85f95d6ed82653223 | 39,806 | cpp | C++ | TIFPart/TIFFView.cpp | HiraokaHyperTools/AxTIF5 | d50fbd33436fc07005e5712a586912932c450f58 | [
"BSD-3-Clause"
] | null | null | null | TIFPart/TIFFView.cpp | HiraokaHyperTools/AxTIF5 | d50fbd33436fc07005e5712a586912932c450f58 | [
"BSD-3-Clause"
] | 3 | 2016-05-23T07:05:17.000Z | 2022-02-10T14:20:54.000Z | TIFPart/TIFFView.cpp | HiraokaHyperTools/AxTIF5 | d50fbd33436fc07005e5712a586912932c450f58 | [
"BSD-3-Clause"
] | 1 | 2019-07-23T15:12:37.000Z | 2019-07-23T15:12:37.000Z | // AxTIF3View.cpp : CTIFFView クラスの実装
//
#include "pch.h"
#include "TIFPart.resource.h"
#include "TIFFDoc.h"
#include "TIFFView.h"
#include "../RUt.h"
#include "PaperSizeUtil.h"
#include "FitRect3.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
#define ENABLE_PRINT 1
const int cxBMFirst = 16;
cons... | 26.17094 | 131 | 0.63606 | HiraokaHyperTools |
8f49e864bef6591ea7cf8e6b3ddf92d898687cce | 709 | cpp | C++ | Problemset/repeated-substring-pattern/repeated-substring-pattern.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | 1 | 2020-10-06T01:06:45.000Z | 2020-10-06T01:06:45.000Z | Problemset/repeated-substring-pattern/repeated-substring-pattern.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | null | null | null | Problemset/repeated-substring-pattern/repeated-substring-pattern.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | 1 | 2021-11-17T13:52:51.000Z | 2021-11-17T13:52:51.000Z |
// @Title: 重复的子字符串 (Repeated Substring Pattern)
// @Author: Singularity0909
// @Date: 2020-08-24 22:22:32
// @Runtime: 28 ms
// @Memory: 12.3 MB
class Solution {
public:
bool kmp(const string& pattern) {
int n = pattern.size();
vector<int> fail(n, -1);
for (int i = 1; i < n; ++i) {
... | 24.448276 | 67 | 0.445698 | Singularity0909 |
8f4acf7ce4dfa4c280807e56df26dbe8cbee6c08 | 2,050 | cpp | C++ | src/Observers/XYZObserver.cpp | hsidky/LNTMC | 6f1cc81476718ef19f85fd596d0815a194705a50 | [
"MIT"
] | 10 | 2016-08-16T23:32:33.000Z | 2021-07-06T09:39:58.000Z | src/Observers/XYZObserver.cpp | hsidky/LNT-MC | 6f1cc81476718ef19f85fd596d0815a194705a50 | [
"MIT"
] | 33 | 2015-04-09T16:19:51.000Z | 2016-02-06T04:34:01.000Z | src/Observers/XYZObserver.cpp | hsidky/LNT-MC | 6f1cc81476718ef19f85fd596d0815a194705a50 | [
"MIT"
] | 8 | 2015-02-16T18:34:46.000Z | 2021-01-11T19:37:14.000Z | #include "XYZObserver.h"
#include "../Particles/Particle.h"
#include "../Simulation/Simulation.h"
#include "../Simulation/DOSSimulation.h"
#include "../Worlds/WorldManager.h"
#include "../Moves/MoveManager.h"
#include "../ForceFields/ForceFieldManager.h"
#include "../Worlds/World.h"
#include "../Utils/Histogram.h"
#inc... | 24.404762 | 68 | 0.597073 | hsidky |
8f4bb2b9be2452a3e725781b591fc27a69bc8e14 | 43,807 | cc | C++ | src/GamIO/XWin2D.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | 4 | 2021-03-15T10:02:13.000Z | 2022-01-16T11:06:28.000Z | src/GamIO/XWin2D.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | 1 | 2022-01-27T15:35:03.000Z | 2022-01-27T15:35:03.000Z | src/GamIO/XWin2D.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | null | null | null | /* XWin2D.cc ****************************************************-*-c++-*-
** **
** G A M M A **
** **
** XWin2D ... | 41.840497 | 135 | 0.584153 | pygamma-mrs |
8f5501733da2f19eaebc90e04146300d5dc5aa54 | 6,762 | cpp | C++ | libs/graphslam/src/CGraphSlamHandler.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/graphslam/src/CGraphSlamHandler.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/graphslam/src/CGraphSlamHandler.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 1 | 2021-08-16T11:50:47.000Z | 2021-08-16T11:50:47.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 29.528384 | 87 | 0.584738 | yhexie |
8f59099f72d134fb6adcef7bebcede86cb2da323 | 17,765 | cpp | C++ | dynadjust/include/io/dnaiodna.cpp | dotzhou/DynAdjust | 5e5918aff7975e2c2cead4f5be16b48d3eee7c76 | [
"Apache-2.0"
] | 1 | 2020-06-02T04:49:13.000Z | 2020-06-02T04:49:13.000Z | dynadjust/include/io/dnaiodna.cpp | dotzhou/DynAdjust | 5e5918aff7975e2c2cead4f5be16b48d3eee7c76 | [
"Apache-2.0"
] | null | null | null | dynadjust/include/io/dnaiodna.cpp | dotzhou/DynAdjust | 5e5918aff7975e2c2cead4f5be16b48d3eee7c76 | [
"Apache-2.0"
] | null | null | null | //============================================================================
// Name : dnaiodna.cpp
// Author : Roger Fraser
// Contributors :
// Version : 1.00
// Copyright : Copyright 2017 Geoscience Australia
//
// Licensed under the Apache License, Version 2.0 (the "License");... | 28.378594 | 110 | 0.691134 | dotzhou |
8f599c1b4607f92309e3f57c9c6b19e649ad246b | 12,573 | inl | C++ | development/hfsm2/detail/structure/composite_sub_2.inl | mjukel/HFSM2 | 583b085734b9542dbd74ddce69cc94a1d2b0d601 | [
"MIT"
] | null | null | null | development/hfsm2/detail/structure/composite_sub_2.inl | mjukel/HFSM2 | 583b085734b9542dbd74ddce69cc94a1d2b0d601 | [
"MIT"
] | null | null | null | development/hfsm2/detail/structure/composite_sub_2.inl | mjukel/HFSM2 | 583b085734b9542dbd74ddce69cc94a1d2b0d601 | [
"MIT"
] | null | null | null | namespace hfsm2 {
namespace detail {
////////////////////////////////////////////////////////////////////////////////
template <typename TN, typename TA, Strategy SG, Short NI, typename T>
HFSM2_CONSTEXPR(14)
void
CS_<TN, TA, SG, NI, TL_<T>>::wideRegister(Registry& registry,
const Parent parent) noexcept... | 29.583529 | 92 | 0.566691 | mjukel |
8f5a4a19d0d7c1d735204c90902b19d303a1c60f | 594 | hpp | C++ | Messy_Test-master/demo/DesignPatternsTest/Singleton.hpp | shenjl/Cplusplus | 345c2f582bf160d663c8accfafbcabc2ff011e57 | [
"MIT"
] | 1 | 2019-11-10T08:23:00.000Z | 2019-11-10T08:23:00.000Z | Messy_Test-master/demo/DesignPatternsTest/Singleton.hpp | selonsy/Cplusplus | 345c2f582bf160d663c8accfafbcabc2ff011e57 | [
"MIT"
] | null | null | null | Messy_Test-master/demo/DesignPatternsTest/Singleton.hpp | selonsy/Cplusplus | 345c2f582bf160d663c8accfafbcabc2ff011e57 | [
"MIT"
] | null | null | null | #ifndef FBC_MESSY_TEST_SINGLETON_HPP_
#define FBC_MESSY_TEST_SINGLETON_HPP_
class Singleton
{
private:
Singleton() {}
static Singleton* single;
public:
static Singleton* GetInstance()
{
if (single == NULL) {
single = new Singleton();
}
return single;
}
};
// ===========================================... | 16.5 | 68 | 0.698653 | shenjl |
8f5ada0171d1116004f1fe467e6a98b11b58f7f2 | 1,202 | hpp | C++ | src/utils.hpp | stash-s/esp-vfd-clock | 272f013feaffdbeb68c9fb9de253d65f00e487db | [
"MIT"
] | null | null | null | src/utils.hpp | stash-s/esp-vfd-clock | 272f013feaffdbeb68c9fb9de253d65f00e487db | [
"MIT"
] | null | null | null | src/utils.hpp | stash-s/esp-vfd-clock | 272f013feaffdbeb68c9fb9de253d65f00e487db | [
"MIT"
] | null | null | null | #ifndef __UTILS_HPP__
#define __UTILS_HPP__
/**
* Utility class. Rotate through available numbers and trigger actions when ticking and reseting
*/
template <typename tick_callback_type, typename reset_callback_type>
class rotary_counter
{
const int max_counter;
int counter;
const tick_callback_type tick_... | 23.568627 | 99 | 0.640599 | stash-s |
8f5dc958bb416dac40f837b04dfd7d5f51fcbbce | 375 | hpp | C++ | src/targets/gpu/include/migraphx/gpu/cosh.hpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | 72 | 2018-12-06T18:31:17.000Z | 2022-03-30T15:01:02.000Z | src/targets/gpu/include/migraphx/gpu/cosh.hpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | 1,006 | 2018-11-30T16:32:33.000Z | 2022-03-31T22:43:39.000Z | src/targets/gpu/include/migraphx/gpu/cosh.hpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | 36 | 2019-05-07T10:41:46.000Z | 2022-03-28T15:59:56.000Z | #ifndef MIGRAPHX_GUARD_RTGLIB_COSH_HPP
#define MIGRAPHX_GUARD_RTGLIB_COSH_HPP
#include <migraphx/gpu/oper.hpp>
#include <migraphx/gpu/device/cosh.hpp>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
namespace gpu {
struct hip_cosh : unary_device<hip_cosh, device::cosh>
{
};
} // namespace gpu
} // namesp... | 18.75 | 54 | 0.786667 | aaronenyeshi |
8f60763129b4f054a690c7da30c722a92f0b1c0e | 4,375 | cpp | C++ | tests/utils/ext/enoki/tests/custom.cpp | jiangzhongshi/acorns-benchmark | df5f43af90a32f4c1578cdea1f4f412237e18c75 | [
"MIT"
] | 62 | 2019-12-21T23:48:28.000Z | 2021-11-25T14:29:28.000Z | tests/utils/ext/enoki/tests/custom.cpp | jiangzhongshi/acorns-benchmark | df5f43af90a32f4c1578cdea1f4f412237e18c75 | [
"MIT"
] | 5 | 2020-01-06T19:55:41.000Z | 2020-06-19T23:13:24.000Z | tests/utils/ext/enoki/tests/custom.cpp | jiangzhongshi/acorns-benchmark | df5f43af90a32f4c1578cdea1f4f412237e18c75 | [
"MIT"
] | 10 | 2019-12-22T15:53:10.000Z | 2021-07-18T09:12:06.000Z | /*
tests/custom.cpp -- tests operations involving custom data structures
Enoki is a C++ template library that enables transparent vectorization
of numerical kernels using SIMD instruction sets available on current
processor architectures.
Copyright (c) 2019 Wenzel Jakob <wenzel.jakob@epfl.ch>
... | 27.866242 | 83 | 0.6064 | jiangzhongshi |
8f675f68cb0d16cf75141954b54dca873091193a | 544 | cpp | C++ | codeforces/stuff/e.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | codeforces/stuff/e.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | codeforces/stuff/e.cpp | AadityaJ/Spoj | 61664c1925ef5bb072a3fe78fb3dac4fb68d77a1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
bool isConsonant(char ch){
switch(ch){
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
case 'y':
return 0;
}
return 1;
}
int main(int argc, char const *argv[]) {
string str;
cin>>str;
std::transform(... | 16.484848 | 64 | 0.573529 | AadityaJ |
8f6b9648eb381ee1e11399d6b447698276a2b284 | 1,497 | hpp | C++ | Tests/otpgen-tests.hpp | SCOTT-HAMILTON/OTPGen | 706ba9a3546abddc1d1eb8f4edac710fe35a0b22 | [
"BSD-2-Clause"
] | 8 | 2018-12-21T12:04:19.000Z | 2022-03-20T04:11:44.000Z | Tests/otpgen-tests.hpp | SCOTT-HAMILTON/OTPGen | 706ba9a3546abddc1d1eb8f4edac710fe35a0b22 | [
"BSD-2-Clause"
] | 8 | 2019-11-24T19:51:10.000Z | 2021-01-23T19:02:57.000Z | Tests/otpgen-tests.hpp | SCOTT-HAMILTON/OTPGen | 706ba9a3546abddc1d1eb8f4edac710fe35a0b22 | [
"BSD-2-Clause"
] | 5 | 2019-01-28T03:36:02.000Z | 2020-11-04T07:27:05.000Z | #ifndef OTPGENTESTS_HPP
#define OTPGENTESTS_HPP
#include <bandit/bandit.h>
using namespace snowhouse;
using namespace bandit;
#include <OTPGen.hpp>
// NOTICE:
// code was tested with real token secrets for TOTP and Steam
// and all of them worked, login was successful
go_bandit([]{
describe("OTPGen Test", ... | 34.022727 | 110 | 0.610554 | SCOTT-HAMILTON |
8f6bd623a3b383acd4450bb18829b4e6bb6b5509 | 627 | cc | C++ | ports/www/chromium-legacy/newport/files/patch-apps_ui_views_app__window__frame__view.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2022-02-08T02:24:08.000Z | 2022-02-08T02:24:08.000Z | ports/www/chromium-legacy/newport/files/patch-apps_ui_views_app__window__frame__view.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ports/www/chromium-legacy/newport/files/patch-apps_ui_views_app__window__frame__view.cc | danielfojt/DeltaPorts | 5710b4af4cacca5eb1ac577df304c788c07c4217 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | --- apps/ui/views/app_window_frame_view.cc.orig 2019-06-04 18:55:14 UTC
+++ apps/ui/views/app_window_frame_view.cc
@@ -125,7 +125,7 @@ gfx::Rect AppWindowFrameView::GetBoundsForClientView()
gfx::Rect AppWindowFrameView::GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const {
gfx::Rect window_bo... | 52.25 | 75 | 0.748006 | danielfojt |
8f70e95e1c2a57ec85a971e50f6dc10eae6bdf95 | 1,443 | cpp | C++ | core/src/SimpleIterant.cpp | athelaf/nextsimdg | 557e45db6af2cc07d00b3228c2d46f87567fe755 | [
"Apache-2.0"
] | null | null | null | core/src/SimpleIterant.cpp | athelaf/nextsimdg | 557e45db6af2cc07d00b3228c2d46f87567fe755 | [
"Apache-2.0"
] | null | null | null | core/src/SimpleIterant.cpp | athelaf/nextsimdg | 557e45db6af2cc07d00b3228c2d46f87567fe755 | [
"Apache-2.0"
] | null | null | null | /*!
* @file SimpleIterant.cpp
* @date 12 Aug 2021
* @author Tim Spain <timothy.spain@nersc.no>
*/
#include "include/SimpleIterant.hpp"
#include <ctime>
#include <iostream>
#include <sstream>
#include <string>
namespace Nextsim {
SimpleIterant::SimpleIterant()
{
// It's so simple, there's nothing here
}
voi... | 23.655738 | 91 | 0.689536 | athelaf |
8f74ca216777227a632a1ca71bbf304bd36df693 | 5,921 | cxx | C++ | src/Cxx/Visualization/StructuredDataTypes.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 81 | 2020-08-10T01:44:30.000Z | 2022-03-23T06:46:36.000Z | src/Cxx/Visualization/StructuredDataTypes.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 2 | 2020-09-12T17:33:52.000Z | 2021-04-15T17:33:09.000Z | src/Cxx/Visualization/StructuredDataTypes.cxx | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 27 | 2020-08-17T07:09:30.000Z | 2022-02-15T03:44:58.000Z | #include <vtkDataSetMapper.h>
#include <vtkDoubleArray.h>
#include <vtkImageData.h>
#include <vtkNamedColors.h>
#include <vtkNew.h>
#include <vtkProperty.h>
#include <vtkRectilinearGrid.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRenderer.h>
#include <vtkStructuredGrid.h>
#includ... | 29.90404 | 76 | 0.726398 | ajpmaclean |
8f7684c1afa53d1c9511aec82597f1cd801ca32d | 2,308 | cxx | C++ | tests/glshared_test.cxx | iivek/graphlab-cmu-mirror | 028321757ea979e6a0859687e37933be375153eb | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-08-01T06:32:58.000Z | 2018-08-01T06:32:58.000Z | tests/glshared_test.cxx | iivek/graphlab-cmu-mirror | 028321757ea979e6a0859687e37933be375153eb | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/glshared_test.cxx | iivek/graphlab-cmu-mirror | 028321757ea979e6a0859687e37933be375153eb | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /**
* Copyright (c) 2009 Carnegie Mellon University.
* 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... | 25.932584 | 68 | 0.659012 | iivek |
8f778c9945028639bc47070f6e42ea2f5e4f72fa | 963 | hpp | C++ | AudioKit/Common/Nodes/Generators/Physical Models/Metal Bar/AKMetalBarDSP.hpp | colinhallett/AudioKit | 10600731f5a0a3ea1cd980d4c3a991c57aa473de | [
"MIT"
] | null | null | null | AudioKit/Common/Nodes/Generators/Physical Models/Metal Bar/AKMetalBarDSP.hpp | colinhallett/AudioKit | 10600731f5a0a3ea1cd980d4c3a991c57aa473de | [
"MIT"
] | null | null | null | AudioKit/Common/Nodes/Generators/Physical Models/Metal Bar/AKMetalBarDSP.hpp | colinhallett/AudioKit | 10600731f5a0a3ea1cd980d4c3a991c57aa473de | [
"MIT"
] | null | null | null | // Copyright AudioKit. All Rights Reserved. Revision History at http://github.com/AudioKit/AudioKit/
#pragma once
#import <AVFoundation/AVFoundation.h>
typedef NS_ENUM(AUParameterAddress, AKMetalBarParameter) {
AKMetalBarParameterLeftBoundaryCondition,
AKMetalBarParameterRightBoundaryCondition,
AKMetalBa... | 22.395349 | 100 | 0.786085 | colinhallett |
8f7835cd6a89bec08a1a8a9cb20714bc61d84c1c | 46 | cpp | C++ | Physics Engine/Physics/Generics/PhysicsCollider.cpp | FirowMD/Luna-Engine | 4011a43df48ca85f6d8f8657709471da02bd8301 | [
"MIT"
] | 2 | 2021-07-28T23:08:29.000Z | 2021-09-14T19:32:36.000Z | Physics Engine/Physics/Generics/PhysicsCollider.cpp | FirowMD/Luna-Engine | 4011a43df48ca85f6d8f8657709471da02bd8301 | [
"MIT"
] | null | null | null | Physics Engine/Physics/Generics/PhysicsCollider.cpp | FirowMD/Luna-Engine | 4011a43df48ca85f6d8f8657709471da02bd8301 | [
"MIT"
] | null | null | null | #include "pc.h"
#include "PhysicsCollider.h"
| 11.5 | 28 | 0.717391 | FirowMD |
8f7e032d1623101241f2a5244f3f2a799113b218 | 3,307 | cc | C++ | RAVL2/PatternRec/DataSet/SampleStreamVectorFloat.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/PatternRec/DataSet/SampleStreamVectorFloat.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/PatternRec/DataSet/SampleStreamVectorFloat.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2003, OmniPerception Ltd.
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here
... | 30.063636 | 118 | 0.634714 | isuhao |
8f819ec7d2ccc64dd46dde18259b106a063fe320 | 833 | cpp | C++ | src/utils/string_utils.cpp | scp-studios/scp-game-framework | 17ffb68a50d834e490d387028f05add9f5391ea5 | [
"MIT"
] | 1 | 2022-01-31T22:20:01.000Z | 2022-01-31T22:20:01.000Z | src/utils/string_utils.cpp | scp-studios/scp-game-framework | 17ffb68a50d834e490d387028f05add9f5391ea5 | [
"MIT"
] | null | null | null | src/utils/string_utils.cpp | scp-studios/scp-game-framework | 17ffb68a50d834e490d387028f05add9f5391ea5 | [
"MIT"
] | null | null | null | #include <sstream>
#include <scp/utils/string_utils.hpp>
namespace string_utils = scp::utils::string_utils;
bool string_utils::startsWith(std::string_view p_a, std::string_view p_b)
{
if (p_a.size() < p_b.size())
{
return false;
}
for (std::string_view::iterator aIt = p_a.begin(), bIt = ... | 20.825 | 105 | 0.571429 | scp-studios |
8f865db48e779d551203f30bbc577b6f2d3cad43 | 21,964 | cpp | C++ | CO/tools/LT/LT.cpp | Snake52996/Spring2021-FoCS | c78662021d0017d25dccd9006e8eb0e80dfedfe7 | [
"MIT"
] | null | null | null | CO/tools/LT/LT.cpp | Snake52996/Spring2021-FoCS | c78662021d0017d25dccd9006e8eb0e80dfedfe7 | [
"MIT"
] | null | null | null | CO/tools/LT/LT.cpp | Snake52996/Spring2021-FoCS | c78662021d0017d25dccd9006e8eb0e80dfedfe7 | [
"MIT"
] | null | null | null | #include "tinyxml2.h"
#include<getopt.h>
#include<cstdlib>
#include<cstring>
#include<thread>
#include<cstdio>
#include<filesystem>
#include<mutex>
#include<vector>
#include<cstdio>
#include<fstream>
#include<string>
#include<regex>
#ifdef _WIN32
#define REDCOLOR ""
#define GREENCOLOR ""
#define YELLOWCOLOR ""
#define ... | 38 | 224 | 0.547259 | Snake52996 |
8f8952eca6e0bad2496f4d58571c7f69624452be | 1,706 | cpp | C++ | src/Engine/PieceTypes/ChuShogi/FreeBoar.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | 4 | 2015-12-24T04:52:48.000Z | 2021-11-09T11:31:36.000Z | src/Engine/PieceTypes/ChuShogi/FreeBoar.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | src/Engine/PieceTypes/ChuShogi/FreeBoar.cpp | jweathers777/mShogi | 941cd4dc37e6e6210d4f993c96a553753e228b19 | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
// Name: FreeBoar.cpp
// Description: Implementation for a class that represents a free boar
// Created: 08/31/2004 09:44:11 Eastern Daylight Time
// Last Updated: $Date: 2004/09/18 22:23:06 $
// Revision: $Revision: 1.1 $
//... | 32.807692 | 76 | 0.551583 | jweathers777 |
8f90f8cf1e58b7c2dbafd87e8462be11c5d5ee67 | 17,599 | cpp | C++ | vbox/src/VBox/Main/src-global/VirtualBoxSDSImpl.cpp | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | vbox/src/VBox/Main/src-global/VirtualBoxSDSImpl.cpp | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | vbox/src/VBox/Main/src-global/VirtualBoxSDSImpl.cpp | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | /* $Id: VirtualBoxSDSImpl.cpp 71159 2018-02-28 16:06:10Z vboxsync $ */
/** @file
* VBox Global COM Class implementation.
*/
/*
* Copyright (C) 2015-2018 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* ... | 34.507843 | 142 | 0.509177 | Nurzamal |
8f93bdd147f9365152cbd18032726d0b1bd8e262 | 4,278 | cc | C++ | sigma_boron_dec_heinbach_simon.cc | bjbuckman/galprop_bb_ | 076b168f7475b3ba9fb198b6ec2df7be66b1763c | [
"MIT"
] | null | null | null | sigma_boron_dec_heinbach_simon.cc | bjbuckman/galprop_bb_ | 076b168f7475b3ba9fb198b6ec2df7be66b1763c | [
"MIT"
] | null | null | null | sigma_boron_dec_heinbach_simon.cc | bjbuckman/galprop_bb_ | 076b168f7475b3ba9fb198b6ec2df7be66b1763c | [
"MIT"
] | null | null | null |
//**.****|****.****|****.****|****.****|****.****|****.****|****.****|****.****|
// * sigma_boron_dec_heinbach_simon.cc * galprop package * 4/14/2000
//**"****!****"****!****"****!****"****!****"****!****"****!****"****!****"****|
using namespace std;//AWS20050624
#include<iostream>
double sigma_boron_dec_... | 30.126761 | 121 | 0.492052 | bjbuckman |
8f94369d72cb462a6d8bb3b9ddb1e7226ad368d6 | 751 | cpp | C++ | pub/1381.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | 2 | 2021-05-01T15:51:58.000Z | 2021-05-02T15:19:49.000Z | pub/1381.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | 1 | 2021-05-16T15:04:38.000Z | 2021-09-19T09:49:00.000Z | pub/1381.cpp | BashuMiddleSchool/Bashu_OnlineJudge_Code | 4707a271e6658158a1910b0e6e27c75f96841aca | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<cstdlib>
using namespace std;
const int N = 20;
const int xx[2] = {0,-1} , yy[2] = {-1,0};
int f[N][N][N][N],a[N][N];
int x,y,z,nx1,nx2,ny1,ny2,n;
int main() {
cin >> n;
cin >> x >> y >> z;
while(x) {
a[x][y]=z;
cin >> x >> y >> z;
}
for(int x1=1;x1<=n;++x1) {
... | 19.763158 | 68 | 0.475366 | BashuMiddleSchool |
8f9881300fcbb444d4b0d12e271fc1b1b337a0bc | 1,334 | cpp | C++ | Other/GFG-CelebrityProblem.cpp | SahilChachra/DS-Algo-Practice | 3a5cde32d6344f436cabd514b00345902694425e | [
"MIT"
] | null | null | null | Other/GFG-CelebrityProblem.cpp | SahilChachra/DS-Algo-Practice | 3a5cde32d6344f436cabd514b00345902694425e | [
"MIT"
] | null | null | null | Other/GFG-CelebrityProblem.cpp | SahilChachra/DS-Algo-Practice | 3a5cde32d6344f436cabd514b00345902694425e | [
"MIT"
] | null | null | null | #include<iostream>
#include<stack>
#define MAX 100
using namespace std;
int M[MAX][MAX];
bool knows(int a,int b)
{
return M[a][b];
}
int getIndex(int M[MAX][MAX], int n){
stack<int> s;
int C;
for (int i = 0; i < n; i++)
s.push(i);
int A = s.top();
s.pop();
int B =... | 15.511628 | 40 | 0.38006 | SahilChachra |
8f9a5b10c438d9cd441f23f290b85c55b8400313 | 279 | hpp | C++ | exercises/5/ex03/task2/array.hpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 19 | 2020-02-21T16:46:50.000Z | 2022-01-26T19:59:49.000Z | exercises/5/ex03/task2/array.hpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 1 | 2020-03-14T08:09:45.000Z | 2020-03-14T08:09:45.000Z | exercises/5/ex03/task2/array.hpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 11 | 2020-02-23T12:29:58.000Z | 2021-04-11T08:30:12.000Z | #ifndef __ARRAY_HPP__
#define __ARRAY_HPP__
#include "company.hpp"
class Array {
private:
Company * data;
int count;
int reservedCount;
public:
Array();
~Array();
void push(Company &);
Company & get(int);
int size();
};
#endif
| 12.681818 | 26 | 0.584229 | triffon |
8f9d58a95f3304f8a27228c4725aa63b14768e34 | 3,695 | cpp | C++ | test/test_linux/test-notification/test-notification.cpp | goodspeed24e/2014iOT | 139f6e2131f8a94cb876328b5f733e3feef77707 | [
"MIT"
] | null | null | null | test/test_linux/test-notification/test-notification.cpp | goodspeed24e/2014iOT | 139f6e2131f8a94cb876328b5f733e3feef77707 | [
"MIT"
] | null | null | null | test/test_linux/test-notification/test-notification.cpp | goodspeed24e/2014iOT | 139f6e2131f8a94cb876328b5f733e3feef77707 | [
"MIT"
] | null | null | null | #include <iostream>
#include <NotificationCenter/NotificationCenter.hpp>
#include <boost/bind.hpp>
#include <cstdio>
#include <boost/thread.hpp>
#include <deque>
using namespace std;
boost::any test_int_func(const boost::any& arg)
{
std::cout << "test_int: " << boost::any_cast<int>(arg) << std::endl;
return -1;
}
... | 33.288288 | 162 | 0.6977 | goodspeed24e |
8f9d703a052a256a7b68ec73544c8fd39cd478bd | 1,271 | hpp | C++ | src/ruby/embedded.hpp | bburns/cppagent | c1891c631465ebc9b63a4b3c627727ca3da14ee8 | [
"Apache-2.0"
] | null | null | null | src/ruby/embedded.hpp | bburns/cppagent | c1891c631465ebc9b63a4b3c627727ca3da14ee8 | [
"Apache-2.0"
] | null | null | null | src/ruby/embedded.hpp | bburns/cppagent | c1891c631465ebc9b63a4b3c627727ca3da14ee8 | [
"Apache-2.0"
] | null | null | null | //
// Copyright Copyright 2009-2022, AMT – The Association For Manufacturing Technology (“AMT”)
// 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
//
// ... | 25.938776 | 92 | 0.685287 | bburns |
8fa1778a20ab947d2a2b9b43c780817f9b35e937 | 1,253 | cpp | C++ | dev/compAlgo/src/helpers.cpp | Esenin/CoMP_Scheduler | 8c74ffed5534fc8993d2b198cbda5875f869aa99 | [
"MIT"
] | 1 | 2018-03-13T04:04:34.000Z | 2018-03-13T04:04:34.000Z | dev/compAlgo/src/helpers.cpp | Esenin/CoMP_Scheduler | 8c74ffed5534fc8993d2b198cbda5875f869aa99 | [
"MIT"
] | null | null | null | dev/compAlgo/src/helpers.cpp | Esenin/CoMP_Scheduler | 8c74ffed5534fc8993d2b198cbda5875f869aa99 | [
"MIT"
] | null | null | null | #include "helpers.h"
Time SimTimeProvider::mCurrentTime = Converter::milliseconds(0);
Time SimTimeProvider::getTime()
{
return mCurrentTime;
}
void SimTimeProvider::setTime(Time newTime)
{
mCurrentTime = newTime;
}
void TimeMeasurement::start(const std::string &index)
{
mStartTime[index] = clock();
// mStar... | 25.571429 | 108 | 0.728651 | Esenin |
8fa3766c495311603d527055d8217e0e3bf77f30 | 4,116 | cpp | C++ | src/com/cyosp/mpa/api/rest/v1/Login.cpp | cyosp/MPA | f640435c483dcbf7bfe7ff7887a25e6c76612528 | [
"BSD-3-Clause"
] | null | null | null | src/com/cyosp/mpa/api/rest/v1/Login.cpp | cyosp/MPA | f640435c483dcbf7bfe7ff7887a25e6c76612528 | [
"BSD-3-Clause"
] | null | null | null | src/com/cyosp/mpa/api/rest/v1/Login.cpp | cyosp/MPA | f640435c483dcbf7bfe7ff7887a25e6c76612528 | [
"BSD-3-Clause"
] | null | null | null | /*
* Login.cpp
*
* Created on: 2017-01-04
* Author: CYOSP
*/
#include <com/cyosp/mpa/api/rest/v1/Login.hpp>
namespace mpa_api_rest_v1
{
string Login::URL_STRING_PATH_IDENTIFIER = "login";
Login::Login(HttpRequestType httpRequestType, ActionType actionType, const map<string, string>& argvals,
... | 27.624161 | 108 | 0.505102 | cyosp |
8fa533e74a2f079c4c9f13991605741186f68aa5 | 322 | cpp | C++ | Example/ref_01/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/ref_01/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/ref_01/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | #include <boost/ref.hpp>
#include <vector>
#include <algorithm>
#include <functional>
#include <iostream>
void print(std::ostream &os, int i)
{
os << i << std::endl;
}
int main()
{
std::vector<int> v{1, 3, 2};
std::for_each(v.begin(), v.end(),
std::bind(print, boost::ref(std::cout), std::placeholders::_1));... | 18.941176 | 68 | 0.627329 | KwangjoJeong |
8fa750c02d269a7e5a3105ee9ae77263292b9408 | 3,085 | cpp | C++ | Fighters/fighterinputdriver.cpp | BlazingSeraph/Fighters | 04802a6a60521925caff74fd1a94c47f21868a6e | [
"MIT"
] | null | null | null | Fighters/fighterinputdriver.cpp | BlazingSeraph/Fighters | 04802a6a60521925caff74fd1a94c47f21868a6e | [
"MIT"
] | null | null | null | Fighters/fighterinputdriver.cpp | BlazingSeraph/Fighters | 04802a6a60521925caff74fd1a94c47f21868a6e | [
"MIT"
] | null | null | null | #include "fighterinputdriver.h"
#include "input.h"
#include "vector2.h"
#include <iostream>
FighterInputDriver::FighterInputDriver(Fighter& fighter) : fighter{fighter}
{
}
void FighterInputDriver::update(double deltaTime)
{
if(isActive)
{
if(Input::isKeyDown(sf::Keyboard::Up))
{
//fighter.move(0, -fighter.sp... | 49.758065 | 154 | 0.72966 | BlazingSeraph |
8fa9f02a899a26777477fae47a949ed56a6fef22 | 478 | cpp | C++ | acmicpc/1695.cpp | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | acmicpc/1695.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | acmicpc/1695.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | #include <iostream>
#include <cstring>
using namespace std;
#define MAX 5001
int n;
int num[MAX];
int dp[MAX][MAX];
int solve(int l, int r)
{
if (l > r)
return 0;
if (dp[l][r] != -1)
return dp[l][r];
if (num[l] == num[r])
return dp[l][r] = solve(l+1, r-1);
return dp[l][r] = min(solve(l+1, r) + 1, solve(l... | 13.657143 | 61 | 0.529289 | juseongkr |
8fab5917113161e522b0a6d13acd6b02e1dc38ff | 12,534 | cpp | C++ | src/world_view.cpp | tcosmo/visutiles | 798f83ad13e6d79e14b2f00cd5ce9c436795e74e | [
"MIT"
] | null | null | null | src/world_view.cpp | tcosmo/visutiles | 798f83ad13e6d79e14b2f00cd5ce9c436795e74e | [
"MIT"
] | null | null | null | src/world_view.cpp | tcosmo/visutiles | 798f83ad13e6d79e14b2f00cd5ce9c436795e74e | [
"MIT"
] | null | null | null | #include "world_view.h"
WorldView::WorldView(const Tileset& tileset, const World& world,
const sf::Font& font)
: tileset(tileset), world(world), font(font) {
for (size_t i_layer = 0; i_layer < NB_GRAPHIC_LAYERS; i_layer += 1) {
vertex_buffers[i_layer].setPrimitiveType(sf::Quads);
ver... | 35.709402 | 80 | 0.695229 | tcosmo |
8face490cdf582bd237ec19c65a9c6f8727c0f79 | 122 | cpp | C++ | C++Now 2017/Mocking Examples/assembly/test.cpp | dascandy/presentations | 7a004ba5e485900a7c81e7a1116b098d24331075 | [
"Apache-2.0"
] | 2 | 2017-05-18T19:48:51.000Z | 2017-11-10T16:11:43.000Z | C++Now 2017/Mocking Examples/assembly/test.cpp | dascandy/presentations | 7a004ba5e485900a7c81e7a1116b098d24331075 | [
"Apache-2.0"
] | null | null | null | C++Now 2017/Mocking Examples/assembly/test.cpp | dascandy/presentations | 7a004ba5e485900a7c81e7a1116b098d24331075 | [
"Apache-2.0"
] | null | null | null | #include "x.h"
int main() {
X x;
X* y = new X();
X* z = new X();
x.func();
y->func();
delete y;
z->~X();
}
| 10.166667 | 17 | 0.401639 | dascandy |
8faf8ec9dee5eff66a8819319507f025ee52ede1 | 2,626 | cpp | C++ | MainWindow.cpp | MarkVTech/CircularGauge | 58c002ad992693b0d924b49675cc9076d011775a | [
"MIT"
] | 1 | 2021-03-13T11:59:35.000Z | 2021-03-13T11:59:35.000Z | MainWindow.cpp | MarkVTech/CircularGauge | 58c002ad992693b0d924b49675cc9076d011775a | [
"MIT"
] | null | null | null | MainWindow.cpp | MarkVTech/CircularGauge | 58c002ad992693b0d924b49675cc9076d011775a | [
"MIT"
] | 3 | 2019-09-29T09:22:29.000Z | 2021-04-23T08:00:23.000Z | #include <functional>
#include <QGraphicsScene>
#include <QGraphicsEllipseItem>
#include <QDebug>
#include <QSlider>
#include <QColorDialog>
#include "MainWindow.h"
#include "ui_MainWindow.h"
#include "RoundGaugeGraphicsObject.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
... | 32.02439 | 88 | 0.659177 | MarkVTech |
8fafa653ad6d3977bb58d15eb4bdad131ebc7b09 | 40,431 | cc | C++ | backend/WebAssembly/WasmHelper.cc | GerHobbelt/ScriptX | 337913406a6ca0940a1f0d91841f9b786939925d | [
"BSL-1.0"
] | 330 | 2021-03-23T06:25:20.000Z | 2022-03-27T01:42:29.000Z | backend/WebAssembly/WasmHelper.cc | GerHobbelt/ScriptX | 337913406a6ca0940a1f0d91841f9b786939925d | [
"BSL-1.0"
] | 20 | 2021-03-23T13:16:06.000Z | 2022-03-19T16:04:15.000Z | backend/WebAssembly/WasmHelper.cc | GerHobbelt/ScriptX | 337913406a6ca0940a1f0d91841f9b786939925d | [
"BSL-1.0"
] | 49 | 2021-03-23T12:58:03.000Z | 2022-03-09T12:33:46.000Z | /*
* Tencent is pleased to support the open source community by making ScriptX available.
* Copyright (C) 2021 THL A29 Limited, a Tencent company. 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 ... | 32.318945 | 100 | 0.704855 | GerHobbelt |
8fb75759b324a9e619b71ae48feec0fd07b1b330 | 3,740 | hxx | C++ | main/connectivity/source/inc/calc/CTable.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/connectivity/source/inc/calc/CTable.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/connectivity/source/inc/calc/CTable.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 35.961538 | 156 | 0.68984 | Grosskopf |
8fb826fc91c26c9daaaa66f40203f9dd92a931e9 | 2,548 | cpp | C++ | TermPaper/ContactListener.cpp | VasiliyMatutin/2DPlatformer | 70211cdb10b2746aefed3890723b23aef5de0099 | [
"MIT"
] | null | null | null | TermPaper/ContactListener.cpp | VasiliyMatutin/2DPlatformer | 70211cdb10b2746aefed3890723b23aef5de0099 | [
"MIT"
] | null | null | null | TermPaper/ContactListener.cpp | VasiliyMatutin/2DPlatformer | 70211cdb10b2746aefed3890723b23aef5de0099 | [
"MIT"
] | null | null | null | #include "ContactListener.h"
void MyContactListener::BeginContact(b2Contact * contact)
{
void* bodyUserData = contact->GetFixtureA()->GetBody()->GetUserData();
if (bodyUserData != nullptr && !contact->GetFixtureB()->GetBody()->GetFixtureList()->IsSensor())
{
if (contact->GetFixtureA()->GetBody()->GetType() == b2B... | 36.927536 | 174 | 0.69898 | VasiliyMatutin |
8fb96913f1707951eaf460d61dc41d26ba1cc26a | 1,208 | cpp | C++ | src/prod/src/data/txnreplicator/statemanager/TestOperationContext.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/data/txnreplicator/statemanager/TestOperationContext.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/data/txnreplicator/statemanager/TestOperationContext.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include ... | 27.454545 | 122 | 0.697848 | vishnuk007 |
2631197118b7a5cfbc5c9f6573b3038b72414bce | 556 | cc | C++ | example/index_manager.cc | chao-he/tictac | 13b4b0289e8ac8e1d1764f99152ad0327ffa93d4 | [
"Apache-2.0"
] | null | null | null | example/index_manager.cc | chao-he/tictac | 13b4b0289e8ac8e1d1764f99152ad0327ffa93d4 | [
"Apache-2.0"
] | null | null | null | example/index_manager.cc | chao-he/tictac | 13b4b0289e8ac8e1d1764f99152ad0327ffa93d4 | [
"Apache-2.0"
] | null | null | null | #include "index_manager.h"
IndexManager::IndexManager()
: doc_index_(NULL)
, loc_index_(NULL)
, ip_index_(NULL) {
}
IndexManager::~IndexManager() {
if (doc_index_) {
delete doc_index_;
doc_index_ = NULL;
}
if (loc_index_) {
delete loc_index_;
loc_index_ = NULL;
}
if (ip_index_) {
... | 19.172414 | 52 | 0.643885 | chao-he |
26321acde4283b2926a279110594efebf011397c | 580 | hpp | C++ | src/Base/NonCopyable.hpp | xenginez/XE | 7f536c906460c7062cad5b8e09a644812cabf6d3 | [
"MIT"
] | 2 | 2019-06-10T06:51:27.000Z | 2021-11-20T19:57:46.000Z | src/Base/NonCopyable.hpp | xenginez/XE | 7f536c906460c7062cad5b8e09a644812cabf6d3 | [
"MIT"
] | 1 | 2019-07-12T03:05:02.000Z | 2019-08-12T12:01:06.000Z | src/Base/NonCopyable.hpp | xenginez/XE | 7f536c906460c7062cad5b8e09a644812cabf6d3 | [
"MIT"
] | null | null | null | /*!
* \file NonCopyable.hpp
*
* \author ZhengYuanQing
* \date 2019/01/23
* \email zhengyuanqing.95@gmail.com
*
*/
#ifndef __NONCOPYABLE_HPP__51063BED_9A8D_4E17_8341_3300C518CD58
#define __NONCOPYABLE_HPP__51063BED_9A8D_4E17_8341_3300C518CD58
#include "Type.h"
BEG_XE_NAMESPACE
class XE_API NonCopyable
{
p... | 19.333333 | 65 | 0.772414 | xenginez |
2636519bc7b4e0cce86f90e86b996eb545f2b515 | 19,608 | cpp | C++ | src/Engine/collision/Collision.cpp | FraMecca/Coccode | e302c400e0bff40859c65ccefac923133c770861 | [
"BSD-3-Clause"
] | null | null | null | src/Engine/collision/Collision.cpp | FraMecca/Coccode | e302c400e0bff40859c65ccefac923133c770861 | [
"BSD-3-Clause"
] | null | null | null | src/Engine/collision/Collision.cpp | FraMecca/Coccode | e302c400e0bff40859c65ccefac923133c770861 | [
"BSD-3-Clause"
] | null | null | null | /*
* ====================== Collision.cpp ==========================
* -- tpr --
* CREATE -- 2019.09.01
* MODIFY --
* ----------------------------------------------------------
*/
#include "Collision.h"
#includ... | 34.951872 | 198 | 0.566299 | FraMecca |
26365f95e99fc39b752de73207af1a03b4840a40 | 647 | cpp | C++ | C++/decoded-string-at-index.cpp | black-shadows/LeetCode-Solutions | b1692583f7b710943ffb19b392b8bf64845b5d7a | [
"Fair",
"Unlicense"
] | 1 | 2020-04-16T08:38:14.000Z | 2020-04-16T08:38:14.000Z | decoded-string-at-index.cpp | Jeevan-kumar-Raj/LeetCode-Solutions-Topicwise | f1111b4edd401a3fc47111993bd7250cf4dc76da | [
"MIT"
] | null | null | null | decoded-string-at-index.cpp | Jeevan-kumar-Raj/LeetCode-Solutions-Topicwise | f1111b4edd401a3fc47111993bd7250cf4dc76da | [
"MIT"
] | 1 | 2021-12-25T14:48:56.000Z | 2021-12-25T14:48:56.000Z | // Time: O(n)
// Space: O(1)
class Solution {
public:
string decodeAtIndex(string S, int K) {
uint64_t n = 0;
for (int i = 0; i < S.length(); ++i) {
if (isdigit(S[i])) {
n *= S[i] - '0';
} else {
++n;
}
}
... | 21.566667 | 52 | 0.272025 | black-shadows |
263a8c420ba144ebde4c7b7b426b8e8555533d37 | 324 | cc | C++ | src/fe-readdfs.cc | salfter/fluxengine | 331b59cd1e79a0dedbbe75989d3544b19215ee60 | [
"MIT"
] | 1 | 2021-04-05T17:40:50.000Z | 2021-04-05T17:40:50.000Z | src/fe-readdfs.cc | salfter/fluxengine | 331b59cd1e79a0dedbbe75989d3544b19215ee60 | [
"MIT"
] | null | null | null | src/fe-readdfs.cc | salfter/fluxengine | 331b59cd1e79a0dedbbe75989d3544b19215ee60 | [
"MIT"
] | 1 | 2021-04-06T17:04:28.000Z | 2021-04-06T17:04:28.000Z | #include "globals.h"
#include "reader.h"
#include "fmt/format.h"
#include "readibm.h"
int mainReadDFS(int argc, const char* argv[])
{
setReaderDefaultSource(":t=0-79:s=0");
setReaderDefaultOutput("dfs.img");
sectorIdBase.setDefaultValue(0);
setReaderRevolutions(2);
return mainReadIBM(argc, argv);
}... | 21.6 | 46 | 0.694444 | salfter |
263b534f2b5695f63423e790902d3e8055e882ac | 4,356 | cpp | C++ | Engine/Source/Runtime/Slate/Private/Widgets/Layout/SScrollBarTrack.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Runtime/Slate/Private/Widgets/Layout/SScrollBarTrack.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Runtime/Slate/Private/Widgets/Layout/SScrollBarTrack.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Widgets/Layout/SScrollBarTrack.h"
#include "Layout/ArrangedChildren.h"
static const int32 NUM_SCROLLBAR_SLOTS = 3;
void SScrollBarTrack::Construct(const FArguments& InArgs)
{
OffsetFraction = 0;
ThumbSizeFraction = 0;
MinThumbSize = 35;
Orien... | 29.432432 | 177 | 0.762167 | windystrife |
263c273ee1d28882731db19aa906701bdc93642e | 2,601 | hpp | C++ | external/openglcts/modules/glesext/tessellation_shader/esextcTessellationShaderProgramInterfaces.hpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 354 | 2017-01-24T17:12:38.000Z | 2022-03-30T07:40:19.000Z | external/openglcts/modules/glesext/tessellation_shader/esextcTessellationShaderProgramInterfaces.hpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 275 | 2017-01-24T20:10:36.000Z | 2022-03-24T16:24:50.000Z | external/openglcts/modules/glesext/tessellation_shader/esextcTessellationShaderProgramInterfaces.hpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 190 | 2017-01-24T18:02:04.000Z | 2022-03-27T13:11:23.000Z | #ifndef _ESEXTCTESSELLATIONSHADERPROGRAMINTERFACES_HPP
#define _ESEXTCTESSELLATIONSHADERPROGRAMINTERFACES_HPP
/*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2014-2016 The Khronos Group Inc.
*
* Licensed ... | 29.224719 | 117 | 0.700884 | iabernikhin |
263e6d066e3d160af9300ab8711e84ea1e16eee1 | 1,816 | cc | C++ | src/hip/plugin-SiPixelClusterizer/SiPixelFedCablingMapGPUWrapperESProducer.cc | alexstrel/pixeltrack-standalone | 0b625eef0ef0b5c0f018d9b466457c5575b3442c | [
"Apache-2.0"
] | 9 | 2021-03-02T08:40:18.000Z | 2022-01-24T14:31:40.000Z | src/hip/plugin-SiPixelClusterizer/SiPixelFedCablingMapGPUWrapperESProducer.cc | alexstrel/pixeltrack-standalone | 0b625eef0ef0b5c0f018d9b466457c5575b3442c | [
"Apache-2.0"
] | 158 | 2020-03-22T19:46:40.000Z | 2022-03-24T09:51:35.000Z | src/hip/plugin-SiPixelClusterizer/SiPixelFedCablingMapGPUWrapperESProducer.cc | alexstrel/pixeltrack-standalone | 0b625eef0ef0b5c0f018d9b466457c5575b3442c | [
"Apache-2.0"
] | 26 | 2020-03-20T15:18:41.000Z | 2022-03-14T16:58:07.000Z | #include "CondFormats/SiPixelFedIds.h"
#include "CondFormats/SiPixelFedCablingMapGPU.h"
#include "CondFormats/SiPixelFedCablingMapGPUWrapper.h"
#include "Framework/ESProducer.h"
#include "Framework/EventSetup.h"
#include "Framework/ESPluginFactory.h"
#include <fstream>
#include <memory>
class SiPixelFedCablingMapGPUW... | 41.272727 | 109 | 0.756608 | alexstrel |
264021bf80b5c6e9b01e828c25956bfd7ee598f4 | 2,006 | cpp | C++ | edu/07/1d.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | edu/07/1d.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | edu/07/1d.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <utility>
#include <vector>
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
struct Query {
std::string t;
unsigned u;
unsigned v;
};
std::istream& operator >>(std::istream& i... | 18.072072 | 65 | 0.537388 | actium |
264405355135aefa4cea33999ec41db78d05825e | 2,421 | cpp | C++ | examples/example-matrices.cpp | ron2015schmitt/COOLL | 5516714e5fea6d73e0b2eaa8c04876e5e54ef355 | [
"MIT"
] | 1 | 2019-08-17T00:30:22.000Z | 2019-08-17T00:30:22.000Z | examples/example-matrices.cpp | ron2015schmitt/COOLL | 5516714e5fea6d73e0b2eaa8c04876e5e54ef355 | [
"MIT"
] | null | null | null | examples/example-matrices.cpp | ron2015schmitt/COOLL | 5516714e5fea6d73e0b2eaa8c04876e5e54ef355 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include "mathq.h"
void printoptsfile() {
std::ifstream myfile;
myfile.open("example.g++_copts");
std::string myline;
if (myfile.is_open()) {
while (myfile) {
std::getline(myfile, myline);
std::cout << myline << '\n';
}
}
else {
... | 21.616071 | 70 | 0.584469 | ron2015schmitt |
26445ad8594114641d20a32a4757db247f73cb44 | 5,864 | hpp | C++ | include/snet/event_manager.hpp | Voev/snet | f22356ffc0a81df9be51da6e82d52cb4339e776c | [
"Unlicense"
] | null | null | null | include/snet/event_manager.hpp | Voev/snet | f22356ffc0a81df9be51da6e82d52cb4339e776c | [
"Unlicense"
] | null | null | null | include/snet/event_manager.hpp | Voev/snet | f22356ffc0a81df9be51da6e82d52cb4339e776c | [
"Unlicense"
] | null | null | null | #pragma once
#include <array>
#include <map>
#include <memory>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <openssl/bio.h>
#include <errno.h>
#include <snet/address.hpp>
#include <snet/event_poll.hpp>
#include <snet/event_data.hpp>
class EventManager
{
public:
static constexpr int kMaxEven... | 28.8867 | 77 | 0.404502 | Voev |
2648b1be19df1c822459dede9d7f78a420c4f062 | 3,274 | cpp | C++ | Assembly Workbench/File.cpp | DebugBSD/Assembly-Workbench | c41172eab063ccec64016908688f3a33a43f2e26 | [
"BSD-3-Clause"
] | 5 | 2020-05-25T15:33:39.000Z | 2021-07-07T08:47:45.000Z | Assembly Workbench/File.cpp | DebugBSD/Assembly-Workbench | c41172eab063ccec64016908688f3a33a43f2e26 | [
"BSD-3-Clause"
] | null | null | null | Assembly Workbench/File.cpp | DebugBSD/Assembly-Workbench | c41172eab063ccec64016908688f3a33a43f2e26 | [
"BSD-3-Clause"
] | 2 | 2020-05-30T11:07:10.000Z | 2022-01-11T16:55:43.000Z | /*
* BSD 3-Clause License
*
* Copyright (c) 2020, DebugBSD
* 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 above copyright notice,... | 31.180952 | 164 | 0.697312 | DebugBSD |
264afac3cd86a082fb4a1f6d0fba4db0b9406050 | 3,358 | cpp | C++ | src/eepp/gaming/cobjectlayer.cpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | src/eepp/gaming/cobjectlayer.cpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | src/eepp/gaming/cobjectlayer.cpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | #include <eepp/gaming/cobjectlayer.hpp>
#include <eepp/gaming/cgameobjectobject.hpp>
#include <eepp/gaming/cgameobjectpolygon.hpp>
#include <eepp/gaming/cmap.hpp>
#include <eepp/graphics/ctexture.hpp>
#include <eepp/graphics/cglobalbatchrenderer.hpp>
#include <eepp/graphics/renderer/cgl.hpp>
using namespace EE::Graphi... | 23.647887 | 129 | 0.650685 | dogtwelve |
264c7f49a09d73606d7df1d8c72acf0fa50f23aa | 848 | cpp | C++ | UVA/108.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | UVA/108.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | UVA/108.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | /**
* author: MaGnsi0
* created: 20/09/2021 14:50:02
**/
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
int n;
cin >> n;
vector<vector<int>> v(n, vector<int>(n));
for (int i = 0; i < n; ++i) {
for (int j = 0; j <... | 23.555556 | 61 | 0.352594 | MaGnsio |
264ff885e0591a77fb7ad314d263434d5bf09d1d | 21,711 | cpp | C++ | src/XWindow.cpp | bullno1/xveearr | 4690cde72b7ec747d944daa919c3275744d75e25 | [
"BSD-2-Clause"
] | null | null | null | src/XWindow.cpp | bullno1/xveearr | 4690cde72b7ec747d944daa919c3275744d75e25 | [
"BSD-2-Clause"
] | null | null | null | src/XWindow.cpp | bullno1/xveearr | 4690cde72b7ec747d944daa919c3275744d75e25 | [
"BSD-2-Clause"
] | null | null | null | #include <bx/platform.h>
#if BX_PLATFORM_LINUX == 1
#include "IWindowSystem.hpp"
#include <unordered_map>
#include <vector>
#include <SDL_syswm.h>
#include <SDL.h>
#include <bx/spscqueue.h>
#include <bx/macros.h>
#include <bgfx/bgfxplatform.h>
#include <bgfx/bgfx.h>
#include <X11/Xlib-xcb.h>
#include <xcb/xcbext.h>
#... | 24.559955 | 82 | 0.716964 | bullno1 |
265389db82a7536e87253fdabb78243940c21647 | 344 | cpp | C++ | src/parser/ConstantExpression.cpp | rlucca/aslan | 1f283c22fb72f717c590cf11482ac97c171f8518 | [
"Unlicense"
] | null | null | null | src/parser/ConstantExpression.cpp | rlucca/aslan | 1f283c22fb72f717c590cf11482ac97c171f8518 | [
"Unlicense"
] | null | null | null | src/parser/ConstantExpression.cpp | rlucca/aslan | 1f283c22fb72f717c590cf11482ac97c171f8518 | [
"Unlicense"
] | null | null | null | #include "AllSymbol.hpp"
ConstantExpression::ConstantExpression(unsigned line, char *lex)
: Symbol(CONSTANT_EXPRESSION_SYMBOL, line, lex)
{ }
ConstantExpression::~ConstantExpression()
{ }
std::ostream& operator<<(std::ostream& os, ConstantExpression *ce)
{
// Constant Expression is similar to a literal
os << ce->... | 21.5 | 66 | 0.738372 | rlucca |
26539ee7de791a413be70e85eea37286f88159ec | 1,519 | cc | C++ | hackt_docker/hackt/src/Object/def/footprint_value_base.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/def/footprint_value_base.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/def/footprint_value_base.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/inst/footprint_value_base.cc"
Explicit template instantiations of footprint_bases
that manage value-collections.
$Id: footprint_value_base.cc,v 1.4 2010/09/21 00:18:11 fang Exp $
*/
#define ENABLE_STACKTRACE 0
#define STACKTRACE_PERSISTENTS (0 && ENABLE_STACKTRACE)
#include "Object/def/fo... | 34.522727 | 73 | 0.813693 | broken-wheel |
26545e39528d599b4d90a0317ecaf2655e29ca4a | 4,647 | cpp | C++ | src/MainApplication.cpp | Dibido/Robotwereld | 3101e8452dc15dddb1b8271e5188e572da7b0f38 | [
"BSD-2-Clause"
] | null | null | null | src/MainApplication.cpp | Dibido/Robotwereld | 3101e8452dc15dddb1b8271e5188e572da7b0f38 | [
"BSD-2-Clause"
] | null | null | null | src/MainApplication.cpp | Dibido/Robotwereld | 3101e8452dc15dddb1b8271e5188e572da7b0f38 | [
"BSD-2-Clause"
] | null | null | null | #include "MainApplication.hpp"
#include <stdexcept>
#include <algorithm>
#include <cstring>
#include "MainFrameWindow.hpp"
#include "ObjectId.hpp"
namespace Application
{
/* static */std::vector<CommandlineArgument> MainApplication::commandlineArguments;
/* static */std::vector<std::string> MainApplication::... | 28.163636 | 101 | 0.684097 | Dibido |
26547720cee619a9e86547f02ec6a06a91c2fb6e | 706 | hh | C++ | src/kinem/EDepSimUniformPositionGenerator.hh | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 15 | 2017-04-25T14:20:22.000Z | 2022-03-15T19:39:43.000Z | src/kinem/EDepSimUniformPositionGenerator.hh | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 24 | 2017-11-08T21:16:48.000Z | 2022-03-04T13:33:18.000Z | src/kinem/EDepSimUniformPositionGenerator.hh | andrewmogan/edep-sim | 4e9923ccba8b2f65f47b72cbb41ed683f19f1123 | [
"MIT"
] | 20 | 2017-11-09T15:41:46.000Z | 2022-01-25T20:52:32.000Z | #ifndef EDepSim_UniformPositionGenerator_hh_seen
#define EDepSim_UniformPositionGenerator_hh_seen
#include "kinem/EDepSimVConstrainedPositionGenerator.hh"
/// Select a position and time to be used as the vertex of a primary particle.
namespace EDepSim {class UniformPositionGenerator;}
class EDepSim::UniformPositionGe... | 33.619048 | 89 | 0.787535 | andrewmogan |
265dbe59241bee152fe74234cab1212554656e4a | 10,937 | cxx | C++ | src/SolarSystem.cxx | mateoflorido/Snoke3D | ac6d407e1ebc75dcc920af8b4eca648950ab2fbc | [
"MIT"
] | null | null | null | src/SolarSystem.cxx | mateoflorido/Snoke3D | ac6d407e1ebc75dcc920af8b4eca648950ab2fbc | [
"MIT"
] | null | null | null | src/SolarSystem.cxx | mateoflorido/Snoke3D | ac6d407e1ebc75dcc920af8b4eca648950ab2fbc | [
"MIT"
] | null | null | null | /* -------------------------------------------------------------------------
* @brief Simulation of a simple solar system
* @author Leonardo Fl�rez-Valencia (florez-l@javeriana.edu.co)
* -------------------------------------------------------------------------
*/
#include <GL/glut.h>
#include <iostream>
#include <... | 25.142529 | 128 | 0.555363 | mateoflorido |
26602bf1c7711de48102a14578e312e9e3dd856d | 823 | cpp | C++ | competitive_programming/programming_contests/interfatecs/1_2018/c.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/programming_contests/interfatecs/1_2018/c.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/programming_contests/interfatecs/1_2018/c.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | #include <iostream>
#include <bitset>
#include <complex>
#include <cstdlib>
#include <string>
#include <vector>
#include <sstream>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
using namespace std;
#ifde... | 16.137255 | 75 | 0.55407 | LeandroTk |
26676fe733156a97ec6d61310d9195c90f16d963 | 2,140 | cpp | C++ | src/smack_properties.cpp | michab66/dev_smack_cpp | 37d57b8ccf35e8bbcc98c12eeaf2aeb7b82fa6c6 | [
"MIT"
] | 2 | 2021-07-19T16:13:46.000Z | 2021-11-25T13:39:46.000Z | src/smack_properties.cpp | michab66/dev_smack_cpp | 37d57b8ccf35e8bbcc98c12eeaf2aeb7b82fa6c6 | [
"MIT"
] | 34 | 2021-06-27T08:54:35.000Z | 2022-02-16T09:13:56.000Z | src/smack_properties.cpp | michab66/dev_smack_cpp | 37d57b8ccf35e8bbcc98c12eeaf2aeb7b82fa6c6 | [
"MIT"
] | null | null | null | /* Smack C++ @ https://github.com/smacklib/dev_smack_cpp
*
* Property reading.
*
* Copyright © 2021 Michael Binz
*/
#include "smack_properties.hpp"
#include "smack_util.hpp"
#include <fstream>
namespace
{
template<typename T, typename U>
bool nextLine(T& stream, U& result) {
size_t count = 0;
std::stri... | 24.318182 | 85 | 0.55514 | michab66 |
266ad421451d42ee9641dfb3e841158c7ac43b11 | 1,065 | cpp | C++ | Competitive Programing/CodeChef/AggressiveCows.cpp | Ritvikjain/DataStructures-And-Algorithms | 27f2d48343aeb91c67376ae2fee429ca92dbd353 | [
"MIT"
] | null | null | null | Competitive Programing/CodeChef/AggressiveCows.cpp | Ritvikjain/DataStructures-And-Algorithms | 27f2d48343aeb91c67376ae2fee429ca92dbd353 | [
"MIT"
] | null | null | null | Competitive Programing/CodeChef/AggressiveCows.cpp | Ritvikjain/DataStructures-And-Algorithms | 27f2d48343aeb91c67376ae2fee429ca92dbd353 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include<algorithm>
using namespace std;
int main() {
// Write your code here
int t;
cin>>t;
while(t--)
{
int n,cows;
cin>>n>>cows;
long long pos[n];
for(int i=0;i<n;i++)
{
cin>>pos[i];
}
sort(pos,pos+n);
... | 21.734694 | 48 | 0.333333 | Ritvikjain |
266ca6aea25f6574a038f02e0008048ab2ed9b4a | 12,651 | hpp | C++ | src/menu/Menu.hpp | zhec9/nemo | b719b89933ce722a14355e7ed825a76dea680501 | [
"MIT"
] | null | null | null | src/menu/Menu.hpp | zhec9/nemo | b719b89933ce722a14355e7ed825a76dea680501 | [
"MIT"
] | null | null | null | src/menu/Menu.hpp | zhec9/nemo | b719b89933ce722a14355e7ed825a76dea680501 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include <utility>
#include <optional>
#include <SFML/Graphics.hpp>
#include "utility/type/Color.hpp"
#include "utility/type/XY.hpp"
#include "utility/type/RowColumn.hpp"
#include "utility/adaptor/RC1DConverter.hpp"
#include "utility/wrapper/sfVector2.hpp"
namespace n... | 30.631961 | 81 | 0.622797 | zhec9 |
267283014342ece891ded836c221145ad5521ac5 | 5,149 | cpp | C++ | Compiler/src/Type.cpp | Vyraax/BirdLang | d7cd193531965e35e55fa26b2d3d27ec642d81a5 | [
"MIT"
] | 3 | 2020-06-21T15:21:34.000Z | 2020-09-02T07:56:48.000Z | Compiler/src/Type.cpp | Vyraax/BirdLang | d7cd193531965e35e55fa26b2d3d27ec642d81a5 | [
"MIT"
] | 7 | 2020-06-28T12:56:16.000Z | 2020-07-15T11:17:53.000Z | Compiler/src/Type.cpp | Vyraax/BirdLang | d7cd193531965e35e55fa26b2d3d27ec642d81a5 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Type.h"
#include "Number.h"
#include "Function.h"
#include "Str.h"
#include "Array.h"
#include "File.h"
#include "Object.h"
#include "Interpreter.h"
#include "Map.h"
bool Type::Null = false;
bool Type::False = false;
bool Type::True = true;
Type::Type(
const DynamicType& value,
std::shar... | 25.745 | 79 | 0.62517 | Vyraax |
2673f6de9bea606b232d2d97e8b600b87b19200f | 8,233 | cpp | C++ | svg_loader/manualBlit.cpp | sl1pkn07/onslaught-vn | b9eadbfc66e363a872a98d5455c7b9567de3e2b0 | [
"BSD-3-Clause"
] | 1 | 2021-06-10T08:26:59.000Z | 2021-06-10T08:26:59.000Z | svg_loader/manualBlit.cpp | sl1pkn07/onslaught-vn | b9eadbfc66e363a872a98d5455c7b9567de3e2b0 | [
"BSD-3-Clause"
] | null | null | null | svg_loader/manualBlit.cpp | sl1pkn07/onslaught-vn | b9eadbfc66e363a872a98d5455c7b9567de3e2b0 | [
"BSD-3-Clause"
] | 1 | 2021-06-10T08:27:01.000Z | 2021-06-10T08:27:01.000Z | /*
* Copyright (c) 2008-2010, Helios (helios.vmg@gmail.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* ... | 30.380074 | 126 | 0.68104 | sl1pkn07 |
2674fb0e1cc59248d0077f4769abac87262657fb | 796 | cpp | C++ | patbasic/test1053.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1053.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1053.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | //
// Created by neild47 on 18-4-29.
//
#include <iostream>
using namespace std;
int test1053() {
int maybeNum = 0, mustNum = 0;
int numPeople, D;
double threshold;
cin >> numPeople >> threshold >> D;
for (int i = 0; i < numPeople; i++) {
int day;
cin >> day;
int numLowerT... | 22.111111 | 89 | 0.444724 | neild47 |
2676a796b0c38dc626fa19e3fc630dac382a97be | 1,888 | cpp | C++ | Codeforces/Contest 1631/C.cpp | Sansiff/Coding-Practice | b76f5a403c478abedc7bf22acb314b6cebb538ea | [
"MIT"
] | 1 | 2021-09-14T11:25:21.000Z | 2021-09-14T11:25:21.000Z | Codeforces/Contest 1631/C.cpp | Sansiff/Coding-Practice | b76f5a403c478abedc7bf22acb314b6cebb538ea | [
"MIT"
] | null | null | null | Codeforces/Contest 1631/C.cpp | Sansiff/Coding-Practice | b76f5a403c478abedc7bf22acb314b6cebb538ea | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
#define lowbit(x) (x&-x)
#define rep(i, l, r) for(int i = l; i < r; i ++)
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
using namespace std;
typedef long long LL;
typedef pair<int,int> PII;
typedef vector<int> VI;
typedef vector<vector<int>> VII;
... | 22.211765 | 54 | 0.351165 | Sansiff |
267a6f3d9d9dcdcf5075e67468a468ab579dc6fc | 116,999 | hpp | C++ | SDK/ARKSurvivalEvolved_UMG_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_UMG_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_UMG_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_UMG_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------... | 62.970398 | 238 | 0.557022 | 2bite |
267d7ee0141c3d4fcde23dab7fa52f4f421c23d1 | 5,618 | cpp | C++ | src/third_party/OpenExif/src/ExifHuffmanTable.cpp | jackyspeed/libmv | aae2e0b825b1c933d6e8ec796b8bb0214a508a84 | [
"MIT"
] | 160 | 2015-01-16T19:35:28.000Z | 2022-03-16T02:55:30.000Z | src/third_party/OpenExif/src/ExifHuffmanTable.cpp | rgkoo/libmv-blender | cdf65edbb80d8904e2df9a20116d02546df93a81 | [
"MIT"
] | 3 | 2015-04-04T17:54:35.000Z | 2015-12-15T18:09:03.000Z | src/third_party/OpenExif/src/ExifHuffmanTable.cpp | rgkoo/libmv-blender | cdf65edbb80d8904e2df9a20116d02546df93a81 | [
"MIT"
] | 51 | 2015-01-12T08:38:12.000Z | 2022-02-19T06:37:25.000Z | /*
* Copyright (c) 2000-2009, Eastman Kodak Company
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification,are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* ... | 34.466258 | 80 | 0.600748 | jackyspeed |
267d9097a7e3b43795108b72fef9b50798a9e916 | 372 | cpp | C++ | PGM/Programas/blanquear.cpp | dmateos-ugr/FP | 6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e | [
"MIT"
] | 1 | 2018-12-11T09:32:59.000Z | 2018-12-11T09:32:59.000Z | PGM/Programas/blanquear.cpp | dmateos-ugr/FP | 6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e | [
"MIT"
] | null | null | null | PGM/Programas/blanquear.cpp | dmateos-ugr/FP | 6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e | [
"MIT"
] | 2 | 2018-11-13T12:32:35.000Z | 2018-11-27T14:43:30.000Z | #include <iostream>
#include "base.cpp"
using namespace std;
void BlanquearImagen(Imagen & img){
for (int f = 0; f < img.filas; f++){
for (int c = 0; c < img.columnas; c++){
img.matrix_pixeles[f][c] = 255;
}
}
}
int main(){
Imagen img;
PedirImagen(img);
BlanquearImag... | 14.88 | 47 | 0.556452 | dmateos-ugr |
267f17d36f1d5cfae87b30fa0c804dad0928b1b5 | 1,097 | cpp | C++ | boboleetcode/Play-Leetcode-master/0005-Longest-Palindromic-Substring/cpp-0005/main3.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 2 | 2019-03-20T17:05:59.000Z | 2019-10-15T07:56:45.000Z | boboleetcode/Play-Leetcode-master/0005-Longest-Palindromic-Substring/cpp-0005/main3.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 6 | 2019-12-04T06:08:32.000Z | 2021-05-10T20:22:47.000Z | boboleetcode/Play-Leetcode-master/0005-Longest-Palindromic-Substring/cpp-0005/main3.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | null | null | null | /// Source : https://leetcode.com/problems/longest-palindromic-substring/
/// Author : liuyubobobo
/// Time : 2019-01-11
#include <iostream>
#include <vector>
#include <cassert>
using namespace std;
/// Memory Search
/// State: is s.substr(start, len) a palindrome?
///
/// Time Complexity: O(n^2)
/// Space Comple... | 23.847826 | 83 | 0.536007 | mcuallen |
268176bdb0b33a589b66a0a45cbac824e068d0c4 | 1,555 | cpp | C++ | src/packets.cpp | gdext/geode-native | 8a6931c752cc9497903b5425bba22ebd82c6260f | [
"MIT"
] | null | null | null | src/packets.cpp | gdext/geode-native | 8a6931c752cc9497903b5425bba22ebd82c6260f | [
"MIT"
] | null | null | null | src/packets.cpp | gdext/geode-native | 8a6931c752cc9497903b5425bba22ebd82c6260f | [
"MIT"
] | null | null | null | #include "packets.hpp"
std::string OutPacket::getJSONString() {
auto e = data.dump();
return e;
}
OutPacket::OutPacket(std::string type) : type(type) {
data = {{"type", type}};
}
InPacket::InPacket(std::string str) : data(str) {}
InPacket::InPacket(json data) : data(data) {}
ConfigInP::ConfigInP(std::s... | 28.272727 | 121 | 0.668167 | gdext |
268376ac480983ed650055e777ac933d99204897 | 22,763 | cpp | C++ | engine/core/engine.cpp | craftablescience/ChiraEngine | 18179b9c6f50c6c8f7cb3cef65be9d3f51cf223d | [
"MIT"
] | 5 | 2021-09-13T17:37:06.000Z | 2022-02-28T20:19:41.000Z | engine/core/engine.cpp | craftablescience/ChiraEngine | 18179b9c6f50c6c8f7cb3cef65be9d3f51cf223d | [
"MIT"
] | 5 | 2021-08-19T18:54:49.000Z | 2022-03-01T14:07:37.000Z | engine/core/engine.cpp | craftablescience/ChiraEngine | 18179b9c6f50c6c8f7cb3cef65be9d3f51cf223d | [
"MIT"
] | 3 | 2021-08-19T09:41:45.000Z | 2022-02-17T22:14:15.000Z | #include "engine.h"
#include <glad/gl.h>
#define IMGUI_USER_CONFIG <config/imguiConfig.h>
#include <imgui.h>
#include <backends/imgui_impl_glfw.h>
#include <backends/imgui_impl_opengl3.h>
#include <i18n/translationManager.h>
#include <config/glVersion.h>
#include <input/inputManager.h>
#include <loader/settings/jsonSe... | 40.075704 | 157 | 0.673022 | craftablescience |
2683b8dec451e7c6723c88b609a9185cf66b438f | 2,671 | cc | C++ | anodyne/base/memfs.cc | schroederc/anodyne | bb3069ea5c6aa2ab11ce70d03f1da9c13814213c | [
"Apache-2.0"
] | null | null | null | anodyne/base/memfs.cc | schroederc/anodyne | bb3069ea5c6aa2ab11ce70d03f1da9c13814213c | [
"Apache-2.0"
] | null | null | null | anodyne/base/memfs.cc | schroederc/anodyne | bb3069ea5c6aa2ab11ce70d03f1da9c13814213c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 31.797619 | 80 | 0.687757 | schroederc |
2683d7ece26d2696bbcbb6d7e52483e711787e08 | 433 | cpp | C++ | Source/Core/Window/InputController.cpp | vladutmargineanu/Airplane-Engine-Graphics | 91aef14103d777485aa71dea3555f7787f455cd6 | [
"MIT"
] | 3 | 2021-02-26T17:50:19.000Z | 2022-03-16T12:36:37.000Z | Source/Core/Window/InputController.cpp | vladutmargineanu/Flappy-Bird | 6aa1b87a44cb2e436478bf4928d3b69849aed12b | [
"MIT"
] | 1 | 2020-04-29T05:44:07.000Z | 2020-04-29T09:18:08.000Z | Source/Core/Window/InputController.cpp | vladutmargineanu/Flappy-Bird | 6aa1b87a44cb2e436478bf4928d3b69849aed12b | [
"MIT"
] | null | null | null | #include "InputController.h"
#include "../Engine.h"
InputController::InputController()
{
window = Engine::GetWindow();
window->SubscribeToEvents(this);
isAttached = true;
}
InputController::~InputController()
{
}
bool InputController::IsActive() const
{
return isAttached;
}
void InputController::SetActive(bool... | 16.653846 | 79 | 0.743649 | vladutmargineanu |
2683d898e819ac6f828de604ea7df9bc3658593c | 1,020 | cpp | C++ | sqlines-studio3/src/snapshot.cpp | 1newstar/sqlines | 7887a10d00f0d92aea34001c9f2b3bcc872d39f6 | [
"Apache-2.0"
] | 299 | 2016-03-19T14:50:39.000Z | 2022-03-25T05:43:52.000Z | sqlines-studio3/src/snapshot.cpp | ChrisYuan/sqlines | f82176f154a158105f655d71fb7934dd0ee1c82f | [
"Apache-2.0"
] | 47 | 2016-11-30T23:52:59.000Z | 2021-05-17T10:04:45.000Z | sqlines-studio3/src/snapshot.cpp | ChrisYuan/sqlines | f82176f154a158105f655d71fb7934dd0ee1c82f | [
"Apache-2.0"
] | 149 | 2016-03-15T15:06:06.000Z | 2022-03-16T14:38:45.000Z | /**
* Copyright (c) 2021 SQLines
*
* 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 i... | 25.5 | 75 | 0.688235 | 1newstar |
26862ce3875f757e0b4648d4ef0ea45ea3687869 | 6,839 | cpp | C++ | CellLifeSimulationModel/Cell.cpp | maxchistt/CellLifeSimulation | 0def390399abb39dd93aec3994102b143d27fbaa | [
"MIT"
] | null | null | null | CellLifeSimulationModel/Cell.cpp | maxchistt/CellLifeSimulation | 0def390399abb39dd93aec3994102b143d27fbaa | [
"MIT"
] | null | null | null | CellLifeSimulationModel/Cell.cpp | maxchistt/CellLifeSimulation | 0def390399abb39dd93aec3994102b143d27fbaa | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Cell.h"
#include "SimulationModel.h"
using namespace SimulationModel;
using namespace Cells;
using namespace Structs2D;
Cell::doType Cell::howToDo(Cell* cell_finder, Cell* cell_to_find)
{
auto mycolor = cell_to_find->dna_options.color;
for (auto color : cell_finder->dna_options.colors_be... | 25.710526 | 186 | 0.688843 | maxchistt |
2688d57e33aadfb69ec40e22c43f736e6aceae46 | 2,221 | hpp | C++ | LinaCommon/include/Memory/StackLinkedList.hpp | moonantonio/LinaEngine | fe5a91a85c64dd0719656eb38e2fb37037bacfc1 | [
"MIT"
] | 10 | 2018-09-30T22:29:27.000Z | 2018-10-08T14:04:42.000Z | LinaCommon/include/Memory/StackLinkedList.hpp | moonantonio/LinaEngine | fe5a91a85c64dd0719656eb38e2fb37037bacfc1 | [
"MIT"
] | 15 | 2018-10-02T22:14:17.000Z | 2018-10-12T08:01:36.000Z | LinaCommon/include/Memory/StackLinkedList.hpp | moonantonio/LinaEngine | fe5a91a85c64dd0719656eb38e2fb37037bacfc1 | [
"MIT"
] | 1 | 2018-09-30T16:37:10.000Z | 2018-09-30T16:37:10.000Z | /*
This file is a part of: Lina Engine
https://github.com/inanevin/Lina
Author: Inan Evin
http://www.inanevin.com
Copyright (c) [2018-2020] [Inan Evin]
Custom Memory Allocators: Copyright (c) 2016 Mariano Trebino
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and assoc... | 27.085366 | 83 | 0.692031 | moonantonio |
268c5ec4b103065d45d41e5ce24802303b5f3b30 | 5,940 | cc | C++ | src/frovedis/core/utility.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 63 | 2018-06-21T14:11:59.000Z | 2022-03-30T11:24:36.000Z | src/frovedis/core/utility.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 5 | 2018-09-22T14:01:53.000Z | 2021-12-27T16:11:05.000Z | src/frovedis/core/utility.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 12 | 2018-08-23T15:59:44.000Z | 2022-02-20T06:47:22.000Z | #include "utility.hpp"
#include <stdexcept>
#include <string>
#include <regex>
#include <sys/time.h>
#include <sys/stat.h>
#include <mpi.h>
#include <dirent.h>
namespace frovedis {
bool is_bigendian() {
int i = 1;
if(*((char*)&i)) return false;
else return true;
}
double get_dtime(){
return MPI_Wtime();
/*
... | 24.048583 | 104 | 0.573232 | XpressAI |
268f92bc27b59f5e6021c47907a4aa350e6ba8d9 | 727 | hpp | C++ | Data structures/Gestor.hpp | Alvarohf/University-work | 407791f552da73c474bc8a75fb22627a75a2db5f | [
"MIT"
] | null | null | null | Data structures/Gestor.hpp | Alvarohf/University-work | 407791f552da73c474bc8a75fb22627a75a2db5f | [
"MIT"
] | null | null | null | Data structures/Gestor.hpp | Alvarohf/University-work | 407791f552da73c474bc8a75fb22627a75a2db5f | [
"MIT"
] | null | null | null | #ifndef GESTOR_HPP
#define GESTOR_HPP
#include <Cliente.hpp>
#include <Cola.hpp>
#include <Lista.hpp>
class Gestor
{
public:
Gestor();
~Gestor();
void GenerarCliente(bool reg);
int GenerarSolicitudesVIP();
int GenerarSolicitudesNoReg();
void MostrarColaVIP(int vip);
void MostrarColaNoReg(int noreg);
void Borrar... | 22.030303 | 85 | 0.76066 | Alvarohf |
269daa1cd0ce52d112edce14b24aba822747a4b1 | 2,038 | cpp | C++ | Week2/Codec.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | 1 | 2020-10-29T11:21:58.000Z | 2020-10-29T11:21:58.000Z | Week2/Codec.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | null | null | null | Week2/Codec.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Codec {
private:
char delimiter = ' ';
// PreOrder
void dfs(TreeNode* root, string& s) {
if(r... | 23.976471 | 63 | 0.482336 | AkashRajpurohit |
269f20e592879754ef8d033c0c4181e1190ac9df | 1,973 | cpp | C++ | isis/tests/FunctionalTestsStretch.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/tests/FunctionalTestsStretch.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/tests/FunctionalTestsStretch.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | #include "Fixtures.h"
#include "Pvl.h"
#include "PvlGroup.h"
#include "TestUtilities.h"
#include "Histogram.h"
#include "UserInterface.h"
#include "stretch_app.h"
#include "gtest/gtest.h"
using namespace Isis;
static QString STRETCH_XML = FileName("$ISISROOT/bin/xml/stretch.xml").expanded();
// case 1
TEST_F(Speci... | 29.447761 | 107 | 0.700456 | kdl222 |
269f68dffc55a0e2e236c395b91f72b0b5c46966 | 1,062 | cpp | C++ | src/customUI/optionInputs/SelectionOptionInput.cpp | ToniRingling/HallGUI | 81662644884a027b42a8fe4414f5e51cbf72493d | [
"MIT"
] | null | null | null | src/customUI/optionInputs/SelectionOptionInput.cpp | ToniRingling/HallGUI | 81662644884a027b42a8fe4414f5e51cbf72493d | [
"MIT"
] | null | null | null | src/customUI/optionInputs/SelectionOptionInput.cpp | ToniRingling/HallGUI | 81662644884a027b42a8fe4414f5e51cbf72493d | [
"MIT"
] | null | null | null | #include "SelectionOptionInput.h"
#include "../../nodes/NodeComponents.h"
#include "../../nodes/optionCores/SelectionCore.h"
wxBEGIN_EVENT_TABLE(option_inputs::SelectionOptionInput, wxChoice)
EVT_CHOICE(wxID_ANY, option_inputs::SelectionOptionInput::onUpdate)
wxEND_EVENT_TABLE()
using namespace option_inputs;
S... | 32.181818 | 238 | 0.758004 | ToniRingling |
269f8caf55a123c4d8f89cc81a2eca258a8a11a7 | 5,124 | cpp | C++ | libsrc/effectengine/Animation_MoodBlobs.cpp | fredmtb/HyperHDR | 7545712abd4d4730321a61f63d2521d7a446f02d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 264 | 2020-09-08T15:33:18.000Z | 2022-03-31T10:12:55.000Z | libsrc/effectengine/Animation_MoodBlobs.cpp | fredmtb/HyperHDR | 7545712abd4d4730321a61f63d2521d7a446f02d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 72 | 2020-09-04T22:51:37.000Z | 2022-03-29T20:22:57.000Z | libsrc/effectengine/Animation_MoodBlobs.cpp | fredmtb/HyperHDR | 7545712abd4d4730321a61f63d2521d7a446f02d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 50 | 2020-10-02T14:27:38.000Z | 2022-03-14T14:54:26.000Z | #include <effectengine/Animation_MoodBlobs.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
Animation_MoodBlobs::Animation_MoodBlobs(QString name) :
AnimationBase(name)
{
fullColorWheelAvailable = false;
baseColorChangeIncreaseValue = 0;
sleepTime = 1;
amplitudePhaseIncrement = 0;
colorDat... | 27.548387 | 157 | 0.675254 | fredmtb |
26a19527ff110df15ac8fb995bebb0f616c19b97 | 7,559 | cpp | C++ | engine/common/memtrak3.cpp | mweber15/PathOfBuilding-SimpleGraphic | ca2bbd6d72299b91eabe0bcb0be7db92772bc54b | [
"BSD-3-Clause"
] | 4 | 2021-10-30T10:53:11.000Z | 2022-02-22T08:08:33.000Z | engine/common/memtrak3.cpp | mweber15/PathOfBuilding-SimpleGraphic | ca2bbd6d72299b91eabe0bcb0be7db92772bc54b | [
"BSD-3-Clause"
] | 12 | 2020-07-14T23:58:02.000Z | 2022-02-25T21:38:28.000Z | engine/common/memtrak3.cpp | mweber15/PathOfBuilding-SimpleGraphic | ca2bbd6d72299b91eabe0bcb0be7db92772bc54b | [
"BSD-3-Clause"
] | 9 | 2020-07-12T13:31:31.000Z | 2022-03-19T10:43:16.000Z | // MemTrak Memory Tracker v3
// (c) David Gowor, 2005
//
#if 0
#include <windows.h>
#include <stdio.h>
bool _memTrak_suppressReport;
char _memTrak_reportName[512];
// =======
// Classes
// =======
#define TRAKPOW 16
#define TRAKSZ (1<<TRAKPOW)
#define TRAKMASK (TRAKSZ-1)
#define FREEDSZ 65536
#... | 21.910145 | 101 | 0.617674 | mweber15 |
26a3f396e75ee894dd33e37b3bf741782ed8172a | 1,497 | cpp | C++ | Program07/timeInterval.cpp | jeremysteph/pancake-day | 8a875b8aa1e003493587a48056ee070285b966cf | [
"CC0-1.0"
] | 1 | 2020-09-27T07:53:59.000Z | 2020-09-27T07:53:59.000Z | Program07/timeInterval.cpp | jeremysteph/pancake-day | 8a875b8aa1e003493587a48056ee070285b966cf | [
"CC0-1.0"
] | null | null | null | Program07/timeInterval.cpp | jeremysteph/pancake-day | 8a875b8aa1e003493587a48056ee070285b966cf | [
"CC0-1.0"
] | null | null | null | #include "timeInterval.h"
#include <iostream>
//Initializes the interval to [0:00, 0:00].
TimeInterval::TimeInterval( ){
startTime.set(0,0);
endTime.set(0,0);
}
//Initializes the interval to [a, b], if a <= b. Otherwise intialize to [0:00, 0:00]
TimeInterval::TimeInterval(const Digita... | 34.022727 | 93 | 0.623914 | jeremysteph |
26a82c9916b9d3b4adf597c9f1b905fd85fff736 | 1,371 | hpp | C++ | android-31/android/printservice/PrinterDiscoverySession.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/printservice/PrinterDiscoverySession.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/printservice/PrinterDiscoverySession.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
namespace android::os
{
class CancellationSignal;
}
namespace android::print
{
class PrinterId;
}
namespace android::printservice
{
class CustomPrinterIconCallback;
}
namespace android::printservice
{
class PrinterDiscoverySession : public JObject
{
public:
// Fields... | 27.979592 | 165 | 0.768053 | YJBeetle |
26aaf1bde778b3368bd06475f2389016678d106d | 1,619 | cc | C++ | src/mlt/include/dmlc/serial_test.cc | xcwanAndy/mlt_byteps | 81a77e2639cd2cf823e62ccb12196bc74b3d4564 | [
"Apache-2.0"
] | null | null | null | src/mlt/include/dmlc/serial_test.cc | xcwanAndy/mlt_byteps | 81a77e2639cd2cf823e62ccb12196bc74b3d4564 | [
"Apache-2.0"
] | null | null | null | src/mlt/include/dmlc/serial_test.cc | xcwanAndy/mlt_byteps | 81a77e2639cd2cf823e62ccb12196bc74b3d4564 | [
"Apache-2.0"
] | 1 | 2020-07-30T06:41:43.000Z | 2020-07-30T06:41:43.000Z | #include "dmlc/io.h"
#include "dmlc/memory_io.h"
#include <string>
#include <vector>
struct SimpleStructure {
int payload_length;
char payload[0];
};
using namespace dmlc;
void task1() {
printf("task1\n");
char* buffer = static_cast<char*>(malloc(sizeof(SimpleStructure) + 10));
MemoryFixedSizeStream strm(... | 24.907692 | 92 | 0.646695 | xcwanAndy |