hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
173f67545228c863bfb4dfd4f32544c6a47b7beb | 848 | cpp | C++ | world/source/Currency.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | world/source/Currency.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | world/source/Currency.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | null | null | null | #include "Currency.hpp"
using namespace std;
Currency::Currency()
{
type = ItemType::ITEM_TYPE_CURRENCY;
symbol = '$';
status = ItemStatus::ITEM_STATUS_UNCURSED;
status_identified = true;
}
Currency::~Currency()
{
}
// Currency is always generated uncursed and shouldn't ever be set to another
// status.
voi... | 16.627451 | 77 | 0.760613 | sidav |
174181d9ea03e20a47edfd7776d7362926c81837 | 6,617 | cpp | C++ | SdkCore/SdkCore/Environment/EnvironmentWindowsMsvc/Implementation/Atom.cpp | DexterDreeeam/DxtSdk2021 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | 1 | 2021-11-18T03:57:54.000Z | 2021-11-18T03:57:54.000Z | SdkCore/SdkCore/Environment/EnvironmentWindowsMsvc/Implementation/Atom.cpp | DexterDreeeam/P9 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | null | null | null | SdkCore/SdkCore/Environment/EnvironmentWindowsMsvc/Implementation/Atom.cpp | DexterDreeeam/P9 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | null | null | null |
#include "../../_Interface.hpp"
#include "../EnvironmentHeader.hpp"
template<typename Ty>
class shadow_class
{
public:
using DataType = volatile Ty;
DataType _data;
};
atom<s64>::atom()
{
assert(_mem_sz >= sizeof(shadow_class<s64>));
new (_mem) volatile s64(0);
}
atom<s64>::atom(const atom<s64>& rh... | 22.130435 | 123 | 0.664652 | DexterDreeeam |
1743046c5a4b7ffe2ae6dac0b5741976c495f261 | 4,200 | cpp | C++ | proxygen/lib/http/codec/compress/HPACKDecodeBuffer.cpp | autoantwort/proxygen | 1cedfc101966163f647241b8c2564d55e4f31454 | [
"BSD-3-Clause"
] | 5,852 | 2015-01-01T06:12:49.000Z | 2022-03-31T07:28:30.000Z | proxygen/lib/http/codec/compress/HPACKDecodeBuffer.cpp | autoantwort/proxygen | 1cedfc101966163f647241b8c2564d55e4f31454 | [
"BSD-3-Clause"
] | 345 | 2015-01-02T22:15:43.000Z | 2022-03-28T23:33:28.000Z | proxygen/lib/http/codec/compress/HPACKDecodeBuffer.cpp | autoantwort/proxygen | 1cedfc101966163f647241b8c2564d55e4f31454 | [
"BSD-3-Clause"
] | 1,485 | 2015-01-04T14:39:26.000Z | 2022-03-22T02:32:08.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <proxygen/lib/http/codec/compress/HPACKDecodeBuffer.h>
#include <limits>
#include <memory>
... | 27.45098 | 79 | 0.65619 | autoantwort |
174900a72e262fd0c8609f175b386fa1246d7392 | 5,335 | cpp | C++ | CxxProfiler/SyntaxHighlighter.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | 110 | 2016-05-06T09:17:55.000Z | 2022-03-30T02:34:41.000Z | CxxProfiler/SyntaxHighlighter.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | null | null | null | CxxProfiler/SyntaxHighlighter.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | 5 | 2017-10-27T10:59:53.000Z | 2022-01-10T02:24:41.000Z | #include "SyntaxHighlighter.h"
// TODO http://www.kate-editor.org/syntax/3.9/isocpp.xml
SyntaxHighlighter::SyntaxHighlighter(QTextDocument* parent)
: QSyntaxHighlighter(parent)
{
HighlightingRule rule;
{
QTextCharFormat quotationFormat;
quotationFormat.setForeground(Qt::darkRed);
... | 34.869281 | 80 | 0.582193 | mmozeiko |
174c9629aab8e0ea818e6c47f1e9614bb651452a | 3,457 | hpp | C++ | src/contrib/mlir/runtime/cpu/cpu_runtime.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | src/contrib/mlir/runtime/cpu/cpu_runtime.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | src/contrib/mlir/runtime/cpu/cpu_runtime.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// 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://w... | 38.411111 | 91 | 0.581429 | pqLee |
174e28567b7f8f09e81209419631ecd072a5b649 | 1,523 | cpp | C++ | src/TaskManager/src/system2.cpp | RemiMattheyDoret/TaskManager | bea51ba9fcdf7390b57148bfa8adba75f25dddaa | [
"MIT"
] | null | null | null | src/TaskManager/src/system2.cpp | RemiMattheyDoret/TaskManager | bea51ba9fcdf7390b57148bfa8adba75f25dddaa | [
"MIT"
] | null | null | null | src/TaskManager/src/system2.cpp | RemiMattheyDoret/TaskManager | bea51ba9fcdf7390b57148bfa8adba75f25dddaa | [
"MIT"
] | null | null | null |
/*
system2 runs a shell command in the background and return the PID.
I stole this piece of code from https://stackoverflow.com/questions/22802902/how-to-get-pid-of-process-executed-with-system-command-in-c and modified it a little bit to fit my needs
system2() does not pauses like system(). It is theref... | 22.397059 | 185 | 0.560079 | RemiMattheyDoret |
17562622d3119f56a683652e446b6d9e8af2cb2f | 13,271 | cpp | C++ | src/3ds/Graphics.cpp | mysterypaint/Hmm2 | 61e7b6566c1bf3590dde055a7107d486db03b077 | [
"MIT"
] | null | null | null | src/3ds/Graphics.cpp | mysterypaint/Hmm2 | 61e7b6566c1bf3590dde055a7107d486db03b077 | [
"MIT"
] | null | null | null | src/3ds/Graphics.cpp | mysterypaint/Hmm2 | 61e7b6566c1bf3590dde055a7107d486db03b077 | [
"MIT"
] | null | null | null | #include "Graphics.hpp"
#include "../PHL.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../Resources.hpp"
PHL_Surface db = {0};
PHL_Surface backBuffer = {0};
PHL_Surface dbAlt = {0};
PHL_Surface backBufferAlt = {0};
const int cWidth = 320;
const int cHeight = 240;
Screen scrnTop = {
GF... | 28.057082 | 164 | 0.490619 | mysterypaint |
1757288b370f17004e7f385e0f07db58febb9e40 | 289 | cpp | C++ | Decorator/Decorator/Color.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | 8 | 2020-01-23T23:20:40.000Z | 2022-01-08T13:04:08.000Z | Decorator/Decorator/Color.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | null | null | null | Decorator/Decorator/Color.cpp | jayavardhanravi/DesignPatterns | aa6a37790f447c7caf69c6a1a9c6107074309a03 | [
"BSD-2-Clause"
] | 1 | 2020-01-28T14:27:54.000Z | 2020-01-28T14:27:54.000Z | #include "Color.h"
Color::Color(Mesh *mesh): MeshDecorator(mesh)
{
}
Color::~Color()
{
}
void Color::AddMeshProperties()
{
MeshDecorator::AddMeshProperties();
ColorFeatures();
}
void Color::ColorFeatures()
{
std::cout << "Added the Color Features" << std::endl;
} | 14.45 | 55 | 0.636678 | jayavardhanravi |
1760bcc6a7f257e9b16278992d6d2f2c8143bad0 | 56 | hpp | C++ | src/boost_spirit_home_qi_auxiliary_attr_cast.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_qi_auxiliary_attr_cast.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_qi_auxiliary_attr_cast.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/qi/auxiliary/attr_cast.hpp>
| 28 | 55 | 0.803571 | miathedev |
1764e3714e86b52ebefaf7fab17b045c75f3c7fe | 9,153 | cpp | C++ | src/services/http.cpp | devinsmith/tfstool | bccd7dc97a769a87fb576c1feae32290cf6bd8c3 | [
"MIT"
] | null | null | null | src/services/http.cpp | devinsmith/tfstool | bccd7dc97a769a87fb576c1feae32290cf6bd8c3 | [
"MIT"
] | null | null | null | src/services/http.cpp | devinsmith/tfstool | bccd7dc97a769a87fb576c1feae32290cf6bd8c3 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2012-2019 Devin Smith <devin@devinsmith.net>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... | 25.783099 | 154 | 0.694417 | devinsmith |
17671c04293be639f9cf311ef66f46b0a86d035b | 6,620 | cpp | C++ | engine/engine/core/math/tests/so3.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | null | null | null | engine/engine/core/math/tests/so3.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | null | null | null | engine/engine/core/math/tests/so3.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2022-01-28T16:37:51.000Z | 2022-01-28T16:37:51.000Z | /*
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 38.045977 | 103 | 0.629154 | ddr95070 |
176af815ab84f5cfde7a5eaea80f8cccbfcb108d | 8,354 | cc | C++ | orb_slam3/Examples/ROS/ORB_SLAM3/src/mono_imu_tcw.cc | zhouyong1234/ORB-SLAM3 | 796fa6d8562c88355b78411f9f6915e287a14f5a | [
"Apache-2.0"
] | null | null | null | orb_slam3/Examples/ROS/ORB_SLAM3/src/mono_imu_tcw.cc | zhouyong1234/ORB-SLAM3 | 796fa6d8562c88355b78411f9f6915e287a14f5a | [
"Apache-2.0"
] | null | null | null | orb_slam3/Examples/ROS/ORB_SLAM3/src/mono_imu_tcw.cc | zhouyong1234/ORB-SLAM3 | 796fa6d8562c88355b78411f9f6915e287a14f5a | [
"Apache-2.0"
] | null | null | null | /**
* This file is part of ORB-SLAM3
*
* Copyright (C) 2017-2020 Carlos Campos, Richard Elvira, Juan J. Gómez Rodríguez, José M.M. Montiel and Juan D. Tardós, University of Zaragoza.
* Copyright (C) 2014-2016 Raúl Mur-Artal, José M.M. Montiel and Juan D. Tardós, University of Zaragoza.
*
* ORB-SLAM3 is free software: y... | 31.055762 | 180 | 0.625569 | zhouyong1234 |
176c14c56d38352d4afa91612a7dbf8873219b46 | 131 | cpp | C++ | src/core/DataStreamException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | null | null | null | src/core/DataStreamException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | 26 | 2017-12-13T12:45:32.000Z | 2018-02-06T11:08:04.000Z | src/core/DataStreamException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | null | null | null | #include "DataStreamException.h"
DataStreamException::DataStreamException(const char * message) :
BaseException(message)
{
}
| 16.375 | 64 | 0.770992 | Neomer |
176d4e9093f4dd271a1818cb111d883b50d8c17c | 2,924 | cpp | C++ | manager.cpp | kwarehit/runtestcases | fe7b68a90b7d5051277e383c50a1e90fbeab8c73 | [
"BSL-1.0"
] | null | null | null | manager.cpp | kwarehit/runtestcases | fe7b68a90b7d5051277e383c50a1e90fbeab8c73 | [
"BSL-1.0"
] | null | null | null | manager.cpp | kwarehit/runtestcases | fe7b68a90b7d5051277e383c50a1e90fbeab8c73 | [
"BSL-1.0"
] | null | null | null | #include "manager.h"
#include "commonhdr.h"
#include "log.h"
#include "caseinfomodel.h"
#include "monitor.h"
#include "iocontextwrapper.h"
#include "datamanager.h"
#include "logtext.h"
#include "caseinfomodel.h"
Manager::Manager(QObject *parent)
: QObject(parent)
{
dataMgr_ = std::make_shared<DataManager>();... | 20.305556 | 98 | 0.626197 | kwarehit |
176e929ba649f73a9bb54d48b92cfc75971ffce0 | 967 | cpp | C++ | BookSamples/Capitolo7/Ritardo_BufferLineare/Ritardo_BufferLineare/main.cpp | mscarpiniti/ArtBook | ca74c773c7312d22329cc453f4a5a799fe2dd587 | [
"MIT"
] | null | null | null | BookSamples/Capitolo7/Ritardo_BufferLineare/Ritardo_BufferLineare/main.cpp | mscarpiniti/ArtBook | ca74c773c7312d22329cc453f4a5a799fe2dd587 | [
"MIT"
] | null | null | null | BookSamples/Capitolo7/Ritardo_BufferLineare/Ritardo_BufferLineare/main.cpp | mscarpiniti/ArtBook | ca74c773c7312d22329cc453f4a5a799fe2dd587 | [
"MIT"
] | null | null | null | #include <iostream>
#define SAMPLE_RATE 44100
using namespace std;
/* Buffer Lineare ---------------------------------------------------------- */
float D_LinBuffer(float *buffer, int D, float x)
{
int i;
for(i = D-1; i >= 1; i--)
buffer[i] = buffer[i-1];
buffer[0] = x;
return b... | 21.021739 | 80 | 0.416753 | mscarpiniti |
176f15fa2f0fe766ba00bdeec96e1621b8ce07d3 | 2,910 | ipp | C++ | boost/test/utils/runtime/cla/dual_name_parameter.ipp | UnPourTous/boost-159-for-rn | 47e2c37fcbd5e1b25561e5a4fc81bc4f31d2cbf4 | [
"BSL-1.0"
] | 2 | 2021-08-08T02:06:56.000Z | 2021-12-20T02:16:44.000Z | include/boost/test/utils/runtime/cla/dual_name_parameter.ipp | Acidburn0zzz/PopcornTorrent-1 | c12a30ef9e971059dae5f7ce24a8c37fef83c0c4 | [
"MIT"
] | null | null | null | include/boost/test/utils/runtime/cla/dual_name_parameter.ipp | Acidburn0zzz/PopcornTorrent-1 | c12a30ef9e971059dae5f7ce24a8c37fef83c0c4 | [
"MIT"
] | 1 | 2017-04-09T17:04:14.000Z | 2017-04-09T17:04:14.000Z | // (C) Copyright Gennadiy Rozental 2005-2014.
// Use, modification, and distribution are subject to 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)
// See http://www.boost.org/libs/test for the library home page.
//
// ... | 31.978022 | 112 | 0.669416 | UnPourTous |
1771c5a32dfefdf6a35b913d0f935a71a823278f | 3,236 | cpp | C++ | src/MeteringSDK/MCORE/MSynchronizer.cpp | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 9 | 2016-09-02T17:24:58.000Z | 2021-12-14T19:43:48.000Z | src/MeteringSDK/MCORE/MSynchronizer.cpp | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 1 | 2018-09-06T21:48:42.000Z | 2018-09-06T21:48:42.000Z | src/MeteringSDK/MCORE/MSynchronizer.cpp | beroset/C12Adapter | 593b201db169481245b0673813e19d174560a41e | [
"MIT"
] | 4 | 2016-09-06T16:54:36.000Z | 2021-12-16T16:15:24.000Z | // File MCORE/MSynchronizer.cpp
#include "MCOREExtern.h"
#include "MSynchronizer.h"
#include "MException.h"
#if !M_NO_MULTITHREADING
MSynchronizer::Locker::Locker(const MSynchronizer& s)
:
m_synchronizer(const_cast<MSynchronizer&>(s)),
m_locked(false)
{
m_synchronizer.Lock();
m_locked = true;
}
MSynchr... | 26.308943 | 162 | 0.554079 | beroset |
1776a2192a86edd7a26a00d7695fe7c2cbca732a | 88 | cpp | C++ | meditation_app/model/statsmodel.cpp | mikkac/meditation_app | 26c592e0c91fd2661ab91c2f7ce020293962aa99 | [
"MIT"
] | null | null | null | meditation_app/model/statsmodel.cpp | mikkac/meditation_app | 26c592e0c91fd2661ab91c2f7ce020293962aa99 | [
"MIT"
] | null | null | null | meditation_app/model/statsmodel.cpp | mikkac/meditation_app | 26c592e0c91fd2661ab91c2f7ce020293962aa99 | [
"MIT"
] | null | null | null | #include "statsmodel.h"
StatsModel::StatsModel(QObject *parent) : QObject(parent)
{
}
| 12.571429 | 57 | 0.727273 | mikkac |
17799c7bc5a2165217b53d8904404910a77fff2a | 10,622 | cpp | C++ | libs/spirit/example/x3/calc6.cpp | Abce/boost | 2d7491a27211aa5defab113f8e2d657c3d85ca93 | [
"BSL-1.0"
] | 85 | 2015-02-08T20:36:17.000Z | 2021-11-14T20:38:31.000Z | libs/boost/libs/spirit/example/x3/calc6.cpp | flingone/frameworks_base_cmds_remoted | 4509d9f0468137ed7fd8d100179160d167e7d943 | [
"Apache-2.0"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | libs/boost/libs/spirit/example/x3/calc6.cpp | flingone/frameworks_base_cmds_remoted | 4509d9f0468137ed7fd8d100179160d167e7d943 | [
"Apache-2.0"
] | 27 | 2015-01-28T16:33:30.000Z | 2021-08-12T05:04:39.000Z | /*=============================================================================
Copyright (c) 2001-2014 Joel de Guzman
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)
====================================... | 30.522989 | 98 | 0.419036 | Abce |
177c1a8537d1eaa642928e64cf949a250d44e614 | 10,313 | cpp | C++ | cpp/src/grammar.cpp | sapphire-lang/emerald | 5cb7209f918e8ebdb36bb0455f58d3e941fc6e52 | [
"MIT"
] | null | null | null | cpp/src/grammar.cpp | sapphire-lang/emerald | 5cb7209f918e8ebdb36bb0455f58d3e941fc6e52 | [
"MIT"
] | null | null | null | cpp/src/grammar.cpp | sapphire-lang/emerald | 5cb7209f918e8ebdb36bb0455f58d3e941fc6e52 | [
"MIT"
] | null | null | null | #include <string>
#include <regex>
#include <iostream>
#include "grammar.hpp"
// [START] Include nodes
#include "nodes/node.hpp"
#include "nodes/node_list.hpp"
#include "nodes/boolean.hpp"
#include "nodes/scope_fn.hpp"
#include "nodes/scope.hpp"
#include "nodes/line.hpp"
#include "nodes/value_list.hpp"
#include "node... | 30.332353 | 115 | 0.641617 | sapphire-lang |
ed003a579b727db1c52ef8c442fafcd3068a77b8 | 2,121 | cpp | C++ | Playlist.cpp | Kazmi007/Music-Streaming-Platform | 78cd7d66c36332659e2dd0df5828c6331e177e0c | [
"OLDAP-2.7",
"OLDAP-2.8"
] | null | null | null | Playlist.cpp | Kazmi007/Music-Streaming-Platform | 78cd7d66c36332659e2dd0df5828c6331e177e0c | [
"OLDAP-2.7",
"OLDAP-2.8"
] | null | null | null | Playlist.cpp | Kazmi007/Music-Streaming-Platform | 78cd7d66c36332659e2dd0df5828c6331e177e0c | [
"OLDAP-2.7",
"OLDAP-2.8"
] | null | null | null | #include "Playlist.h"
Playlist::Playlist(const std::string &name) { // Custom consructor.
static int playlistId = 1;
this->name = name;
this->shared = false;
this->playlistId = playlistId;
playlistId += 1;
}
int Playlist::getPlaylistId() const { // Returns playlist ID.
return this->playlis... | 29.458333 | 130 | 0.631306 | Kazmi007 |
ed01c56783d7c5aea9003ea35ea64f6145225a0e | 1,331 | cpp | C++ | unittests/BuildSystem/TempDir.cpp | dmbryson/swift-llbuild | 91f2c5dbeef135113c6574f5797c9e87ef8c3fe8 | [
"Apache-2.0"
] | 427 | 2018-05-29T14:21:02.000Z | 2022-03-16T03:17:54.000Z | unittests/BuildSystem/TempDir.cpp | dmbryson/swift-llbuild | 91f2c5dbeef135113c6574f5797c9e87ef8c3fe8 | [
"Apache-2.0"
] | 25 | 2018-07-23T08:34:15.000Z | 2021-11-05T07:13:36.000Z | unittests/BuildSystem/TempDir.cpp | dmbryson/swift-llbuild | 91f2c5dbeef135113c6574f5797c9e87ef8c3fe8 | [
"Apache-2.0"
] | 52 | 2018-07-19T19:57:32.000Z | 2022-03-11T16:05:38.000Z | //===- unittests/BuildSystem/TempDir.cpp --------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICE... | 32.463415 | 80 | 0.643877 | dmbryson |
ed01f0bfc602fbadf8c3dfa7f86b8c977d7e3049 | 2,691 | cpp | C++ | src/padamose/BranchInspector.cpp | young-developer/padamose | ad827c67ed10125b6f1af3c9300ca122c5d4fcf2 | [
"BSD-3-Clause"
] | null | null | null | src/padamose/BranchInspector.cpp | young-developer/padamose | ad827c67ed10125b6f1af3c9300ca122c5d4fcf2 | [
"BSD-3-Clause"
] | null | null | null | src/padamose/BranchInspector.cpp | young-developer/padamose | ad827c67ed10125b6f1af3c9300ca122c5d4fcf2 | [
"BSD-3-Clause"
] | 1 | 2021-12-07T13:28:58.000Z | 2021-12-07T13:28:58.000Z | // Copyright (c) 2017-2018, Cryptogogue Inc. All Rights Reserved.
// http://cryptogogue.com
#include <padamose/AbstractVersionedBranch.h>
#include <padamose/BranchInspector.h>
namespace Padamose {
//================================================================//
// BranchInspector
//==============================... | 32.035714 | 84 | 0.487923 | young-developer |
ed0269150e8aeec7c323422b4a231fc979611d5b | 15,219 | cpp | C++ | uring/relay.cpp | Mutinifni/urn | 9708606e05e8d4487ae9fd88654ef53dff413c07 | [
"MIT"
] | null | null | null | uring/relay.cpp | Mutinifni/urn | 9708606e05e8d4487ae9fd88654ef53dff413c07 | [
"MIT"
] | null | null | null | uring/relay.cpp | Mutinifni/urn | 9708606e05e8d4487ae9fd88654ef53dff413c07 | [
"MIT"
] | 2 | 2021-08-24T11:04:46.000Z | 2021-08-24T11:07:50.000Z | #include <arpa/inet.h>
#include <array>
#include <condition_variable>
#include <cstring>
#include <liburing.h>
#include <netdb.h>
#include <signal.h>
#include <string>
#include <sys/socket.h>
#include <thread>
#include <unistd.h>
#include <uring/relay.hpp>
#include <vector>
#define ENABLE_FIXED_BUFFERS 1
#define ENABL... | 27.873626 | 99 | 0.67304 | Mutinifni |
ed0277bd2f37f0c7598d51e56627b22f5b7d4890 | 194 | hpp | C++ | include/sql/fusion/common.hpp | cviebig/lib-sql | fed42f80b5866503c5f5710d791feec213c051a1 | [
"MIT"
] | 4 | 2017-09-25T00:03:31.000Z | 2020-04-02T07:06:24.000Z | include/sql/fusion/common.hpp | cviebig/lib-sql | fed42f80b5866503c5f5710d791feec213c051a1 | [
"MIT"
] | 1 | 2018-05-16T20:00:42.000Z | 2018-05-30T13:21:20.000Z | include/sql/fusion/common.hpp | cviebig/lib-sql | fed42f80b5866503c5f5710d791feec213c051a1 | [
"MIT"
] | 1 | 2022-01-05T20:49:47.000Z | 2022-01-05T20:49:47.000Z | #ifndef SQL_PARSER_FUSION_COMMON_HPP
#define SQL_PARSER_FUSION_COMMON_HPP
#include "sql/ast/common.hpp"
#include <boost/fusion/include/adapt_struct.hpp>
#endif //SQL_PARSER_FUSION_COMMON_HPP
| 21.555556 | 48 | 0.840206 | cviebig |
ed05c033f63aea0e80feac1d7795b93ee266cbb5 | 15,059 | cpp | C++ | source/Image/JPEGLoader.cpp | badbrainz/pme | 1c8e6f3d154cc59613f5ef3f2f8293f488c64b28 | [
"WTFPL"
] | null | null | null | source/Image/JPEGLoader.cpp | badbrainz/pme | 1c8e6f3d154cc59613f5ef3f2f8293f488c64b28 | [
"WTFPL"
] | null | null | null | source/Image/JPEGLoader.cpp | badbrainz/pme | 1c8e6f3d154cc59613f5ef3f2f8293f488c64b28 | [
"WTFPL"
] | null | null | null | #include "image.h"
#include <stdio.h>
#ifndef max
#define max(a, b) (((a)>(b))?(a):(b))
#endif
#ifndef min
#define min(a, b) (((a)<(b))?(a):(b))
#endif
unsigned char getByte();
char fileOpen(const char *);
void decodeQTable(int);
void strmSkip(int n);
void decodeBlock();
void fileClose();
void g... | 19.972149 | 126 | 0.413042 | badbrainz |
ed0abd8c3d8ed4a09cd6b81ccbeb73e70dbf8c62 | 1,160 | hpp | C++ | bt/ActiveSelector.hpp | river34/game-bt | a0464ae782ebcddd638633016cd65c5b5db14cc3 | [
"MIT"
] | 1 | 2018-11-08T09:56:11.000Z | 2018-11-08T09:56:11.000Z | bt/ActiveSelector.hpp | river34/game-bt | a0464ae782ebcddd638633016cd65c5b5db14cc3 | [
"MIT"
] | null | null | null | bt/ActiveSelector.hpp | river34/game-bt | a0464ae782ebcddd638633016cd65c5b5db14cc3 | [
"MIT"
] | null | null | null | //
// ActiveSelector.hpp
// GameBT
//
// Created by River Liu on 15/1/2018.
// Copyright © 2018 River Liu. All rights reserved.
//
// ActiveSelector is a Selector that actively rechecks
// its children.
#ifndef ActiveSelector_hpp
#define ActiveSelector_hpp
#include "Selector.hpp"
namespace BT
{
class A... | 28.292683 | 113 | 0.642241 | river34 |
ed0bdf697701d499334845ca3e4e059392307d34 | 3,729 | hpp | C++ | ngraph/core/include/openvino/op/util/convert_color_nv12_base.hpp | alexander-shchepetov/openvino | a9dae1e3f2ba8b3fec227c51f4c1948667309efc | [
"Apache-2.0"
] | 1 | 2021-07-14T07:20:24.000Z | 2021-07-14T07:20:24.000Z | ngraph/core/include/openvino/op/util/convert_color_nv12_base.hpp | alexander-shchepetov/openvino | a9dae1e3f2ba8b3fec227c51f4c1948667309efc | [
"Apache-2.0"
] | 34 | 2020-11-19T12:27:40.000Z | 2022-02-21T13:14:04.000Z | ngraph/core/include/openvino/op/util/convert_color_nv12_base.hpp | mznamens/openvino | ec126c6252aa39a6c63ddf124350a92687396771 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "openvino/op/op.hpp"
#include "openvino/op/util/attr_types.hpp"
namespace ov {
namespace op {
namespace util {
/// \brief Base class for color conversion operation from NV12 to RGB/BGR format.
/// Input:
/... | 45.47561 | 120 | 0.668812 | alexander-shchepetov |
ed0e9f5386aaa1ef57e88ba106cd245c85cd7664 | 16,233 | cpp | C++ | PathNetwork.cpp | jeffreycassidy/osm2bin | 7a6751d1a5045d8fb260aaa723ae85da193b4c93 | [
"Apache-2.0"
] | 4 | 2015-10-31T01:33:25.000Z | 2021-04-29T08:04:51.000Z | PathNetwork.cpp | jeffreycassidy/osm2bin | 7a6751d1a5045d8fb260aaa723ae85da193b4c93 | [
"Apache-2.0"
] | null | null | null | PathNetwork.cpp | jeffreycassidy/osm2bin | 7a6751d1a5045d8fb260aaa723ae85da193b4c93 | [
"Apache-2.0"
] | 2 | 2016-06-14T05:05:04.000Z | 2020-04-11T05:56:39.000Z | /*
* PathNetwork.cpp
*
* Created on: Dec 15, 2015
* Author: jcassidy
*/
#include "PathNetwork.hpp"
#include "OSMDatabase.hpp"
#include <boost/container/flat_map.hpp>
using namespace std;
const char* OSMWayFilterRoads::includeHighwayTagValueStrings_[] = {
"residential",
"primary",
"primary_li... | 35.913717 | 184 | 0.56687 | jeffreycassidy |
ed109cc9f75dd7d93d2c930aa5e4705cc9f1448b | 10,076 | cpp | C++ | pandar_pointcloud/src/lib/decoder/pandar64_decoder.cpp | Perception-Engine/hesai_pandar | bbdfdf5d81423715c47c0526ac51084fef029edf | [
"Apache-2.0"
] | null | null | null | pandar_pointcloud/src/lib/decoder/pandar64_decoder.cpp | Perception-Engine/hesai_pandar | bbdfdf5d81423715c47c0526ac51084fef029edf | [
"Apache-2.0"
] | 6 | 2021-05-17T06:48:19.000Z | 2022-02-24T23:43:46.000Z | pandar_pointcloud/src/lib/decoder/pandar64_decoder.cpp | Perception-Engine/hesai_pandar | bbdfdf5d81423715c47c0526ac51084fef029edf | [
"Apache-2.0"
] | 1 | 2021-03-05T00:39:13.000Z | 2021-03-05T00:39:13.000Z | #include "pandar_pointcloud/decoder/pandar64_decoder.hpp"
#include "pandar_pointcloud/decoder/pandar64.hpp"
namespace
{
static inline double deg2rad(double degrees)
{
return degrees * M_PI / 180.0;
}
}
namespace pandar_pointcloud
{
namespace pandar64
{
Pandar64Decoder::Pandar64Decoder(Calibration& c... | 39.206226 | 170 | 0.629813 | Perception-Engine |
ed131fe5b427cb67d5e58e91813206a3d106ffe5 | 1,634 | cpp | C++ | DXR_SoftShadows_Project/BeLuEngine/src/Renderer/DX12Tasks/RenderTask.cpp | jocke1995/DXR_SoftShadows | 00cb6b1cf560899a010c9e8504578d55e113c22c | [
"MIT"
] | null | null | null | DXR_SoftShadows_Project/BeLuEngine/src/Renderer/DX12Tasks/RenderTask.cpp | jocke1995/DXR_SoftShadows | 00cb6b1cf560899a010c9e8504578d55e113c22c | [
"MIT"
] | null | null | null | DXR_SoftShadows_Project/BeLuEngine/src/Renderer/DX12Tasks/RenderTask.cpp | jocke1995/DXR_SoftShadows | 00cb6b1cf560899a010c9e8504578d55e113c22c | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "RenderTask.h"
// DX12 Specifics
#include "../CommandInterface.h"
#include "../GPUMemory/GPUMemory.h"
#include "../PipelineState/GraphicsState.h"
#include "../RootSignature.h"
#include "../SwapChain.h"
RenderTask::RenderTask(
ID3D12Device5* device,
RootSignature* rootSignature,
const s... | 22.383562 | 103 | 0.76989 | jocke1995 |
ed1498729e51bb7858cd00d50dd565ab4e53f33e | 568 | cpp | C++ | Permutation/Permutation.cpp | raza6/CSES | cfaec9d7bc103c7349cc17c0a07112d1e245dc3a | [
"MIT"
] | null | null | null | Permutation/Permutation.cpp | raza6/CSES | cfaec9d7bc103c7349cc17c0a07112d1e245dc3a | [
"MIT"
] | null | null | null | Permutation/Permutation.cpp | raza6/CSES | cfaec9d7bc103c7349cc17c0a07112d1e245dc3a | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
typedef long long ll;
int main()
{
// HACKERMAN
ios::sync_with_stdio(false);
cin.tie(0);
//Read inputs
int value;
cin >> value;
string res = "NO SOLUTION";
if (value > 3) {
res = "";
for (int i = 2; i <= val... | 16.705882 | 45 | 0.43838 | raza6 |
ed16403f90d5cb98d45293e480b4258b7ad5efee | 3,531 | hpp | C++ | src/utility/Confidence.hpp | wvDevAus/Expert-System-Shell | b0c92b1ecb31066c473e549878a9a157b4ea72c9 | [
"MIT"
] | null | null | null | src/utility/Confidence.hpp | wvDevAus/Expert-System-Shell | b0c92b1ecb31066c473e549878a9a157b4ea72c9 | [
"MIT"
] | null | null | null | src/utility/Confidence.hpp | wvDevAus/Expert-System-Shell | b0c92b1ecb31066c473e549878a9a157b4ea72c9 | [
"MIT"
] | null | null | null | #pragma once
#include "nlohmann/json.hpp"
namespace expert_system::utility {
/**
* @brief A managed confidence factor.
* Ensures that the confidence factor does not exceed the range of 0.0f and 1.0f.
*/
class Confidence {
public:
/**
* @brief Defaul... | 37.967742 | 109 | 0.588219 | wvDevAus |
ed182479fd135847b311e09e06377096813da592 | 3,347 | cpp | C++ | src/TRGame/Lighting/Lighting.cpp | CXUtk/TRV2 | 945950012e2385aeb24e80bf5e876703445ba423 | [
"Apache-2.0"
] | null | null | null | src/TRGame/Lighting/Lighting.cpp | CXUtk/TRV2 | 945950012e2385aeb24e80bf5e876703445ba423 | [
"Apache-2.0"
] | 15 | 2021-09-04T13:02:51.000Z | 2021-10-05T05:51:31.000Z | src/TRGame/Lighting/Lighting.cpp | CXUtk/TRV2 | 945950012e2385aeb24e80bf5e876703445ba423 | [
"Apache-2.0"
] | null | null | null | #include "Lighting.h"
#include "LightCalculator/LightCommon.h"
#include "LightCalculator/BFSLightCalculator.h"
#include "LightCalculator/DirectionalLightCalculator.h"
#include <TRGame/TRGame.hpp>
#include <TRGame/Player/Player.h>
#include <TRGame/Worlds/GameWorld.h>
#include <TRGame/Worlds/WorldResources.h>
#include... | 26.991935 | 99 | 0.747834 | CXUtk |
ed190a1496f87ff0fa3906b2cc16882613357aad | 3,237 | cpp | C++ | sensors/lidars/velodyne/impl/thin_reader.cpp | jackiecx/snark | 492c1b6f26b9e3e8ea6fc66ad1a8c7f997f90ec6 | [
"BSD-3-Clause"
] | 1 | 2019-06-14T15:21:24.000Z | 2019-06-14T15:21:24.000Z | sensors/lidars/velodyne/impl/thin_reader.cpp | jackiecx/snark | 492c1b6f26b9e3e8ea6fc66ad1a8c7f997f90ec6 | [
"BSD-3-Clause"
] | null | null | null | sensors/lidars/velodyne/impl/thin_reader.cpp | jackiecx/snark | 492c1b6f26b9e3e8ea6fc66ad1a8c7f997f90ec6 | [
"BSD-3-Clause"
] | null | null | null | // This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// 1. Redistr... | 42.592105 | 185 | 0.71764 | jackiecx |
ed1a79bdc801741558e76b1f925ccf3a814cb406 | 1,807 | cpp | C++ | soundmanager.cpp | hckr/space-logic-adventure | 7465c7ffb70b0488ce4ff88620e3d35742f4fb06 | [
"MIT"
] | 6 | 2017-09-15T16:15:03.000Z | 2020-01-09T04:31:26.000Z | soundmanager.cpp | hckr/space-logic-adventure | 7465c7ffb70b0488ce4ff88620e3d35742f4fb06 | [
"MIT"
] | null | null | null | soundmanager.cpp | hckr/space-logic-adventure | 7465c7ffb70b0488ce4ff88620e3d35742f4fb06 | [
"MIT"
] | 1 | 2017-12-05T05:22:02.000Z | 2017-12-05T05:22:02.000Z | #include "soundmanager.hpp"
void SoundManager::lowerMusicVolume(bool lower) {
if (lower) {
sounds.at(MENU).setVolume(50);
sounds.at(LEVEL).setVolume(50);
} else {
sounds.at(MENU).setVolume(100);
sounds.at(LEVEL).setVolume(100);
}
}
SoundManager::SoundManager()
{
menuSB.... | 21.511905 | 100 | 0.60653 | hckr |
ed1bfd33453e41f099287ac92d62cd0efef6729a | 10,530 | cpp | C++ | rosflight_utils/src/turbomath.cpp | WangGY-Pro/rosflight | 000e3d79383e05d7cc574129644a12c694a876eb | [
"BSD-3-Clause"
] | 80 | 2017-05-27T16:21:32.000Z | 2022-03-09T13:24:38.000Z | rosflight_utils/src/turbomath.cpp | WangGY-Pro/rosflight | 000e3d79383e05d7cc574129644a12c694a876eb | [
"BSD-3-Clause"
] | 82 | 2017-05-17T17:10:04.000Z | 2021-06-06T04:25:44.000Z | rosflight_utils/src/turbomath.cpp | WangGY-Pro/rosflight | 000e3d79383e05d7cc574129644a12c694a876eb | [
"BSD-3-Clause"
] | 67 | 2017-05-16T19:26:53.000Z | 2022-03-27T15:04:34.000Z | /*
* Copyright (c) 2017 James Jackson, BYU MAGICC Lab.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* ... | 40.19084 | 115 | 0.624501 | WangGY-Pro |
ed2361d4d9657c4cf13a717dbaa5fc190ed17e7b | 19,733 | cpp | C++ | ImageDetectionAccessPoint/CardAreaDetection.cpp | rWarder4/ImageDetectionAccessPoint | 43e4d1ece0f82e8b336fe99573432d3d26abdb69 | [
"MIT"
] | null | null | null | ImageDetectionAccessPoint/CardAreaDetection.cpp | rWarder4/ImageDetectionAccessPoint | 43e4d1ece0f82e8b336fe99573432d3d26abdb69 | [
"MIT"
] | null | null | null | ImageDetectionAccessPoint/CardAreaDetection.cpp | rWarder4/ImageDetectionAccessPoint | 43e4d1ece0f82e8b336fe99573432d3d26abdb69 | [
"MIT"
] | null | null | null | #include "CardAreaDetection.h"
#include <opencv2/videostab/ring_buffer.hpp>
// defines includes
#include <opencv2\imgcodecs\imgcodecs_c.h>
#include <opencv2\imgproc\types_c.h>
using namespace cv;
IDAP::CardAreaDetection::CardAreaDetection(int _id, int _playerID, int _sizeID, int _xPos, int _yPos, int _width, ... | 39.075248 | 257 | 0.539654 | rWarder4 |
ed2674d20a72a0a493fa68eb592abcf456cb9c53 | 28,956 | cpp | C++ | Source/CLI/Global.cpp | JeromeMartinez/RAWcooked | 41379cc9ebb9511eb7445dce7a4a9064125a92f0 | [
"BSD-2-Clause"
] | null | null | null | Source/CLI/Global.cpp | JeromeMartinez/RAWcooked | 41379cc9ebb9511eb7445dce7a4a9064125a92f0 | [
"BSD-2-Clause"
] | null | null | null | Source/CLI/Global.cpp | JeromeMartinez/RAWcooked | 41379cc9ebb9511eb7445dce7a4a9064125a92f0 | [
"BSD-2-Clause"
] | null | null | null | /* Copyright (c) MediaArea.net SARL & AV Preservation by reto.ch.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//---------------------------------------------------------------------------
#include "CLI/Glob... | 32.461883 | 163 | 0.45355 | JeromeMartinez |
ed275cc17cde49f52def9dcc9f0c0470d9af7c14 | 1,617 | cpp | C++ | core/fxge/dib/fx_dib.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | 16 | 2018-09-14T12:07:14.000Z | 2021-04-22T11:18:25.000Z | core/fxge/dib/fx_dib.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | 1 | 2020-12-26T16:18:40.000Z | 2020-12-26T16:18:40.000Z | core/fxge/dib/fx_dib.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | 6 | 2017-09-12T14:09:32.000Z | 2021-11-20T03:32:27.000Z | // Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fxge/dib/fx_dib.h"
#include <tuple>
#include <utility>
#inclu... | 26.508197 | 80 | 0.710575 | yanxijian |
ed2fe22e3bebe19526b10a68bcb9cb728a082742 | 1,118 | cpp | C++ | codeforces/2020/round#630/C.cpp | plusplus7/solutions | 31233c13ee2bd0da6a907a24adbaf5b49ebf843c | [
"CC0-1.0"
] | 5 | 2016-04-29T07:14:23.000Z | 2020-01-07T04:56:11.000Z | codeforces/2020/round#630/C.cpp | plusplus7/solutions | 31233c13ee2bd0da6a907a24adbaf5b49ebf843c | [
"CC0-1.0"
] | null | null | null | codeforces/2020/round#630/C.cpp | plusplus7/solutions | 31233c13ee2bd0da6a907a24adbaf5b49ebf843c | [
"CC0-1.0"
] | 1 | 2016-04-29T07:14:32.000Z | 2016-04-29T07:14:32.000Z | #include <bits/stdc++.h >
using namespace std;
int cnt[200005][26];
char s[200005];
int main()
{
int T;
scanf("%d", &T);
while (T--) {
int n, k;
scanf("%d%d", &n, &k);
scanf("%s", s);
for (int i=0; i<n; i++) {
for (int j=0; j<26; j++) {
c... | 20.703704 | 42 | 0.28712 | plusplus7 |
ed3090bc9abd62ac484ff5872db4b1682db29842 | 11,744 | cpp | C++ | src/system.cpp | marangisto/HAL | fa56b539f64b277fa122a010e4ee643463f58498 | [
"MIT"
] | 2 | 2019-09-12T04:12:16.000Z | 2020-09-23T19:13:06.000Z | src/system.cpp | marangisto/HAL | fa56b539f64b277fa122a010e4ee643463f58498 | [
"MIT"
] | 2 | 2019-09-10T13:47:50.000Z | 2020-02-24T03:27:47.000Z | src/system.cpp | marangisto/HAL | fa56b539f64b277fa122a010e4ee643463f58498 | [
"MIT"
] | 3 | 2019-08-31T12:58:28.000Z | 2020-03-26T22:56:34.000Z | #include <hal.h>
#include <algorithm>
namespace hal
{
using namespace device;
namespace internal
{
template<uint32_t x, uint32_t b, uint8_t nbits>
static constexpr uint32_t encode()
{
static_assert(x < (1 << nbits), "bit field overflow");
return ((x & (1 << 0)) ? (b << 0) : 0)
| ((x & (1 << 1)) ? (... | 38.006472 | 139 | 0.538658 | marangisto |
ed310c573883603a89722dd85d846cac70c032fc | 1,857 | cpp | C++ | platform/platform_std.cpp | LaGrunge/geocore | b599eda29a32a14e5c02f51c66848959b50732f2 | [
"Apache-2.0"
] | 1 | 2019-10-02T16:17:31.000Z | 2019-10-02T16:17:31.000Z | platform/platform_std.cpp | LaGrunge/omim | 8ce6d970f8f0eb613531b16edd22ea8ab923e72a | [
"Apache-2.0"
] | 6 | 2019-09-09T10:11:41.000Z | 2019-10-02T15:04:21.000Z | platform/platform_std.cpp | LaGrunge/geocore | b599eda29a32a14e5c02f51c66848959b50732f2 | [
"Apache-2.0"
] | null | null | null | #include "platform/constants.hpp"
#include "platform/measurement_utils.hpp"
#include "platform/platform.hpp"
#include "platform/settings.hpp"
#include "coding/file_reader.hpp"
#include "base/logging.hpp"
#include "platform/target_os.hpp"
#include <algorithm>
#include <future>
#include <memory>
#include <regex>
#inc... | 23.807692 | 98 | 0.699515 | LaGrunge |
ed341d5d54054a4f7820114ffb37bbcdb7a88045 | 2,113 | cpp | C++ | luogu/5105.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | luogu/5105.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | luogu/5105.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define N 100020
#define ll long long
using namespace std;
inline ll read(){
ll x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
typedef pair<ll, ll> pairs;
inline ll calc(ll x) ... | 19.747664 | 61 | 0.508755 | swwind |
ed3723efd8501d72d40c6428e25d6fe8bf1f9734 | 113 | hpp | C++ | src/afk/io/Time.hpp | christocs/ICT398 | 9fd7c17a72985ac2eb59a13c1d3761598e544771 | [
"ISC"
] | null | null | null | src/afk/io/Time.hpp | christocs/ICT398 | 9fd7c17a72985ac2eb59a13c1d3761598e544771 | [
"ISC"
] | null | null | null | src/afk/io/Time.hpp | christocs/ICT398 | 9fd7c17a72985ac2eb59a13c1d3761598e544771 | [
"ISC"
] | null | null | null | #pragma once
#include <string>
namespace afk {
namespace io {
auto get_date_time() -> std::string;
}
}
| 11.3 | 40 | 0.637168 | christocs |
ed37816ab920205a9631d33a5a5ec9ad7362cd8e | 413 | cpp | C++ | CPP.Part_2/week_4/01.Error_Handling/static_assert.cpp | DGolgovsky/Courses | 01e2dedc06f677bcdb1cbfd02ccc08a89cc932a0 | [
"Unlicense"
] | 4 | 2017-11-17T12:02:21.000Z | 2021-02-08T11:24:16.000Z | CPP.Part_2/week_4/01.Error_Handling/static_assert.cpp | DGolgovsky/Courses | 01e2dedc06f677bcdb1cbfd02ccc08a89cc932a0 | [
"Unlicense"
] | null | null | null | CPP.Part_2/week_4/01.Error_Handling/static_assert.cpp | DGolgovsky/Courses | 01e2dedc06f677bcdb1cbfd02ccc08a89cc932a0 | [
"Unlicense"
] | null | null | null | #include <type_traits>
#include <iostream>
//#define NDEBUG
#include <cassert> // assert
template<class T>
void countdown(T start) {
// Compile time
static_assert(std::is_integral<T>::value
&& std::is_signed<T>::value,
"Requires signed integral type");
assert(start >= 0); ... | 22.944444 | 51 | 0.581114 | DGolgovsky |
ed407add37f5d554e19b171cfe8f4cbb407845c7 | 4,566 | cpp | C++ | src/vulkan/vulkan-commandlist.cpp | Zwingling/nvrhi | 12f3e12eb29b681e99a53af7347c60c0733a6ef9 | [
"MIT"
] | 325 | 2021-07-19T13:55:23.000Z | 2022-03-31T20:38:58.000Z | src/vulkan/vulkan-commandlist.cpp | Zwingling/nvrhi | 12f3e12eb29b681e99a53af7347c60c0733a6ef9 | [
"MIT"
] | 11 | 2021-07-20T00:15:59.000Z | 2022-03-12T08:50:33.000Z | src/vulkan/vulkan-commandlist.cpp | Zwingling/nvrhi | 12f3e12eb29b681e99a53af7347c60c0733a6ef9 | [
"MIT"
] | 38 | 2021-07-19T15:04:17.000Z | 2022-03-28T09:09:09.000Z | /*
* Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved.
*
* 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,... | 33.822222 | 131 | 0.70127 | Zwingling |
ed458e377aa8dc1d93a06d53c26c7680ac9fcdb0 | 4,296 | cpp | C++ | listen/tcp_listen_service.cpp | zhangdongai/libnetxcq | 59007e9cfa78a6ff2a8f2cf9c652a4e0cfc5c65d | [
"Apache-2.0"
] | null | null | null | listen/tcp_listen_service.cpp | zhangdongai/libnetxcq | 59007e9cfa78a6ff2a8f2cf9c652a4e0cfc5c65d | [
"Apache-2.0"
] | null | null | null | listen/tcp_listen_service.cpp | zhangdongai/libnetxcq | 59007e9cfa78a6ff2a8f2cf9c652a4e0cfc5c65d | [
"Apache-2.0"
] | null | null | null | #include "listen/tcp_listen_service.h"
#include <string.h>
#include "log/log.h"
#include "common/config/listen_flags.h"
#include "connector/connector_manager.h"
TCPListenService::TCPListenService() {
stop_ = false;
}
TCPListenService::~TCPListenService() {
stop();
close(listen_fd_);
}
void TCPListenSer... | 28.832215 | 88 | 0.606378 | zhangdongai |
ed484f059f358a65e49a0ae7051b35f682d81bbc | 27,224 | hpp | C++ | src/3rd/Simd/Simd/SimdDetection.hpp | inger147/AntiDupl | fb331c6312783bb74a62aa2efffcb7f5a5a54d3d | [
"MIT"
] | 674 | 2018-01-09T19:13:40.000Z | 2022-03-29T19:54:35.000Z | src/3rd/Simd/Simd/SimdDetection.hpp | inger147/AntiDupl | fb331c6312783bb74a62aa2efffcb7f5a5a54d3d | [
"MIT"
] | 124 | 2018-01-09T08:12:45.000Z | 2022-03-28T14:19:49.000Z | src/3rd/Simd/Simd/SimdDetection.hpp | inger147/AntiDupl | fb331c6312783bb74a62aa2efffcb7f5a5a54d3d | [
"MIT"
] | 78 | 2018-01-11T03:09:43.000Z | 2022-03-20T17:43:39.000Z | /*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2020 Yermalayeu Ihar,
* 2019-2019 Facundo Galan.
*
* 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 wi... | 37.242134 | 152 | 0.490192 | inger147 |
ed484f41521a3f09c7769954d090ee8c697f7ff4 | 5,499 | hpp | C++ | KFPlugin/KFTcpClient/KFTcpClientModule.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFPlugin/KFTcpClient/KFTcpClientModule.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFPlugin/KFTcpClient/KFTcpClientModule.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #ifndef __KF_CLIENT_MODULE_H__
#define __KF_CLIENT_MODULE_H__
/************************************************************************
// @Module : tcp客户端
// @Author : __凌_痕__
// @QQ : 7969936
// @Mail : lori227@qq.com
// @Date : 2017-1-8
***************... | 41.345865 | 155 | 0.603019 | 282951387 |
ed4c3299ec2b60452ac666a9903ce85105463a48 | 1,906 | hpp | C++ | include/pcg/Random.hpp | TerensTare/tnt | 916067a9bf697101afb1d0785112aa34014e8126 | [
"MIT"
] | 29 | 2020-04-22T01:31:30.000Z | 2022-02-03T12:21:29.000Z | include/pcg/Random.hpp | TerensTare/tnt | 916067a9bf697101afb1d0785112aa34014e8126 | [
"MIT"
] | 6 | 2020-04-17T10:31:56.000Z | 2021-09-10T12:07:22.000Z | include/pcg/Random.hpp | TerensTare/tnt | 916067a9bf697101afb1d0785112aa34014e8126 | [
"MIT"
] | 7 | 2020-03-13T01:50:41.000Z | 2022-03-06T23:44:29.000Z | #ifndef TNT_PCG_RANDOM_HPP
#define TNT_PCG_RANDOM_HPP
#include <concepts>
#include "core/Config.hpp"
#include "math/Vector.hpp"
// TODO:
// randomColor, etc.
// constexpr halton*
namespace tnt
{
/// @brief Get a random float on range @c [min_,max_].
/// @param min_ The minimum value of the float.
/// @p... | 31.766667 | 82 | 0.644281 | TerensTare |
ed4d5bfd8b95769f8040728c1ade7d26d0a1c67c | 13,010 | cc | C++ | tunnel_localizer/src/range_based_tunnel_localizer.cc | ozaslan/estimators | ad78f2d395d4a6155f0b6d61541167a99959a1c9 | [
"MIT"
] | null | null | null | tunnel_localizer/src/range_based_tunnel_localizer.cc | ozaslan/estimators | ad78f2d395d4a6155f0b6d61541167a99959a1c9 | [
"MIT"
] | null | null | null | tunnel_localizer/src/range_based_tunnel_localizer.cc | ozaslan/estimators | ad78f2d395d4a6155f0b6d61541167a99959a1c9 | [
"MIT"
] | null | null | null | /*
See the header file for detailed explanations
of the below functions.
*/
#include "range_based_tunnel_localizer.hh"
RangeBasedTunnelLocalizer::RangeBasedTunnelLocalizer(int max_iter, double yz_tol, double yaw_tol){
_cloud = pcl::PointCloud<pcl::PointXYZ>().makeShared();
_cloud_aligned = pcl::PointC... | 33.704663 | 179 | 0.657264 | ozaslan |
ed518a28c3b906413f7b0f6ec058afadb4bbea1b | 4,617 | inl | C++ | include/fileos/path.inl | napina/fileos | 44443d126d9c4faf1192196bfe88b556c4a7411f | [
"MIT"
] | 2 | 2017-05-10T06:05:54.000Z | 2021-03-31T13:14:49.000Z | include/fileos/path.inl | napina/fileos | 44443d126d9c4faf1192196bfe88b556c4a7411f | [
"MIT"
] | null | null | null | include/fileos/path.inl | napina/fileos | 44443d126d9c4faf1192196bfe88b556c4a7411f | [
"MIT"
] | null | null | null | /*=============================================================================
Copyright (c) 2013 Ville Ruusutie
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 wi... | 21.881517 | 79 | 0.690925 | napina |
ed51a54892790ba25f520c34ffed15509fb4b9e7 | 453 | cpp | C++ | S03/Enum.cpp | stevekeol/-Thinking-in-Cpp-PracticeCode | 5b147e704015bbda364ab069f1de58dcef7ab14a | [
"MIT"
] | 2 | 2017-06-20T12:16:30.000Z | 2021-11-12T12:06:57.000Z | S03/Enum.cpp | stevekeol/-Thinking-in-Cpp-PracticeCode | 5b147e704015bbda364ab069f1de58dcef7ab14a | [
"MIT"
] | null | null | null | S03/Enum.cpp | stevekeol/-Thinking-in-Cpp-PracticeCode | 5b147e704015bbda364ab069f1de58dcef7ab14a | [
"MIT"
] | null | null | null | //: S03:Enum.cpp
// From "Thinking in C++, 2nd Edition, Volume 1, Annotated Solutions Guide"
// by Chuck Allison, (c) 2001 MindView, Inc. all rights reserved
// Available at www.BruceEckel.com.
#include <iostream>
enum color {
BLACK,
RED,
GREEN,
BLUE,
WHITE
};
int main() {
using... | 18.12 | 76 | 0.556291 | stevekeol |
ed544679088b86bdbec210bf4443dbe01fe57a0d | 3,869 | cpp | C++ | ThorEngine/Source Code/R_Mesh.cpp | markitus18/Game-Engine | ea9546a16f2e40d13002340b4cb6b42a33a41344 | [
"Unlicense"
] | null | null | null | ThorEngine/Source Code/R_Mesh.cpp | markitus18/Game-Engine | ea9546a16f2e40d13002340b4cb6b42a33a41344 | [
"Unlicense"
] | null | null | null | ThorEngine/Source Code/R_Mesh.cpp | markitus18/Game-Engine | ea9546a16f2e40d13002340b4cb6b42a33a41344 | [
"Unlicense"
] | null | null | null | #include "R_Mesh.h"
#include "OpenGL.h"
R_Mesh::R_Mesh() : Resource(ResourceType::MESH)
{
isExternal = true;
for (uint i = 0; i < max_buffer_type; i++)
{
buffers[i] = 0;
buffersSize[i] = 0;
}
}
R_Mesh::~R_Mesh()
{
}
void R_Mesh::CreateAABB()
{
aabb.SetNegativeInfinity();
aabb.Enclose((math::vec*)vertices,... | 30.952 | 108 | 0.747738 | markitus18 |
ed56342a68c738c824389e349e942e22dc9c813c | 1,880 | cpp | C++ | src/model/seasonlistmodel.cpp | sailfish-os-apps/harbour-sailseries | df8fb67b720e4ba9f8c4644ebc03cf90bb745e3c | [
"MIT"
] | null | null | null | src/model/seasonlistmodel.cpp | sailfish-os-apps/harbour-sailseries | df8fb67b720e4ba9f8c4644ebc03cf90bb745e3c | [
"MIT"
] | null | null | null | src/model/seasonlistmodel.cpp | sailfish-os-apps/harbour-sailseries | df8fb67b720e4ba9f8c4644ebc03cf90bb745e3c | [
"MIT"
] | null | null | null | #include "seasonlistmodel.h"
SeasonListModel::SeasonListModel(QObject *parent, DatabaseManager* dbmanager) :
QObject(parent)
{
m_dbmanager = dbmanager;
}
SeasonListModel::~SeasonListModel()
{
for (auto season : m_seasonListModel) {
delete season;
season = 0;
}
}
QQmlListProperty<Seas... | 29.84127 | 133 | 0.743617 | sailfish-os-apps |
ed5a55a0d431d28bd8c2e93e9da44b446141e59e | 20,129 | cc | C++ | code/machine/mips_sim.cc | barufa/nachos | c61004eb45144835180be12eefc250d470842d04 | [
"MIT"
] | 1 | 2019-10-21T02:22:16.000Z | 2019-10-21T02:22:16.000Z | code/machine/mips_sim.cc | barufa/Nachos | c61004eb45144835180be12eefc250d470842d04 | [
"MIT"
] | null | null | null | code/machine/mips_sim.cc | barufa/Nachos | c61004eb45144835180be12eefc250d470842d04 | [
"MIT"
] | null | null | null | /// Simulate a MIPS R2/3000 processor.
///
/// This code has been adapted from Ousterhout's MIPSSIM package. Byte
/// ordering is little-endian, so we can be compatible with DEC RISC systems.
///
/// DO NOT CHANGE -- part of the machine emulation
///
/// Copyright (c) 1992-1993 The Regents of the University of Califor... | 31.063272 | 78 | 0.498038 | barufa |
ed5d40ec16569384379998e22dd30acdc9503ab0 | 8,022 | cpp | C++ | src/arch/ArchHooks/ArchHooks_Win32.cpp | caiohsr14/stepmania | 7d33efe587c75a683938aeabafc1ec2bec3007d6 | [
"MIT"
] | null | null | null | src/arch/ArchHooks/ArchHooks_Win32.cpp | caiohsr14/stepmania | 7d33efe587c75a683938aeabafc1ec2bec3007d6 | [
"MIT"
] | null | null | null | src/arch/ArchHooks/ArchHooks_Win32.cpp | caiohsr14/stepmania | 7d33efe587c75a683938aeabafc1ec2bec3007d6 | [
"MIT"
] | null | null | null | #include "global.h"
#include "ArchHooks_Win32.h"
#include "RageUtil.h"
#include "RageLog.h"
#include "RageThreads.h"
#include "ProductInfo.h"
#include "archutils/win32/AppInstance.h"
#include "archutils/win32/crash.h"
#include "archutils/win32/DebugInfoHunt.h"
#include "archutils/win32/ErrorStrings.h"
#include "archuti... | 30.271698 | 133 | 0.733732 | caiohsr14 |
ed5ed317aacfd450f282d0974ada1bb154a12e85 | 709 | cc | C++ | Question/全排列.cc | lkimprove/Study_C | ee1153536f28e160d5daad4ddebaa547c3941ee7 | [
"MIT"
] | null | null | null | Question/全排列.cc | lkimprove/Study_C | ee1153536f28e160d5daad4ddebaa547c3941ee7 | [
"MIT"
] | null | null | null | Question/全排列.cc | lkimprove/Study_C | ee1153536f28e160d5daad4ddebaa547c3941ee7 | [
"MIT"
] | null | null | null | class Solution {
public:
void Perm(vector<vector<int>>& ret, vector<int>& nums, int index, int size){
//结束条件
if(index == size){
vector<int> tmp = nums;
ret.push_back(tmp);
return;
}
for(int i = index; i < size; i++){
//在0位置依次固定nums中的每一... | 23.633333 | 80 | 0.461213 | lkimprove |
ed5ff105e5090fa080564478bbcb3e570a821284 | 399 | cpp | C++ | warm-up-contest/data/star/gen.cpp | yuchong-pan/my-oi-lectures | 721ff870b5cc388ef81961bf1a96361a74e2d896 | [
"MIT"
] | 3 | 2019-07-30T10:43:58.000Z | 2019-07-30T10:46:05.000Z | warm-up-contest/data/star/gen.cpp | yuchong-pan/my-oi-lectures | 721ff870b5cc388ef81961bf1a96361a74e2d896 | [
"MIT"
] | null | null | null | warm-up-contest/data/star/gen.cpp | yuchong-pan/my-oi-lectures | 721ff870b5cc388ef81961bf1a96361a74e2d896 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdlib>
using namespace std;
char cmd[100];
int main() {
for (int i = 1; i <= 10; i++) {
sprintf(cmd, "cp star%d.in star.in", i);
system(cmd);
sprintf(cmd, "./star");
system(cmd);
sprintf(cmd, "mv star.out star%d.out", i);
system(cmd);
... | 19 | 50 | 0.506266 | yuchong-pan |
ed64f4379ab6d94dbefb2750a80656e68312ed4c | 1,307 | hpp | C++ | chapter03/InputComponent.hpp | AconCavy/gpcpp | 70d06e00f9ffc4dea580890a8b95027b32f5a9f6 | [
"MIT"
] | null | null | null | chapter03/InputComponent.hpp | AconCavy/gpcpp | 70d06e00f9ffc4dea580890a8b95027b32f5a9f6 | [
"MIT"
] | null | null | null | chapter03/InputComponent.hpp | AconCavy/gpcpp | 70d06e00f9ffc4dea580890a8b95027b32f5a9f6 | [
"MIT"
] | null | null | null | #ifndef GPCPP_CHAPTER03_INPUTCOMPONENT_HPP
#define GPCPP_CHAPTER03_INPUTCOMPONENT_HPP
#include "MoveComponent.hpp"
namespace gpcpp::c03 {
class InputComponent : public MoveComponent {
public:
explicit InputComponent(class Actor *Owner);
void processInput(const uint8_t *KeyState) override;
[[nodiscard]] float... | 31.119048 | 76 | 0.752104 | AconCavy |
ed6a08e905256517309d069a0b585d1fc66f6d7b | 348 | hpp | C++ | modules/math/source/blub/math/rectangle.hpp | qwertzui11/voxelTerrain | 05038fb261893dd044ae82fab96b7708ea5ed623 | [
"MIT"
] | 96 | 2015-02-02T20:01:24.000Z | 2021-11-14T20:33:29.000Z | modules/math/source/blub/math/rectangle.hpp | qwertzui11/voxelTerrain | 05038fb261893dd044ae82fab96b7708ea5ed623 | [
"MIT"
] | 12 | 2016-06-04T15:45:30.000Z | 2020-02-04T11:10:51.000Z | modules/math/source/blub/math/rectangle.hpp | qwertzui11/voxelTerrain | 05038fb261893dd044ae82fab96b7708ea5ed623 | [
"MIT"
] | 19 | 2015-09-22T01:21:45.000Z | 2020-09-30T09:52:27.000Z | #ifndef RECTANGLE_HPP
#define RECTANGLE_HPP
#include "vector2.hpp"
namespace blub
{
class rectangle
{
public:
vector2 topLeft, rightBottom;
rectangle(void);
rectangle(const vector2 &topLeft_, const vector2 &rightBottom_);
void merge(const rectangle &other);
void merge(const vector2 &other);
};
... | 14.5 | 68 | 0.721264 | qwertzui11 |
ed6ce8fb3e469fba323f9450e3f97fc44be7d8aa | 236 | cpp | C++ | cpp/new_features/cpp20/aggregate.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | 2 | 2019-12-21T00:53:47.000Z | 2020-01-01T10:36:30.000Z | cpp/new_features/cpp20/aggregate.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | cpp/new_features/cpp20/aggregate.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | /**
* @ Author: KaiserLancelot
* @ Create Time: 2020-05-14 06:26:07
* @ Modified time: 2020-05-15 02:16:50
*/
#include <cstdint>
struct A {
std::int32_t x;
std::int32_t y;
std::int32_t z;
};
// TODO 编译器实现不完整
int main() {}
| 13.111111 | 39 | 0.605932 | KaiserLancelot |
ed6ea34c796889ff5aed0e4f2a185fe0c4836f90 | 1,374 | hpp | C++ | include/librandom/random.hpp | averrin/citygen-viewer | 6bf44a91c97d79bb9871f9571d3f8a7213b09505 | [
"MIT"
] | null | null | null | include/librandom/random.hpp | averrin/citygen-viewer | 6bf44a91c97d79bb9871f9571d3f8a7213b09505 | [
"MIT"
] | null | null | null | include/librandom/random.hpp | averrin/citygen-viewer | 6bf44a91c97d79bb9871f9571d3f8a7213b09505 | [
"MIT"
] | null | null | null | #ifndef __RANDOM_H_
#define __RANDOM_H_
#include <chrono>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <random>
namespace R {
// float R(float min, float max) {
// return min + static_cast<float>(rand()) /
// (static_cast<float>(RAND_MAX / (max - min)));
// ... | 20.507463 | 82 | 0.597525 | averrin |
ed74c682f9694601e7855a9d62431763a70407b6 | 2,840 | cpp | C++ | shadow/core/network.cpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 20 | 2017-07-04T11:22:47.000Z | 2022-01-16T03:58:32.000Z | shadow/core/network.cpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 2 | 2017-12-03T13:07:39.000Z | 2021-01-13T11:11:52.000Z | shadow/core/network.cpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 10 | 2017-09-30T05:06:30.000Z | 2020-11-13T05:43:44.000Z | #include "network.hpp"
#include "network_impl.hpp"
namespace Shadow {
Network::Network() { engine_ = std::make_shared<NetworkImpl>(); }
void Network::LoadXModel(const shadow::NetParam& net_param,
const ArgumentHelper& arguments) {
engine_->LoadXModel(net_param, arguments);
}
void Network:... | 38.378378 | 77 | 0.551408 | junluan |
ed7bec52e1ce340fcc0d8beffff026e9836b89b5 | 422 | cpp | C++ | polygons/translationgraphwidget.cpp | humble-barnacle001/qt-raster-lines | 7c5d38d6d6dd802901702b97084df3db12151e2e | [
"MIT"
] | null | null | null | polygons/translationgraphwidget.cpp | humble-barnacle001/qt-raster-lines | 7c5d38d6d6dd802901702b97084df3db12151e2e | [
"MIT"
] | null | null | null | polygons/translationgraphwidget.cpp | humble-barnacle001/qt-raster-lines | 7c5d38d6d6dd802901702b97084df3db12151e2e | [
"MIT"
] | null | null | null | #include "translationgraphwidget.h"
TranslationGraphWidget::TranslationGraphWidget(QWidget *parent)
: PolygonGraphWidget(parent), p(QPoint(0, 0))
{
}
void TranslationGraphWidget::translateXYChanged(const QPoint &p)
{
this->p = p;
}
void TranslationGraphWidget::performOperation()
{
foreach (auto pp, polyg... | 21.1 | 83 | 0.682464 | humble-barnacle001 |
ed7c595698362fe1ed4489098912b9d9e642e69e | 1,868 | cpp | C++ | plugins/single_plugins/rotator.cpp | SirCmpwn/wayfire | 007452f6ccc07ceca51879187bba142431832382 | [
"MIT"
] | 3 | 2019-01-16T14:43:24.000Z | 2019-10-09T10:07:33.000Z | plugins/single_plugins/rotator.cpp | SirCmpwn/wayfire | 007452f6ccc07ceca51879187bba142431832382 | [
"MIT"
] | null | null | null | plugins/single_plugins/rotator.cpp | SirCmpwn/wayfire | 007452f6ccc07ceca51879187bba142431832382 | [
"MIT"
] | 1 | 2019-05-07T09:46:58.000Z | 2019-05-07T09:46:58.000Z | #include <output.hpp>
#include <core.hpp>
#include "../../shared/config.hpp"
#include <linux/input-event-codes.h>
#include <compositor.h>
class wayfire_rotator : public wayfire_plugin_t {
key_callback up, down, left, right;
public:
void init(wayfire_config *config) {
grab_interface->name = "rotato... | 36.627451 | 91 | 0.645075 | SirCmpwn |
142ec8b1666cace04a2efd094e0f325bb83173fc | 647 | cpp | C++ | UVa/1203 - Argus.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | 1 | 2018-11-21T07:36:16.000Z | 2018-11-21T07:36:16.000Z | UVa/1203 - Argus.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | null | null | null | UVa/1203 - Argus.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <iostream>
#include <queue>
#include <map>
using namespace std;
int main(void)
{
int qnum, r, n, f, s;
char c[10];
priority_queue<pair<int, int>, vector<pair<int, int> >, greater<pair<int, int> > > pq;
map<int, int> m;
while (EOF != scanf("%s", c) && strcmp(... | 19.029412 | 88 | 0.517774 | geniustanley |
143193c52e1cd4b1ba91759295778bea80d8b65d | 21 | cpp | C++ | core/src/BVH.cpp | lonelywm/cuda_path_tracer | d99f0b682ad7f64fa127ca3604d0eab26f61452c | [
"MIT"
] | 1 | 2021-06-12T11:33:12.000Z | 2021-06-12T11:33:12.000Z | core/src/BVH.cpp | lonelywm/cuda_path_tracer | d99f0b682ad7f64fa127ca3604d0eab26f61452c | [
"MIT"
] | null | null | null | core/src/BVH.cpp | lonelywm/cuda_path_tracer | d99f0b682ad7f64fa127ca3604d0eab26f61452c | [
"MIT"
] | null | null | null | #include "../BVH.h"
| 7 | 19 | 0.52381 | lonelywm |
14365cef8d2e7da1381afc9eb47e07f73172b976 | 2,569 | hpp | C++ | gamebase/Player.hpp | GenBrg/MagicCastlevania | 76ed248d4f0362ea92d29a159a2027d5b16c8a7b | [
"CC-BY-4.0"
] | 2 | 2020-10-31T01:34:42.000Z | 2020-12-08T15:16:22.000Z | gamebase/Player.hpp | GenBrg/MagicCastlevania | 76ed248d4f0362ea92d29a159a2027d5b16c8a7b | [
"CC-BY-4.0"
] | 50 | 2020-10-31T01:31:56.000Z | 2020-12-11T15:13:43.000Z | gamebase/Player.hpp | GenBrg/MagicCastlevania | 76ed248d4f0362ea92d29a159a2027d5b16c8a7b | [
"CC-BY-4.0"
] | null | null | null | #pragma once
#include <engine/MovementComponent.hpp>
#include <engine/Transform2D.hpp>
#include <engine/InputSystem.hpp>
#include <engine/TimerGuard.hpp>
#include <engine/Animation.hpp>
#include <engine/Mob.hpp>
#include <engine/Attack.hpp>
#include <gamebase/Buff.hpp>
#include <gamebase/Inventory.hpp>
#include <Sprit... | 26.214286 | 88 | 0.734527 | GenBrg |
1436e44f34a66f681f3a04b47a858f83f4680ac2 | 1,006 | cpp | C++ | libnorth/src/Utils/FileSystem.cpp | lzmru/north | cc6c17d3049c514b5c754beed7be4170ef380864 | [
"MIT"
] | null | null | null | libnorth/src/Utils/FileSystem.cpp | lzmru/north | cc6c17d3049c514b5c754beed7be4170ef380864 | [
"MIT"
] | null | null | null | libnorth/src/Utils/FileSystem.cpp | lzmru/north | cc6c17d3049c514b5c754beed7be4170ef380864 | [
"MIT"
] | null | null | null | //===--- Utils/FileSystem.cpp - File system utilities -----------*- C++ -*-===//
//
// The North Compiler Infrastructure
//
// This file is distributed under the MIT License.
// See LICENSE.TXT for details.
//
//===---------------------------------------------... | 27.189189 | 82 | 0.538767 | lzmru |
1437068186c50e9c3d35e3556234f470e4f2775c | 3,000 | hpp | C++ | include/ImgIcon.hpp | vinben/Rotopp | f0c25db5bd25074c55ff0f67539a2452d92aaf72 | [
"Unlicense"
] | 47 | 2016-07-27T07:22:06.000Z | 2021-08-17T13:08:19.000Z | include/ImgIcon.hpp | vinben/Rotopp | f0c25db5bd25074c55ff0f67539a2452d92aaf72 | [
"Unlicense"
] | 1 | 2016-09-24T06:04:39.000Z | 2016-09-25T10:34:19.000Z | include/ImgIcon.hpp | vinben/Rotopp | f0c25db5bd25074c55ff0f67539a2452d92aaf72 | [
"Unlicense"
] | 13 | 2016-07-27T10:44:35.000Z | 2020-07-01T21:08:33.000Z | /**************************************************************************
** This file is a part of our work (Siggraph'16 paper, binary, code and dataset):
**
** Roto++: Accelerating Professional Rotoscoping using Shape Manifolds
** Wenbin Li, Fabio Viola, Jonathan Starck, Gabriel J. Brostow and Neill D.F. Campbell
*... | 33.707865 | 86 | 0.698333 | vinben |
143bf37fad4d73b1758cc1de7432eee5b3325901 | 4,148 | cpp | C++ | example/src/ofApp.cpp | bakercp/ofxJitterNetworkSender | e04ef62f490e0f86cb020cd04393b2a158cb8a82 | [
"MIT"
] | 8 | 2015-03-17T17:30:23.000Z | 2020-12-06T21:34:00.000Z | example/src/ofApp.cpp | bakercp/ofxJitterNetworkSender | e04ef62f490e0f86cb020cd04393b2a158cb8a82 | [
"MIT"
] | 3 | 2017-02-07T19:57:31.000Z | 2021-09-16T14:24:50.000Z | example/src/ofApp.cpp | bakercp/ofxJitterNetworkSender | e04ef62f490e0f86cb020cd04393b2a158cb8a82 | [
"MIT"
] | 1 | 2018-10-19T21:09:21.000Z | 2018-10-19T21:09:21.000Z | // =============================================================================
//
// Copyright (c) 2009-2013 Christopher Baker <http://christopherbaker.net>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to de... | 29.41844 | 80 | 0.558824 | bakercp |
1443b3c7f825ecd2a7796a8e32b0e3220460a221 | 1,383 | cpp | C++ | wirish/wirish_math.cpp | lacklustrlabs/libmaple | a2d1169b0b5a5de68140dad26982cf0f238e877b | [
"MIT"
] | 162 | 2015-01-07T18:26:13.000Z | 2022-03-07T09:50:31.000Z | wirish/wirish_math.cpp | lacklustrlabs/libmaple | a2d1169b0b5a5de68140dad26982cf0f238e877b | [
"MIT"
] | 25 | 2015-01-24T19:03:30.000Z | 2021-12-15T15:02:50.000Z | wirish/wirish_math.cpp | lacklustrlabs/libmaple | a2d1169b0b5a5de68140dad26982cf0f238e877b | [
"MIT"
] | 112 | 2015-01-16T08:58:13.000Z | 2022-03-23T20:01:06.000Z | /*
* Modified by LeafLabs, LLC.
*
* Part of the Wiring project - http://wiring.org.co Copyright (c)
* 2004-06 Hernando Barragan Modified 13 August 2006, David A. Mellis
* for Arduino - http://www.arduino.cc/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU... | 27.66 | 70 | 0.686189 | lacklustrlabs |
144ac5a16e795cef4206813168d18a72b70a4aef | 1,318 | cpp | C++ | cppLearningExercises/Main.cpp | QueeniePun/cppLearningExercises | 4c4181573d1b7de9f67acdea1b0fd6d2245b8806 | [
"MIT"
] | null | null | null | cppLearningExercises/Main.cpp | QueeniePun/cppLearningExercises | 4c4181573d1b7de9f67acdea1b0fd6d2245b8806 | [
"MIT"
] | null | null | null | cppLearningExercises/Main.cpp | QueeniePun/cppLearningExercises | 4c4181573d1b7de9f67acdea1b0fd6d2245b8806 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Chapter1Helper.h"
#include "Chapter2Helper.h"
#include "Chapter3Helper.h"
#include "Chapter4Helper.h"
#include "Chapter5Helper.h"
#include "Chapter6Helper.h"
#include "Chapter7Helper.h"
#include "Chapter8Helper.h"
#include "Chapter9Helper.h"
#include "Chapter10Helper.h"
#include "Chapter11... | 24.407407 | 30 | 0.770865 | QueeniePun |
144bfa77bc363ad9f36acb87a40149d11826edb8 | 2,402 | cpp | C++ | project2D/CollisionManager.cpp | AlexMollard/Path-Finding | 76e96db39686f05995316d5147f2bbf746d8c4a0 | [
"MIT"
] | null | null | null | project2D/CollisionManager.cpp | AlexMollard/Path-Finding | 76e96db39686f05995316d5147f2bbf746d8c4a0 | [
"MIT"
] | null | null | null | project2D/CollisionManager.cpp | AlexMollard/Path-Finding | 76e96db39686f05995316d5147f2bbf746d8c4a0 | [
"MIT"
] | null | null | null | #include "CollisionManager.h"
#include <iostream>
CollisionManager::CollisionManager()
{
}
CollisionManager::~CollisionManager()
{
}
void CollisionManager::Update(float deltaTime)
{
for (int i = 0; i < _ObjectList.size(); i++)
{
GameObject* _Object = _ObjectList[i];
Collider* _FirstCollider... | 26.395604 | 122 | 0.651124 | AlexMollard |
144ee5325cd11c827c601c2f031704313b482f6c | 269 | cpp | C++ | src/CWSDK/common/math.cpp | Mininoob/CWLevelSystem | ee5e06bcc0d1c4417d0a7eb2cf52897fa908e903 | [
"MIT"
] | 39 | 2021-02-28T04:17:16.000Z | 2022-02-23T14:25:41.000Z | src/CWSDK/common/math.cpp | Mininoob/CWLevelSystem | ee5e06bcc0d1c4417d0a7eb2cf52897fa908e903 | [
"MIT"
] | 16 | 2021-03-12T04:44:33.000Z | 2022-03-31T14:16:16.000Z | src/CWSDK/common/math.cpp | Mininoob/CWLevelSystem | ee5e06bcc0d1c4417d0a7eb2cf52897fa908e903 | [
"MIT"
] | 3 | 2021-09-10T14:19:08.000Z | 2021-12-19T20:45:04.000Z | #include "math.h"
i64 pydiv(i64 a, i64 b) {
i64 result = a / b;
if ((a < 0) ^ (b < 0)) {
if (pymod(a, b) != 0) {
result -= 1;
}
}
return result;
}
i64 pymod(i64 a, i64 b) {
i64 result = a % b;
if (result < 0) {
result = b + result;
}
return result;
}
| 14.157895 | 25 | 0.501859 | Mininoob |
145222f4a2d532f4a0c99e7e6175d206fc31aeba | 2,187 | cpp | C++ | archived/VoIP/cs/VoipBackEnd/BackEndAudioHelpers.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,504 | 2019-05-07T06:56:42.000Z | 2022-03-31T19:37:59.000Z | archived/VoIP/cs/VoipBackEnd/BackEndAudioHelpers.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 314 | 2019-05-08T16:56:30.000Z | 2022-03-21T07:13:45.000Z | archived/VoIP/cs/VoipBackEnd/BackEndAudioHelpers.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,219 | 2019-05-07T00:47:26.000Z | 2022-03-30T21:12:31.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 34.714286 | 97 | 0.657979 | dujianxin |
1457c8bf087de1d2746c8dfc46da03537892a899 | 914 | hpp | C++ | shared_model/backend/protobuf/commands/proto_command.hpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | shared_model/backend/protobuf/commands/proto_command.hpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | shared_model/backend/protobuf/commands/proto_command.hpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_SHARED_MODEL_PROTO_COMMAND_HPP
#define IROHA_SHARED_MODEL_PROTO_COMMAND_HPP
#include "interfaces/commands/command.hpp"
#include "commands.pb.h"
namespace shared_model {
namespace proto {
class Co... | 22.292683 | 53 | 0.696937 | coderintherye |
14615a1c0b433382482e1be95e9571a599fef25b | 1,959 | hpp | C++ | src/pyprx/utilities/data_structures/tree_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 3 | 2021-05-31T11:28:03.000Z | 2021-05-31T13:49:30.000Z | src/pyprx/utilities/data_structures/tree_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 1 | 2021-09-03T09:39:32.000Z | 2021-12-10T22:17:56.000Z | src/pyprx/utilities/data_structures/tree_py.hpp | aravindsiv/ML4KP | 064015a7545e1713cbcad3e79807b5cec0849f54 | [
"MIT"
] | 2 | 2021-09-03T09:17:45.000Z | 2021-10-04T15:52:58.000Z | #include "prx/utilities/data_structures/tree.hpp"
PRX_SETTER(tree_t, vertex_id_counter)
PRX_GETTER(tree_t, vertex_id_counter)
void pyprx_utilities_data_structures_tree_py()
{
class_<prx::tree_node_t, std::shared_ptr<prx::tree_node_t>, bases<prx::abstract_node_t>>("tree_node", init<>())
.def("get_parent", &prx::tre... | 47.780488 | 131 | 0.722818 | aravindsiv |
14615b5b73d4ba2cf77c592fdece8422a32c6dc2 | 300 | cpp | C++ | libraries/lib-components/ConfigInterface.cpp | IshoAntar/AudMonkey | c9180745529960b147b49f659c4295d7dffb888c | [
"CC-BY-3.0"
] | 41 | 2021-07-07T13:22:16.000Z | 2022-03-15T19:46:27.000Z | libraries/lib-components/ConfigInterface.cpp | BeaterTeam/Beater | e92b0b85986d51e40fcccb41fec61bd261fc52e6 | [
"CC-BY-3.0"
] | 41 | 2021-07-07T16:47:48.000Z | 2022-02-23T03:43:25.000Z | libraries/lib-components/ConfigInterface.cpp | TheEvilSkeleton/AudMonkey | 848d951c3d4acf2687a9c83ece71de5940d0546c | [
"CC-BY-3.0"
] | 6 | 2021-07-07T09:39:48.000Z | 2021-12-28T01:06:58.000Z | /**********************************************************************
AudMonkey: A Digital Audio Editor
@file ConfigInterface.cpp
**********************************************************************/
#include "ConfigInterface.h"
ConfigClientInterface::~ConfigClientInterface() = default;
| 27.272727 | 71 | 0.406667 | IshoAntar |
1464a693e0bf3899f6f9ecd6df73fdef4395e068 | 4,822 | cpp | C++ | src/common.cpp | EDM-Developers/fastEDM | 9724bf609d09beae53a89ca5cbe52d407787dbf2 | [
"MIT"
] | 2 | 2021-04-27T00:21:57.000Z | 2022-01-23T03:46:04.000Z | src/common.cpp | EDM-Developers/fastEDM | 9724bf609d09beae53a89ca5cbe52d407787dbf2 | [
"MIT"
] | null | null | null | src/common.cpp | EDM-Developers/fastEDM | 9724bf609d09beae53a89ca5cbe52d407787dbf2 | [
"MIT"
] | 1 | 2021-09-17T17:14:07.000Z | 2021-09-17T17:14:07.000Z | #include "common.h"
#ifdef JSON
void to_json(json& j, const Algorithm& a)
{
if (a == Algorithm::Simplex) {
j = "Simplex";
} else {
j = "SMap";
}
}
void from_json(const json& j, Algorithm& a)
{
if (j == "Simplex") {
a = Algorithm::Simplex;
} else {
a = Algorithm::SMap;
}
}
void to_json(jso... | 26.938547 | 116 | 0.575695 | EDM-Developers |
14670a76bd33d6a34a71529f0856211c03120f06 | 36,873 | cpp | C++ | apps/camera-calib/camera_calib_guiMain.cpp | waltzrobotics/mrpt | 540c52cebd4b7c31b104ebbeec369c800d73aa44 | [
"BSD-3-Clause"
] | 1 | 2019-05-08T18:58:54.000Z | 2019-05-08T18:58:54.000Z | apps/camera-calib/camera_calib_guiMain.cpp | waltzrobotics/mrpt | 540c52cebd4b7c31b104ebbeec369c800d73aa44 | [
"BSD-3-Clause"
] | null | null | null | apps/camera-calib/camera_calib_guiMain.cpp | waltzrobotics/mrpt | 540c52cebd4b7c31b104ebbeec369c800d73aa44 | [
"BSD-3-Clause"
] | null | null | null | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... | 33.766484 | 80 | 0.724297 | waltzrobotics |
14721df9fd0e5d7acd839bd5ec78de00e0f0cdf3 | 2,125 | cpp | C++ | Chapter05-physics/005-forces/src/ofApp.cpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | 6 | 2017-09-27T14:13:44.000Z | 2020-06-24T18:16:22.000Z | Chapter05-physics/005-forces/src/ofApp.cpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | null | null | null | Chapter05-physics/005-forces/src/ofApp.cpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | 3 | 2017-10-27T20:33:33.000Z | 2019-09-17T05:42:13.000Z | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetWindowShape(1280, 800);
ofSetWindowTitle("forces");
ofSetFrameRate(60);
ofBackground(255, 255, 255);
ofEnableSmoothing();
ofSetCircleResolution(40);
gravity.x = 0;
gravity.... | 22.606383 | 66 | 0.356706 | jeffcrouse |
1474a1984a53c1d6cb08d767e15adf8abab34914 | 30,372 | cpp | C++ | library/src/blas2/rocblas_trsv.cpp | YvanMokwinski/rocBLAS | f02952487c7019cbde04c4ddcb596aaf71e51ec6 | [
"MIT"
] | null | null | null | library/src/blas2/rocblas_trsv.cpp | YvanMokwinski/rocBLAS | f02952487c7019cbde04c4ddcb596aaf71e51ec6 | [
"MIT"
] | 1 | 2019-09-26T01:51:09.000Z | 2019-09-26T18:09:56.000Z | library/src/blas2/rocblas_trsv.cpp | YvanMokwinski/rocBLAS | f02952487c7019cbde04c4ddcb596aaf71e51ec6 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2016-2019 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "../blas3/trtri_trsm.hpp"
#include "handle.h"
#include "logging.h"
#include "rocblas.h"
#include "rocbla... | 41.892414 | 107 | 0.317859 | YvanMokwinski |
14802d5e52e55151331428b93f76038bb810446a | 1,288 | cc | C++ | Phase2Sim/src/PRIMSD.cc | uiowahep/Old | e52c4a67960028010904a1214f7d060c92f3da8c | [
"Apache-2.0"
] | null | null | null | Phase2Sim/src/PRIMSD.cc | uiowahep/Old | e52c4a67960028010904a1214f7d060c92f3da8c | [
"Apache-2.0"
] | null | null | null | Phase2Sim/src/PRIMSD.cc | uiowahep/Old | e52c4a67960028010904a1214f7d060c92f3da8c | [
"Apache-2.0"
] | null | null | null | #include "PRIMSD.hh"
#include "G4UnitsTable.hh"
#include "G4TrackStatus.hh"
#include "G4VProcess.hh"
using namespace CLHEP;
//
// Constructor
//
PRIMSD::PRIMSD(G4String name, RunParams runParams, int id,
HGCReadoutModule *readout)
: G4VSensitiveDetector(name),
_runParams(runParams), _readout(readout)
{
// _read... | 14.976744 | 76 | 0.67236 | uiowahep |
1481c8692ad5a3d42770a9c7933c63cdd26738a1 | 529 | hpp | C++ | posix/subsystem/src/nl-socket.hpp | robertlipe/managarm | 5e6173abb2f2b1c365e6774074380255bcccf3a5 | [
"MIT"
] | null | null | null | posix/subsystem/src/nl-socket.hpp | robertlipe/managarm | 5e6173abb2f2b1c365e6774074380255bcccf3a5 | [
"MIT"
] | null | null | null | posix/subsystem/src/nl-socket.hpp | robertlipe/managarm | 5e6173abb2f2b1c365e6774074380255bcccf3a5 | [
"MIT"
] | null | null | null |
#include "file.hpp"
namespace nl_socket {
// Configures the given netlink protocol.
// TODO: Let this take a callback that is called on receive?
void configure(int proto_idx, int num_groups);
// Broadcasts a kernel message to the given netlink multicast group.
void broadcast(int proto_idx, int grp_idx, std::string ... | 29.388889 | 85 | 0.775047 | robertlipe |
148443f31e06c8ad291dbfd6383580d424ab1f1c | 327 | cpp | C++ | LeetCode/974.subarray-sums-divisible-by-k.ac.cpp | Kresnt/AlgorithmTraining | 3dec1e712f525b4f406fe669d97888f322dfca97 | [
"MIT"
] | null | null | null | LeetCode/974.subarray-sums-divisible-by-k.ac.cpp | Kresnt/AlgorithmTraining | 3dec1e712f525b4f406fe669d97888f322dfca97 | [
"MIT"
] | null | null | null | LeetCode/974.subarray-sums-divisible-by-k.ac.cpp | Kresnt/AlgorithmTraining | 3dec1e712f525b4f406fe669d97888f322dfca97 | [
"MIT"
] | null | null | null | class Solution {
public:
int subarraysDivByK(vector<int>& A, int K) {
const int maxm = 10000 + 7;
const int n = A.size();
int c[maxm] = {0};
int ans = 0;
c[0] = 1;
for(int i = 0, l = 0; i < n; ++i) {
l = (l + A[i] % K + K) % K;
c[l]++;
ans += c[l] - 1;
}
return ans;
... | 19.235294 | 46 | 0.425076 | Kresnt |
148559db6a70da2bc408c303d4be7d6dd2ce1227 | 1,334 | cpp | C++ | Lamia/src/Systems/Systems.cpp | Alorafae/Lamia | bf2dd1cf7427fae8728abbb6a718a5223ab68caa | [
"MIT"
] | null | null | null | Lamia/src/Systems/Systems.cpp | Alorafae/Lamia | bf2dd1cf7427fae8728abbb6a718a5223ab68caa | [
"MIT"
] | null | null | null | Lamia/src/Systems/Systems.cpp | Alorafae/Lamia | bf2dd1cf7427fae8728abbb6a718a5223ab68caa | [
"MIT"
] | null | null | null |
#include "Systems.h"
using namespace LamiaSystems;
static Systems* g_LamiaSystem;
LAMIA_RESULT LamiaSystems::LamiaSystemsInit(void)
{
// initialize the system itself
g_LamiaSystem = new Systems;
// initialize our sub systems file, audio, graphics, etc
bool ret = LamiaFileInit();
if (ret == ... | 18.788732 | 69 | 0.703898 | Alorafae |
14859d765d2a4c7ce6aafacedef25ab335c77686 | 13,531 | cpp | C++ | common/contrib/QSsh/src/sshcryptofacility.cpp | cbtek/ClockNGo | 4b23043a8b535059990e4eedb2c0f3a4fb079415 | [
"MIT"
] | null | null | null | common/contrib/QSsh/src/sshcryptofacility.cpp | cbtek/ClockNGo | 4b23043a8b535059990e4eedb2c0f3a4fb079415 | [
"MIT"
] | null | null | null | common/contrib/QSsh/src/sshcryptofacility.cpp | cbtek/ClockNGo | 4b23043a8b535059990e4eedb2c0f3a4fb079415 | [
"MIT"
] | null | null | null | /**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: http://www.qt-project.org/
**
**
** GNU Lesser General Public License Usage
**
** This file may be used under the terms... | 35.421466 | 101 | 0.670313 | cbtek |
148619e5823c1dbced2f88975d7fe0f28e494288 | 3,002 | cpp | C++ | Frontend/GItems/Mini/RUBorderComponent.cpp | Gattic/gfxplusplus | f0c05a0f424fd65c8f7fd26ee0dee1802a033336 | [
"MIT"
] | 3 | 2020-02-12T23:22:45.000Z | 2020-02-19T01:03:07.000Z | Frontend/GItems/Mini/RUBorderComponent.cpp | MeeseeksLookAtMe/gfxplusplus | f0c05a0f424fd65c8f7fd26ee0dee1802a033336 | [
"MIT"
] | null | null | null | Frontend/GItems/Mini/RUBorderComponent.cpp | MeeseeksLookAtMe/gfxplusplus | f0c05a0f424fd65c8f7fd26ee0dee1802a033336 | [
"MIT"
] | null | null | null | // Copyright 2020 Robert Carneiro, Derek Meer, Matthew Tabak, Eric Lujan
//
// 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 ... | 27.796296 | 100 | 0.758161 | Gattic |
1489b159b85c69900140ef57b2e9bac4b1010849 | 34,667 | cpp | C++ | ext/include/osgEarthDrivers/engine_osgterrain/OSGTileFactory.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 6 | 2015-09-26T15:33:41.000Z | 2021-06-13T13:21:50.000Z | ext/include/osgEarthDrivers/engine_osgterrain/OSGTileFactory.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | null | null | null | ext/include/osgEarthDrivers/engine_osgterrain/OSGTileFactory.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 5 | 2015-05-04T09:02:23.000Z | 2019-06-17T11:34:12.000Z | /* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth 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; e... | 35.739175 | 156 | 0.615484 | energonQuest |
148a93b4de5d6cd5f069be01687639c56d3461d9 | 6,176 | hpp | C++ | osc-daemon/datainjest/jsonparser.hpp | oranellis/AeroRTEP | 53f36642ab62702b68b60105045c4c5ed1e0933b | [
"MIT"
] | 1 | 2022-01-26T07:38:19.000Z | 2022-01-26T07:38:19.000Z | osc-daemon/datainjest/jsonparser.hpp | oranellis/AeroRTEP | 53f36642ab62702b68b60105045c4c5ed1e0933b | [
"MIT"
] | 4 | 2022-01-26T07:32:32.000Z | 2022-02-21T22:08:53.000Z | osc-daemon/datainjest/jsonparser.hpp | oranellis/openSatCon | 53f36642ab62702b68b60105045c4c5ed1e0933b | [
"MIT"
] | null | null | null | #ifndef JSONPARSER_H
#define JSONPARSER_H
#include <iostream>
#include <list>
#include <vector>
#include <fstream>
#include "../../includes/json.hpp"
#include "../components/component.hpp"
#include "../components/fueltank.hpp"
#include "../components/actuators/thruster.hpp"
#include "../components/actuators/rotator.h... | 38.842767 | 100 | 0.61739 | oranellis |
1499268379b786c7f9ca67f5e1345a27cf997ae6 | 2,130 | cpp | C++ | aws-cpp-sdk-xray/source/model/ResponseTimeRootCauseEntity.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-xray/source/model/ResponseTimeRootCauseEntity.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-xray/source/model/ResponseTimeRootCauseEntity.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 1 | 2019-01-18T13:03:55.000Z | 2019-01-18T13:03:55.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 20.480769 | 88 | 0.723474 | curiousjgeorge |
1499b5aee1367c1c968dd5feb57f343cc1732286 | 218 | hpp | C++ | rapidxml/include/rapidxml/utility.hpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | 27 | 2020-01-02T07:40:57.000Z | 2022-03-09T14:43:56.000Z | rapidxml/include/rapidxml/utility.hpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | null | null | null | rapidxml/include/rapidxml/utility.hpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | 3 | 2020-05-21T07:02:08.000Z | 2021-07-01T00:56:38.000Z | #ifndef XAML_RAPIDXML_UTILITY_HPP
#define XAML_RAPIDXML_UTILITY_HPP
#include <xaml/utility.h>
#ifndef RAPIDXML_API
#define RAPIDXML_API __XAML_IMPORT
#endif // !RAPIDXML_API
#endif // !XAML_RAPIDXML_UTILITY_HPP
| 19.818182 | 38 | 0.811927 | Berrysoft |
149e527a514999a5743443fb29371858a8d8af53 | 50,286 | cpp | C++ | test/adiar/zdd/test_binop.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | test/adiar/zdd/test_binop.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | test/adiar/zdd/test_binop.cpp | logsem/adiar | 056c62a37eedcc5a9e46ccc8c235b5aacedebe32 | [
"MIT"
] | null | null | null | go_bandit([]() {
describe("adiar/zdd/binop.cpp", []() {
node_file zdd_F;
node_file zdd_T;
{ // Garbage collect writers to free write-lock
node_writer nw_F(zdd_F);
nw_F << create_sink(false);
node_writer nw_T(zdd_T);
nw_T << create_sink(true);
}
ptr_t sink_T = create_sink... | 37.752252 | 109 | 0.518474 | logsem |
14a15cb872a5518f55b20c5292e451f1211f3c42 | 321 | hpp | C++ | src/header_hpp/tcp_header.hpp | Maxim-byte/pcap_parser- | 3f34b824699ec595ff34518d83b278d1cbcdeef5 | [
"MIT"
] | null | null | null | src/header_hpp/tcp_header.hpp | Maxim-byte/pcap_parser- | 3f34b824699ec595ff34518d83b278d1cbcdeef5 | [
"MIT"
] | null | null | null | src/header_hpp/tcp_header.hpp | Maxim-byte/pcap_parser- | 3f34b824699ec595ff34518d83b278d1cbcdeef5 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <iosfwd>
#include <system_error>
struct tcp_header
{
std::uint16_t s_port;
std::uint16_t d_port;
static tcp_header read_tcp_header(std::istream & stream, std::error_code & ec);
static void print_tcp_header(std::ostream & stream, const tcp_header & header);
};
... | 20.0625 | 83 | 0.719626 | Maxim-byte |
14a336dc3427d323f6920fa0a13597de3d4ec19f | 7,637 | cpp | C++ | src/rtc/momo_video_encoder_factory.cpp | S-YOU/momo | 9047dd4eb58345e9fea151ee2e04deb876033947 | [
"Apache-2.0"
] | null | null | null | src/rtc/momo_video_encoder_factory.cpp | S-YOU/momo | 9047dd4eb58345e9fea151ee2e04deb876033947 | [
"Apache-2.0"
] | null | null | null | src/rtc/momo_video_encoder_factory.cpp | S-YOU/momo | 9047dd4eb58345e9fea151ee2e04deb876033947 | [
"Apache-2.0"
] | null | null | null | #include "momo_video_encoder_factory.h"
// WebRTC
#include <absl/memory/memory.h>
#include <absl/strings/match.h>
#include <api/video_codecs/sdp_video_format.h>
#include <media/base/codec.h>
#include <media/base/media_constants.h>
#include <media/base/vp9_profile.h>
#include <media/engine/simulcast_encoder_adapter.h>
... | 34.400901 | 80 | 0.698049 | S-YOU |
14a3fc3a17136a8fb0c0304476b086058ef673ee | 4,009 | hpp | C++ | include/boost/winapi/init_once.hpp | xentrax/winapi | 66564382fa780a6f3d88d875181667728a4c4ba0 | [
"BSL-1.0"
] | null | null | null | include/boost/winapi/init_once.hpp | xentrax/winapi | 66564382fa780a6f3d88d875181667728a4c4ba0 | [
"BSL-1.0"
] | null | null | null | include/boost/winapi/init_once.hpp | xentrax/winapi | 66564382fa780a6f3d88d875181667728a4c4ba0 | [
"BSL-1.0"
] | null | null | null | /*
* Copyright 2010 Vicente J. Botet Escriba
* Copyright 2015 Andrey Semashev
*
* Distributed under the Boost Software License, Version 1.0.
* See http://www.boost.org/LICENSE_1_0.txt
*/
#ifndef BOOST_WINAPI_INIT_ONCE_HPP_INCLUDED_
#define BOOST_WINAPI_INIT_ONCE_HPP_INCLUDED_
#include <boost/winapi/config.hpp>
... | 33.132231 | 148 | 0.817411 | xentrax |
14a80a42984b1e4aaf97c5db6ac8e3ba79c13417 | 274 | cpp | C++ | example/main.cpp | That-Cool-Coder/sfml-tictactoe | af43fd32b70acd8e73b54a2feb074df93c36bc6d | [
"MIT"
] | null | null | null | example/main.cpp | That-Cool-Coder/sfml-tictactoe | af43fd32b70acd8e73b54a2feb074df93c36bc6d | [
"MIT"
] | null | null | null | example/main.cpp | That-Cool-Coder/sfml-tictactoe | af43fd32b70acd8e73b54a2feb074df93c36bc6d | [
"MIT"
] | null | null | null | #include "Engine.hpp"
#include "ExtendingScene.hpp"
#include <memory>
#include <iostream>
int main()
{
std::cout << "running";
Engine engine;
std::shared_ptr<ExtendingScene> scene = std::make_shared<ExtendingScene>();
engine.load(scene);
engine.run();
} | 21.076923 | 79 | 0.675182 | That-Cool-Coder |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.