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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32a41e70dacf34144ee21b788e81882f3e67b773 | 224 | cpp | C++ | Aaaah/main.cpp | KalawelaLo/Kattis | cbe2cc742f9902f5d325deb04fd39208774070c5 | [
"Unlicense"
] | null | null | null | Aaaah/main.cpp | KalawelaLo/Kattis | cbe2cc742f9902f5d325deb04fd39208774070c5 | [
"Unlicense"
] | null | null | null | Aaaah/main.cpp | KalawelaLo/Kattis | cbe2cc742f9902f5d325deb04fd39208774070c5 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
string pat, doc;
cin>> pat >> doc;
if(pat.size() >= doc.size() ){
cout << "go\n";}
else{
cout << "no\n";}
return 0;} | 20.363636 | 34 | 0.508929 | KalawelaLo |
32a734a47f29b1a3bd0f4f996292d833c6b809f3 | 636 | hpp | C++ | LeetCode/2124_CheckIfAllAsAppearBeforeBs.hpp | defUserName-404/Online-Judge | 197ac5bf3e2149474b191eeff106b12cd723ec8c | [
"MIT"
] | null | null | null | LeetCode/2124_CheckIfAllAsAppearBeforeBs.hpp | defUserName-404/Online-Judge | 197ac5bf3e2149474b191eeff106b12cd723ec8c | [
"MIT"
] | null | null | null | LeetCode/2124_CheckIfAllAsAppearBeforeBs.hpp | defUserName-404/Online-Judge | 197ac5bf3e2149474b191eeff106b12cd723ec8c | [
"MIT"
] | null | null | null | #include <algorithm>
#include <string>
class Solution
{
public:
bool checkString(std::string &s);
};
/*
? Solution 1: Accepted
? 8ms(23.53% faster)
*/
// bool Solution::checkString(std::string s)
// {
// std::string sSorted = s;
// std::sort(sSorted.begin(), sSorted.end());
// return s == s... | 16.307692 | 49 | 0.528302 | defUserName-404 |
32ab54505766855b05cb8df09bf8afb467aafed8 | 3,726 | cpp | C++ | ert/ertlibc/syscall.cpp | thomasten/edgelessrt | 2b42deefdaaa75dbc6568ff4f8152b6ae74862bf | [
"MIT"
] | null | null | null | ert/ertlibc/syscall.cpp | thomasten/edgelessrt | 2b42deefdaaa75dbc6568ff4f8152b6ae74862bf | [
"MIT"
] | null | null | null | ert/ertlibc/syscall.cpp | thomasten/edgelessrt | 2b42deefdaaa75dbc6568ff4f8152b6ae74862bf | [
"MIT"
] | null | null | null | // Copyright (c) Edgeless Systems GmbH.
// Licensed under the MIT License.
#include "syscall.h"
#include <openenclave/internal/malloc.h>
#include <openenclave/internal/trace.h>
#include <sys/syscall.h>
#include <cerrno>
#include <clocale>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <stdexcept>
... | 31.310924 | 80 | 0.567901 | thomasten |
32abb8fe555c12e7c93a94570e29a92f8d04d5ac | 30,229 | hh | C++ | sdl2/openblock/external/libSDL2pp/SDL2pp/Font.hh | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/openblock/external/libSDL2pp/SDL2pp/Font.hh | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | sdl2/openblock/external/libSDL2pp/SDL2pp/Font.hh | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | null | null | null | /*
libSDL2pp - C++11 bindings/wrapper for SDL2
Copyright (C) 2014-2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
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 t... | 36.289316 | 117 | 0.553012 | pdpdds |
32ad881ee3d62285faa1035437facfee4bb8c9c5 | 4,859 | cpp | C++ | vislib/src/sys/Event.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | vislib/src/sys/Event.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | vislib/src/sys/Event.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /*
* Event.cpp
*
* Copyright (C) 2006 - 2007 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "vislib/sys/Event.h"
#ifndef _WIN32
#include <climits>
#endif /* !_WIN32 */
#include "vislib/IllegalParamException.h"
#include "vislib/Trace.h"
#include "vislib/UnsupportedOperationException.h"
#... | 22.705607 | 120 | 0.626878 | xge |
32ae75958086bad97657ea28f12aebb3dd3173f2 | 94 | cpp | C++ | uppdev/Centrum/Centrum.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | uppdev/Centrum/Centrum.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | uppdev/Centrum/Centrum.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include <Core/Core.h>
VectorMap<int32, Vector<int> > map;
CONSOLE_APP_MAIN
{
}
| 9.4 | 37 | 0.617021 | dreamsxin |
32af2514e1ead7564365cb478f275cf7c2ea948a | 2,664 | hpp | C++ | src/FclEx.DataStructuresCpp/Iterator.hpp | huoshan12345/FxUtility.DataStructures | cdad625154407c381ec0b5d1003cc7eabc37e829 | [
"MIT"
] | 1 | 2017-04-30T21:12:55.000Z | 2017-04-30T21:12:55.000Z | src/FclEx.DataStructuresCpp/Iterator.hpp | huoshan12345/FxUtility.DataStructures | cdad625154407c381ec0b5d1003cc7eabc37e829 | [
"MIT"
] | null | null | null | src/FclEx.DataStructuresCpp/Iterator.hpp | huoshan12345/FxUtility.DataStructures | cdad625154407c381ec0b5d1003cc7eabc37e829 | [
"MIT"
] | 1 | 2018-10-04T23:54:26.000Z | 2018-10-04T23:54:26.000Z | #pragma once
#include <iterator>
namespace FclEx
{
namespace Node
{
using namespace std;
template <class Node, class IteratorType>
class Iterator : public iterator<forward_iterator_tag,
typename Node::value_type,
typename Node::difference_type,
typename Node::pointer,
typename Node::reference>
... | 23.368421 | 66 | 0.693318 | huoshan12345 |
32b2309a290661a0ad89ef638222708b7bd2f6de | 57,976 | cc | C++ | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2015 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 "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
#include <stddef.h>
#include <string>
#include <utility>
#include "base/files/file_util.... | 35.920694 | 80 | 0.68863 | zipated |
32b7f262ecdee5430ec11c40f35d8b6da5a9e9b6 | 1,577 | cpp | C++ | asl/audio/DummyPump.cpp | artcom/asl | d47748983678c245ac2da3b5de56245ac41768fe | [
"BSL-1.0"
] | 2 | 2016-01-11T01:06:11.000Z | 2019-07-24T02:27:13.000Z | asl/audio/DummyPump.cpp | artcom/asl | d47748983678c245ac2da3b5de56245ac41768fe | [
"BSL-1.0"
] | null | null | null | asl/audio/DummyPump.cpp | artcom/asl | d47748983678c245ac2da3b5de56245ac41768fe | [
"BSL-1.0"
] | 1 | 2016-01-31T18:14:37.000Z | 2016-01-31T18:14:37.000Z | /* __ ___ ____ _____ ______ _______ ________ _______ ______ _____ ____ ___ __
//
// Copyright (C) 1993-2012, ART+COM AG Berlin, Germany <www.artcom.de>
//
// This file is part of the ART+COM Standard Library (asl).
//
// It is distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_... | 22.855072 | 84 | 0.701332 | artcom |
32b8be4744f527e8ea9b3c385237a08e8bfb3967 | 1,140 | hpp | C++ | qtswarmtv/seasonepisodewidget.hpp | annejan/swarmtv | 847d82114d1ee2338d37be314a222e386849aad1 | [
"Unlicense"
] | 1 | 2019-07-10T10:33:23.000Z | 2019-07-10T10:33:23.000Z | qtswarmtv/seasonepisodewidget.hpp | annejan/swarmtv | 847d82114d1ee2338d37be314a222e386849aad1 | [
"Unlicense"
] | null | null | null | qtswarmtv/seasonepisodewidget.hpp | annejan/swarmtv | 847d82114d1ee2338d37be314a222e386849aad1 | [
"Unlicense"
] | null | null | null | #ifndef SEASONEPISODEWIDGET_HPP
#define SEASONEPISODEWIDGET_HPP
#include <QDialog>
extern "C" {
#include <tvdb.h>
}
#include <QTreeWidget>
#include <taskqueue.hpp>
class episodeInfoWidget;
namespace Ui {
class seasonEpisodeWidget;
}
class seasonEpisodeWidget : public QDialog
{
Q_OBJECT
public:
explicit... | 21.923077 | 73 | 0.735088 | annejan |
32bc74330720c58268f5da7dae316ae1aefe5029 | 17,303 | cpp | C++ | lib/rbm/cpp/rbm.cpp | jrrk2/connectal | 6c05f083e227423c1b2d8ae5a2364db180a82f4a | [
"MIT"
] | 134 | 2015-01-06T14:24:18.000Z | 2022-03-13T22:38:56.000Z | lib/rbm/cpp/rbm.cpp | jrrk2/connectal | 6c05f083e227423c1b2d8ae5a2364db180a82f4a | [
"MIT"
] | 103 | 2015-01-02T14:01:29.000Z | 2021-11-12T18:45:54.000Z | lib/rbm/cpp/rbm.cpp | jrrk2/connectal | 6c05f083e227423c1b2d8ae5a2364db180a82f4a | [
"MIT"
] | 39 | 2015-07-14T20:20:13.000Z | 2021-12-01T00:49:23.000Z |
// Copyright (c) 2014 Quanta Research Cambridge, Inc.
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use, copy,
// mod... | 40.905437 | 148 | 0.701035 | jrrk2 |
32c1d7608b90688b8218d44771897257de20408b | 950 | cpp | C++ | module-os/test/performance-monitor.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-os/test/performance-monitor.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-os/test/performance-monitor.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | #include <limits>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include "prof.h"
TEST_CASE("prof api test")
{
struct prof_pool_init_data init{0};
prof_pool_init(init);
auto pp = prof_pool_get_data();
REQUIRE(pp.size == 0);
prof_pool_deinit();
}
TEST_CASE("overflow")
{
struct prof_po... | 19 | 43 | 0.634737 | buk7456 |
32c1f936fb1be70749f4d54d62e912302a2b70d8 | 4,383 | cpp | C++ | libenchant/unittests/dictionary/enchant_dict_is_added_tests.cpp | orynider/php-5.6.3x4VC9 | 47f9765b797279061c364e004153a0919895b23e | [
"BSD-2-Clause"
] | 1 | 2021-02-24T13:01:00.000Z | 2021-02-24T13:01:00.000Z | libenchant/unittests/dictionary/enchant_dict_is_added_tests.cpp | orynider/php-5.6.3x4VC9 | 47f9765b797279061c364e004153a0919895b23e | [
"BSD-2-Clause"
] | null | null | null | libenchant/unittests/dictionary/enchant_dict_is_added_tests.cpp | orynider/php-5.6.3x4VC9 | 47f9765b797279061c364e004153a0919895b23e | [
"BSD-2-Clause"
] | null | null | null | /* Copyright (c) 2007 Eric Scott Albright
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | 32.954887 | 80 | 0.726443 | orynider |
32c3bdd57aafc5644d1a68828373218e4568c994 | 1,826 | cpp | C++ | binary-trees/Juez215/Source.cpp | albertopastormr/data-structures-eda | 2846e4ba62b5db13788f0c4e6160dc7514070063 | [
"MIT"
] | null | null | null | binary-trees/Juez215/Source.cpp | albertopastormr/data-structures-eda | 2846e4ba62b5db13788f0c4e6160dc7514070063 | [
"MIT"
] | null | null | null | binary-trees/Juez215/Source.cpp | albertopastormr/data-structures-eda | 2846e4ba62b5db13788f0c4e6160dc7514070063 | [
"MIT"
] | null | null | null | // Alberto Pastor Moreno
// E46
#include <iostream>
#include <iomanip>
#include <fstream>
#include <algorithm>
#include <vector>
#include "bintree_eda.h"
struct tSol{
int numNavegables = 0, caudal = 0;
tSol(int nn, int c) : numNavegables(nn), caudal(c){}
};
// función que resuelve el problema
template <class T>... | 26.085714 | 151 | 0.653341 | albertopastormr |
32c3cfe9fde5934fbf1e7fe0fb4d14f8c78085aa | 595 | hpp | C++ | paper/config.hpp | williamstarkro/paper | 13266b83b3922fc146cba1eecedac5a9addf6f2a | [
"BSD-2-Clause"
] | null | null | null | paper/config.hpp | williamstarkro/paper | 13266b83b3922fc146cba1eecedac5a9addf6f2a | [
"BSD-2-Clause"
] | null | null | null | paper/config.hpp | williamstarkro/paper | 13266b83b3922fc146cba1eecedac5a9addf6f2a | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include <chrono>
#include <cstddef>
namespace paper
{
// Network variants with different genesis blocks and network parameters
enum class paper_networks
{
// Low work parameters, publicly known genesis key, test IP ports
paper_test_network,
// Normal work parameters, secret beta genesis key, beta IP ... | 28.333333 | 87 | 0.789916 | williamstarkro |
32c420a5625bb5fe7b614a2677917e7e88ea0cb8 | 1,504 | cpp | C++ | src/MetaAuthoringTool/VRCAT.Wrapper/MRigidMeshComponent.cpp | phs008/PrismSolution | ea2452ef98bdd18216f3947dd0cb5483e2e2a079 | [
"MIT"
] | null | null | null | src/MetaAuthoringTool/VRCAT.Wrapper/MRigidMeshComponent.cpp | phs008/PrismSolution | ea2452ef98bdd18216f3947dd0cb5483e2e2a079 | [
"MIT"
] | null | null | null | src/MetaAuthoringTool/VRCAT.Wrapper/MRigidMeshComponent.cpp | phs008/PrismSolution | ea2452ef98bdd18216f3947dd0cb5483e2e2a079 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "MRigidMeshComponent.h"
#include <Resource/ResourcePath.h>
namespace MVRWrapper
{
MRigidMeshComponent::MRigidMeshComponent()
:MContainerComponent(ComponentEnum::RigidMesh)
{
_pRigidMesh = this->GetNative();
this->setMesh();
}
MRigidMeshComponent::MRigidMeshComponent(Code3::Compone... | 32.695652 | 120 | 0.767952 | phs008 |
32c7df49f8ca191fd2d83eca4e261c3ee1c9a7ae | 1,169 | cpp | C++ | tests/test_geometry.cpp | keisukefukuda/tapas | 341fad9ecd97607771db4c4c966b76d30b5bfc89 | [
"MIT"
] | null | null | null | tests/test_geometry.cpp | keisukefukuda/tapas | 341fad9ecd97607771db4c4c966b76d30b5bfc89 | [
"MIT"
] | 13 | 2015-04-22T10:32:01.000Z | 2016-01-21T10:24:32.000Z | tests/test_geometry.cpp | keisukefukuda/tapas | 341fad9ecd97607771db4c4c966b76d30b5bfc89 | [
"MIT"
] | null | null | null |
#include <cmath>
#include <utility>
#include <set>
#ifndef TAPAS_DEBUG
#define TAPAS_DEBUG 1 // always use TAPAS_DEBUG
#endif
#include <tapas/common.h>
#include <tapas/test.h>
#include <tapas/geometry.h>
SETUP_TEST;
using V1 = tapas::Vec<1, double>;
using V2 = tapas::Vec<2, double>;
using Reg1 = tapas::Region<1, d... | 19.483333 | 70 | 0.586826 | keisukefukuda |
32c86367a53b92150af27fdf04240e3549386702 | 13,281 | cc | C++ | dfplayer/kinect.cc | gleenn/dfplayer | dd390a6f54b3bd8b2a3397fddd6caacfba01b29d | [
"MIT"
] | null | null | null | dfplayer/kinect.cc | gleenn/dfplayer | dd390a6f54b3bd8b2a3397fddd6caacfba01b29d | [
"MIT"
] | null | null | null | dfplayer/kinect.cc | gleenn/dfplayer | dd390a6f54b3bd8b2a3397fddd6caacfba01b29d | [
"MIT"
] | null | null | null | // Copyright 2015, Igor Chernyshev.
// Licensed under The MIT License
//
#include "kinect.h"
#include <math.h>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <vector... | 29.317881 | 80 | 0.701152 | gleenn |
32ca60aa7761e1341b0036ffae7c4dcf4c6f845d | 1,224 | cpp | C++ | Engine/Source/Runtime/Renderer/Components/Buffers.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | Engine/Source/Runtime/Renderer/Components/Buffers.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | Engine/Source/Runtime/Renderer/Components/Buffers.cpp | 1992please/NullEngine | 8f5f124e9718b8d6627992bb309cf0f0d106d07a | [
"Apache-2.0"
] | null | null | null | #include "NullPCH.h"
#include "Buffers.h"
#include "Platform/OpenGL/OpenGLBuffers.h"
#include "Renderer/Components/RendererAPI.h"
IVertexBuffer* IVertexBuffer::Create(float* InVertices, uint32 InSize)
{
switch (IRendererAPI::GetAPI())
{
case IRendererAPI::Type_None: NE_CHECK_F(false, "None Renderer API is not impl... | 33.081081 | 111 | 0.764706 | 1992please |
32ce8492fa335e90ecf599e30210a90e42ff8f14 | 877 | cpp | C++ | src/TestInput.cpp | dublet/KARR | 4b14090b34dab4d8be4e28814cb4d58cd34639ac | [
"BSD-3-Clause"
] | null | null | null | src/TestInput.cpp | dublet/KARR | 4b14090b34dab4d8be4e28814cb4d58cd34639ac | [
"BSD-3-Clause"
] | null | null | null | src/TestInput.cpp | dublet/KARR | 4b14090b34dab4d8be4e28814cb4d58cd34639ac | [
"BSD-3-Clause"
] | null | null | null | #include "TestInput.h"
#include <thread>
#include <time.h>
#include "Status.h"
#include "CarDefinition.h"
using namespace KARR;
void generateTestData() {
Status &s = Status::instance();
struct timespec sleepTime;
sleepTime.tv_sec = 0;
sleepTime.tv_nsec = 20 * 1000 * 1000;
int rpmDirection = ... | 19.488889 | 52 | 0.651083 | dublet |
32d3084d7c75d5a488629f74a8375ccfd553d2e6 | 940 | cpp | C++ | AtCoder/Archives/BeginnerContest76/C.cpp | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | 1 | 2017-10-25T13:33:27.000Z | 2017-10-25T13:33:27.000Z | AtCoder/Archives/BeginnerContest76/C.cpp | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | null | null | null | AtCoder/Archives/BeginnerContest76/C.cpp | lxdlam/ACM | cde519ef9732ff9e4e9e3f53c00fb30d07bdb306 | [
"MIT"
] | 1 | 2021-05-05T01:16:28.000Z | 2021-05-05T01:16:28.000Z | #include <bits/stdc++.h>
using namespace std;
vector<int> match(const string& t, const string& p) {
vector<int> res;
bool find;
for (int i = 0; i < t.size(); i++) {
find = false;
if (t[i] == '?' || t[i] == p[0]) {
for (int j = 1; j < p.size(); j++) {
if (t[i + j] != '?' && t[i + j] != p[j]... | 21.860465 | 63 | 0.469149 | lxdlam |
77f78d34dea4f79dffd4b2dbf25953ac52db750d | 7,085 | cpp | C++ | Source/ModuleTrails.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 10 | 2019-02-05T07:57:21.000Z | 2021-10-17T13:44:31.000Z | Source/ModuleTrails.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 178 | 2019-02-26T17:29:08.000Z | 2019-06-05T10:55:42.000Z | Source/ModuleTrails.cpp | JellyBitStudios/JellyBitEngine | 4b975a50bb1934dfdbdf72e0c96c53a713e6cfa4 | [
"MIT"
] | 2 | 2020-02-27T18:57:27.000Z | 2020-05-28T01:19:59.000Z | #include "ModuleTrails.h"
#include "ModuleTimeManager.h"
#include "ModuleInput.h"
#include "ModuleResourceManager.h"
#include "ModuleRenderer3D.h"
#include "ModuleInternalResHandler.h"
#include "ResourceMaterial.h"
#include "ResourceShaderObject.h"
#include "ResourceShaderProgram.h"
#include "ResourceMesh.h"
#includ... | 29.894515 | 302 | 0.692449 | JellyBitStudios |
77f9ee909641a70f1d118cd6b3981bf2d3afbb95 | 821 | cpp | C++ | src/main.cpp | Maou-Shimazu/Operation-Cpp | 17398c92b7e64bcabe0d597efc8b01cd724e692b | [
"MIT"
] | null | null | null | src/main.cpp | Maou-Shimazu/Operation-Cpp | 17398c92b7e64bcabe0d597efc8b01cd724e692b | [
"MIT"
] | null | null | null | src/main.cpp | Maou-Shimazu/Operation-Cpp | 17398c92b7e64bcabe0d597efc8b01cd724e692b | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <src/format.cc>
#include <fmt/core.h>
#include <parse_args.h>
#include "../include/prompts.hpp"
#include "loopTerminal.cpp"
#include "../include/argCheck.hpp"
using namespace arguments;
// todo: impliment directory check for program run in directory
void welcomeInfo(){... | 24.147059 | 128 | 0.677223 | Maou-Shimazu |
77fa96da8b3c3fbb42952b263753b552ef75eb66 | 6,837 | cpp | C++ | src/boost_lagrange.cpp | mugwort-rc/boost_python_lagrange | ae7cc35b1f650e63de91fd7c25996dc6abc550c4 | [
"BSD-3-Clause"
] | null | null | null | src/boost_lagrange.cpp | mugwort-rc/boost_python_lagrange | ae7cc35b1f650e63de91fd7c25996dc6abc550c4 | [
"BSD-3-Clause"
] | null | null | null | src/boost_lagrange.cpp | mugwort-rc/boost_python_lagrange | ae7cc35b1f650e63de91fd7c25996dc6abc550c4 | [
"BSD-3-Clause"
] | null | null | null | // g++ -std=c++11 -I`python -c 'from distutils.sysconfig import *; print(get_python_inc())'` -DPIC -shared -fPIC -o _lagrange.so boost_lagrange.cpp -lboost_python-py35
#include <memory>
#include <boost/python.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
#include "lagrange.hpp"
template <type... | 33.18932 | 167 | 0.650578 | mugwort-rc |
77faa89d81a4b36dab95fe24f37377da962077a4 | 297 | cpp | C++ | Porblems/bear_and_big_brother.cpp | ashish-ad/CPP-STL-Practice-and-Cp | ca8a112096ad96ed1abccddc9e99b1ead5cf522b | [
"Unlicense"
] | null | null | null | Porblems/bear_and_big_brother.cpp | ashish-ad/CPP-STL-Practice-and-Cp | ca8a112096ad96ed1abccddc9e99b1ead5cf522b | [
"Unlicense"
] | null | null | null | Porblems/bear_and_big_brother.cpp | ashish-ad/CPP-STL-Practice-and-Cp | ca8a112096ad96ed1abccddc9e99b1ead5cf522b | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int limak,bob;
cin>>limak>>bob;
int i=1;
while(1){
limak=limak*3;
bob=bob*2;
if (limak>bob){
cout<<i<<endl;
break;
}
else{
i++;
}
}
} | 14.85 | 26 | 0.40404 | ashish-ad |
77fb5c852b5894084a60aee11390464d3b90c236 | 2,921 | hxx | C++ | private/shell/ext/mydocs2/precomp.hxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/shell/ext/mydocs2/precomp.hxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/shell/ext/mydocs2/precomp.hxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | #ifndef _pch_h
#define _pch_h
#include <windows.h>
#include <windowsx.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <ccstock.h>
#include <shsemip.h>
#include <shlwapip.h>
#include <shlapip.h>
#include <shlobjp.h> // for shellp.h
#include <shellp.h> // SHFOLDERCUSTOMSETTINGS
#include <cfdef... | 26.080357 | 122 | 0.670318 | King0987654 |
77feeab069b3c47765e14808dc6d98b57875f0db | 4,277 | cpp | C++ | AtCoder/typical90/029 - Long Bricks/main.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | 1 | 2020-05-24T02:27:05.000Z | 2020-05-24T02:27:05.000Z | AtCoder/typical90/029 - Long Bricks/main.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | null | null | null | AtCoder/typical90/029 - Long Bricks/main.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | null | null | null | // g++ -std=c++14 -DDEV=1 main.cpp
#include <stdio.h>
#include <cassert>
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <map>
using std::cin;
using std::cout;
using std::endl;
using std::terminate;
using std::vector;
using std::max;
using std::sort;
using std::map;
using std::ma... | 19.619266 | 64 | 0.416647 | t-mochizuki |
77fef9ca7e9b463b12918ccca0581b7399ccd45d | 1,077 | hpp | C++ | camera/DumpProfile.hpp | flexibity-team/boost-tools | a6c67eacf7374136f9903680308334fc3408ba91 | [
"MIT"
] | null | null | null | camera/DumpProfile.hpp | flexibity-team/boost-tools | a6c67eacf7374136f9903680308334fc3408ba91 | [
"MIT"
] | null | null | null | camera/DumpProfile.hpp | flexibity-team/boost-tools | a6c67eacf7374136f9903680308334fc3408ba91 | [
"MIT"
] | 2 | 2019-12-26T13:54:29.000Z | 2020-10-31T10:19:13.000Z | #ifndef DUMBPROFILE_H_
#define DUMBPROFILE_H_
#include <sys/time.h>
#include <stdint.h>
#include <string.h>
#define DPROFILE dumb_profile dprf = dumb_profile(__FUNCTION__, __LINE__); dprf.start();
struct dumb_profile{
struct timeval start_;
struct timeval end_;
const char* fname_;
const uint32_t lnum_;
dumb_p... | 19.944444 | 119 | 0.679666 | flexibity-team |
ae023ba1b61d8f539911c840c19059f293e70936 | 980 | cpp | C++ | Codeforces/Solutions/1082B.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | Codeforces/Solutions/1082B.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | Codeforces/Solutions/1082B.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | // Problem Code: 1082B
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int vovaAndTrophies(int n, string S) {
int len, maxLen, g;
vector<int> L(n), R(n);
len = maxLen = 0;
g = count(S.begin(), S.end(), 'G');
if (g == n)
return g;
if (S[0] == 'G')
L[0] = 1;
for (int i = 1 ;... | 15.555556 | 38 | 0.45 | Mohammed-Shoaib |
ae033e4d44777869c7554d7e250a1ce42554f400 | 47,761 | cpp | C++ | source/D2Common/src/DataTbls/SequenceTbls.cpp | raumuongluoc/D2MOO | 169de1bd24151cda4c654ef0f8027896a14552ec | [
"MIT"
] | 1 | 2022-03-20T12:12:15.000Z | 2022-03-20T12:12:15.000Z | source/D2Common/src/DataTbls/SequenceTbls.cpp | raumuongluoc/D2MOO | 169de1bd24151cda4c654ef0f8027896a14552ec | [
"MIT"
] | null | null | null | source/D2Common/src/DataTbls/SequenceTbls.cpp | raumuongluoc/D2MOO | 169de1bd24151cda4c654ef0f8027896a14552ec | [
"MIT"
] | 1 | 2022-03-20T12:12:18.000Z | 2022-03-20T12:12:18.000Z | #include <D2DataTbls.h>
#include <DataTbls/SequenceTbls.h>
#include <D2BitManip.h>
#include <Units/Units.h>
#include <D2Skills.h>
#include <D2Composit.h>
//D2Common.0x6FDDE6A8
D2MonSeqTxt gPlayerSequenceHandToHand1[13] =
{
{ 0, PLRMODE_ATTACK1, 0, 0, MONSEQ_EVENT_NONE },
{ 0, PLRMODE_ATTACK1, 1, 0, MONSEQ_EVENT_NONE... | 35.615958 | 193 | 0.731748 | raumuongluoc |
ae06620b4145aff4fd7b6004b47eeef88f43cf26 | 1,656 | cpp | C++ | src/coherence/component/net/extend/protocol/cache/AbstractKeySetRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | src/coherence/component/net/extend/protocol/cache/AbstractKeySetRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | src/coherence/component/net/extend/protocol/cache/AbstractKeySetRequest.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "private/coherence/component/net/extend/protocol/cache/AbstractKeySetRequest.hpp"
#include "coherence/util/ArrayList.hpp" // REVIEW
... | 25.476923 | 90 | 0.61715 | chpatel3 |
ae08ccd123b4592a416711a9e6da05519e2606fb | 10,499 | cpp | C++ | src/kits/shared/JsonMessageWriter.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/kits/shared/JsonMessageWriter.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/kits/shared/JsonMessageWriter.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz>
* Distributed under the terms of the MIT License.
*/
#include "JsonMessageWriter.h"
namespace BPrivate {
/*! The class and sub-classes of it are used as a stack internal to the
BJsonMessageWriter class. As the JSON is parsed, the stack of these
... | 19.51487 | 80 | 0.740832 | Kirishikesan |
ae09b5ccdd4d276517f3989a7ce916f5813cb65a | 74 | cpp | C++ | src/ace/ACE_wrappers/ACEXML/common/Attributes.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | 8 | 2017-06-05T08:56:27.000Z | 2020-04-08T16:50:11.000Z | src/ace/ACE_wrappers/ACEXML/common/Attributes.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | null | null | null | src/ace/ACE_wrappers/ACEXML/common/Attributes.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | 17 | 2017-06-05T08:54:27.000Z | 2021-08-29T14:19:12.000Z | #include "Attributes.h"
ACEXML_Attributes::~ACEXML_Attributes (void)
{
}
| 12.333333 | 44 | 0.756757 | wfnex |
ae0b0290fe09ecf6f5ea2fc4f9bf9531d0dc0b63 | 4,759 | cpp | C++ | hihope_neptune-oh_hid/00_src/v0.1/foundation/graphic/ui/frameworks/components/ui_toggle_button.cpp | dawmlight/vendor_oh_fun | bc9fb50920f06cd4c27399f60076f5793043c77d | [
"Apache-2.0"
] | 1 | 2022-02-15T08:51:55.000Z | 2022-02-15T08:51:55.000Z | hihope_neptune-oh_hid/00_src/v0.1/foundation/graphic/ui/frameworks/components/ui_toggle_button.cpp | dawmlight/vendor_oh_fun | bc9fb50920f06cd4c27399f60076f5793043c77d | [
"Apache-2.0"
] | null | null | null | hihope_neptune-oh_hid/00_src/v0.1/foundation/graphic/ui/frameworks/components/ui_toggle_button.cpp | dawmlight/vendor_oh_fun | bc9fb50920f06cd4c27399f60076f5793043c77d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020-2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 39.991597 | 120 | 0.600336 | dawmlight |
ae0bd9b41366661e5c83824971bbd8235099a335 | 1,027 | cpp | C++ | extractor/Utils/DBCReader.cpp | avennstrom/NovusCore-Tools | 03c2bd1ee8e6b865498b4d489ac962b0f168ad59 | [
"MIT"
] | null | null | null | extractor/Utils/DBCReader.cpp | avennstrom/NovusCore-Tools | 03c2bd1ee8e6b865498b4d489ac962b0f168ad59 | [
"MIT"
] | 2 | 2020-01-16T13:58:44.000Z | 2020-07-01T11:37:00.000Z | extractor/Utils/DBCReader.cpp | avennstrom/NovusCore-Tools | 03c2bd1ee8e6b865498b4d489ac962b0f168ad59 | [
"MIT"
] | 5 | 2020-01-16T13:56:44.000Z | 2021-12-20T22:16:08.000Z | #include "DBCReader.h"
/*
1 = Can't open file
2 = Invalid format
3 = Invalid data / string size read
*/
int DBCReader::Load(std::shared_ptr<Bytebuffer> buffer)
{
u32 header = 0;
buffer->GetU32(header);
// Check for WDBC header
if (header != NOVUSDBC_WDBC_TOKEN)
return 2;
try
{
... | 20.137255 | 58 | 0.6037 | avennstrom |
ae1126f4317e7224849ef4da6c39a7f628d6738e | 523 | cpp | C++ | exercises/6/Seminar_02 - Introduction to classes/structures_unions_alignment/unions.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 19 | 2020-02-21T16:46:50.000Z | 2022-01-26T19:59:49.000Z | exercises/6/Seminar_02 - Introduction to classes/structures_unions_alignment/unions.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 1 | 2020-03-14T08:09:45.000Z | 2020-03-14T08:09:45.000Z | exercises/6/Seminar_02 - Introduction to classes/structures_unions_alignment/unions.cpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 11 | 2020-02-23T12:29:58.000Z | 2021-04-11T08:30:12.000Z | #include <iostream>
//Source: https://www.youtube.com/watch?v=6uqU9Y578n4
struct Vector2 {
float x, y;
};
struct Vector4 {
union {
struct {
float x, y, z, w;
};
struct {
Vector2 a, b;
};
};
};
void printVector2(const Vector2& vector) {
std::cout << "( " << vector.x << ", " << vector.y << " )" <... | 14.527778 | 72 | 0.529637 | triffon |
ae1a3eda22f78d49e393cd55afd7741c7a2d39b9 | 1,194 | cpp | C++ | BATS/code/BTHAIModule/Source/NexusAgent.cpp | Senth/bats | 51d4ec39f3a118ed0eb90ec27a1864c0ceef3898 | [
"Apache-2.0"
] | null | null | null | BATS/code/BTHAIModule/Source/NexusAgent.cpp | Senth/bats | 51d4ec39f3a118ed0eb90ec27a1864c0ceef3898 | [
"Apache-2.0"
] | null | null | null | BATS/code/BTHAIModule/Source/NexusAgent.cpp | Senth/bats | 51d4ec39f3a118ed0eb90ec27a1864c0ceef3898 | [
"Apache-2.0"
] | null | null | null | #include "NexusAgent.h"
#include "AgentManager.h"
#include "WorkerAgent.h"
#include "PFManager.h"
#include "BatsModule/include/BuildPlanner.h"
#include "ResourceManager.h"
using namespace BWAPI;
using namespace std;
NexusAgent::NexusAgent(Unit* mUnit) : StructureAgent(mUnit)
{
agentType = "NexusAgent";
hasSentWorke... | 20.947368 | 86 | 0.701005 | Senth |
ae1c06878dbfac75a332fd6c4f0ac34da9229d79 | 19 | cpp | C++ | src/DlibDotNet.Native.Dnn/dlib/dnn/tensor.cpp | ejoebstl/DlibDotNet | 47436a573c931fc9c9107442b10cf32524805378 | [
"MIT"
] | 387 | 2017-10-14T23:08:59.000Z | 2022-03-28T05:26:44.000Z | src/DlibDotNet.Native.Dnn/dlib/dnn/tensor.cpp | ejoebstl/DlibDotNet | 47436a573c931fc9c9107442b10cf32524805378 | [
"MIT"
] | 246 | 2017-10-09T11:40:20.000Z | 2022-03-22T08:04:08.000Z | src/DlibDotNet.Native.Dnn/dlib/dnn/tensor.cpp | ejoebstl/DlibDotNet | 47436a573c931fc9c9107442b10cf32524805378 | [
"MIT"
] | 113 | 2017-10-18T12:04:53.000Z | 2022-03-28T09:05:27.000Z | #include "tensor.h" | 19 | 19 | 0.736842 | ejoebstl |
ae1df20fd6c4d4f350682072ec4175a62b66a344 | 6,242 | cc | C++ | bwidgets/widgets/bwNumberSlider.cc | julianeisel/bWidgets | 35695df104f77b35992013a5602adf2723ab1022 | [
"MIT"
] | 72 | 2018-03-26T20:13:47.000Z | 2022-03-08T15:59:55.000Z | bwidgets/widgets/bwNumberSlider.cc | julianeisel/bWidgets | 35695df104f77b35992013a5602adf2723ab1022 | [
"MIT"
] | 12 | 2018-03-30T12:54:15.000Z | 2021-05-30T23:33:01.000Z | bwidgets/widgets/bwNumberSlider.cc | julianeisel/bWidgets | 35695df104f77b35992013a5602adf2723ab1022 | [
"MIT"
] | 10 | 2018-03-26T23:04:06.000Z | 2021-11-17T21:04:27.000Z | #include <algorithm>
#include <cassert>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <sstream>
#include "bwEvent.h"
#include "bwPainter.h"
#include "bwStyle.h"
#include "bwNumberSlider.h"
namespace bWidgets {
bwNumberSlider::bwNumberSlider(std::optional<unsigned int> width_hint,
... | 28.372727 | 97 | 0.716437 | julianeisel |
ae1f29f88c6f05e3560317369e6deaca5e2fb449 | 324 | cpp | C++ | Sirul_Retardat/Sirul_Retardat.cpp | EneRgYCZ/Problems | e8bf9aa4bba2b5ead25fc5ce482a36c861501f46 | [
"MIT"
] | null | null | null | Sirul_Retardat/Sirul_Retardat.cpp | EneRgYCZ/Problems | e8bf9aa4bba2b5ead25fc5ce482a36c861501f46 | [
"MIT"
] | null | null | null | Sirul_Retardat/Sirul_Retardat.cpp | EneRgYCZ/Problems | e8bf9aa4bba2b5ead25fc5ce482a36c861501f46 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main ()
{
int n, x, y, z, v[10001];
cin >> n >> x >> y >> z;
v[1] = x;
v[2] = y;
v[3] = z;
for (int i = 4; i <= n; ++i)
{
v[i] = v[i - 1] + v[i - 2] - v[i - 3];
}
for (int i = n; i >= 1; --i)
{
cout << v[i] << " ";
... | 17.052632 | 46 | 0.330247 | EneRgYCZ |
ae1fcacb9a1c8125da9eda8a38dbe2fb5d748bfa | 95,361 | cpp | C++ | v3d_main/neuron_annotator/gui/NaMainWindow.cpp | hanchuan/vaa3d_external | d6381572dec4079705ac5d3e39c9556b50472403 | [
"MIT"
] | null | null | null | v3d_main/neuron_annotator/gui/NaMainWindow.cpp | hanchuan/vaa3d_external | d6381572dec4079705ac5d3e39c9556b50472403 | [
"MIT"
] | null | null | null | v3d_main/neuron_annotator/gui/NaMainWindow.cpp | hanchuan/vaa3d_external | d6381572dec4079705ac5d3e39c9556b50472403 | [
"MIT"
] | null | null | null | // Fix windows compile problem with windows.h being included too late.
// I wish it wasn't included at all...
#ifdef _MSC_VER
#define NOMINMAX //added by PHC, 2010-05-20 to overcome VC min max macro
#include <windows.h>
#endif
#include <QDir>
#include <QFileInfo>
#include <QDebug>
#include <iostream>
#include <cmath>
... | 37.425824 | 208 | 0.672696 | hanchuan |
ae223da69d12a8042f518d725fe23972111e156a | 580 | cpp | C++ | contest/AOJ/0035.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AOJ/0035.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AOJ/0035.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "geometry/polygon.hpp"
#include "string.hpp"
int main() {
setBoolName("YES", "NO");
for (String line; line = in, !in.eof;) {
auto v = line.split(',').transform(cast<String, long double>());
Polygon polygon(4);
for (int i = 0; i < 4; ++i) {
polygon[i] = Point(v[2 * i], v[2 * i + 1]);
... | 27.619048 | 68 | 0.555172 | not522 |
ae264600552d13c8335eae879cf3250abfc1074d | 5,203 | cpp | C++ | ass2/Ass2_3.cpp | krishna-akula/OSLab | 09ea00eb9b346a2a51b39a0948d05b4f3b414342 | [
"MIT"
] | null | null | null | ass2/Ass2_3.cpp | krishna-akula/OSLab | 09ea00eb9b346a2a51b39a0948d05b4f3b414342 | [
"MIT"
] | null | null | null | ass2/Ass2_3.cpp | krishna-akula/OSLab | 09ea00eb9b346a2a51b39a0948d05b4f3b414342 | [
"MIT"
] | null | null | null | #include<unistd.h>
#include<stdlib.h>
#include<fcntl.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<sys/stat.h>
#include<string>
#include<cstring>
#include<sstream>
#include<vector>
#include<iostream>
using namespace std;
struct cmd_info{
int type;
string infilename,outfilename,filename;
... | 17.171617 | 106 | 0.55641 | krishna-akula |
ae26a8066b1380a0d36c6e3d5e87ca7977f0762f | 506 | cpp | C++ | 6.ExceptionHandling/i-Assess/HallBookingBO.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 26 | 2021-03-17T03:15:22.000Z | 2021-06-09T13:29:41.000Z | 6.ExceptionHandling/i-Assess/HallBookingBO.cpp | Servatom/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 6 | 2021-03-16T19:04:05.000Z | 2021-06-03T13:41:04.000Z | 6.ExceptionHandling/i-Assess/HallBookingBO.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 42 | 2021-03-17T03:16:22.000Z | 2021-06-14T21:11:20.000Z | #include<iostream>
#include<list>
#include"HallBooking.cpp"
#include<iterator>
using namespace std;
class HallBookingBO{
public:
bool validateHallBooking(list<HallBooking> lst,HallBooking hallObj){
try{
for(HallBooking h: lst){
if(h.getHall()==hallObj.getHall()&&h.getDateOfB... | 24.095238 | 101 | 0.551383 | Concept-Team |
ae2a6ab82e3b1a653467db1256731298173dee6a | 268 | cpp | C++ | LastHope Engine/Component.cpp | rohomedesrius/LastHopeEngine | 5a73a0a3cf00fbcd2fa48f0ec1ce2c9bc1057bc0 | [
"MIT"
] | 1 | 2018-10-03T14:01:40.000Z | 2018-10-03T14:01:40.000Z | LastHope Engine/Component.cpp | rohomedesrius/LastHopeEngine | 5a73a0a3cf00fbcd2fa48f0ec1ce2c9bc1057bc0 | [
"MIT"
] | null | null | null | LastHope Engine/Component.cpp | rohomedesrius/LastHopeEngine | 5a73a0a3cf00fbcd2fa48f0ec1ce2c9bc1057bc0 | [
"MIT"
] | null | null | null | #include "Component.h"
GameObject* Component::GetGameObject() const
{
return game_object;
}
bool Component::IsActive() const
{
return active;
}
void Component::SetActive(bool value)
{
active = value;
}
ComponentType Component::GetType() const
{
return type;
}
| 12.181818 | 44 | 0.727612 | rohomedesrius |
ae2c515406c9ae9c65d4a3b150e08c2c989fafc9 | 2,598 | hpp | C++ | include/multi_sync_replayer.hpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | 9 | 2021-09-04T15:14:57.000Z | 2022-03-29T04:34:13.000Z | include/multi_sync_replayer.hpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | null | null | null | include/multi_sync_replayer.hpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | 4 | 2021-09-29T11:32:54.000Z | 2022-03-06T05:24:33.000Z | #pragma once
#include <ros/ros.h>
#include <param.hpp>
#include <mission.hpp>
#include <obstacle_generator.hpp>
#include <visualization_msgs/MarkerArray.h>
#include <std_msgs/Float64.h>
#include <std_msgs/Float64MultiArray.h>
#include <util.hpp>
namespace DynamicPlanning {
class MultiSyncReplayer {
public:
... | 33.307692 | 87 | 0.711316 | dabinkim-LGOM |
ae2d3ee25a6ac1b5bde055317dabe97eabc70e44 | 1,764 | cpp | C++ | CF R405/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | CF R405/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | CF R405/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define forall(i,a,b) for(int i=a;i<b;i++)
#define ll long long int
#define llu long long unsigned
#define vll vector<ll>
#define vllu vector<llu>
#define sll set<ll>
#define sllu set<llu>
#define pb push_back
#define mll map<ll,ll>
#define mllu map<llu,llu>... | 19.173913 | 61 | 0.3322 | parthlathiya |
ae2d8775f8329e8e9c17bff4ec195a3d69b6d59f | 32,224 | cpp | C++ | DRE2008OS_plugins/DRE2008_OS_Callback.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | 1 | 2019-12-25T13:36:01.000Z | 2019-12-25T13:36:01.000Z | DRE2008OS_plugins/DRE2008_OS_Callback.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | null | null | null | DRE2008OS_plugins/DRE2008_OS_Callback.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | 1 | 2020-08-05T14:05:15.000Z | 2020-08-05T14:05:15.000Z | #include "DRE2008_OS_Callback.h"
#include <QDebug>
//int slave_num = 1;
//int16_t Normal_AD_Input[8] = { 0,0,0,0,0,0,0,0 };
char file[500]; //需要保存数据的文件
DRE2008_OS_Callback::DRE2008_OS_Callback(QObject *parent) : QObject(parent),Ethercat_Callback()
{
m_isOS_Reset = false;//超采样初始化
m_isOS_Run = fals... | 43.961801 | 172 | 0.543105 | GreatCong |
ae2d8c0a1f4465bf6b72f7b7cc39561f4ef0ad19 | 1,798 | hpp | C++ | include/np/ndarray/dynamic/NDArrayDynamicSortImpl.hpp | mgorshkov/np | 75c7adff38e7260371135839b547d5340f3ca367 | [
"MIT"
] | null | null | null | include/np/ndarray/dynamic/NDArrayDynamicSortImpl.hpp | mgorshkov/np | 75c7adff38e7260371135839b547d5340f3ca367 | [
"MIT"
] | null | null | null | include/np/ndarray/dynamic/NDArrayDynamicSortImpl.hpp | mgorshkov/np | 75c7adff38e7260371135839b547d5340f3ca367 | [
"MIT"
] | null | null | null | /*
C++ numpy-like template-based array implementation
Copyright (c) 2022 Mikhail Gorshkov (mikhail.gorshkov@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includi... | 36.693878 | 86 | 0.74861 | mgorshkov |
ae3120a1f2b602611be0945168db439e9cd8076f | 35 | cpp | C++ | NotifyServer/SQLThreadConPool.cpp | lijialong1234/TeachNotice | 27ec630d1a8e669bd30df406ea6618d8fbce8c3b | [
"MIT"
] | 2 | 2019-05-25T13:25:33.000Z | 2019-06-03T06:48:24.000Z | NotifyServer/SQLThreadConPool.cpp | lijialong1234/TeachNotice | 27ec630d1a8e669bd30df406ea6618d8fbce8c3b | [
"MIT"
] | null | null | null | NotifyServer/SQLThreadConPool.cpp | lijialong1234/TeachNotice | 27ec630d1a8e669bd30df406ea6618d8fbce8c3b | [
"MIT"
] | null | null | null | #include "SQLThreadConPool.h"
| 8.75 | 30 | 0.685714 | lijialong1234 |
ae38f72c78ef42f31273498ba0aa14853c32c46e | 8,622 | cpp | C++ | Cpp/Docker/OBJ.cpp | Gabidal/GAC | f36b76bceb6a39a87b50c393eb3540f4085bd879 | [
"MIT"
] | 5 | 2019-08-19T18:18:08.000Z | 2019-12-13T19:26:03.000Z | Cpp/Docker/OBJ.cpp | Gabidal/GAC | f36b76bceb6a39a87b50c393eb3540f4085bd879 | [
"MIT"
] | 3 | 2019-04-15T19:24:36.000Z | 2020-02-29T13:09:07.000Z | Cpp/Docker/OBJ.cpp | Gabidal/GAC | f36b76bceb6a39a87b50c393eb3540f4085bd879 | [
"MIT"
] | 2 | 2019-10-08T23:16:05.000Z | 2019-12-18T22:58:04.000Z | #include "../../H/Docker/OBJ.h"
#include "../../H/BackEnd/Selector.h"
#include "../../H/Nodes/Node.h"
#include "../../H/Assembler/Assembler_Types.h"
#include "../../H/UI/Usr.h"
#include "../../H/UI/Safe.h"
#include "../../H/Assembler/Assembler.h"
#include "../../H/Docker/Docker.h"
extern Selector* selector;... | 31.933333 | 212 | 0.694734 | Gabidal |
ae38f7dc7a43cd38e41341504420dbacb7158e09 | 9,567 | cc | C++ | chrome/browser/autofill/form_structure_browsertest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | chrome/browser/autofill/form_structure_browsertest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/autofill/form_structure_browsertest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | // Copyright (c) 2010 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 <vector>
#include "base/file_path.h"
#include "base/path_service.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#... | 35.831461 | 79 | 0.720184 | Gitman1989 |
ae3ab6bc4f88c37f0fa5090dce0cf138c035c01c | 308 | hpp | C++ | pythran/pythonic/include/cmath/log.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/cmath/log.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/cmath/log.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_CMATH_LOG_HPP
#define PYTHONIC_INCLUDE_CMATH_LOG_HPP
#include "pythonic/include/utils/proxy.hpp"
#include <cmath>
namespace pythonic
{
namespace cmath
{
ALIAS_DECL(log, std::log);
double log(double x, double base);
PROXY_DECL(pythonic::cmath, log);
}
}
#endif
| 15.4 | 43 | 0.733766 | artas360 |
ae3b50e593a3c8dd1c8b912c6cbdc593f6ebe381 | 883 | cc | C++ | remoting/signaling/signaling_tracker_impl.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | remoting/signaling/signaling_tracker_impl.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | remoting/signaling/signaling_tracker_impl.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2020 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 "remoting/signaling/signaling_tracker_impl.h"
namespace remoting {
SignalingTrackerImpl::SignalingTrackerImpl() = default;
SignalingTrackerImp... | 28.483871 | 76 | 0.772367 | sarang-apps |
ae3ca7324c166c72a93c09bd7aa727976348a3cf | 9,203 | hpp | C++ | stm32-jl/include/common/uart.hpp | serjzimmerman/mipt-rt-stm32-f0-labs | 561f363ec5c4dece92b2a14c36343aaa9d713785 | [
"MIT"
] | null | null | null | stm32-jl/include/common/uart.hpp | serjzimmerman/mipt-rt-stm32-f0-labs | 561f363ec5c4dece92b2a14c36343aaa9d713785 | [
"MIT"
] | null | null | null | stm32-jl/include/common/uart.hpp | serjzimmerman/mipt-rt-stm32-f0-labs | 561f363ec5c4dece92b2a14c36343aaa9d713785 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdarg>
#include <cstring>
#include "gpio.hpp"
#include "stm32f051/rcc.hpp"
namespace JL {
enum StopBits {
stopBit1 = 0b00,
stopBit05 = 0b01,
stopBit2 = 0b10,
stopBit15 = 0b11,
};
enum WordLength {
wordLength8 = 0b00,
wordLength9 = 0b01,
wordLength7 = 0b10,
};
template <uin... | 48.183246 | 120 | 0.693144 | serjzimmerman |
ae3cec7f20f8fdb8d588ff4460e5e882697b33d1 | 9,676 | cpp | C++ | src/modules/hip/kernel/median_filter.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 26 | 2019-09-04T17:48:41.000Z | 2022-02-23T17:04:24.000Z | src/modules/hip/kernel/median_filter.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 57 | 2019-09-06T21:37:34.000Z | 2022-03-09T02:13:46.000Z | src/modules/hip/kernel/median_filter.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 24 | 2019-09-04T23:12:07.000Z | 2022-03-30T02:06:22.000Z | #include <hip/hip_runtime.h>
#include "rpp_hip_host_decls.hpp"
#define saturate_8u(value) ((value) > 255 ? 255 : ((value) < 0 ? 0 : (value)))
#define SIZE 7*7
extern "C" __global__ void median_filter_pkd(unsigned char *input,
unsigned char *output,
... | 35.185455 | 185 | 0.423625 | shobana-mcw |
ae3d5347e2294cddba00ceea4f9349c14fcfe64f | 2,859 | cc | C++ | src/swganh/object/group/group.cc | JohnShandy/swganh | d20d22a8dca2e9220a35af0f45f7935ca2eda531 | [
"MIT"
] | 1 | 2015-03-25T16:02:17.000Z | 2015-03-25T16:02:17.000Z | src/swganh/object/group/group.cc | JohnShandy/swganh | d20d22a8dca2e9220a35af0f45f7935ca2eda531 | [
"MIT"
] | null | null | null | src/swganh/object/group/group.cc | JohnShandy/swganh | d20d22a8dca2e9220a35af0f45f7935ca2eda531 | [
"MIT"
] | null | null | null | // This file is part of SWGANH which is released under the MIT license.
// See file LICENSE or go to http://swganh.com/LICENSE
#include "swganh/object/group/group.h"
#include "swganh/object/tangible/tangible.h"
using namespace std;
using namespace swganh::messages;
using namespace swganh::object;
using namespace swga... | 22.872 | 97 | 0.70794 | JohnShandy |
ae3dc01e1073dba6d10405d3e51257864cf466be | 3,743 | hpp | C++ | src/libraries/fvOptions/sources/derived/rotorDiskSource/bladeModel/bladeModel.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/fvOptions/sources/derived/rotorDiskSource/bladeModel/bladeModel.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/fvOptions/sources/derived/rotorDiskSource/bladeModel/bladeModel.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011-2013 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of Caelus.
Caelus is free software: you can redistribute it and/or modify it
... | 25.290541 | 79 | 0.47689 | MrAwesomeRocks |
ae41976ffdc4f430861d25c818f7ef3d17a23a23 | 2,092 | cpp | C++ | Competitive Programming/Searching & Sorting/maximum sum such that no 2 elements are adjacent.cpp | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | Competitive Programming/Searching & Sorting/maximum sum such that no 2 elements are adjacent.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | Competitive Programming/Searching & Sorting/maximum sum such that no 2 elements are adjacent.cpp | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | /*
https://practice.geeksforgeeks.org/problems/stickler-theif-1587115621/1
Stickler Thief
Easy Accuracy: 50.32% Submissions: 43113 Points: 2
Stickler the thief wants to loot money from a society having n houses in a single line. He is a weird person and follows a certain rule when looting the houses. According to the... | 25.82716 | 541 | 0.616635 | shreejitverma |
ae41cb5076286b79fd7b17737b07b0d2febfd7f3 | 1,687 | hpp | C++ | thirdparty/libgenerator/inc/generator/utils.hpp | ppiecuch/godot | ff2098b324b814a0d1bd9d5722aa871fc5214fab | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | thirdparty/libgenerator/inc/generator/utils.hpp | ppiecuch/godot | ff2098b324b814a0d1bd9d5722aa871fc5214fab | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | thirdparty/libgenerator/inc/generator/utils.hpp | ppiecuch/godot | ff2098b324b814a0d1bd9d5722aa871fc5214fab | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null |
// Copyright 2015 Markus Ilmola
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
#ifndef GENERATOR_UTILS_H... | 28.116667 | 80 | 0.739775 | ppiecuch |
ae441a8c950165c356976067cadacc904641a35c | 1,526 | cpp | C++ | lib/CMakeTargetMachine.cpp | akemimadoka/LLVMCMakeBackend | 64513885876ad81d932eeb06464aa7caa5f5843b | [
"MIT"
] | 40 | 2020-04-04T09:16:28.000Z | 2021-12-10T14:03:40.000Z | lib/CMakeTargetMachine.cpp | akemimadoka/LLVMCMakeBackend | 64513885876ad81d932eeb06464aa7caa5f5843b | [
"MIT"
] | 1 | 2020-04-07T10:44:48.000Z | 2020-04-16T17:02:48.000Z | lib/CMakeTargetMachine.cpp | akemimadoka/LLVMCMakeBackend | 64513885876ad81d932eeb06464aa7caa5f5843b | [
"MIT"
] | null | null | null | #include "CMakeTargetMachine.h"
#include "CMakeBackend.h"
#include "CheckNeedGotoPass.h"
#include <llvm/CodeGen/TargetPassConfig.h>
#include <llvm/Support/TargetRegistry.h>
#include <llvm/Transforms/Utils.h>
using namespace llvm;
Target CMakeBackendTarget{};
extern "C" void LLVMInitializeCMakeBackendTarget()
{
Reg... | 24.612903 | 98 | 0.787025 | akemimadoka |
ae4e5b3ae84f0a27adcc7442fc4f8cd1a6f576eb | 3,660 | cpp | C++ | Haru/hpdf/hpdf_image.cpp | miyako/4d-plugin-haru | 749599d7ec9f21a2071ebef3859eb3fce8c59754 | [
"MIT"
] | null | null | null | Haru/hpdf/hpdf_image.cpp | miyako/4d-plugin-haru | 749599d7ec9f21a2071ebef3859eb3fce8c59754 | [
"MIT"
] | 1 | 2020-02-13T03:34:38.000Z | 2020-06-01T21:08:11.000Z | Haru/hpdf/hpdf_image.cpp | miyako/4d-plugin-haru | 749599d7ec9f21a2071ebef3859eb3fce8c59754 | [
"MIT"
] | 2 | 2016-06-07T08:28:17.000Z | 2016-08-03T10:53:05.000Z | #include "hpdf_image.h"
// ------------------------------------- Image ------------------------------------
void PDF_Image_AddSMask(sLONG_PTR *pResult, PackagePtr pParams)
{
C_TEXT Param1;
C_TEXT Param2;
C_LONGINT returnValue;
Param1.fromParamAtIndex(pParams, 1);
Param2.fromParamAtIndex(pParams, 2);
HPDF_Im... | 24.4 | 93 | 0.764208 | miyako |
ae4f4b4e979772284c486e8ee37fad05527ab9d8 | 3,071 | cxx | C++ | osf-to-esf/dborl/dborl_image_description.cxx | wenhanshi/lemsvxl-shock-computation | 1208e5f6a0c9fddbdffcc20f2c1d914e07015b45 | [
"MIT"
] | 1 | 2022-01-01T20:43:47.000Z | 2022-01-01T20:43:47.000Z | osf-to-esf/dborl/dborl_image_description.cxx | wenhanshi/lemsvxl-shock-computation | 1208e5f6a0c9fddbdffcc20f2c1d914e07015b45 | [
"MIT"
] | null | null | null | osf-to-esf/dborl/dborl_image_description.cxx | wenhanshi/lemsvxl-shock-computation | 1208e5f6a0c9fddbdffcc20f2c1d914e07015b45 | [
"MIT"
] | null | null | null | //:
// \file
// \brief
// \author Ozge Can Ozcanli (ozge@lems.brown.edu)
// \date 010/03/07
#include "dborl_image_description.h"
#include "dborl_image_data_description_base.h"
#include "dborl_image_bbox_description.h"
#include "dborl_image_polygon_description.h"
#include "dborl_image_mask_description.h"
#i... | 34.122222 | 123 | 0.713123 | wenhanshi |
ae52889679352218af67833e2b1ae882b3353939 | 2,650 | cpp | C++ | src/sol_scip_kbest.cpp | aurtg/david | 26922b8b9f35ee749f44e56a599aa5e7136024e2 | [
"MIT"
] | null | null | null | src/sol_scip_kbest.cpp | aurtg/david | 26922b8b9f35ee749f44e56a599aa5e7136024e2 | [
"MIT"
] | null | null | null | src/sol_scip_kbest.cpp | aurtg/david | 26922b8b9f35ee749f44e56a599aa5e7136024e2 | [
"MIT"
] | null | null | null | #include <mutex>
#include <algorithm>
#include "./kernel.h"
#include "./lhs.h"
#include "./cnv.h"
#include "./sol.h"
#include "./json.h"
namespace dav
{
namespace sol
{
#ifdef USE_SCIP
string_t code2str(SCIP_RETCODE c);
#endif
scip_k_best_t::scip_k_best_t(const kernel_t *m, bool cpi)
: scip_t(m, cpi),
m_m... | 22.457627 | 94 | 0.551698 | aurtg |
ae5289e95ee89e9358178fefeafc955aca22fb10 | 11,663 | cpp | C++ | Computer Graphics/src/scene_texture.cpp | sergio5405/Computer-Graphics-Project | 829cd1f25caaa88070a0aeccd2b7cdcb5007fbcc | [
"MIT"
] | null | null | null | Computer Graphics/src/scene_texture.cpp | sergio5405/Computer-Graphics-Project | 829cd1f25caaa88070a0aeccd2b7cdcb5007fbcc | [
"MIT"
] | null | null | null | Computer Graphics/src/scene_texture.cpp | sergio5405/Computer-Graphics-Project | 829cd1f25caaa88070a0aeccd2b7cdcb5007fbcc | [
"MIT"
] | null | null | null | #include "scene_texture.h"
#include "ifile.h"
#include "time.h"
#include "cgmath.h"
#include "vec2.h"
#include "vec3.h"
#include "mat3.h"
#include "mat4.h"
#include <string>
#include <vector>
scene_texture::~scene_texture() {
glDeleteProgram(shader_program);
}
void scene_texture::init() {
std::vector<cgmath::vec... | 32.307479 | 87 | 0.717311 | sergio5405 |
ae551ceeabbd4f32ea97ede9162edf49c11e9545 | 2,054 | cpp | C++ | bazaar/PixRaster/UppLept.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | bazaar/PixRaster/UppLept.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | bazaar/PixRaster/UppLept.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include "PixRaster.h"
#include <Draw/Draw.h>
NAMESPACE_UPP
///////////////////////////////////////////////////////////////////////////////
// All Leptonica routines operates on Pix data structures; here 2 conversion
// routines are provided to go to/from Upp Images
//////////////////////////////////////////////////... | 25.675 | 79 | 0.588121 | dreamsxin |
ae5542944f061d0fc74cb545b84b0d4b3d8b6986 | 448 | cpp | C++ | src/get_texture_colour.cpp | jackys-95/computer-graphics-final-image-competition | 65e7c041530f319d10faba177ef03963aad16e56 | [
"MIT"
] | null | null | null | src/get_texture_colour.cpp | jackys-95/computer-graphics-final-image-competition | 65e7c041530f319d10faba177ef03963aad16e56 | [
"MIT"
] | null | null | null | src/get_texture_colour.cpp | jackys-95/computer-graphics-final-image-competition | 65e7c041530f319d10faba177ef03963aad16e56 | [
"MIT"
] | null | null | null | #include "get_texture_colour.h"
#include <iostream>
Eigen::Vector3d get_texture_colour(const std::vector<unsigned char> &rgb, const int height,
const int width, const int offset)
{
int new_height = 0;
if (offset == 247)
{
new_height = 360 - height;
}
else
{
new_height = height;
}
int start_i... | 24.888889 | 92 | 0.676339 | jackys-95 |
ae5b4d125742c200e4661b8418e7cdd46ff338a4 | 958 | hpp | C++ | fsc/include/fsx/sim_event.hpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | fsc/include/fsx/sim_event.hpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | fsc/include/fsx/sim_event.hpp | gbucknell/fsc-sdk | 11b7cda4eea35ec53effbe37382f4b28020cd59d | [
"MIT"
] | null | null | null | // (c) Copyright 2008 Samuel Debionne.
//
// Distributed under the MIT Software License. (See accompanying file
// license.txt) or copy at http://www.opensource.org/licenses/mit-license.php)
//
// See http://code.google.com/p/fsc-sdk/ for the library home page.
//
// $Revision: $
// $History: $
/// \fi... | 17.418182 | 94 | 0.656576 | gbucknell |
ae609a38d49a1719bae957c603e67db286fac184 | 20,403 | cpp | C++ | hackathon/XuanZhao/TraceNeuronBasedLine/branchtree.cpp | MoritzNegwer/vaa3d_tools | bdb2dc95bc13e9a31e1d416cc341c00d97153968 | [
"MIT"
] | null | null | null | hackathon/XuanZhao/TraceNeuronBasedLine/branchtree.cpp | MoritzNegwer/vaa3d_tools | bdb2dc95bc13e9a31e1d416cc341c00d97153968 | [
"MIT"
] | null | null | null | hackathon/XuanZhao/TraceNeuronBasedLine/branchtree.cpp | MoritzNegwer/vaa3d_tools | bdb2dc95bc13e9a31e1d416cc341c00d97153968 | [
"MIT"
] | null | null | null | #include "branchtree.h"
#include <queue>
void adjustRalationForSplitBranches(Branch *origin, vector<Branch *> target) {
target.front()->parent = origin->parent;
if (origin->parent) {
auto it = origin->parent->children.begin();
for (; it != origin->parent->children.end(); ++it) {
if... | 36.82852 | 134 | 0.538646 | MoritzNegwer |
ae615bac2d2f06e2f0a8f5674d924c2d6e7c1292 | 546 | hh | C++ | cs252/LABS/shell/command.hh | fshafi1997/PurdueComputerScience | 673c56daf80f059f5064c3e096a9e27d9c84a7a5 | [
"MIT"
] | null | null | null | cs252/LABS/shell/command.hh | fshafi1997/PurdueComputerScience | 673c56daf80f059f5064c3e096a9e27d9c84a7a5 | [
"MIT"
] | null | null | null | cs252/LABS/shell/command.hh | fshafi1997/PurdueComputerScience | 673c56daf80f059f5064c3e096a9e27d9c84a7a5 | [
"MIT"
] | null | null | null | #ifndef command_hh
#define command_hh
#include "simpleCommand.hh"
// Command Data Structure
struct Command {
std::vector<SimpleCommand *> _simpleCommands;
std::string * _outFile;
std::string * _inFile;
std::string * _errFile;
bool _background;
int _counterOut;
int _counterIn;
int appendFlag;
Comma... | 18.2 | 60 | 0.721612 | fshafi1997 |
ae62f1acdcbd3b242c2ab531e9039846d26c5ebe | 2,994 | cpp | C++ | src/Eos/SurfaceGroup/eossurfacegroupclient.cpp | sparkleholic/qml-webos-framework | dbf1f8608ae88b189dedd358acc97d9504425996 | [
"Apache-2.0"
] | 12 | 2018-03-17T12:35:32.000Z | 2021-10-15T09:04:56.000Z | src/Eos/SurfaceGroup/eossurfacegroupclient.cpp | sparkleholic/qml-webos-framework | dbf1f8608ae88b189dedd358acc97d9504425996 | [
"Apache-2.0"
] | 2 | 2020-05-28T14:58:01.000Z | 2022-02-04T04:03:07.000Z | src/Eos/SurfaceGroup/eossurfacegroupclient.cpp | sparkleholic/qml-webos-framework | dbf1f8608ae88b189dedd358acc97d9504425996 | [
"Apache-2.0"
] | 5 | 2018-03-22T18:54:18.000Z | 2020-03-04T19:20:01.000Z | // Copyright (c) 2015-2018 LG Electronics, 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 law or... | 25.810345 | 102 | 0.642285 | sparkleholic |
ae6907210038d0f445acfc2d470f884aadd55ec4 | 802 | hpp | C++ | ql/experimental/templatemodels/hybrid/hybridmodels.hpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/templatemodels/hybrid/hybridmodels.hpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/templatemodels/hybrid/hybridmodels.hpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2019 Sebastian Schlenkrich
*/
/*! \file hybridmodels.hpp
\brief bind template types to double
*/
#ifndef quantlib_hybridmodels_hpp
#define quantlib_hybridmodels_hpp
#include <ql/experimental/templatemodels/hybrid... | 25.0625 | 85 | 0.753117 | sschlenkrich |
ae6a31d9655395ef70277c4e533cd2fd26227972 | 671 | cpp | C++ | src/ProjectileGraphicsComponent.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 6 | 2017-05-10T19:25:23.000Z | 2021-04-08T23:55:17.000Z | src/ProjectileGraphicsComponent.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 1 | 2017-11-10T12:17:26.000Z | 2017-11-10T12:17:26.000Z | src/ProjectileGraphicsComponent.cpp | filipecaixeta/NeonEdgeGame | 7dbc825507d731d60a96b4a82975a70e6aa68d7e | [
"MIT"
] | 5 | 2017-05-30T01:07:46.000Z | 2021-04-08T23:55:19.000Z | // Copyright (c) 2017 Neon Edge Game.
#include "ProjectileGraphicsComponent.h"
#include "Projectile.h"
#include "Rect.h"
ProjectileGraphicsComponent::ProjectileGraphicsComponent(std::string baseNameParam):
GraphicsComponent(baseNameParam) {
AddSprite(baseName, "Projectile", 4, 80);
sprite = sprites["Pr... | 29.173913 | 84 | 0.755589 | filipecaixeta |
ae6b36b615553c52c30538243fca26525e741ce4 | 323 | hxx | C++ | inc/html5xx.d/Article.hxx | astrorigin/html5xx | cbaaeb232597a713630df7425752051036cf0cb2 | [
"MIT"
] | null | null | null | inc/html5xx.d/Article.hxx | astrorigin/html5xx | cbaaeb232597a713630df7425752051036cf0cb2 | [
"MIT"
] | null | null | null | inc/html5xx.d/Article.hxx | astrorigin/html5xx | cbaaeb232597a713630df7425752051036cf0cb2 | [
"MIT"
] | null | null | null | /*
*
*/
#ifndef _HTML5XX_ARTICLE_HXX_
#define _HTML5XX_ARTICLE_HXX_
#include "Element.hxx"
using namespace std;
namespace html
{
class Article: public Element
{
public:
Article():
Element(Block, "article")
{}
};
} // end namespace html
#endif // _HTML5XX_ARTICLE_HXX_
// vi: set ai et sw=2 sts=2 ts=2... | 10.766667 | 34 | 0.678019 | astrorigin |
ae6e20ab813074a83619a655aae7ccdca6126795 | 4,408 | hpp | C++ | common/array.hpp | ChaosGroup/cg2_2014_demo | fd7a70399321e9cdbc205ff1c74dd04ed7b922f0 | [
"MIT"
] | 1 | 2016-03-01T16:44:06.000Z | 2016-03-01T16:44:06.000Z | common/array.hpp | ChaosGroup/cg2_2014_demo | fd7a70399321e9cdbc205ff1c74dd04ed7b922f0 | [
"MIT"
] | null | null | null | common/array.hpp | ChaosGroup/cg2_2014_demo | fd7a70399321e9cdbc205ff1c74dd04ed7b922f0 | [
"MIT"
] | null | null | null | #ifndef array_H__
#define array_H__
#include <assert.h>
#include <stdlib.h>
#include <stdint.h>
#include "aligned_ptr.hpp"
template < typename ELEMENT_T, size_t ALIGNMENT = 64 >
class Array
{
enum { alignment = ALIGNMENT };
protected:
uint32_t m_capacity;
uint32_t m_count;
aligned_ptr< ELEMENT_T, alignment > m_... | 17.151751 | 60 | 0.690563 | ChaosGroup |
ae6e79bfa2356803e033cc0b24673eaff495daca | 4,352 | cpp | C++ | conui/examples/Test5ValEdit.cpp | amalk/GUI-CLI | a08f3eed8d65c1cfef259397990f9e218a77d594 | [
"MIT"
] | 3 | 2016-08-17T09:35:16.000Z | 2019-02-07T21:27:58.000Z | conui/examples/Test5ValEdit.cpp | amalk/GUI-CLI | a08f3eed8d65c1cfef259397990f9e218a77d594 | [
"MIT"
] | null | null | null | conui/examples/Test5ValEdit.cpp | amalk/GUI-CLI | a08f3eed8d65c1cfef259397990f9e218a77d594 | [
"MIT"
] | 3 | 2016-08-17T09:35:21.000Z | 2018-02-14T08:14:35.000Z | // Console Input Output Library Tester program for CValEdit
// Test5ValEdit.cpp
//
// Fardad Soleimanloo, Chris Szalwinski
// Oct 10 2012
// Version 0.9
#include "cuigh.h"
#include "console.h"
#include "cframe.h"
#include "cdialog.h"
#include "clabel.h"
#include "cveditline.h"
#include "cbutton.h"
#include <cstring>
... | 21.544554 | 99 | 0.516774 | amalk |
ae6e8aa318c8889f6cca7de9f3eeb46bc5c3eb03 | 2,182 | cpp | C++ | test/libwebsocket-mock/mock_lws_minimal.cpp | costanic/mbed-edge | 4900e950ff67f8974b7aeef955289ef56606c964 | [
"Apache-2.0"
] | 24 | 2018-03-27T16:44:18.000Z | 2020-04-28T15:28:34.000Z | test/libwebsocket-mock/mock_lws_minimal.cpp | costanic/mbed-edge | 4900e950ff67f8974b7aeef955289ef56606c964 | [
"Apache-2.0"
] | 19 | 2021-01-28T20:14:45.000Z | 2021-11-23T13:08:59.000Z | test/libwebsocket-mock/mock_lws_minimal.cpp | costanic/mbed-edge | 4900e950ff67f8974b7aeef955289ef56606c964 | [
"Apache-2.0"
] | 28 | 2018-04-02T02:36:48.000Z | 2020-10-13T05:37:16.000Z | #include "CppUTestExt/MockSupport.h"
#include "cpputest-custom-types/value_pointer.h"
extern "C" {
#include "libwebsockets.h"
}
int lws_callback_on_writable(struct lws *wsi)
{
return mock().actualCall("lws_callback_on_writable")
.returnIntValueOrDefault(0);
}
size_t lws_remaining_packet_payload(struct lws... | 31.623188 | 108 | 0.681027 | costanic |
ae6ed21530c39a8428342f0b94e687f912f25877 | 22,053 | cpp | C++ | tests/constraint/test_RnBoxConstraint.cpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 181 | 2016-04-22T15:11:23.000Z | 2022-03-26T12:51:08.000Z | tests/constraint/test_RnBoxConstraint.cpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 514 | 2016-04-20T04:29:51.000Z | 2022-02-10T19:46:21.000Z | tests/constraint/test_RnBoxConstraint.cpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 31 | 2017-03-17T09:53:02.000Z | 2022-03-23T10:35:05.000Z | #include <dart/common/Memory.hpp>
#include <gtest/gtest.h>
#include <aikido/common/memory.hpp>
#include <aikido/constraint/uniform/RnBoxConstraint.hpp>
#include <aikido/distance/RnEuclidean.hpp>
#include "SampleGeneratorCoverage.hpp"
using aikido::common::RNG;
using aikido::common::RNGWrapper;
using aikido::constrai... | 31.730935 | 80 | 0.635378 | personalrobotics |
ae706494abacc4054ca1c640a0e4f4f245f031c0 | 17,359 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/view/InputDevice.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/view/InputDevice.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/view/InputDevice.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 27.953301 | 110 | 0.645832 | jingcao80 |
ae71a4ef975ed4a1f28cc8068cf32da4b32e4d2b | 3,722 | hpp | C++ | src/mge/core/GameObject.hpp | mtesseracttech/CustomEngine | 1a9ed564408ae29fe49681a810b851403d71f486 | [
"Apache-2.0"
] | null | null | null | src/mge/core/GameObject.hpp | mtesseracttech/CustomEngine | 1a9ed564408ae29fe49681a810b851403d71f486 | [
"Apache-2.0"
] | null | null | null | src/mge/core/GameObject.hpp | mtesseracttech/CustomEngine | 1a9ed564408ae29fe49681a810b851403d71f486 | [
"Apache-2.0"
] | null | null | null | #ifndef GAMEOBJECT_H
#define GAMEOBJECT_H
#include <vector>
#include <string>
#include <iostream>
#include <glm/glm.hpp>
#include "LinearMath/btDefaultMotionState.h"
#include "BulletCollision/CollisionShapes/btSphereShape.h"
#include "BulletDynamics/Vehicle/btRaycastVehicle.h"
class RigidBody;
class AbstractBehaviour... | 29.776 | 129 | 0.754164 | mtesseracttech |
ae72d619789f6f135889a6b73e3309bce505c65c | 783 | cc | C++ | examples/cli-subcommands/greetings.cc | jfjlaros/userIO | 21e32a80ed3c652fb983780de0936a1aaec67b0c | [
"MIT"
] | 2 | 2021-11-09T11:25:55.000Z | 2021-12-08T18:47:53.000Z | examples/cli-subcommands/greetings.cc | jfjlaros/commandIO | 21e32a80ed3c652fb983780de0936a1aaec67b0c | [
"MIT"
] | null | null | null | examples/cli-subcommands/greetings.cc | jfjlaros/commandIO | 21e32a80ed3c652fb983780de0936a1aaec67b0c | [
"MIT"
] | null | null | null | /*
* Example CLI interface for multiple functions.
*/
#include <commandIO.h>
string hi(bool shout) {
if (shout) {
return "HELLO WORLD!";
}
return "Hello world.";
}
string greet(string name) {
return "Hello " + name + ".";
}
string flood(string name, int times) {
string greeting = "";
int i;
fo... | 17.021739 | 55 | 0.563218 | jfjlaros |
ae74218f8cb2aabee96af40c71347623f1a9343e | 945 | cpp | C++ | C++/Maximum Element/Solution.cpp | chessmastersan/HackerRank | 850319e6f79e7473afbb847d28edde7b2cdfc37d | [
"MIT"
] | 2 | 2019-08-07T19:58:20.000Z | 2019-08-27T00:06:09.000Z | C++/Maximum Element/Solution.cpp | chessmastersan/HackerRank | 850319e6f79e7473afbb847d28edde7b2cdfc37d | [
"MIT"
] | 1 | 2020-06-11T19:09:48.000Z | 2020-06-11T19:09:48.000Z | C++/Maximum Element/Solution.cpp | chessmastersan/HackerRank | 850319e6f79e7473afbb847d28edde7b2cdfc37d | [
"MIT"
] | 7 | 2019-08-27T00:06:11.000Z | 2021-12-11T10:01:45.000Z | /**
* @author SANKALP SAXENA
*/
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
long int n, i=1, ch, item, top=-1;
scanf("%ld",&n);
lon... | 21 | 80 | 0.373545 | chessmastersan |
ae7ad77f8d25919d3349cddc6fd908c972de005b | 13,697 | cpp | C++ | sources/VS/ThirdParty/wxWidgets/samples/widgets/gauge.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | null | null | null | sources/VS/ThirdParty/wxWidgets/samples/widgets/gauge.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | null | null | null | sources/VS/ThirdParty/wxWidgets/samples/widgets/gauge.cpp | Sasha7b9Work/S8-53M2 | fdc9cb5e3feb8055fd3f7885a6f6362f62ff6b6e | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
// Program: wxWidgets Widgets Sample
// Name: gauge.cpp
// Purpose: Part of the widgets sample showing wxGauge
// Author: Vadim Zeitlin
// Created: 27.03.01
// Copyright: (c) 2001 Vadim Zeitlin
// Licence: wxWind... | 28.835789 | 97 | 0.599036 | Sasha7b9Work |
ae814fd9c69ec00895489e21e847958a7a75a14d | 410 | cc | C++ | poj/2/2591.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | 1 | 2015-04-17T09:54:23.000Z | 2015-04-17T09:54:23.000Z | poj/2/2591.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | poj/2/2591.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main(void)
{
static const int N = 10000000;
vector<int> v(N);
int a = 0, b = 0;
v[0] = 1;
for (int i = 1; i < N; i++) {
int x = min(2*v[a]+1, 3*v[b]+1);
if (x == 2*v[a]+1) {
a++;
}
if (x == 3*v[b]+1) {
b++;
}
v... | 14.642857 | 36 | 0.429268 | eagletmt |
ae81c922341310210d05bf5ccbe9a368b12e9ce0 | 1,086 | hpp | C++ | function/codeFunction.hpp | TaylorP/TML | e4c0c7ce69645a1cf30df005af786a15f85b54a2 | [
"MIT"
] | 4 | 2015-12-17T21:58:27.000Z | 2019-10-31T16:50:41.000Z | function/codeFunction.hpp | TaylorP/TML | e4c0c7ce69645a1cf30df005af786a15f85b54a2 | [
"MIT"
] | null | null | null | function/codeFunction.hpp | TaylorP/TML | e4c0c7ce69645a1cf30df005af786a15f85b54a2 | [
"MIT"
] | 1 | 2019-05-07T18:51:00.000Z | 2019-05-07T18:51:00.000Z | #ifndef CODE_FUNCTION_HPP
#define CODE_FUNCTION_HPP
#include "function/function.hpp"
#include "exception/functionException.hpp"
/// Function for full width code blocks
class CodeFunction : public Function
{
public:
/// Constructs a new code function
CodeFunction(const bool pFilter)
: Function(pFilter)... | 25.255814 | 78 | 0.577348 | TaylorP |
ae857cf2e59e794dc8dcefaa309ac2c647a69b70 | 840 | cpp | C++ | Durna/Source/Runtime/Platform/OpenGL/OpenGLContext.cpp | MrWpGg/Durna | 62c8ca2d69623e70e2dac49a5560cd3ac2c304ed | [
"Apache-2.0"
] | null | null | null | Durna/Source/Runtime/Platform/OpenGL/OpenGLContext.cpp | MrWpGg/Durna | 62c8ca2d69623e70e2dac49a5560cd3ac2c304ed | [
"Apache-2.0"
] | null | null | null | Durna/Source/Runtime/Platform/OpenGL/OpenGLContext.cpp | MrWpGg/Durna | 62c8ca2d69623e70e2dac49a5560cd3ac2c304ed | [
"Apache-2.0"
] | null | null | null | #include "DurnaPCH.h"
#include "OpenGLContext.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <gl/GL.h>
namespace Durna
{
OpenGLContext::OpenGLContext(GLFWwindow* InWindowHandle)
: WindowHandle(InWindowHandle)
{
DRN_ASSERT(WindowHandle, "WindowHandle is null!")
}
void OpenGLContext::Init()
{
D... | 21.538462 | 66 | 0.736905 | MrWpGg |
ae8a84f1881c8f25d27c1cb296519ae738c84b22 | 2,627 | cpp | C++ | src/network/vector_write.cpp | mpbarnwell/lightstep-tracer-cpp | 4f8f110e7b69d1b8d24c9ea130cd560295e479b6 | [
"MIT"
] | 47 | 2016-05-23T10:39:50.000Z | 2022-03-08T08:46:25.000Z | src/network/vector_write.cpp | mpbarnwell/lightstep-tracer-cpp | 4f8f110e7b69d1b8d24c9ea130cd560295e479b6 | [
"MIT"
] | 63 | 2016-07-26T00:02:09.000Z | 2022-03-11T07:20:44.000Z | src/network/vector_write.cpp | mpbarnwell/lightstep-tracer-cpp | 4f8f110e7b69d1b8d24c9ea130cd560295e479b6 | [
"MIT"
] | 19 | 2016-09-21T17:59:03.000Z | 2021-09-16T06:42:40.000Z | #include "network/vector_write.h"
#include <algorithm>
#include <cassert>
#include <cerrno>
#include <climits>
#include <cstring>
#include <iterator>
#include <sstream>
#include <stdexcept>
#include "common/platform/error.h"
#include "common/platform/memory.h"
#include "common/platform/network.h"
namespace lightstep... | 29.852273 | 100 | 0.625809 | mpbarnwell |
ae8d05d82a6f88cc465c3192a18107f3ee98669a | 1,326 | cpp | C++ | aws-cpp-sdk-cognito-idp/source/model/SetUserMFAPreferenceRequest.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-cognito-idp/source/model/SetUserMFAPreferenceRequest.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-cognito-idp/source/model/SetUserMFAPreferenceRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cognito-idp/model/SetUserMFAPreferenceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::CognitoIdentityProvider::Model;
using namespace... | 22.862069 | 119 | 0.775264 | lintonv |
ae8d9be81b36679f7935111b3f8dac0d2e28a798 | 7,590 | cpp | C++ | source/AI/deeplearning/Normalization.cpp | TrojanVulgar/AI-framework | 46779b44ebb542ff88b8b9e91fb9a0889191f928 | [
"MIT",
"Unlicense"
] | 57 | 2018-02-21T13:28:23.000Z | 2022-03-05T05:48:41.000Z | src/AI/deeplearning/Normalization.cpp | Flowx08/artificial_intelligence | ab4fec14e6af3e3fca271b76fdb67f05d7e588ed | [
"MIT"
] | null | null | null | src/AI/deeplearning/Normalization.cpp | Flowx08/artificial_intelligence | ab4fec14e6af3e3fca271b76fdb67f05d7e588ed | [
"MIT"
] | 25 | 2018-08-27T01:54:03.000Z | 2022-03-04T02:58:18.000Z | ////////////////////////////////////////////////////////////
/// INCLUDES
////////////////////////////////////////////////////////////
#include "Normalization.hpp"
#include <cmath>
#include "../util/ensure.hpp"
#ifdef CUDA_BACKEND
#include "CUDA_backend.hpp"
#endif
/////////////////////////////////////////////////////... | 28.00738 | 112 | 0.570224 | TrojanVulgar |
ae8e94744ca6aae111967b6d1661e80f23646a74 | 1,150 | cpp | C++ | codeforces/C - Cycle/Time limit exceeded on test 11 (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - Cycle/Time limit exceeded on test 11 (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - Cycle/Time limit exceeded on test 11 (3).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Oct/25/2019 15:28
* solution_verdict: Time limit exceeded on test 11 language: GNU C++14
* run... | 31.081081 | 111 | 0.376522 | kzvd4729 |
ae92cacf2969dd5c33f9045e79d00e2a0f097cd7 | 6,807 | cpp | C++ | samples/tuple-builder/main.cpp | tim42/alphyn | af0c32df6813bbfded1df271283f9dd5378d0190 | [
"MIT"
] | 5 | 2016-03-05T00:39:13.000Z | 2020-01-03T09:49:21.000Z | samples/tuple-builder/main.cpp | tim42/alphyn | af0c32df6813bbfded1df271283f9dd5378d0190 | [
"MIT"
] | null | null | null | samples/tuple-builder/main.cpp | tim42/alphyn | af0c32df6813bbfded1df271283f9dd5378d0190 | [
"MIT"
] | null | null | null |
#include <tools/ct_string.hpp>
#include <tools/demangle.hpp>
#include <alphyn.hpp>
#include <default_token.hpp>
#include <iostream>
#include <tuple>
// #include <iomanip>
template<const char *TypeName, typename Type>
struct db_type_entry
{
using type = Type;
// a small comparison function
static constexpr bo... | 36.207447 | 185 | 0.680917 | tim42 |
ae94e27df10cc6338e95e909a79090597b203348 | 12,220 | cpp | C++ | engine/private/abstracts/pool-protected.cpp | cppcooper/Cheryl-Engine | 9a0b08da46539f756c6fe7d70212e9ca91c6fbe7 | [
"MIT"
] | null | null | null | engine/private/abstracts/pool-protected.cpp | cppcooper/Cheryl-Engine | 9a0b08da46539f756c6fe7d70212e9ca91c6fbe7 | [
"MIT"
] | 1 | 2019-01-22T22:07:27.000Z | 2019-01-22T22:07:27.000Z | engine/private/abstracts/pool-protected.cpp | cppcooper/cheryl-engine | 9a0b08da46539f756c6fe7d70212e9ca91c6fbe7 | [
"MIT"
] | null | null | null | #include "abstracts/pool.h"
inline bool inRange(const size_t ts, const ce_uintptr p, const ce_uintptr r, const size_t s){
return (r <= p && p < r+(ts*s));
}
inline bool inRange(const size_t &ts, const ce_uintptr &p, const size_t &ps, const ce_uintptr &r, const size_t &rs){
return (r <= p && p+(ts*ps) <... | 33.850416 | 129 | 0.562193 | cppcooper |
ae9bf247d58776908d027655c5c3c795a38d297a | 1,067 | cpp | C++ | examples/io/scoped_rdbuf.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | examples/io/scoped_rdbuf.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | examples/io/scoped_rdbuf.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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)
#include <fcppt/char_type.hpp>
#include <fcppt/make_ref.hpp>
#include <fcppt/reference_to_base.hpp>... | 30.485714 | 73 | 0.686036 | freundlich |
ae9d30de25c69e912ba510c43a532010ee55f8cc | 1,419 | cpp | C++ | 2019/8_space_image_format/B.cpp | GimmeDanger/advent-of-code | d2a6ece95801b22f972e918fa76be8466dc7afa3 | [
"MIT"
] | null | null | null | 2019/8_space_image_format/B.cpp | GimmeDanger/advent-of-code | d2a6ece95801b22f972e918fa76be8466dc7afa3 | [
"MIT"
] | null | null | null | 2019/8_space_image_format/B.cpp | GimmeDanger/advent-of-code | d2a6ece95801b22f972e918fa76be8466dc7afa3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define FAST_IO() \
ios::sync_with_stdio(false); \
cout.tie(nullptr); \
cin.tie(nullptr)
#define db... | 22.171875 | 80 | 0.372798 | GimmeDanger |
ae9db79c5cbab6496f178a5eba9ee3de03974881 | 3,196 | hpp | C++ | include/AcmeExplorer.hpp | akaguha/acme_explorer | 7c9aad2c7d9d4871b572e0a9e194ce484c77af87 | [
"BSD-3-Clause"
] | null | null | null | include/AcmeExplorer.hpp | akaguha/acme_explorer | 7c9aad2c7d9d4871b572e0a9e194ce484c77af87 | [
"BSD-3-Clause"
] | null | null | null | include/AcmeExplorer.hpp | akaguha/acme_explorer | 7c9aad2c7d9d4871b572e0a9e194ce484c77af87 | [
"BSD-3-Clause"
] | null | null | null | /**********************************************************************************
* BSD 3-Clause License
*
* Copyright (c) 2018, Akash Guha
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*... | 31.96 | 88 | 0.68179 | akaguha |
ae9f855756b68ee3c0e86dfc7c980a8cfb6e60c7 | 2,732 | cpp | C++ | boneyard/v0.10/samples/tictactoe/main.cpp | zlatko-michailov/abc | 51b607582fbcc79da76efe8370ed7a4ef8e5fc0f | [
"MIT"
] | 2 | 2020-11-05T06:06:01.000Z | 2021-01-18T15:23:11.000Z | boneyard/v0.10/samples/tictactoe/main.cpp | zlatko-michailov/abc | 51b607582fbcc79da76efe8370ed7a4ef8e5fc0f | [
"MIT"
] | 11 | 2020-11-03T11:35:57.000Z | 2020-12-10T00:49:30.000Z | boneyard/v0.10/samples/tictactoe/main.cpp | zlatko-michailov/abc | 51b607582fbcc79da76efe8370ed7a4ef8e5fc0f | [
"MIT"
] | 1 | 2020-11-05T05:39:15.000Z | 2020-11-05T05:39:15.000Z | /*
MIT License
Copyright (c) 2018-2020 Zlatko Michailov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 30.021978 | 98 | 0.702782 | zlatko-michailov |
aea40bc3c4a8c9636c15681045a396cdde4d2f1f | 1,178 | cpp | C++ | src/Overlay/Widget/GameModeSelectWidget.cpp | GrimFlash/BBCF-Improvement-Mod-GGPO | 9482ead2edd70714f427d3a5683d17b19ab8ac2e | [
"MIT"
] | 48 | 2020-06-09T22:53:52.000Z | 2022-01-02T12:44:33.000Z | src/Overlay/Widget/GameModeSelectWidget.cpp | GrimFlash/BBCF-Improvement-Mod-GGPO | 9482ead2edd70714f427d3a5683d17b19ab8ac2e | [
"MIT"
] | 2 | 2020-05-27T21:25:49.000Z | 2020-05-27T23:56:56.000Z | src/Overlay/Widget/GameModeSelectWidget.cpp | GrimFlash/BBCF-Improvement-Mod-GGPO | 9482ead2edd70714f427d3a5683d17b19ab8ac2e | [
"MIT"
] | 12 | 2020-06-17T20:44:17.000Z | 2022-01-04T18:15:27.000Z | #include "GameModeSelectWidget.h"
#include "Core/interfaces.h"
#include <imgui.h>
void GameModeSelectWidget()
{
ImGui::BeginGroup();
ImGui::PushStyleVar(ImGuiStyleVar_ChildRounding, 5.0f);
ImGui::BeginChild("GameModeSelection", ImVec2(200, 210), true);
ImGui::TextUnformatted("Select game mode:");
for (int i =... | 28.047619 | 115 | 0.741087 | GrimFlash |
aea4259ff064193e7efb0d9ca8df92be5eb99481 | 4,086 | cpp | C++ | src/dialog/TableDialog/TableDialog.cpp | BlasterAlex/Uni-Correlation-Coefficient | 709b6318d0c28a8704cfb3b1157a70fd95758e39 | [
"Apache-2.0"
] | null | null | null | src/dialog/TableDialog/TableDialog.cpp | BlasterAlex/Uni-Correlation-Coefficient | 709b6318d0c28a8704cfb3b1157a70fd95758e39 | [
"Apache-2.0"
] | null | null | null | src/dialog/TableDialog/TableDialog.cpp | BlasterAlex/Uni-Correlation-Coefficient | 709b6318d0c28a8704cfb3b1157a70fd95758e39 | [
"Apache-2.0"
] | 2 | 2019-09-04T14:34:08.000Z | 2019-09-17T05:46:36.000Z | /***
* Copyright 2019 Alexander Pishchulev (https://github.com/BlasterAlex)
*
* 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 ... | 30.721805 | 77 | 0.589574 | BlasterAlex |
aea4ab3795001276666987946d5919524daafc4c | 1,084 | hxx | C++ | src/identicals.hxx | puzzlef/pagerank-nvgraph | bbc0ddb2c898c75ad93a4087ab7a57222666d1f4 | [
"MIT"
] | null | null | null | src/identicals.hxx | puzzlef/pagerank-nvgraph | bbc0ddb2c898c75ad93a4087ab7a57222666d1f4 | [
"MIT"
] | null | null | null | src/identicals.hxx | puzzlef/pagerank-nvgraph | bbc0ddb2c898c75ad93a4087ab7a57222666d1f4 | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <vector>
#include <utility>
#include <algorithm>
#include "_main.hxx"
#include "vertices.hxx"
using std::map;
using std::vector;
using std::move;
using std::sort;
template <class G, class J>
auto edgeIdenticalsFromSize(const G& x, const J& ks, size_t n) {
using K = typename G... | 20.45283 | 64 | 0.663284 | puzzlef |
aea4b12af672195e2cb87e4e44f68d99a15ba8fd | 3,478 | cpp | C++ | tr3_embedded/Actuator_v3/src/Controller.setup.cpp | SlateRobotics/tr3_essentials | c8608f04a83a5ca53f25ce0e5f6bce217e378c6f | [
"MIT"
] | 2 | 2021-01-22T05:52:10.000Z | 2021-02-09T18:11:20.000Z | tr3_embedded/Actuator_v3/src/Controller.setup.cpp | SlateRobotics/tr3_essentials | c8608f04a83a5ca53f25ce0e5f6bce217e378c6f | [
"MIT"
] | 1 | 2020-08-07T08:47:52.000Z | 2020-08-07T08:47:52.000Z | tr3_embedded/Actuator_v3/src/Controller.setup.cpp | SlateRobotics/tr3_essentials | c8608f04a83a5ca53f25ce0e5f6bce217e378c6f | [
"MIT"
] | 3 | 2020-08-03T17:42:18.000Z | 2021-04-06T14:23:35.000Z | #include "Controller.h"
void Controller::setUp () {
led.setUp();
motor.setUp();
led.white();
pinMode(PIN_ACS712, INPUT);
pinMode(PIN_FAN, OUTPUT);
fanOff();
encoderTorque.setUp();
encoderTorque.storage = &storage;
encoderTorque.EEADDR_ENC_OFFSET = EEADDR_ENC_TRQ_OFFSET;
encod... | 35.131313 | 81 | 0.682289 | SlateRobotics |