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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
240bb6a9305b5b59bd948955fadb7803d1d7fd9f | 1,489 | hpp | C++ | src/metaSMT/concurrent/concurrent_queue.hpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 33 | 2015-04-09T14:14:25.000Z | 2022-03-27T08:55:58.000Z | src/metaSMT/concurrent/concurrent_queue.hpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 28 | 2015-03-13T14:21:33.000Z | 2019-04-02T07:59:34.000Z | src/metaSMT/concurrent/concurrent_queue.hpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 9 | 2015-04-22T18:10:51.000Z | 2021-08-06T12:44:12.000Z | #pragma once
#include "../support/disable_warnings.hpp"
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition_variable.hpp>
#include "../support/enable_warnings.hpp"
#include <queue>
namespace metaSMT {
namespace concurrent {
/* taken from http://www.justsoftwaresolutions.co.uk/threading/implementing-... | 22.560606 | 129 | 0.633983 | finnhaedicke |
2413c53aa208f6a5f0febc24109a1915cf7cfd2c | 1,549 | hpp | C++ | stan/math/prim/fun/simplex_free.hpp | bayesmix-dev/math | 3616f7195adc95ef8e719a2af845d61102bc9272 | [
"BSD-3-Clause"
] | 1 | 2020-06-14T14:33:37.000Z | 2020-06-14T14:33:37.000Z | stan/math/prim/fun/simplex_free.hpp | bayesmix-dev/math | 3616f7195adc95ef8e719a2af845d61102bc9272 | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/fun/simplex_free.hpp | bayesmix-dev/math | 3616f7195adc95ef8e719a2af845d61102bc9272 | [
"BSD-3-Clause"
] | 1 | 2020-05-10T12:55:07.000Z | 2020-05-10T12:55:07.000Z | #ifndef STAN_MATH_PRIM_FUN_SIMPLEX_FREE_HPP
#define STAN_MATH_PRIM_FUN_SIMPLEX_FREE_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/log.hpp>
#include <stan/math/prim/fun/logit.hpp>
#include <stan/math/prim/fun/to_ref.hpp>
#in... | 29.788462 | 71 | 0.700452 | bayesmix-dev |
2416890ad0b7f5eb96d1b99de8d9ea950ddae211 | 242 | cpp | C++ | ContainerShape.cpp | wnsgml972/MFC-InteriorProgram | d37a7d084414ad727555936d5eba3a5d757e9d78 | [
"MIT"
] | 7 | 2019-05-03T01:15:42.000Z | 2021-08-31T06:38:11.000Z | ContainerShape.cpp | wnsgml972/MFC-InteriorProgram | d37a7d084414ad727555936d5eba3a5d757e9d78 | [
"MIT"
] | 14 | 2018-09-11T10:11:34.000Z | 2019-05-21T07:07:31.000Z | ContainerShape.cpp | wnsgml972/MFC-InteriorProgram | d37a7d084414ad727555936d5eba3a5d757e9d78 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ContainerShape.h"
CContainerShape::CContainerShape(int nId, int nX, int nY, int nWidth, int nHeight)
: CShape(nId, nX, nY, nWidth, nHeight)
{
m_nType = TYPE_DEFAULT;
}
CContainerShape::~CContainerShape()
{
} | 18.615385 | 82 | 0.727273 | wnsgml972 |
24181414823811739d99a328f1d8485761f4d6a0 | 476 | cpp | C++ | src/main.cpp | egomeh/floaty-boaty-go-go | a011db6f1f8712bf3caa85becc1fd83ac5bf1996 | [
"MIT"
] | 2 | 2018-01-12T10:26:07.000Z | 2018-02-02T19:03:00.000Z | src/main.cpp | egomeh/floaty-boaty-go-go | a011db6f1f8712bf3caa85becc1fd83ac5bf1996 | [
"MIT"
] | null | null | null | src/main.cpp | egomeh/floaty-boaty-go-go | a011db6f1f8712bf3caa85becc1fd83ac5bf1996 | [
"MIT"
] | null | null | null | #include "definitions.hpp"
#include <string>
#include <sstream>
#include <iostream>
#include <thread>
#include "util.hpp"
#include "application.hpp"
#ifdef GUIONLY
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLine, int nCmdShow)
#else
int main(HINSTANCE hInstance, HINSTANCE hPrevInst... | 19.833333 | 96 | 0.754202 | egomeh |
24183812b751ea25101cefa9fa1937ced6f15175 | 1,530 | cpp | C++ | src/bwt.cpp | pdinklag/stash | b9e4b1754a521c118b3054af0087b1ae6c9463a1 | [
"MIT"
] | null | null | null | src/bwt.cpp | pdinklag/stash | b9e4b1754a521c118b3054af0087b1ae6c9463a1 | [
"MIT"
] | null | null | null | src/bwt.cpp | pdinklag/stash | b9e4b1754a521c118b3054af0087b1ae6c9463a1 | [
"MIT"
] | 1 | 2020-05-13T11:36:45.000Z | 2020-05-13T11:36:45.000Z | #include <iostream>
#include <fstream>
#include <vector>
#include <stash/util/file_size.hpp>
#include <divsufsort64.h>
#include <tlx/cmdline_parser.hpp>
int main(int argc, char** argv) {
// params
std::string input_filename; // required
sauchar_t sentinel;
{
std::string sentinel_str("\0", 1)... | 24.285714 | 93 | 0.549673 | pdinklag |
2419b94e666e844b7a0077134703d7703da4e382 | 634 | cpp | C++ | src/Engine/GUI/GUI_Main.cpp | slajerek/MTEngineSDL | 19b5295d875c197ec03bc20ddacd48c228920365 | [
"MIT"
] | 4 | 2021-12-16T11:22:30.000Z | 2022-01-05T11:20:32.000Z | src/Engine/GUI/GUI_Main.cpp | slajerek/MTEngineSDL | 19b5295d875c197ec03bc20ddacd48c228920365 | [
"MIT"
] | 1 | 2022-01-07T10:41:38.000Z | 2022-01-09T12:04:03.000Z | src/Engine/GUI/GUI_Main.cpp | slajerek/MTEngineSDL | 19b5295d875c197ec03bc20ddacd48c228920365 | [
"MIT"
] | null | null | null | #include "GUI_Main.h"
#include "CGuiMain.h"
#include "MT_API.h"
#include "CConfigStorage.h"
CGuiMain *guiMain = NULL;
CConfigStorage *globalConfig = NULL;
void GUI_Init()
{
MT_GuiPreInit();
guiMain = new CGuiMain();
}
void GUI_Render()
{
// LOGD("GUI_Render");
guiMain->RenderImGui();
MT_Render();
}
void GUI_Po... | 14.088889 | 45 | 0.727129 | slajerek |
241a99feb862404273344a53f699a62033ea0be4 | 8,032 | cpp | C++ | Samples/FileListTransfer/main.cpp | RichardRanft/RakNet | 1a169895a900c9fc4841c556e16514182b75faf8 | [
"BSD-2-Clause"
] | 1,255 | 2015-01-01T12:16:18.000Z | 2017-05-24T20:56:12.000Z | Samples/FileListTransfer/main.cpp | RichardRanft/RakNet | 1a169895a900c9fc4841c556e16514182b75faf8 | [
"BSD-2-Clause"
] | 76 | 2017-06-07T21:05:41.000Z | 2021-12-14T21:15:49.000Z | Samples/FileListTransfer/main.cpp | RichardRanft/RakNet | 1a169895a900c9fc4841c556e16514182b75faf8 | [
"BSD-2-Clause"
] | 535 | 2015-01-05T01:09:02.000Z | 2017-05-17T00:58:03.000Z | /*
* Copyright (c) 2014, Oculus VR, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
... | 32.257028 | 199 | 0.718127 | RichardRanft |
241aa650f8d498bd8f5bbc615306ebb01d7cb773 | 7,235 | cpp | C++ | oceanus/src/v20190422/model/RunJobDescription.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | oceanus/src/v20190422/model/RunJobDescription.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | oceanus/src/v20190422/model/RunJobDescription.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 28.710317 | 152 | 0.695923 | suluner |
241d02e7aa8c2d91440ae4c8dbbd5b28f7dd5c3f | 703 | cpp | C++ | mygfx/examples/00-helloworld/helloworld.cpp | miztook/milan | 45b4b3a7ac665642b76b7461ab629072e767e563 | [
"MIT"
] | 1 | 2018-11-08T23:19:36.000Z | 2018-11-08T23:19:36.000Z | mygfx/examples/00-helloworld/helloworld.cpp | miztook/milan | 45b4b3a7ac665642b76b7461ab629072e767e563 | [
"MIT"
] | null | null | null | mygfx/examples/00-helloworld/helloworld.cpp | miztook/milan | 45b4b3a7ac665642b76b7461ab629072e767e563 | [
"MIT"
] | null | null | null | #include "mygfx/mygfx.h"
#pragma comment(lib, "mygfx.lib")
#pragma comment(lib, "example-common.lib")
#include <bx/uint32_t.h>
#include "common.h"
#include "bgfx_utils.h"
class ExampleHelloWorld : public entry::AppI
{
public:
ExampleHelloWorld(const char* _name, const char* _description)
: entry::AppI(_name, _de... | 17.575 | 95 | 0.70697 | miztook |
241df3d7cd84c7d4532df3e8c3f2450278af51a5 | 4,290 | cpp | C++ | src-plugins/itkDataTensorImageWriter/itkDataTensorImageWriterBase.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/itkDataTensorImageWriter/itkDataTensorImageWriterBase.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/itkDataTensorImageWriter/itkDataTensorImageWriterBase.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
====... | 28.791946 | 119 | 0.657809 | ocommowi |
241fa680efd263f8a719e2394c0420c0d4d15a87 | 156 | cpp | C++ | src/goto-instrument/accelerate/linearize.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 1 | 2021-08-17T08:41:12.000Z | 2021-08-17T08:41:12.000Z | src/goto-instrument/accelerate/linearize.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 6 | 2017-12-03T22:02:14.000Z | 2018-04-10T09:42:20.000Z | src/goto-instrument/accelerate/linearize.cpp | dan-blank/yogar-cbmc | 05b4f056b585b65828acf39546c866379dca6549 | [
"MIT"
] | 4 | 2019-01-19T03:32:21.000Z | 2021-12-20T14:25:19.000Z | #include "linearize.h"
#include <goto-symex/symex_target_equation.h>
bool linearize(symex_target_equationt &equation, linear_recurrencet &recurrence) {
}
| 22.285714 | 82 | 0.807692 | dan-blank |
2420fba5644995b832bb7bc0f6dbb1fb7d26a0df | 3,036 | cpp | C++ | Sources/Applications/Raytracer/Mesh.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Applications/Raytracer/Mesh.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Applications/Raytracer/Mesh.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | /*=============================================================================
Mesh.cpp
Project: Sonata Engine
Copyright �by7
Julien Delezenne
=============================================================================*/
#include "Mesh.h"
#include "TriangleShape.h"
namespace Raytracer
{
SE_IMPLEMENT_CLASS(RTMesh)... | 20.513514 | 81 | 0.607049 | jdelezenne |
24258878e838da031d16e946cad6d32f1b883411 | 10,463 | cc | C++ | extras/geometry_utils.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | extras/geometry_utils.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | extras/geometry_utils.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null |
#include "BaseList.h"
#include "geometry.h"
#include "basespin_system.h"
#include "ListList.h"
#include "NMR.h"
using namespace libcmatrix;
#include "geometry_utils.h"
struct default_spin_t {
const char* elementname;
size_t massnumber;
};
#define NMRSIM_DEFAULT_SPINS 57
const default_spin_t default_spin_table[... | 28.98338 | 175 | 0.605467 | dch0ph |
242a2a6abe2a98089712fefc87ca05df5f408196 | 84 | hpp | C++ | main/RK.hpp | likeblood/Algorithms-parallel-calculator | 1f7273d319944c6b9123927e363cd5c5fccac7c3 | [
"MIT"
] | null | null | null | main/RK.hpp | likeblood/Algorithms-parallel-calculator | 1f7273d319944c6b9123927e363cd5c5fccac7c3 | [
"MIT"
] | 7 | 2020-05-19T02:52:25.000Z | 2020-05-31T23:20:54.000Z | main/RK.hpp | likeblood/cpp_microproject_2020 | 1f7273d319944c6b9123927e363cd5c5fccac7c3 | [
"MIT"
] | 1 | 2021-02-25T15:23:13.000Z | 2021-02-25T15:23:13.000Z | #pragma once
#include "RKMethod.hpp"
#include "RKIntegrator.hpp"
#include "ODE.hpp" | 16.8 | 27 | 0.75 | likeblood |
242ce98cf1db305edce90ae00c23d7a8bbb65fbf | 2,860 | hpp | C++ | include/cppurses/painter/brush.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | include/cppurses/painter/brush.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | include/cppurses/painter/brush.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | #ifndef CPPURSES_PAINTER_BRUSH_HPP
#define CPPURSES_PAINTER_BRUSH_HPP
#include <bitset>
#include <utility>
#include <optional/optional.hpp>
#include <cppurses/painter/attribute.hpp>
#include <cppurses/painter/color.hpp>
namespace cppurses {
/// Holds the look of any paintable object with Attributes and Colors.
clas... | 31.428571 | 79 | 0.708042 | jktjkt |
242da28b91e2bffe757f64398f675465dfa35eab | 797 | hpp | C++ | pythran/pythonic/include/numpy/digitize.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/digitize.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/digitize.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_NUMPY_DIGITIZE_HPP
#define PYTHONIC_INCLUDE_NUMPY_DIGITIZE_HPP
#include "pythonic/include/numpy/asarray.hpp"
#include "pythonic/include/__builtin__/None.hpp"
#include "pythonic/include/operator_/gt.hpp"
#include "pythonic/include/operator_/lt.hpp"
namespace pythonic
{
namespace numpy
{
... | 26.566667 | 65 | 0.677541 | xmar |
242eec34b064e0858bb56bb737d91c085b328bcf | 9,239 | cpp | C++ | engine/hash_table.cpp | BaronStack/kvdk | 50fdd226b88ac614ba04109053c529af989c083a | [
"BSD-3-Clause"
] | 1 | 2022-03-01T03:46:02.000Z | 2022-03-01T03:46:02.000Z | engine/hash_table.cpp | KVKIT/kvdk | 809b64058146308fa089859ba4abcb4135333425 | [
"BSD-3-Clause"
] | null | null | null | engine/hash_table.cpp | KVKIT/kvdk | 809b64058146308fa089859ba4abcb4135333425 | [
"BSD-3-Clause"
] | null | null | null | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2021 Intel Corporation
*/
#include "hash_table.hpp"
#include "skiplist.hpp"
#include "thread_manager.hpp"
#include "unordered_collection.hpp"
namespace KVDK_NAMESPACE {
HashTable *
HashTable::NewHashTable(uint64_t hash_bucket_num, uint32_t hash_bucket_size,
... | 35.263359 | 80 | 0.617599 | BaronStack |
24308c5522b87577de35faec37e57053f5a05f76 | 779 | cpp | C++ | c++/test/test_matmul_upper.cpp | jacksonloper/celerite2 | e413e28dc43ba33e67960b51a9cbbac43c2f58df | [
"MIT"
] | 38 | 2020-10-10T02:43:53.000Z | 2022-03-30T09:59:21.000Z | c++/test/test_matmul_upper.cpp | jacksonloper/celerite2 | e413e28dc43ba33e67960b51a9cbbac43c2f58df | [
"MIT"
] | 34 | 2020-10-06T18:50:47.000Z | 2022-01-28T10:33:04.000Z | c++/test/test_matmul_upper.cpp | jacksonloper/celerite2 | e413e28dc43ba33e67960b51a9cbbac43c2f58df | [
"MIT"
] | 6 | 2020-11-09T18:12:54.000Z | 2022-02-03T20:20:59.000Z | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "helpers.hpp"
#include <celerite2/celerite2.h>
using namespace celerite2::test;
using namespace celerite2::core;
TEMPLATE_LIST_TEST_CASE("check the results of matmul_upper", "[matmul_upper]", TestKernels) {
SETUP_TEST(50);
double max_resid;
Matrix K, Z(Y... | 23.606061 | 93 | 0.641849 | jacksonloper |
2432b0701313618b67db0de4d19fd1b2ad2daed7 | 2,287 | cpp | C++ | demo/main.cpp | MatthiasKillat/lockfree-stack | 2f51495b6775887df2e4efc9d7174bfb9eb50afb | [
"MIT"
] | null | null | null | demo/main.cpp | MatthiasKillat/lockfree-stack | 2f51495b6775887df2e4efc9d7174bfb9eb50afb | [
"MIT"
] | null | null | null | demo/main.cpp | MatthiasKillat/lockfree-stack | 2f51495b6775887df2e4efc9d7174bfb9eb50afb | [
"MIT"
] | null | null | null | #include <iostream>
#include "index_stack.hpp"
#include "lockfree_stack.hpp"
//playground, work in progress
int main(void)
{
{
IndexStack<4> stack;
stack.push(0);
stack.push(1);
stack.push(2);
uint32_t value;
if (stack.pop(value))
{
std::cout ... | 22.203883 | 66 | 0.415391 | MatthiasKillat |
243396ce973d06445dbdd4d96631f4d62bf037e4 | 320 | cpp | C++ | codeforces/random/PetyaAndSquares.cpp | skmorningstar/Competitive-Programming | 05ba602d0fe1492d5c36267237980a9ac2f124d6 | [
"Apache-2.0"
] | null | null | null | codeforces/random/PetyaAndSquares.cpp | skmorningstar/Competitive-Programming | 05ba602d0fe1492d5c36267237980a9ac2f124d6 | [
"Apache-2.0"
] | null | null | null | codeforces/random/PetyaAndSquares.cpp | skmorningstar/Competitive-Programming | 05ba602d0fe1492d5c36267237980a9ac2f124d6 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define MOD 1000000007
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll n,x,y;
cin>>n>>x>>y;
n=n/2;
if((x==n || x==n+1) && (y==n||y==n+1))
cout<<"NO"<<endl;
else
cout<<"YES"<<endl;
return 0;
} | 14.545455 | 39 | 0.6 | skmorningstar |
24349d600b9df7c5add7fc5fd97c8ac1b859df89 | 8,718 | cpp | C++ | methods/src/utils/utils.cpp | erinaceous/shadows | 43c86c18936f6af4c0c54f30419e8f7bfb244e9a | [
"MIT"
] | 3 | 2015-11-22T07:04:07.000Z | 2017-11-19T13:03:27.000Z | methods/src/utils/utils.cpp | erinaceous/shadows | 43c86c18936f6af4c0c54f30419e8f7bfb244e9a | [
"MIT"
] | null | null | null | methods/src/utils/utils.cpp | erinaceous/shadows | 43c86c18936f6af4c0c54f30419e8f7bfb244e9a | [
"MIT"
] | null | null | null | /**
* @file utils.cpp
* @brief Utility functions and macros shared between my programs. Including
* this file makes a bunch of global variables available, which command line
* arguments are copied to.
* It also defines some helpful macros to reduce 'boiler plate' code. I don't
* know if this is a good idea or bad... | 30.482517 | 87 | 0.670567 | erinaceous |
0f8744d82e0ffdd7a2c540cc0ce787dd9568d12b | 233 | cpp | C++ | RequiredRemainder.cpp | seikhchilli/codeforces-problemset | 7b64c91ef9eb9e36b2931335ae131648de0de285 | [
"MIT"
] | 3 | 2021-09-01T13:27:29.000Z | 2021-09-24T12:35:37.000Z | RequiredRemainder.cpp | seikhchilli/codeforces-problemset | 7b64c91ef9eb9e36b2931335ae131648de0de285 | [
"MIT"
] | null | null | null | RequiredRemainder.cpp | seikhchilli/codeforces-problemset | 7b64c91ef9eb9e36b2931335ae131648de0de285 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int x, y, n;
cin>>x>>y>>n;
int k = (n % x) - y >= 0 ? (n - (((n % x) - y))) : (n - (x + ((n % x) - y)));
cout<<k<<endl;
}
}
| 16.642857 | 81 | 0.39485 | seikhchilli |
0f877b9bbac658e6cbee3177273dd52e71371e7b | 4,600 | cpp | C++ | event_handles/Translate3dEventHandle.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 32 | 2016-12-13T05:49:12.000Z | 2022-02-04T06:15:47.000Z | event_handles/Translate3dEventHandle.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 2 | 2019-07-30T02:01:16.000Z | 2020-03-12T15:06:51.000Z | event_handles/Translate3dEventHandle.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 18 | 2017-11-16T13:37:06.000Z | 2022-03-11T08:13:46.000Z | #include <QEvent>
#include <GL\glew.h>
#include "Viewer3d.h"
#include "Renderable\ObjMesh.h"
#include "Translate3dEventHandle.h"
#include "../clothdesigner.h"
#include "../Viewer2d.h"
#include "cloth\clothPiece.h"
#include "cloth\TransformInfo.h"
Translate3dEventHandle::Translate3dEventHandle(Viewer3d* v) : Abstract... | 27.058824 | 121 | 0.709565 | dolphin-li |
0f8c362ee5d5db8341721a132787eb0235a1e472 | 16,372 | cpp | C++ | src/FHEContext.cpp | patrick-schwarz/HElib | cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59 | [
"Apache-2.0"
] | 1 | 2020-12-01T07:18:47.000Z | 2020-12-01T07:18:47.000Z | src/FHEContext.cpp | wangjinglin0721/HElib | cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59 | [
"Apache-2.0"
] | null | null | null | src/FHEContext.cpp | wangjinglin0721/HElib | cd267e2ddc6e92886b89f3aa51c416d5c1d2dc59 | [
"Apache-2.0"
] | null | null | null | /* Copyright (C) 2012-2019 IBM Corp.
* This program is 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 a... | 30.94896 | 91 | 0.62216 | patrick-schwarz |
0f8f36ba108e40d79d1baeb6fce8b6fca28e5166 | 421 | cc | C++ | kattis/acm2.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | kattis/acm2.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | kattis/acm2.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://open.kattis.com/problems/acm2
#include <bits/stdc++.h>
using namespace std;
using vi=vector<int>;
int main(){
int n,p,b,c;
cin>>n>>p;
vi a(n);
for(int i=0;i<n;i++)cin>>a[i];
if(a[p]>300){
cout<<"0 0\n";
return 0;
}
b=c=a[p];
swap(a[p],a[n-1]);
a.pop_back();
sort(a.begin(),a.end())... | 16.84 | 40 | 0.496437 | Ashindustry007 |
0f906b861a78494bc89ea5b353550ee601f47bb8 | 2,489 | hpp | C++ | Examples/NMocha/src/OutputDebugStringBuf.hpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 20 | 2015-04-02T06:55:30.000Z | 2022-03-29T04:27:30.000Z | Examples/NMocha/src/OutputDebugStringBuf.hpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 692 | 2015-04-01T21:05:49.000Z | 2020-03-10T10:11:57.000Z | Examples/NMocha/src/OutputDebugStringBuf.hpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 22 | 2015-04-01T20:57:51.000Z | 2022-01-18T17:33:15.000Z | /**
* Util
*
* Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/
#ifndef _TITANIUM_MOBILE_WINDOWS_UTIL_OUTPUTDEBUGSTRINGBUF_HPP_
#define _TITANIUM_MOBILE_WINDOWS_UT... | 28.94186 | 153 | 0.642025 | garymathews |
0f944d0aeab70f52d46c424d2a0cdbfa9c7ede1f | 2,316 | cpp | C++ | modules/skparagraph/src/FontArguments.cpp | twinsunllc/skia | 8318cc9928ef12577f249f49250dd94ee2bc1d28 | [
"BSD-3-Clause"
] | null | null | null | modules/skparagraph/src/FontArguments.cpp | twinsunllc/skia | 8318cc9928ef12577f249f49250dd94ee2bc1d28 | [
"BSD-3-Clause"
] | null | null | null | modules/skparagraph/src/FontArguments.cpp | twinsunllc/skia | 8318cc9928ef12577f249f49250dd94ee2bc1d28 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 Google LLC.
#include "modules/skparagraph/src/FontArguments.h"
bool operator==(const SkFontArguments& a, const SkFontArguments& b) {
if (a.getCollectionIndex() != b.getCollectionIndex()) {
return false;
}
const SkFontArguments::VariationPosition posA = a.getVariationDesignPositi... | 37.967213 | 91 | 0.628238 | twinsunllc |
0f95fecd925c7ab349450e2a97123219698430fa | 570 | cpp | C++ | Array as a parameter.cpp | AtharvK9/Cpp-Fundamentals | 827e367e113adc81c7e22e5e8d3c6eb4afb71b4d | [
"MIT"
] | null | null | null | Array as a parameter.cpp | AtharvK9/Cpp-Fundamentals | 827e367e113adc81c7e22e5e8d3c6eb4afb71b4d | [
"MIT"
] | null | null | null | Array as a parameter.cpp | AtharvK9/Cpp-Fundamentals | 827e367e113adc81c7e22e5e8d3c6eb4afb71b4d | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
//Array can't be passed by value.
void fun(int A[], int n){//Pointer to an Array.
cout << sizeof(A)/sizeof(int) << "\n";//It's taking size of a pointer.
A[0]=12;
for(int i = 0;i<6;i++){
cout << A[i] << " ";
}
}
int main(){
int A[]={1,2,3,4,5,6};//Arr... | 23.75 | 77 | 0.538596 | AtharvK9 |
0f9670386171b1db7d06f4d730ced5467ec79b1e | 5,370 | cpp | C++ | apps/RAMDanceToolkit/src/scenes/Laban/Laban.cpp | YCAMInterlab/RAMDanceToolkit | 5db15135f4ad6f6a9116610b909df99036f74797 | [
"Apache-2.0"
] | 52 | 2015-01-13T05:17:23.000Z | 2021-05-09T14:09:39.000Z | apps/RAMDanceToolkit/src/scenes/Laban/Laban.cpp | YCAMInterlab/RAMDanceToolkit | 5db15135f4ad6f6a9116610b909df99036f74797 | [
"Apache-2.0"
] | 7 | 2015-01-12T10:25:14.000Z | 2018-09-18T12:34:15.000Z | apps/RAMDanceToolkit/src/scenes/Laban/Laban.cpp | YCAMInterlab/RAMDanceToolkit | 5db15135f4ad6f6a9116610b909df99036f74797 | [
"Apache-2.0"
] | 31 | 2015-01-12T06:39:15.000Z | 2020-04-06T07:05:08.000Z | //
// Laban.cpp - RAMDanceToolkit
//
// Copyright 2012-2013 YCAM InterLab, Yoshito Onishi, Satoru Higa, Motoi Shimizu, and Kyle McDonald
//
// 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
//... | 31.964286 | 99 | 0.518994 | YCAMInterlab |
0f9906a238d593017d767ee71cb1750f5d95827f | 1,324 | hpp | C++ | inc/sexpr-quote.hpp | ryanvbissell/dslang | 65379ca7bbefff0161d11343b742ac58452d37e7 | [
"BSD-2-Clause"
] | null | null | null | inc/sexpr-quote.hpp | ryanvbissell/dslang | 65379ca7bbefff0161d11343b742ac58452d37e7 | [
"BSD-2-Clause"
] | null | null | null | inc/sexpr-quote.hpp | ryanvbissell/dslang | 65379ca7bbefff0161d11343b742ac58452d37e7 | [
"BSD-2-Clause"
] | null | null | null | // vim: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab :
/*
* Copyright (c) 2014-2017, Ryan V. Bissell
* All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
* See the enclosed "LICENSE" file for exact license terms.
*/
#ifndef DSLANG_SEXPR_QUOTE_HPP
#define DSLANG_SEXPR_QUOTE_HPP
#include "sexpr.... | 22.066667 | 72 | 0.705438 | ryanvbissell |
0f9d5384f9407a460db0945869cace6ba23cb323 | 3,140 | hpp | C++ | tests/Unit/Helpers/Evolution/EventsAndDenseTriggers/DenseTriggers/TestTrigger.hpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 1 | 2018-10-01T06:07:16.000Z | 2018-10-01T06:07:16.000Z | tests/Unit/Helpers/Evolution/EventsAndDenseTriggers/DenseTriggers/TestTrigger.hpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 4 | 2018-06-04T20:26:40.000Z | 2018-07-27T14:54:55.000Z | tests/Unit/Helpers/Evolution/EventsAndDenseTriggers/DenseTriggers/TestTrigger.hpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include "Framework/TestingFramework.hpp"
#include <pup.h>
#include <string>
#include "DataStructures/DataBox/Tag.hpp"
#include "Evolution/EventsAndDenseTriggers/DenseTrigger.hpp"
#include "Options/Options.hpp"
#include "Parallel/Cha... | 25.737705 | 72 | 0.698408 | macedo22 |
0fa087c7c41a6a86d79991214d027c733eace0d4 | 2,265 | cpp | C++ | Codeforces/1606E/solution.cpp | caando/Competitive-Programming-Archive | 589781a23bda39aedf5fc437bf9b97c264fd3736 | [
"MIT"
] | 5 | 2021-09-09T09:16:29.000Z | 2022-01-08T11:28:12.000Z | Codeforces/1606E/solution.cpp | zjk2606/Competitive-Programming-Archive | 589781a23bda39aedf5fc437bf9b97c264fd3736 | [
"MIT"
] | 1 | 2021-09-09T09:16:26.000Z | 2021-09-11T04:00:36.000Z | Codeforces/1606E/solution.cpp | zjk2606/Competitive-Programming-Archive | 589781a23bda39aedf5fc437bf9b97c264fd3736 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using vi = vector<int>;
using vl = vector<ll>;
using vii = vector<pii>;
using vll = vector<pll>;
#define fi first
#define se second
#define sz(c) ((int)(c).size())
#define all(c) (c).begin(), (c).en... | 24.354839 | 88 | 0.516556 | caando |
0fa556061ac91a3c234396d72c1de6621353a050 | 42,514 | cpp | C++ | plugins/src/natives/iter.cpp | AGraber/PawnPlus | 8f1a06fc6a88293ccbfca549742db636470d2e4b | [
"MIT"
] | 79 | 2018-03-07T22:49:20.000Z | 2022-03-31T04:55:30.000Z | plugins/src/natives/iter.cpp | AGraber/PawnPlus | 8f1a06fc6a88293ccbfca549742db636470d2e4b | [
"MIT"
] | 45 | 2018-07-13T20:57:40.000Z | 2022-02-01T17:55:34.000Z | plugins/src/natives/iter.cpp | AGraber/PawnPlus | 8f1a06fc6a88293ccbfca549742db636470d2e4b | [
"MIT"
] | 29 | 2018-03-23T08:22:02.000Z | 2022-02-13T22:59:50.000Z | #include "natives.h"
#include "errors.h"
#include "modules/containers.h"
#include "modules/variants.h"
#include "modules/strings.h"
#include "modules/expressions.h"
#include "modules/iterators.h"
#include "objects/dyn_object.h"
#include "fixes/linux.h"
#include <cstring>
template <class Func>
auto value_write(cell ar... | 30.323823 | 171 | 0.724303 | AGraber |
0fab90e4cfdd5b570bab49c06c107030941d1c7f | 5,924 | hpp | C++ | src/elona/draw.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | null | null | null | src/elona/draw.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | null | null | null | src/elona/draw.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include "../snail/color.hpp"
#include "optional.hpp"
#include "pic_loader/extent.hpp"
#include "shared_id.hpp"
namespace elona
{
class CharaChipDB;
class ItemChipDB;
class PortraitDB;
class MapChipDB;
struct Item;
struct ItemChip
{
// NOTE: fully qualified to a... | 22.610687 | 80 | 0.694294 | XrosFade |
0fb6c6780fb5016b303f4b481515aa57ec029273 | 1,388 | cpp | C++ | projects/pinguin_warfare/mapselectionmenuscene.cpp | MBakels/Centauri_Framework | eaca476af5ef8c7679e9026605868e8db2af014f | [
"MIT"
] | null | null | null | projects/pinguin_warfare/mapselectionmenuscene.cpp | MBakels/Centauri_Framework | eaca476af5ef8c7679e9026605868e8db2af014f | [
"MIT"
] | null | null | null | projects/pinguin_warfare/mapselectionmenuscene.cpp | MBakels/Centauri_Framework | eaca476af5ef8c7679e9026605868e8db2af014f | [
"MIT"
] | null | null | null | #include "mapselectionmenuscene.h"
#include "scenemanager.h"
#include "map.h"
MapSelectionMenuScene::MapSelectionMenuScene() {
// Initial button position
int xPos = 200, yPos = 100;
// Add a button for each MapData element in maps
for each(std::pair<std::string, MapData*> map in Map::maps) {
// Create and add bu... | 30.844444 | 89 | 0.695965 | MBakels |
0fb7e65bd2ac657c475a6b748f880e7b1245f613 | 2,150 | cpp | C++ | src/sources/ProgressWin.cpp | waddlesplash/Photon | a93eeed8c156bde5f3721f74ebe7c21aa7e12459 | [
"BSD-3-Clause"
] | 4 | 2017-06-13T22:51:50.000Z | 2019-04-19T20:02:27.000Z | src/sources/ProgressWin.cpp | waddlesplash/Photon | a93eeed8c156bde5f3721f74ebe7c21aa7e12459 | [
"BSD-3-Clause"
] | null | null | null | src/sources/ProgressWin.cpp | waddlesplash/Photon | a93eeed8c156bde5f3721f74ebe7c21aa7e12459 | [
"BSD-3-Clause"
] | 1 | 2020-10-26T09:00:17.000Z | 2020-10-26T09:00:17.000Z | #include "ProgressWin.h"
ProgressView::ProgressView(BRect r) :
BView(r, "ProgressView", B_FOLLOW_ALL, B_WILL_DRAW)
{
BRect re =Bounds();
re.InsetBy(4,4);
progress = new BStatusBar(re,"aa","bb","cc");
//progress->SetBarHeight(7);
rgb_color colx ={200,0,0};
progress->SetBarColor(colx);
SetViewColor(216,216,216);
... | 20.873786 | 104 | 0.71814 | waddlesplash |
0fbabdbd42759024d8c4c976d134c6796fad6a57 | 6,402 | cc | C++ | game/src/gui/app/deploy_view.cc | chunseoklee/mengde | 7261e45dab9e02d4bf18b4542767f4b50a5616a0 | [
"MIT"
] | 1 | 2018-03-02T03:36:59.000Z | 2018-03-02T03:36:59.000Z | game/src/gui/app/deploy_view.cc | chunseoklee/mengde | 7261e45dab9e02d4bf18b4542767f4b50a5616a0 | [
"MIT"
] | 1 | 2018-04-17T01:43:02.000Z | 2018-04-17T01:43:02.000Z | game/src/gui/app/deploy_view.cc | chunseoklee/mengde | 7261e45dab9e02d4bf18b4542767f4b50a5616a0 | [
"MIT"
] | null | null | null | #include "deploy_view.h"
#include <algorithm>
#include "core/assets.h"
#include "core/equipment.h"
#include "core/force.h"
#include "core/hero.h"
#include "core/i_deploy_helper.h"
#include "core/unit.h"
#include "deploy_director.h"
#include "equipment_select_view.h"
#include "equipment_set_view.h"
#include "game_view... | 37.881657 | 119 | 0.69572 | chunseoklee |
0fbb27736d46f8a25cc494234e9cb5cec198e326 | 6,074 | cpp | C++ | image/src/KTXImage.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 17 | 2019-02-12T14:40:06.000Z | 2021-12-21T12:54:17.000Z | image/src/KTXImage.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | null | null | null | image/src/KTXImage.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 2 | 2019-02-21T10:07:42.000Z | 2020-05-08T19:49:10.000Z | /////////// - StormKit::image - ///////////
#include <storm/core/Ranges.hpp>
/////////// - StormKit::image - ///////////
#include <storm/image/Image.hpp>
/////////// - STL - ///////////
#include <csetjmp>
#include <cstring>
/////////// - libJPEG - ///////////
#include <gli/gli.hpp>
using namespace storm;
using name... | 53.280702 | 97 | 0.669575 | Arthapz |
0fbbc01bfef9c81727ff0e3bd9af2ee944cd2ec3 | 6,620 | cpp | C++ | ClientLourd/Tuto/Commun/Externe/FTGL/include/FTGlyph/FTGlyphGlue.cpp | samirov78/MultiplayerRobotSimulator | bd8b2741e310b027f0746c838b717e436802c402 | [
"MIT"
] | 110 | 2016-06-23T23:07:23.000Z | 2022-03-25T03:18:16.000Z | ClientLourd/Tuto/Commun/Externe/FTGL/include/FTGlyph/FTGlyphGlue.cpp | samirov78/MultiplayerRobotSimulator | bd8b2741e310b027f0746c838b717e436802c402 | [
"MIT"
] | 9 | 2016-06-24T13:20:01.000Z | 2020-05-05T18:43:46.000Z | ClientLourd/Tuto/Commun/Externe/FTGL/include/FTGlyph/FTGlyphGlue.cpp | samirov78/MultiplayerRobotSimulator | bd8b2741e310b027f0746c838b717e436802c402 | [
"MIT"
] | 23 | 2016-04-26T23:37:13.000Z | 2021-09-27T07:10:08.000Z | /*
* FTGL - OpenGL font library
*
* Copyright (c) 2001-2004 Henry Maddocks <ftgl@opengl.geek.nz>
* Copyright (c) 2008 Sam Hocevar <sam@zoy.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 th... | 33.266332 | 85 | 0.641239 | samirov78 |
0fbc0db6e99387859e836424e5575d95d6b69a6f | 3,930 | cpp | C++ | mpags-cipher.cpp | tomlatham/mpags-c-course-day-2-ejones21 | fe749511e23f422977c558b7fee5bfea636ec626 | [
"MIT"
] | null | null | null | mpags-cipher.cpp | tomlatham/mpags-c-course-day-2-ejones21 | fe749511e23f422977c558b7fee5bfea636ec626 | [
"MIT"
] | null | null | null | mpags-cipher.cpp | tomlatham/mpags-c-course-day-2-ejones21 | fe749511e23f422977c558b7fee5bfea636ec626 | [
"MIT"
] | null | null | null | // Standard Library includes
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
// Our project headers
#include "TransformChar.hpp"
#include "processCommandLine.hpp"
#include "runCaesarCipher.hpp"
// For std::isalpha and std::isupper
#include <cctype>
// Main function of the mpags-cipher prog... | 30.465116 | 99 | 0.616031 | tomlatham |
0fbf56ffba91b321fa2641386cb5d1c5c7ec9b33 | 2,865 | cpp | C++ | code archive/hpcodewar2018/19.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/hpcodewar2018/19.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/hpcodewar2018/19.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 1 | 2018-10-29T12:37:25.000Z | 2018-10-29T12:37:25.000Z | //{
#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cstring>
#include<string>
#include<set>
#include<map>
#include<vector>
#include<algorithm>
#include<sstream>
#include<cmath>
#include<queue>
#include<stack>
using namespace std;
typedef long long ll;
typedef double lf;
typedef pair<ll,ll> ii;
#define R... | 24.279661 | 129 | 0.539616 | brianbbsu |
0fbf98a4c023316af3e8062a5bc946de9cc3e486 | 196 | hpp | C++ | MeetingCodes/Meeting4/Nelli_Square.hpp | knelli2/spectre-cpp-basics | 9ac3f192a3673e708e8cd33efce0b3eba13f46fc | [
"MIT"
] | null | null | null | MeetingCodes/Meeting4/Nelli_Square.hpp | knelli2/spectre-cpp-basics | 9ac3f192a3673e708e8cd33efce0b3eba13f46fc | [
"MIT"
] | null | null | null | MeetingCodes/Meeting4/Nelli_Square.hpp | knelli2/spectre-cpp-basics | 9ac3f192a3673e708e8cd33efce0b3eba13f46fc | [
"MIT"
] | null | null | null | #pragma once
#include "Nelli_Rectangle.hpp"
class Square : public Rectangle {
public:
Square(double length) noexcept;
double Perimeter() const noexcept;
double Area() const noexcept;
};
| 16.333333 | 36 | 0.734694 | knelli2 |
0fc0f095d26eeaffb1541a6076e828efb11390b7 | 5,254 | cpp | C++ | src/Entities/ArrowEntity.cpp | wbrbr/MCServer | a7bbca30c560c581127f7b6c49ca427c3e96a1da | [
"Apache-2.0"
] | 1 | 2021-03-20T01:23:29.000Z | 2021-03-20T01:23:29.000Z | src/Entities/ArrowEntity.cpp | wbrbr/MCServer | a7bbca30c560c581127f7b6c49ca427c3e96a1da | [
"Apache-2.0"
] | null | null | null | src/Entities/ArrowEntity.cpp | wbrbr/MCServer | a7bbca30c560c581127f7b6c49ca427c3e96a1da | [
"Apache-2.0"
] | 1 | 2018-09-16T04:44:56.000Z | 2018-09-16T04:44:56.000Z | #include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "Player.h"
#include "ArrowEntity.h"
#include "../Chunk.h"
cArrowEntity::cArrowEntity(cEntity * a_Creator, double a_X, double a_Y, double a_Z, const Vector3d & a_Speed) :
super(pkArrow, a_Creator, a_X, a_Y, a_Z... | 24.211982 | 181 | 0.696422 | wbrbr |
0fc31a4f51e9b466f53c6f9db2da11ed596a6165 | 2,678 | cpp | C++ | addons/80s_tanoa_vehicles/gendarmerie/bo105/config.cpp | maxmconrad/80sTanoaDev | 68fbc5712d97308b67777aeb0444dbc46ea03eab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | addons/80s_tanoa_vehicles/gendarmerie/bo105/config.cpp | maxmconrad/80sTanoaDev | 68fbc5712d97308b67777aeb0444dbc46ea03eab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | addons/80s_tanoa_vehicles/gendarmerie/bo105/config.cpp | maxmconrad/80sTanoaDev | 68fbc5712d97308b67777aeb0444dbc46ea03eab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | class CfgPatches
{
class 80s_tanoa_vehicles_gendarmerie_bo105
{
units[]=
{
"80s_tanoa_gendarmerie_bo105"
};
weapons[]=
{
};
requiredAddons[]=
{
"gm_core_vehicles",
};
};
};
/////////////////////////
// BO-105 /
/////////////////////////
class gm... | 26 | 123 | 0.622106 | maxmconrad |
0fc4b0a1e39e6b71c08ceee191725933b0640af4 | 30 | cpp | C++ | src/render/raytracer/raytracer_uniform.cpp | reneruhr/kipod | 5860f1730049a7901d4825be9af00d99aa99b8fa | [
"Apache-2.0",
"MIT"
] | null | null | null | src/render/raytracer/raytracer_uniform.cpp | reneruhr/kipod | 5860f1730049a7901d4825be9af00d99aa99b8fa | [
"Apache-2.0",
"MIT"
] | null | null | null | src/render/raytracer/raytracer_uniform.cpp | reneruhr/kipod | 5860f1730049a7901d4825be9af00d99aa99b8fa | [
"Apache-2.0",
"MIT"
] | null | null | null | #include "raytracer_uniform.h" | 30 | 30 | 0.833333 | reneruhr |
0fcaf7c3b0c822e20cb038673d225b1f21bc11d9 | 347 | cpp | C++ | CodeForces/Codeforces Round #775/b.cpp | ajidow/Answers_of_OJ | 70e0c02d9367c3a154b83a277edbf158f32484a3 | [
"MIT"
] | null | null | null | CodeForces/Codeforces Round #775/b.cpp | ajidow/Answers_of_OJ | 70e0c02d9367c3a154b83a277edbf158f32484a3 | [
"MIT"
] | null | null | null | CodeForces/Codeforces Round #775/b.cpp | ajidow/Answers_of_OJ | 70e0c02d9367c3a154b83a277edbf158f32484a3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int a[100010];
int main(int argc, char const *argv[])
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int t;
cin >> t;
while (t--)
{
int n;
cin >> n;
for (int i = 1; i <= n; ++i)
{
cin >> a[i];
}
sort(a + 1, a + 1 + n);
in... | 11.965517 | 38 | 0.530259 | ajidow |
0fcd240a6389f7dabadce2ec2aa90172eef34b3e | 1,267 | hh | C++ | include/point2D.hh | Nixsm/space-invaders | 3b771b7bc37f380716f22d0515d4e8a0d9f04f50 | [
"MIT"
] | null | null | null | include/point2D.hh | Nixsm/space-invaders | 3b771b7bc37f380716f22d0515d4e8a0d9f04f50 | [
"MIT"
] | null | null | null | include/point2D.hh | Nixsm/space-invaders | 3b771b7bc37f380716f22d0515d4e8a0d9f04f50 | [
"MIT"
] | null | null | null | #ifndef MATH_POINT2D_HH
#define MATH_POINT2D_HH
#include <iostream>
namespace Math {
class Point2D {
public:
Point2D() { }
Point2D(float x, float y)
:_x(x), _y(y)
{ }
float getX() {
return _x;
}
void setX(float x) {... | 20.111111 | 81 | 0.38674 | Nixsm |
0fcdf3ca0dbb8b5d246e1ffc4575d5a055737523 | 1,111 | cpp | C++ | src/tracked_types.cpp | zionlang/zion | 6e5adc7529cbed47b1a1c06b56b8a1764cd44bac | [
"MIT"
] | 63 | 2016-06-04T04:04:00.000Z | 2022-03-17T08:38:49.000Z | src/tracked_types.cpp | zionlang/zion | 6e5adc7529cbed47b1a1c06b56b8a1764cd44bac | [
"MIT"
] | 29 | 2017-03-02T03:36:34.000Z | 2021-01-27T03:23:09.000Z | src/tracked_types.cpp | zionlang/zion | 6e5adc7529cbed47b1a1c06b56b8a1764cd44bac | [
"MIT"
] | 3 | 2017-12-26T20:50:38.000Z | 2020-12-23T03:20:06.000Z | #include "tracked_types.h"
#include "ast.h"
#include "dbg.h"
#include "logger_decls.h"
namespace zion {
types::Ref get_tracked_type(const TrackedTypes &tracked_types,
const ast::Expr *e) {
auto iter = tracked_types.find(e);
if (iter == tracked_types.end()) {
log_location(log_error... | 27.775 | 79 | 0.576058 | zionlang |
0fd25ee4f2fa1d776e1c325b422386c5df544017 | 5,826 | c++ | C++ | src/extern/inventor/apps/demos/revo/profile.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/extern/inventor/apps/demos/revo/profile.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/extern/inventor/apps/demos/revo/profile.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... | 27.875598 | 77 | 0.688465 | OpenXIP |
0fdb263006642a6a6cd32b6549504a36fff8a3a8 | 4,667 | cpp | C++ | src/ADBViewer/src/App/gui/guiIcon.cpp | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | 9 | 2019-05-20T12:06:36.000Z | 2022-03-24T19:11:06.000Z | src/ADBViewer/src/App/gui/guiIcon.cpp | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | null | null | null | src/ADBViewer/src/App/gui/guiIcon.cpp | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | 3 | 2020-07-06T04:51:33.000Z | 2021-07-26T20:08:02.000Z | /*
MIT License
Android remote Viewer, GUI ADB tools
Android Viewer developed to view and control your android device from a PC.
ADB exchange Android Viewer, support scale view, input tap from mouse,
input swipe from keyboard, save/copy screenshot, etc..
Copyright (c) 2016-2019 PS
GitHub: ... | 27.452941 | 100 | 0.573173 | ClnViewer |
0fde9f33c4d275d0d63ff5720a92f555138a52e3 | 9,779 | cc | C++ | cinn/hlir/pe/reduction.cc | hp03/CINN | 2a162037b1665877ce005750691415ddd859d446 | [
"Apache-2.0"
] | null | null | null | cinn/hlir/pe/reduction.cc | hp03/CINN | 2a162037b1665877ce005750691415ddd859d446 | [
"Apache-2.0"
] | null | null | null | cinn/hlir/pe/reduction.cc | hp03/CINN | 2a162037b1665877ce005750691415ddd859d446 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2021 CINN Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 35.689781 | 118 | 0.661008 | hp03 |
0fea668b97fe0c5de44482de956a2c79a9196fa0 | 34,122 | cpp | C++ | src/armnn/layers/LstmLayer.cpp | tkdhmin/armnn | af2dac50e2581262492af05010a4bf7bb26b690d | [
"MIT"
] | 856 | 2018-03-09T17:26:23.000Z | 2022-03-24T21:31:33.000Z | src/armnn/layers/LstmLayer.cpp | tuanhe/armnn | 8a4bd6671d0106dfb788b8c9019f2f9646770f8d | [
"MIT"
] | 623 | 2018-03-13T04:40:42.000Z | 2022-03-31T09:45:17.000Z | src/armnn/layers/LstmLayer.cpp | tuanhe/armnn | 8a4bd6671d0106dfb788b8c9019f2f9646770f8d | [
"MIT"
] | 284 | 2018-03-09T23:05:28.000Z | 2022-03-29T14:42:28.000Z | //
// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "LstmLayer.hpp"
#include "LayerCloneBase.hpp"
#include <armnn/LstmParams.hpp>
#include <armnn/TypesUtils.hpp>
#include <backendsCommon/TensorHandle.hpp>
#include <backendsCommon/WorkloadFactory.hpp>
name... | 49.452174 | 116 | 0.718012 | tkdhmin |
0fed7b00aef14ef8708bdd83e27ac887db764eec | 2,911 | cpp | C++ | unidata/gencrng.cpp | leftmike/foment | 3838be87bc78027f3cae93219ed34fb1a17f34b9 | [
"MIT"
] | 63 | 2016-06-02T13:38:18.000Z | 2021-07-22T02:37:52.000Z | unidata/gencrng.cpp | leftmike/foment | 3838be87bc78027f3cae93219ed34fb1a17f34b9 | [
"MIT"
] | 30 | 2016-05-07T23:41:59.000Z | 2021-03-01T00:36:41.000Z | unidata/gencrng.cpp | leftmike/foment | 3838be87bc78027f3cae93219ed34fb1a17f34b9 | [
"MIT"
] | 8 | 2016-08-25T18:42:21.000Z | 2019-08-20T20:12:55.000Z | /*
Generate character ranges for a char-set
gencrng <file> <name> <letter-category> | +<character-code> ...
*/
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_FULL_CHARS 3
int ParseFields(char * s, char ** flds)
{
int nflds = 0;
for (;;)
{
... | 20.215278 | 95 | 0.443834 | leftmike |
0fef325b692acb99b5541342af9d80c04162784c | 422 | cpp | C++ | 2021.11.25-Control Work (retake)/Project-10/main.cpp | st091446/programming-Osim-2021-2022 | cf03dcbc1732332adab3ff78704fbd6d4b531887 | [
"Apache-2.0"
] | null | null | null | 2021.11.25-Control Work (retake)/Project-10/main.cpp | st091446/programming-Osim-2021-2022 | cf03dcbc1732332adab3ff78704fbd6d4b531887 | [
"Apache-2.0"
] | null | null | null | 2021.11.25-Control Work (retake)/Project-10/main.cpp | st091446/programming-Osim-2021-2022 | cf03dcbc1732332adab3ff78704fbd6d4b531887 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <windows.h>
using namespace std;
int main(int argc, char* argv[])
{
int a[1000]{0};
int i = 0;
int n = 0;
int s = 0;
cin >> n;
for(i = 0; i < n ; i++)
cin >> a[i];
s= a[0] + a[n-1] + ((a[1] > a[n-2]) ? a[1] : a[n-2]);
for(i = 1;i < n - 1; i++)
{
if( a[i-1] + a[i... | 15.071429 | 64 | 0.440758 | st091446 |
0ff035d43c2c59a5239e91703d3c934f76b0c18a | 8,933 | cpp | C++ | src/profiling.cpp | zamaudio/bwa-mem2 | 39d20ef9d729cdbd39b70b8e07933413037f41cb | [
"MIT"
] | null | null | null | src/profiling.cpp | zamaudio/bwa-mem2 | 39d20ef9d729cdbd39b70b8e07933413037f41cb | [
"MIT"
] | null | null | null | src/profiling.cpp | zamaudio/bwa-mem2 | 39d20ef9d729cdbd39b70b8e07933413037f41cb | [
"MIT"
] | null | null | null | /*************************************************************************************
The MIT License
BWA-MEM2 (Sequence alignment using Burrows-Wheeler Transform),
Copyright (C) 2019 Vasimuddin Md, Sanchit Misra, Intel Corporation, Heng Li.
Permission is hereby granted, f... | 41.165899 | 109 | 0.627897 | zamaudio |
0ff07b863965774b724969b59cde06245a127324 | 27,736 | cpp | C++ | verilator-4.016/src/V3EmitV.cpp | tcovert2015/fpga_competition | 26b7a72959afbf8315eb962ec597ba14b4a73dbd | [
"BSD-3-Clause"
] | null | null | null | verilator-4.016/src/V3EmitV.cpp | tcovert2015/fpga_competition | 26b7a72959afbf8315eb962ec597ba14b4a73dbd | [
"BSD-3-Clause"
] | null | null | null | verilator-4.016/src/V3EmitV.cpp | tcovert2015/fpga_competition | 26b7a72959afbf8315eb962ec597ba14b4a73dbd | [
"BSD-3-Clause"
] | null | null | null | // -*- mode: C++; c-file-style: "cc-mode" -*-
//*************************************************************************
// DESCRIPTION: Verilator: Emit Verilog from tree
//
// Code available from: http://www.veripool.org/verilator
//
//*************************************************************************
//
// Co... | 36.591029 | 129 | 0.546402 | tcovert2015 |
0ff2f19c1a3540c9e686a1ce3051f796f6238fbb | 1,664 | hpp | C++ | include/soralog/util.hpp | igor-egorov/soralog | ac2659044a53fc201c3001914d0d28cbf40e8ee3 | [
"Apache-2.0"
] | 2 | 2022-03-12T14:30:07.000Z | 2022-03-12T21:16:20.000Z | include/soralog/util.hpp | igor-egorov/soralog | ac2659044a53fc201c3001914d0d28cbf40e8ee3 | [
"Apache-2.0"
] | 6 | 2021-03-17T13:24:01.000Z | 2022-03-09T12:52:27.000Z | include/soralog/util.hpp | igor-egorov/soralog | ac2659044a53fc201c3001914d0d28cbf40e8ee3 | [
"Apache-2.0"
] | 4 | 2021-03-15T09:06:43.000Z | 2022-03-12T14:04:42.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef SORALOG_UTIL
#define SORALOG_UTIL
#include <pthread.h>
#include <array>
#include <string>
namespace soralog::util {
inline size_t getThreadNumber() {
static std::atomic_size_t tid_counter = 0;
stat... | 27.733333 | 115 | 0.685096 | igor-egorov |
0ff3d54eafaf549ba7dc2bf437e39042b5069ce7 | 3,439 | cpp | C++ | DesktopSharing/codec/avcodec/aac_encoder.cpp | JungleZy/DesktopSharing | b8d551a50a3abad8f54db9e5a74d778725422f22 | [
"MIT"
] | 502 | 2018-06-12T14:48:54.000Z | 2022-03-31T07:33:00.000Z | DesktopSharing/codec/avcodec/aac_encoder.cpp | JungleZy/DesktopSharing | b8d551a50a3abad8f54db9e5a74d778725422f22 | [
"MIT"
] | 37 | 2018-11-23T20:43:27.000Z | 2021-12-24T07:39:17.000Z | DesktopSharing/codec/avcodec/aac_encoder.cpp | JungleZy/DesktopSharing | b8d551a50a3abad8f54db9e5a74d778725422f22 | [
"MIT"
] | 198 | 2018-06-13T13:19:05.000Z | 2022-03-30T07:32:20.000Z | #include "aac_encoder.h"
#include "av_common.h"
using namespace ffmpeg;
AACEncoder::AACEncoder()
{
}
AACEncoder::~AACEncoder()
{
Destroy();
}
bool AACEncoder::Init(AVConfig& audio_config)
{
if (is_initialized_) {
return false;
}
av_config_ = audio_config;
AVCodec *codec = nullptr;
... | 24.21831 | 100 | 0.697587 | JungleZy |
0ff56926c5d343910d8cf7eb3ef0522185eb6eac | 5,169 | cpp | C++ | src/core/DataSources.cpp | orion-project/spectrum | f7bf34b3670bc6ae3a3829fb9d2b99a82b705eef | [
"Apache-2.0"
] | 4 | 2018-07-05T07:50:26.000Z | 2022-03-21T11:07:02.000Z | src/core/DataSources.cpp | orion-project/spectrum | f7bf34b3670bc6ae3a3829fb9d2b99a82b705eef | [
"Apache-2.0"
] | null | null | null | src/core/DataSources.cpp | orion-project/spectrum | f7bf34b3670bc6ae3a3829fb9d2b99a82b705eef | [
"Apache-2.0"
] | 1 | 2020-01-16T05:11:13.000Z | 2020-01-16T05:11:13.000Z | #include "DataSources.h"
#include "DataReaders.h"
#include "../CustomPrefs.h"
#include <QApplication>
#include <QClipboard>
#include <QFileDialog>
#include <QFileInfo>
#include <QMimeData>
static int __randomSampleIndex = 0;
static int __clipboardCallCount = 0;
//----------------------------------------------------... | 26.372449 | 117 | 0.520604 | orion-project |
0ff9920c44313e9fe0017f591ecaf024ee732689 | 1,728 | cpp | C++ | tests/test_162.cpp | AsmaBALAMANE/tiramisu | 73f9995f1e77e6adbbadda8f7dca1cb349c73eb1 | [
"MIT"
] | null | null | null | tests/test_162.cpp | AsmaBALAMANE/tiramisu | 73f9995f1e77e6adbbadda8f7dca1cb349c73eb1 | [
"MIT"
] | null | null | null | tests/test_162.cpp | AsmaBALAMANE/tiramisu | 73f9995f1e77e6adbbadda8f7dca1cb349c73eb1 | [
"MIT"
] | null | null | null | #include <tiramisu/tiramisu.h>
#include <tiramisu/block.h>
using namespace tiramisu;
int main(int argc, char **argv)
{
tiramisu::init("test_162");
input sizes("sizes", {"s_i"}, {3}, p_int32);
input params("params", {"p_i"}, {2}, p_float32);
constant M("M", sizes(0));
constant N("N", sizes(1));
... | 35.265306 | 71 | 0.609954 | AsmaBALAMANE |
ba000edeb1698bfa926a1a969170d966c0d66e77 | 880 | cpp | C++ | src/cpu/arch/cannon_lake_256.cpp | rigred/peakperf | 4055b0a39fa906a7f1658eb530669ce95073e32b | [
"MIT"
] | 32 | 2021-01-09T19:27:01.000Z | 2022-02-26T10:06:59.000Z | src/cpu/arch/cannon_lake_256.cpp | rigred/peakperf | 4055b0a39fa906a7f1658eb530669ce95073e32b | [
"MIT"
] | 11 | 2021-01-01T22:17:15.000Z | 2022-03-14T05:44:59.000Z | src/cpu/arch/cannon_lake_256.cpp | rigred/peakperf | 4055b0a39fa906a7f1658eb530669ce95073e32b | [
"MIT"
] | 3 | 2021-04-10T20:47:32.000Z | 2021-11-12T14:24:17.000Z | #include "cannon_lake_256.hpp"
#define OP_PER_IT B_256_10_OP_IT
TYPE farr_cannon_lake_256[MAX_NUMBER_THREADS][SIZE] __attribute__((aligned(64)));
void compute_cannon_lake_256(TYPE *farr, TYPE mult, int index) {
farr = farr_cannon_lake_256[index];
for(long i=0; i < BENCHMARK_CPU_ITERS; i++) {
farr[0] = _... | 40 | 83 | 0.667045 | rigred |
ba03876c00f89e0d4fdad16f73d7db7b5424e0a2 | 2,305 | cpp | C++ | Il2Native.Logic/NativeImplementations/System.Private.CoreLib/System/Number.cpp | Vinay1705/cs2cpp | d07d3206fb57edb959df8536562909a4d516e359 | [
"MIT"
] | 192 | 2016-03-23T04:33:24.000Z | 2022-03-28T14:41:06.000Z | Il2Native.Logic/NativeImplementations/System.Private.CoreLib/System/Number.cpp | Vinay1705/cs2cpp | d07d3206fb57edb959df8536562909a4d516e359 | [
"MIT"
] | 9 | 2017-03-08T14:45:16.000Z | 2021-09-06T09:28:47.000Z | Il2Native.Logic/NativeImplementations/System.Private.CoreLib/System/Number.cpp | Vinay1705/cs2cpp | d07d3206fb57edb959df8536562909a4d516e359 | [
"MIT"
] | 56 | 2016-03-22T20:37:08.000Z | 2022-03-28T12:20:47.000Z | #include "System.Private.CoreLib.h"
namespace CoreLib { namespace System {
namespace _ = ::CoreLib::System;
// Method : System.Number.FormatDecimal(decimal, string, System.Globalization.NumberFormatInfo)
string* Number::FormatDecimal(_::Decimal value, string* format, _::Globalization::NumberFormatInfo* in... | 36.015625 | 109 | 0.696746 | Vinay1705 |
ba04c4a79233164bab91b64f55e81d576f931f52 | 2,813 | cpp | C++ | ChannelConneciton/Channel.cpp | qhtLucifer/GaiaConnections | ff4539e05652a815cb19fa2d2da1fa87f76405e5 | [
"MIT"
] | 1 | 2021-12-16T08:14:31.000Z | 2021-12-16T08:14:31.000Z | ChannelConneciton/Channel.cpp | qhtLucifer/GaiaConnections | ff4539e05652a815cb19fa2d2da1fa87f76405e5 | [
"MIT"
] | null | null | null | ChannelConneciton/Channel.cpp | qhtLucifer/GaiaConnections | ff4539e05652a815cb19fa2d2da1fa87f76405e5 | [
"MIT"
] | null | null | null | #include "Channel.hpp"
namespace Gaia::Connections::ChannelConnection{
Channel::Channel(): Socket(Context)
{
}
Channel::Channel(const EndPoint& endPoint): Socket(Context)
{
Socket.connect(endPoint, error_code);
if(!error_code)
{
Connected = true;
}
... | 23.247934 | 128 | 0.563811 | qhtLucifer |
61321f8d3061ef567112cb2f3630aeec3b314852 | 1,585 | hpp | C++ | shared.hpp | VladX/StreamlabsAssignment | 5135270ee5ce77be869a9606ae07b0db771853f1 | [
"MIT"
] | null | null | null | shared.hpp | VladX/StreamlabsAssignment | 5135270ee5ce77be869a9606ae07b0db771853f1 | [
"MIT"
] | null | null | null | shared.hpp | VladX/StreamlabsAssignment | 5135270ee5ce77be869a9606ae07b0db771853f1 | [
"MIT"
] | null | null | null | #pragma once
#include "streamableobject.hpp"
#include "event.hpp"
#include "argparser.hpp"
#include "asio.hpp"
#include "fmt/include/format.h"
#include <algorithm>
namespace Streamlabs {
class Connection {
protected:
const std::string path_;
HANDLE pipe_;
asio::io_service io_service_;
std::unique_ptr... | 30.480769 | 75 | 0.641009 | VladX |
6135c9c0285eeabc5192dd0b5d34321acac24e24 | 2,094 | hpp | C++ | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/podarray_bones.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/podarray_bones.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/podarray_bones.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | // Copyright (C) 2008-2012 NICTA (www.nicta.com.au)
// Copyright (C) 2008-2012 Conrad Sanderson
//
// This file is part of the Armadillo C++ library.
// It is provided without any warranty of fitness
// for any purpose. You can redistribute this file
// and/or modify it under the terms of the GNU
// Lesser General Pub... | 24.635294 | 101 | 0.6915 | HerrFroehlich |
6136cf0a92a9633a9c759b8f9ad7a636e1fba498 | 1,070 | hpp | C++ | src/Sbut/lib/ArduinoJson/Object/ObjectImpl.hpp | vanthongxtt/SBUT_SDK | 605937ee30b28e7a96d9f0f236b303c694806f35 | [
"MIT"
] | null | null | null | src/Sbut/lib/ArduinoJson/Object/ObjectImpl.hpp | vanthongxtt/SBUT_SDK | 605937ee30b28e7a96d9f0f236b303c694806f35 | [
"MIT"
] | 8 | 2020-07-07T19:52:46.000Z | 2022-02-26T10:25:52.000Z | examples/esp32/esp32master/libraries/ArduinoJson/src/ArduinoJson/Object/ObjectImpl.hpp | tobievii/Triceratops | eb66c46e4734f05cb5284ebde7234059b839d73b | [
"MIT"
] | 1 | 2020-02-14T21:00:22.000Z | 2020-02-14T21:00:22.000Z | // ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2019
// MIT License
#pragma once
#include "../Array/ArrayRef.hpp"
#include "ObjectRef.hpp"
namespace ARDUINOJSON_NAMESPACE {
template <typename TObject>
template <typename TString>
inline ArrayRef ObjectShortcuts<TObject>::createNestedArray(
con... | 27.435897 | 79 | 0.768224 | vanthongxtt |
61385cb232da6ac50c090d61faa363de9b798a5f | 79,796 | cpp | C++ | src/LovyanGFX_DentaroUI.cpp | dentaro/LovyanGFX_DentaroUI | b75cb226000b1c7b7845676f550699f67f059baf | [
"MIT"
] | 5 | 2021-11-07T07:49:42.000Z | 2022-02-01T13:31:31.000Z | src/LovyanGFX_DentaroUI.cpp | dentaro/LovyanGFX_DentaroUI | b75cb226000b1c7b7845676f550699f67f059baf | [
"MIT"
] | null | null | null | src/LovyanGFX_DentaroUI.cpp | dentaro/LovyanGFX_DentaroUI | b75cb226000b1c7b7845676f550699f67f059baf | [
"MIT"
] | null | null | null | #include "LovyanGFX_DentaroUI.hpp"
using namespace std;
#define FLICK_DIST 3
// #include <vector>
//LovyanGFX_DentaroUI::LovyanGFX_DentaroUI(LGFX& _lcd)
//{
// lcd = _lcd;
//}
void LovyanGFX_DentaroUI::touchCalibration (bool _calibF){
touchCalibrationF = _calibF;
}
void LovyanGFX_DentaroUI::begin( LG... | 31.354028 | 177 | 0.596571 | dentaro |
613f57ea451610bfa7e2d095863fe3056adab026 | 7,592 | hpp | C++ | rocprim/include/rocprim/detail/various.hpp | YvanMokwinski/rocPRIM | 7b9661cb701fa20218443c5dfb34683e9c6ae295 | [
"MIT"
] | null | null | null | rocprim/include/rocprim/detail/various.hpp | YvanMokwinski/rocPRIM | 7b9661cb701fa20218443c5dfb34683e9c6ae295 | [
"MIT"
] | null | null | null | rocprim/include/rocprim/detail/various.hpp | YvanMokwinski/rocPRIM | 7b9661cb701fa20218443c5dfb34683e9c6ae295 | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2020 Advanced Micro Devices, Inc. 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... | 29.540856 | 105 | 0.691517 | YvanMokwinski |
6140159dd0293c79da763aa24211373028d6c9bd | 5,049 | cpp | C++ | Core/GDCore/Events/Builtin/StandardEvent.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 1 | 2018-11-23T11:56:08.000Z | 2018-11-23T11:56:08.000Z | Core/GDCore/Events/Builtin/StandardEvent.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 9 | 2020-04-04T19:26:47.000Z | 2022-03-25T18:41:20.000Z | Core/GDCore/Events/Builtin/StandardEvent.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 2 | 2020-03-02T05:20:41.000Z | 2021-05-10T03:59:05.000Z | /*
* GDevelop Core
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights
* reserved. This project is released under the MIT License.
*/
#include "StandardEvent.h"
#include "GDCore/CommonTools.h"
#include "GDCore/Events/CodeGeneration/EventsCodeGenerationContext.h"
#include "GDCore/Even... | 33 | 81 | 0.676966 | sutao80216 |
6141166193cfd84609833e305d610b278ddd77bd | 1,135 | cpp | C++ | server/Common/Packets/WGTeamList.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 3 | 2018-06-19T21:37:38.000Z | 2021-07-31T21:51:40.000Z | server/Common/Packets/WGTeamList.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | null | null | null | server/Common/Packets/WGTeamList.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 13 | 2015-01-30T17:45:06.000Z | 2022-01-06T02:29:34.000Z | #include "stdafx.h"
#include "WGTeamList.h"
BOOL WGTeamList::Read(SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)&m_PlayerID, sizeof(m_PlayerID) );
iStream.Read( (CHAR*)&m_TeamID, sizeof(m_TeamID) );
iStream.Read( (CHAR*)&m_nMemberCount, sizeof(m_nMemberCount) );
iStream.Read(... | 19.912281 | 68 | 0.671366 | viticm |
614294d181432ac57c7c02abaf5841853309d720 | 32,216 | cpp | C++ | src/libdm/dm-qt.cpp | earl-ducaine/brl-cad-svn-follow | 4e90d5416ba764666a798bc7f4774e1fde6747a0 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/libdm/dm-qt.cpp | earl-ducaine/brl-cad-svn-follow | 4e90d5416ba764666a798bc7f4774e1fde6747a0 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/libdm/dm-qt.cpp | earl-ducaine/brl-cad-svn-follow | 4e90d5416ba764666a798bc7f4774e1fde6747a0 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | 1 | 2018-12-21T21:09:47.000Z | 2018-12-21T21:09:47.000Z | /* D M - Q T . C P P
* BRL-CAD
*
* Copyright (c) 2013-2016 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as... | 24.240783 | 139 | 0.624876 | earl-ducaine |
61439158ee1fff4233e1116b55a91b813762d8ba | 10,778 | hpp | C++ | include/lcm_SpinOpGenerator.hpp | dch0ph/libcmatrix | 1f5fae7a398fe2c643252f93371b407dbfb70855 | [
"MIT"
] | null | null | null | include/lcm_SpinOpGenerator.hpp | dch0ph/libcmatrix | 1f5fae7a398fe2c643252f93371b407dbfb70855 | [
"MIT"
] | null | null | null | include/lcm_SpinOpGenerator.hpp | dch0ph/libcmatrix | 1f5fae7a398fe2c643252f93371b407dbfb70855 | [
"MIT"
] | null | null | null | //internal file only
template<bool> struct lcm_cache_type_ { typedef Type2Type< BlockedMatrix<double> > type; };
template<> struct lcm_cache_type_<true> { typedef Type2Type< ListList<double> > type; };
class SpinOpGenerator : public SpinOpGeneratorBase {
public:
SpinOpGenerator(const basespin_system&, int flagsv ... | 49.898148 | 185 | 0.723511 | dch0ph |
61450a5db13e69e7041ccfe67bb7dd6ffcbfef7a | 589 | cpp | C++ | Uva-591 - Box of Bricks.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | 1 | 2020-11-02T22:18:22.000Z | 2020-11-02T22:18:22.000Z | Uva-591 - Box of Bricks.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | null | null | null | Uva-591 - Box of Bricks.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int limit,num[51],result,sum,avg,count=0;
while(cin>>limit && limit>0)
{
result=sum=avg=0;
for(int i=0;i<limit;i++)
{
cin>>num[i];
sum+=num[i];
}
avg=sum/limit;
for(int i=0;i<lim... | 21.035714 | 67 | 0.424448 | Samim-Arefin |
61467757c376740059efc6aefcae51ce02eb71b1 | 618 | hpp | C++ | c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/nlp.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/nlp.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/nlp.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | #pragma once // NLP.hpp
#include <iostream>
#include <string>
#include <algorithm> // transform
using namespace std;
#define DEBUG 0
//==================================================================
// Class Declaration //
//============================... | 21.310345 | 69 | 0.456311 | aimldl |
61514a88648318a03c642799e3155d150912773d | 8,868 | cpp | C++ | src/pap.cpp | FaultyRAM/MuckyFoot-UrbanChaos | 45c9553189f80785a4ea0ec34b960d864782155b | [
"MIT"
] | 5 | 2017-10-02T00:20:06.000Z | 2021-07-09T10:00:18.000Z | src/pap.cpp | FaultyRAM/MuckyFoot-UrbanChaos | 45c9553189f80785a4ea0ec34b960d864782155b | [
"MIT"
] | null | null | null | src/pap.cpp | FaultyRAM/MuckyFoot-UrbanChaos | 45c9553189f80785a4ea0ec34b960d864782155b | [
"MIT"
] | null | null | null | //
// A lower memory map: 100k
//
#include <mfstdlib/mfstdlib.h>
#include <fallen/pap.h>
#include <fallen/game.h>
#include <fallen/mav.h>
#ifndef PSX
#include <ddengine/aeng.h>
#else
#include "c:\fallen\psxeng\headers\engine.h"
#endif
#include <fallen/inside2.h>
#include <fallen/ns.h>
#include <fallen/ware.h>
#incl... | 14.804674 | 90 | 0.563599 | FaultyRAM |
615b3927cb7d6e41ab24da899e21d0c009d0ae03 | 2,441 | cpp | C++ | src/GVis/Viewport.cpp | matthew-reid/Graphtane | 3148039993da185cfb328f89b96c9e5a5b384197 | [
"MIT"
] | 38 | 2015-01-01T05:55:38.000Z | 2022-03-12T23:19:50.000Z | src/GVis/Viewport.cpp | matthew-reid/Graphtane | 3148039993da185cfb328f89b96c9e5a5b384197 | [
"MIT"
] | 1 | 2019-07-29T21:48:40.000Z | 2020-01-13T12:08:08.000Z | src/GVis/Viewport.cpp | matthew-reid/Graphtane | 3148039993da185cfb328f89b96c9e5a5b384197 | [
"MIT"
] | 8 | 2016-04-22T06:41:47.000Z | 2021-11-23T23:44:22.000Z | // Copyright (c) 2013-2014 Matthew Paul Reid
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, p... | 28.717647 | 98 | 0.770586 | matthew-reid |
615db4478a5a614a202b53c71da52fd96b16ee90 | 168 | cpp | C++ | Team01/Game/Project/Item3Way.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | null | null | null | Team01/Game/Project/Item3Way.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | null | null | null | Team01/Game/Project/Item3Way.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | 1 | 2021-02-01T02:48:17.000Z | 2021-02-01T02:48:17.000Z | #include "Item3Way.h"
CItem3Way::CItem3Way() :
super(){
}
CItem3Way::~CItem3Way() {
}
bool CItem3Way::Use(CCharacter & out) {
out.Attach3WayShot();
return true;
}
| 12 | 39 | 0.672619 | OiCGame |
615eab2ced3494c21318724b1eba30f74aebb4f7 | 962 | cc | C++ | cpp/accelerated-cpp/chapter_05/concat.cc | nyxnaut/learn | 2614675e7b4166833fe6cb2bc17ee504924f6142 | [
"Unlicense"
] | null | null | null | cpp/accelerated-cpp/chapter_05/concat.cc | nyxnaut/learn | 2614675e7b4166833fe6cb2bc17ee504924f6142 | [
"Unlicense"
] | null | null | null | cpp/accelerated-cpp/chapter_05/concat.cc | nyxnaut/learn | 2614675e7b4166833fe6cb2bc17ee504924f6142 | [
"Unlicense"
] | null | null | null | #include "concat.h"
#include <vector>
#include <string>
#include "max_width.h"
using std::vector;
using std::string;
vector<string> vcat(const vector<string>& top, const vector<string>& bottom) {
// copy all of top into ret
vector<string> ret = top;
// append bottom to the end of ret
// Equivalent to:
/... | 22.372093 | 95 | 0.602911 | nyxnaut |
6160fb09710e5b38bf4f959c8f09034939275dcf | 464 | cpp | C++ | test/snippet/utility/simd/iota.cpp | joergi-w/seqan3 | b757646eee3cddf1f2487db8f1c9f3576ee37391 | [
"CC-BY-4.0",
"CC0-1.0"
] | 2 | 2020-10-21T03:56:37.000Z | 2021-06-09T12:07:04.000Z | test/snippet/utility/simd/iota.cpp | joergi-w/seqan3 | b757646eee3cddf1f2487db8f1c9f3576ee37391 | [
"CC-BY-4.0",
"CC0-1.0"
] | 24 | 2020-11-19T12:50:21.000Z | 2022-02-15T11:25:34.000Z | test/snippet/utility/simd/iota.cpp | joergi-w/seqan3 | b757646eee3cddf1f2487db8f1c9f3576ee37391 | [
"CC-BY-4.0",
"CC0-1.0"
] | 1 | 2022-02-13T14:24:00.000Z | 2022-02-13T14:24:00.000Z | #include <seqan3/core/debug_stream.hpp>
#include <seqan3/utility/simd/all.hpp>
#include <seqan3/utility/simd/detail/debug_stream_simd.hpp>
using uint16x8_t = seqan3::simd::simd_type_t<uint16_t, 8>;
int main()
{
uint16x8_t a = seqan3::iota<uint16x8_t>(1);
seqan3::debug_stream << a << "\n"; // [1,2,3,4,5,6,7,8]... | 25.777778 | 59 | 0.640086 | joergi-w |
6161867e23e9c82bd54311dc381308bffd89693a | 20,237 | cc | C++ | lamp/lamp.cc | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | lamp/lamp.cc | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | lamp/lamp.cc | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 The Google Research Authors.
//
// 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... | 41.3 | 80 | 0.653605 | pedersor |
6162658acdc07f3da2545ba8c5affa1e15d0cb08 | 954 | hpp | C++ | umu/singleton_window.hpp | UMU618/win10-screen-blur | 3b492f01eeca1f6032dbe88ee27daf34d94f2e13 | [
"MIT"
] | null | null | null | umu/singleton_window.hpp | UMU618/win10-screen-blur | 3b492f01eeca1f6032dbe88ee27daf34d94f2e13 | [
"MIT"
] | null | null | null | umu/singleton_window.hpp | UMU618/win10-screen-blur | 3b492f01eeca1f6032dbe88ee27daf34d94f2e13 | [
"MIT"
] | null | null | null | #pragma once
namespace umu {
class SingletonWindow {
public:
static HWND FindPrevInstanceWindow(LPCWSTR trait) {
WindowTrait window_trait = {trait, nullptr};
::EnumWindows(EnumWindowsProc, (LPARAM)&window_trait);
return window_trait.hwnd;
}
static bool SetSingleton(HWND hwnd, LPCWSTR trait) {
... | 21.681818 | 76 | 0.644654 | UMU618 |
6162d3709ad3bd4e1d8b29b7e647e971968fbbd7 | 500 | hpp | C++ | include/utility.hpp | alanjian85/Rayster | f45d0c207b717ef31f6d4e469961653299207b5d | [
"BSL-1.0"
] | null | null | null | include/utility.hpp | alanjian85/Rayster | f45d0c207b717ef31f6d4e469961653299207b5d | [
"BSL-1.0"
] | null | null | null | include/utility.hpp | alanjian85/Rayster | f45d0c207b717ef31f6d4e469961653299207b5d | [
"BSL-1.0"
] | null | null | null | #ifndef BOX_UTILITY_HPP
#define BOX_UTILITY_HPP
#include <algorithm>
namespace box {
constexpr auto pi = 3.14159;
constexpr auto rad(double deg) {
return deg * pi / 180;
}
constexpr auto lerp(double min, double max, double val) {
return min + val * (max - min);
}
constexpr a... | 21.73913 | 69 | 0.59 | alanjian85 |
6164cbe783895133e498847939ad4c6640dfe30f | 4,417 | cpp | C++ | Kernel/Net/Socket.cpp | sudipbhandari126/serenity | 9149a519f5f1bbe0ad821fb1a6a408663fd3741d | [
"BSD-2-Clause"
] | null | null | null | Kernel/Net/Socket.cpp | sudipbhandari126/serenity | 9149a519f5f1bbe0ad821fb1a6a408663fd3741d | [
"BSD-2-Clause"
] | null | null | null | Kernel/Net/Socket.cpp | sudipbhandari126/serenity | 9149a519f5f1bbe0ad821fb1a6a408663fd3741d | [
"BSD-2-Clause"
] | null | null | null | #include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/Net/IPv4Socket.h>
#include <Kernel/Net/LocalSocket.h>
#include <Kernel/Net/Socket.h>
#include <Kernel/Process.h>
#include <Kernel/UnixTypes.h>
#include <LibC/errno_numbers.h>
KResultOr<Retained<Socket>> Socket::create(int domain, int type, int protocol)
{... | 29.644295 | 219 | 0.661082 | sudipbhandari126 |
6165be661a1ad7bc4d67ecc2518e5dbc1c2c8cbe | 6,457 | cc | C++ | source/agent/audio/audioMixer/AudioMixerWrapper.cc | yfdandy/owt-server | 93b1721865907c6af94be4fdef8f191e59f345d2 | [
"Apache-2.0"
] | 1 | 2021-05-30T01:19:18.000Z | 2021-05-30T01:19:18.000Z | source/agent/audio/audioMixer/AudioMixerWrapper.cc | vgemv/owt-server | fa6070af33feeeb79a962de08307ac5092991cbf | [
"Apache-2.0"
] | null | null | null | source/agent/audio/audioMixer/AudioMixerWrapper.cc | vgemv/owt-server | fa6070af33feeeb79a962de08307ac5092991cbf | [
"Apache-2.0"
] | null | null | null | // Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#ifndef BUILDING_NODE_EXTENSION
#define BUILDING_NODE_EXTENSION
#endif
#include "AudioMixerWrapper.h"
using namespace v8;
Persistent<Function> AudioMixer::constructor;
AudioMixer::AudioMixer() {};
AudioMixer::~AudioMixer() {};
void... | 36.072626 | 128 | 0.721233 | yfdandy |
6168056bf62229737a5f5404b295053939123a09 | 5,912 | hpp | C++ | src/hand/Analysis.hpp | helkebir/suzume | ce330d5c3866b8ced34b6bed8dacc5a3c12625c4 | [
"BSD-3-Clause"
] | null | null | null | src/hand/Analysis.hpp | helkebir/suzume | ce330d5c3866b8ced34b6bed8dacc5a3c12625c4 | [
"BSD-3-Clause"
] | null | null | null | src/hand/Analysis.hpp | helkebir/suzume | ce330d5c3866b8ced34b6bed8dacc5a3c12625c4 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by Hamza El-Kebir on 12/5/21.
//
#ifndef SUZUME_ANALYSIS_HPP
#define SUZUME_ANALYSIS_HPP
#include "tiles/TilesEnum.hpp"
#include "tiles/TileUtils.hpp"
#include <vector>
#include <algorithm>
#include <iostream>
namespace szm {
class Analysis {
public:
template <Languages TLanguage>
... | 30.163265 | 112 | 0.41069 | helkebir |
616898ad23cfe03a9510755c679cff3f35491bf3 | 592 | hpp | C++ | tests/c++/testsetup.hpp | ssciwr/geolib4d | dd79a746559235e47c2cb5e7c7ba71ef3ae21e29 | [
"MIT"
] | 3 | 2022-01-28T14:18:05.000Z | 2022-03-02T21:52:43.000Z | tests/c++/testsetup.hpp | ssciwr/geolib4d | dd79a746559235e47c2cb5e7c7ba71ef3ae21e29 | [
"MIT"
] | 104 | 2021-06-18T14:10:37.000Z | 2022-03-04T06:12:58.000Z | tests/c++/testsetup.hpp | ssciwr/py4dgeo | dd79a746559235e47c2cb5e7c7ba71ef3ae21e29 | [
"MIT"
] | null | null | null | #include "py4dgeo/py4dgeo.hpp"
#include <memory>
#include <string>
#include <tuple>
#ifndef PY4DGEO_TEST_DATA_DIRECTORY
#error Test data directory needs to be set from CMake
#endif
#define DATAPATH(filename) PY4DGEO_TEST_DATA_DIRECTORY "/" #filename
std::shared_ptr<py4dgeo::EigenPointCloud>
benchcloud_from_file(con... | 25.73913 | 68 | 0.766892 | ssciwr |
616a419e1c3c56666d1c16feab1b827b6ea45b14 | 292 | cpp | C++ | C++/problem1720.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem1720.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem1720.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> decode(vector<int>& encoded, int first) {
vector<int> ans{first};
for (vector<int>::iterator it = encoded.begin(); it < encoded.end(); ++it)
{
ans.push_back(*it ^ ans.back());
}
return ans;
}
};
| 24.333333 | 82 | 0.523973 | 1050669722 |
616a49ff28123c3c038f6c8cad8afe895d508ed2 | 816 | cpp | C++ | behavioral/iterator/std_iterator.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | 2 | 2021-01-21T11:03:08.000Z | 2021-01-31T17:47:12.000Z | behavioral/iterator/std_iterator.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | null | null | null | behavioral/iterator/std_iterator.cpp | stefanpantic/cpp-design-patterns | 887f9ddebbb99a773ba132c6298fee37eec25609 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <iterator>
#include <ostream>
#include <vector>
void std_iterators()
{
std::vector<std::string> names{"john", "jane", "mads", "mike", "kevin", "chad"};
decltype(names)::iterator it{names.begin()};
std::cout << *it << std::endl;
++it;
std::cout << *it << std::endl;... | 21.473684 | 111 | 0.609069 | stefanpantic |
616c55fb03e66ffbe1376e6526459a696fa0c0a5 | 4,244 | cpp | C++ | yave/graphics/commands/CmdQueue.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | yave/graphics/commands/CmdQueue.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | yave/graphics/commands/CmdQueue.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | /*******************************
Copyright (c) 2016-2022 Grégoire Angerand
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... | 35.966102 | 147 | 0.68803 | gan74 |
616e1b01002ea73372fc1bccb9da8fb573b93b83 | 1,673 | cpp | C++ | PMod_7Segment/Firmware/test_top.cpp | jjhorton/PMod | 82723696c9133fd99905481a8fae3807bbadeb9c | [
"BSD-3-Clause"
] | null | null | null | PMod_7Segment/Firmware/test_top.cpp | jjhorton/PMod | 82723696c9133fd99905481a8fae3807bbadeb9c | [
"BSD-3-Clause"
] | 6 | 2022-03-08T21:25:57.000Z | 2022-03-14T22:04:52.000Z | PMod_LEDArray/Firmware/test_top.cpp | jjhorton/PMod | 82723696c9133fd99905481a8fae3807bbadeb9c | [
"BSD-3-Clause"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include "Vtop.h"
#include "verilated_vcd_c.h"
#include "verilated.h"
void tick(int tickcount, Vtop *tb, VerilatedVcdC* tfp){
tb->eval();
if(tfp)
tfp->dump(tickcount * 10-2);
tb->CLK = 1;
tb->eval();
if(tfp)
tfp->dump(tickcount * 10);
tb->CLK = 0;
tb->eval();
if (t... | 18.797753 | 94 | 0.635983 | jjhorton |
61708ba5c89f2729072c7a5033eed3722e679899 | 7,736 | cpp | C++ | hazelcast/test/src/faulttolerance/LoadTest.cpp | pirog-spb/hazelcast-cpp-client | 979cf38b85a8308dbcc75b7e94a2b79fffceae21 | [
"Apache-2.0"
] | null | null | null | hazelcast/test/src/faulttolerance/LoadTest.cpp | pirog-spb/hazelcast-cpp-client | 979cf38b85a8308dbcc75b7e94a2b79fffceae21 | [
"Apache-2.0"
] | null | null | null | hazelcast/test/src/faulttolerance/LoadTest.cpp | pirog-spb/hazelcast-cpp-client | 979cf38b85a8308dbcc75b7e94a2b79fffceae21 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 43.706215 | 129 | 0.456308 | pirog-spb |
61723f0c843ee063675832345b74df488e31f5d8 | 3,700 | cpp | C++ | tests/integration/replay/replay_tests.cpp | pchong90/Umpire | bfc8a153104f13fdb270347b8cd966fbbc121d4c | [
"MIT"
] | null | null | null | tests/integration/replay/replay_tests.cpp | pchong90/Umpire | bfc8a153104f13fdb270347b8cd966fbbc121d4c | [
"MIT"
] | null | null | null | tests/integration/replay/replay_tests.cpp | pchong90/Umpire | bfc8a153104f13fdb270347b8cd966fbbc121d4c | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2018-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory
//
// Created by David Beckingsale, david@llnl.gov
// LLNL-CODE-747640
//
// All rights reserved.
//
// This fil... | 31.355932 | 87 | 0.680811 | pchong90 |
617601571696d4328be39dd195df93167dab2524 | 530 | hpp | C++ | mge/include/mge/ecs/ComponentFamily.hpp | juliencombattelli/Mortalis-Game-Engine | 8d1ff6301c3c61e3f363a2fbdfc7648a0cc3f43f | [
"MIT"
] | 1 | 2016-09-05T22:38:28.000Z | 2016-09-05T22:38:28.000Z | mge/include/mge/ecs/ComponentFamily.hpp | juliencombattelli/mge | 8d1ff6301c3c61e3f363a2fbdfc7648a0cc3f43f | [
"MIT"
] | null | null | null | mge/include/mge/ecs/ComponentFamily.hpp | juliencombattelli/mge | 8d1ff6301c3c61e3f363a2fbdfc7648a0cc3f43f | [
"MIT"
] | 1 | 2017-05-31T07:37:28.000Z | 2017-05-31T07:37:28.000Z | #ifndef MGE_COMPONENT_FAMILY_HPP_
#define MGE_COMPONENT_FAMILY_HPP_
#include <atomic>
namespace mge {
class BaseComponentFamily {
protected:
BaseComponentFamily() = default;
static inline std::atomic_size_t m_family { 0 };
};
template <typename Component>
class ComponentFamily : public BaseComponentFamily ... | 19.62963 | 64 | 0.728302 | juliencombattelli |
6177918cc5768e6a76068c01ea2e87168351caee | 9,849 | cpp | C++ | TDEngine2/source/graphics/CSkinnedMesh.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-15T01:14:15.000Z | 2019-07-15T01:14:15.000Z | TDEngine2/source/graphics/CSkinnedMesh.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 76 | 2018-10-27T16:59:36.000Z | 2022-03-30T17:40:39.000Z | TDEngine2/source/graphics/CSkinnedMesh.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-29T02:02:08.000Z | 2019-07-29T02:02:08.000Z | #include "../../include/graphics/CSkinnedMesh.h"
#include "../../include/core/IFileSystem.h"
#include "../../include/core/IFile.h"
#include "../../include/core/IJobManager.h"
#include "../../include/core/IGraphicsContext.h"
#include "../../include/graphics/IGraphicsObjectManager.h"
#include "../../include/graphics/CGeo... | 26.909836 | 171 | 0.731039 | bnoazx005 |
6178a3245c808c8736685dbf7e56164553a0244d | 958 | hpp | C++ | cslibs_plugins/include/cslibs_plugins/common/plugin.hpp | doge-of-the-day/cslibs_plugins | 9740883e5f93c5a74ea4a889067b25fb3f5cb6f0 | [
"BSD-3-Clause"
] | null | null | null | cslibs_plugins/include/cslibs_plugins/common/plugin.hpp | doge-of-the-day/cslibs_plugins | 9740883e5f93c5a74ea4a889067b25fb3f5cb6f0 | [
"BSD-3-Clause"
] | null | null | null | cslibs_plugins/include/cslibs_plugins/common/plugin.hpp | doge-of-the-day/cslibs_plugins | 9740883e5f93c5a74ea4a889067b25fb3f5cb6f0 | [
"BSD-3-Clause"
] | null | null | null | #ifndef CSLIBS_PLUGINS_PLUGIN_HPP
#define CSLIBS_PLUGINS_PLUGIN_HPP
#include <string>
namespace cslibs_plugins {
template<typename ChildClass>
class Plugin {
public:
virtual inline ~Plugin() = default;
inline std::string const& getName() const { return name_; }
inline void setName(const std::string& name) { ... | 19.55102 | 64 | 0.669102 | doge-of-the-day |
617a37ab500a5baadea0bbb403776e74f4e4e667 | 1,503 | cpp | C++ | tests/juliet/testcases/CWE775_Missing_Release_of_File_Descriptor_or_Handle/CWE775_Missing_Release_of_File_Descriptor_or_Handle__open_no_close_84_bad.cpp | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 28 | 2017-01-20T15:25:54.000Z | 2020-03-17T00:28:31.000Z | testcases/CWE775_Missing_Release_of_File_Descriptor_or_Handle/CWE775_Missing_Release_of_File_Descriptor_or_Handle__open_no_close_84_bad.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 1 | 2017-01-20T15:26:27.000Z | 2018-08-20T00:55:37.000Z | testcases/CWE775_Missing_Release_of_File_Descriptor_or_Handle/CWE775_Missing_Release_of_File_Descriptor_or_Handle__open_no_close_84_bad.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 2 | 2019-07-15T19:07:04.000Z | 2019-09-07T14:21:04.000Z | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE775_Missing_Release_of_File_Descriptor_or_Handle__open_no_close_84_bad.cpp
Label Definition File: CWE775_Missing_Release_of_File_Descriptor_or_Handle__open_no_close.label.xml
Template File: source-sinks-84_bad.tmpl.cpp
*/
/*
* @description
* CWE: 775 Missing Rel... | 40.621622 | 163 | 0.792415 | RanerL |
617eaf8db71f349e214b5113944d54f3d39aa607 | 787 | hpp | C++ | day12/part1.hpp | Moremar/advent_of_code_2016 | dea264671fc2c31baa42b1282751dfd1ae071a7d | [
"Apache-2.0"
] | null | null | null | day12/part1.hpp | Moremar/advent_of_code_2016 | dea264671fc2c31baa42b1282751dfd1ae071a7d | [
"Apache-2.0"
] | null | null | null | day12/part1.hpp | Moremar/advent_of_code_2016 | dea264671fc2c31baa42b1282751dfd1ae071a7d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Utils.hpp"
struct Instruction {
Instruction(const string &cmd, const string &x, const string &y) : cmd(cmd), x(x), y(y) {}
string cmd, x, y;
};
class Assembunny {
public:
Assembunny(const vector<Instruction> &instructions);
void runInstruction(const Instruction &instruction);
... | 23.848485 | 94 | 0.695044 | Moremar |
6181158f81eebae0737750b65509ba37db1c570e | 597,696 | cpp | C++ | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__58.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__58.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__58.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See VTestHarness.h for the primary calling header
#include "VTestHarness.h"
#include "VTestHarness__Syms.h"
#include "verilated_dpi.h"
VL_INLINE_OPT void VTestHarness::_sequent__TOP__3822(VTestHarness__Syms* __restrict vlSy... | 124.884246 | 424 | 0.850288 | vargandhi |
6181ad64d328a77782d498d74c74e624ae7f26d9 | 12,409 | cpp | C++ | folly/logging/test/CustomLogFormatterTest.cpp | lrita/folly | a315c6b038935397cddc96653e873a8985b263f6 | [
"Apache-2.0"
] | 1 | 2022-03-09T21:40:42.000Z | 2022-03-09T21:40:42.000Z | folly/logging/test/CustomLogFormatterTest.cpp | lrita/folly | a315c6b038935397cddc96653e873a8985b263f6 | [
"Apache-2.0"
] | 1 | 2022-03-28T16:56:01.000Z | 2022-03-28T16:57:07.000Z | folly/logging/test/CustomLogFormatterTest.cpp | lrita/folly | a315c6b038935397cddc96653e873a8985b263f6 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... | 30.945137 | 80 | 0.594891 | lrita |
6181e989fe93bc2f28d8907e2c2b6369be9bd411 | 1,889 | cpp | C++ | src/load_msh.cpp | teseoch/MshIO | ed485c1552c17f5a468acc94215c8a8e6d5f0d38 | [
"Apache-2.0"
] | null | null | null | src/load_msh.cpp | teseoch/MshIO | ed485c1552c17f5a468acc94215c8a8e6d5f0d38 | [
"Apache-2.0"
] | null | null | null | src/load_msh.cpp | teseoch/MshIO | ed485c1552c17f5a468acc94215c8a8e6d5f0d38 | [
"Apache-2.0"
] | null | null | null | #include <MshIO/MshSpec.h>
#include "load_msh_curves.h"
#include "load_msh_data.h"
#include "load_msh_elements.h"
#include "load_msh_format.h"
#include "load_msh_nanospline_format.h"
#include "load_msh_nodes.h"
#include "load_msh_patches.h"
#include "load_msh_post_process.h"
#include <cassert>
#include <fstream>
#inc... | 25.876712 | 84 | 0.56379 | teseoch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.