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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a19fd6f460dca005b48c869a9448f1303222042 | 22,433 | hxx | C++ | main/xmloff/inc/txtflde.hxx | jimjag/openoffice | 74746a22d8cc22b031b00fcd106f4496bf936c77 | [
"Apache-2.0"
] | 1 | 2019-12-27T19:25:34.000Z | 2019-12-27T19:25:34.000Z | main/xmloff/inc/txtflde.hxx | ackza/openoffice | d49dfe9c625750e261c7ed8d6ccac8d361bf3418 | [
"Apache-2.0"
] | 1 | 2019-11-25T03:08:58.000Z | 2019-11-25T03:08:58.000Z | main/xmloff/inc/txtflde.hxx | ackza/openoffice | d49dfe9c625750e261c7ed8d6ccac8d361bf3418 | [
"Apache-2.0"
] | 6 | 2019-11-19T00:28:25.000Z | 2019-11-22T06:48:49.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... | 41.697026 | 95 | 0.717247 | jimjag |
1a1f918e9d0f00e54705b9fdbb05cb24e0112a3b | 1,709 | cpp | C++ | lib/core/barf_filoc.cpp | vdods/barf | 5c943ddbd6a0a7624645158b0c85994431dde269 | [
"Apache-2.0"
] | 1 | 2021-01-16T00:55:45.000Z | 2021-01-16T00:55:45.000Z | lib/core/barf_filoc.cpp | vdods/barf | 5c943ddbd6a0a7624645158b0c85994431dde269 | [
"Apache-2.0"
] | null | null | null | lib/core/barf_filoc.cpp | vdods/barf | 5c943ddbd6a0a7624645158b0c85994431dde269 | [
"Apache-2.0"
] | null | null | null | // 2006.02.11 - Copyright Victor Dods - Licensed under Apache 2.0
#include "barf_filoc.hpp"
#include <sstream>
#include "barf_message.hpp"
#include "barf_path.hpp"
#include "barf_util.hpp"
namespace Barf {
FiLoc const FiLoc::ms_invalid;
string FiLoc::AsString () const
{
assert(this != &ms_invalid && "can't us... | 28.483333 | 203 | 0.65828 | vdods |
1a1fd4b1e3c87af12644416d65e3b2aa64267894 | 6,625 | cpp | C++ | Interaction/mafDevice.cpp | FusionBox2/MAF2 | b576955f4f6b954467021f12baedfebcaf79a382 | [
"Apache-2.0"
] | 1 | 2018-01-23T09:13:40.000Z | 2018-01-23T09:13:40.000Z | Interaction/mafDevice.cpp | gradicosmo/MAF2 | 86ddf1f52a2de4479c09fd3f43dc321ff412af42 | [
"Apache-2.0"
] | null | null | null | Interaction/mafDevice.cpp | gradicosmo/MAF2 | 86ddf1f52a2de4479c09fd3f43dc321ff412af42 | [
"Apache-2.0"
] | 3 | 2020-09-24T16:04:53.000Z | 2020-09-24T16:50:30.000Z | /*=========================================================================
Program: MAF2
Module: mafDevice
Authors: Marco Petrone
Copyright (c) B3C
All rights reserved. See Copyright.txt or
http://www.scsitaly.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
th... | 29.444444 | 112 | 0.443321 | FusionBox2 |
1a23f75454e87fec87e232047398bc6715483dd8 | 4,255 | cpp | C++ | legacy/libgcrypt/tests/t-secmem.cpp | mehrdad-shokri/neopg | 05b370c04ffc019e55d75ab262d17abe6e69cafc | [
"BSD-2-Clause"
] | 224 | 2017-10-29T09:48:00.000Z | 2021-07-21T10:27:14.000Z | legacy/libgcrypt/tests/t-secmem.cpp | mehrdad-shokri/neopg | 05b370c04ffc019e55d75ab262d17abe6e69cafc | [
"BSD-2-Clause"
] | 66 | 2017-10-29T16:17:55.000Z | 2020-11-30T18:53:40.000Z | legacy/libgcrypt/tests/t-secmem.cpp | mehrdad-shokri/neopg | 05b370c04ffc019e55d75ab262d17abe6e69cafc | [
"BSD-2-Clause"
] | 22 | 2017-10-29T19:55:45.000Z | 2020-01-04T13:25:50.000Z | /* t-secmem.c - Test the secmem memory allocator
* Copyright (C) 2016 g10 Code GmbH
*
* This file is part of Libgcrypt.
*
* Libgcrypt 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 versio... | 28.557047 | 79 | 0.646533 | mehrdad-shokri |
1a24407244283a8de447784ecead1a197c425d07 | 14,876 | cpp | C++ | connectivity/drivers/emac/TARGET_Cypress/COMPONENT_SCL/interface/SclSTAInterface.cpp | mcheah-bose/mbed-os | 4a2e58006ce12d657d928419b7aa7242abe505c0 | [
"Apache-2.0"
] | 3,897 | 2015-09-04T13:42:23.000Z | 2022-03-30T16:53:07.000Z | connectivity/drivers/emac/TARGET_Cypress/COMPONENT_SCL/interface/SclSTAInterface.cpp | mcheah-bose/mbed-os | 4a2e58006ce12d657d928419b7aa7242abe505c0 | [
"Apache-2.0"
] | 13,030 | 2015-09-17T10:30:05.000Z | 2022-03-31T13:36:44.000Z | connectivity/drivers/emac/TARGET_Cypress/COMPONENT_SCL/interface/SclSTAInterface.cpp | mcheah-bose/mbed-os | 4a2e58006ce12d657d928419b7aa7242abe505c0 | [
"Apache-2.0"
] | 2,950 | 2015-09-08T19:07:05.000Z | 2022-03-31T13:37:23.000Z | /*
* Copyright 2018-2020 Cypress Semiconductor Corporation
* SPDX-License-Identifier: Apache-2.0
*
* 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... | 31.121339 | 141 | 0.652729 | mcheah-bose |
1a26c978aaeee71576e873ab6ff0e05ae1159aaa | 11,886 | cpp | C++ | sourcecode/client/nsclient/src/goproxy.cpp | nosngame/nosn | 76dc0525aa9a5baf6aca7d2c18c75b79a1d31e28 | [
"Unlicense"
] | 4 | 2019-12-04T13:06:52.000Z | 2021-09-24T04:45:53.000Z | sourcecode/client/nsclient/src/goproxy.cpp | nosngame/nosn | 76dc0525aa9a5baf6aca7d2c18c75b79a1d31e28 | [
"Unlicense"
] | null | null | null | sourcecode/client/nsclient/src/goproxy.cpp | nosngame/nosn | 76dc0525aa9a5baf6aca7d2c18c75b79a1d31e28 | [
"Unlicense"
] | null | null | null | #include "precomplie.h"
namespace NSProxy
{
CNSMap< int, CGoProxyObject* > gGoProxyObject;
CNSLuaStack& CNSGoProxy::marshal( CNSLuaStack& luaStack ) const
{
NSClient::gpLuaStack = &luaStack;
// key 为第一个对象的名称,value为数据代理
if ( NSClient::gGoLoadProc( mFileName.getBuffer( ), mParentID, mType ) == false )
NSExce... | 28.099291 | 197 | 0.692075 | nosngame |
1a2a1882902e20ae5b55c42b5824338bd5b618ef | 2,982 | cpp | C++ | zodiacgraph/edgegrouppair.cpp | IEEM-HsKA/Automotive-Security-Threat-Modelling-Tool | e3b2ea5a188b11aaa4bb329edcc0d3d1b47ae07b | [
"MIT"
] | 1 | 2021-12-08T13:27:22.000Z | 2021-12-08T13:27:22.000Z | zodiacgraph/edgegrouppair.cpp | IEEM-HsKA/Automotive-Security-Threat-Modelling-Tool | e3b2ea5a188b11aaa4bb329edcc0d3d1b47ae07b | [
"MIT"
] | null | null | null | zodiacgraph/edgegrouppair.cpp | IEEM-HsKA/Automotive-Security-Threat-Modelling-Tool | e3b2ea5a188b11aaa4bb329edcc0d3d1b47ae07b | [
"MIT"
] | null | null | null | #include "edgegrouppair.h"
#include <QGraphicsScene>
#include <QSet>
#include "edgegroup.h"
#include "labeltextfactory.h"
#include "node.h"
#include "plugedge.h"
#include "scene.h"
#include "straightdoubleedge.h"
namespace zodiac {
EdgeGroupPair::EdgeGroupPair(Scene *scene, Node *nodeA, Node *nodeB)
: EdgeGroup... | 30.428571 | 79 | 0.728706 | IEEM-HsKA |
1a2c186186b06f127a7c4507d7f6435f264df189 | 333 | cpp | C++ | definitions/patches/aspell/FreeBSD/patch-prog__checker_string.cpp | VerKnowSys/sofin-definitions | 9ca5a00fda2acd510e59d39b50bd74c930edcc26 | [
"BSD-2-Clause"
] | 1 | 2021-12-07T12:36:18.000Z | 2021-12-07T12:36:18.000Z | definitions/patches/aspell/FreeBSD/patch-prog__checker_string.cpp | VerKnowSys/sofin-definitions | 9ca5a00fda2acd510e59d39b50bd74c930edcc26 | [
"BSD-2-Clause"
] | 1 | 2019-01-10T15:36:52.000Z | 2019-01-10T15:36:53.000Z | definitions/patches/aspell/FreeBSD/patch-prog__checker_string.cpp | VerKnowSys/sofin-definitions | 9ca5a00fda2acd510e59d39b50bd74c930edcc26 | [
"BSD-2-Clause"
] | null | null | null | --- prog/checker_string.cpp.orig Thu Jul 17 19:39:02 2003
+++ prog/checker_string.cpp Thu Jul 17 19:39:09 2003
@@ -4,6 +4,7 @@
// license along with this library if you did not you can find
// it at http://www.gnu.org/.
+#include <assert.h>
#include "checker_string.hpp"
#include "speller.hpp"
#include "document_... | 30.272727 | 63 | 0.696697 | VerKnowSys |
1a2fc46c2a343865fa8a7168cc966fcfdd154606 | 5,917 | cpp | C++ | Project/zoolib/HTTP/Content.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | 13 | 2015-01-28T21:05:09.000Z | 2021-11-03T22:21:11.000Z | Project/zoolib/HTTP/Content.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | null | null | null | Project/zoolib/HTTP/Content.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | 4 | 2018-11-16T08:33:33.000Z | 2021-12-11T19:40:46.000Z | // Copyright (c) 2014 Andrew Green. MIT License. http://www.zoolib.org
#include "zoolib/HTTP/Content.h"
#include "zoolib/Chan_XX_Limited.h"
#include "zoolib/ChanW_Bin_More.h"
#include "zoolib/Memory.h"
#include "zoolib/MIME.h"
#include "zoolib/Util_Chan.h"
#include "zoolib/Util_string.h"
namespace ZooLib {
namespace... | 25.072034 | 100 | 0.63495 | ElectricMagic |
1a301dcb9e1b9fbf94709eb6b61e15dfe87ef1fc | 3,305 | cc | C++ | src/starttls.cc | dwd/ConMan | e1226e811cdd258ef77a68c56dfaa2657f23492a | [
"MIT"
] | 1 | 2017-03-17T18:02:01.000Z | 2017-03-17T18:02:01.000Z | src/starttls.cc | dwd/ConMan | e1226e811cdd258ef77a68c56dfaa2657f23492a | [
"MIT"
] | null | null | null | src/starttls.cc | dwd/ConMan | e1226e811cdd258ef77a68c56dfaa2657f23492a | [
"MIT"
] | null | null | null | #include "feature.h"
#include "stanza.h"
#include "xmppexcept.h"
#include "router.h"
#include "netsession.h"
#include "config.h"
#include <memory>
#include <event2/bufferevent_ssl.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/rand.h>
using namespace Metre;
using namespace rapidxml;
namespace... | 35.159574 | 134 | 0.626626 | dwd |
1a31771161fe8f3544d44b68218306582a1f152d | 352 | hpp | C++ | src/triangle.hpp | tsoding/ray-tracer | c8d189cc53445cae56bfb5e4f76926b93d0e67d5 | [
"MIT"
] | 16 | 2016-05-25T10:33:41.000Z | 2019-09-02T22:09:00.000Z | src/triangle.hpp | tsoding/ray-tracer | c8d189cc53445cae56bfb5e4f76926b93d0e67d5 | [
"MIT"
] | 67 | 2018-07-16T10:34:20.000Z | 2018-10-23T16:02:43.000Z | src/triangle.hpp | tsoding/ray-tracer | c8d189cc53445cae56bfb5e4f76926b93d0e67d5 | [
"MIT"
] | 5 | 2018-07-31T19:09:08.000Z | 2018-08-21T21:31:44.000Z | #ifndef TRIANGLE_HPP_
#define TRIANGLE_HPP_
#include "vec.hpp"
#include "wall.hpp"
// TODO(#65): support for triangle meshes from obj files
struct Triangle {
v3f v1, v2, v3;
};
plane plane_of_triangle(const Triangle &triangle);
bool ray_hits_triangle(const Triangle &triangle,
const v3f &... | 18.526316 | 56 | 0.693182 | tsoding |
1a33ad5d47add3d5ac5bafec0e805dc293c93e3c | 4,446 | cpp | C++ | Snake/server/src/Server.cpp | BMZE/RVR-FinalProject | c9ee0fc65f159c329f831ba16b2aec72bda2fc75 | [
"MIT"
] | null | null | null | Snake/server/src/Server.cpp | BMZE/RVR-FinalProject | c9ee0fc65f159c329f831ba16b2aec72bda2fc75 | [
"MIT"
] | null | null | null | Snake/server/src/Server.cpp | BMZE/RVR-FinalProject | c9ee0fc65f159c329f831ba16b2aec72bda2fc75 | [
"MIT"
] | null | null | null | #include "Server.h"
#include <string>
#include <unistd.h>
#include <string.h>
#include <iostream>
#include <pthread.h>
#include "Message.h"
#include "Socket.h"
#include "InputInfo.h"
#include "ServerGame.h"
#pragma region STATIC ATTRIBUTES
ServerGame* Server::_game = nullptr;
volatile bool Server::_inputRegistered ... | 27.7875 | 95 | 0.523842 | BMZE |
1a369174ac4ebb2de07ca544bc39389415e4b708 | 57 | cpp | C++ | frame.cpp | spiroyster/frend | 24012ca09df82fc3bb11e84dfa3526b6f3c3c251 | [
"BSD-2-Clause"
] | null | null | null | frame.cpp | spiroyster/frend | 24012ca09df82fc3bb11e84dfa3526b6f3c3c251 | [
"BSD-2-Clause"
] | null | null | null | frame.cpp | spiroyster/frend | 24012ca09df82fc3bb11e84dfa3526b6f3c3c251 | [
"BSD-2-Clause"
] | null | null | null | #include "frend.hpp"
namespace frend
{
} | 6.333333 | 21 | 0.508772 | spiroyster |
1a3888f4f6e76123a8e7d1a33c44460adb94630f | 2,929 | cpp | C++ | Chapter_1_Introduction/Adhoc_Problems/vjudge_UVA-10388_snap.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_1_Introduction/Adhoc_Problems/vjudge_UVA-10388_snap.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_1_Introduction/Adhoc_Problems/vjudge_UVA-10388_snap.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | // UVa 10388 Snap
// Use basic deque operations and the random() function to simulate a card game
// Annoying presentation errors from printing extra newline chars. Also remember to clean up data structures between test cases!
// Time: O(1) since limited by 1000 moves, Memory: O(N) where N is the number of cards in the... | 29 | 128 | 0.435302 | BrandonTang89 |
1a38ac714f0267e3740415ec76da25f163f7978e | 1,345 | cpp | C++ | cppcheck/data/c_files/398.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | 2 | 2022-03-23T12:16:20.000Z | 2022-03-31T06:19:40.000Z | cppcheck/data/c_files/398.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | cppcheck/data/c_files/398.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | bool SiteInstanceImpl::ShouldLockToOrigin(BrowserContext* browser_context,
GURL site_url) {
// Don't lock to origin in --single-process mode, since this mode puts
// cross-site pages into the same process.
if (RenderProcessHost::run_renderer_in_process())
return false;
if (!DoesSiteRequireDedicatedProcess(browser_cont... | 38.428571 | 76 | 0.769517 | awsm-research |
1a3b150267604c5d14f0068ecc533128d0d3b44f | 2,234 | cc | C++ | GUI/AScope/ChannelConnection.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | GUI/AScope/ChannelConnection.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | GUI/AScope/ChannelConnection.cc | jwillemsen/sidecar | 941d9f3b84d05ca405df1444d4d9fd0bde03887f | [
"MIT"
] | null | null | null | #include "GUI/LogUtils.h"
#include "History.h"
#include "HistoryPosition.h"
#include "PeakBarRenderer.h"
#include "VideoChannel.h"
#include "Visualizer.h"
using namespace SideCar;
using namespace SideCar::GUI::AScope;
Logger::Log&
ChannelConnection::Log()
{
static Logger::Log& log_ = Logger::Log::Find("ascope.Ch... | 24.021505 | 118 | 0.697851 | jwillemsen |
1a3bccad1ad3d1786610dd85c77794be9d17408b | 5,254 | hpp | C++ | smartenum.hpp | therocode/smartenum | aba73929deb45d53ae2bb6cfccddbad080c365bd | [
"MIT"
] | 65 | 2015-10-06T15:56:25.000Z | 2022-02-22T09:57:35.000Z | src/Smartenum.hpp | dalyl-zero/prAIg | de1184873424e72c94ad463f24b5744769b791de | [
"MIT"
] | 4 | 2015-10-06T18:14:04.000Z | 2018-03-06T11:24:54.000Z | src/Smartenum.hpp | dalyl-zero/prAIg | de1184873424e72c94ad463f24b5744769b791de | [
"MIT"
] | 14 | 2015-10-06T16:58:02.000Z | 2020-05-09T09:21:30.000Z | #pragma once
#include <string>
#include <unordered_map>
#include <vector>
#include <cstdint>
#include <iostream>
namespace smart_enum
{
inline std::string trimWhitespace(std::string str)
{
// trim trailing whitespace
size_t endPos = str.find_last_not_of(" \t");
if(std::string::npos != e... | 31.650602 | 118 | 0.606585 | therocode |
1a3bed8cf05e05d2b2bbc5c1da0cb75f6d255c46 | 27,836 | hpp | C++ | alpaka/include/alpaka/pltf/PltfGenericSycl.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 25 | 2015-01-30T12:19:48.000Z | 2020-10-30T07:52:45.000Z | alpaka/include/alpaka/pltf/PltfGenericSycl.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 101 | 2015-01-06T11:31:26.000Z | 2020-11-09T13:51:19.000Z | alpaka/include/alpaka/pltf/PltfGenericSycl.hpp | ComputationalRadiationPhysics/mallocMC | bb2b32a4a56f7c892e14454bf6aa373a4870c32c | [
"MIT"
] | 10 | 2015-06-10T07:54:30.000Z | 2020-05-06T10:07:39.000Z | /* Copyright 2022 Jan Stephan
*
* This file is part of Alpaka.
*
* 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/.
*/
#pragma once
#ifdef ALPAKA_ACC_SYCL_ENABLED
... | 40.459302 | 118 | 0.48854 | ComputationalRadiationPhysics |
1a3c09925f96cbafc46b55a1d1437f6f778604a1 | 2,218 | inl | C++ | src/Point.inl | Leon0402/Project-Hexapod | 98aebd80282560fb7ac86d72b78a798e78f86ab1 | [
"MIT"
] | 6 | 2018-08-10T14:29:16.000Z | 2022-03-31T12:53:28.000Z | src/Point.inl | Leon0402/Project-Hexapod | 98aebd80282560fb7ac86d72b78a798e78f86ab1 | [
"MIT"
] | null | null | null | src/Point.inl | Leon0402/Project-Hexapod | 98aebd80282560fb7ac86d72b78a798e78f86ab1 | [
"MIT"
] | 1 | 2020-06-18T17:23:14.000Z | 2020-06-18T17:23:14.000Z | #ifndef POINT_INL
#define POINT_INL
#ifndef X86_64
#include <math.h>
#else
#include <cmath>
#endif
template <typename T>
Point<T>::Point(T x, T y , T z)
: x {x}, y {y}, z {z} {}
template <typename T>
void Point<T>::rotateX(T angle) {
T y0 = this->y;
T z0 = this->z;
this->y = y0*cos(angle*M_PI/180.0f) - z0*... | 35.774194 | 153 | 0.638864 | Leon0402 |
1a3e35a5f901d42bf11fea27308ea4bec533a39e | 35,802 | cpp | C++ | llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVBaseInfo.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVBaseInfo.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVBaseInfo.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | //===-- SPIRVBaseInfo.cpp - Top level definitions for SPIRV ----*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 33.366263 | 80 | 0.70943 | ornata |
1a3fa08aa466b6184c7583bef0b7cef7f17b41fc | 967 | cpp | C++ | Rosewood/src/Rosewood/Benchmark/Benchmark.cpp | dovker/Rosewood | 5131a061632732222ce68e5da5a257b8bda36ea5 | [
"Apache-2.0"
] | 1 | 2020-10-02T15:59:00.000Z | 2020-10-02T15:59:00.000Z | Rosewood/src/Rosewood/Benchmark/Benchmark.cpp | dovker/Rosewood | 5131a061632732222ce68e5da5a257b8bda36ea5 | [
"Apache-2.0"
] | null | null | null | Rosewood/src/Rosewood/Benchmark/Benchmark.cpp | dovker/Rosewood | 5131a061632732222ce68e5da5a257b8bda36ea5 | [
"Apache-2.0"
] | null | null | null | #include "rwpch.h"
#include "Benchmark.h"
namespace Rosewood
{
static std::vector<std::pair<std::string, double>> s_Benchmarks;
void Benchmark::Init()
{
s_Benchmarks = std::vector<std::pair<std::string, double>>();
s_Benchmarks.reserve(20);
}
void Benchmark::Reset()
{
s... | 24.794872 | 129 | 0.574974 | dovker |
1a4146d8664e6013d2c5eee9254de4306392b91d | 7,685 | cpp | C++ | src/App.cpp | GabrielRavier/nx-fontgen | c9af580a22a3e12deb2746cd61a384f9de39c28a | [
"MIT"
] | 1 | 2021-07-14T11:16:05.000Z | 2021-07-14T11:16:05.000Z | src/App.cpp | GabrielRavier/nx-fontgen | c9af580a22a3e12deb2746cd61a384f9de39c28a | [
"MIT"
] | null | null | null | src/App.cpp | GabrielRavier/nx-fontgen | c9af580a22a3e12deb2746cd61a384f9de39c28a | [
"MIT"
] | 1 | 2018-08-13T16:06:15.000Z | 2018-08-13T16:06:15.000Z | #include "App.h"
#include "ProgramOptions.h"
#include <SDL.h>
#include <string>
#include <fstream>
#include <array>
#include <limits>
#include <algorithm>
#include <iomanip>
#include <iostream>
#include "sdlSavePng/savepng.h"
#include "FontInfo.h"
std::vector<rbp::RectSize> App::getSrcRects(const Glyphs &glyphs, int a... | 32.702128 | 135 | 0.572154 | GabrielRavier |
1a426c9d20ce8d13da6473e2d49c68acc0c96fc3 | 282 | hpp | C++ | src/service/parse/abstract_object_parser.hpp | JustSlavic/gl2 | 1b4752d3273a1e401c970e18ae7151bba004a4ec | [
"MIT"
] | null | null | null | src/service/parse/abstract_object_parser.hpp | JustSlavic/gl2 | 1b4752d3273a1e401c970e18ae7151bba004a4ec | [
"MIT"
] | 2 | 2021-05-29T20:34:50.000Z | 2021-05-29T20:39:25.000Z | src/service/parse/abstract_object_parser.hpp | JustSlavic/gl2 | 1b4752d3273a1e401c970e18ae7151bba004a4ec | [
"MIT"
] | null | null | null | #pragma once
#include <defines.h>
#include <service/abstract_object.hpp>
namespace service {
struct abstract_object_parser {
void* impl = nullptr;
void initialize (const char* text, size_t size);
void terminate ();
abstract_object parse ();
};
} // service
| 13.428571 | 52 | 0.684397 | JustSlavic |
1a44d9255a86ac99b810ef34060859a9f0ee99d3 | 1,650 | cpp | C++ | C++/C++ primer plus/7.13/7.13-7.cpp | CX-330/Code | c4324df40a5c9dc9dcda67e951aa011cb207a489 | [
"MIT"
] | 3 | 2021-01-13T10:21:55.000Z | 2021-01-24T02:41:03.000Z | C++/C++ primer plus/7.13/7.13-7.cpp | CX-330/Code | c4324df40a5c9dc9dcda67e951aa011cb207a489 | [
"MIT"
] | null | null | null | C++/C++ primer plus/7.13/7.13-7.cpp | CX-330/Code | c4324df40a5c9dc9dcda67e951aa011cb207a489 | [
"MIT"
] | 4 | 2021-01-13T00:42:39.000Z | 2021-02-06T07:26:57.000Z | #include <iostream>
using namespace std;
const int Max = 5;
double* fill_array(double ar[], double* final);
void show_array(const double ar[], double* final);
void revalue(double r, double ar[], double* final);
int main()
{
double properties[Max];
double* finp;
finp = fill_array(properties, pr... | 24.264706 | 62 | 0.469697 | CX-330 |
1a4601e614ca78c5835226f8de71526bee8eae00 | 5,039 | cpp | C++ | src/vk/device.cpp | fur-id/sample | 8c68498ad14cc5f8869df2b9ea4ff2a91be9b558 | [
"MIT"
] | null | null | null | src/vk/device.cpp | fur-id/sample | 8c68498ad14cc5f8869df2b9ea4ff2a91be9b558 | [
"MIT"
] | null | null | null | src/vk/device.cpp | fur-id/sample | 8c68498ad14cc5f8869df2b9ea4ff2a91be9b558 | [
"MIT"
] | null | null | null | #include "vk_private.h"
#include <set>
void createDevice(std::function<void(VkPhysicalDevice pdev, VkPhysicalDeviceFeatures& enabledFeatures)> validator) {
uint32_t count;
vkcall(vkEnumeratePhysicalDevices(ctx.instance, &count, nullptr));
std::vector<VkPhysicalDevice> physicalDevices(count);
vkcall(vk... | 42.70339 | 116 | 0.631078 | fur-id |
1a4696dd04340b3c8f7c672dd53fd73cfb828e81 | 8,556 | cc | C++ | src/cards.cc | thomasmarsh/monkey | de79536cad78371cf25ea0c26a492f700e2c92f8 | [
"MIT"
] | 6 | 2016-08-31T06:26:32.000Z | 2022-02-10T23:28:29.000Z | src/cards.cc | thomasmarsh/monkey | de79536cad78371cf25ea0c26a492f700e2c92f8 | [
"MIT"
] | 1 | 2017-04-26T16:37:35.000Z | 2017-04-26T16:37:35.000Z | src/cards.cc | thomasmarsh/monkey | de79536cad78371cf25ea0c26a492f700e2c92f8 | [
"MIT"
] | null | null | null | #include "cards.h"
#include "log.h"
#include <json11.hpp>
#include <fstream>
using namespace json11;
using CardTable = std::vector<Card>;
std::map<Action,std::string> CARD_ACTION_DESC;
CardTable CARD_TABLE_PROTO;
CardTable CARD_TABLE;
const Card& Card::Get(CardRef card) {
return CARD_TABLE[card];
}
std::strin... | 35.65 | 84 | 0.584385 | thomasmarsh |
1a477ec810c4ef21fd2a882989d812e1ddbfa0af | 1,048 | cpp | C++ | test/unit/property_map.cpp | hotgloupi/configure | 888cf725c93df5a1cf01794cc0a581586a82855c | [
"BSD-3-Clause"
] | 1 | 2015-11-13T10:37:35.000Z | 2015-11-13T10:37:35.000Z | test/unit/property_map.cpp | hotgloupi/configure | 888cf725c93df5a1cf01794cc0a581586a82855c | [
"BSD-3-Clause"
] | 19 | 2015-02-10T17:18:58.000Z | 2015-07-11T11:31:08.000Z | test/unit/property_map.cpp | hotgloupi/configure | 888cf725c93df5a1cf01794cc0a581586a82855c | [
"BSD-3-Clause"
] | null | null | null |
#include <configure/PropertyMap.hpp>
BOOST_AUTO_TEST_CASE(dirtyness)
{
configure::PropertyMap m;
BOOST_CHECK_EQUAL(m.dirty(), false);
m.set<std::string>("test", "lol");
BOOST_CHECK_EQUAL(m.dirty(), true);
m.mark_clean();
BOOST_CHECK_EQUAL(m.dirty(), false);
m.set<std::string>("test", "lol");
BOOST_CHECK_E... | 24.372093 | 43 | 0.693702 | hotgloupi |
1a47b95dfd18ccdecdf8f894674599ae22fcf099 | 61,234 | cpp | C++ | src/ciyam_files.cpp | Aloz1/ciyam | 424b47fd73fa1f6a1a076f8908ae7086eeeeedc5 | [
"MIT"
] | null | null | null | src/ciyam_files.cpp | Aloz1/ciyam | 424b47fd73fa1f6a1a076f8908ae7086eeeeedc5 | [
"MIT"
] | null | null | null | src/ciyam_files.cpp | Aloz1/ciyam | 424b47fd73fa1f6a1a076f8908ae7086eeeeedc5 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 CIYAM Developers
//
// Distributed under the MIT/X11 software license, please refer to the file license.txt
// in the root project directory or http://www.opensource.org/licenses/mit-license.php.
#ifdef PRECOMPILE_H
# include "precompile.h"
#endif
#pragma hdrstop
#ifndef HAS_PRECOMPILED_ST... | 27.833636 | 126 | 0.58461 | Aloz1 |
1a48882b3d39ebe45214870e17db764f4d7e133f | 27,482 | cpp | C++ | CodeParse.cpp | Robert-xiaoqiang/MIPSASM | 0d464ab8923001d4fe0d427ecbc9659613af464d | [
"MIT"
] | 2 | 2018-07-13T12:08:05.000Z | 2019-12-14T13:47:21.000Z | CodeParse.cpp | Robert-xiaoqiang/MIPSASM | 0d464ab8923001d4fe0d427ecbc9659613af464d | [
"MIT"
] | null | null | null | CodeParse.cpp | Robert-xiaoqiang/MIPSASM | 0d464ab8923001d4fe0d427ecbc9659613af464d | [
"MIT"
] | null | null | null | #include "CodeParse.h"
#include <algorithm>
#include <iomanip>
#include <sstream>
#include <cctype>
#include <regex>
#include <iterator>
map<string, pair<Type, TypeLow>> CodeParse::typeMap = {
{ "nop",{ R, RRDRSRT } },{ "NOP",{ R, RRDRSRT } },
{ "add",{ R, RRDRSRT } },{ "ADD",{ R, RRDRSRT } },
{ "addu",{ R... | 33.555556 | 107 | 0.492541 | Robert-xiaoqiang |
1a494f279f2afd0fc5385bf4e98165403158dcbb | 1,829 | cpp | C++ | OO1Lab3V2/Datum.cpp | shkemilo/Lab3HomeworkOO1 | 1ea0fd6fcb9abee1899bec02b1d17a79b11b578e | [
"MIT"
] | null | null | null | OO1Lab3V2/Datum.cpp | shkemilo/Lab3HomeworkOO1 | 1ea0fd6fcb9abee1899bec02b1d17a79b11b578e | [
"MIT"
] | null | null | null | OO1Lab3V2/Datum.cpp | shkemilo/Lab3HomeworkOO1 | 1ea0fd6fcb9abee1899bec02b1d17a79b11b578e | [
"MIT"
] | null | null | null | #include "Datum.h"
#include "Exceptions.h"
#include <iomanip>
const short Datum::monthDays[]{ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
Datum::Datum(int day, int month, int year) : day(day), month(month), year(year)
{
if (!isValidDate())
throw DateFormatException();
}
int Datum::operator[](const char* in... | 20.098901 | 84 | 0.601422 | shkemilo |
1a4adffe23974dc5ca12a0ecf5e77c05ef8cf11d | 6,860 | cpp | C++ | src/hvr_set.cpp | agrippa/hoover | f8adcad8d125f68c66b875600c27e4c5caf147e5 | [
"BSD-3-Clause"
] | 4 | 2018-05-22T02:01:26.000Z | 2020-10-13T04:55:30.000Z | src/hvr_set.cpp | agrippa/hoover | f8adcad8d125f68c66b875600c27e4c5caf147e5 | [
"BSD-3-Clause"
] | 1 | 2018-08-16T22:36:03.000Z | 2018-08-16T22:36:03.000Z | src/hvr_set.cpp | agrippa/hoover | f8adcad8d125f68c66b875600c27e4c5caf147e5 | [
"BSD-3-Clause"
] | 7 | 2018-05-21T23:37:38.000Z | 2021-03-18T01:45:56.000Z | #include <shmem.h>
#include <stdio.h>
#include <string.h>
#include "hvr_set.h"
#include "hvr_common.h"
static hvr_set_t *hvr_create_empty_set_helper(const uint64_t nelements,
const uint64_t max_n_contained, hvr_set_t *set,
bit_vec_element_type *bit_vector) {
set->n_contained = 0;
set->max_n_co... | 30.625 | 79 | 0.633673 | agrippa |
1a4b7ecf70b457d612bc520e986269c3a6a51fab | 1,285 | cpp | C++ | src/scene/controls/scroll_pane.cpp | tralf-strues/simple-gui-library | cf72b11d0d245d1a1fefbae10e4aa7fb9e763bff | [
"MIT"
] | null | null | null | src/scene/controls/scroll_pane.cpp | tralf-strues/simple-gui-library | cf72b11d0d245d1a1fefbae10e4aa7fb9e763bff | [
"MIT"
] | null | null | null | src/scene/controls/scroll_pane.cpp | tralf-strues/simple-gui-library | cf72b11d0d245d1a1fefbae10e4aa7fb9e763bff | [
"MIT"
] | null | null | null | /**
* @author Nikita Mochalov (github.com/tralf-strues)
* @file scroll_pane.cpp
* @date 2021-12-13
*
* @copyright Copyright (c) 2021
*/
#include "scene/controls/scroll_pane.h"
#include "scene/style/default_skins.h"
using namespace Sgl;
ScrollPane::ScrollPane()
{
m_DefaultSkin = new DefaultSkins::ScrollPan... | 35.694444 | 96 | 0.752529 | tralf-strues |
1a4c5afae01a106b0c6562df678fff58daafd838 | 2,328 | cpp | C++ | Source/StarFighter/HomingMissile.cpp | francis-ng/StarFighter | 00a92b4d2d276a7fe43a36ca0d1118799c25c46f | [
"CC-BY-3.0"
] | 6 | 2019-01-29T14:46:37.000Z | 2022-01-14T12:58:46.000Z | Source/StarFighter/HomingMissile.cpp | francis-ng/StarFighter | 00a92b4d2d276a7fe43a36ca0d1118799c25c46f | [
"CC-BY-3.0"
] | null | null | null | Source/StarFighter/HomingMissile.cpp | francis-ng/StarFighter | 00a92b4d2d276a7fe43a36ca0d1118799c25c46f | [
"CC-BY-3.0"
] | 3 | 2020-05-11T03:06:51.000Z | 2022-01-04T03:00:07.000Z | // Francis Ng 2017-2018
#include "HomingMissile.h"
/// BeginPlay override
void AHomingMissile::BeginPlay() {
Super::BeginPlay();
InitializeProjectile();
AcquireTarget();
}
/// Tick override
void AHomingMissile::Tick(float DeltaTime) {
Super::Tick(DeltaTime);
CalculateLifetime(DeltaTime);
if (!IsTargetValid()... | 27.069767 | 148 | 0.735395 | francis-ng |
1a4e5fc1e6a911d08568bddefbaeb8fad7302c39 | 1,139 | cpp | C++ | Engine/src/platform/OpenGL/OpenGLContext.cpp | PalliativeX/GameEngine | 704cf5f3ebc81fdf5e3e514908c3ac47305ccd33 | [
"Apache-2.0"
] | null | null | null | Engine/src/platform/OpenGL/OpenGLContext.cpp | PalliativeX/GameEngine | 704cf5f3ebc81fdf5e3e514908c3ac47305ccd33 | [
"Apache-2.0"
] | null | null | null | Engine/src/platform/OpenGL/OpenGLContext.cpp | PalliativeX/GameEngine | 704cf5f3ebc81fdf5e3e514908c3ac47305ccd33 | [
"Apache-2.0"
] | null | null | null | #include "enginepch.h"
#include "OpenGLContext.h"
#include "GLFW/glfw3.h"
#include "glad/glad.h"
namespace Engine
{
OpenGLContext::OpenGLContext(GLFWwindow* WindowHandle) :
windowHandle(WindowHandle)
{
ENGINE_ASSERT(windowHandle, "Window Handle is null!");
}
void OpenGLContext::init()
{
ENGINE_PROFILE_... | 23.729167 | 127 | 0.738367 | PalliativeX |
1a4f344a2f2171bbd28f19018eefcb49febfbce1 | 195 | cpp | C++ | source/procedural_objects/unknown_operation.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 12 | 2019-04-16T17:35:53.000Z | 2020-04-12T14:37:27.000Z | source/procedural_objects/unknown_operation.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | 47 | 2019-05-27T15:24:43.000Z | 2020-04-27T17:54:54.000Z | source/procedural_objects/unknown_operation.cpp | diegoarjz/selector | 976abd0d9e721639e6314e2599ef7e6f3dafdc4f | [
"MIT"
] | null | null | null | #include "unknown_operation.h"
namespace pagoda
{
UnknownOperation::UnknownOperation(const std::string operationName) : Exception("Unknown operation " + operationName) {}
} // namespace pagoda
| 27.857143 | 120 | 0.779487 | diegoarjz |
1a53556f26b6c5c800edb92945b3ebba9cc99c43 | 2,935 | cpp | C++ | TestCases/TestCase_007-Input/InputEffect.cpp | freehyan/Cooler | 4940cec6f98730187cf5131f0c523ff8bbb3f8c1 | [
"MIT"
] | 12 | 2017-07-05T11:45:44.000Z | 2019-03-27T11:43:50.000Z | TestCases/TestCase_007-Input/InputEffect.cpp | freehyan/Cooler | 4940cec6f98730187cf5131f0c523ff8bbb3f8c1 | [
"MIT"
] | null | null | null | TestCases/TestCase_007-Input/InputEffect.cpp | freehyan/Cooler | 4940cec6f98730187cf5131f0c523ff8bbb3f8c1 | [
"MIT"
] | null | null | null | #include "InputEffect.h"
#include <GLM/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <SOIL/SOIL.h>
#include "../../Cooler/Cooler/ProductFactory.h"
#include "../../Cooler/Cooler/GraphicsInterface.h"
#include "../../Cooler/Cooler/InputTransformer.h"
Cooler::CProductFactory<CInputEffect> theCreater("INPUT_EFF... | 29.35 | 102 | 0.649404 | freehyan |
1a55673e0697d5cfa9582ec136748ba0f6bb52a8 | 5,485 | tcc | C++ | inc/analysis/evSource_sectional.tcc | CrankOne/StromaV | ef271444d496f7a2552058638c023bc86684e780 | [
"MIT"
] | 1 | 2022-01-17T11:08:12.000Z | 2022-01-17T11:08:12.000Z | inc/analysis/evSource_sectional.tcc | CrankOne/StromaV | ef271444d496f7a2552058638c023bc86684e780 | [
"MIT"
] | null | null | null | inc/analysis/evSource_sectional.tcc | CrankOne/StromaV | ef271444d496f7a2552058638c023bc86684e780 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 Renat R. Dusaev <crank@qcrypt.org>
* Author: Renat R. Dusaev <crank@qcrypt.org>
*
* 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... | 44.233871 | 86 | 0.683683 | CrankOne |
1a58b353db84ada41094f87d7595a143ed0b1794 | 8,325 | hpp | C++ | include/tudocomp/compressors/lz78/CedarTrie.hpp | JZentgraf/tudocomp | 3a4522e3089716e4483b935e74aaae56cc547589 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/tudocomp/compressors/lz78/CedarTrie.hpp | JZentgraf/tudocomp | 3a4522e3089716e4483b935e74aaae56cc547589 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/tudocomp/compressors/lz78/CedarTrie.hpp | JZentgraf/tudocomp | 3a4522e3089716e4483b935e74aaae56cc547589 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #pragma once
#include <vector>
#include <tudocomp/compressors/lz78/LZ78Trie.hpp>
#include <tudocomp/Algorithm.hpp>
#include "cedar.hpp"
namespace tdc {
namespace lz78 {
using cedar_factorid_t = lz78::factorid_t;
using cedar_t = cedar::da<cedar_factorid_t>;
const cedar_factorid_t CEDAR_NO_VALUE = static_cast<cedar_... | 29.521277 | 107 | 0.476637 | JZentgraf |
1a5e1fb6c203da8aced8c0df7630596f2d06bc90 | 1,662 | hpp | C++ | modules/NVS/prefs.hpp | tobozo/ESP32-SIDView | 51e6ba7fee6cb6dcda2bf6c78ac7cb235cf3dc3a | [
"MIT"
] | 7 | 2020-06-02T13:04:46.000Z | 2021-03-27T18:09:19.000Z | modules/NVS/prefs.hpp | tobozo/ESP32-SIDView | 51e6ba7fee6cb6dcda2bf6c78ac7cb235cf3dc3a | [
"MIT"
] | null | null | null | modules/NVS/prefs.hpp | tobozo/ESP32-SIDView | 51e6ba7fee6cb6dcda2bf6c78ac7cb235cf3dc3a | [
"MIT"
] | null | null | null | /*\
ESP32-SIDView
https://github.com/tobozo/ESP32-SIDView
MIT License
Copyright (c) 2020 tobozo
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 with... | 28.169492 | 80 | 0.700361 | tobozo |
1a62e4c119256e49870fad3695d4d353e091dd2d | 761 | hpp | C++ | Video/VideoMode.hpp | Phles/PhlesOSPlayground | ab19eb1293a452bf73a6289f3e1198ce90444be9 | [
"MIT"
] | 2 | 2021-03-03T05:11:09.000Z | 2021-03-03T05:11:19.000Z | Video/VideoMode.hpp | Phles/PhlesOSPlayground | ab19eb1293a452bf73a6289f3e1198ce90444be9 | [
"MIT"
] | null | null | null | Video/VideoMode.hpp | Phles/PhlesOSPlayground | ab19eb1293a452bf73a6289f3e1198ce90444be9 | [
"MIT"
] | null | null | null | //Information about VideoModes
#ifndef VIDEOMODE
#define VIDEOMODE
//Class for the video mode of the monitor
enum class VideoMode{
EGA, //Enhanced Grahpics Adapter Standard Text Mode(console color mode with ASCII text)
RGB, //Direct Red Green Blue Color mode
Palette //Color mode using a color palette
};
st... | 31.708333 | 103 | 0.725361 | Phles |
1a67246c8def15bb0ccafc32bc38f04e05835cd4 | 254 | hpp | C++ | poo_basic/methods/TestObject_destrutores/TestObject.hpp | stemDaniel/ufmg-pds2 | 4dbb536a0926b617d04d133cbd3f7a5a223e113e | [
"MIT"
] | null | null | null | poo_basic/methods/TestObject_destrutores/TestObject.hpp | stemDaniel/ufmg-pds2 | 4dbb536a0926b617d04d133cbd3f7a5a223e113e | [
"MIT"
] | null | null | null | poo_basic/methods/TestObject_destrutores/TestObject.hpp | stemDaniel/ufmg-pds2 | 4dbb536a0926b617d04d133cbd3f7a5a223e113e | [
"MIT"
] | null | null | null | #ifndef TESTOBJECT
#define TESTOBJECT
#include <iostream>
using namespace std;
class TestObject {
int atributo;
public:
TestObject(int valor) : atributo(valor) {}
~TestObject() {
cout << "~TestObject" << atributo << endl;
}
};
#endif | 13.368421 | 45 | 0.661417 | stemDaniel |
1a685bc4b1a6e5e39a3c6a99ca76ae11b8296a57 | 2,383 | cpp | C++ | Day_07/03_Trapping_Rain_Water.cpp | premnaaath/SDE-180 | 6d7cc2404d310600a81adaa652049172f2e10ed8 | [
"MIT"
] | null | null | null | Day_07/03_Trapping_Rain_Water.cpp | premnaaath/SDE-180 | 6d7cc2404d310600a81adaa652049172f2e10ed8 | [
"MIT"
] | null | null | null | Day_07/03_Trapping_Rain_Water.cpp | premnaaath/SDE-180 | 6d7cc2404d310600a81adaa652049172f2e10ed8 | [
"MIT"
] | null | null | null | // Problem Link:
// https://leetcode.com/problems/trapping-rain-water/
// Approach 1: (Brute Force)
// TC: O(n^2)
// SC: O(1)
// Approach 2: (PrefixMax SuffixMax)
// TC: O(n)
// SC: O(n)
// Approach 3: (2 Pointer)
// TC: O(n)
// SC: O(1)
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define de... | 20.543103 | 85 | 0.480067 | premnaaath |
1a6a477bf3838499ea19cf939d704b9d28c5ca76 | 6,992 | hxx | C++ | include/itkBlockMatchingNormalizedCrossCorrelationNeighborhoodIteratorMetricImageFilter.hxx | tbirdso/ITKUltrasound | fb5915978de73a71b0fc43b9ce1c9d32dfa19783 | [
"Apache-2.0"
] | 38 | 2015-01-20T14:16:22.000Z | 2022-03-16T09:23:09.000Z | include/itkBlockMatchingNormalizedCrossCorrelationNeighborhoodIteratorMetricImageFilter.hxx | thewtex/ITKUltrasound | 9ab459466ffe155840fdf3de30aafb3660dba800 | [
"Apache-2.0"
] | 83 | 2015-08-05T14:09:42.000Z | 2022-03-30T20:28:03.000Z | include/itkBlockMatchingNormalizedCrossCorrelationNeighborhoodIteratorMetricImageFilter.hxx | thewtex/ITKUltrasound | 9ab459466ffe155840fdf3de30aafb3660dba800 | [
"Apache-2.0"
] | 29 | 2015-03-27T23:23:20.000Z | 2022-01-04T22:44:57.000Z | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 42.375758 | 116 | 0.730835 | tbirdso |
1a6be117bcc32e34e93f90d0e3723ceaa8fdcf7d | 2,248 | hpp | C++ | src/utils/safe_queue.hpp | pashinov/falcon2 | 08a7e5973b23927fc686ff73423099d00f14bf58 | [
"MIT"
] | 1 | 2021-05-07T06:32:45.000Z | 2021-05-07T06:32:45.000Z | src/utils/safe_queue.hpp | pashinov/falcon2 | 08a7e5973b23927fc686ff73423099d00f14bf58 | [
"MIT"
] | 5 | 2019-04-29T12:45:35.000Z | 2019-05-01T14:10:53.000Z | src/utils/safe_queue.hpp | pashinov/amsp | 08a7e5973b23927fc686ff73423099d00f14bf58 | [
"MIT"
] | null | null | null | //
// Created by Alexey Pashinov on 20/08/20
//
#pragma once
#include <chrono>
#include <condition_variable>
#include <mutex>
#include <queue>
/// Thread Safe Queue
template <typename T>
class safe_queue
{
public:
///
/// \brief Push a new instance of T at the back of the deque
/// \param value
void ... | 22.938776 | 95 | 0.558719 | pashinov |
2b34ca8dd0c123f34b8fd63111d88939831620da | 480 | hpp | C++ | search/viewport_search_params.hpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 2 | 2019-01-24T15:36:20.000Z | 2019-12-26T10:03:48.000Z | search/viewport_search_params.hpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 1 | 2018-03-07T15:05:23.000Z | 2018-03-07T15:05:23.000Z | search/viewport_search_params.hpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 1 | 2019-08-09T21:31:29.000Z | 2019-08-09T21:31:29.000Z | #pragma once
#include "search/hotels_filter.hpp"
#include "std/function.hpp"
#include "std/shared_ptr.hpp"
#include "std/string.hpp"
namespace search
{
class Results;
struct ViewportSearchParams
{
using TOnStarted = function<void()>;
using TOnCompleted = function<void(Results const & results)>;
string m_quer... | 18.461538 | 63 | 0.758333 | marceldallagnol |
2b3ae58eaa4c31cf472573ce0710920085137b2c | 2,092 | cpp | C++ | src/gamelib/main/checkentcfg.cpp | mall0c/GameLib | df4116b53c39be7b178dd87f7eb0fe32a94d00d3 | [
"MIT"
] | 1 | 2020-02-17T09:53:36.000Z | 2020-02-17T09:53:36.000Z | src/gamelib/main/checkentcfg.cpp | mall0c/GameLib | df4116b53c39be7b178dd87f7eb0fe32a94d00d3 | [
"MIT"
] | null | null | null | src/gamelib/main/checkentcfg.cpp | mall0c/GameLib | df4116b53c39be7b178dd87f7eb0fe32a94d00d3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
#include "gamelib/core/ecs/serialization.hpp"
#include "gamelib/Engine.hpp"
#include "gamelib/core/Game.hpp"
#include "gamelib/json/json-file.hpp"
#include "gamelib/json/json-utils.hpp"
using namespace std;
int main(int argc, char *argv[])
{
if (argc <= 1)
{
cout... | 26.481013 | 100 | 0.5674 | mall0c |
2b3df9f569e2b721d87ed8283126713bc6bc4f99 | 1,468 | cpp | C++ | Ejercicios_basicos_Agen/main.cpp | Zayk01/Arboles-Generales | 4854d5c0fa9e5e6e2c09fe25d56f6a1d2766417f | [
"MIT"
] | null | null | null | Ejercicios_basicos_Agen/main.cpp | Zayk01/Arboles-Generales | 4854d5c0fa9e5e6e2c09fe25d56f6a1d2766417f | [
"MIT"
] | null | null | null | Ejercicios_basicos_Agen/main.cpp | Zayk01/Arboles-Generales | 4854d5c0fa9e5e6e2c09fe25d56f6a1d2766417f | [
"MIT"
] | null | null | null | #include <iostream>
#include "../I-O_Agen/I_O_Agen.hpp"
#include "Ejercicios_basicos_Agen.hpp"
using namespace std;
typedef char T_elem;
T_elem fin='#';
int main() {
Agen<T_elem> A,B;
/*********************************************Leer Arbol General en agen.dat***************************************/
if... | 33.363636 | 120 | 0.536104 | Zayk01 |
2b3fd7f7ecfe4d98aaece49b4f8b3139eae7275c | 2,077 | cpp | C++ | src/backend/benchmark/ycsb/ycsb.cpp | saurabhkadekodi/peloton-p3 | e0d84cdf59c0724850ad2d6b187fdb2ef1730369 | [
"Apache-2.0"
] | 1 | 2021-02-28T19:37:04.000Z | 2021-02-28T19:37:04.000Z | src/backend/benchmark/ycsb/ycsb.cpp | saurabhkadekodi/peloton-p3 | e0d84cdf59c0724850ad2d6b187fdb2ef1730369 | [
"Apache-2.0"
] | 1 | 2016-05-06T05:07:37.000Z | 2016-05-09T23:40:50.000Z | src/backend/benchmark/ycsb/ycsb.cpp | saurabhkadekodi/peloton-p3 | e0d84cdf59c0724850ad2d6b187fdb2ef1730369 | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// PelotonDB
//
// ycsb.cpp
//
// Identification: benchmark/ycsb/ycsb.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===--------------------------------------------------------------... | 25.329268 | 80 | 0.564275 | saurabhkadekodi |
2b40b95e243e4965aa8ce0d4ba9a228dfa885871 | 2,114 | hpp | C++ | src/arkesia_plugins.hpp | zerotri/arkesia | a5105a93dab18ab3c40dc8dc06b801797155d1c1 | [
"MIT"
] | null | null | null | src/arkesia_plugins.hpp | zerotri/arkesia | a5105a93dab18ab3c40dc8dc06b801797155d1c1 | [
"MIT"
] | null | null | null | src/arkesia_plugins.hpp | zerotri/arkesia | a5105a93dab18ab3c40dc8dc06b801797155d1c1 | [
"MIT"
] | null | null | null | #include <dlfcn.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <functional>
#include <iostream>
namespace ark {
namespace plugin {
template <typename Signature>
Signature* dl_cast(void* f)
{
return reinterpret_cast<Signature*>(f);
}
struct... | 36.448276 | 109 | 0.529801 | zerotri |
2b44c08828f91cadc9068071366c9c5a8e6edb8c | 5,259 | cpp | C++ | States/settingsstate.cpp | lukasz-bielerzewski/Project-Arena-Fighter | 15e4cac998020256cf9e131ff140d0b8a2f6b72e | [
"MIT"
] | null | null | null | States/settingsstate.cpp | lukasz-bielerzewski/Project-Arena-Fighter | 15e4cac998020256cf9e131ff140d0b8a2f6b72e | [
"MIT"
] | null | null | null | States/settingsstate.cpp | lukasz-bielerzewski/Project-Arena-Fighter | 15e4cac998020256cf9e131ff140d0b8a2f6b72e | [
"MIT"
] | null | null | null | #include "Source_Files/precompiled_header.h"
#include "settingsstate.h"
//Initialzer functions
void SettingsState::initVariables()
{
this->modes = sf::VideoMode::getFullscreenModes();
}
void SettingsState::initBackground()
{
this->background.setSize(sf::Vector2f
(static_cast<float>(this->window->get... | 25.779412 | 138 | 0.618939 | lukasz-bielerzewski |
2b46d3ae6243a148d96656b8f18b87c19dd7d2a8 | 118 | cpp | C++ | src/terrain/mountain.cpp | JoiNNewtany/LETI-Game | 51d31a2b0b212f8bbd11c1562af4ef23d34437b6 | [
"Unlicense"
] | 2 | 2021-11-15T19:27:32.000Z | 2021-12-10T20:51:37.000Z | src/terrain/mountain.cpp | JoiNNewtany/LETI-Game | 51d31a2b0b212f8bbd11c1562af4ef23d34437b6 | [
"Unlicense"
] | null | null | null | src/terrain/mountain.cpp | JoiNNewtany/LETI-Game | 51d31a2b0b212f8bbd11c1562af4ef23d34437b6 | [
"Unlicense"
] | null | null | null | #include "mountain.hpp"
#include "unit/unit.hpp"
void Mountain::affect(Unit&) { }
void Mountain::restore(Unit&) { }
| 16.857143 | 33 | 0.686441 | JoiNNewtany |
2b48739a8eeb34b9fc41a8b70b4c9cd1ed83ff93 | 3,735 | cpp | C++ | main.cpp | Yveh/Compiler-Mx_star | e00164537528858ed128dbc5a5c4cf7006d6276e | [
"MIT"
] | 1 | 2020-01-23T14:34:11.000Z | 2020-01-23T14:34:11.000Z | main.cpp | Yveh/Compiler-Mx_star | e00164537528858ed128dbc5a5c4cf7006d6276e | [
"MIT"
] | null | null | null | main.cpp | Yveh/Compiler-Mx_star | e00164537528858ed128dbc5a5c4cf7006d6276e | [
"MIT"
] | null | null | null | #include <iostream>
#include <DominatorTree.h>
#include <cstring>
#include "antlr4-runtime.h"
#include "Mx_starLexer.h"
#include "Mx_starParser.h"
#include "ASTBuilder.h"
#include "TypeChecker.h"
#include "SemanticIssue.h"
#include "Builtin.h"
#include "IRBuilder.h"
#include "IRProgram.h"
#include "RVProgram.h"
#inclu... | 28.730769 | 93 | 0.637216 | Yveh |
2b4a4bb097547d2ee9abf66b282121323f00209c | 1,329 | cpp | C++ | benchmark/storage/dispatch.single.cpp | BRevzin/dyno | 76dcd0cc29cfa0e48f893e1ac32b6380b35437e0 | [
"BSL-1.0"
] | 739 | 2017-03-17T15:02:08.000Z | 2022-03-29T03:25:32.000Z | benchmark/storage/dispatch.single.cpp | BRevzin/dyno | 76dcd0cc29cfa0e48f893e1ac32b6380b35437e0 | [
"BSL-1.0"
] | 41 | 2017-03-09T07:04:13.000Z | 2021-05-27T20:05:24.000Z | benchmark/storage/dispatch.single.cpp | BRevzin/dyno | 76dcd0cc29cfa0e48f893e1ac32b6380b35437e0 | [
"BSL-1.0"
] | 43 | 2017-04-08T07:23:33.000Z | 2021-08-20T14:20:49.000Z | // Copyright Louis Dionne 2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include "model.hpp"
#include <dyno.hpp>
#include <benchmark/benchmark.h>
#include <cstddef>
#include <type_traits>
#include <utility>
// T... | 32.414634 | 81 | 0.756208 | BRevzin |
2b4d55cdeaff81028f3634fa6f30252bf2155326 | 611 | cpp | C++ | C/2019110901CppGoldPrice/2019110901CppGoldPrice/goldprice.cpp | AungWinnHtut/POL | ee8bdf655073134df8b8529ab0ece20e118b19e1 | [
"MIT"
] | 2 | 2016-02-10T10:22:13.000Z | 2020-01-19T09:49:28.000Z | C/2019110901CppGoldPrice/2019110901CppGoldPrice/goldprice.cpp | AungWinnHtut/POL | ee8bdf655073134df8b8529ab0ece20e118b19e1 | [
"MIT"
] | null | null | null | C/2019110901CppGoldPrice/2019110901CppGoldPrice/goldprice.cpp | AungWinnHtut/POL | ee8bdf655073134df8b8529ab0ece20e118b19e1 | [
"MIT"
] | 1 | 2020-01-19T09:22:29.000Z | 2020-01-19T09:22:29.000Z | #include<stdio.h>
#include<conio.h>
int main()
{
float kyat = 0;
float pae = 0;
float yway = 0;
float gold_weight_in_kyat = 0;
float gold_price_per_kyat = 0;
float total_gold_price = 0;
printf("Enter current godl price per kyat ");
scanf("%f",&gold_price_per_kyat);
printf("Enter Kyat ");
scanf("%f",&kyat);... | 19.09375 | 62 | 0.674304 | AungWinnHtut |
2b4e3e809af4fcfbb8e3cf4dacb73652e6c34cf4 | 2,124 | cpp | C++ | code-demo/tree/bst_k19lesson15.cpp | kzhereb/knu-is-progr2019 | 6a85b3659103800d8ec4a8097df2a547d6c8dda4 | [
"MIT"
] | null | null | null | code-demo/tree/bst_k19lesson15.cpp | kzhereb/knu-is-progr2019 | 6a85b3659103800d8ec4a8097df2a547d6c8dda4 | [
"MIT"
] | null | null | null | code-demo/tree/bst_k19lesson15.cpp | kzhereb/knu-is-progr2019 | 6a85b3659103800d8ec4a8097df2a547d6c8dda4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cassert>
using std::cout;
using std::endl;
struct TreeNode {
int value;
TreeNode* left;
TreeNode* right;
TreeNode(int val, TreeNode* lef=nullptr, TreeNode* rig=nullptr) {
value = val;
left = lef;
right = rig;
}
};
bool insert(TreeNode** root, int val) {
i... | 19.135135 | 67 | 0.564972 | kzhereb |
2b554c72c9fdc4a063e68a30251f0e9cdd51b183 | 2,860 | cc | C++ | deps/winpty/misc/IsNewConsole.cc | qualityhackrunner/node-pty | 027d972e714c3ad65ab5d7cf55a8c14a3eaa1f77 | [
"MIT"
] | 1,090 | 2015-01-03T19:33:27.000Z | 2022-03-29T01:20:10.000Z | deps/winpty/misc/IsNewConsole.cc | qualityhackrunner/node-pty | 027d972e714c3ad65ab5d7cf55a8c14a3eaa1f77 | [
"MIT"
] | 213 | 2019-05-07T03:12:13.000Z | 2022-03-31T21:11:52.000Z | node_modules_native/node_modules_forked/node-pty/deps/winpty/misc/IsNewConsole.cc | atlsecsrv-com/B82B787C-E596 | 4e3e58a84e5a5ffb4bf1b6e88a12d06be953e450 | [
"MIT"
] | 147 | 2015-01-06T22:14:29.000Z | 2022-03-03T09:31:53.000Z | // Determines whether this is a new console by testing whether MARK moves the
// cursor.
//
// WARNING: This test program may behave erratically if run under winpty.
//
#include <windows.h>
#include <stdio.h>
#include <string.h>
#include "TestUtil.cc"
const int SC_CONSOLE_MARK = 0xFFF2;
const int SC_CONSOLE_SELECT_... | 32.5 | 79 | 0.682517 | qualityhackrunner |
2b597d2b5e27e17088dfebd7bb21193bbd604378 | 2,846 | cc | C++ | third_party/blink/renderer/core/layout/ng/ng_block_child_iterator.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | third_party/blink/renderer/core/layout/ng/ng_block_child_iterator.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | third_party/blink/renderer/core/layout/ng/ng_block_child_iterator.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2017 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 "third_party/blink/renderer/core/layout/ng/ng_block_child_iterator.h"
#include "third_party/blink/renderer/core/layout/ng/inline/ng_inline_break... | 41.852941 | 83 | 0.729796 | Ron423c |
2b5a422772bb5b8845141030d14d23a80610ee89 | 1,090 | cpp | C++ | codechef/oct14/dino_laddu/prladdu.cpp | vivekzhere/scrachpad | 01612dd934128a78de506600680120ffa0b938a7 | [
"MIT"
] | null | null | null | codechef/oct14/dino_laddu/prladdu.cpp | vivekzhere/scrachpad | 01612dd934128a78de506600680120ffa0b938a7 | [
"MIT"
] | null | null | null | codechef/oct14/dino_laddu/prladdu.cpp | vivekzhere/scrachpad | 01612dd934128a78de506600680120ffa0b938a7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
#include <vector>
#define max_n 100002
#define max(a, b) (((a) > (b))? (a) : (b))
#define abs(a) (((a) < 0) ? (-1 * (a)) : (a))
using namespace std;
int main ()
{
int t, n, i, c_d, c_m;
int ar[max_n];
long long ans;
priority_queue<int, vector<int>, greater<int> > dino;
prior... | 18.166667 | 54 | 0.469725 | vivekzhere |
2b5da086c5ef4240ca2b41f1297020d31665d183 | 3,841 | cpp | C++ | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/AttachDetach/w_attach_mt_thread_app.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/AttachDetach/w_attach_mt_thread_app.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/AttachDetach/w_attach_mt_thread_app.cpp | ArthasZhang007/15418FinalProject | a71f698ea48ebbc446111734c198f16a55633669 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <iostream>
#include <sstream>
#include <string>
#include <windows.h>
extern "C" __declspec(noinline, dllexport) int PinIsAttached(unsigned int numOfThreads) { return... | 31.227642 | 120 | 0.579016 | ArthasZhang007 |
2b5f06bd8c2dc78435339639ef6469dd97a202f6 | 2,393 | cpp | C++ | vpc/src/v2/model/ListVpcRoutesResponse.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | vpc/src/v2/model/ListVpcRoutesResponse.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | null | null | null | vpc/src/v2/model/ListVpcRoutesResponse.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/vpc/v2/model/ListVpcRoutesResponse.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Vpc {
namespace V2 {
namespace Model {
ListVpcRoutesResponse::ListVpcRoutesResponse()
{
routesIsSet_ = false;
routesLinksIsSet_ = false;
}
ListVpcRoutesResponse::~ListVpcRoutesResponse() = defau... | 20.808696 | 103 | 0.678646 | yangzhaofeng |
2b5f111ea9d499fccf486d2ecad2f3d75ec7441b | 2,459 | cpp | C++ | src/meta/processors/admin/ClearSpaceProcessor.cpp | wenhaocs/nebula | 326b856cdf44fcaf67d3883073dc9412a9e3eebd | [
"Apache-2.0"
] | null | null | null | src/meta/processors/admin/ClearSpaceProcessor.cpp | wenhaocs/nebula | 326b856cdf44fcaf67d3883073dc9412a9e3eebd | [
"Apache-2.0"
] | null | null | null | src/meta/processors/admin/ClearSpaceProcessor.cpp | wenhaocs/nebula | 326b856cdf44fcaf67d3883073dc9412a9e3eebd | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2022 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include "meta/processors/admin/ClearSpaceProcessor.h"
namespace nebula {
namespace meta {
void ClearSpaceProcessor::process(const cpp2::ClearSpaceReq& req) {
GraphSpaceID spaceId;
std::vector<... | 29.626506 | 89 | 0.629931 | wenhaocs |
2b609e13786eea05ea2896d4b25c08a18f48da32 | 449 | cpp | C++ | 10-19/15. Lattice paths.cpp | swapagarwal/ProjectEuler | 34465b5a87166942e4bad3ce815a79a88567d3fd | [
"MIT"
] | 1 | 2018-02-24T07:52:10.000Z | 2018-02-24T07:52:10.000Z | 10-19/15. Lattice paths.cpp | swapagarwal/ProjectEuler | 34465b5a87166942e4bad3ce815a79a88567d3fd | [
"MIT"
] | null | null | null | 10-19/15. Lattice paths.cpp | swapagarwal/ProjectEuler | 34465b5a87166942e4bad3ce815a79a88567d3fd | [
"MIT"
] | 3 | 2015-03-27T17:23:16.000Z | 2021-06-07T15:44:10.000Z | /* Project Euler Problem 15: Lattice paths
* Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactly 6 routes to the bottom right corner.
* How many such routes are there through a 20×20 grid?
*/
#include <iostream>
using namespace std;
int main()
{
... | 21.380952 | 155 | 0.632517 | swapagarwal |
2b62850ee36c124fbe7f261764d45039547620d5 | 746 | hpp | C++ | src/MemoryManager.hpp | zwimer/Memory-Management-Simulator | 9aacfd962459a62ca878dbf5370fdda4bf770bb6 | [
"MIT"
] | null | null | null | src/MemoryManager.hpp | zwimer/Memory-Management-Simulator | 9aacfd962459a62ca878dbf5370fdda4bf770bb6 | [
"MIT"
] | null | null | null | src/MemoryManager.hpp | zwimer/Memory-Management-Simulator | 9aacfd962459a62ca878dbf5370fdda4bf770bb6 | [
"MIT"
] | null | null | null | /* Operating Systems Project 2
* Alex Slanski, Owen Stenson, Zac Wimer
*/
#ifndef MEMORY_MANAGER_HPP
#define MEMORY_MANAGER_HPP
#include "main.hpp"
#include "HardDrive.hpp"
#include <string>
//An abstract class to represent a MemoryManager
class Contiguous::MemoryManager {
public:
//Constructor
MemoryManag... | 18.65 | 51 | 0.723861 | zwimer |
2b64503e1a0f06d18f83d931281ee2cb34563dea | 518 | cpp | C++ | 2-Structural/11.Flyweight/src/Flyweight/LandMine.cpp | gfa99/gof_design_patterns | a33ee7f344f8e382bb9fc676b77b22a5a123bca0 | [
"Apache-2.0"
] | 21 | 2017-11-08T11:32:48.000Z | 2021-03-29T08:58:04.000Z | 2-Structural/11.Flyweight/src/Flyweight/LandMine.cpp | gfa99/gof_design_patterns | a33ee7f344f8e382bb9fc676b77b22a5a123bca0 | [
"Apache-2.0"
] | null | null | null | 2-Structural/11.Flyweight/src/Flyweight/LandMine.cpp | gfa99/gof_design_patterns | a33ee7f344f8e382bb9fc676b77b22a5a123bca0 | [
"Apache-2.0"
] | 8 | 2017-11-26T13:57:50.000Z | 2021-08-23T06:52:57.000Z | #include <iostream>
#include "Flyweight/LandMine.h"
namespace GoF {
namespace Flyweight {
LandMine::LandMine()
: AbstractItem('@')
{
std::cout << "\nCreating a LandMine .." << std::endl;
}
void LandMine::display(const Point & point)
{
s... | 20.72 | 69 | 0.478764 | gfa99 |
2b6711798e3e3c57d83fe480b8420e0deddfc0b2 | 1,054 | cpp | C++ | PhysicsEngine/ModuleSceneIntro.cpp | bielrabasa/PhysicsEngine | ef3bc64c419a6da4ae234873e3d9da8c196197ec | [
"MIT"
] | 1 | 2021-12-27T15:12:27.000Z | 2021-12-27T15:12:27.000Z | PhysicsEngine/ModuleSceneIntro.cpp | bielrabasa/PhysicsEngine | ef3bc64c419a6da4ae234873e3d9da8c196197ec | [
"MIT"
] | null | null | null | PhysicsEngine/ModuleSceneIntro.cpp | bielrabasa/PhysicsEngine | ef3bc64c419a6da4ae234873e3d9da8c196197ec | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModuleSceneIntro.h"
ModuleSceneIntro::ModuleSceneIntro(Application* app, bool start_enabled) : Module(app, start_enabled)
{
}
ModuleSceneIntro::~ModuleSceneIntro()
{}
// Load assets
bool ModuleSceneIntro::Start()
{
LOG("Loading Intro assets");
bool ret = t... | 21.510204 | 101 | 0.724858 | bielrabasa |
2b6cd4d2bfd05e2134970ed07e8e1ca76f7409d9 | 2,086 | cpp | C++ | src/ConfigParser.cpp | mpajkowski/puzzle_solver | 9d145cb42f46f4eea6be2f0219f47d573e51d0bc | [
"MIT"
] | 2 | 2018-10-23T22:16:36.000Z | 2018-12-18T23:41:21.000Z | src/ConfigParser.cpp | mpajkowski/puzzle_solver | 9d145cb42f46f4eea6be2f0219f47d573e51d0bc | [
"MIT"
] | 5 | 2018-10-22T23:03:30.000Z | 2018-11-05T20:11:54.000Z | src/ConfigParser.cpp | mpajkowski/puzzle_solver | 9d145cb42f46f4eea6be2f0219f47d573e51d0bc | [
"MIT"
] | null | null | null | #include "ConfigParser.hpp"
#include "State.hpp"
#include <stdexcept>
#include <unordered_set>
ConfigParser::ConfigParser(int argc, char** argv)
{
for (int i = 0; i < argc; ++i) {
envs.push_back(argv[i]);
}
}
auto ConfigParser::createConfig() -> Config
{
auto cfg = Config{};
auto envIterator = ++std::begi... | 23.704545 | 85 | 0.644295 | mpajkowski |
2b772e9251f0600bb9a059d9521ff8c2dd21a2a8 | 7,589 | cpp | C++ | fbpcf/scheduler/test/benchmarks/SchedulerBenchmark.cpp | SumitKT31/fbpcf | 75f1edc939684d1ac29824cbc3e519d689b01377 | [
"MIT"
] | null | null | null | fbpcf/scheduler/test/benchmarks/SchedulerBenchmark.cpp | SumitKT31/fbpcf | 75f1edc939684d1ac29824cbc3e519d689b01377 | [
"MIT"
] | null | null | null | fbpcf/scheduler/test/benchmarks/SchedulerBenchmark.cpp | SumitKT31/fbpcf | 75f1edc939684d1ac29824cbc3e519d689b01377 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <folly/Benchmark.h>
#include "common/init/Init.h"
#include "fbpcf/engine/communication/IPartyCommunicationAgentFactory... | 29.188462 | 80 | 0.742786 | SumitKT31 |
2b79768fdc76b175932865656b702963e755b973 | 2,835 | cpp | C++ | src/main.cpp | Wittmaxi/baumhaus | 1474a39414691253c8340e95f8b43d043bc56b74 | [
"Apache-2.0"
] | 1 | 2018-10-02T21:47:13.000Z | 2018-10-02T21:47:13.000Z | src/main.cpp | Wittmaxi/baumhaus | 1474a39414691253c8340e95f8b43d043bc56b74 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | Wittmaxi/baumhaus | 1474a39414691253c8340e95f8b43d043bc56b74 | [
"Apache-2.0"
] | null | null | null | #include "baumhausengine.h" //the actual engine
#include "CPipe.h" //the pipe between the engine and the UI
#include <iostream>
#include <cstring>
/*
Baumhaus Engine 2017
By publishing this engine, you agree to publish the code with it.
This code comes with no warranty at all; not even the warranty to work properl... | 24.230769 | 146 | 0.613051 | Wittmaxi |
2b7a93247c9f2568cdc3d4acf8109d1a9df0e191 | 2,176 | cpp | C++ | Cplusplus/usando_containers/vector.cpp | carlosvilela/Testes-C- | b6be1d94569027d0b5d6e8aa227e279a7cb16937 | [
"MIT"
] | null | null | null | Cplusplus/usando_containers/vector.cpp | carlosvilela/Testes-C- | b6be1d94569027d0b5d6e8aa227e279a7cb16937 | [
"MIT"
] | null | null | null | Cplusplus/usando_containers/vector.cpp | carlosvilela/Testes-C- | b6be1d94569027d0b5d6e8aa227e279a7cb16937 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <vector>
using namespace std;
main(){
vector<int> exemplo(12); // de 0 até 12 = 13 posições; vector inteiro; porém coloquei 12 para evitar erro, sendo duas posições adicionais
vector<int> vetor; // não é necessário colocar o tamanho do vetor
vector<int> testando;
// Escrever Vector ... | 22.43299 | 138 | 0.636029 | carlosvilela |
2b7da6bd42ac068071496ce9914262738fd6a99d | 10,921 | cpp | C++ | gameSource/musicPlayer2.cpp | Valaras/OneLife | 0f83ffb8edf8362ff3bf0ca87a73bba21be20446 | [
"Linux-OpenIB"
] | 69 | 2018-10-05T23:29:10.000Z | 2022-03-29T22:34:24.000Z | gameSource/musicPlayer2.cpp | Valaras/OneLife | 0f83ffb8edf8362ff3bf0ca87a73bba21be20446 | [
"Linux-OpenIB"
] | 62 | 2018-11-08T14:14:40.000Z | 2022-03-01T20:38:01.000Z | gameSource/musicPlayer2.cpp | Valaras/OneLife | 0f83ffb8edf8362ff3bf0ca87a73bba21be20446 | [
"Linux-OpenIB"
] | 24 | 2018-10-11T09:20:27.000Z | 2021-11-06T19:23:17.000Z | #include "minorGems/game/game.h"
#include <math.h>
#include "ageControl.h"
// loudness of music that we're currently playing at
static double musicLoudnessLive = 0;
static double musicTargetLoudness = 0;
extern double musicHeadroom;
// set so that a full 0-to-1 loudness transition happens
// in 1 second
static ... | 23.638528 | 79 | 0.558008 | Valaras |
2b816c429398620c1f893ca77b4f034380aab27a | 1,650 | hpp | C++ | include/boost/numpy/python/make_tuple_from_container.hpp | IceCube-SPNO/BoostNumpy | 66538c0b6e38e2f985e0b44d8191c878cea0332d | [
"BSL-1.0"
] | 6 | 2015-01-07T17:29:40.000Z | 2019-03-28T15:18:27.000Z | include/boost/numpy/python/make_tuple_from_container.hpp | IceCube-SPNO/BoostNumpy | 66538c0b6e38e2f985e0b44d8191c878cea0332d | [
"BSL-1.0"
] | 2 | 2017-04-12T19:01:21.000Z | 2017-04-14T16:18:38.000Z | include/boost/numpy/python/make_tuple_from_container.hpp | IceCube-SPNO/BoostNumpy | 66538c0b6e38e2f985e0b44d8191c878cea0332d | [
"BSL-1.0"
] | 2 | 2018-01-15T07:32:24.000Z | 2020-10-14T02:55:55.000Z | /**
* $Id$
*
* Copyright (C)
* 2015 - $Date$
* Martin Wolf <boostnumpy@martin-wolf.org>
*
* @file boost/numpy/python/make_tuple_from_container.hpp
* @version $Revision$
* @date $Date$
* @author Martin Wolf <boostnumpy@martin-wolf.org>
*
* @brief This file defines the boost::python::make_tuple_fro... | 27.04918 | 78 | 0.689091 | IceCube-SPNO |
2b82335a60e9e9a7b8510c376830084946961a54 | 932 | cpp | C++ | EOlymp/00009.cpp | vdshk/algos | 8896c9edd30225acbdb51fa2e9760c0cc4adf307 | [
"MIT"
] | null | null | null | EOlymp/00009.cpp | vdshk/algos | 8896c9edd30225acbdb51fa2e9760c0cc4adf307 | [
"MIT"
] | null | null | null | EOlymp/00009.cpp | vdshk/algos | 8896c9edd30225acbdb51fa2e9760c0cc4adf307 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define len(a) (int)a.size()
using namespace std;
typedef vector<int> vint;
typedef long double ld;
typedef long long ll;
typedef string str;
int main() {
ios_b... | 22.190476 | 46 | 0.504292 | vdshk |
2b82dd7976887f9783be5baba9ea1e08b0f9c5d8 | 1,860 | hpp | C++ | include/boost/sweater/threading/futex.hpp | microblink/sweater | f64e68a086c1748690b928108511b4eb692f152b | [
"MIT"
] | 1 | 2017-11-21T22:48:30.000Z | 2017-11-21T22:48:30.000Z | include/boost/sweater/threading/futex.hpp | microblink/sweater | f64e68a086c1748690b928108511b4eb692f152b | [
"MIT"
] | null | null | null | include/boost/sweater/threading/futex.hpp | microblink/sweater | f64e68a086c1748690b928108511b4eb692f152b | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
///
/// \file futex.hpp
/// ---------------
///
/// (c) Copyright Domagoj Saric 2021.
///
/// Use, modification and distribution are subject to the
/// Boost Software License, Version 1.0. (See accompanying file
/// LICENSE_1_0.txt or c... | 35.09434 | 80 | 0.363441 | microblink |
2b83bb7e3bcbe5b10398011e124f56a316881ba8 | 3,231 | hxx | C++ | src/event/PipeLineReader.hxx | CM4all/libcommon | fba0eae725b0e7a6cf93ff0be231d90e2c0aa04e | [
"BSD-2-Clause"
] | 13 | 2017-06-30T15:38:21.000Z | 2022-03-11T06:49:17.000Z | src/event/PipeLineReader.hxx | CM4all/libcommon | fba0eae725b0e7a6cf93ff0be231d90e2c0aa04e | [
"BSD-2-Clause"
] | 2 | 2017-10-29T18:28:28.000Z | 2020-08-20T00:43:21.000Z | src/event/PipeLineReader.hxx | CM4all/libcommon | fba0eae725b0e7a6cf93ff0be231d90e2c0aa04e | [
"BSD-2-Clause"
] | 6 | 2017-10-29T11:38:13.000Z | 2021-10-12T00:36:38.000Z | /*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 abo... | 30.481132 | 70 | 0.73909 | CM4all |
2b8b7df45e2c1c0091012daabe79877fa1ee2b9d | 13,444 | hpp | C++ | include/algorithms/algorithm.hpp | GT-TDAlab/SARMA | dab79f7d87a4dfb663b09e9f7331726811e05c1a | [
"BSD-3-Clause"
] | 10 | 2020-07-03T02:41:45.000Z | 2022-02-08T02:28:09.000Z | include/algorithms/algorithm.hpp | GT-TDAlab/SARMA | dab79f7d87a4dfb663b09e9f7331726811e05c1a | [
"BSD-3-Clause"
] | null | null | null | include/algorithms/algorithm.hpp | GT-TDAlab/SARMA | dab79f7d87a4dfb663b09e9f7331726811e05c1a | [
"BSD-3-Clause"
] | 1 | 2021-03-08T17:05:02.000Z | 2021-03-08T17:05:02.000Z | #pragma once
#include <memory>
#include <iostream>
#include <vector>
#include <map>
#include <utility>
#include <string>
#include <type_traits>
#include "data_structures/csr_matrix.hpp"
#include "data_structures/sparse_prefix_sum.hpp"
#include "tools/utils.hpp"
#include "tools/timer.hpp"
#include "nicol2d.hpp"
#inc... | 39.42522 | 121 | 0.600342 | GT-TDAlab |
2b8dbb67bc7e32410bdf3a1faea3f665f1aaf6ba | 2,691 | cpp | C++ | with_qt/qtsource/qtmain.cpp | vladsopen/umon1stl | c1e7d9b198c6ce493ca1dcf31d778d633be48f88 | [
"MIT"
] | null | null | null | with_qt/qtsource/qtmain.cpp | vladsopen/umon1stl | c1e7d9b198c6ce493ca1dcf31d778d633be48f88 | [
"MIT"
] | null | null | null | with_qt/qtsource/qtmain.cpp | vladsopen/umon1stl | c1e7d9b198c6ce493ca1dcf31d778d633be48f88 | [
"MIT"
] | null | null | null | /**
* MIT license:
*
* Copyright (c) 2019 vlads
*
* 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, ... | 30.235955 | 82 | 0.662207 | vladsopen |
2b8df14a4c196681d05cd3f40333c08273bc2c31 | 62,286 | cpp | C++ | SOURCES/WEBAPP/ESP32/aurora/web.cpp | bjornhij/freeDSP-aurora | 915febe06a3edf006496f2a1e3e72d44b8b51c17 | [
"CC0-1.0"
] | 103 | 2019-01-17T07:51:42.000Z | 2022-03-13T16:28:26.000Z | SOURCES/WEBAPP/ESP32/aurora/web.cpp | bjornhij/freeDSP-aurora | 915febe06a3edf006496f2a1e3e72d44b8b51c17 | [
"CC0-1.0"
] | 89 | 2019-02-21T15:38:33.000Z | 2022-03-27T13:49:09.000Z | SOURCES/WEBAPP/ESP32/aurora/web.cpp | bjornhij/freeDSP-aurora | 915febe06a3edf006496f2a1e3e72d44b8b51c17 | [
"CC0-1.0"
] | 47 | 2019-02-21T17:53:41.000Z | 2022-03-23T10:13:35.000Z | #include <Arduino.h>
#include <WiFi.h>
#include <ESPAsyncWebServer.h>
#include <AsyncJson.h>
#include <SPIFFS.h>
#include <Update.h>
#include <ArduinoJson.h>
#include "plugin.h"
#include "web.h"
#include "webota.h"
#include "fallback.h"
#include "adau1452.h"
#include "AK4458.h"
#include "AK5558.h"
#include "settings.h... | 31.362538 | 172 | 0.596892 | bjornhij |
2b8f7f7f0e914ea8c5b5e7a7fe141c3b39274bc5 | 4,007 | cpp | C++ | src/tile.cpp | plefebvre91/puzzle | a97f7d3384fad616cb99d390861a6e8be804cf21 | [
"MIT"
] | null | null | null | src/tile.cpp | plefebvre91/puzzle | a97f7d3384fad616cb99d390861a6e8be804cf21 | [
"MIT"
] | null | null | null | src/tile.cpp | plefebvre91/puzzle | a97f7d3384fad616cb99d390861a6e8be804cf21 | [
"MIT"
] | null | null | null | /* MIT License
Copyright (c) 2019 Pierre Lefebvre
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | 25.04375 | 80 | 0.681807 | plefebvre91 |
2b9341b2b568ace5e76fb5534b1d91381fd923e0 | 1,077 | cpp | C++ | third_party/wpilibsuite/allwpilib/wpilibcExamples/src/main/cpp/examples/PacGoat/src/Commands/DriveAndShootAutonomous.cpp | GregPikitis/robot-code-public | 9671deebff32336fea9865daf0f54d7925c36dd8 | [
"MIT"
] | null | null | null | third_party/wpilibsuite/allwpilib/wpilibcExamples/src/main/cpp/examples/PacGoat/src/Commands/DriveAndShootAutonomous.cpp | GregPikitis/robot-code-public | 9671deebff32336fea9865daf0f54d7925c36dd8 | [
"MIT"
] | null | null | null | third_party/wpilibsuite/allwpilib/wpilibcExamples/src/main/cpp/examples/PacGoat/src/Commands/DriveAndShootAutonomous.cpp | GregPikitis/robot-code-public | 9671deebff32336fea9865daf0f54d7925c36dd8 | [
"MIT"
] | 1 | 2019-10-03T20:43:54.000Z | 2019-10-03T20:43:54.000Z | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 37.137931 | 80 | 0.57753 | GregPikitis |
2b93914ffe07db12951fc762903ee6cfdbd853e9 | 7,459 | cpp | C++ | src/dcm/keys/CDCMMappedKey.cpp | jia57196/dcm | eae389271deec10cab6976aced9ec1ac08622c34 | [
"Apache-2.0"
] | 1 | 2016-05-27T07:01:51.000Z | 2016-05-27T07:01:51.000Z | src/dcm/keys/CDCMMappedKey.cpp | jia57196/dcm | eae389271deec10cab6976aced9ec1ac08622c34 | [
"Apache-2.0"
] | null | null | null | src/dcm/keys/CDCMMappedKey.cpp | jia57196/dcm | eae389271deec10cab6976aced9ec1ac08622c34 | [
"Apache-2.0"
] | null | null | null | #include "CDCMMappedKey.h"
#include "CDCM.h"
#include <iostream>
#include <string>
using namespace boost::interprocess;
namespace NDCM
{
//-----------------------------------------------------------------------//
CDCMMappedKey::CDCMMappedKey ( const CDCMMappedKey& ar_other )
: mp_file ( CDCM::getFile() )... | 33.299107 | 132 | 0.447513 | jia57196 |
2b97f75ab9a727612f3c52a05ee9d2b6f03e9756 | 1,388 | cpp | C++ | src/transport/impl/upgrader_session.cpp | Alexey-N-Chernyshov/cpp-libp2p | 8b52253f9658560a4b1311b3ba327f02284a42a6 | [
"Apache-2.0",
"MIT"
] | 135 | 2020-06-13T08:57:36.000Z | 2022-03-27T05:26:11.000Z | src/transport/impl/upgrader_session.cpp | igor-egorov/cpp-libp2p | 7c9d83bf0760a5f653d86ddbb00645414c61d4fc | [
"Apache-2.0",
"MIT"
] | 41 | 2020-06-12T15:45:05.000Z | 2022-03-07T23:10:33.000Z | src/transport/impl/upgrader_session.cpp | igor-egorov/cpp-libp2p | 7c9d83bf0760a5f653d86ddbb00645414c61d4fc | [
"Apache-2.0",
"MIT"
] | 43 | 2020-06-15T10:12:45.000Z | 2022-03-21T03:04:50.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include <libp2p/transport/impl/upgrader_session.hpp>
namespace libp2p::transport {
UpgraderSession::UpgraderSession(
std::shared_ptr<transport::Upgrader> upgrader,
std::shared_ptr<connection::RawConnec... | 31.545455 | 79 | 0.62464 | Alexey-N-Chernyshov |
2b98e6bdfc82f840ebaaa5d76fdf641b27ea151d | 4,296 | hpp | C++ | include/UnityEngine/Light.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Light.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/Light.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.Behaviour
#include "UnityEngine/Behaviour.hpp"
// Complet... | 42.96 | 177 | 0.716248 | darknight1050 |
2ba1271d0ceb854b465475cc82f34ef39149eb72 | 282 | cpp | C++ | infowindow/InfoWindow.cpp | Kollos2k/fnfTagReader | d3e0b841299d2ee568a6c160acd75a0e9c605d39 | [
"MIT"
] | null | null | null | infowindow/InfoWindow.cpp | Kollos2k/fnfTagReader | d3e0b841299d2ee568a6c160acd75a0e9c605d39 | [
"MIT"
] | null | null | null | infowindow/InfoWindow.cpp | Kollos2k/fnfTagReader | d3e0b841299d2ee568a6c160acd75a0e9c605d39 | [
"MIT"
] | null | null | null | #include "InfoWindow.h"
#include "ui_InfoWindow.h"
InfoWindow::InfoWindow(QWidget *parent) : QDialog(parent), ui(new Ui::InfoWindow){
ui->setupUi(this);
}
InfoWindow::~InfoWindow(){
delete ui;
}
void InfoWindow::on_buttonClose_clicked(){
this->close();
}
| 20.142857 | 83 | 0.666667 | Kollos2k |
2ba1a76ee72ce737d8e3c5895b63b04957c52d02 | 1,368 | cpp | C++ | source/unittest/main_yaml.cpp | nahzz/EliteQuant_Cpp | 4ff6f493f36b87a590b715e245e12399ae04d4fa | [
"Apache-2.0"
] | 10 | 2020-08-16T06:26:19.000Z | 2022-03-16T07:24:02.000Z | source/unittest/main_yaml.cpp | saminfante/EliteQuant_Cpp | 4ff6f493f36b87a590b715e245e12399ae04d4fa | [
"Apache-2.0"
] | null | null | null | source/unittest/main_yaml.cpp | saminfante/EliteQuant_Cpp | 4ff6f493f36b87a590b715e245e12399ae04d4fa | [
"Apache-2.0"
] | 4 | 2020-10-11T03:55:07.000Z | 2021-04-24T13:13:46.000Z | #include <yaml-cpp/yaml.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
{
YAML::Node node; // starts out as null
node["key"] = "value"; // it now is a map node
node["seq"].push_back("first element"); // node["seq"] automatically becomes a seque... | 34.2 | 101 | 0.650585 | nahzz |
2ba37712e886e3f5824f3fd0cce1e2b272f59881 | 2,224 | cpp | C++ | src/Plaszczyzna.cpp | KPO-2020-2021/zad5_3-jmeko1214 | 6c59e182b409c39e02c5a0e37d3e983ed1b3e0ba | [
"Unlicense"
] | null | null | null | src/Plaszczyzna.cpp | KPO-2020-2021/zad5_3-jmeko1214 | 6c59e182b409c39e02c5a0e37d3e983ed1b3e0ba | [
"Unlicense"
] | null | null | null | src/Plaszczyzna.cpp | KPO-2020-2021/zad5_3-jmeko1214 | 6c59e182b409c39e02c5a0e37d3e983ed1b3e0ba | [
"Unlicense"
] | null | null | null | #include "Plaszczyzna.hh"
/******************************************************************************
| Konstruktor parametryczny klasy Plaszczyzna. |
| Argumenty: |
| dlugosc - dlugosc plaszczyzny ... | 36.459016 | 126 | 0.392086 | KPO-2020-2021 |
2ba3a418618538fce91e880a2f86582a7228ff61 | 335 | cpp | C++ | video_media_metadata.cpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | video_media_metadata.cpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | video_media_metadata.cpp | mexicowilly/Espadin | f33580d2c77c5efe92c05de0816ec194e87906f0 | [
"Apache-2.0"
] | null | null | null | #include <espadin/video_media_metadata.hpp>
#include "cjson_util.hpp"
namespace espadin
{
video_media_metadata::video_media_metadata(const cJSON& json)
{
cjson::util ju(const_cast<cJSON&>(json));
ju.set_number("width", width_);
ju.set_number("height", height_);
ju.set_number("durationMillis", duration... | 22.333333 | 61 | 0.737313 | mexicowilly |
ad93762e548f55ea8b703ab4a80950d09d3953a3 | 345 | hpp | C++ | src/Headers/Exception.hpp | guiteixeirapimentel/NQueens | aab4ecd14b82eafc3fa8de509803a8e25181942f | [
"MIT"
] | null | null | null | src/Headers/Exception.hpp | guiteixeirapimentel/NQueens | aab4ecd14b82eafc3fa8de509803a8e25181942f | [
"MIT"
] | null | null | null | src/Headers/Exception.hpp | guiteixeirapimentel/NQueens | aab4ecd14b82eafc3fa8de509803a8e25181942f | [
"MIT"
] | null | null | null | #pragma once
#include <exception>
#include <string>
class Exception : public std::exception
{
public:
Exception(const std::string &msg)
: cMsg(msg){};
~Exception() {}
Exception(std::string &&msg)
: cMsg(msg){};
inline std::string getMsg() const
{
return cMsg;
}
private:... | 17.25 | 39 | 0.588406 | guiteixeirapimentel |
ad9396285f365bcb0f24b6985fe456473566b0a8 | 102,502 | cpp | C++ | Oem/dbxml/xqilla/src/utils/UCANormalizer3.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Oem/dbxml/xqilla/src/utils/UCANormalizer3.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Oem/dbxml/xqilla/src/utils/UCANormalizer3.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | /*
* Copyright (c) 2001-2008
* DecisionSoft Limited. All rights reserved.
* Copyright (c) 2004-2008
* Oracle. 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... | 68.107641 | 145 | 0.608515 | achilex |
ad951717f29681c70e7f5cbd488c56fb3f67aab6 | 486 | cpp | C++ | QtWidges/sizeAndStreetch/widget.cpp | eduardorasgado/RoadtoQt5 | 571f82065273f1ce256575e086eda806beafab0b | [
"MIT"
] | null | null | null | QtWidges/sizeAndStreetch/widget.cpp | eduardorasgado/RoadtoQt5 | 571f82065273f1ce256575e086eda806beafab0b | [
"MIT"
] | null | null | null | QtWidges/sizeAndStreetch/widget.cpp | eduardorasgado/RoadtoQt5 | 571f82065273f1ce256575e086eda806beafab0b | [
"MIT"
] | null | null | null | #include "widget.h"
#include "ui_widget.h"
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{
ui->setupUi(this);
ui->groupBox->setTitle("Fill this one");
ui->groupBox_2->setTitle("Download zone");
ui->groupBox_3->setTitle("Your data");
ui->groupBox_4->setTitle("Social")... | 21.130435 | 46 | 0.639918 | eduardorasgado |
ad9725bbb09c6cf0e6cf09812f42cc1d2818ac44 | 3,884 | cpp | C++ | src/TraceWriterTrs.cpp | 0xADE1A1DE/tracetools | 5eaa3aa84a5781bf7997e0539da1b1f1b3666821 | [
"Apache-2.0"
] | 14 | 2021-12-16T11:12:27.000Z | 2021-12-30T04:16:39.000Z | src/TraceWriterTrs.cpp | 0xADE1A1DE/tracetools | 5eaa3aa84a5781bf7997e0539da1b1f1b3666821 | [
"Apache-2.0"
] | null | null | null | src/TraceWriterTrs.cpp | 0xADE1A1DE/tracetools | 5eaa3aa84a5781bf7997e0539da1b1f1b3666821 | [
"Apache-2.0"
] | 2 | 2021-12-16T11:38:42.000Z | 2021-12-17T14:02:41.000Z | // Copyright 2021 University of Adelaide
//
// 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 agr... | 32.915254 | 118 | 0.680484 | 0xADE1A1DE |
ad9b68b033c2497eb8b19aacf81a29202d3c0442 | 241 | cpp | C++ | models/wallet/Wallet.cpp | Mateus-Franceschina/cpp-stocks-wallet | 71969491938e166d6b5053b9c6b0d27d55320fa3 | [
"MIT"
] | null | null | null | models/wallet/Wallet.cpp | Mateus-Franceschina/cpp-stocks-wallet | 71969491938e166d6b5053b9c6b0d27d55320fa3 | [
"MIT"
] | null | null | null | models/wallet/Wallet.cpp | Mateus-Franceschina/cpp-stocks-wallet | 71969491938e166d6b5053b9c6b0d27d55320fa3 | [
"MIT"
] | null | null | null | #pragma once
#include "Wallet.hpp"
#include <iostream>
using namespace std;
Wallet :: Wallet() {
string test = this->getString();
cout << test << " ou ola mundo" << endl;
}
string Wallet :: getString() {
return this->hello;
}
| 16.066667 | 44 | 0.626556 | Mateus-Franceschina |
ada0d3eff0c163d659d896f81ac5c484dadf0410 | 315 | cxx | C++ | CSES/1094_Increasing_Array.cxx | daniel-cr/CProgramming | 3ce8a134c18258e28eb3ce610da21309f6e01b53 | [
"MIT"
] | null | null | null | CSES/1094_Increasing_Array.cxx | daniel-cr/CProgramming | 3ce8a134c18258e28eb3ce610da21309f6e01b53 | [
"MIT"
] | null | null | null | CSES/1094_Increasing_Array.cxx | daniel-cr/CProgramming | 3ce8a134c18258e28eb3ce610da21309f6e01b53 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main(){
int n; cin >> n;
long long res = 0;
int m = 0;
while(n--) {
int x; cin >> x;
m = max(m, x);
if (x < m) {
res += m - x;
}
}
cout << res << "\n";
return 0;
}
| 15 | 25 | 0.384127 | daniel-cr |
ada3eff8399b9073b05454044e24b6168e924f4d | 716 | cpp | C++ | src/xpcc/ui/gui/widgets/label.cpp | roboterclubaachen/xpcc | 010924901947381d20e83b838502880eb2ffea72 | [
"BSD-3-Clause"
] | 161 | 2015-01-13T15:52:06.000Z | 2020-02-13T01:26:04.000Z | src/xpcc/ui/gui/widgets/label.cpp | salkinium/xpcc | 010924901947381d20e83b838502880eb2ffea72 | [
"BSD-3-Clause"
] | 281 | 2015-01-06T12:46:40.000Z | 2019-01-06T13:06:57.000Z | src/xpcc/ui/gui/widgets/label.cpp | salkinium/xpcc | 010924901947381d20e83b838502880eb2ffea72 | [
"BSD-3-Clause"
] | 51 | 2015-03-03T19:56:12.000Z | 2020-03-22T02:13:36.000Z | // coding: utf-8
/* Copyright (c) 2014, Roboterclub Aachen e.V.
* All Rights Reserved.
*
* The file is part of the xpcc library and is released under the 3-clause BSD
* license. See the file `LICENSE` for the full license governing this code.
*/
// ------------------------------------------------------------------... | 22.375 | 79 | 0.596369 | roboterclubaachen |
ada6e74a0bd8814b73d1fe6faa7ded7913f12d77 | 875 | hpp | C++ | 028. Implement strStr()/Solution.hpp | husy8/LeetCode | 49aab298a4bbf36434a414e64486ed8f842a1556 | [
"MIT"
] | null | null | null | 028. Implement strStr()/Solution.hpp | husy8/LeetCode | 49aab298a4bbf36434a414e64486ed8f842a1556 | [
"MIT"
] | null | null | null | 028. Implement strStr()/Solution.hpp | husy8/LeetCode | 49aab298a4bbf36434a414e64486ed8f842a1556 | [
"MIT"
] | null | null | null | #include <string>
class Solution {
public:
int strStr(const std::string &haystack, const std::string &needle)
{
if (haystack.empty() && needle.empty())
{
return 0;
}
if (haystack.size() < needle.size())
{
return -1;
}
for (auto ... | 25 | 96 | 0.462857 | husy8 |
ada701efc6c6a0c0c1e8b842e661aed24c439157 | 395 | hpp | C++ | include/mbgl/util/noncopyable.hpp | donpark/mapbox-gl-native | efa7dad89c61fe0fcc01a492e8db8e36b8f27f53 | [
"BSD-2-Clause"
] | 2 | 2017-02-28T22:41:54.000Z | 2020-02-13T20:54:55.000Z | include/mbgl/util/noncopyable.hpp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | null | null | null | include/mbgl/util/noncopyable.hpp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | null | null | null | #ifndef MBGL_UTIL_NONCOPYABLE
#define MBGL_UTIL_NONCOPYABLE
namespace mbgl { namespace util {
namespace non_copyable_
{
class noncopyable
{
protected:
constexpr noncopyable() = default;
~noncopyable() = default;
noncopyable( noncopyable const& ) = delete;
noncopyable& operator=(noncopyable const& ) =... | 16.458333 | 57 | 0.741772 | donpark |
ada9c8f9c20f331df19d7fb0745913c3cf7cf8cf | 736 | cc | C++ | main.cc | jerrytfleung/Ctor | 96637d136d32b3e06f39fb018281948a5480c622 | [
"Apache-2.0"
] | null | null | null | main.cc | jerrytfleung/Ctor | 96637d136d32b3e06f39fb018281948a5480c622 | [
"Apache-2.0"
] | null | null | null | main.cc | jerrytfleung/Ctor | 96637d136d32b3e06f39fb018281948a5480c622 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <initializer_list>
using namespace std;
template<class T>
class object {
public:
object() { cout << "Default ctor!" << endl; }
object(T size, T default_value) { cout << "Parameterized ctor!" << endl; }
object(initializer_list<T> init) { cout << "Initializer list ctor!" << endl; }
... | 23 | 90 | 0.589674 | jerrytfleung |
adaa08da237697b2c71a56cc0246355d06c55fff | 3,463 | cpp | C++ | src/core/gamestate.cpp | Twinklebear/LPCGame | f01a6ebe857b3b67cc1cb5cad39bf0641aa79e12 | [
"MIT"
] | 9 | 2015-09-09T05:59:40.000Z | 2021-05-22T11:07:54.000Z | src/core/gamestate.cpp | Twinklebear/LPCGame | f01a6ebe857b3b67cc1cb5cad39bf0641aa79e12 | [
"MIT"
] | null | null | null | src/core/gamestate.cpp | Twinklebear/LPCGame | f01a6ebe857b3b67cc1cb5cad39bf0641aa79e12 | [
"MIT"
] | 1 | 2015-08-06T06:55:12.000Z | 2015-08-06T06:55:12.000Z | #include <string>
#include <memory>
#include "external/json/json.h"
#include "entity.h"
#include "entitymanager.h"
#include "window.h"
#include "input.h"
#include "timer.h"
#include "objectbutton.h"
#include "gamestate.h"
#include <iostream>
GameState::GameState(){
}
GameState::~GameState(){
}
std::string GameState::... | 22.933775 | 97 | 0.642218 | Twinklebear |
adaa16e4739a43ebc4771d2f94f4122350e63069 | 10,562 | cpp | C++ | src/lib/operators/insert.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/lib/operators/insert.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/lib/operators/insert.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #include "insert.hpp"
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
#include "concurrency/transaction_context.hpp"
#include "resolve_type.hpp"
#include "storage/base_encoded_column.hpp"
#include "storage/storage_manager.hpp"
#include "storage/value_column.hpp"
#include "type_cast.hpp"
#in... | 44.008333 | 120 | 0.708862 | IanJamesMcKay |
adb258c3e8d37724ae9b3f84fd51d3ab9becc6c8 | 7,787 | cpp | C++ | test/AST/expression/or_expr_test.cpp | przestaw/vecc_SimpleLanguage | a48bb8c0e53cc5f256c926cdb28cf39b107d66ee | [
"MIT"
] | null | null | null | test/AST/expression/or_expr_test.cpp | przestaw/vecc_SimpleLanguage | a48bb8c0e53cc5f256c926cdb28cf39b107d66ee | [
"MIT"
] | null | null | null | test/AST/expression/or_expr_test.cpp | przestaw/vecc_SimpleLanguage | a48bb8c0e53cc5f256c926cdb28cf39b107d66ee | [
"MIT"
] | null | null | null | //
// Created by przemek on 27.03.2020.
//
#include <AST/expression/base_math_expr.h>
#include <AST/expression/or_logic_expr.h>
#include <boost/test/unit_test.hpp>
#include <error/exeception.h>
using namespace vecc;
using namespace vecc::ast;
using std::make_unique;
using std::move;
using std::unique_ptr;
BOOST_AUT... | 33.277778 | 67 | 0.766791 | przestaw |
adb49d6c754dc0e1c7042114f03d5edd5adbeb73 | 3,268 | cpp | C++ | inetsrv/intlwb/chs2/src/jargon.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/intlwb/chs2/src/jargon.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/intlwb/chs2/src/jargon.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*============================================================================
Microsoft Simplified Chinese Proofreading Engine
Microsoft Confidential.
Copyright 1997-1999 Microsoft Corporation. All Rights Reserved.
Component: CJargon
Purpose: Implement process control and public functions in CJargon class
... | 26.786885 | 80 | 0.518666 | npocmaka |